From 60062030e6aba9f09564a7c801e6b0d3daad51ac Mon Sep 17 00:00:00 2001 From: U9G Date: Sat, 15 Aug 2026 22:34:41 -0400 Subject: [PATCH 1/3] Render protocol.json with object keys in sorted order JSON object key order carries no meaning for ProtoDef compilation, but until now it depended on the source YAML order, so any change to how a protocol is assembled rewrote large parts of protocol.json. Rendering keys in sorted order makes the generated files byte-stable. The top-level section order is preserved because protodef-validator registers the global types namespace before the per-state namespaces. This commit is a pure reordering of all existing protocol.json files (verified content-identical for all 109 files). --- data/bedrock/1.16.201/protocol.json | 1292 +-- data/bedrock/1.16.210/protocol.json | 1330 +-- data/bedrock/1.16.220/protocol.json | 1476 +-- data/bedrock/1.17.0/protocol.json | 1494 +-- data/bedrock/1.17.10/protocol.json | 1506 +-- data/bedrock/1.17.30/protocol.json | 1520 +-- data/bedrock/1.17.40/protocol.json | 1558 +-- data/bedrock/1.18.0/protocol.json | 1566 +-- data/bedrock/1.18.11/protocol.json | 1636 +-- data/bedrock/1.18.30/protocol.json | 1654 +-- data/bedrock/1.19.1/protocol.json | 1740 +-- data/bedrock/1.19.10/protocol.json | 1754 +-- data/bedrock/1.19.20/protocol.json | 1762 +-- data/bedrock/1.19.21/protocol.json | 1762 +-- data/bedrock/1.19.30/protocol.json | 1772 +-- data/bedrock/1.19.40/protocol.json | 1786 +-- data/bedrock/1.19.50/protocol.json | 1792 +-- data/bedrock/1.19.60/protocol.json | 1792 +-- data/bedrock/1.19.62/protocol.json | 1792 +-- data/bedrock/1.19.70/protocol.json | 1818 +-- data/bedrock/1.19.80/protocol.json | 1824 +-- data/bedrock/1.20.0/protocol.json | 1824 +-- data/bedrock/1.20.10/protocol.json | 1826 +-- data/bedrock/1.20.30/protocol.json | 1832 +-- data/bedrock/1.20.40/protocol.json | 1836 +-- data/bedrock/1.20.50/protocol.json | 1870 ++-- data/bedrock/1.20.61/protocol.json | 1868 ++-- data/bedrock/1.20.71/protocol.json | 1866 ++-- data/bedrock/1.20.80/protocol.json | 1892 ++-- data/bedrock/1.21.0/protocol.json | 1912 ++-- data/bedrock/1.21.100/protocol.json | 2040 ++-- data/bedrock/1.21.111/protocol.json | 2062 ++-- data/bedrock/1.21.120/protocol.json | 2072 ++-- data/bedrock/1.21.124/protocol.json | 2072 ++-- data/bedrock/1.21.130/protocol.json | 2184 ++-- data/bedrock/1.21.2/protocol.json | 1912 ++-- data/bedrock/1.21.20/protocol.json | 1934 ++-- data/bedrock/1.21.30/protocol.json | 1938 ++-- data/bedrock/1.21.42/protocol.json | 1962 ++-- data/bedrock/1.21.50/protocol.json | 1986 ++-- data/bedrock/1.21.60/protocol.json | 2000 ++-- data/bedrock/1.21.70/protocol.json | 2020 ++-- data/bedrock/1.21.80/protocol.json | 2040 ++-- data/bedrock/1.21.90/protocol.json | 2040 ++-- data/bedrock/1.21.93/protocol.json | 2040 ++-- data/bedrock/1.26.0/protocol.json | 2132 ++-- data/bedrock/1.26.10/protocol.json | 2302 ++-- data/bedrock/1.26.20/protocol.json | 2336 ++-- data/bedrock/1.26.30/protocol.json | 2304 ++-- data/bedrock/1.26.40/protocol.json | 1988 ++-- data/pc/0.30c/protocol.json | 338 +- data/pc/1.10-pre1/protocol.json | 3450 +++--- data/pc/1.10/protocol.json | 3450 +++--- data/pc/1.11/protocol.json | 3450 +++--- data/pc/1.12-pre4/protocol.json | 3762 +++---- data/pc/1.12.1/protocol.json | 3876 +++---- data/pc/1.12.2/protocol.json | 3876 +++---- data/pc/1.12/protocol.json | 3822 +++---- data/pc/1.13.1/protocol.json | 5210 ++++----- data/pc/1.13.2-pre1/protocol.json | 5234 ++++----- data/pc/1.13.2-pre2/protocol.json | 5234 ++++----- data/pc/1.13.2/protocol.json | 5200 ++++----- data/pc/1.13/protocol.json | 5210 ++++----- data/pc/1.14.1/protocol.json | 5550 ++++----- data/pc/1.14.3/protocol.json | 5672 +++++----- data/pc/1.14.4/protocol.json | 5666 +++++----- data/pc/1.14/protocol.json | 5550 ++++----- data/pc/1.15.1/protocol.json | 5628 +++++----- data/pc/1.15.2/protocol.json | 5628 +++++----- data/pc/1.15/protocol.json | 5628 +++++----- data/pc/1.16-rc1/protocol.json | 5602 +++++----- data/pc/1.16.1/protocol.json | 5602 +++++----- data/pc/1.16.2/protocol.json | 5916 +++++----- data/pc/1.16/protocol.json | 5602 +++++----- data/pc/1.17.1/protocol.json | 7220 ++++++------ data/pc/1.17/protocol.json | 6202 +++++------ data/pc/1.18.2/protocol.json | 6350 +++++------ data/pc/1.18/protocol.json | 6350 +++++------ data/pc/1.19.2/protocol.json | 6748 +++++------ data/pc/1.19.3/protocol.json | 7134 ++++++------ data/pc/1.19.4/protocol.json | 8052 ++++++------- data/pc/1.19/protocol.json | 7070 ++++++------ data/pc/1.20.2/protocol.json | 7266 ++++++------ data/pc/1.20.3/protocol.json | 8352 +++++++------- data/pc/1.20.5/protocol.json | 10078 ++++++++--------- data/pc/1.20/protocol.json | 7426 ++++++------ data/pc/1.21.1/protocol.json | 10492 ++++++++--------- data/pc/1.21.11/protocol.json | 14450 ++++++++++++------------ data/pc/1.21.3/protocol.json | 13888 +++++++++++------------ data/pc/1.21.4/protocol.json | 14134 +++++++++++------------ data/pc/1.21.5/protocol.json | 13122 +++++++++++----------- data/pc/1.21.6/protocol.json | 15058 ++++++++++++------------- data/pc/1.21.8/protocol.json | 15054 ++++++++++++------------- data/pc/1.21.9/protocol.json | 15492 +++++++++++++------------- data/pc/1.7/protocol.json | 3152 +++--- data/pc/1.8/protocol.json | 3724 +++---- data/pc/1.9.1-pre2/protocol.json | 3482 +++--- data/pc/1.9.2/protocol.json | 3482 +++--- data/pc/1.9.4/protocol.json | 3448 +++--- data/pc/1.9/protocol.json | 3482 +++--- data/pc/15w40b/protocol.json | 4004 +++---- data/pc/16w20a/protocol.json | 3450 +++--- data/pc/16w35a/protocol.json | 3452 +++--- data/pc/17w15a/protocol.json | 3752 +++---- data/pc/17w18b/protocol.json | 3724 +++---- data/pc/17w50a/protocol.json | 4234 +++---- data/pc/20w13b/protocol.json | 5456 ++++----- data/pc/21w07a/protocol.json | 5786 +++++----- data/pc/26.1/protocol.json | 14272 ++++++++++++------------ tools/js/compileProtocol.js | 26 +- 110 files changed, 237877 insertions(+), 237859 deletions(-) diff --git a/data/bedrock/1.16.201/protocol.json b/data/bedrock/1.16.201/protocol.json index 56d0d25f0..9fa2d9e91 100644 --- a/data/bedrock/1.16.201/protocol.json +++ b/data/bedrock/1.16.201/protocol.json @@ -179,7 +179,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -187,7 +186,8 @@ "3": "survival_spectator", "4": "creative_spectator", "5": "fallback" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -202,12 +202,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -219,8 +219,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -302,9 +302,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -317,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -331,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -345,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -371,7 +368,10 @@ ] } ] - ] + ], + "fields": { + "0": "void" + } } ] }, @@ -473,7 +473,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "index", "1": "health", @@ -593,7 +592,8 @@ "117": "hitbox", "118": "is_buoyant", "119": "buoyancy_data" - } + }, + "type": "varint" } ] }, @@ -602,7 +602,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -613,7 +612,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -625,14 +625,14 @@ "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } ] @@ -778,9 +778,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -813,7 +810,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] }, @@ -822,14 +822,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -851,7 +851,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -859,7 +858,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -869,6 +869,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -879,44 +880,43 @@ } ] ], - "creative": [ + "craft": [ "container", [ { - "name": "inventory_id", + "name": "action", "type": "varint" } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft": [ + "creative": [ "container", [ { - "name": "action", + "name": "inventory_id", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -938,10 +938,10 @@ "switch", { "compareTo": "../network_ids", + "default": "void", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -957,8 +957,37 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", + "item_release": [ + "container", + [ + { + "name": "action_type", + "type": [ + "mapper", + { + "mappings": { + "0": "release", + "1": "consume" + }, + "type": "varint" + } + ] + }, + { + "name": "hotbar_slot", + "type": "zigzag32" + }, + { + "name": "held_item", + "type": "Item" + }, + { + "name": "head_pos", + "type": "vec3f" + } + ] + ], "item_use": [ "container", [ @@ -967,12 +996,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1018,11 +1047,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "interact", "1": "attack" - } + }, + "type": "varint" } ] }, @@ -1044,36 +1073,7 @@ } ] ], - "item_release": [ - "container", - [ - { - "name": "action_type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "release", - "1": "consume" - } - } - ] - }, - { - "name": "hotbar_slot", - "type": "zigzag32" - }, - { - "name": "held_item", - "type": "Item" - }, - { - "name": "head_pos", - "type": "vec3f" - } - ] - ] + "normal": "void" } } ] @@ -1113,9 +1113,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -1128,7 +1125,10 @@ "type": "zigzag32" } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1204,7 +1204,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1214,7 +1213,8 @@ "5": "shulker_box", "6": "shapeless_chemistry", "7": "shaped_chemistry" - } + }, + "type": "zigzag32" } ] }, @@ -1225,20 +1225,85 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" + }, + { + "name": "output", + "type": "Item" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" + }, + { + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "Item" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "multi": [ + "container", + [ + { + "name": "uuid", + "type": "uuid" + }, + { + "name": "network_id", + "type": "zigzag32" + } + ] + ], + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1270,20 +1335,34 @@ } ] ], - "shulker_box": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1315,7 +1394,7 @@ } ] ], - "shapeless_chemistry": [ + "shapeless": [ "container", [ { @@ -1360,34 +1439,20 @@ } ] ], - "shaped": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1419,34 +1484,20 @@ } ] ], - "shaped_chemistry": [ + "shulker_box": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1477,57 +1528,6 @@ "type": "zigzag32" } ] - ], - "furnace": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "output", - "type": "Item" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "input_meta", - "type": "zigzag32" - }, - { - "name": "output", - "type": "Item" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "multi": [ - "container", - [ - { - "name": "uuid", - "type": "uuid" - }, - { - "name": "network_id", - "type": "zigzag32" - } - ] ] } } @@ -1711,11 +1711,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -1810,11 +1810,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -1854,12 +1854,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -1870,8 +1870,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -1909,11 +1909,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "TYPE_REGISTER_IDENTITY", "1": "TYPE_CLEAR_IDENTITY" - } + }, + "type": "i8" } ] }, @@ -1936,10 +1936,10 @@ "switch", { "compareTo": "type", + "default": "void", "fields": { "TYPE_REGISTER_IDENTITY": "zigzag64" - }, - "default": "void" + } } ] } @@ -2062,7 +2062,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2079,7 +2078,8 @@ "12": "optional", "13": "non_implemented", "14": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2090,24 +2090,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2117,66 +2113,37 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "swap": [ + "craft_creative": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "creative_item_network_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "randomly", - "type": "bool" + "name": "recipe_network_id", + "type": "varint" } ] ], - "destroy": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" - } - ] - ], - "consume": [ - "container", - [ - { - "name": "count", + "name": "times_crafted", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], @@ -2189,29 +2156,38 @@ } ] ], - "beacon_payment": [ + "destroy": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "craft_recipe": [ + "drop": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], - "craft_recipe_auto": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2219,34 +2195,28 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_creative": [ + "place": [ "container", [ { - "name": "creative_item_network_id", - "type": "varint" - } - ] - ], - "optional": [ - "container", - [ + "name": "count", + "type": "u8" + }, { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "filtered_string_index", - "type": "li32" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", "results_deprecated": [ "container", [ @@ -2265,6 +2235,36 @@ "type": "u8" } ] + ], + "swap": [ + "container", + [ + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] + ], + "take": [ + "container", + [ + { + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] ] } } @@ -2387,7 +2387,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2401,7 +2400,8 @@ "9": "virtual", "10": "game_argument", "11": "entity_server" - } + }, + "type": "varint" } ] }, @@ -2447,7 +2447,6 @@ "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -2458,31 +2457,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -2493,31 +2492,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowType": [ "mapper", { - "type": "u8", "mappings": { "0": "container", "1": "workbench", @@ -2553,13 +2552,13 @@ "31": "hud", "32": "jigsaw_editor", "33": "smithing_table" - } + }, + "type": "u8" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -2661,7 +2660,8 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "mcpe_packet": [ @@ -2672,7 +2672,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -2834,7 +2833,8 @@ "161": "correct_player_move_prediction", "162": "item_component", "163": "filter_text_packet" - } + }, + "type": "varint" } ] }, @@ -2845,166 +2845,166 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "adventure_settings": "packet_adventure_settings", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "creative_content": "packet_creative_content", + "debug_info": "packet_debug_info", + "disconnect": "packet_disconnect", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", + "transfer": "packet_transfer", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", + "update_block_synced": "packet_update_block_synced", + "update_equipment": "packet_update_equipment", "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet" + "update_soft_enum": "packet_update_soft_enum", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -3051,7 +3051,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -3061,7 +3060,8 @@ "5": "failed_vanilla_edu", "6": "failed_edu_vanilla", "7": "failed_server_full" - } + }, + "type": "i32" } ] } @@ -3151,14 +3151,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -3176,7 +3176,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -3189,7 +3188,8 @@ "8": "announcement", "9": "json_whisper", "10": "json" - } + }, + "type": "u8" } ] }, @@ -3204,7 +3204,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -3217,7 +3217,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -3230,20 +3230,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_whisper": [ "container", [ { @@ -3252,25 +3248,45 @@ } ] ], - "tip": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "system": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "raw": [ "container", [ { @@ -3279,7 +3295,7 @@ } ] ], - "json": [ + "system": [ "container", [ { @@ -3288,26 +3304,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -3326,22 +3332,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -3576,12 +3576,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_v2_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -3901,13 +3901,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -3934,14 +3934,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -4066,7 +4066,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -4129,7 +4128,8 @@ "4000": "set_data", "9800": "players_sleeping", "16384": "add_particle_mask" - } + }, + "type": "zigzag32" } ] }, @@ -4155,11 +4155,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -4181,7 +4181,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -4237,7 +4236,8 @@ "73": "agent_summon", "74": "charged_item", "75": "fall" - } + }, + "type": "u8" } ] }, @@ -4259,12 +4259,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -4370,13 +4370,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -4391,8 +4391,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -4449,7 +4449,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -4477,7 +4476,8 @@ "23": "start_spin_attack", "24": "stop_spin_attack", "25": "ineract_block" - } + }, + "type": "zigzag32" } ] }, @@ -4556,11 +4556,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -4586,7 +4586,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -4596,7 +4595,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -4611,7 +4611,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -4620,7 +4620,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -4791,12 +4791,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -4842,14 +4842,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "operator", "2": "host", "3": "automation", "4": "admin" - } + }, + "type": "varint" } ] }, @@ -4862,13 +4862,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "varint" } ] }, @@ -4885,32 +4885,32 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { + "attack_mobs": 65552, + "attack_players": 65544, "build_and_mine": 65537, "doors_and_switches": 65538, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, "teleport": 65664 - } + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -5059,13 +5059,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -5083,7 +5083,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -5103,7 +5102,8 @@ "15": "cauldron_block_used", "16": "composter_block_used", "17": "bell_block_used" - } + }, + "type": "zigzag32" } ] }, @@ -5209,7 +5209,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -5219,7 +5218,8 @@ "5": "set_bar_title", "6": "update_properties", "7": "texture" - } + }, + "type": "varint" } ] }, @@ -5239,34 +5239,34 @@ } ] ], - "unregister_player": [ + "set_bar_progress": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "bar_progress", + "type": "lf32" } ] ], - "show": [ + "set_bar_title": [ "container", [ { "name": "title", "type": "string" - }, - { - "name": "bar_progress", - "type": "lf32" } ] ], - "update_properties": [ + "show": [ "container", [ { - "name": "darkness_factor", - "type": "li16" + "name": "title", + "type": "string" + }, + { + "name": "bar_progress", + "type": "lf32" } ] ], @@ -5283,21 +5283,21 @@ } ] ], - "set_bar_progress": [ + "unregister_player": [ "container", [ { - "name": "bar_progress", - "type": "lf32" + "name": "player_id", + "type": "zigzag64" } ] ], - "set_bar_title": [ + "update_properties": [ "container", [ { - "name": "title", - "type": "string" + "name": "darkness_factor", + "type": "li16" } ] ] @@ -5378,8 +5378,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -5447,7 +5447,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "2": "float", @@ -5462,7 +5461,8 @@ "43": "raw_text", "46": "json", "53": "command" - } + }, + "type": "lu16" } ] }, @@ -5471,13 +5471,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -5563,10 +5563,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled" - } + }, + "type": "u8" } ] } @@ -5587,18 +5587,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], @@ -5633,6 +5633,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -5645,12 +5654,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -5663,15 +5672,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -6068,14 +6068,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -6090,23 +6090,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -6133,16 +6116,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -6162,6 +6149,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -6319,12 +6319,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -6455,18 +6455,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -6509,12 +6509,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -6706,11 +6706,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -6886,12 +6886,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -6935,7 +6935,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -6952,7 +6951,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -6999,13 +6999,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "mouse", "1": "touch", "2": "game_pad", "3": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -7014,7 +7014,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -7026,7 +7025,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -7055,34 +7055,34 @@ "InputFlag": [ "bitflags", { - "type": "varint", "flags": { "ascend": 1, + "ascend_scaffolding": 2097152, + "auto_jumping_in_water": 128, + "change_height": 32, "descend": 2, - "north_jump": 4, + "descend_scaffolding": 4194304, + "down": 2048, "jump_down": 8, - "sprint_down": 16, - "change_height": 32, "jumping": 64, - "auto_jumping_in_water": 128, - "sneaking": 256, - "sneak_down": 512, - "up": 1024, - "down": 2048, "left": 4096, + "north_jump": 4, + "persist_sneak": 16777216, "right": 8192, + "sneak_down": 512, + "sneak_toggle_down": 8388608, + "sneaking": 256, + "sprint_down": 16, + "sprinting": 1048576, + "up": 1024, "up_left": 16384, "up_right": 32768, - "want_up": 65536, "want_down": 131072, "want_down_slow": 262144, - "want_up_slow": 524288, - "sprinting": 1048576, - "ascend_scaffolding": 2097152, - "descend_scaffolding": 4194304, - "sneak_toggle_down": 8388608, - "persist_sneak": 16777216 - } + "want_up": 65536, + "want_up_slow": 524288 + }, + "type": "varint" } ], "packet_creative_content": [ @@ -7181,13 +7181,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -7243,10 +7243,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -7264,12 +7264,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -7304,10 +7304,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -7316,12 +7316,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, diff --git a/data/bedrock/1.16.210/protocol.json b/data/bedrock/1.16.210/protocol.json index 9928544e6..2980a0e5f 100644 --- a/data/bedrock/1.16.210/protocol.json +++ b/data/bedrock/1.16.210/protocol.json @@ -179,7 +179,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -187,7 +186,8 @@ "3": "survival_spectator", "4": "creative_spectator", "5": "fallback" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -202,12 +202,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -219,8 +219,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -302,9 +302,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -317,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -331,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -345,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -371,7 +368,10 @@ ] } ] - ] + ], + "fields": { + "0": "void" + } } ] }, @@ -473,7 +473,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -596,7 +595,8 @@ "119": "is_buoyant", "120": "buoyancy_data", "121": "goat_horn_count" - } + }, + "type": "varint" } ] }, @@ -605,7 +605,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -616,7 +615,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -626,27 +626,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -657,7 +657,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -724,13 +723,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -764,7 +763,8 @@ "celebrating", "admiring", "celebrating_special" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -899,12 +899,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -959,7 +959,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -967,7 +966,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -977,6 +977,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -996,26 +997,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1037,10 +1037,10 @@ "switch", { "compareTo": "../network_ids", + "default": "void", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -1064,9 +1064,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1099,7 +1096,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1117,14 +1117,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1139,26 +1139,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1171,28 +1165,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1205,11 +1200,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1249,9 +1249,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -1264,7 +1261,10 @@ "type": "zigzag32" } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1340,7 +1340,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1350,7 +1349,8 @@ "5": "shulker_box", "6": "shapeless_chemistry", "7": "shaped_chemistry" - } + }, + "type": "zigzag32" } ] }, @@ -1361,20 +1361,85 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" + }, + { + "name": "output", + "type": "Item" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" + }, + { + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "Item" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "multi": [ + "container", + [ + { + "name": "uuid", + "type": "uuid" + }, + { + "name": "network_id", + "type": "varint" + } + ] + ], + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1406,20 +1471,34 @@ } ] ], - "shulker_box": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1451,7 +1530,7 @@ } ] ], - "shapeless_chemistry": [ + "shapeless": [ "container", [ { @@ -1496,34 +1575,20 @@ } ] ], - "shaped": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1555,34 +1620,20 @@ } ] ], - "shaped_chemistry": [ + "shulker_box": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1613,57 +1664,6 @@ "type": "varint" } ] - ], - "furnace": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "output", - "type": "Item" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "input_meta", - "type": "zigzag32" - }, - { - "name": "output", - "type": "Item" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "multi": [ - "container", - [ - { - "name": "uuid", - "type": "uuid" - }, - { - "name": "network_id", - "type": "varint" - } - ] ] } } @@ -1851,11 +1851,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -1950,11 +1950,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -1994,12 +1994,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -2010,8 +2010,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -2049,11 +2049,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "TYPE_REGISTER_IDENTITY", "1": "TYPE_CLEAR_IDENTITY" - } + }, + "type": "i8" } ] }, @@ -2076,10 +2076,10 @@ "switch", { "compareTo": "type", + "default": "void", "fields": { "TYPE_REGISTER_IDENTITY": "zigzag64" - }, - "default": "void" + } } ] } @@ -2163,7 +2163,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2193,7 +2192,8 @@ "25": "interact_block", "26": "predict_break", "27": "continue_break" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2234,7 +2234,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2252,7 +2251,8 @@ "13": "optional", "14": "non_implemented", "15": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2263,24 +2263,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2290,57 +2286,50 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "swap": [ + "craft_creative": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, + "name": "recipe_network_id", + "type": "varint" + } + ] + ], + "craft_recipe_auto": [ + "container", + [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2353,25 +2342,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2392,16 +2376,8 @@ } ] ], - "craft_recipe": [ - "container", - [ - { - "name": "recipe_network_id", - "type": "varint" - } - ] - ], - "craft_recipe_auto": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2409,34 +2385,28 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_creative": [ + "place": [ "container", [ { - "name": "item_id", - "type": "varint" - } - ] - ], - "optional": [ - "container", - [ + "name": "count", + "type": "u8" + }, { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "filtered_string_index", - "type": "li32" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", "results_deprecated": [ "container", [ @@ -2455,6 +2425,36 @@ "type": "u8" } ] + ], + "swap": [ + "container", + [ + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] + ], + "take": [ + "container", + [ + { + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] ] } } @@ -2489,11 +2489,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2604,7 +2604,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2618,7 +2617,8 @@ "9": "virtual", "10": "game_argument", "11": "entity_server" - } + }, + "type": "varint" } ] }, @@ -2664,7 +2664,6 @@ "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -2675,31 +2674,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -2710,31 +2709,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", - "-2": "crafting_add_ingredient", - "-1": "none" - } - } + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", + "-2": "crafting_add_ingredient", + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" + } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -2770,15 +2769,15 @@ "31": "hud", "32": "jigsaw_editor", "33": "smithing_table", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -2840,13 +2839,13 @@ "57": "barrel", "58": "cursor", "59": "creative_output" - } + }, + "type": "u8" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -2948,7 +2947,8 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "mcpe_packet": [ @@ -2959,7 +2959,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -3122,7 +3121,8 @@ "162": "item_component", "163": "filter_text_packet", "164": "debug_renderer" - } + }, + "type": "varint" } ] }, @@ -3133,167 +3133,167 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "adventure_settings": "packet_adventure_settings", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "creative_content": "packet_creative_content", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "disconnect": "packet_disconnect", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", + "transfer": "packet_transfer", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", + "update_block_synced": "packet_update_block_synced", + "update_equipment": "packet_update_equipment", "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer" + "update_soft_enum": "packet_update_soft_enum", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -3340,7 +3340,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -3350,7 +3349,8 @@ "5": "failed_vanilla_edu", "6": "failed_edu_vanilla", "7": "failed_server_full" - } + }, + "type": "i32" } ] } @@ -3440,14 +3440,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -3465,7 +3465,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -3478,7 +3477,8 @@ "8": "announcement", "9": "json_whisper", "10": "json" - } + }, + "type": "u8" } ] }, @@ -3493,7 +3493,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -3506,7 +3506,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -3519,20 +3519,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_whisper": [ "container", [ { @@ -3541,25 +3537,45 @@ } ] ], - "tip": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "system": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "raw": [ "container", [ { @@ -3568,7 +3584,7 @@ } ] ], - "json": [ + "system": [ "container", [ { @@ -3577,26 +3593,16 @@ } ] ], - "translation": [ - "container", - [ - { - "name": "message", - "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "tip": [ + "container", + [ + { + "name": "message", + "type": "string" } ] ], - "popup": [ + "translation": [ "container", [ { @@ -3615,22 +3621,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -3865,12 +3865,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -4198,13 +4198,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -4231,14 +4231,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -4291,14 +4291,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -4376,7 +4376,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -4439,7 +4438,8 @@ "4000": "set_data", "9800": "players_sleeping", "16384": "add_particle_mask" - } + }, + "type": "zigzag32" } ] }, @@ -4465,11 +4465,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -4491,7 +4491,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -4547,7 +4546,8 @@ "73": "agent_summon", "74": "charged_item", "75": "fall" - } + }, + "type": "u8" } ] }, @@ -4569,12 +4569,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -4680,13 +4680,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -4701,8 +4701,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -4833,11 +4833,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -4863,7 +4863,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -4873,7 +4872,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -4888,7 +4888,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -4897,7 +4897,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -5068,12 +5068,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -5132,14 +5132,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "operator", "2": "host", "3": "automation", "4": "admin" - } + }, + "type": "varint" } ] }, @@ -5152,13 +5152,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "varint" } ] }, @@ -5175,34 +5175,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -5351,13 +5351,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -5375,7 +5375,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -5402,7 +5401,8 @@ "22": "honey_harvested", "23": "target_block_hit", "24": "piglin_barter" - } + }, + "type": "zigzag32" } ] }, @@ -5508,7 +5508,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -5518,7 +5517,8 @@ "5": "set_bar_title", "6": "update_properties", "7": "texture" - } + }, + "type": "varint" } ] }, @@ -5538,34 +5538,34 @@ } ] ], - "unregister_player": [ + "set_bar_progress": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "bar_progress", + "type": "lf32" } ] ], - "show": [ + "set_bar_title": [ "container", [ { "name": "title", "type": "string" - }, - { - "name": "bar_progress", - "type": "lf32" } ] ], - "update_properties": [ + "show": [ "container", [ { - "name": "darkness_factor", - "type": "li16" + "name": "title", + "type": "string" + }, + { + "name": "bar_progress", + "type": "lf32" } ] ], @@ -5582,21 +5582,21 @@ } ] ], - "set_bar_progress": [ + "unregister_player": [ "container", [ { - "name": "bar_progress", - "type": "lf32" + "name": "player_id", + "type": "zigzag64" } ] ], - "set_bar_title": [ + "update_properties": [ "container", [ { - "name": "title", - "type": "string" + "name": "darkness_factor", + "type": "li16" } ] ] @@ -5677,8 +5677,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -5746,7 +5746,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "2": "float", @@ -5761,7 +5760,8 @@ "46": "raw_text", "50": "json", "63": "command" - } + }, + "type": "lu16" } ] }, @@ -5770,13 +5770,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -5862,10 +5862,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled" - } + }, + "type": "u8" } ] } @@ -5886,18 +5886,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], @@ -5932,6 +5932,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -5944,12 +5953,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -5962,15 +5971,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -6014,13 +6014,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -6066,10 +6066,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -6267,7 +6267,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -6278,7 +6277,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -6407,14 +6407,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -6429,23 +6429,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -6472,16 +6455,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -6501,6 +6488,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -6658,12 +6658,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -6705,12 +6705,12 @@ "type": [ "mapper", { - "type": "varint64", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint64" } ] } @@ -6804,18 +6804,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -6858,12 +6858,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -7055,11 +7055,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -7235,12 +7235,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -7284,7 +7284,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -7301,7 +7300,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -7348,14 +7348,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -7364,7 +7364,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -7376,7 +7375,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -7465,7 +7465,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -7478,7 +7478,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -7517,7 +7517,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -7547,7 +7547,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -7587,7 +7586,8 @@ "item_interact", "block_action", "item_stack_request" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -7692,13 +7692,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -7754,10 +7754,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -7775,12 +7775,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -7815,10 +7815,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -7827,12 +7827,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -7918,11 +7918,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -7994,11 +7994,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -8009,7 +8009,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -8042,7 +8041,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] diff --git a/data/bedrock/1.16.220/protocol.json b/data/bedrock/1.16.220/protocol.json index 56ccdc055..42c5f71af 100644 --- a/data/bedrock/1.16.220/protocol.json +++ b/data/bedrock/1.16.220/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -199,7 +198,8 @@ "3": "survival_spectator", "4": "creative_spectator", "5": "fallback" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -214,12 +214,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -231,8 +231,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -309,11 +309,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -323,6 +323,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -337,8 +338,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -376,11 +376,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -390,6 +390,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -404,8 +405,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -444,9 +444,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -468,6 +465,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -476,19 +480,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -507,9 +507,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -531,10 +528,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -548,6 +545,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -556,19 +560,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -650,7 +650,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -777,7 +776,8 @@ "123": "base_runtime_id", "124": "define_properties", "125": "update_properties" - } + }, + "type": "varint" } ] }, @@ -786,7 +786,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -797,7 +796,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -807,27 +807,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -838,7 +838,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -905,13 +904,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -945,7 +944,8 @@ "celebrating", "admiring", "celebrating_special" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1080,12 +1080,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1131,7 +1131,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1139,7 +1138,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1149,6 +1149,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1168,26 +1169,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1220,9 +1220,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1255,7 +1252,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1273,14 +1273,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1295,26 +1295,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1327,28 +1321,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1361,11 +1356,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1392,9 +1392,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -1407,7 +1404,10 @@ "type": "zigzag32" } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1483,7 +1483,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1493,7 +1492,8 @@ "5": "shulker_box", "6": "shapeless_chemistry", "7": "shaped_chemistry" - } + }, + "type": "zigzag32" } ] }, @@ -1504,89 +1504,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, - { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "network_id", - "type": "varint" } ] ], - "shulker_box": [ + "furnace_with_metadata": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_meta", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1594,20 +1555,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1639,7 +1614,7 @@ } ] ], - "shaped": [ + "shaped_chemistry": [ "container", [ { @@ -1698,34 +1673,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1757,50 +1718,89 @@ } ] ], - "furnace": [ + "shapeless_chemistry": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" + }, + { + "name": "priority", + "type": "zigzag32" + }, + { + "name": "network_id", + "type": "varint" } ] ], - "furnace_with_metadata": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "input_meta", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -1994,11 +1994,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2160,7 +2160,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2190,7 +2189,8 @@ "25": "interact_block", "26": "predict_break", "27": "continue_break" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2231,7 +2231,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2249,7 +2248,8 @@ "13": "optional", "14": "non_implemented", "15": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2260,24 +2260,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2287,57 +2283,50 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "swap": [ + "craft_creative": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, + "name": "recipe_network_id", + "type": "varint" + } + ] + ], + "craft_recipe_auto": [ + "container", + [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2350,25 +2339,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2389,16 +2373,8 @@ } ] ], - "craft_recipe": [ - "container", - [ - { - "name": "recipe_network_id", - "type": "varint" - } - ] - ], - "craft_recipe_auto": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2406,34 +2382,28 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_creative": [ + "place": [ "container", [ { - "name": "item_id", - "type": "varint" - } - ] - ], - "optional": [ - "container", - [ + "name": "count", + "type": "u8" + }, { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "filtered_string_index", - "type": "li32" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", "results_deprecated": [ "container", [ @@ -2452,6 +2422,36 @@ "type": "u8" } ] + ], + "swap": [ + "container", + [ + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] + ], + "take": [ + "container", + [ + { + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] ] } } @@ -2486,11 +2486,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2601,7 +2601,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2618,7 +2617,8 @@ "12": "precompiled", "13": "game_director_entity_server", "14": "script" - } + }, + "type": "varint" } ] }, @@ -2669,11 +2669,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -2711,7 +2711,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -2737,7 +2736,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -2815,7 +2815,6 @@ "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -2826,31 +2825,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -2861,31 +2860,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -2896,31 +2895,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -2956,15 +2955,15 @@ "31": "hud", "32": "jigsaw_editor", "33": "smithing_table", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3026,13 +3025,13 @@ "57": "barrel", "58": "cursor", "59": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3370,13 +3369,13 @@ "333": "BigDripleafTiltDown", "334": "BigDripleafTiltUp", "335": "Undefined" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -3478,7 +3477,8 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "mcpe_packet": [ @@ -3489,7 +3489,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -3652,7 +3651,8 @@ "162": "item_component", "163": "filter_text_packet", "164": "debug_renderer" - } + }, + "type": "varint" } ] }, @@ -3663,167 +3663,167 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "adventure_settings": "packet_adventure_settings", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "container_close": "packet_container_close", + "container_open": "packet_container_open", + "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", + "crafting_data": "packet_crafting_data", + "crafting_event": "packet_crafting_event", + "creative_content": "packet_creative_content", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "disconnect": "packet_disconnect", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", + "event": "packet_event", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "gui_data_pick_item": "packet_gui_data_pick_item", "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", - "container_close": "packet_container_close", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", - "container_set_data": "packet_container_set_data", - "crafting_data": "packet_crafting_data", - "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", + "transfer": "packet_transfer", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", + "update_block_synced": "packet_update_block_synced", + "update_equipment": "packet_update_equipment", "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer" + "update_soft_enum": "packet_update_soft_enum", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -3870,7 +3870,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -3880,7 +3879,8 @@ "5": "failed_vanilla_edu", "6": "failed_edu_vanilla", "7": "failed_server_full" - } + }, + "type": "i32" } ] } @@ -3970,14 +3970,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -3995,7 +3995,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4008,7 +4007,8 @@ "8": "announcement", "9": "json_whisper", "10": "json" - } + }, + "type": "u8" } ] }, @@ -4023,7 +4023,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4036,7 +4036,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4049,20 +4049,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_whisper": [ "container", [ { @@ -4071,25 +4067,45 @@ } ] ], - "tip": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "system": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "raw": [ "container", [ { @@ -4098,7 +4114,7 @@ } ] ], - "json": [ + "system": [ "container", [ { @@ -4107,26 +4123,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4145,22 +4151,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -4395,12 +4395,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -4680,13 +4680,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -4713,14 +4713,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -4773,14 +4773,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -4858,7 +4858,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -4948,7 +4947,8 @@ "4000": "set_data", "9800": "players_sleeping", "16384": "add_particle_mask" - } + }, + "type": "zigzag32" } ] }, @@ -4974,11 +4974,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5000,7 +5000,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -5056,7 +5055,8 @@ "73": "agent_summon", "74": "charged_item", "75": "fall" - } + }, + "type": "u8" } ] }, @@ -5078,12 +5078,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -5189,13 +5189,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -5210,8 +5210,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -5342,11 +5342,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -5372,7 +5372,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -5382,7 +5381,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -5397,7 +5397,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -5406,7 +5406,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -5569,12 +5569,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -5633,14 +5633,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "operator", "2": "host", "3": "automation", "4": "admin" - } + }, + "type": "varint" } ] }, @@ -5653,13 +5653,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "varint" } ] }, @@ -5676,34 +5676,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -5852,13 +5852,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -5876,7 +5876,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -5903,7 +5902,8 @@ "22": "honey_harvested", "23": "target_block_hit", "24": "piglin_barter" - } + }, + "type": "zigzag32" } ] }, @@ -5933,13 +5933,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -6141,7 +6141,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -6151,7 +6150,8 @@ "5": "set_bar_title", "6": "update_properties", "7": "texture" - } + }, + "type": "varint" } ] }, @@ -6162,6 +6162,33 @@ { "compareTo": "type", "fields": { + "register_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "set_bar_progress": [ + "container", + [ + { + "name": "progress", + "type": "lf32" + } + ] + ], + "set_bar_title": [ + "container", + [ + { + "name": "title", + "type": "string" + } + ] + ], "show_bar": [ "container", [ @@ -6187,12 +6214,16 @@ } ] ], - "register_player": [ + "texture": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" } ] ], @@ -6205,24 +6236,6 @@ } ] ], - "set_bar_progress": [ - "container", - [ - { - "name": "progress", - "type": "lf32" - } - ] - ], - "set_bar_title": [ - "container", - [ - { - "name": "title", - "type": "string" - } - ] - ], "update_properties": [ "container", [ @@ -6239,19 +6252,6 @@ "type": "varint" } ] - ], - "texture": [ - "container", - [ - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] ] } } @@ -6330,8 +6330,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -6399,7 +6399,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "2": "float", @@ -6414,7 +6413,8 @@ "46": "raw_text", "50": "json", "63": "command" - } + }, + "type": "lu16" } ] }, @@ -6423,13 +6423,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -6515,12 +6515,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -6541,18 +6541,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], @@ -6587,6 +6587,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -6599,12 +6608,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -6617,15 +6626,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -6669,13 +6669,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -6721,10 +6721,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -6832,7 +6832,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -6842,7 +6841,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -6937,7 +6937,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -6948,7 +6947,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -7114,14 +7114,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -7136,23 +7136,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -7179,16 +7162,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -7208,6 +7195,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -7227,7 +7227,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7236,7 +7235,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -7370,11 +7370,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -7414,12 +7414,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -7430,8 +7430,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -7469,12 +7469,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -7516,12 +7516,12 @@ "type": [ "mapper", { - "type": "varint64", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint64" } ] } @@ -7615,18 +7615,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -7637,11 +7637,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -7664,10 +7664,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -7709,12 +7709,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -7906,11 +7906,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -7993,12 +7993,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure" - } + }, + "type": "u8" } ] } @@ -8032,11 +8032,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query" - } + }, + "type": "u8" } ] } @@ -8161,12 +8161,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -8210,7 +8210,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -8227,7 +8226,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -8274,14 +8274,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -8290,7 +8290,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -8302,7 +8301,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -8391,7 +8391,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -8404,7 +8404,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -8443,7 +8443,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -8473,7 +8473,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -8513,7 +8512,8 @@ "item_interact", "block_action", "item_stack_request" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -8642,13 +8642,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -8704,10 +8704,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -8725,12 +8725,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -8765,10 +8765,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -8777,12 +8777,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -8868,11 +8868,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -8944,11 +8944,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -8959,7 +8959,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -8992,7 +8991,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] diff --git a/data/bedrock/1.17.0/protocol.json b/data/bedrock/1.17.0/protocol.json index 543ff14cf..07e95fced 100644 --- a/data/bedrock/1.17.0/protocol.json +++ b/data/bedrock/1.17.0/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -199,7 +198,8 @@ "3": "survival_spectator", "4": "creative_spectator", "5": "fallback" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -218,12 +218,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -235,8 +235,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -313,11 +313,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -327,6 +327,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -341,8 +342,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -380,11 +380,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -394,6 +394,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -408,8 +409,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -448,9 +448,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -472,6 +469,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -480,19 +484,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -511,9 +511,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -535,10 +532,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -552,6 +549,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -560,19 +564,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -654,7 +654,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -780,7 +779,8 @@ "122": "buoyancy_data", "123": "goat_horn_count", "124": "update_properties" - } + }, + "type": "varint" } ] }, @@ -789,7 +789,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -800,7 +799,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -810,27 +810,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -841,7 +841,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -908,13 +907,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -951,7 +950,8 @@ "unknown95", "ram_attack", "playing_dead" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1086,12 +1086,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1137,7 +1137,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1145,7 +1144,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1155,6 +1155,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1174,26 +1175,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1226,9 +1226,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1261,7 +1258,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1279,14 +1279,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1301,26 +1301,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1333,28 +1327,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1367,11 +1362,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1398,9 +1398,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -1413,7 +1410,10 @@ "type": "zigzag32" } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1489,7 +1489,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1499,7 +1498,8 @@ "5": "shulker_box", "6": "shapeless_chemistry", "7": "shaped_chemistry" - } + }, + "type": "zigzag32" } ] }, @@ -1510,89 +1510,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, - { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "network_id", - "type": "varint" } ] ], - "shulker_box": [ + "furnace_with_metadata": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_meta", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1600,20 +1561,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1645,7 +1620,7 @@ } ] ], - "shaped": [ + "shaped_chemistry": [ "container", [ { @@ -1704,34 +1679,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1763,50 +1724,89 @@ } ] ], - "furnace": [ + "shapeless_chemistry": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" + }, + { + "name": "priority", + "type": "zigzag32" + }, + { + "name": "network_id", + "type": "varint" } ] ], - "furnace_with_metadata": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "input_meta", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2000,11 +2000,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2166,7 +2166,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2196,7 +2195,8 @@ "25": "interact_block", "26": "predict_break", "27": "continue_break" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2237,7 +2237,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2255,7 +2254,8 @@ "13": "optional", "14": "non_implemented", "15": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2266,24 +2266,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2293,57 +2289,50 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "swap": [ + "craft_creative": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, + "name": "recipe_network_id", + "type": "varint" + } + ] + ], + "craft_recipe_auto": [ + "container", + [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2356,25 +2345,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2395,16 +2379,8 @@ } ] ], - "craft_recipe": [ - "container", - [ - { - "name": "recipe_network_id", - "type": "varint" - } - ] - ], - "craft_recipe_auto": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2412,34 +2388,28 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_creative": [ + "place": [ "container", [ { - "name": "item_id", - "type": "varint" - } - ] - ], - "optional": [ - "container", - [ + "name": "count", + "type": "u8" + }, { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "filtered_string_index", - "type": "li32" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", "results_deprecated": [ "container", [ @@ -2458,6 +2428,36 @@ "type": "u8" } ] + ], + "swap": [ + "container", + [ + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] + ], + "take": [ + "container", + [ + { + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] ] } } @@ -2492,11 +2492,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2607,7 +2607,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2624,7 +2623,8 @@ "12": "precompiled", "13": "game_director_entity_server", "14": "script" - } + }, + "type": "varint" } ] }, @@ -2675,11 +2675,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -2717,7 +2717,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -2743,7 +2742,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -2801,13 +2801,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -2816,13 +2816,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -2831,12 +2831,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -2861,7 +2861,6 @@ "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -2872,31 +2871,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -2907,31 +2906,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -2942,31 +2941,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3002,15 +3001,15 @@ "31": "hud", "32": "jigsaw_editor", "33": "smithing_table", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3072,13 +3071,13 @@ "57": "barrel", "58": "cursor", "59": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3441,13 +3440,13 @@ "358": "glow_squid_ink_squirt", "359": "convert_to_stray", "360": "Undefined" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -3549,7 +3548,8 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "mcpe_packet": [ @@ -3560,7 +3560,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -3726,7 +3725,8 @@ "165": "sync_entity_property", "166": "add_volume_entity", "167": "remove_volume_entity" - } + }, + "type": "varint" } ] }, @@ -3737,170 +3737,170 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "container_close": "packet_container_close", + "container_open": "packet_container_open", + "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", + "crafting_data": "packet_crafting_data", + "crafting_event": "packet_crafting_event", + "creative_content": "packet_creative_content", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "disconnect": "packet_disconnect", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", + "event": "packet_event", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "gui_data_pick_item": "packet_gui_data_pick_item", "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", - "container_close": "packet_container_close", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", - "container_set_data": "packet_container_set_data", - "crafting_data": "packet_crafting_data", - "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", + "transfer": "packet_transfer", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", + "update_block_synced": "packet_update_block_synced", + "update_equipment": "packet_update_equipment", "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity" + "update_soft_enum": "packet_update_soft_enum", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -3947,7 +3947,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -3957,7 +3956,8 @@ "5": "failed_vanilla_edu", "6": "failed_edu_vanilla", "7": "failed_server_full" - } + }, + "type": "i32" } ] } @@ -4047,14 +4047,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4072,7 +4072,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4085,7 +4084,8 @@ "8": "announcement", "9": "json_whisper", "10": "json" - } + }, + "type": "u8" } ] }, @@ -4100,7 +4100,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4113,7 +4113,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4126,20 +4126,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_whisper": [ "container", [ { @@ -4148,25 +4144,45 @@ } ] ], - "tip": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "system": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "raw": [ "container", [ { @@ -4175,7 +4191,7 @@ } ] ], - "json": [ + "system": [ "container", [ { @@ -4184,26 +4200,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4222,22 +4228,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -4472,12 +4472,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -4761,13 +4761,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -4794,14 +4794,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -4854,14 +4854,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -4939,7 +4939,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5029,7 +5028,8 @@ "4000": "set_data", "9800": "players_sleeping", "16384": "add_particle_mask" - } + }, + "type": "zigzag32" } ] }, @@ -5055,11 +5055,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5081,7 +5081,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -5137,7 +5136,8 @@ "73": "agent_summon", "74": "charged_item", "75": "fall" - } + }, + "type": "u8" } ] }, @@ -5159,12 +5159,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -5270,13 +5270,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -5291,8 +5291,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -5423,11 +5423,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -5453,7 +5453,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -5463,7 +5462,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -5478,7 +5478,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -5487,7 +5487,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -5650,12 +5650,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -5714,14 +5714,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "operator", "2": "host", "3": "automation", "4": "admin" - } + }, + "type": "varint" } ] }, @@ -5734,13 +5734,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "varint" } ] }, @@ -5757,34 +5757,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -5933,13 +5933,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -5957,7 +5957,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -5985,7 +5984,8 @@ "23": "target_block_hit", "24": "piglin_barter", "25": "waxed_or_unwaxed_copper" - } + }, + "type": "zigzag32" } ] }, @@ -6015,13 +6015,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -6223,7 +6223,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -6233,7 +6232,8 @@ "5": "set_bar_title", "6": "update_properties", "7": "texture" - } + }, + "type": "varint" } ] }, @@ -6244,6 +6244,33 @@ { "compareTo": "type", "fields": { + "register_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "set_bar_progress": [ + "container", + [ + { + "name": "progress", + "type": "lf32" + } + ] + ], + "set_bar_title": [ + "container", + [ + { + "name": "title", + "type": "string" + } + ] + ], "show_bar": [ "container", [ @@ -6269,12 +6296,16 @@ } ] ], - "register_player": [ + "texture": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" } ] ], @@ -6287,24 +6318,6 @@ } ] ], - "set_bar_progress": [ - "container", - [ - { - "name": "progress", - "type": "lf32" - } - ] - ], - "set_bar_title": [ - "container", - [ - { - "name": "title", - "type": "string" - } - ] - ], "update_properties": [ "container", [ @@ -6321,19 +6334,6 @@ "type": "varint" } ] - ], - "texture": [ - "container", - [ - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] ] } } @@ -6412,8 +6412,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -6481,7 +6481,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "2": "float", @@ -6496,7 +6495,8 @@ "46": "raw_text", "50": "json", "63": "command" - } + }, + "type": "lu16" } ] }, @@ -6505,13 +6505,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -6597,12 +6597,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -6623,18 +6623,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], @@ -6669,6 +6669,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -6681,12 +6690,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -6699,15 +6708,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -6751,13 +6751,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -6803,10 +6803,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -6914,7 +6914,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -6924,7 +6923,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -7019,7 +7019,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -7030,7 +7029,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -7196,14 +7196,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -7218,23 +7218,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -7261,16 +7244,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -7290,6 +7277,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -7309,7 +7309,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7318,7 +7317,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -7452,11 +7452,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -7496,12 +7496,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -7512,8 +7512,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -7551,12 +7551,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -7598,12 +7598,12 @@ "type": [ "mapper", { - "type": "varint64", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint64" } ] } @@ -7697,18 +7697,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -7719,11 +7719,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -7746,10 +7746,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -7791,12 +7791,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -7988,11 +7988,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -8075,12 +8075,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure" - } + }, + "type": "u8" } ] } @@ -8114,11 +8114,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query" - } + }, + "type": "u8" } ] } @@ -8243,12 +8243,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -8292,7 +8292,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -8309,7 +8308,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -8356,14 +8356,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -8372,7 +8372,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -8384,7 +8383,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -8473,7 +8473,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -8486,7 +8486,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -8525,7 +8525,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -8555,7 +8555,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -8595,7 +8594,8 @@ "item_interact", "block_action", "item_stack_request" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -8724,13 +8724,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -8786,10 +8786,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -8807,12 +8807,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -8847,10 +8847,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -8859,12 +8859,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -8950,11 +8950,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -9026,11 +9026,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -9041,7 +9041,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -9074,7 +9073,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] diff --git a/data/bedrock/1.17.10/protocol.json b/data/bedrock/1.17.10/protocol.json index 7b8b0a3a4..628d15503 100644 --- a/data/bedrock/1.17.10/protocol.json +++ b/data/bedrock/1.17.10/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -199,7 +198,8 @@ "3": "survival_spectator", "4": "creative_spectator", "5": "fallback" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -218,12 +218,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -235,8 +235,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -313,11 +313,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -327,6 +327,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -341,8 +342,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -380,11 +380,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -394,6 +394,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -408,8 +409,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -448,9 +448,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -472,6 +469,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -480,19 +484,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -511,9 +511,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -535,10 +532,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -552,6 +549,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -560,19 +564,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -654,7 +654,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -780,7 +779,8 @@ "122": "buoyancy_data", "123": "goat_horn_count", "124": "update_properties" - } + }, + "type": "varint" } ] }, @@ -789,7 +789,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -800,7 +799,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -810,27 +810,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -841,7 +841,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -908,13 +907,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -951,7 +950,8 @@ "unknown95", "ram_attack", "playing_dead" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1086,12 +1086,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1137,7 +1137,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1145,7 +1144,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1155,6 +1155,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1174,26 +1175,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1226,9 +1226,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1261,7 +1258,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1279,14 +1279,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1301,26 +1301,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1333,28 +1327,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1367,11 +1362,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1398,9 +1398,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -1413,7 +1410,10 @@ "type": "zigzag32" } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1489,7 +1489,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1499,7 +1498,8 @@ "5": "shulker_box", "6": "shapeless_chemistry", "7": "shaped_chemistry" - } + }, + "type": "zigzag32" } ] }, @@ -1510,89 +1510,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, - { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "network_id", - "type": "varint" } ] ], - "shulker_box": [ + "furnace_with_metadata": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_meta", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1600,20 +1561,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1645,7 +1620,7 @@ } ] ], - "shaped": [ + "shaped_chemistry": [ "container", [ { @@ -1704,34 +1679,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1763,50 +1724,89 @@ } ] ], - "furnace": [ + "shapeless_chemistry": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" + }, + { + "name": "priority", + "type": "zigzag32" + }, + { + "name": "network_id", + "type": "varint" } ] ], - "furnace_with_metadata": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "input_meta", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2000,11 +2000,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2166,7 +2166,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2196,7 +2195,8 @@ "25": "interact_block", "26": "predict_break", "27": "continue_break" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2237,7 +2237,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2255,7 +2254,8 @@ "13": "optional", "14": "non_implemented", "15": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2266,24 +2266,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2293,57 +2289,50 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "swap": [ + "craft_creative": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, + "name": "recipe_network_id", + "type": "varint" + } + ] + ], + "craft_recipe_auto": [ + "container", + [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2356,25 +2345,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2395,16 +2379,8 @@ } ] ], - "craft_recipe": [ - "container", - [ - { - "name": "recipe_network_id", - "type": "varint" - } - ] - ], - "craft_recipe_auto": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2412,34 +2388,28 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_creative": [ + "place": [ "container", [ { - "name": "item_id", - "type": "varint" - } - ] - ], - "optional": [ - "container", - [ + "name": "count", + "type": "u8" + }, { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "filtered_string_index", - "type": "li32" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", "results_deprecated": [ "container", [ @@ -2458,6 +2428,36 @@ "type": "u8" } ] + ], + "swap": [ + "container", + [ + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] + ], + "take": [ + "container", + [ + { + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] ] } } @@ -2492,11 +2492,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2607,7 +2607,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2624,7 +2623,8 @@ "12": "precompiled", "13": "game_director_entity_server", "14": "script" - } + }, + "type": "varint" } ] }, @@ -2675,11 +2675,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -2717,7 +2717,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -2743,7 +2742,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -2801,13 +2801,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -2816,13 +2816,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -2831,12 +2831,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -2861,7 +2861,6 @@ "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -2872,31 +2871,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -2907,31 +2906,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -2942,31 +2941,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3002,15 +3001,15 @@ "31": "hud", "32": "jigsaw_editor", "33": "smithing_table", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3072,13 +3071,13 @@ "57": "barrel", "58": "cursor", "59": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3443,13 +3442,13 @@ "360": "extinguish_candle", "361": "ambient_candle", "362": "Undefined" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -3551,7 +3550,8 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "mcpe_packet": [ @@ -3562,7 +3562,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -3730,7 +3729,8 @@ "167": "remove_volume_entity", "168": "simulation_type", "169": "npc_dialogue" - } + }, + "type": "varint" } ] }, @@ -3741,172 +3741,172 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "creative_content": "packet_creative_content", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "disconnect": "packet_disconnect", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", + "transfer": "packet_transfer", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", + "update_block_synced": "packet_update_block_synced", + "update_equipment": "packet_update_equipment", "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue" + "update_soft_enum": "packet_update_soft_enum", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -3953,7 +3953,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -3963,7 +3962,8 @@ "5": "failed_vanilla_edu", "6": "failed_edu_vanilla", "7": "failed_server_full" - } + }, + "type": "i32" } ] } @@ -4057,14 +4057,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4082,7 +4082,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4095,7 +4094,8 @@ "8": "announcement", "9": "json_whisper", "10": "json" - } + }, + "type": "u8" } ] }, @@ -4110,7 +4110,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4123,7 +4123,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4136,20 +4136,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_whisper": [ "container", [ { @@ -4158,25 +4154,45 @@ } ] ], - "tip": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "system": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "raw": [ "container", [ { @@ -4185,7 +4201,7 @@ } ] ], - "json": [ + "system": [ "container", [ { @@ -4194,26 +4210,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4232,22 +4238,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -4482,12 +4482,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -4771,13 +4771,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -4804,14 +4804,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -4864,14 +4864,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -4949,7 +4949,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5119,7 +5118,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -5145,11 +5145,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5171,7 +5171,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -5227,7 +5226,8 @@ "73": "agent_summon", "74": "charged_item", "75": "fall" - } + }, + "type": "u8" } ] }, @@ -5249,12 +5249,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -5360,13 +5360,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -5381,8 +5381,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -5513,11 +5513,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -5543,7 +5543,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -5553,7 +5552,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -5568,7 +5568,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -5577,7 +5577,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -5740,12 +5740,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -5804,14 +5804,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "operator", "2": "host", "3": "automation", "4": "admin" - } + }, + "type": "varint" } ] }, @@ -5824,13 +5824,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "varint" } ] }, @@ -5847,34 +5847,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6023,13 +6023,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6047,7 +6047,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6075,7 +6074,8 @@ "23": "target_block_hit", "24": "piglin_barter", "25": "waxed_or_unwaxed_copper" - } + }, + "type": "zigzag32" } ] }, @@ -6105,13 +6105,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -6313,7 +6313,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -6323,7 +6322,8 @@ "5": "set_bar_title", "6": "update_properties", "7": "texture" - } + }, + "type": "varint" } ] }, @@ -6334,6 +6334,33 @@ { "compareTo": "type", "fields": { + "register_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "set_bar_progress": [ + "container", + [ + { + "name": "progress", + "type": "lf32" + } + ] + ], + "set_bar_title": [ + "container", + [ + { + "name": "title", + "type": "string" + } + ] + ], "show_bar": [ "container", [ @@ -6359,12 +6386,16 @@ } ] ], - "register_player": [ + "texture": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" } ] ], @@ -6377,24 +6408,6 @@ } ] ], - "set_bar_progress": [ - "container", - [ - { - "name": "progress", - "type": "lf32" - } - ] - ], - "set_bar_title": [ - "container", - [ - { - "name": "title", - "type": "string" - } - ] - ], "update_properties": [ "container", [ @@ -6411,19 +6424,6 @@ "type": "varint" } ] - ], - "texture": [ - "container", - [ - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] ] } } @@ -6502,8 +6502,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -6571,7 +6571,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "2": "float", @@ -6586,7 +6585,8 @@ "46": "raw_text", "50": "json", "63": "command" - } + }, + "type": "lu16" } ] }, @@ -6595,13 +6595,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -6687,12 +6687,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -6713,18 +6713,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], @@ -6759,6 +6759,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -6771,12 +6780,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -6789,15 +6798,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -6841,13 +6841,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -6893,10 +6893,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7004,7 +7004,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7014,7 +7013,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -7109,7 +7109,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -7120,7 +7119,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -7294,14 +7294,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -7316,23 +7316,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -7359,16 +7342,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -7388,6 +7375,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -7407,7 +7407,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7416,7 +7415,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -7429,7 +7429,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7438,7 +7437,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -7568,11 +7568,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -7612,12 +7612,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -7628,8 +7628,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -7667,12 +7667,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -7714,12 +7714,12 @@ "type": [ "mapper", { - "type": "varint64", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint64" } ] } @@ -7813,18 +7813,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -7835,11 +7835,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -7862,10 +7862,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -7907,12 +7907,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -8104,11 +8104,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -8191,12 +8191,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure" - } + }, + "type": "u8" } ] } @@ -8230,11 +8230,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query" - } + }, + "type": "u8" } ] } @@ -8359,12 +8359,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -8408,7 +8408,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -8425,7 +8424,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -8472,14 +8472,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -8488,7 +8488,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -8500,7 +8499,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -8589,7 +8589,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -8602,7 +8602,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -8641,7 +8641,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -8671,7 +8671,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -8711,7 +8710,8 @@ "item_interact", "block_action", "item_stack_request" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -8840,13 +8840,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -8902,10 +8902,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -8923,12 +8923,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -8963,10 +8963,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -8975,12 +8975,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -9066,11 +9066,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -9142,11 +9142,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -9157,7 +9157,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -9190,7 +9189,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -9236,13 +9236,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -9260,11 +9260,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, diff --git a/data/bedrock/1.17.30/protocol.json b/data/bedrock/1.17.30/protocol.json index a57e3b331..1229cec17 100644 --- a/data/bedrock/1.17.30/protocol.json +++ b/data/bedrock/1.17.30/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -199,7 +198,8 @@ "3": "survival_spectator", "4": "creative_spectator", "5": "fallback" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -218,12 +218,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -235,8 +235,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -313,11 +313,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -327,6 +327,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -341,8 +342,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -380,11 +380,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -394,6 +394,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -408,8 +409,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -448,9 +448,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -472,6 +469,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -480,19 +484,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -511,9 +511,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -535,10 +532,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -552,6 +549,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -560,19 +564,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -654,7 +654,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -780,7 +779,8 @@ "122": "buoyancy_data", "123": "goat_horn_count", "124": "update_properties" - } + }, + "type": "varint" } ] }, @@ -789,7 +789,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -800,7 +799,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -810,27 +810,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -841,7 +841,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -908,13 +907,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -951,7 +950,8 @@ "unknown95", "ram_attack", "playing_dead" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1086,12 +1086,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1137,7 +1137,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1145,7 +1144,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1155,6 +1155,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1174,26 +1175,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1226,9 +1226,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1261,7 +1258,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1279,14 +1279,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1301,26 +1301,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1333,28 +1327,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1367,11 +1362,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1398,9 +1398,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -1413,7 +1410,10 @@ "type": "zigzag32" } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1489,7 +1489,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1499,7 +1498,8 @@ "5": "shulker_box", "6": "shapeless_chemistry", "7": "shaped_chemistry" - } + }, + "type": "zigzag32" } ] }, @@ -1510,89 +1510,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, - { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "network_id", - "type": "varint" } ] ], - "shulker_box": [ + "furnace_with_metadata": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_meta", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1600,20 +1561,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1645,7 +1620,7 @@ } ] ], - "shaped": [ + "shaped_chemistry": [ "container", [ { @@ -1704,34 +1679,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1763,50 +1724,89 @@ } ] ], - "furnace": [ + "shapeless_chemistry": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" + }, + { + "name": "priority", + "type": "zigzag32" + }, + { + "name": "network_id", + "type": "varint" } ] ], - "furnace_with_metadata": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "input_meta", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2008,11 +2008,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2174,7 +2174,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2204,7 +2203,8 @@ "25": "interact_block", "26": "predict_break", "27": "continue_break" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2245,7 +2245,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2263,7 +2262,8 @@ "13": "optional", "14": "non_implemented", "15": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2274,24 +2274,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2301,57 +2297,50 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "swap": [ + "craft_creative": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, + "name": "recipe_network_id", + "type": "varint" + } + ] + ], + "craft_recipe_auto": [ + "container", + [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2364,25 +2353,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2403,16 +2387,8 @@ } ] ], - "craft_recipe": [ - "container", - [ - { - "name": "recipe_network_id", - "type": "varint" - } - ] - ], - "craft_recipe_auto": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2420,34 +2396,28 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_creative": [ + "place": [ "container", [ { - "name": "item_id", - "type": "varint" - } - ] - ], - "optional": [ - "container", - [ + "name": "count", + "type": "u8" + }, { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "filtered_string_index", - "type": "li32" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", "results_deprecated": [ "container", [ @@ -2466,6 +2436,36 @@ "type": "u8" } ] + ], + "swap": [ + "container", + [ + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] + ], + "take": [ + "container", + [ + { + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] ] } } @@ -2500,11 +2500,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2615,7 +2615,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2632,7 +2631,8 @@ "12": "precompiled", "13": "game_director_entity_server", "14": "script" - } + }, + "type": "varint" } ] }, @@ -2683,11 +2683,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -2725,7 +2725,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -2751,7 +2750,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -2809,13 +2809,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -2824,13 +2824,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -2839,12 +2839,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -2916,12 +2916,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -2955,7 +2955,6 @@ "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -2966,31 +2965,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3001,31 +3000,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3036,31 +3035,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3096,15 +3095,15 @@ "31": "hud", "32": "jigsaw_editor", "33": "smithing_table", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3166,13 +3165,13 @@ "57": "barrel", "58": "cursor", "59": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3537,13 +3536,13 @@ "360": "extinguish_candle", "361": "ambient_candle", "362": "Undefined" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -3645,7 +3644,8 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "mcpe_packet": [ @@ -3656,7 +3656,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -3828,7 +3827,8 @@ "171": "create_photo", "172": "update_subchunk_blocks", "173": "photo_info_request" - } + }, + "type": "varint" } ] }, @@ -3839,176 +3839,176 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "disconnect": "packet_disconnect", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", + "transfer": "packet_transfer", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", + "update_block_synced": "packet_update_block_synced", + "update_equipment": "packet_update_equipment", "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", + "update_soft_enum": "packet_update_soft_enum", "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request" + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4055,7 +4055,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4065,7 +4064,8 @@ "5": "failed_vanilla_edu", "6": "failed_edu_vanilla", "7": "failed_server_full" - } + }, + "type": "i32" } ] } @@ -4159,14 +4159,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4184,7 +4184,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4197,7 +4196,8 @@ "8": "announcement", "9": "json_whisper", "10": "json" - } + }, + "type": "u8" } ] }, @@ -4212,7 +4212,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4225,7 +4225,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4238,20 +4238,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_whisper": [ "container", [ { @@ -4260,25 +4256,45 @@ } ] ], - "tip": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "system": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "raw": [ "container", [ { @@ -4287,7 +4303,7 @@ } ] ], - "json": [ + "system": [ "container", [ { @@ -4296,26 +4312,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4334,22 +4340,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -4588,12 +4588,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -4877,13 +4877,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -4910,14 +4910,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -4970,14 +4970,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5055,7 +5055,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5225,7 +5224,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -5251,11 +5251,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5277,7 +5277,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -5333,7 +5332,8 @@ "73": "agent_summon", "74": "charged_item", "75": "fall" - } + }, + "type": "u8" } ] }, @@ -5355,12 +5355,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -5466,13 +5466,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -5487,8 +5487,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -5631,11 +5631,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -5661,7 +5661,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -5671,7 +5670,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -5686,7 +5686,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -5695,7 +5695,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -5868,12 +5868,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -5932,14 +5932,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "operator", "2": "host", "3": "automation", "4": "admin" - } + }, + "type": "varint" } ] }, @@ -5952,13 +5952,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "varint" } ] }, @@ -5975,34 +5975,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6151,13 +6151,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6175,7 +6175,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6203,7 +6202,8 @@ "23": "target_block_hit", "24": "piglin_barter", "25": "waxed_or_unwaxed_copper" - } + }, + "type": "zigzag32" } ] }, @@ -6233,13 +6233,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -6441,7 +6441,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -6451,7 +6450,8 @@ "5": "set_bar_title", "6": "update_properties", "7": "texture" - } + }, + "type": "varint" } ] }, @@ -6462,6 +6462,33 @@ { "compareTo": "type", "fields": { + "register_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "set_bar_progress": [ + "container", + [ + { + "name": "progress", + "type": "lf32" + } + ] + ], + "set_bar_title": [ + "container", + [ + { + "name": "title", + "type": "string" + } + ] + ], "show_bar": [ "container", [ @@ -6487,12 +6514,16 @@ } ] ], - "register_player": [ + "texture": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" } ] ], @@ -6505,24 +6536,6 @@ } ] ], - "set_bar_progress": [ - "container", - [ - { - "name": "progress", - "type": "lf32" - } - ] - ], - "set_bar_title": [ - "container", - [ - { - "name": "title", - "type": "string" - } - ] - ], "update_properties": [ "container", [ @@ -6539,19 +6552,6 @@ "type": "varint" } ] - ], - "texture": [ - "container", - [ - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] ] } } @@ -6630,8 +6630,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -6699,7 +6699,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "2": "float", @@ -6714,7 +6713,8 @@ "46": "raw_text", "50": "json", "63": "command" - } + }, + "type": "lu16" } ] }, @@ -6723,13 +6723,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -6815,12 +6815,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -6841,23 +6841,23 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], @@ -6892,6 +6892,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -6904,12 +6913,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -6922,15 +6931,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -6974,13 +6974,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7026,10 +7026,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7137,7 +7137,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7147,7 +7146,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -7242,7 +7242,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -7253,7 +7252,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -7427,14 +7427,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -7449,23 +7449,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -7492,16 +7475,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -7521,6 +7508,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -7540,7 +7540,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7549,7 +7548,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -7562,7 +7562,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7571,7 +7570,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -7717,11 +7717,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -7761,12 +7761,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -7777,8 +7777,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -7816,12 +7816,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -7863,12 +7863,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -7962,18 +7962,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -7984,11 +7984,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8011,10 +8011,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8056,12 +8056,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -8253,11 +8253,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -8340,12 +8340,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure" - } + }, + "type": "u8" } ] } @@ -8379,11 +8379,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query" - } + }, + "type": "u8" } ] } @@ -8580,12 +8580,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -8629,7 +8629,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -8646,7 +8645,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -8693,14 +8693,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -8709,7 +8709,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -8721,7 +8720,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -8810,7 +8810,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -8823,7 +8823,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -8862,7 +8862,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -8892,7 +8892,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -8932,7 +8931,8 @@ "item_interact", "block_action", "item_stack_request" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -9061,13 +9061,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -9123,10 +9123,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -9144,12 +9144,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -9184,10 +9184,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -9196,12 +9196,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -9291,11 +9291,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -9367,11 +9367,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -9382,7 +9382,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -9415,7 +9414,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -9465,13 +9465,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -9489,11 +9489,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, diff --git a/data/bedrock/1.17.40/protocol.json b/data/bedrock/1.17.40/protocol.json index f24e51dd5..568800d2f 100644 --- a/data/bedrock/1.17.40/protocol.json +++ b/data/bedrock/1.17.40/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -199,7 +198,8 @@ "3": "survival_spectator", "4": "creative_spectator", "5": "fallback" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -218,12 +218,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -235,8 +235,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -313,11 +313,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -327,6 +327,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -341,8 +342,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -380,11 +380,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -394,6 +394,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -408,8 +409,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -448,9 +448,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -472,6 +469,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -480,19 +484,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -511,9 +511,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -535,10 +532,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -552,6 +549,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -560,19 +564,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -654,7 +654,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -780,7 +779,8 @@ "122": "buoyancy_data", "123": "goat_horn_count", "124": "update_properties" - } + }, + "type": "varint" } ] }, @@ -789,7 +789,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -800,7 +799,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -810,27 +810,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -841,7 +841,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -908,13 +907,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -951,7 +950,8 @@ "unknown95", "ram_attack", "playing_dead" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1086,12 +1086,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1137,7 +1137,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1145,7 +1144,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1155,6 +1155,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1174,26 +1175,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1226,9 +1226,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1261,7 +1258,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1279,14 +1279,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1301,26 +1301,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1333,28 +1327,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1367,11 +1362,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1398,9 +1398,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -1413,7 +1410,10 @@ "type": "zigzag32" } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1489,7 +1489,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1499,7 +1498,8 @@ "5": "shulker_box", "6": "shapeless_chemistry", "7": "shaped_chemistry" - } + }, + "type": "zigzag32" } ] }, @@ -1510,89 +1510,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, - { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "network_id", - "type": "varint" } ] ], - "shulker_box": [ + "furnace_with_metadata": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_meta", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1600,20 +1561,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1645,7 +1620,7 @@ } ] ], - "shaped": [ + "shaped_chemistry": [ "container", [ { @@ -1704,34 +1679,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1763,50 +1724,89 @@ } ] ], - "furnace": [ + "shapeless_chemistry": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" + }, + { + "name": "priority", + "type": "zigzag32" + }, + { + "name": "network_id", + "type": "varint" } ] ], - "furnace_with_metadata": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "input_meta", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2008,11 +2008,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2174,7 +2174,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2204,7 +2203,8 @@ "25": "interact_block", "26": "predict_break", "27": "continue_break" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2245,7 +2245,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2265,7 +2264,8 @@ "15": "craft_loom_request", "16": "non_implemented", "17": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2276,24 +2276,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2303,66 +2299,59 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "swap": [ + "craft_creative": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "drop": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "cost", + "type": "varint" } ] ], - "destroy": [ + "craft_loom_request": [ "container", [ { - "name": "count", - "type": "u8" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "consume": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], @@ -2375,67 +2364,54 @@ } ] ], - "beacon_payment": [ + "destroy": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "mine_block": [ + "drop": [ "container", [ { - "name": "hotbar_slot", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "predicted_durability", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "network_id", - "type": "zigzag32" - } - ] - ], - "craft_recipe": [ - "container", - [ - { - "name": "recipe_network_id", - "type": "varint" + "name": "randomly", + "type": "bool" } ] ], - "craft_recipe_auto": [ + "mine_block": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "hotbar_slot", + "type": "zigzag32" }, { - "name": "times_crafted", - "type": "u8" - } - ] - ], - "craft_creative": [ - "container", - [ + "name": "predicted_durability", + "type": "zigzag32" + }, { - "name": "item_id", - "type": "varint" + "name": "network_id", + "type": "zigzag32" } ] ], + "non_implemented": "void", "optional": [ "container", [ @@ -2449,29 +2425,23 @@ } ] ], - "craft_grindstone_request": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "cost", - "type": "varint" - } - ] - ], - "craft_loom_request": [ - "container", - [ + "name": "source", + "type": "StackRequestSlotInfo" + }, { - "name": "pattern", - "type": "string" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", "results_deprecated": [ "container", [ @@ -2490,6 +2460,36 @@ "type": "u8" } ] + ], + "swap": [ + "container", + [ + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] + ], + "take": [ + "container", + [ + { + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] ] } } @@ -2524,11 +2524,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2639,7 +2639,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2656,7 +2655,8 @@ "12": "precompiled", "13": "game_director_entity_server", "14": "script" - } + }, + "type": "varint" } ] }, @@ -2707,11 +2707,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -2749,7 +2749,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -2775,7 +2774,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -2833,13 +2833,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -2848,13 +2848,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -2863,12 +2863,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -2940,12 +2940,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -2979,7 +2979,6 @@ "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -2990,31 +2989,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3025,31 +3024,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3060,31 +3059,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3120,15 +3119,15 @@ "31": "hud", "32": "jigsaw_editor", "33": "smithing_table", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3190,13 +3189,13 @@ "57": "barrel", "58": "cursor", "59": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3561,13 +3560,13 @@ "360": "extinguish_candle", "361": "ambient_candle", "362": "Undefined" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -3669,7 +3668,8 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "mcpe_packet": [ @@ -3680,7 +3680,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -3854,7 +3853,8 @@ "173": "photo_info_request", "174": "subchunk", "175": "subchunk_request" - } + }, + "type": "varint" } ] }, @@ -3865,178 +3865,178 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "disconnect": "packet_disconnect", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", + "subchunk": "packet_subchunk", + "subchunk_request": "packet_subchunk_request", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", + "transfer": "packet_transfer", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", + "update_block_synced": "packet_update_block_synced", + "update_equipment": "packet_update_equipment", "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", + "update_soft_enum": "packet_update_soft_enum", "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", - "subchunk": "packet_subchunk", - "subchunk_request": "packet_subchunk_request" + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4083,7 +4083,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4093,7 +4092,8 @@ "5": "failed_vanilla_edu", "6": "failed_edu_vanilla", "7": "failed_server_full" - } + }, + "type": "i32" } ] } @@ -4187,14 +4187,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4212,7 +4212,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4225,7 +4224,8 @@ "8": "announcement", "9": "json_whisper", "10": "json" - } + }, + "type": "u8" } ] }, @@ -4240,7 +4240,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4253,7 +4253,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4266,20 +4266,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_whisper": [ "container", [ { @@ -4288,25 +4284,45 @@ } ] ], - "tip": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "system": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "raw": [ "container", [ { @@ -4315,7 +4331,7 @@ } ] ], - "json": [ + "system": [ "container", [ { @@ -4324,26 +4340,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4362,22 +4368,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -4616,12 +4616,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -4905,13 +4905,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -4938,14 +4938,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -4998,14 +4998,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5083,7 +5083,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5256,7 +5255,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -5282,11 +5282,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5308,7 +5308,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -5364,7 +5363,8 @@ "73": "agent_summon", "74": "charged_item", "75": "fall" - } + }, + "type": "u8" } ] }, @@ -5386,12 +5386,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -5497,13 +5497,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -5518,8 +5518,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -5662,11 +5662,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -5692,7 +5692,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -5702,7 +5701,8 @@ "5": "magic_critical_hit", "6": "row_right", "7": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -5870,12 +5870,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -5934,14 +5934,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "operator", "2": "host", "3": "automation", "4": "admin" - } + }, + "type": "varint" } ] }, @@ -5954,13 +5954,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "varint" } ] }, @@ -5977,34 +5977,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6153,13 +6153,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6177,7 +6177,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6205,7 +6204,8 @@ "23": "target_block_hit", "24": "piglin_barter", "25": "waxed_or_unwaxed_copper" - } + }, + "type": "zigzag32" } ] }, @@ -6235,13 +6235,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -6443,7 +6443,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -6453,7 +6452,8 @@ "5": "set_bar_title", "6": "update_properties", "7": "texture" - } + }, + "type": "varint" } ] }, @@ -6464,6 +6464,33 @@ { "compareTo": "type", "fields": { + "register_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "set_bar_progress": [ + "container", + [ + { + "name": "progress", + "type": "lf32" + } + ] + ], + "set_bar_title": [ + "container", + [ + { + "name": "title", + "type": "string" + } + ] + ], "show_bar": [ "container", [ @@ -6489,12 +6516,16 @@ } ] ], - "register_player": [ + "texture": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" } ] ], @@ -6507,24 +6538,6 @@ } ] ], - "set_bar_progress": [ - "container", - [ - { - "name": "progress", - "type": "lf32" - } - ] - ], - "set_bar_title": [ - "container", - [ - { - "name": "title", - "type": "string" - } - ] - ], "update_properties": [ "container", [ @@ -6541,19 +6554,6 @@ "type": "varint" } ] - ], - "texture": [ - "container", - [ - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] ] } } @@ -6632,8 +6632,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -6701,7 +6701,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "2": "float", @@ -6716,7 +6715,8 @@ "46": "raw_text", "50": "json", "63": "command" - } + }, + "type": "lu16" } ] }, @@ -6725,13 +6725,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -6817,12 +6817,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -6843,23 +6843,23 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], @@ -6894,6 +6894,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -6906,12 +6915,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -6924,15 +6933,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -6976,13 +6976,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7028,10 +7028,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7139,7 +7139,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7149,7 +7148,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -7244,7 +7244,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -7255,7 +7254,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -7429,14 +7429,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -7451,23 +7451,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -7494,16 +7477,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -7523,6 +7510,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -7542,7 +7542,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7551,7 +7550,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -7564,7 +7564,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7573,7 +7572,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -7719,11 +7719,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -7763,12 +7763,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -7779,8 +7779,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -7818,12 +7818,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -7865,12 +7865,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -7964,18 +7964,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -7986,11 +7986,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8013,10 +8013,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8058,12 +8058,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -8255,11 +8255,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -8342,12 +8342,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure" - } + }, + "type": "u8" } ] } @@ -8381,11 +8381,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query" - } + }, + "type": "u8" } ] } @@ -8582,12 +8582,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -8631,7 +8631,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -8648,7 +8647,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -8695,14 +8695,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -8711,7 +8711,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -8723,7 +8722,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -8812,7 +8812,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -8825,7 +8825,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -8864,7 +8864,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -8894,7 +8894,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -8934,7 +8933,8 @@ "item_interact", "block_action", "item_stack_request" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -9063,13 +9063,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -9125,10 +9125,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -9146,12 +9146,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -9186,10 +9186,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -9198,12 +9198,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -9293,11 +9293,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -9369,11 +9369,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -9384,7 +9384,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -9417,7 +9416,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -9467,13 +9467,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -9491,11 +9491,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -9617,7 +9617,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "undefined", "1": "success", @@ -9625,7 +9624,8 @@ "3": "invalid_dimension", "4": "player_not_found", "5": "y_index_out_of_bounds" - } + }, + "type": "zigzag32" } ] }, @@ -9634,13 +9634,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, diff --git a/data/bedrock/1.18.0/protocol.json b/data/bedrock/1.18.0/protocol.json index b9f1ff203..881faf0a5 100644 --- a/data/bedrock/1.18.0/protocol.json +++ b/data/bedrock/1.18.0/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -199,7 +198,8 @@ "3": "survival_spectator", "4": "creative_spectator", "5": "fallback" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -218,12 +218,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -235,8 +235,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -313,11 +313,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -327,6 +327,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -341,8 +342,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -380,11 +380,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -394,6 +394,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -408,8 +409,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -448,9 +448,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -472,6 +469,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -480,19 +484,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -511,9 +511,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -535,10 +532,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -552,6 +549,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -560,19 +564,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -654,7 +654,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -780,7 +779,8 @@ "122": "buoyancy_data", "123": "goat_horn_count", "124": "update_properties" - } + }, + "type": "varint" } ] }, @@ -789,7 +789,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -800,7 +799,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -810,27 +810,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -841,7 +841,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -908,13 +907,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -951,7 +950,8 @@ "unknown95", "ram_attack", "playing_dead" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1086,12 +1086,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1137,7 +1137,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1145,7 +1144,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1155,6 +1155,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1174,26 +1175,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1226,9 +1226,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1261,7 +1258,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1279,14 +1279,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1301,26 +1301,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1333,28 +1327,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1367,11 +1362,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1398,9 +1398,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -1413,7 +1410,10 @@ "type": "zigzag32" } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1489,7 +1489,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1499,7 +1498,8 @@ "5": "shulker_box", "6": "shapeless_chemistry", "7": "shaped_chemistry" - } + }, + "type": "zigzag32" } ] }, @@ -1510,89 +1510,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, - { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "network_id", - "type": "varint" } ] ], - "shulker_box": [ + "furnace_with_metadata": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_meta", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1600,20 +1561,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1645,7 +1620,7 @@ } ] ], - "shaped": [ + "shaped_chemistry": [ "container", [ { @@ -1704,34 +1679,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1763,50 +1724,89 @@ } ] ], - "furnace": [ + "shapeless_chemistry": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" + }, + { + "name": "priority", + "type": "zigzag32" + }, + { + "name": "network_id", + "type": "varint" } ] ], - "furnace_with_metadata": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "input_meta", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2008,11 +2008,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2174,7 +2174,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2204,7 +2203,8 @@ "25": "interact_block", "26": "predict_break", "27": "continue_break" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2245,7 +2245,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2265,7 +2264,8 @@ "15": "craft_loom_request", "16": "non_implemented", "17": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2276,24 +2276,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2303,66 +2299,59 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "swap": [ + "craft_creative": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "drop": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "cost", + "type": "varint" } ] ], - "destroy": [ + "craft_loom_request": [ "container", [ { - "name": "count", - "type": "u8" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "consume": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], @@ -2375,67 +2364,54 @@ } ] ], - "beacon_payment": [ + "destroy": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "mine_block": [ + "drop": [ "container", [ { - "name": "hotbar_slot", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "predicted_durability", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "network_id", - "type": "zigzag32" - } - ] - ], - "craft_recipe": [ - "container", - [ - { - "name": "recipe_network_id", - "type": "varint" + "name": "randomly", + "type": "bool" } ] ], - "craft_recipe_auto": [ + "mine_block": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "hotbar_slot", + "type": "zigzag32" }, { - "name": "times_crafted", - "type": "u8" - } - ] - ], - "craft_creative": [ - "container", - [ + "name": "predicted_durability", + "type": "zigzag32" + }, { - "name": "item_id", - "type": "varint" + "name": "network_id", + "type": "zigzag32" } ] ], + "non_implemented": "void", "optional": [ "container", [ @@ -2449,29 +2425,23 @@ } ] ], - "craft_grindstone_request": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "cost", - "type": "varint" - } - ] - ], - "craft_loom_request": [ - "container", - [ + "name": "source", + "type": "StackRequestSlotInfo" + }, { - "name": "pattern", - "type": "string" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", "results_deprecated": [ "container", [ @@ -2490,6 +2460,36 @@ "type": "u8" } ] + ], + "swap": [ + "container", + [ + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] + ], + "take": [ + "container", + [ + { + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] ] } } @@ -2524,11 +2524,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2639,7 +2639,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2656,7 +2655,8 @@ "12": "precompiled", "13": "game_director_entity_server", "14": "script" - } + }, + "type": "varint" } ] }, @@ -2707,11 +2707,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -2749,7 +2749,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -2775,7 +2774,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -2833,13 +2833,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -2848,13 +2848,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -2863,12 +2863,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -2940,12 +2940,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -2979,7 +2979,6 @@ "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -2990,31 +2989,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3025,31 +3024,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3060,31 +3059,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3120,15 +3119,15 @@ "31": "hud", "32": "jigsaw_editor", "33": "smithing_table", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3190,13 +3189,13 @@ "57": "barrel", "58": "cursor", "59": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3571,13 +3570,13 @@ "370": "WardenSlightlyAngry", "371": "RecordOtherside", "372": "Undefined" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -3679,7 +3678,8 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "mcpe_packet": [ @@ -3690,7 +3690,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -3864,7 +3863,8 @@ "173": "photo_info_request", "174": "subchunk", "175": "subchunk_request" - } + }, + "type": "varint" } ] }, @@ -3875,178 +3875,178 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "disconnect": "packet_disconnect", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", + "subchunk": "packet_subchunk", + "subchunk_request": "packet_subchunk_request", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", + "transfer": "packet_transfer", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", + "update_block_synced": "packet_update_block_synced", + "update_equipment": "packet_update_equipment", "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", + "update_soft_enum": "packet_update_soft_enum", "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", - "subchunk": "packet_subchunk", - "subchunk_request": "packet_subchunk_request" + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4093,7 +4093,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4103,7 +4102,8 @@ "5": "failed_vanilla_edu", "6": "failed_edu_vanilla", "7": "failed_server_full" - } + }, + "type": "i32" } ] } @@ -4197,14 +4197,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4222,7 +4222,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4235,7 +4234,8 @@ "8": "announcement", "9": "json_whisper", "10": "json" - } + }, + "type": "u8" } ] }, @@ -4250,7 +4250,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4263,7 +4263,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4276,20 +4276,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_whisper": [ "container", [ { @@ -4298,25 +4294,45 @@ } ] ], - "tip": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "system": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "raw": [ "container", [ { @@ -4325,7 +4341,7 @@ } ] ], - "json": [ + "system": [ "container", [ { @@ -4334,26 +4350,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4372,22 +4378,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -4626,12 +4626,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -4919,13 +4919,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -4952,14 +4952,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5012,14 +5012,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5097,7 +5097,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5271,7 +5270,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -5297,11 +5297,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5323,7 +5323,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -5379,7 +5378,8 @@ "73": "agent_summon", "74": "charged_item", "75": "fall" - } + }, + "type": "u8" } ] }, @@ -5401,12 +5401,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -5512,13 +5512,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -5533,8 +5533,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -5677,11 +5677,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -5707,7 +5707,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -5717,7 +5716,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -5732,7 +5732,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -5741,7 +5741,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -5914,12 +5914,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -5978,14 +5978,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "operator", "2": "host", "3": "automation", "4": "admin" - } + }, + "type": "varint" } ] }, @@ -5998,13 +5998,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "varint" } ] }, @@ -6021,34 +6021,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6197,13 +6197,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6221,7 +6221,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6249,7 +6248,8 @@ "23": "target_block_hit", "24": "piglin_barter", "25": "waxed_or_unwaxed_copper" - } + }, + "type": "zigzag32" } ] }, @@ -6279,13 +6279,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -6487,7 +6487,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -6497,7 +6496,8 @@ "5": "set_bar_title", "6": "update_properties", "7": "texture" - } + }, + "type": "varint" } ] }, @@ -6508,6 +6508,33 @@ { "compareTo": "type", "fields": { + "register_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "set_bar_progress": [ + "container", + [ + { + "name": "progress", + "type": "lf32" + } + ] + ], + "set_bar_title": [ + "container", + [ + { + "name": "title", + "type": "string" + } + ] + ], "show_bar": [ "container", [ @@ -6533,12 +6560,16 @@ } ] ], - "register_player": [ + "texture": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" } ] ], @@ -6551,24 +6582,6 @@ } ] ], - "set_bar_progress": [ - "container", - [ - { - "name": "progress", - "type": "lf32" - } - ] - ], - "set_bar_title": [ - "container", - [ - { - "name": "title", - "type": "string" - } - ] - ], "update_properties": [ "container", [ @@ -6585,19 +6598,6 @@ "type": "varint" } ] - ], - "texture": [ - "container", - [ - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] ] } } @@ -6676,8 +6676,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -6745,7 +6745,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "2": "float", @@ -6760,7 +6759,8 @@ "46": "raw_text", "50": "json", "63": "command" - } + }, + "type": "lu16" } ] }, @@ -6769,13 +6769,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -6861,12 +6861,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -6887,28 +6887,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -6943,6 +6943,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -6955,12 +6964,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -6973,15 +6982,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -7025,13 +7025,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7077,10 +7077,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7188,7 +7188,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7198,7 +7197,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -7293,7 +7293,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -7304,7 +7303,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -7478,14 +7478,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -7500,23 +7500,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -7543,16 +7526,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -7572,6 +7559,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -7591,7 +7591,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7600,7 +7599,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -7613,7 +7613,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7622,7 +7621,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -7768,11 +7768,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -7812,12 +7812,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -7828,8 +7828,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -7867,12 +7867,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -7914,12 +7914,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -8013,18 +8013,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -8035,11 +8035,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8062,10 +8062,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8107,12 +8107,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -8304,11 +8304,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -8391,12 +8391,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure" - } + }, + "type": "u8" } ] } @@ -8430,11 +8430,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query" - } + }, + "type": "u8" } ] } @@ -8631,12 +8631,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -8680,7 +8680,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -8697,7 +8696,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -8744,14 +8744,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -8760,7 +8760,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -8772,7 +8771,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -8861,7 +8861,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -8874,7 +8874,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -8913,7 +8913,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -8943,7 +8943,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -8983,7 +8982,8 @@ "item_interact", "block_action", "item_stack_request" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -9112,13 +9112,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -9174,10 +9174,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -9195,12 +9195,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -9235,10 +9235,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -9247,12 +9247,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -9342,11 +9342,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -9418,11 +9418,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -9433,7 +9433,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -9466,7 +9465,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -9516,13 +9516,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -9540,11 +9540,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -9666,7 +9666,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "undefined", "1": "success", @@ -9674,7 +9673,8 @@ "3": "invalid_dimension", "4": "player_not_found", "5": "y_index_out_of_bounds" - } + }, + "type": "zigzag32" } ] }, @@ -9683,13 +9683,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, diff --git a/data/bedrock/1.18.11/protocol.json b/data/bedrock/1.18.11/protocol.json index 156a977a5..54c524b84 100644 --- a/data/bedrock/1.18.11/protocol.json +++ b/data/bedrock/1.18.11/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -199,7 +198,8 @@ "3": "survival_spectator", "4": "creative_spectator", "5": "fallback" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -218,12 +218,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -235,8 +235,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -313,11 +313,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -327,6 +327,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -341,8 +342,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -380,11 +380,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -394,6 +394,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -408,8 +409,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -448,9 +448,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -472,6 +469,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -480,19 +484,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -511,9 +511,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -535,10 +532,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -552,6 +549,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -560,19 +564,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -654,7 +654,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -780,7 +779,8 @@ "122": "buoyancy_data", "123": "goat_horn_count", "124": "update_properties" - } + }, + "type": "varint" } ] }, @@ -789,7 +789,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -800,7 +799,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -810,27 +810,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -841,7 +841,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -908,13 +907,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -955,7 +954,8 @@ "over_descendable_block", "croaking", "eat_mob" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1090,12 +1090,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1141,7 +1141,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1149,7 +1148,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1159,6 +1159,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1178,26 +1179,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1230,9 +1230,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1265,7 +1262,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1283,14 +1283,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1305,26 +1305,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1337,28 +1331,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1371,11 +1366,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1402,9 +1402,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -1417,7 +1414,10 @@ "type": "zigzag32" } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1493,7 +1493,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1503,7 +1502,8 @@ "5": "shulker_box", "6": "shapeless_chemistry", "7": "shaped_chemistry" - } + }, + "type": "zigzag32" } ] }, @@ -1514,89 +1514,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, - { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "network_id", - "type": "varint" } ] ], - "shulker_box": [ + "furnace_with_metadata": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_meta", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1604,20 +1565,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1649,7 +1624,7 @@ } ] ], - "shaped": [ + "shaped_chemistry": [ "container", [ { @@ -1708,34 +1683,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1767,50 +1728,89 @@ } ] ], - "furnace": [ + "shapeless_chemistry": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" + }, + { + "name": "priority", + "type": "zigzag32" + }, + { + "name": "network_id", + "type": "varint" } ] ], - "furnace_with_metadata": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "input_meta", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2012,11 +2012,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2178,7 +2178,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2208,7 +2207,8 @@ "25": "interact_block", "26": "predict_break", "27": "continue_break" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2249,7 +2249,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2271,7 +2270,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2282,24 +2282,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2309,91 +2305,72 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, + "name": "recipe_network_id", + "type": "varint" + } + ] + ], + "craft_recipe_auto": [ + "container", + [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2406,25 +2383,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2445,89 +2417,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2564,11 +2564,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2679,7 +2679,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2697,7 +2696,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -2748,11 +2748,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -2790,7 +2790,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -2816,7 +2815,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -2874,13 +2874,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -2889,13 +2889,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -2904,12 +2904,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -2981,12 +2981,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3020,7 +3020,6 @@ "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3031,31 +3030,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", - "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", - "-11": "anvil_material", + "-1": "none", "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-100": "drop_contents", + "-11": "anvil_material", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3066,31 +3065,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3101,31 +3100,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3161,15 +3160,15 @@ "31": "hud", "32": "jigsaw_editor", "33": "smithing_table", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3231,13 +3230,13 @@ "57": "barrel", "58": "cursor", "59": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3615,13 +3614,13 @@ "373": "CrackIronGolem", "374": "RepairIronGolem", "375": "Undefined" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -3723,13 +3722,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -3746,7 +3745,8 @@ "12": "NintendoSwitch", "13": "Xbox", "14": "WindowsPhone" - } + }, + "type": "li32" } ], "mcpe_packet": [ @@ -3757,7 +3757,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -3934,7 +3933,8 @@ "176": "client_start_item_cooldown", "177": "script_message", "178": "code_builder_source" - } + }, + "type": "varint" } ] }, @@ -3945,181 +3945,181 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "disconnect": "packet_disconnect", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_chunk_radius": "packet_request_chunk_radius", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", + "subchunk": "packet_subchunk", + "subchunk_request": "packet_subchunk_request", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", + "transfer": "packet_transfer", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", + "update_block_synced": "packet_update_block_synced", + "update_equipment": "packet_update_equipment", "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", + "update_soft_enum": "packet_update_soft_enum", "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", - "subchunk": "packet_subchunk", - "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source" + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4166,7 +4166,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4176,7 +4175,8 @@ "5": "failed_vanilla_edu", "6": "failed_edu_vanilla", "7": "failed_server_full" - } + }, + "type": "i32" } ] } @@ -4270,14 +4270,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4295,7 +4295,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4308,7 +4307,8 @@ "8": "announcement", "9": "json_whisper", "10": "json" - } + }, + "type": "u8" } ] }, @@ -4323,7 +4323,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4336,7 +4336,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4349,20 +4349,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_whisper": [ "container", [ { @@ -4371,25 +4367,45 @@ } ] ], - "tip": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "system": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "raw": [ "container", [ { @@ -4398,7 +4414,7 @@ } ] ], - "json": [ + "system": [ "container", [ { @@ -4407,26 +4423,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4445,22 +4451,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -4699,12 +4699,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -4992,13 +4992,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5025,14 +5025,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5085,14 +5085,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5170,7 +5170,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5344,7 +5343,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -5370,11 +5370,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5396,7 +5396,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -5452,7 +5451,8 @@ "73": "agent_summon", "74": "charged_item", "75": "fall" - } + }, + "type": "u8" } ] }, @@ -5474,12 +5474,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -5585,13 +5585,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -5606,8 +5606,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -5750,11 +5750,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -5780,7 +5780,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -5790,7 +5789,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -5805,7 +5805,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -5814,7 +5814,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -5987,12 +5987,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -6051,14 +6051,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "operator", "2": "host", "3": "automation", "4": "admin" - } + }, + "type": "varint" } ] }, @@ -6071,13 +6071,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "varint" } ] }, @@ -6094,34 +6094,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6282,13 +6282,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6306,7 +6306,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6334,7 +6333,8 @@ "23": "target_block_hit", "24": "piglin_barter", "25": "waxed_or_unwaxed_copper" - } + }, + "type": "zigzag32" } ] }, @@ -6364,13 +6364,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -6572,7 +6572,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -6583,7 +6582,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -6594,41 +6594,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "query": [ "container", [ { @@ -6637,7 +6603,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -6664,9 +6630,17 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -6693,6 +6667,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -6771,8 +6771,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -6840,7 +6840,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "2": "float", @@ -6855,7 +6854,8 @@ "46": "raw_text", "50": "json", "63": "command" - } + }, + "type": "lu16" } ] }, @@ -6864,13 +6864,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -6956,12 +6956,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -6982,28 +6982,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -7038,6 +7038,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -7050,12 +7059,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -7068,15 +7077,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -7120,13 +7120,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7172,10 +7172,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7283,7 +7283,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7293,7 +7292,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -7388,7 +7388,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -7399,7 +7398,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -7573,14 +7573,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -7595,23 +7595,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -7638,16 +7621,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -7667,6 +7654,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -7686,7 +7686,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7695,7 +7694,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -7708,7 +7708,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7717,7 +7716,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -7863,11 +7863,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -7907,12 +7907,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -7923,8 +7923,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -7962,12 +7962,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -8009,12 +8009,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -8108,18 +8108,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -8130,11 +8130,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8157,10 +8157,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8202,12 +8202,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -8399,11 +8399,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -8486,12 +8486,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure" - } + }, + "type": "u8" } ] } @@ -8525,11 +8525,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query" - } + }, + "type": "u8" } ] } @@ -8726,12 +8726,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -8775,7 +8775,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -8792,7 +8791,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -8839,14 +8839,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -8855,7 +8855,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -8867,7 +8866,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -8956,7 +8956,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -8969,7 +8969,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -9008,7 +9008,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -9038,7 +9038,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -9078,7 +9077,8 @@ "item_interact", "block_action", "item_stack_request" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -9207,13 +9207,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -9269,10 +9269,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -9290,12 +9290,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -9330,10 +9330,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -9342,12 +9342,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -9437,11 +9437,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -9513,11 +9513,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -9528,7 +9528,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -9561,7 +9560,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -9619,13 +9619,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -9643,11 +9643,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -9765,7 +9765,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -9774,7 +9773,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -9787,13 +9787,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -9842,7 +9842,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -9851,7 +9850,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -9861,10 +9861,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -9873,13 +9873,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -9930,8 +9930,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -10011,13 +10011,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -10026,12 +10026,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, diff --git a/data/bedrock/1.18.30/protocol.json b/data/bedrock/1.18.30/protocol.json index 520019690..d89cb4f27 100644 --- a/data/bedrock/1.18.30/protocol.json +++ b/data/bedrock/1.18.30/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -655,7 +655,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -784,7 +783,8 @@ "125": "movement_sound_distance_offset", "126": "heartbeat_interval_ticks", "127": "heartbeat_sound_event" - } + }, + "type": "varint" } ] }, @@ -793,7 +793,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -804,7 +803,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -814,27 +814,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -845,7 +845,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -912,13 +911,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -963,7 +962,8 @@ "emerging", "sniffing", "digging" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1098,12 +1098,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1149,7 +1149,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1157,7 +1156,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1167,6 +1167,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1186,26 +1187,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1238,9 +1238,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1273,7 +1270,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1291,14 +1291,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1313,26 +1313,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1345,28 +1339,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1379,11 +1374,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1410,9 +1410,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -1425,7 +1422,10 @@ "type": "zigzag32" } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1501,7 +1501,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1511,7 +1510,8 @@ "5": "shulker_box", "6": "shapeless_chemistry", "7": "shaped_chemistry" - } + }, + "type": "zigzag32" } ] }, @@ -1522,89 +1522,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, - { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "network_id", - "type": "varint" } ] ], - "shulker_box": [ + "furnace_with_metadata": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_meta", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1612,20 +1573,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1657,7 +1632,7 @@ } ] ], - "shaped": [ + "shaped_chemistry": [ "container", [ { @@ -1716,34 +1691,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1775,50 +1736,89 @@ } ] ], - "furnace": [ + "shapeless_chemistry": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" + }, + { + "name": "priority", + "type": "zigzag32" + }, + { + "name": "network_id", + "type": "varint" } ] ], - "furnace_with_metadata": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "input_meta", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2020,11 +2020,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2186,7 +2186,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2216,7 +2215,8 @@ "25": "interact_block", "26": "predict_break", "27": "continue_break" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2257,7 +2257,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2279,7 +2278,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2290,24 +2290,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2317,91 +2313,72 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, + "name": "recipe_network_id", + "type": "varint" + } + ] + ], + "craft_recipe_auto": [ + "container", + [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2414,25 +2391,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2453,89 +2425,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2572,11 +2572,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2687,7 +2687,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2705,7 +2704,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -2756,11 +2756,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -2798,7 +2798,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -2824,7 +2823,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -2886,13 +2886,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -2901,13 +2901,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -2916,12 +2916,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -2993,12 +2993,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3032,7 +3032,6 @@ "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3043,31 +3042,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3078,31 +3077,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3113,31 +3112,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3173,15 +3172,15 @@ "31": "hud", "32": "jigsaw_editor", "33": "smithing_table", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3243,13 +3242,13 @@ "57": "barrel", "58": "cursor", "59": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3675,13 +3674,13 @@ "421": "goat_bass_8", "422": "goat_bass_9", "423": "Undefined" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -3783,13 +3782,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -3806,7 +3805,8 @@ "12": "NintendoSwitch", "13": "Xbox", "14": "WindowsPhone" - } + }, + "type": "li32" } ], "mcpe_packet": [ @@ -3817,7 +3817,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -3998,7 +3997,8 @@ "180": "dimension_data", "181": "agent_action", "182": "change_mob_property" - } + }, + "type": "varint" } ] }, @@ -4009,185 +4009,185 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", "modal_form_request": "packet_modal_form_request", "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_chunk_radius": "packet_request_chunk_radius", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property" + "transfer": "packet_transfer", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4234,7 +4234,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4244,7 +4243,8 @@ "5": "failed_vanilla_edu", "6": "failed_edu_vanilla", "7": "failed_server_full" - } + }, + "type": "i32" } ] } @@ -4338,14 +4338,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4363,7 +4363,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4376,7 +4375,8 @@ "8": "announcement", "9": "json_whisper", "10": "json" - } + }, + "type": "u8" } ] }, @@ -4391,7 +4391,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4404,7 +4404,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4417,20 +4417,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_whisper": [ "container", [ { @@ -4439,25 +4435,45 @@ } ] ], - "tip": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "system": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "raw": [ "container", [ { @@ -4466,7 +4482,7 @@ } ] ], - "json": [ + "system": [ "container", [ { @@ -4475,26 +4491,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4513,22 +4519,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -4595,12 +4595,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -4777,12 +4777,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5074,13 +5074,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5107,14 +5107,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5167,14 +5167,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5252,7 +5252,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5428,7 +5427,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -5454,11 +5454,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5480,7 +5480,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -5539,7 +5538,8 @@ "75": "fall", "76": "grow_up", "77": "vibration_detected" - } + }, + "type": "u8" } ] }, @@ -5561,12 +5561,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -5672,13 +5672,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -5693,8 +5693,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -5837,11 +5837,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -5867,7 +5867,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -5877,7 +5876,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -5892,7 +5892,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -5901,7 +5901,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6074,12 +6074,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -6138,14 +6138,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "operator", "2": "host", "3": "automation", "4": "admin" - } + }, + "type": "varint" } ] }, @@ -6158,13 +6158,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "varint" } ] }, @@ -6181,34 +6181,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6369,13 +6369,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6393,7 +6393,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6421,7 +6420,8 @@ "23": "target_block_hit", "24": "piglin_barter", "25": "waxed_or_unwaxed_copper" - } + }, + "type": "zigzag32" } ] }, @@ -6451,13 +6451,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -6659,7 +6659,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -6670,7 +6669,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -6681,41 +6681,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "query": [ "container", [ { @@ -6724,7 +6690,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -6751,9 +6717,17 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -6780,6 +6754,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -6858,8 +6858,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -6927,7 +6927,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "2": "float", @@ -6944,7 +6943,8 @@ "52": "raw_text", "56": "json", "69": "command" - } + }, + "type": "lu16" } ] }, @@ -6953,13 +6953,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -7045,12 +7045,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -7071,28 +7071,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -7127,6 +7127,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -7139,12 +7148,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -7157,15 +7166,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -7209,13 +7209,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7261,10 +7261,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7372,7 +7372,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7382,7 +7381,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -7477,7 +7477,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -7488,7 +7487,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -7662,14 +7662,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -7684,23 +7684,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -7727,16 +7710,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -7756,6 +7743,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -7775,7 +7775,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7784,7 +7783,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -7797,7 +7797,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7806,7 +7805,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -7952,11 +7952,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -7996,12 +7996,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -8012,8 +8012,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -8051,12 +8051,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -8098,12 +8098,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -8197,18 +8197,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -8219,11 +8219,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8246,10 +8246,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8291,12 +8291,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -8495,11 +8495,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -8582,12 +8582,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure" - } + }, + "type": "u8" } ] } @@ -8621,11 +8621,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query" - } + }, + "type": "u8" } ] } @@ -8822,12 +8822,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -8871,7 +8871,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -8888,7 +8887,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -8935,14 +8935,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -8951,7 +8951,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -8963,7 +8962,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -9052,7 +9052,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -9065,7 +9065,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -9104,7 +9104,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -9134,7 +9134,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -9174,7 +9173,8 @@ "item_interact", "block_action", "item_stack_request" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -9303,13 +9303,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -9365,10 +9365,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -9386,12 +9386,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -9426,10 +9426,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -9438,12 +9438,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -9533,11 +9533,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -9609,11 +9609,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -9624,7 +9624,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -9657,7 +9656,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -9735,13 +9735,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -9759,11 +9759,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -9881,7 +9881,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -9890,7 +9889,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -9903,13 +9903,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -9958,7 +9958,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -9967,7 +9966,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -9977,10 +9977,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -9989,13 +9989,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10046,8 +10046,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -10127,13 +10127,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -10142,12 +10142,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -10195,7 +10195,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -10203,7 +10202,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -10226,7 +10226,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -10247,7 +10246,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, diff --git a/data/bedrock/1.19.1/protocol.json b/data/bedrock/1.19.1/protocol.json index 7beaac2a6..4238db2fc 100644 --- a/data/bedrock/1.19.1/protocol.json +++ b/data/bedrock/1.19.1/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -655,7 +655,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -784,7 +783,8 @@ "125": "movement_sound_distance_offset", "126": "heartbeat_interval_ticks", "127": "heartbeat_sound_event" - } + }, + "type": "varint" } ] }, @@ -793,7 +793,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -804,7 +803,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -814,27 +814,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -845,7 +845,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -912,13 +911,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -963,7 +962,8 @@ "emerging", "sniffing", "digging" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1098,12 +1098,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1149,7 +1149,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1157,7 +1156,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1167,6 +1167,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1186,26 +1187,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1238,9 +1238,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1273,7 +1270,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1291,14 +1291,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1313,26 +1313,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1345,28 +1339,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1379,11 +1374,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1410,9 +1410,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -1425,7 +1422,10 @@ "type": "zigzag32" } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1501,7 +1501,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1511,7 +1510,8 @@ "5": "shulker_box", "6": "shapeless_chemistry", "7": "shaped_chemistry" - } + }, + "type": "zigzag32" } ] }, @@ -1522,89 +1522,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, - { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "network_id", - "type": "varint" } ] ], - "shulker_box": [ + "furnace_with_metadata": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_meta", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1612,20 +1573,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1657,7 +1632,7 @@ } ] ], - "shaped": [ + "shaped_chemistry": [ "container", [ { @@ -1716,34 +1691,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1775,50 +1736,89 @@ } ] ], - "furnace": [ + "shapeless_chemistry": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" + }, + { + "name": "priority", + "type": "zigzag32" + }, + { + "name": "network_id", + "type": "varint" } ] ], - "furnace_with_metadata": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "input_meta", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2020,11 +2020,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2186,7 +2186,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2218,7 +2217,8 @@ "27": "continue_break", "28": "start_item_use_on", "29": "stop_item_use_on" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2259,7 +2259,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2281,7 +2280,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2292,24 +2292,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2319,91 +2315,72 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, + "name": "recipe_network_id", + "type": "varint" + } + ] + ], + "craft_recipe_auto": [ + "container", + [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2416,25 +2393,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2455,89 +2427,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" - } - ] - ], - "craft_creative": [ - "container", - [ + "name": "source", + "type": "StackRequestSlotInfo" + }, { - "name": "item_id", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "place_in_container": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "filtered_string_index", - "type": "li32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_grindstone_request": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "cost", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "times_crafted", + "type": "u8" } ] ], - "craft_loom_request": [ + "swap": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] + ], + "take_out_container": [ + "container", + [ + { + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2574,11 +2574,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2689,7 +2689,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2707,7 +2706,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -2758,11 +2758,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -2800,7 +2800,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -2826,7 +2825,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -2888,13 +2888,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -2903,13 +2903,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -2918,12 +2918,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -2995,12 +2995,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3034,19 +3034,18 @@ "PermissionLevel": [ "mapper", { - "type": "varint", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "varint" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3057,31 +3056,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3092,31 +3091,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3127,31 +3126,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3187,15 +3186,15 @@ "31": "hud", "32": "jigsaw_editor", "33": "smithing_table", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3257,13 +3256,13 @@ "57": "barrel", "58": "cursor", "59": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3707,13 +3706,13 @@ "439": "Record5", "440": "ConvertToFrog", "441": "Undefined" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -3815,13 +3814,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -3839,7 +3838,8 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "mcpe_packet": [ @@ -3850,7 +3850,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4035,7 +4034,8 @@ "184": "request_ability", "185": "request_permissions", "186": "toast_request" - } + }, + "type": "varint" } ] }, @@ -4046,189 +4046,189 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", - "toast_request": "packet_toast_request" + "toast_request": "packet_toast_request", + "transfer": "packet_transfer", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4275,7 +4275,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4285,7 +4284,8 @@ "5": "failed_vanilla_edu", "6": "failed_edu_vanilla", "7": "failed_server_full" - } + }, + "type": "i32" } ] } @@ -4379,14 +4379,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4404,7 +4404,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4417,7 +4416,8 @@ "8": "announcement", "9": "json_whisper", "10": "json" - } + }, + "type": "u8" } ] }, @@ -4432,7 +4432,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4445,7 +4445,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4458,20 +4458,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_whisper": [ "container", [ { @@ -4480,25 +4476,45 @@ } ] ], - "tip": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "system": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "raw": [ "container", [ { @@ -4507,7 +4523,7 @@ } ] ], - "json": [ + "system": [ "container", [ { @@ -4516,26 +4532,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4554,22 +4560,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -4636,12 +4636,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -4818,12 +4818,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5123,13 +5123,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5156,14 +5156,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5216,14 +5216,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5301,7 +5301,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5478,7 +5477,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -5504,11 +5504,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5530,7 +5530,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -5589,7 +5588,8 @@ "75": "fall", "76": "grow_up", "77": "vibration_detected" - } + }, + "type": "u8" } ] }, @@ -5611,12 +5611,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -5722,13 +5722,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -5743,8 +5743,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -5891,11 +5891,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -5921,7 +5921,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -5931,7 +5930,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -5946,7 +5946,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -5955,7 +5955,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6128,12 +6128,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -6192,14 +6192,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "operator", "2": "host", "3": "automation", "4": "admin" - } + }, + "type": "varint" } ] }, @@ -6224,34 +6224,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6412,13 +6412,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6436,7 +6436,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6468,7 +6467,8 @@ "27": "code_builder_scoreboard", "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor" - } + }, + "type": "zigzag32" } ] }, @@ -6498,13 +6498,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -6705,64 +6705,30 @@ "name": "type", "type": [ "mapper", - { - "type": "varint", - "mappings": { - "0": "show_bar", - "1": "register_player", - "2": "hide_bar", - "3": "unregister_player", - "4": "set_bar_progress", - "5": "set_bar_title", - "6": "update_properties", - "7": "texture", - "8": "query" - } - } - ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + { + "mappings": { + "0": "show_bar", + "1": "register_player", + "2": "hide_bar", + "3": "unregister_player", + "4": "set_bar_progress", + "5": "set_bar_title", + "6": "update_properties", + "7": "texture", + "8": "query" + }, + "type": "varint" + } + ] + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "query": [ "container", [ { @@ -6771,7 +6737,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -6798,9 +6764,17 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -6827,6 +6801,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -6905,8 +6905,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -6974,7 +6974,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -6995,7 +6994,8 @@ "57": "json", "67": "block_states", "70": "command" - } + }, + "type": "lu16" } ] }, @@ -7004,13 +7004,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -7096,12 +7096,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -7122,28 +7122,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -7178,6 +7178,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -7190,12 +7199,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -7208,15 +7217,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -7260,13 +7260,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7312,10 +7312,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7423,7 +7423,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7433,7 +7432,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -7528,7 +7528,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -7539,7 +7538,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -7713,14 +7713,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -7735,23 +7735,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -7778,16 +7761,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -7807,6 +7794,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -7826,7 +7826,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7835,7 +7834,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -7848,7 +7848,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7857,7 +7856,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8003,11 +8003,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -8047,12 +8047,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -8063,8 +8063,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -8102,12 +8102,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -8149,12 +8149,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -8248,18 +8248,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -8270,11 +8270,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8297,10 +8297,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8342,12 +8342,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -8546,11 +8546,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -8633,12 +8633,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure" - } + }, + "type": "u8" } ] } @@ -8672,11 +8672,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query" - } + }, + "type": "u8" } ] } @@ -8873,12 +8873,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -8922,7 +8922,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -8939,7 +8938,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -8986,14 +8986,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -9002,7 +9002,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -9014,7 +9013,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -9023,12 +9023,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -9117,7 +9117,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -9130,7 +9130,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -9169,7 +9169,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -9199,7 +9199,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -9239,7 +9238,8 @@ "item_interact", "block_action", "item_stack_request" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -9368,13 +9368,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -9430,10 +9430,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -9451,12 +9451,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -9491,10 +9491,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -9503,12 +9503,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -9598,11 +9598,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -9674,11 +9674,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -9689,7 +9689,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -9722,7 +9721,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -9800,13 +9800,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -9824,11 +9824,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -9946,7 +9946,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -9955,7 +9954,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -9968,13 +9968,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10023,7 +10023,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10032,7 +10031,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10042,10 +10042,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -10054,13 +10054,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10111,8 +10111,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -10192,13 +10192,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -10207,12 +10207,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -10260,7 +10260,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -10268,7 +10267,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -10291,7 +10291,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -10312,7 +10311,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -10376,7 +10376,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -10397,7 +10396,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -10406,11 +10406,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -10444,17 +10444,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ diff --git a/data/bedrock/1.19.10/protocol.json b/data/bedrock/1.19.10/protocol.json index 64f86762c..395d0c10e 100644 --- a/data/bedrock/1.19.10/protocol.json +++ b/data/bedrock/1.19.10/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -655,7 +655,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -784,7 +783,8 @@ "125": "movement_sound_distance_offset", "126": "heartbeat_interval_ticks", "127": "heartbeat_sound_event" - } + }, + "type": "varint" } ] }, @@ -793,7 +793,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -804,7 +803,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -814,27 +814,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -845,7 +845,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -912,13 +911,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -963,7 +962,8 @@ "emerging", "sniffing", "digging" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1098,12 +1098,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1149,7 +1149,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1157,7 +1156,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1167,6 +1167,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1186,26 +1187,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1238,9 +1238,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1273,7 +1270,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1291,14 +1291,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1313,26 +1313,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1345,28 +1339,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1379,11 +1374,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1410,9 +1410,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -1425,7 +1422,10 @@ "type": "zigzag32" } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1501,7 +1501,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1511,7 +1510,8 @@ "5": "shulker_box", "6": "shapeless_chemistry", "7": "shaped_chemistry" - } + }, + "type": "zigzag32" } ] }, @@ -1522,89 +1522,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, - { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "network_id", - "type": "varint" } ] ], - "shulker_box": [ + "furnace_with_metadata": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_meta", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1612,20 +1573,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1657,7 +1632,7 @@ } ] ], - "shaped": [ + "shaped_chemistry": [ "container", [ { @@ -1716,34 +1691,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1775,50 +1736,89 @@ } ] ], - "furnace": [ + "shapeless_chemistry": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" + }, + { + "name": "priority", + "type": "zigzag32" + }, + { + "name": "network_id", + "type": "varint" } ] ], - "furnace_with_metadata": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "input_meta", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2020,11 +2020,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2186,7 +2186,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2218,7 +2217,8 @@ "27": "continue_break", "28": "start_item_use_on", "29": "stop_item_use_on" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2259,7 +2259,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2281,7 +2280,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2292,24 +2292,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2319,91 +2315,72 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, + "name": "recipe_network_id", + "type": "varint" + } + ] + ], + "craft_recipe_auto": [ + "container", + [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2416,25 +2393,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2455,89 +2427,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" - } - ] - ], - "craft_creative": [ - "container", - [ + "name": "source", + "type": "StackRequestSlotInfo" + }, { - "name": "item_id", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "place_in_container": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "filtered_string_index", - "type": "li32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_grindstone_request": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "cost", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "times_crafted", + "type": "u8" } ] ], - "craft_loom_request": [ + "swap": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] + ], + "take_out_container": [ + "container", + [ + { + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2574,11 +2574,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2689,7 +2689,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2707,7 +2706,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -2758,11 +2758,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -2800,7 +2800,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -2826,7 +2825,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -2888,13 +2888,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -2903,13 +2903,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -2918,12 +2918,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -2995,12 +2995,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3034,19 +3034,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3054,13 +3053,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3068,13 +3067,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3085,31 +3084,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3120,31 +3119,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3155,31 +3154,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3215,15 +3214,15 @@ "31": "hud", "32": "jigsaw_editor", "33": "smithing_table", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3285,13 +3284,13 @@ "57": "barrel", "58": "cursor", "59": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3736,13 +3735,13 @@ "440": "ConvertToFrog", "441": "RecordPlaying", "442": "Undefined" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -3844,13 +3843,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -3868,13 +3867,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -3895,7 +3894,8 @@ "world_builder", "no_clip", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -3906,13 +3906,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands" - } + }, + "type": "lu16" } ] }, @@ -3942,7 +3942,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4131,7 +4130,8 @@ "188": "update_adventure_settings", "189": "death_info", "190": "editor_network" - } + }, + "type": "varint" } ] }, @@ -4142,193 +4142,193 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "transfer": "packet_transfer", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network" + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4375,7 +4375,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4387,7 +4386,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -4481,14 +4481,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4506,7 +4506,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4519,7 +4518,8 @@ "8": "announcement", "9": "json_whisper", "10": "json" - } + }, + "type": "u8" } ] }, @@ -4534,7 +4534,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4547,7 +4547,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4560,20 +4560,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_whisper": [ "container", [ { @@ -4582,25 +4578,45 @@ } ] ], - "tip": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "system": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "raw": [ "container", [ { @@ -4609,7 +4625,7 @@ } ] ], - "json": [ + "system": [ "container", [ { @@ -4618,26 +4634,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4656,22 +4662,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -4738,12 +4738,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -4924,12 +4924,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5227,13 +5227,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5260,14 +5260,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5320,14 +5320,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5405,7 +5405,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5582,7 +5581,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -5608,11 +5608,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5634,7 +5634,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -5694,7 +5693,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -5716,12 +5716,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -5827,13 +5827,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -5848,8 +5848,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -5996,11 +5996,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6026,7 +6026,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6036,7 +6035,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6051,7 +6051,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6060,7 +6060,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6233,12 +6233,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -6317,34 +6317,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6505,13 +6505,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6529,7 +6529,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6561,7 +6560,8 @@ "27": "code_builder_scoreboard", "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor" - } + }, + "type": "zigzag32" } ] }, @@ -6591,13 +6591,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -6798,64 +6798,30 @@ "name": "type", "type": [ "mapper", - { - "type": "varint", - "mappings": { - "0": "show_bar", - "1": "register_player", - "2": "hide_bar", - "3": "unregister_player", - "4": "set_bar_progress", - "5": "set_bar_title", - "6": "update_properties", - "7": "texture", - "8": "query" - } - } - ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + { + "mappings": { + "0": "show_bar", + "1": "register_player", + "2": "hide_bar", + "3": "unregister_player", + "4": "set_bar_progress", + "5": "set_bar_title", + "6": "update_properties", + "7": "texture", + "8": "query" + }, + "type": "varint" + } + ] + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "query": [ "container", [ { @@ -6864,7 +6830,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -6891,9 +6857,17 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -6920,6 +6894,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -6998,8 +6998,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7067,7 +7067,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7088,7 +7087,8 @@ "57": "json", "67": "block_states", "70": "command" - } + }, + "type": "lu16" } ] }, @@ -7097,13 +7097,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -7189,12 +7189,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -7215,28 +7215,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -7271,6 +7271,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -7283,12 +7292,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -7301,15 +7310,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -7353,13 +7353,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7405,10 +7405,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7516,7 +7516,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7526,7 +7525,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -7621,7 +7621,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -7632,7 +7631,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -7806,14 +7806,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -7828,23 +7828,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -7871,16 +7854,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -7900,6 +7887,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -7919,7 +7919,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7928,7 +7927,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -7941,7 +7941,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -7950,7 +7949,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8096,11 +8096,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -8140,12 +8140,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -8156,8 +8156,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -8195,12 +8195,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -8242,12 +8242,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -8341,18 +8341,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -8363,11 +8363,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8390,10 +8390,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8435,12 +8435,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -8639,11 +8639,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -8726,12 +8726,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure" - } + }, + "type": "u8" } ] } @@ -8765,11 +8765,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query" - } + }, + "type": "u8" } ] } @@ -8966,12 +8966,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9015,7 +9015,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -9032,7 +9031,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -9079,14 +9079,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -9095,7 +9095,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -9107,7 +9106,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -9116,12 +9116,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -9210,7 +9210,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -9223,7 +9223,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -9262,7 +9262,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -9292,7 +9292,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -9332,7 +9331,8 @@ "item_interact", "block_action", "item_stack_request" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -9461,13 +9461,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -9523,10 +9523,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -9544,12 +9544,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -9584,10 +9584,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -9596,12 +9596,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -9691,11 +9691,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -9767,11 +9767,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -9782,7 +9782,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -9815,7 +9814,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -9893,13 +9893,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -9917,11 +9917,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -10039,7 +10039,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10048,7 +10047,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10061,13 +10061,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10116,7 +10116,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10125,7 +10124,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10135,10 +10135,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -10147,13 +10147,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10204,8 +10204,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -10285,13 +10285,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -10300,12 +10300,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -10353,7 +10353,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -10361,7 +10360,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -10384,7 +10384,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -10405,7 +10404,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -10469,7 +10469,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -10490,7 +10489,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -10499,11 +10499,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -10537,17 +10537,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ diff --git a/data/bedrock/1.19.20/protocol.json b/data/bedrock/1.19.20/protocol.json index b918b7316..526420ff4 100644 --- a/data/bedrock/1.19.20/protocol.json +++ b/data/bedrock/1.19.20/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -655,7 +655,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -784,7 +783,8 @@ "125": "movement_sound_distance_offset", "126": "heartbeat_interval_ticks", "127": "heartbeat_sound_event" - } + }, + "type": "varint" } ] }, @@ -793,7 +793,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -804,7 +803,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -814,27 +814,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -845,7 +845,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -912,13 +911,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -963,7 +962,8 @@ "emerging", "sniffing", "digging" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1136,12 +1136,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1187,7 +1187,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1195,7 +1194,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1205,6 +1205,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1224,26 +1225,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1276,9 +1276,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1311,7 +1308,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1329,14 +1329,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1351,26 +1351,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1383,28 +1377,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1417,11 +1412,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1448,9 +1448,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -1463,7 +1460,10 @@ "type": "zigzag32" } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1539,7 +1539,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1549,7 +1548,8 @@ "5": "shulker_box", "6": "shapeless_chemistry", "7": "shaped_chemistry" - } + }, + "type": "zigzag32" } ] }, @@ -1560,89 +1560,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, - { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "network_id", - "type": "varint" } ] ], - "shulker_box": [ + "furnace_with_metadata": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_meta", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1650,20 +1611,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1695,7 +1670,7 @@ } ] ], - "shaped": [ + "shaped_chemistry": [ "container", [ { @@ -1754,34 +1729,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1813,50 +1774,89 @@ } ] ], - "furnace": [ + "shapeless_chemistry": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" + }, + { + "name": "priority", + "type": "zigzag32" + }, + { + "name": "network_id", + "type": "varint" } ] ], - "furnace_with_metadata": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "input_meta", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2058,11 +2058,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2224,7 +2224,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2256,7 +2255,8 @@ "27": "continue_break", "28": "start_item_use_on", "29": "stop_item_use_on" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2297,7 +2297,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2319,7 +2318,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2330,24 +2330,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2357,91 +2353,72 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, + "name": "recipe_network_id", + "type": "varint" + } + ] + ], + "craft_recipe_auto": [ + "container", + [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2454,25 +2431,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2493,89 +2465,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" - } - ] - ], - "craft_creative": [ - "container", - [ + "name": "source", + "type": "StackRequestSlotInfo" + }, { - "name": "item_id", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "place_in_container": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "filtered_string_index", - "type": "li32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_grindstone_request": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "cost", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "times_crafted", + "type": "u8" } ] ], - "craft_loom_request": [ + "swap": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] + ], + "take_out_container": [ + "container", + [ + { + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2612,11 +2612,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2727,7 +2727,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2745,7 +2744,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -2796,11 +2796,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -2838,7 +2838,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -2864,7 +2863,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -2926,13 +2926,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -2941,13 +2941,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -2956,12 +2956,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3033,12 +3033,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3072,19 +3072,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3092,13 +3091,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3106,13 +3105,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3123,31 +3122,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3158,31 +3157,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3193,31 +3192,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3253,15 +3252,15 @@ "31": "hud", "32": "jigsaw_editor", "33": "smithing_table", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3323,13 +3322,13 @@ "57": "barrel", "58": "cursor", "59": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3774,13 +3773,13 @@ "440": "ConvertToFrog", "441": "RecordPlaying", "442": "Undefined" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -3882,13 +3881,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -3906,13 +3905,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -3933,7 +3932,8 @@ "world_builder", "no_clip", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -3944,13 +3944,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands" - } + }, + "type": "lu16" } ] }, @@ -3980,7 +3980,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4170,7 +4169,8 @@ "189": "death_info", "190": "editor_network", "191": "feature_registry" - } + }, + "type": "varint" } ] }, @@ -4181,194 +4181,194 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "transfer": "packet_transfer", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry" + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4415,7 +4415,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4427,7 +4426,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -4521,14 +4521,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4546,7 +4546,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4559,7 +4558,8 @@ "8": "announcement", "9": "json_whisper", "10": "json" - } + }, + "type": "u8" } ] }, @@ -4574,7 +4574,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4587,7 +4587,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4600,20 +4600,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_whisper": [ "container", [ { @@ -4622,25 +4618,45 @@ } ] ], - "tip": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "system": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "raw": [ "container", [ { @@ -4649,7 +4665,7 @@ } ] ], - "json": [ + "system": [ "container", [ { @@ -4658,26 +4674,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4696,22 +4702,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -4778,12 +4778,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -4956,12 +4956,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -4990,12 +4990,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5297,13 +5297,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5330,14 +5330,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5390,14 +5390,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5475,7 +5475,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5652,7 +5651,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -5678,11 +5678,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5704,7 +5704,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -5764,7 +5763,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -5786,12 +5786,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -5897,13 +5897,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -5918,8 +5918,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6066,11 +6066,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6096,7 +6096,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6106,7 +6105,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6121,7 +6121,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6130,7 +6130,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6303,12 +6303,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -6387,34 +6387,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6575,13 +6575,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6599,7 +6599,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6631,7 +6630,8 @@ "27": "code_builder_scoreboard", "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor" - } + }, + "type": "zigzag32" } ] }, @@ -6661,13 +6661,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -6895,63 +6895,29 @@ "type": [ "mapper", { - "type": "varint", - "mappings": { - "0": "show_bar", - "1": "register_player", - "2": "hide_bar", - "3": "unregister_player", - "4": "set_bar_progress", - "5": "set_bar_title", - "6": "update_properties", - "7": "texture", - "8": "query" - } - } - ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "mappings": { + "0": "show_bar", + "1": "register_player", + "2": "hide_bar", + "3": "unregister_player", + "4": "set_bar_progress", + "5": "set_bar_title", + "6": "update_properties", + "7": "texture", + "8": "query" + }, + "type": "varint" + } + ] + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "query": [ "container", [ { @@ -6960,7 +6926,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -6987,9 +6953,17 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -7016,6 +6990,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -7094,8 +7094,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7163,7 +7163,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7184,7 +7183,8 @@ "57": "json", "67": "block_states", "70": "command" - } + }, + "type": "lu16" } ] }, @@ -7193,13 +7193,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -7285,12 +7285,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -7311,28 +7311,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -7367,6 +7367,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -7379,12 +7388,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -7397,15 +7406,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -7449,13 +7449,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7501,10 +7501,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7612,7 +7612,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7622,7 +7621,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -7717,7 +7717,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -7728,7 +7727,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -7902,14 +7902,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -7924,23 +7924,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -7967,16 +7950,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -7996,6 +7983,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8015,7 +8015,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8024,7 +8023,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8037,7 +8037,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8046,7 +8045,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8144,11 +8144,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -8237,11 +8237,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -8281,12 +8281,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -8297,8 +8297,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -8336,12 +8336,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -8383,12 +8383,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -8482,18 +8482,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -8504,11 +8504,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8531,10 +8531,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8576,12 +8576,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -8802,11 +8802,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -8889,12 +8889,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure" - } + }, + "type": "u8" } ] } @@ -8928,11 +8928,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query" - } + }, + "type": "u8" } ] } @@ -9129,12 +9129,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9178,7 +9178,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -9195,7 +9194,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -9242,14 +9242,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -9258,7 +9258,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -9270,7 +9269,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -9279,12 +9279,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -9373,7 +9373,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -9386,7 +9386,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -9425,7 +9425,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -9455,7 +9455,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -9495,7 +9494,8 @@ "item_interact", "block_action", "item_stack_request" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -9624,13 +9624,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -9686,10 +9686,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -9707,12 +9707,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -9747,10 +9747,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -9759,12 +9759,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -9854,11 +9854,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -9930,11 +9930,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -9945,7 +9945,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -9978,7 +9977,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -10056,13 +10056,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -10080,11 +10080,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -10202,7 +10202,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10211,7 +10210,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10224,13 +10224,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10279,7 +10279,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10288,7 +10287,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10298,10 +10298,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -10310,13 +10310,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10367,8 +10367,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -10448,13 +10448,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -10463,12 +10463,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -10516,7 +10516,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -10524,7 +10523,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -10547,7 +10547,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -10568,7 +10567,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -10632,7 +10632,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -10653,7 +10652,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -10662,11 +10662,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -10700,17 +10700,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ diff --git a/data/bedrock/1.19.21/protocol.json b/data/bedrock/1.19.21/protocol.json index b918b7316..526420ff4 100644 --- a/data/bedrock/1.19.21/protocol.json +++ b/data/bedrock/1.19.21/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -655,7 +655,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -784,7 +783,8 @@ "125": "movement_sound_distance_offset", "126": "heartbeat_interval_ticks", "127": "heartbeat_sound_event" - } + }, + "type": "varint" } ] }, @@ -793,7 +793,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -804,7 +803,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -814,27 +814,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -845,7 +845,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -912,13 +911,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -963,7 +962,8 @@ "emerging", "sniffing", "digging" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1136,12 +1136,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1187,7 +1187,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1195,7 +1194,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1205,6 +1205,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1224,26 +1225,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1276,9 +1276,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1311,7 +1308,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1329,14 +1329,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1351,26 +1351,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1383,28 +1377,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1417,11 +1412,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1448,9 +1448,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -1463,7 +1460,10 @@ "type": "zigzag32" } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1539,7 +1539,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1549,7 +1548,8 @@ "5": "shulker_box", "6": "shapeless_chemistry", "7": "shaped_chemistry" - } + }, + "type": "zigzag32" } ] }, @@ -1560,89 +1560,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, - { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "network_id", - "type": "varint" } ] ], - "shulker_box": [ + "furnace_with_metadata": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_meta", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1650,20 +1611,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1695,7 +1670,7 @@ } ] ], - "shaped": [ + "shaped_chemistry": [ "container", [ { @@ -1754,34 +1729,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1813,50 +1774,89 @@ } ] ], - "furnace": [ + "shapeless_chemistry": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" + }, + { + "name": "priority", + "type": "zigzag32" + }, + { + "name": "network_id", + "type": "varint" } ] ], - "furnace_with_metadata": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "input_meta", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2058,11 +2058,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2224,7 +2224,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2256,7 +2255,8 @@ "27": "continue_break", "28": "start_item_use_on", "29": "stop_item_use_on" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2297,7 +2297,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2319,7 +2318,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2330,24 +2330,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2357,91 +2353,72 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, + "name": "recipe_network_id", + "type": "varint" + } + ] + ], + "craft_recipe_auto": [ + "container", + [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2454,25 +2431,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2493,89 +2465,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" - } - ] - ], - "craft_creative": [ - "container", - [ + "name": "source", + "type": "StackRequestSlotInfo" + }, { - "name": "item_id", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "place_in_container": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "filtered_string_index", - "type": "li32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_grindstone_request": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "cost", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "times_crafted", + "type": "u8" } ] ], - "craft_loom_request": [ + "swap": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] + ], + "take_out_container": [ + "container", + [ + { + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2612,11 +2612,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2727,7 +2727,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2745,7 +2744,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -2796,11 +2796,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -2838,7 +2838,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -2864,7 +2863,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -2926,13 +2926,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -2941,13 +2941,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -2956,12 +2956,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3033,12 +3033,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3072,19 +3072,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3092,13 +3091,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3106,13 +3105,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3123,31 +3122,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3158,31 +3157,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3193,31 +3192,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3253,15 +3252,15 @@ "31": "hud", "32": "jigsaw_editor", "33": "smithing_table", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3323,13 +3322,13 @@ "57": "barrel", "58": "cursor", "59": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3774,13 +3773,13 @@ "440": "ConvertToFrog", "441": "RecordPlaying", "442": "Undefined" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -3882,13 +3881,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -3906,13 +3905,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -3933,7 +3932,8 @@ "world_builder", "no_clip", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -3944,13 +3944,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands" - } + }, + "type": "lu16" } ] }, @@ -3980,7 +3980,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4170,7 +4169,8 @@ "189": "death_info", "190": "editor_network", "191": "feature_registry" - } + }, + "type": "varint" } ] }, @@ -4181,194 +4181,194 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "transfer": "packet_transfer", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry" + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4415,7 +4415,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4427,7 +4426,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -4521,14 +4521,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4546,7 +4546,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4559,7 +4558,8 @@ "8": "announcement", "9": "json_whisper", "10": "json" - } + }, + "type": "u8" } ] }, @@ -4574,7 +4574,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4587,7 +4587,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4600,20 +4600,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_whisper": [ "container", [ { @@ -4622,25 +4618,45 @@ } ] ], - "tip": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "system": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "raw": [ "container", [ { @@ -4649,7 +4665,7 @@ } ] ], - "json": [ + "system": [ "container", [ { @@ -4658,26 +4674,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4696,22 +4702,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -4778,12 +4778,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -4956,12 +4956,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -4990,12 +4990,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5297,13 +5297,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5330,14 +5330,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5390,14 +5390,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5475,7 +5475,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5652,7 +5651,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -5678,11 +5678,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5704,7 +5704,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -5764,7 +5763,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -5786,12 +5786,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -5897,13 +5897,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -5918,8 +5918,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6066,11 +6066,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6096,7 +6096,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6106,7 +6105,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6121,7 +6121,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6130,7 +6130,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6303,12 +6303,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -6387,34 +6387,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6575,13 +6575,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6599,7 +6599,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6631,7 +6630,8 @@ "27": "code_builder_scoreboard", "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor" - } + }, + "type": "zigzag32" } ] }, @@ -6661,13 +6661,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -6895,63 +6895,29 @@ "type": [ "mapper", { - "type": "varint", - "mappings": { - "0": "show_bar", - "1": "register_player", - "2": "hide_bar", - "3": "unregister_player", - "4": "set_bar_progress", - "5": "set_bar_title", - "6": "update_properties", - "7": "texture", - "8": "query" - } - } - ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "mappings": { + "0": "show_bar", + "1": "register_player", + "2": "hide_bar", + "3": "unregister_player", + "4": "set_bar_progress", + "5": "set_bar_title", + "6": "update_properties", + "7": "texture", + "8": "query" + }, + "type": "varint" + } + ] + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "query": [ "container", [ { @@ -6960,7 +6926,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -6987,9 +6953,17 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -7016,6 +6990,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -7094,8 +7094,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7163,7 +7163,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7184,7 +7183,8 @@ "57": "json", "67": "block_states", "70": "command" - } + }, + "type": "lu16" } ] }, @@ -7193,13 +7193,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -7285,12 +7285,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -7311,28 +7311,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -7367,6 +7367,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -7379,12 +7388,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -7397,15 +7406,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -7449,13 +7449,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7501,10 +7501,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7612,7 +7612,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7622,7 +7621,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -7717,7 +7717,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -7728,7 +7727,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -7902,14 +7902,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -7924,23 +7924,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -7967,16 +7950,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -7996,6 +7983,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8015,7 +8015,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8024,7 +8023,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8037,7 +8037,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8046,7 +8045,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8144,11 +8144,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -8237,11 +8237,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -8281,12 +8281,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -8297,8 +8297,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -8336,12 +8336,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -8383,12 +8383,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -8482,18 +8482,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -8504,11 +8504,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8531,10 +8531,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8576,12 +8576,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -8802,11 +8802,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -8889,12 +8889,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure" - } + }, + "type": "u8" } ] } @@ -8928,11 +8928,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query" - } + }, + "type": "u8" } ] } @@ -9129,12 +9129,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9178,7 +9178,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -9195,7 +9194,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -9242,14 +9242,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -9258,7 +9258,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -9270,7 +9269,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -9279,12 +9279,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -9373,7 +9373,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -9386,7 +9386,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -9425,7 +9425,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -9455,7 +9455,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -9495,7 +9494,8 @@ "item_interact", "block_action", "item_stack_request" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -9624,13 +9624,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -9686,10 +9686,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -9707,12 +9707,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -9747,10 +9747,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -9759,12 +9759,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -9854,11 +9854,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -9930,11 +9930,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -9945,7 +9945,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -9978,7 +9977,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -10056,13 +10056,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -10080,11 +10080,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -10202,7 +10202,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10211,7 +10210,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10224,13 +10224,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10279,7 +10279,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10288,7 +10287,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10298,10 +10298,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -10310,13 +10310,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10367,8 +10367,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -10448,13 +10448,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -10463,12 +10463,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -10516,7 +10516,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -10524,7 +10523,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -10547,7 +10547,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -10568,7 +10567,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -10632,7 +10632,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -10653,7 +10652,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -10662,11 +10662,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -10700,17 +10700,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ diff --git a/data/bedrock/1.19.30/protocol.json b/data/bedrock/1.19.30/protocol.json index 6f44a1156..4c3cada59 100644 --- a/data/bedrock/1.19.30/protocol.json +++ b/data/bedrock/1.19.30/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -655,7 +655,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -784,7 +783,8 @@ "125": "movement_sound_distance_offset", "126": "heartbeat_interval_ticks", "127": "heartbeat_sound_event" - } + }, + "type": "varint" } ] }, @@ -793,7 +793,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -804,7 +803,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -814,27 +814,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -845,7 +845,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -912,13 +911,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -963,7 +962,8 @@ "emerging", "sniffing", "digging" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1136,12 +1136,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1187,7 +1187,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1195,7 +1194,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1205,6 +1205,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1224,26 +1225,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1276,9 +1276,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1311,7 +1308,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1329,14 +1329,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1351,26 +1351,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1383,28 +1377,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1417,11 +1412,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1443,14 +1443,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", "2": "molang", "3": "item_tag", "4": "string_id_meta" - } + }, + "type": "u8" } ] }, @@ -1474,34 +1474,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1598,7 +1598,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1608,7 +1607,8 @@ "5": "shulker_box", "6": "shapeless_chemistry", "7": "shaped_chemistry" - } + }, + "type": "zigzag32" } ] }, @@ -1619,44 +1619,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "output", + "type": "ItemLegacy" }, { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "block", + "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "uuid", - "type": "uuid" + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1664,20 +1670,34 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1709,20 +1729,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1754,34 +1788,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1813,34 +1833,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1872,50 +1878,44 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "output", - "type": "ItemLegacy" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "block", - "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { - "name": "input_meta", - "type": "zigzag32" + "name": "output", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "output", - "type": "ItemLegacy" + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2117,11 +2117,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2283,7 +2283,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2315,7 +2314,8 @@ "27": "continue_break", "28": "start_item_use_on", "29": "stop_item_use_on" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2356,7 +2356,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2378,7 +2377,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2389,24 +2389,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2416,91 +2412,72 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, + "name": "recipe_network_id", + "type": "varint" + } + ] + ], + "craft_recipe_auto": [ + "container", + [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2513,25 +2490,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2552,89 +2524,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2662,7 +2662,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2675,7 +2674,8 @@ "8": "leave_event_text", "9": "slash_command_chat", "10": "cartography_text" - } + }, + "type": "li32" } ] } @@ -2693,11 +2693,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2808,7 +2808,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2826,7 +2825,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -2877,11 +2877,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -2919,7 +2919,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -2945,7 +2944,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3007,13 +3007,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3022,13 +3022,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3037,12 +3037,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3114,12 +3114,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3153,19 +3153,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3173,13 +3172,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3187,13 +3186,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3204,31 +3203,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3239,31 +3238,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3274,31 +3273,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3334,15 +3333,15 @@ "31": "hud", "32": "jigsaw_editor", "33": "smithing_table", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3404,13 +3403,13 @@ "57": "barrel", "58": "cursor", "59": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3855,13 +3854,13 @@ "440": "ConvertToFrog", "441": "RecordPlaying", "442": "EnchantingTableUse" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -3963,13 +3962,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -3987,13 +3986,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4014,7 +4013,8 @@ "world_builder", "no_clip", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4025,13 +4025,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands" - } + }, + "type": "lu16" } ] }, @@ -4061,7 +4061,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4255,7 +4254,8 @@ "193": "request_network_settings", "194": "game_test_request", "195": "game_test_results" - } + }, + "type": "varint" } ] }, @@ -4266,198 +4266,198 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "transfer": "packet_transfer", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results" + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4504,7 +4504,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4516,7 +4515,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -4610,14 +4610,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4635,7 +4635,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4649,7 +4648,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -4664,7 +4664,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4677,7 +4677,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4690,20 +4690,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -4712,7 +4708,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -4721,25 +4717,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -4748,7 +4764,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -4757,26 +4773,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4795,22 +4801,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -4877,12 +4877,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5055,12 +5055,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5089,12 +5089,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5396,13 +5396,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5429,14 +5429,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5489,14 +5489,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5574,7 +5574,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5751,7 +5750,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -5777,11 +5777,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5803,7 +5803,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -5863,7 +5862,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -5885,12 +5885,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -5996,13 +5996,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6017,8 +6017,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6165,11 +6165,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6195,7 +6195,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6205,7 +6204,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6220,7 +6220,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6229,7 +6229,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6402,12 +6402,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -6486,34 +6486,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6674,13 +6674,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6698,7 +6698,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6730,7 +6729,8 @@ "27": "code_builder_scoreboard", "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor" - } + }, + "type": "zigzag32" } ] }, @@ -6760,13 +6760,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -6994,63 +6994,29 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", "2": "hide_bar", "3": "unregister_player", "4": "set_bar_progress", - "5": "set_bar_title", - "6": "update_properties", - "7": "texture", - "8": "query" - } - } - ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "5": "set_bar_title", + "6": "update_properties", + "7": "texture", + "8": "query" + }, + "type": "varint" + } + ] + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "query": [ "container", [ { @@ -7059,7 +7025,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -7086,9 +7052,17 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -7115,6 +7089,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -7193,8 +7193,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7262,7 +7262,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7283,7 +7282,8 @@ "57": "json", "67": "block_states", "70": "command" - } + }, + "type": "lu16" } ] }, @@ -7292,13 +7292,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -7384,12 +7384,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -7410,28 +7410,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -7466,6 +7466,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -7478,12 +7487,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -7496,15 +7505,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -7548,13 +7548,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7600,10 +7600,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7711,7 +7711,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7721,7 +7720,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -7816,7 +7816,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -7827,7 +7826,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8005,14 +8005,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8027,23 +8027,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -8070,16 +8053,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -8099,6 +8086,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8118,7 +8118,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8127,7 +8126,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8140,7 +8140,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8149,7 +8148,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8247,11 +8247,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -8340,11 +8340,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -8384,12 +8384,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -8400,8 +8400,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -8439,12 +8439,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -8486,12 +8486,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -8585,18 +8585,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -8607,11 +8607,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8634,10 +8634,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8679,12 +8679,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -8905,11 +8905,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -8992,12 +8992,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure" - } + }, + "type": "u8" } ] } @@ -9031,11 +9031,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query" - } + }, + "type": "u8" } ] } @@ -9232,12 +9232,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9281,7 +9281,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -9298,7 +9297,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -9316,11 +9316,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -9370,14 +9370,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -9386,7 +9386,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -9398,7 +9397,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -9407,12 +9407,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -9501,7 +9501,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -9514,7 +9514,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -9553,7 +9553,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -9583,7 +9583,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -9623,7 +9622,8 @@ "item_interact", "block_action", "item_stack_request" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -9752,13 +9752,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -9814,10 +9814,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -9835,12 +9835,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -9875,10 +9875,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -9887,12 +9887,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -9982,11 +9982,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -10058,11 +10058,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -10073,7 +10073,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -10106,7 +10105,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -10184,13 +10184,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -10208,11 +10208,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -10330,7 +10330,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10339,7 +10338,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10352,13 +10352,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10407,7 +10407,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10416,7 +10415,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10426,10 +10426,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -10438,13 +10438,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10495,8 +10495,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -10576,13 +10576,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -10591,12 +10591,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -10644,7 +10644,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -10652,7 +10651,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -10675,7 +10675,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -10696,7 +10695,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -10760,7 +10760,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -10781,7 +10780,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -10790,11 +10790,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -10828,17 +10828,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -10999,14 +10999,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, diff --git a/data/bedrock/1.19.40/protocol.json b/data/bedrock/1.19.40/protocol.json index 32046595f..22ac0caa6 100644 --- a/data/bedrock/1.19.40/protocol.json +++ b/data/bedrock/1.19.40/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -655,7 +655,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -787,7 +786,8 @@ "128": "player_last_death_position", "129": "player_last_death_dimension", "130": "player_has_died" - } + }, + "type": "varint" } ] }, @@ -796,7 +796,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -807,7 +806,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -817,27 +817,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -848,7 +848,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -915,13 +914,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -966,7 +965,8 @@ "emerging", "sniffing", "digging" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1188,12 +1188,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1239,7 +1239,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1247,7 +1246,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1257,6 +1257,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1276,26 +1277,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1328,9 +1328,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1363,7 +1360,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1381,14 +1381,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1403,26 +1403,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1435,28 +1429,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1469,11 +1464,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1495,14 +1495,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", "2": "molang", "3": "item_tag", "4": "string_id_meta" - } + }, + "type": "u8" } ] }, @@ -1526,34 +1526,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1650,7 +1650,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1660,7 +1659,8 @@ "5": "shulker_box", "6": "shapeless_chemistry", "7": "shaped_chemistry" - } + }, + "type": "zigzag32" } ] }, @@ -1671,44 +1671,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "output", + "type": "ItemLegacy" }, { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "block", + "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "uuid", - "type": "uuid" + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1716,20 +1722,34 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1761,20 +1781,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1806,34 +1840,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1865,34 +1885,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1924,50 +1930,44 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "output", - "type": "ItemLegacy" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "block", - "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { - "name": "input_meta", - "type": "zigzag32" + "name": "output", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "output", - "type": "ItemLegacy" + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2169,11 +2169,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2335,7 +2335,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2367,7 +2366,8 @@ "27": "continue_break", "28": "start_item_use_on", "29": "stop_item_use_on" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2408,7 +2408,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2430,7 +2429,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2441,24 +2441,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2468,91 +2464,82 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2565,25 +2552,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2604,99 +2586,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" - } + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2724,7 +2724,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2738,7 +2737,8 @@ "9": "slash_command_chat", "10": "cartography_text", "11": "slash_command_non_chat" - } + }, + "type": "li32" } ] } @@ -2756,11 +2756,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2871,7 +2871,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2889,7 +2888,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -2940,11 +2940,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -2982,7 +2982,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3008,7 +3007,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3070,13 +3070,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3085,13 +3085,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3100,12 +3100,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3177,12 +3177,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3216,19 +3216,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3236,13 +3235,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3250,13 +3249,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3267,31 +3266,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3302,31 +3301,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3337,31 +3336,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3397,15 +3396,15 @@ "31": "hud", "32": "jigsaw_editor", "33": "smithing_table", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3467,13 +3466,13 @@ "57": "barrel", "58": "cursor", "59": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3923,13 +3922,13 @@ "445": "BundleDropContents", "446": "BundleInsert", "447": "BundleRemoveOne" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4031,13 +4030,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4055,13 +4054,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4082,7 +4081,8 @@ "world_builder", "no_clip", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4093,14 +4093,14 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands", "4": "editor" - } + }, + "type": "lu16" } ] }, @@ -4130,7 +4130,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4324,7 +4323,8 @@ "193": "request_network_settings", "194": "game_test_request", "195": "game_test_results" - } + }, + "type": "varint" } ] }, @@ -4335,198 +4335,198 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "transfer": "packet_transfer", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results" + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4573,7 +4573,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4585,7 +4584,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -4679,14 +4679,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4704,7 +4704,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4718,7 +4717,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -4733,7 +4733,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4746,7 +4746,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4759,20 +4759,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -4781,7 +4777,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -4790,25 +4786,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -4817,7 +4833,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -4826,26 +4842,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4864,22 +4870,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -4946,12 +4946,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5124,12 +5124,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5158,12 +5158,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5473,13 +5473,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5506,14 +5506,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5566,14 +5566,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5651,7 +5651,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5829,7 +5828,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -5855,11 +5855,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5881,7 +5881,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -5941,7 +5940,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -5963,12 +5963,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6074,13 +6074,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6095,8 +6095,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6247,11 +6247,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6277,7 +6277,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6287,7 +6286,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6302,7 +6302,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6311,7 +6311,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6484,12 +6484,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -6568,34 +6568,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6756,13 +6756,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6780,7 +6780,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6812,7 +6811,8 @@ "27": "code_builder_scoreboard", "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor" - } + }, + "type": "zigzag32" } ] }, @@ -6842,13 +6842,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7076,63 +7076,29 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", "2": "hide_bar", "3": "unregister_player", "4": "set_bar_progress", - "5": "set_bar_title", - "6": "update_properties", - "7": "texture", - "8": "query" - } - } - ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "5": "set_bar_title", + "6": "update_properties", + "7": "texture", + "8": "query" + }, + "type": "varint" + } + ] + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "query": [ "container", [ { @@ -7141,7 +7107,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -7168,9 +7134,17 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -7197,6 +7171,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -7275,8 +7275,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7344,7 +7344,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7365,7 +7364,8 @@ "57": "json", "67": "block_states", "70": "command" - } + }, + "type": "lu16" } ] }, @@ -7374,13 +7374,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -7466,12 +7466,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -7492,28 +7492,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -7548,6 +7548,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -7560,12 +7569,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -7578,15 +7587,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -7630,13 +7630,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7682,10 +7682,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7793,7 +7793,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7803,7 +7802,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -7898,7 +7898,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -7909,7 +7908,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8087,14 +8087,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8109,23 +8109,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -8152,16 +8135,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -8181,6 +8168,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8200,7 +8200,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8209,7 +8208,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8222,7 +8222,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8231,7 +8230,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8329,11 +8329,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -8422,11 +8422,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -8466,12 +8466,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -8482,8 +8482,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -8521,12 +8521,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -8568,12 +8568,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -8667,18 +8667,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -8689,11 +8689,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8716,10 +8716,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8761,12 +8761,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -8987,11 +8987,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9074,12 +9074,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure" - } + }, + "type": "u8" } ] } @@ -9113,11 +9113,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query" - } + }, + "type": "u8" } ] } @@ -9314,12 +9314,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9363,7 +9363,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -9380,7 +9379,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -9398,11 +9398,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -9452,14 +9452,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -9468,7 +9468,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -9480,7 +9479,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -9489,12 +9489,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -9583,7 +9583,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -9596,7 +9596,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -9635,7 +9635,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -9665,7 +9665,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -9705,7 +9704,8 @@ "item_interact", "block_action", "item_stack_request" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -9834,13 +9834,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -9896,10 +9896,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -9917,12 +9917,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -9957,10 +9957,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -9969,12 +9969,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10064,11 +10064,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -10140,11 +10140,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -10155,7 +10155,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -10188,7 +10187,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -10266,13 +10266,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -10290,11 +10290,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -10412,7 +10412,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10421,7 +10420,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10434,13 +10434,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10489,7 +10489,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10498,7 +10497,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10508,10 +10508,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -10520,13 +10520,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10577,8 +10577,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -10658,13 +10658,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -10673,12 +10673,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -10726,7 +10726,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -10734,7 +10733,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -10757,7 +10757,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -10778,7 +10777,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -10842,7 +10842,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -10863,7 +10862,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -10872,11 +10872,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -10910,17 +10910,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -11081,14 +11081,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, diff --git a/data/bedrock/1.19.50/protocol.json b/data/bedrock/1.19.50/protocol.json index 6927b528e..65840e5f8 100644 --- a/data/bedrock/1.19.50/protocol.json +++ b/data/bedrock/1.19.50/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -655,7 +655,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -787,7 +786,8 @@ "128": "player_last_death_position", "129": "player_last_death_dimension", "130": "player_has_died" - } + }, + "type": "varint" } ] }, @@ -796,7 +796,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -807,7 +806,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -817,27 +817,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -848,7 +848,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -916,13 +915,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -970,7 +969,8 @@ "sonic_boom", "has_dash_cooldown", "push_towards_closest_space" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1192,12 +1192,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1243,7 +1243,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1251,7 +1250,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1261,6 +1261,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1280,26 +1281,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1332,9 +1332,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1367,7 +1364,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1385,14 +1385,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1407,26 +1407,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1439,28 +1433,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1473,11 +1468,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1499,14 +1499,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", "2": "molang", "3": "item_tag", "4": "string_id_meta" - } + }, + "type": "u8" } ] }, @@ -1530,34 +1530,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1654,7 +1654,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1664,7 +1663,8 @@ "5": "shulker_box", "6": "shapeless_chemistry", "7": "shaped_chemistry" - } + }, + "type": "zigzag32" } ] }, @@ -1675,44 +1675,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "output", + "type": "ItemLegacy" }, { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "block", + "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "uuid", - "type": "uuid" + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1720,20 +1726,34 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1765,20 +1785,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1810,34 +1844,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1869,34 +1889,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1928,50 +1934,44 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "output", - "type": "ItemLegacy" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "block", - "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { - "name": "input_meta", - "type": "zigzag32" + "name": "output", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "output", - "type": "ItemLegacy" + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2173,11 +2173,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2339,7 +2339,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2371,7 +2370,8 @@ "27": "continue_break", "28": "start_item_use_on", "29": "stop_item_use_on" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2412,7 +2412,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2434,7 +2433,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2445,24 +2445,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2472,91 +2468,82 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2569,25 +2556,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2608,99 +2590,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" - } + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2728,7 +2728,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2744,7 +2743,8 @@ "11": "slash_command_non_chat", "12": "scoreboard_text", "13": "ticking_area_text" - } + }, + "type": "li32" } ] } @@ -2762,11 +2762,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2877,7 +2877,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2895,7 +2894,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -2946,11 +2946,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -2988,7 +2988,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3014,7 +3013,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3076,13 +3076,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3091,13 +3091,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3106,12 +3106,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3183,12 +3183,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3222,19 +3222,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3242,13 +3241,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3256,13 +3255,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3273,31 +3272,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3308,31 +3307,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3343,31 +3342,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3404,15 +3403,15 @@ "32": "jigsaw_editor", "33": "smithing_table", "34": "chest_boat", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3475,13 +3474,13 @@ "58": "barrel", "59": "cursor", "60": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3941,13 +3940,13 @@ "455": "TrapdoorClose", "456": "FenceGateOpen", "457": "FenceGateClose" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4049,13 +4048,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4073,13 +4072,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4100,7 +4099,8 @@ "world_builder", "no_clip", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4111,14 +4111,14 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands", "4": "editor" - } + }, + "type": "lu16" } ] }, @@ -4148,7 +4148,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4343,7 +4342,8 @@ "194": "game_test_request", "195": "game_test_results", "196": "update_client_input_locks" - } + }, + "type": "varint" } ] }, @@ -4354,199 +4354,199 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "transfer": "packet_transfer", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", - "update_client_input_locks": "packet_update_client_input_locks" + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_client_input_locks": "packet_update_client_input_locks", + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4593,7 +4593,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4605,7 +4604,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -4699,14 +4699,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4724,7 +4724,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4738,7 +4737,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -4753,7 +4753,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4766,7 +4766,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4779,20 +4779,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -4801,7 +4797,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -4810,25 +4806,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -4837,7 +4853,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -4846,26 +4862,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4884,22 +4890,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -4966,12 +4966,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5144,12 +5144,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5178,12 +5178,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5493,13 +5493,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5526,14 +5526,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5586,14 +5586,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5671,7 +5671,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5849,7 +5848,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -5875,11 +5875,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5901,7 +5901,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -5961,7 +5960,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -5983,12 +5983,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6094,13 +6094,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6115,8 +6115,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6267,11 +6267,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6297,7 +6297,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6307,7 +6306,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6322,7 +6322,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6331,7 +6331,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6504,12 +6504,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -6588,34 +6588,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6776,13 +6776,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6800,7 +6800,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6832,7 +6831,8 @@ "27": "code_builder_scoreboard", "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor" - } + }, + "type": "zigzag32" } ] }, @@ -6862,13 +6862,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7096,7 +7096,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7107,52 +7106,19 @@ "6": "update_properties", "7": "texture", "8": "query" - } - } - ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + }, + "type": "varint" + } + ] + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "query": [ "container", [ { @@ -7161,7 +7127,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -7188,9 +7154,17 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -7217,6 +7191,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -7295,8 +7295,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7364,7 +7364,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7385,7 +7384,8 @@ "57": "json", "67": "block_states", "70": "command" - } + }, + "type": "lu16" } ] }, @@ -7394,13 +7394,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -7486,12 +7486,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -7512,28 +7512,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -7568,6 +7568,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -7580,12 +7589,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -7598,15 +7607,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -7650,13 +7650,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7702,10 +7702,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7813,7 +7813,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7823,7 +7822,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -7918,7 +7918,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -7929,7 +7928,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8107,14 +8107,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8129,23 +8129,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -8172,16 +8155,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -8201,6 +8188,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8220,7 +8220,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8229,7 +8228,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8242,7 +8242,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8251,7 +8250,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8349,11 +8349,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -8442,11 +8442,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -8486,12 +8486,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -8502,8 +8502,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -8541,12 +8541,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -8588,12 +8588,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -8687,18 +8687,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -8709,11 +8709,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8736,10 +8736,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8781,12 +8781,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9007,11 +9007,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9094,13 +9094,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9134,12 +9134,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -9336,12 +9336,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9385,7 +9385,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -9402,7 +9401,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -9420,11 +9420,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -9474,14 +9474,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -9490,7 +9490,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -9502,7 +9501,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -9511,12 +9511,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -9605,7 +9605,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -9618,7 +9618,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -9657,7 +9657,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -9687,7 +9687,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -9727,7 +9726,8 @@ "item_interact", "block_action", "item_stack_request" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -9856,13 +9856,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -9918,10 +9918,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -9939,12 +9939,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -9979,10 +9979,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -9991,12 +9991,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10086,11 +10086,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -10162,11 +10162,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -10177,7 +10177,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -10210,7 +10209,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -10288,13 +10288,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -10312,11 +10312,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -10434,7 +10434,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10443,7 +10442,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10456,13 +10456,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10511,7 +10511,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10520,7 +10519,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10530,10 +10530,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -10542,13 +10542,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10599,8 +10599,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -10680,13 +10680,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -10695,12 +10695,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -10748,7 +10748,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -10756,7 +10755,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -10779,7 +10779,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -10800,7 +10799,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -10864,7 +10864,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -10885,7 +10884,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -10894,11 +10894,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -10932,17 +10932,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -11103,14 +11103,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -11152,15 +11152,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ diff --git a/data/bedrock/1.19.60/protocol.json b/data/bedrock/1.19.60/protocol.json index 89374f474..4ab301331 100644 --- a/data/bedrock/1.19.60/protocol.json +++ b/data/bedrock/1.19.60/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -655,7 +655,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -787,7 +786,8 @@ "128": "player_last_death_position", "129": "player_last_death_dimension", "130": "player_has_died" - } + }, + "type": "varint" } ] }, @@ -796,7 +796,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -807,7 +806,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -817,27 +817,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -848,7 +848,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -916,13 +915,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -970,7 +969,8 @@ "sonic_boom", "has_dash_cooldown", "push_towards_closest_space" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1192,12 +1192,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1243,7 +1243,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1251,7 +1250,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1261,6 +1261,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1280,26 +1281,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1332,9 +1332,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1367,7 +1364,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1385,14 +1385,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1407,26 +1407,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1439,28 +1433,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1473,11 +1468,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1499,14 +1499,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", "2": "molang", "3": "item_tag", "4": "string_id_meta" - } + }, + "type": "u8" } ] }, @@ -1530,34 +1530,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1654,7 +1654,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1665,7 +1664,8 @@ "6": "shapeless_chemistry", "7": "shaped_chemistry", "8": "smithing_transform" - } + }, + "type": "zigzag32" } ] }, @@ -1676,44 +1676,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "output", + "type": "ItemLegacy" }, { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "block", + "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "uuid", - "type": "uuid" + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1721,20 +1727,34 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1766,20 +1786,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1811,34 +1845,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1870,34 +1890,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1929,50 +1935,44 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "output", - "type": "ItemLegacy" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "block", - "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { - "name": "input_meta", - "type": "zigzag32" + "name": "output", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "output", - "type": "ItemLegacy" + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2203,11 +2203,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2369,7 +2369,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2402,7 +2401,8 @@ "28": "start_item_use_on", "29": "stop_item_use_on", "30": "handled_teleport" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2443,7 +2443,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2465,7 +2464,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2476,24 +2476,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2503,91 +2499,82 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2600,25 +2587,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2639,99 +2621,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" - } + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2759,7 +2759,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2775,7 +2774,8 @@ "11": "slash_command_non_chat", "12": "scoreboard_text", "13": "ticking_area_text" - } + }, + "type": "li32" } ] } @@ -2793,11 +2793,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2908,7 +2908,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2926,7 +2925,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -2977,11 +2977,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3019,7 +3019,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3045,7 +3044,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3107,13 +3107,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3122,13 +3122,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3137,12 +3137,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3214,12 +3214,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3253,19 +3253,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3273,13 +3272,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3287,13 +3286,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3304,31 +3303,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3339,31 +3338,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3374,31 +3373,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3435,15 +3434,15 @@ "32": "jigsaw_editor", "33": "smithing_table", "34": "chest_boat", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3506,13 +3505,13 @@ "58": "barrel", "59": "cursor", "60": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3976,13 +3975,13 @@ "459": "Pickup", "460": "InsertEnchanted", "461": "PickupEnchanted" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4084,13 +4083,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4108,13 +4107,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4135,7 +4134,8 @@ "world_builder", "no_clip", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4146,14 +4146,14 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands", "4": "editor" - } + }, + "type": "lu16" } ] }, @@ -4183,7 +4183,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4379,7 +4378,8 @@ "195": "game_test_results", "196": "update_client_input_locks", "197": "client_cheat_ability" - } + }, + "type": "varint" } ] }, @@ -4390,200 +4390,200 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "transfer": "packet_transfer", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4630,7 +4630,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4642,7 +4641,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -4736,14 +4736,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4761,7 +4761,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4775,7 +4774,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -4790,7 +4790,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4803,7 +4803,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4816,20 +4816,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -4838,7 +4834,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -4847,25 +4843,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -4874,7 +4890,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -4883,26 +4899,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4921,22 +4927,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5003,12 +5003,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5185,12 +5185,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5219,12 +5219,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5534,13 +5534,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5567,14 +5567,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5627,14 +5627,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5712,7 +5712,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5890,7 +5889,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -5916,11 +5916,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5942,7 +5942,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6002,7 +6001,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6024,12 +6024,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6135,13 +6135,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6156,8 +6156,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6308,11 +6308,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6338,7 +6338,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6348,7 +6347,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6363,7 +6363,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6372,7 +6372,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6545,12 +6545,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -6629,34 +6629,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6817,13 +6817,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6841,7 +6841,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6873,7 +6872,8 @@ "27": "code_builder_scoreboard", "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor" - } + }, + "type": "zigzag32" } ] }, @@ -6903,13 +6903,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7137,7 +7137,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7148,52 +7147,19 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "query": [ "container", [ { @@ -7202,7 +7168,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -7229,9 +7195,17 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -7258,6 +7232,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -7336,8 +7336,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7405,7 +7405,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7426,7 +7425,8 @@ "57": "json", "67": "block_states", "70": "command" - } + }, + "type": "lu16" } ] }, @@ -7435,13 +7435,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -7527,12 +7527,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -7553,28 +7553,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -7613,6 +7613,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -7625,12 +7634,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -7643,15 +7652,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -7695,13 +7695,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7747,10 +7747,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7858,7 +7858,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7868,7 +7867,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -7963,7 +7963,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -7974,7 +7973,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8152,14 +8152,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8174,23 +8174,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -8217,16 +8200,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -8246,6 +8233,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8265,7 +8265,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8274,7 +8273,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8287,7 +8287,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8296,7 +8295,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8394,11 +8394,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -8487,11 +8487,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -8531,12 +8531,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -8547,8 +8547,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -8586,12 +8586,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -8633,12 +8633,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -8732,18 +8732,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -8754,11 +8754,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8781,10 +8781,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8826,12 +8826,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9052,11 +9052,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9139,13 +9139,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9179,12 +9179,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -9372,11 +9372,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -9390,12 +9390,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9439,7 +9439,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -9456,7 +9455,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -9474,11 +9474,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -9528,14 +9528,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -9544,7 +9544,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -9556,7 +9555,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -9565,12 +9565,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -9659,7 +9659,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -9672,7 +9672,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -9711,7 +9711,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -9741,7 +9741,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -9782,7 +9781,8 @@ "block_action", "item_stack_request", "handled_teleport" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -9911,13 +9911,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -9973,10 +9973,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -9994,12 +9994,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -10034,10 +10034,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -10046,12 +10046,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10141,11 +10141,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -10217,11 +10217,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -10232,7 +10232,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -10265,7 +10264,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -10343,13 +10343,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -10367,11 +10367,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -10489,7 +10489,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10498,7 +10497,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10511,13 +10511,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10566,7 +10566,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10575,7 +10574,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10585,10 +10585,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -10597,13 +10597,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10654,8 +10654,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -10735,13 +10735,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -10750,12 +10750,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -10803,7 +10803,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -10811,7 +10810,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -10834,7 +10834,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -10855,7 +10854,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -10919,7 +10919,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -10940,7 +10939,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -10949,11 +10949,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -10987,17 +10987,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -11158,14 +11158,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -11207,15 +11207,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ diff --git a/data/bedrock/1.19.62/protocol.json b/data/bedrock/1.19.62/protocol.json index c098e9061..c626ce1b7 100644 --- a/data/bedrock/1.19.62/protocol.json +++ b/data/bedrock/1.19.62/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -655,7 +655,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -787,7 +786,8 @@ "128": "player_last_death_position", "129": "player_last_death_dimension", "130": "player_has_died" - } + }, + "type": "varint" } ] }, @@ -796,7 +796,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -807,7 +806,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -817,27 +817,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -848,7 +848,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -916,13 +915,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -970,7 +969,8 @@ "sonic_boom", "has_dash_cooldown", "push_towards_closest_space" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1192,12 +1192,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1243,7 +1243,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1251,7 +1250,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1261,6 +1261,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1280,26 +1281,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1332,9 +1332,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1367,7 +1364,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1385,14 +1385,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1407,26 +1407,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1439,28 +1433,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1473,11 +1468,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1499,14 +1499,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", "2": "molang", "3": "item_tag", "4": "string_id_meta" - } + }, + "type": "u8" } ] }, @@ -1530,34 +1530,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1654,7 +1654,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1665,7 +1664,8 @@ "6": "shapeless_chemistry", "7": "shaped_chemistry", "8": "smithing_transform" - } + }, + "type": "zigzag32" } ] }, @@ -1676,44 +1676,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "output", + "type": "ItemLegacy" }, { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "block", + "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "uuid", - "type": "uuid" + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1721,20 +1727,34 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1766,20 +1786,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1811,34 +1845,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1870,34 +1890,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1929,50 +1935,44 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "output", - "type": "ItemLegacy" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "block", - "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { - "name": "input_meta", - "type": "zigzag32" + "name": "output", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "output", - "type": "ItemLegacy" + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2207,11 +2207,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2373,7 +2373,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2406,7 +2405,8 @@ "28": "start_item_use_on", "29": "stop_item_use_on", "30": "handled_teleport" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2447,7 +2447,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2469,7 +2468,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2480,24 +2480,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2507,91 +2503,82 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2604,25 +2591,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2643,99 +2625,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" - } + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2763,7 +2763,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2779,7 +2778,8 @@ "11": "slash_command_non_chat", "12": "scoreboard_text", "13": "ticking_area_text" - } + }, + "type": "li32" } ] } @@ -2797,11 +2797,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2912,7 +2912,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2930,7 +2929,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -2981,11 +2981,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3023,7 +3023,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3049,7 +3048,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3111,13 +3111,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3126,13 +3126,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3141,12 +3141,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3218,12 +3218,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3257,19 +3257,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3277,13 +3276,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3291,13 +3290,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3308,31 +3307,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3343,31 +3342,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3378,31 +3377,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3439,15 +3438,15 @@ "32": "jigsaw_editor", "33": "smithing_table", "34": "chest_boat", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3510,13 +3509,13 @@ "58": "barrel", "59": "cursor", "60": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3980,13 +3979,13 @@ "459": "Pickup", "460": "InsertEnchanted", "461": "PickupEnchanted" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4088,13 +4087,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4112,13 +4111,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4139,7 +4138,8 @@ "world_builder", "no_clip", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4150,14 +4150,14 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands", "4": "editor" - } + }, + "type": "lu16" } ] }, @@ -4187,7 +4187,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4383,7 +4382,8 @@ "195": "game_test_results", "196": "update_client_input_locks", "197": "client_cheat_ability" - } + }, + "type": "varint" } ] }, @@ -4394,200 +4394,200 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "transfer": "packet_transfer", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4634,7 +4634,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4646,7 +4645,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -4740,14 +4740,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4765,7 +4765,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4779,7 +4778,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -4794,7 +4794,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4807,7 +4807,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4820,20 +4820,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -4842,7 +4838,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -4851,25 +4847,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -4878,7 +4894,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -4887,26 +4903,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4925,22 +4931,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5007,12 +5007,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5189,12 +5189,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5223,12 +5223,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5538,13 +5538,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5571,14 +5571,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5631,14 +5631,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5716,7 +5716,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5894,7 +5893,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -5920,11 +5920,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5946,7 +5946,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6006,7 +6005,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6028,12 +6028,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6139,13 +6139,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6160,8 +6160,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6312,11 +6312,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6342,7 +6342,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6352,7 +6351,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6367,7 +6367,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6376,7 +6376,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6549,12 +6549,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -6633,34 +6633,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6821,13 +6821,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6845,7 +6845,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6877,7 +6876,8 @@ "27": "code_builder_scoreboard", "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor" - } + }, + "type": "zigzag32" } ] }, @@ -6907,13 +6907,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7141,7 +7141,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7152,52 +7151,19 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "query": [ "container", [ { @@ -7206,7 +7172,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -7233,9 +7199,17 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -7262,6 +7236,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -7340,8 +7340,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7409,7 +7409,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7430,7 +7429,8 @@ "57": "json", "67": "block_states", "70": "command" - } + }, + "type": "lu16" } ] }, @@ -7439,13 +7439,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -7531,12 +7531,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -7557,28 +7557,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -7617,6 +7617,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -7629,12 +7638,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -7647,15 +7656,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -7699,13 +7699,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7751,10 +7751,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7862,7 +7862,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7872,7 +7871,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -7967,7 +7967,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -7978,7 +7977,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8156,14 +8156,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8178,23 +8178,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -8221,16 +8204,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -8250,6 +8237,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8269,7 +8269,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8278,7 +8277,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8291,7 +8291,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8300,7 +8299,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8398,11 +8398,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -8491,11 +8491,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -8535,12 +8535,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -8551,8 +8551,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -8590,12 +8590,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -8637,12 +8637,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -8736,18 +8736,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -8758,11 +8758,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8785,10 +8785,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8830,12 +8830,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9056,11 +9056,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9143,13 +9143,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9183,12 +9183,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -9376,11 +9376,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -9394,12 +9394,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9443,7 +9443,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -9460,7 +9459,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -9478,11 +9478,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -9532,14 +9532,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -9548,7 +9548,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -9560,7 +9559,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -9569,12 +9569,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -9663,7 +9663,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -9676,7 +9676,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -9715,7 +9715,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -9745,7 +9745,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -9786,7 +9785,8 @@ "block_action", "item_stack_request", "handled_teleport" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -9915,13 +9915,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -9977,10 +9977,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -9998,12 +9998,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -10038,10 +10038,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -10050,12 +10050,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10145,11 +10145,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -10221,11 +10221,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -10236,7 +10236,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -10269,7 +10268,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -10347,13 +10347,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -10371,11 +10371,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -10493,7 +10493,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10502,7 +10501,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10515,13 +10515,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10570,7 +10570,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10579,7 +10578,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10589,10 +10589,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -10601,13 +10601,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10658,8 +10658,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -10739,13 +10739,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -10754,12 +10754,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -10807,7 +10807,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -10815,7 +10814,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -10838,7 +10838,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -10859,7 +10858,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -10923,7 +10923,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -10944,7 +10943,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -10953,11 +10953,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -10991,17 +10991,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -11162,14 +11162,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -11211,15 +11211,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ diff --git a/data/bedrock/1.19.70/protocol.json b/data/bedrock/1.19.70/protocol.json index a1a039cd3..6cb8be1ef 100644 --- a/data/bedrock/1.19.70/protocol.json +++ b/data/bedrock/1.19.70/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -655,7 +655,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -787,7 +786,8 @@ "128": "player_last_death_position", "129": "player_last_death_dimension", "130": "player_has_died" - } + }, + "type": "varint" } ] }, @@ -796,7 +796,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -807,7 +806,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -817,27 +817,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -848,7 +848,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -916,13 +915,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -974,7 +973,8 @@ "rising", "feeling_happy", "searching" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1196,12 +1196,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1247,7 +1247,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1255,7 +1254,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1265,6 +1265,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1284,26 +1285,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1336,9 +1336,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1371,7 +1368,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1389,14 +1389,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1411,26 +1411,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1443,28 +1437,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1477,11 +1472,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1503,7 +1503,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1511,7 +1510,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1522,6 +1522,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1535,34 +1544,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1578,15 +1587,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1668,7 +1668,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1679,7 +1678,8 @@ "6": "shapeless_chemistry", "7": "shaped_chemistry", "8": "smithing_transform" - } + }, + "type": "zigzag32" } ] }, @@ -1690,44 +1690,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "output", + "type": "ItemLegacy" }, { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "block", + "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "uuid", - "type": "uuid" + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1735,21 +1741,35 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" - } + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] + } ] }, { @@ -1780,20 +1800,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1825,34 +1859,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1884,34 +1904,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1943,50 +1949,44 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "output", - "type": "ItemLegacy" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "block", - "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { - "name": "input_meta", - "type": "zigzag32" + "name": "output", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "output", - "type": "ItemLegacy" + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2221,11 +2221,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2387,7 +2387,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2420,7 +2419,8 @@ "28": "start_item_use_on", "29": "stop_item_use_on", "30": "handled_teleport" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2461,7 +2461,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2483,7 +2482,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2494,24 +2494,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2521,91 +2517,82 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2618,25 +2605,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2657,99 +2639,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", + "name": "count", "type": "u8" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2777,7 +2777,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2791,7 +2790,8 @@ "9": "slash_command_chat", "10": "cartography_text", "11": "slash_command_non_chat" - } + }, + "type": "li32" } ] } @@ -2809,11 +2809,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2924,7 +2924,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2942,7 +2941,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -2993,11 +2993,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3035,7 +3035,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3061,7 +3060,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3123,13 +3123,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3138,13 +3138,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3153,12 +3153,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3230,12 +3230,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3269,19 +3269,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3289,13 +3288,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3303,13 +3302,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3320,31 +3319,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3355,31 +3354,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3390,31 +3389,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3451,15 +3450,15 @@ "32": "jigsaw_editor", "33": "smithing_table", "34": "chest_boat", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3522,13 +3521,13 @@ "58": "barrel", "59": "cursor", "60": "creative_output" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -3996,13 +3995,13 @@ "463": "BrushCompleted", "464": "ShatterDecoratedPot", "465": "BreakDecoratedPot" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4104,13 +4103,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4128,13 +4127,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4156,7 +4155,8 @@ "no_clip", "privileged_builder", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4167,14 +4167,14 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands", "4": "editor" - } + }, + "type": "lu16" } ] }, @@ -4204,7 +4204,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4403,7 +4402,8 @@ "198": "camera_presets", "199": "unlocked_recipes", "300": "camera_instruction" - } + }, + "type": "varint" } ] }, @@ -4414,203 +4414,203 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "transfer": "packet_transfer", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4657,7 +4657,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4669,7 +4668,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -4763,14 +4763,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4788,7 +4788,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4802,7 +4801,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -4817,7 +4817,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4830,7 +4830,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4843,20 +4843,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -4865,7 +4861,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -4874,25 +4870,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -4901,7 +4917,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -4910,26 +4926,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4948,22 +4954,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5030,12 +5030,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5212,12 +5212,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5246,12 +5246,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5561,13 +5561,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5594,14 +5594,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5654,14 +5654,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5739,7 +5739,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5917,7 +5916,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -5943,11 +5943,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -5969,7 +5969,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6029,7 +6028,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6051,12 +6051,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6162,13 +6162,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6183,8 +6183,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6335,11 +6335,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6365,7 +6365,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6375,7 +6374,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6390,7 +6390,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6399,7 +6399,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6572,12 +6572,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -6656,34 +6656,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6844,13 +6844,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6868,7 +6868,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6900,7 +6899,8 @@ "27": "code_builder_scoreboard", "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor" - } + }, + "type": "zigzag32" } ] }, @@ -6930,13 +6930,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7164,7 +7164,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7175,52 +7174,19 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "query": [ "container", [ { @@ -7229,7 +7195,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -7256,9 +7222,17 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -7285,6 +7259,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -7363,8 +7363,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7432,7 +7432,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7453,7 +7452,8 @@ "57": "json", "67": "block_states", "70": "command" - } + }, + "type": "lu16" } ] }, @@ -7462,13 +7462,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -7554,12 +7554,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -7580,28 +7580,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -7640,6 +7640,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -7652,12 +7661,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -7670,15 +7679,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -7722,13 +7722,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7774,10 +7774,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7885,7 +7885,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7895,7 +7894,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -7990,7 +7990,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8001,7 +8000,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8179,14 +8179,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8201,23 +8201,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -8244,16 +8227,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -8273,6 +8260,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8292,7 +8292,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8301,7 +8300,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8314,7 +8314,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8323,7 +8322,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8421,11 +8421,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -8514,11 +8514,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -8558,12 +8558,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -8574,8 +8574,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -8613,12 +8613,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -8660,12 +8660,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -8759,18 +8759,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -8781,11 +8781,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8808,10 +8808,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8853,12 +8853,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9079,11 +9079,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9166,13 +9166,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9206,12 +9206,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -9399,11 +9399,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -9417,12 +9417,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9466,7 +9466,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -9483,7 +9482,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -9501,11 +9501,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -9555,14 +9555,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -9571,7 +9571,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -9583,7 +9582,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -9592,12 +9592,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -9686,7 +9686,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -9699,7 +9699,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -9738,7 +9738,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -9772,7 +9772,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -9814,7 +9813,8 @@ "item_stack_request", "handled_teleport", "emoting" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -9943,13 +9943,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -10005,10 +10005,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -10026,12 +10026,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -10066,10 +10066,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -10078,12 +10078,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10173,11 +10173,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -10249,11 +10249,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -10264,7 +10264,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -10297,7 +10296,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -10375,13 +10375,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -10399,11 +10399,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -10521,7 +10521,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10530,7 +10529,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10543,13 +10543,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10598,7 +10598,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10607,7 +10606,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10617,10 +10617,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -10629,13 +10629,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10686,8 +10686,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -10767,13 +10767,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -10782,12 +10782,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -10835,7 +10835,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -10843,7 +10842,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -10866,7 +10866,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -10887,7 +10886,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -10951,7 +10951,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -10972,7 +10971,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -10981,11 +10981,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -11019,17 +11019,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -11190,14 +11190,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -11239,15 +11239,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ diff --git a/data/bedrock/1.19.80/protocol.json b/data/bedrock/1.19.80/protocol.json index db58fd5eb..e626d3120 100644 --- a/data/bedrock/1.19.80/protocol.json +++ b/data/bedrock/1.19.80/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -655,7 +655,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -787,7 +786,8 @@ "128": "player_last_death_position", "129": "player_last_death_dimension", "130": "player_has_died" - } + }, + "type": "varint" } ] }, @@ -796,7 +796,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -807,7 +806,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -817,27 +817,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -848,7 +848,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -916,13 +915,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -974,7 +973,8 @@ "rising", "feeling_happy", "searching" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1196,12 +1196,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1247,7 +1247,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1255,7 +1254,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1265,6 +1265,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1284,26 +1285,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1336,9 +1336,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1371,7 +1368,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1389,14 +1389,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1411,26 +1411,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1443,28 +1437,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1477,11 +1472,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1503,7 +1503,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1511,7 +1510,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1522,6 +1522,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1535,34 +1544,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1578,15 +1587,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1668,7 +1668,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1680,7 +1679,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1691,44 +1691,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "output", + "type": "ItemLegacy" }, { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "block", + "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "uuid", - "type": "uuid" + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1736,21 +1742,35 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" - } + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] + } ] }, { @@ -1781,20 +1801,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1826,34 +1860,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1885,34 +1905,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1944,50 +1950,44 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "output", - "type": "ItemLegacy" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "block", - "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { - "name": "input_meta", - "type": "zigzag32" + "name": "output", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "output", - "type": "ItemLegacy" + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2255,11 +2255,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2421,7 +2421,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2454,7 +2453,8 @@ "28": "start_item_use_on", "29": "stop_item_use_on", "30": "handled_teleport" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2495,7 +2495,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2517,7 +2516,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2528,24 +2528,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2555,91 +2551,82 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2652,25 +2639,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2691,99 +2673,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", + "name": "count", "type": "u8" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2811,7 +2811,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2825,7 +2824,8 @@ "9": "slash_command_chat", "10": "cartography_text", "11": "slash_command_non_chat" - } + }, + "type": "li32" } ] } @@ -2843,11 +2843,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2958,7 +2958,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2976,7 +2975,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3027,11 +3027,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3069,7 +3069,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3095,7 +3094,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3157,13 +3157,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3172,13 +3172,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3187,12 +3187,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3264,12 +3264,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3303,19 +3303,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3323,13 +3322,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3337,13 +3336,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3354,31 +3353,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3389,31 +3388,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3424,31 +3423,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3485,15 +3484,15 @@ "32": "jigsaw_editor", "33": "smithing_table", "34": "chest_boat", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3557,13 +3556,13 @@ "59": "cursor", "60": "creative_output", "61": "smithing_table_template" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4031,13 +4030,13 @@ "463": "BrushCompleted", "464": "ShatterDecoratedPot", "465": "BreakDecoratedPot" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4139,13 +4138,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4163,13 +4162,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4191,7 +4190,8 @@ "no_clip", "privileged_builder", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4202,14 +4202,14 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands", "4": "editor" - } + }, + "type": "lu16" } ] }, @@ -4239,7 +4239,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4441,7 +4440,8 @@ "301": "compressed_biome_definitions", "302": "trim_data", "303": "open_sign" - } + }, + "type": "varint" } ] }, @@ -4452,206 +4452,206 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4698,7 +4698,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4710,7 +4709,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -4804,14 +4804,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4829,7 +4829,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4843,7 +4842,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -4858,7 +4858,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4871,7 +4871,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4884,20 +4884,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -4906,7 +4902,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -4915,25 +4911,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -4942,7 +4958,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -4951,26 +4967,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4989,22 +4995,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5071,12 +5071,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5261,12 +5261,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5295,12 +5295,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5614,13 +5614,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5647,14 +5647,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5707,14 +5707,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5792,7 +5792,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5976,7 +5975,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -6002,11 +6002,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -6028,7 +6028,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6088,7 +6087,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6110,12 +6110,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6221,13 +6221,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6242,8 +6242,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6394,11 +6394,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6424,7 +6424,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6434,7 +6433,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6449,7 +6449,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6458,7 +6458,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6631,12 +6631,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -6715,34 +6715,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6903,13 +6903,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6927,7 +6927,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6959,7 +6958,8 @@ "27": "code_builder_scoreboard", "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor" - } + }, + "type": "zigzag32" } ] }, @@ -6989,13 +6989,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7227,7 +7227,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7238,52 +7237,19 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "query": [ "container", [ { @@ -7292,7 +7258,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -7319,9 +7285,17 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -7348,6 +7322,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -7426,8 +7426,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7495,7 +7495,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7516,7 +7515,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -7525,13 +7525,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -7617,12 +7617,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -7643,28 +7643,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -7703,6 +7703,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -7715,12 +7724,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -7733,15 +7742,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -7785,13 +7785,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7837,10 +7837,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7948,7 +7948,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7958,7 +7957,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -8053,7 +8053,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8064,7 +8063,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8242,14 +8242,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8264,23 +8264,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -8307,16 +8290,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -8336,6 +8323,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8355,7 +8355,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8364,7 +8363,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8377,7 +8377,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8386,7 +8385,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8484,11 +8484,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -8577,11 +8577,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -8621,12 +8621,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -8637,8 +8637,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -8676,12 +8676,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -8723,12 +8723,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -8822,18 +8822,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -8844,11 +8844,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8871,10 +8871,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8916,12 +8916,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9142,11 +9142,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9229,13 +9229,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9269,12 +9269,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -9462,11 +9462,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -9480,12 +9480,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9529,7 +9529,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -9546,7 +9545,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -9564,11 +9564,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -9618,14 +9618,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -9634,7 +9634,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -9646,7 +9645,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -9655,12 +9655,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -9749,7 +9749,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -9762,7 +9762,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -9801,7 +9801,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -9835,7 +9835,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -9877,7 +9876,8 @@ "item_stack_request", "handled_teleport", "emoting" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -10006,13 +10006,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -10068,10 +10068,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -10089,12 +10089,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -10129,10 +10129,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -10141,12 +10141,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10236,11 +10236,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -10312,11 +10312,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -10327,7 +10327,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -10360,7 +10359,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -10438,13 +10438,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -10462,11 +10462,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -10584,7 +10584,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10593,7 +10592,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10606,13 +10606,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10661,7 +10661,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10670,7 +10669,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10680,10 +10680,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -10692,13 +10692,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10749,8 +10749,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -10830,13 +10830,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -10845,12 +10845,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -10898,7 +10898,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -10906,7 +10905,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -10929,7 +10929,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -10950,7 +10949,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -11014,7 +11014,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -11035,7 +11034,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -11044,11 +11044,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -11082,17 +11082,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -11253,14 +11253,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -11302,15 +11302,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ diff --git a/data/bedrock/1.20.0/protocol.json b/data/bedrock/1.20.0/protocol.json index ee63a3e3e..e9ea014e5 100644 --- a/data/bedrock/1.20.0/protocol.json +++ b/data/bedrock/1.20.0/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -655,7 +655,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -787,7 +786,8 @@ "128": "player_last_death_position", "129": "player_last_death_dimension", "130": "player_has_died" - } + }, + "type": "varint" } ] }, @@ -796,7 +796,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -807,7 +806,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -817,27 +817,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -848,7 +848,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -916,13 +915,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -974,7 +973,8 @@ "rising", "feeling_happy", "searching" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1196,12 +1196,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1247,7 +1247,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1255,7 +1254,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1265,6 +1265,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1284,26 +1285,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1336,9 +1336,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1371,7 +1368,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1389,14 +1389,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1411,26 +1411,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1443,28 +1437,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1477,11 +1472,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1503,7 +1503,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1511,7 +1510,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1522,6 +1522,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1535,34 +1544,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1578,15 +1587,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1668,7 +1668,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1680,7 +1679,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1691,44 +1691,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "output", + "type": "ItemLegacy" }, { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "block", + "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "uuid", - "type": "uuid" + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1736,21 +1742,35 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" - } + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] + } ] }, { @@ -1781,20 +1801,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1826,34 +1860,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1885,34 +1905,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1944,50 +1950,44 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "output", - "type": "ItemLegacy" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "block", - "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { - "name": "input_meta", - "type": "zigzag32" + "name": "output", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "output", - "type": "ItemLegacy" + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2255,11 +2255,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2421,7 +2421,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2454,7 +2453,8 @@ "28": "start_item_use_on", "29": "stop_item_use_on", "30": "handled_teleport" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2495,7 +2495,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2517,7 +2516,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2528,24 +2528,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2555,91 +2551,82 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2652,25 +2639,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2691,99 +2673,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", + "name": "count", "type": "u8" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2811,7 +2811,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2827,7 +2826,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -2845,11 +2845,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2960,7 +2960,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2978,7 +2977,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3029,11 +3029,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3071,7 +3071,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3097,7 +3096,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3159,13 +3159,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3174,13 +3174,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3189,12 +3189,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3266,12 +3266,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3305,19 +3305,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3325,13 +3324,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3339,13 +3338,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3356,31 +3355,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3391,31 +3390,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3426,31 +3425,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3487,15 +3486,15 @@ "32": "jigsaw_editor", "33": "smithing_table", "34": "chest_boat", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3559,13 +3558,13 @@ "59": "cursor", "60": "creative_output", "61": "smithing_table_template" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4037,13 +4036,13 @@ "467": "SnifferEggHatched", "468": "WaxedSignInteractFail", "469": "RecordRelic" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4145,13 +4144,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4169,13 +4168,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4197,7 +4196,8 @@ "no_clip", "privileged_builder", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4208,14 +4208,14 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands", "4": "editor" - } + }, + "type": "lu16" } ] }, @@ -4245,7 +4245,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4447,7 +4446,8 @@ "301": "compressed_biome_definitions", "302": "trim_data", "303": "open_sign" - } + }, + "type": "varint" } ] }, @@ -4458,206 +4458,206 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4704,7 +4704,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4716,7 +4715,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -4810,14 +4810,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4835,7 +4835,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4849,7 +4848,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -4864,7 +4864,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4877,7 +4877,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4890,20 +4890,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -4912,7 +4908,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -4921,25 +4917,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -4948,7 +4964,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -4957,26 +4973,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -4995,22 +5001,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5077,12 +5077,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5267,12 +5267,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5301,12 +5301,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5624,13 +5624,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5657,14 +5657,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5717,14 +5717,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5802,7 +5802,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5986,7 +5985,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -6012,11 +6012,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -6038,7 +6038,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6098,7 +6097,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6120,12 +6120,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6231,13 +6231,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6252,8 +6252,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6404,11 +6404,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6434,7 +6434,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6444,7 +6443,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6459,7 +6459,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6468,7 +6468,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6641,12 +6641,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -6725,34 +6725,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6913,13 +6913,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6937,7 +6937,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6970,7 +6969,8 @@ "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration" - } + }, + "type": "zigzag32" } ] }, @@ -7000,13 +7000,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7238,7 +7238,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7249,52 +7248,19 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "query": [ "container", [ { @@ -7303,7 +7269,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -7330,9 +7296,17 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -7359,6 +7333,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -7437,8 +7437,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7506,7 +7506,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7527,7 +7526,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -7536,13 +7536,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -7628,12 +7628,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -7654,28 +7654,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -7714,6 +7714,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -7726,12 +7735,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -7744,15 +7753,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -7796,13 +7796,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7848,10 +7848,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -7959,7 +7959,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -7969,7 +7968,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -8064,7 +8064,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8075,7 +8074,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8253,14 +8253,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8275,23 +8275,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -8318,16 +8301,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -8347,6 +8334,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8366,7 +8366,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8375,7 +8374,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8388,7 +8388,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8397,7 +8396,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8495,11 +8495,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -8588,11 +8588,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -8632,12 +8632,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -8648,8 +8648,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -8687,12 +8687,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -8734,12 +8734,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -8833,18 +8833,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -8855,11 +8855,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8882,10 +8882,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8927,12 +8927,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9153,11 +9153,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9240,13 +9240,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9280,12 +9280,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -9481,11 +9481,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -9499,12 +9499,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9548,7 +9548,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -9565,7 +9564,8 @@ "12": "retrieved", "13": "dyed", "14": "traded" - } + }, + "type": "li32" } ] } @@ -9583,11 +9583,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -9637,14 +9637,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -9653,7 +9653,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -9665,7 +9664,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -9674,12 +9674,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -9768,7 +9768,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -9781,7 +9781,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -9820,7 +9820,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -9854,7 +9854,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -9896,7 +9895,8 @@ "item_stack_request", "handled_teleport", "emoting" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -10025,13 +10025,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -10087,10 +10087,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -10108,12 +10108,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -10148,10 +10148,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -10160,12 +10160,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10255,11 +10255,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -10331,11 +10331,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -10346,7 +10346,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -10379,7 +10378,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -10457,13 +10457,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -10481,11 +10481,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -10603,7 +10603,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10612,7 +10611,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10625,13 +10625,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10680,7 +10680,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10689,7 +10688,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10699,10 +10699,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -10711,13 +10711,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10768,8 +10768,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -10849,13 +10849,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -10864,12 +10864,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -10917,7 +10917,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -10925,7 +10924,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -10948,7 +10948,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -10969,7 +10968,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -11033,7 +11033,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -11054,7 +11053,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -11063,11 +11063,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -11101,17 +11101,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -11272,14 +11272,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -11321,15 +11321,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -11389,14 +11389,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, diff --git a/data/bedrock/1.20.10/protocol.json b/data/bedrock/1.20.10/protocol.json index 7356dd2f9..9bdc5da74 100644 --- a/data/bedrock/1.20.10/protocol.json +++ b/data/bedrock/1.20.10/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -655,7 +655,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -788,7 +787,8 @@ "129": "player_last_death_dimension", "130": "player_has_died", "131": "collision_box" - } + }, + "type": "varint" } ] }, @@ -797,7 +797,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -808,7 +807,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -818,27 +818,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -849,7 +849,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -917,13 +916,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -976,7 +975,8 @@ "feeling_happy", "searching", "crawling" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1198,12 +1198,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1249,7 +1249,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1257,7 +1256,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1267,6 +1267,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1286,26 +1287,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1338,9 +1338,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1373,7 +1370,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1391,14 +1391,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1413,26 +1413,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1445,28 +1439,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1479,11 +1474,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1505,7 +1505,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1513,7 +1512,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1524,6 +1524,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1537,34 +1546,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1580,15 +1589,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1670,7 +1670,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1682,7 +1681,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1693,44 +1693,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "output", + "type": "ItemLegacy" }, { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "block", + "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "uuid", - "type": "uuid" + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1738,21 +1744,35 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" - } + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] + } ] }, { @@ -1783,20 +1803,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1828,34 +1862,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1887,34 +1907,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1946,50 +1952,44 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "output", - "type": "ItemLegacy" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "block", - "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { - "name": "input_meta", - "type": "zigzag32" + "name": "output", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "output", - "type": "ItemLegacy" + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2257,11 +2257,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2423,7 +2423,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2459,7 +2458,8 @@ "31": "missed_swing", "32": "start_crawling", "33": "stop_crawling" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2500,7 +2500,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2522,7 +2521,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2533,24 +2533,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2560,91 +2556,82 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2657,25 +2644,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2696,99 +2678,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", + "name": "count", "type": "u8" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2816,7 +2816,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2832,7 +2831,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -2850,11 +2850,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -2965,7 +2965,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -2983,7 +2982,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3034,11 +3034,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3076,7 +3076,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3102,7 +3101,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3164,13 +3164,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3179,13 +3179,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3194,12 +3194,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3271,12 +3271,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3310,19 +3310,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3330,13 +3329,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3344,13 +3343,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3361,31 +3360,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3396,31 +3395,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3431,31 +3430,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3492,15 +3491,15 @@ "32": "jigsaw_editor", "33": "smithing_table", "34": "chest_boat", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3564,13 +3563,13 @@ "59": "cursor", "60": "creative_output", "61": "smithing_table_template" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4042,13 +4041,13 @@ "467": "SnifferEggHatched", "468": "WaxedSignInteractFail", "469": "RecordRelic" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4150,13 +4149,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4174,13 +4173,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4202,7 +4201,8 @@ "no_clip", "privileged_builder", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4213,14 +4213,14 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands", "4": "editor" - } + }, + "type": "lu16" } ] }, @@ -4250,7 +4250,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4453,7 +4452,8 @@ "302": "trim_data", "303": "open_sign", "304": "agent_animation" - } + }, + "type": "varint" } ] }, @@ -4464,207 +4464,207 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4711,7 +4711,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4723,7 +4722,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -4817,14 +4817,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4842,7 +4842,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4856,7 +4855,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -4871,7 +4871,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4884,7 +4884,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -4897,20 +4897,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -4919,7 +4915,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -4928,25 +4924,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -4955,7 +4971,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -4964,26 +4980,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -5002,22 +5008,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5084,12 +5084,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5274,12 +5274,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5308,12 +5308,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5631,13 +5631,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5664,14 +5664,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5724,14 +5724,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5809,7 +5809,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -5993,7 +5992,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -6019,11 +6019,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -6045,7 +6045,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6105,7 +6104,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6127,12 +6127,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6238,13 +6238,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6259,8 +6259,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6411,11 +6411,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6441,7 +6441,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6451,7 +6450,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6466,7 +6466,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6475,7 +6475,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6648,12 +6648,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -6732,34 +6732,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -6920,13 +6920,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -6944,7 +6944,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -6977,7 +6976,8 @@ "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration" - } + }, + "type": "zigzag32" } ] }, @@ -7007,13 +7007,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7245,7 +7245,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7256,52 +7255,19 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, { "anon": true, "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "switch", + { + "compareTo": "type", + "fields": { + "query": [ "container", [ { @@ -7310,7 +7276,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -7337,9 +7303,17 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -7366,6 +7340,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -7454,8 +7454,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7577,7 +7577,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7598,7 +7597,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -7607,13 +7607,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -7699,12 +7699,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -7725,28 +7725,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -7785,6 +7785,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -7797,12 +7806,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -7815,15 +7824,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -7867,13 +7867,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -7919,10 +7919,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -8030,7 +8030,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -8040,7 +8039,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -8135,7 +8135,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8146,7 +8145,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8324,14 +8324,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8346,23 +8346,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -8389,16 +8372,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -8418,6 +8405,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8437,7 +8437,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8446,7 +8445,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8459,7 +8459,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8468,7 +8467,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8566,11 +8566,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -8659,11 +8659,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -8703,12 +8703,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -8719,8 +8719,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -8758,12 +8758,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -8805,12 +8805,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -8904,18 +8904,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -8926,11 +8926,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -8953,10 +8953,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -8998,12 +8998,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9224,11 +9224,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9311,13 +9311,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9351,12 +9351,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -9552,11 +9552,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -9570,12 +9570,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9619,7 +9619,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -9637,7 +9636,8 @@ "13": "dyed", "14": "traded", "15": "brushing_completed" - } + }, + "type": "li32" } ] } @@ -9655,11 +9655,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -9709,14 +9709,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -9725,7 +9725,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -9737,7 +9736,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -9746,12 +9746,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -9840,7 +9840,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -9853,7 +9853,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -9892,7 +9892,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -9926,7 +9926,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -9971,7 +9970,8 @@ "missed_swing", "start_crawling", "stop_crawling" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -10100,13 +10100,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -10162,10 +10162,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -10183,12 +10183,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -10223,10 +10223,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -10235,12 +10235,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10330,11 +10330,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -10406,11 +10406,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -10421,7 +10421,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -10454,7 +10453,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -10532,13 +10532,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -10556,11 +10556,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -10678,7 +10678,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10687,7 +10686,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10700,13 +10700,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10755,7 +10755,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10764,7 +10763,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10774,10 +10774,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -10786,13 +10786,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10843,8 +10843,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -10924,13 +10924,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -10939,12 +10939,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -10992,7 +10992,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -11000,7 +10999,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -11023,7 +11023,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -11044,7 +11043,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -11108,7 +11108,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -11129,7 +11128,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -11138,11 +11138,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -11176,17 +11176,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -11347,14 +11347,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -11396,15 +11396,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -11464,14 +11464,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -11579,11 +11579,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, diff --git a/data/bedrock/1.20.30/protocol.json b/data/bedrock/1.20.30/protocol.json index 0bea697f3..8f0a7c637 100644 --- a/data/bedrock/1.20.30/protocol.json +++ b/data/bedrock/1.20.30/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -700,7 +700,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -833,7 +832,8 @@ "129": "player_last_death_dimension", "130": "player_has_died", "131": "collision_box" - } + }, + "type": "varint" } ] }, @@ -842,7 +842,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -853,7 +852,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -863,27 +863,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -894,7 +894,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -962,13 +961,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1021,7 +1020,8 @@ "feeling_happy", "searching", "crawling" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1243,12 +1243,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1294,7 +1294,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1302,7 +1301,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1312,6 +1312,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1331,26 +1332,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1383,9 +1383,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1418,7 +1415,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1436,14 +1436,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1458,26 +1458,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1490,28 +1484,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1524,11 +1519,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1550,7 +1550,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1558,7 +1557,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1569,6 +1569,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1582,34 +1591,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1625,15 +1634,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1715,7 +1715,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1727,7 +1726,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1738,44 +1738,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "output", + "type": "ItemLegacy" }, { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "block", + "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "uuid", - "type": "uuid" + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1783,21 +1789,35 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" - } + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] + } ] }, { @@ -1828,20 +1848,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1873,34 +1907,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1932,34 +1952,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1991,50 +1997,44 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "output", - "type": "ItemLegacy" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "block", - "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { - "name": "input_meta", - "type": "zigzag32" + "name": "output", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "output", - "type": "ItemLegacy" + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2302,11 +2302,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2468,7 +2468,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2506,7 +2505,8 @@ "33": "stop_crawling", "34": "start_flying", "35": "stop_flying" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2547,7 +2547,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2569,7 +2568,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2580,24 +2580,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2607,91 +2603,82 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2704,25 +2691,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2743,99 +2725,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", + "name": "count", "type": "u8" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2863,7 +2863,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2879,7 +2878,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -2897,11 +2897,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3012,7 +3012,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3030,7 +3029,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3081,11 +3081,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3123,7 +3123,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3149,7 +3148,8 @@ "21": "village_taiga", "22": "jungle_temple", "23": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3211,13 +3211,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3226,13 +3226,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3241,12 +3241,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3318,12 +3318,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3357,19 +3357,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3377,13 +3376,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3391,13 +3390,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3408,31 +3407,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3443,31 +3442,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3478,31 +3477,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3539,15 +3538,15 @@ "32": "jigsaw_editor", "33": "smithing_table", "34": "chest_boat", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3611,13 +3610,13 @@ "59": "cursor", "60": "creative_output", "61": "smithing_table_template" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4096,13 +4095,13 @@ "474": "HoglinZombified", "475": "AmbientUnderwaterEnter", "476": "AmbientUnderwaterExit" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4204,13 +4203,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4228,13 +4227,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4256,7 +4255,8 @@ "no_clip", "privileged_builder", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4267,14 +4267,14 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands", "4": "editor" - } + }, + "type": "lu16" } ] }, @@ -4339,7 +4339,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4543,7 +4542,8 @@ "303": "open_sign", "304": "agent_animation", "305": "refresh_entitlements" - } + }, + "type": "varint" } ] }, @@ -4554,208 +4554,208 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4802,7 +4802,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4814,7 +4813,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -4930,14 +4930,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -4955,7 +4955,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -4969,7 +4968,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -4984,7 +4984,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -4997,7 +4997,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -5010,20 +5010,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -5032,7 +5028,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -5041,25 +5037,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -5068,7 +5084,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -5077,26 +5093,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -5115,22 +5121,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5197,12 +5197,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5231,12 +5231,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level" - } + }, + "type": "zigzag32" } ] }, @@ -5397,12 +5397,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5431,12 +5431,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5754,13 +5754,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5787,14 +5787,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5847,14 +5847,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -5932,7 +5932,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -6116,7 +6115,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -6142,11 +6142,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -6168,7 +6168,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6228,7 +6227,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6250,12 +6250,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6361,13 +6361,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6382,8 +6382,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6534,11 +6534,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6564,7 +6564,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6574,7 +6573,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6589,7 +6589,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6598,7 +6598,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6771,12 +6771,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -6855,34 +6855,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -7043,13 +7043,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -7067,7 +7067,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -7100,7 +7099,8 @@ "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration" - } + }, + "type": "zigzag32" } ] }, @@ -7130,13 +7130,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7368,7 +7368,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7379,7 +7378,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -7388,43 +7388,9 @@ "type": [ "switch", { - "compareTo": "type", - "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "compareTo": "type", + "fields": { + "query": [ "container", [ { @@ -7433,7 +7399,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -7460,9 +7426,17 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -7489,6 +7463,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -7577,8 +7577,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7700,7 +7700,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7721,7 +7720,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -7730,13 +7730,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -7822,12 +7822,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -7848,28 +7848,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -7908,6 +7908,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -7920,12 +7929,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -7938,15 +7947,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -7990,13 +7990,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -8042,10 +8042,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -8153,7 +8153,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -8163,7 +8162,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -8258,7 +8258,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8269,7 +8268,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8447,14 +8447,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8469,23 +8469,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -8512,16 +8495,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -8541,6 +8528,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8560,7 +8560,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8569,7 +8568,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8582,7 +8582,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8591,7 +8590,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8689,11 +8689,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -8782,11 +8782,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -8826,12 +8826,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -8842,8 +8842,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -8881,12 +8881,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -8928,12 +8928,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -9027,18 +9027,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -9049,11 +9049,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -9076,10 +9076,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -9121,12 +9121,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9347,11 +9347,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9434,13 +9434,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9474,12 +9474,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -9675,11 +9675,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -9693,12 +9693,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9742,7 +9742,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -9760,7 +9759,8 @@ "13": "dyed", "14": "traded", "15": "brushing_completed" - } + }, + "type": "li32" } ] } @@ -9778,11 +9778,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -9832,14 +9832,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -9848,7 +9848,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -9860,7 +9859,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -9869,12 +9869,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -9963,7 +9963,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -9976,7 +9976,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -10015,7 +10015,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -10049,7 +10049,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -10096,7 +10095,8 @@ "stop_crawling", "start_flying", "stop_flying" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -10225,13 +10225,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -10287,10 +10287,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -10308,12 +10308,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -10348,10 +10348,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -10360,12 +10360,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10455,11 +10455,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -10531,11 +10531,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -10546,7 +10546,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -10579,7 +10578,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -10657,13 +10657,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -10681,11 +10681,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -10803,7 +10803,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10812,7 +10811,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10825,13 +10825,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10880,7 +10880,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10889,7 +10888,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10899,10 +10899,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -10911,13 +10911,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -10968,8 +10968,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -11049,13 +11049,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -11064,12 +11064,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -11117,7 +11117,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -11125,7 +11124,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -11148,7 +11148,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -11169,7 +11168,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -11233,7 +11233,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -11254,7 +11253,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -11263,11 +11263,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -11301,17 +11301,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -11472,14 +11472,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -11521,15 +11521,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -11595,14 +11595,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -11644,7 +11644,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -11678,7 +11677,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ] }, @@ -11841,11 +11841,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, diff --git a/data/bedrock/1.20.40/protocol.json b/data/bedrock/1.20.40/protocol.json index 37a0e827f..a49838343 100644 --- a/data/bedrock/1.20.40/protocol.json +++ b/data/bedrock/1.20.40/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -700,7 +700,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -833,7 +832,8 @@ "129": "player_last_death_dimension", "130": "player_has_died", "131": "collision_box" - } + }, + "type": "varint" } ] }, @@ -842,7 +842,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -853,7 +852,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -863,27 +863,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -894,7 +894,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -962,13 +961,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1024,7 +1023,8 @@ "timer_flag_1", "timer_flag_2", "timer_flag_3" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1246,12 +1246,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1297,7 +1297,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1305,7 +1304,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1315,6 +1315,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1334,26 +1335,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1386,9 +1386,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1421,7 +1418,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1439,14 +1439,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1461,26 +1461,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1493,28 +1487,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1527,11 +1522,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1553,7 +1553,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1561,7 +1560,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1572,6 +1572,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1585,34 +1594,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1628,15 +1637,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1718,7 +1718,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1730,7 +1729,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1741,44 +1741,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "output", + "type": "ItemLegacy" }, { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "block", + "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "uuid", - "type": "uuid" + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1786,21 +1792,35 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" - } + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] + } ] }, { @@ -1831,20 +1851,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1876,34 +1910,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1935,34 +1955,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1994,50 +2000,44 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "output", - "type": "ItemLegacy" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "block", - "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { - "name": "input_meta", - "type": "zigzag32" + "name": "output", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "output", - "type": "ItemLegacy" + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2305,11 +2305,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2471,7 +2471,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2510,7 +2509,8 @@ "34": "start_flying", "35": "stop_flying", "36": "received_server_data" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2551,7 +2551,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2573,7 +2572,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2584,24 +2584,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2611,91 +2607,82 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2708,25 +2695,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2747,99 +2729,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", + "name": "count", "type": "u8" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2867,7 +2867,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2883,7 +2882,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -2901,11 +2901,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3016,7 +3016,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3034,7 +3033,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3085,11 +3085,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3127,7 +3127,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3177,7 +3176,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3239,13 +3239,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3254,13 +3254,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3269,12 +3269,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3346,12 +3346,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3385,19 +3385,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3405,13 +3404,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3419,13 +3418,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3436,31 +3435,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3471,31 +3470,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3506,31 +3505,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3567,15 +3566,15 @@ "32": "jigsaw_editor", "33": "smithing_table", "34": "chest_boat", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3639,13 +3638,13 @@ "59": "cursor", "60": "creative_output", "61": "smithing_table_template" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4124,13 +4123,13 @@ "474": "HoglinZombified", "475": "AmbientUnderwaterEnter", "476": "AmbientUnderwaterExit" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4232,13 +4231,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4256,13 +4255,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4284,7 +4283,8 @@ "no_clip", "privileged_builder", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4295,14 +4295,14 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands", "4": "editor" - } + }, + "type": "lu16" } ] }, @@ -4362,7 +4362,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4455,7 +4454,8 @@ "88": "stale_connection_being_replaced", "89": "realms_session_not_found", "90": "bad_packet" - } + }, + "type": "zigzag32" } ], "mcpe_packet": [ @@ -4466,7 +4466,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4670,7 +4669,8 @@ "303": "open_sign", "304": "agent_animation", "305": "refresh_entitlements" - } + }, + "type": "varint" } ] }, @@ -4681,208 +4681,208 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4929,7 +4929,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4941,7 +4940,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -5061,14 +5061,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -5086,7 +5086,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -5100,7 +5099,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -5115,7 +5115,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -5128,7 +5128,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -5141,20 +5141,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -5163,7 +5159,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -5172,25 +5168,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -5199,7 +5215,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -5208,26 +5224,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -5246,22 +5252,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5328,12 +5328,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5362,12 +5362,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level" - } + }, + "type": "zigzag32" } ] }, @@ -5528,12 +5528,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5562,12 +5562,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5885,13 +5885,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5918,14 +5918,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -5978,14 +5978,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -6063,7 +6063,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -6247,7 +6246,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -6273,11 +6273,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -6299,7 +6299,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6359,7 +6358,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6381,12 +6381,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6492,13 +6492,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6513,8 +6513,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6665,11 +6665,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6695,7 +6695,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6705,7 +6704,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6720,7 +6720,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6729,7 +6729,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6902,12 +6902,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -6986,34 +6986,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -7174,13 +7174,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -7198,7 +7198,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -7231,7 +7230,8 @@ "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration" - } + }, + "type": "zigzag32" } ] }, @@ -7261,13 +7261,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7499,7 +7499,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7510,7 +7509,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -7519,43 +7519,9 @@ "type": [ "switch", { - "compareTo": "type", - "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "compareTo": "type", + "fields": { + "query": [ "container", [ { @@ -7564,7 +7530,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -7591,9 +7557,17 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -7620,6 +7594,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -7708,8 +7708,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7831,7 +7831,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7852,7 +7851,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -7861,13 +7861,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -7953,12 +7953,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -7979,28 +7979,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -8039,6 +8039,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -8051,12 +8060,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -8069,15 +8078,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -8121,13 +8121,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -8173,10 +8173,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -8284,7 +8284,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -8294,7 +8293,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -8389,7 +8389,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8400,7 +8399,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8578,14 +8578,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8600,23 +8600,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -8643,16 +8626,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -8672,6 +8659,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8691,7 +8691,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8700,7 +8699,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8713,7 +8713,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8722,7 +8721,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8820,11 +8820,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -8913,11 +8913,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -8957,12 +8957,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -8973,8 +8973,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -9012,12 +9012,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -9059,12 +9059,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -9158,18 +9158,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -9180,11 +9180,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -9207,10 +9207,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -9252,12 +9252,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9478,11 +9478,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9565,13 +9565,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9605,12 +9605,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -9806,11 +9806,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -9824,12 +9824,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9873,7 +9873,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -9891,7 +9890,8 @@ "13": "dyed", "14": "traded", "15": "brushing_completed" - } + }, + "type": "li32" } ] } @@ -9909,11 +9909,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -9963,14 +9963,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -9979,7 +9979,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -9991,7 +9990,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -10000,12 +10000,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -10094,7 +10094,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -10107,7 +10107,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -10146,7 +10146,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -10180,7 +10180,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -10228,7 +10227,8 @@ "start_flying", "stop_flying", "received_server_data" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -10357,13 +10357,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -10419,10 +10419,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -10440,12 +10440,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -10480,10 +10480,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -10492,12 +10492,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10587,11 +10587,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -10663,11 +10663,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -10678,7 +10678,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -10711,7 +10710,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -10789,13 +10789,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -10813,11 +10813,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -10935,7 +10935,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10944,7 +10943,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -10957,13 +10957,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11012,7 +11012,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11021,7 +11020,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11031,10 +11031,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -11043,13 +11043,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11100,8 +11100,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -11181,13 +11181,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -11196,12 +11196,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -11249,7 +11249,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -11257,7 +11256,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -11280,7 +11280,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -11301,7 +11300,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -11365,7 +11365,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -11386,7 +11385,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -11395,11 +11395,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -11433,17 +11433,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -11604,14 +11604,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -11653,15 +11653,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -11727,14 +11727,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -11776,7 +11776,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -11810,7 +11809,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ] }, @@ -11973,11 +11973,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, diff --git a/data/bedrock/1.20.50/protocol.json b/data/bedrock/1.20.50/protocol.json index c93df0c76..5a59e04dc 100644 --- a/data/bedrock/1.20.50/protocol.json +++ b/data/bedrock/1.20.50/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -717,7 +717,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -850,7 +849,8 @@ "129": "player_last_death_dimension", "130": "player_has_died", "131": "collision_box" - } + }, + "type": "varint" } ] }, @@ -859,7 +859,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -870,7 +869,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -880,27 +880,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -911,7 +911,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -979,13 +978,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1041,7 +1040,8 @@ "timer_flag_1", "timer_flag_2", "timer_flag_3" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1263,12 +1263,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1314,7 +1314,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1322,7 +1321,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1332,6 +1332,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1351,26 +1352,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1403,9 +1403,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1438,7 +1435,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1456,14 +1456,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1478,26 +1478,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1510,28 +1504,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1544,11 +1539,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1570,7 +1570,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1578,7 +1577,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1589,6 +1589,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1602,34 +1611,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1645,15 +1654,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1735,7 +1735,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1747,7 +1746,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1758,44 +1758,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "output", + "type": "ItemLegacy" }, { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "block", + "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "uuid", - "type": "uuid" + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1803,21 +1809,35 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" - } + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] + } ] }, { @@ -1848,20 +1868,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1893,34 +1927,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1952,34 +1972,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2011,50 +2017,44 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "output", - "type": "ItemLegacy" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "block", - "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { - "name": "input_meta", - "type": "zigzag32" + "name": "output", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "output", - "type": "ItemLegacy" + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2322,11 +2322,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2488,7 +2488,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2527,7 +2526,8 @@ "34": "start_flying", "35": "stop_flying", "36": "received_server_data" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2568,7 +2568,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2590,7 +2589,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2601,24 +2601,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2628,91 +2624,82 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2725,25 +2712,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2764,99 +2746,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", + "name": "count", "type": "u8" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2884,7 +2884,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2900,7 +2899,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -2918,11 +2918,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3033,7 +3033,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3051,7 +3050,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3102,11 +3102,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3144,7 +3144,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3194,7 +3193,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3256,13 +3256,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3271,13 +3271,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3286,12 +3286,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3363,12 +3363,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3402,19 +3402,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3422,13 +3421,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3436,13 +3435,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3453,31 +3452,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3488,31 +3487,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3523,31 +3522,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3586,15 +3585,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3659,13 +3658,13 @@ "60": "creative_output", "61": "smithing_table_template", "62": "crafter" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4153,13 +4152,13 @@ "483": "crafter_disable_slot", "484": "block_copper_bulb_turn_on", "485": "block_copper_bulb_turn_off" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4261,13 +4260,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4285,13 +4284,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4313,7 +4312,8 @@ "no_clip", "privileged_builder", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4324,14 +4324,14 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands", "4": "editor" - } + }, + "type": "lu16" } ] }, @@ -4391,7 +4391,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4484,7 +4483,8 @@ "88": "stale_connection_being_replaced", "89": "realms_session_not_found", "90": "bad_packet" - } + }, + "type": "zigzag32" } ], "mcpe_packet": [ @@ -4495,7 +4495,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4702,7 +4701,8 @@ "305": "refresh_entitlements", "306": "toggle_crafter_slot_request", "307": "set_player_inventory_options" - } + }, + "type": "varint" } ] }, @@ -4713,211 +4713,211 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", + "add_ecs_entity": "packet_add_ecs_entity", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_ecs_entity": "packet_remove_ecs_entity", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "add_ecs_entity": "packet_add_ecs_entity", - "remove_ecs_entity": "packet_remove_ecs_entity", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "server_post_move": "packet_server_post_move" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4964,7 +4964,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4976,7 +4975,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -5096,14 +5096,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -5121,7 +5121,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -5135,7 +5134,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -5150,7 +5150,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -5163,7 +5163,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -5176,20 +5176,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -5198,7 +5194,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -5207,25 +5203,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -5234,7 +5250,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -5243,26 +5259,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -5281,22 +5287,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5363,12 +5363,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5397,12 +5397,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level" - } + }, + "type": "zigzag32" } ] }, @@ -5563,12 +5563,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5597,12 +5597,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5920,13 +5920,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5953,14 +5953,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -6013,14 +6013,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -6098,7 +6098,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -6284,7 +6283,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -6310,11 +6310,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -6336,7 +6336,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6396,7 +6395,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6418,12 +6418,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6529,13 +6529,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6550,8 +6550,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6702,11 +6702,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6732,7 +6732,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6742,7 +6741,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6757,7 +6757,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6766,7 +6766,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6939,12 +6939,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -7023,34 +7023,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -7211,13 +7211,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -7235,7 +7235,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -7268,7 +7267,8 @@ "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration" - } + }, + "type": "zigzag32" } ] }, @@ -7298,13 +7298,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7536,7 +7536,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7547,7 +7546,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -7558,28 +7558,12 @@ { "compareTo": "type", "fields": { - "show_bar": [ + "query": [ "container", [ { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" + "name": "player_id", + "type": "zigzag64" } ] ], @@ -7592,39 +7576,68 @@ } ] ], - "unregister_player": [ + "set_bar_progress": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "progress", + "type": "lf32" } ] ], - "query": [ + "set_bar_title": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "title", + "type": "string" } ] ], - "set_bar_progress": [ + "show_bar": [ + "container", + [ + { + "name": "title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] + ], + "texture": [ "container", [ { - "name": "progress", - "type": "lf32" + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" } ] ], - "set_bar_title": [ + "unregister_player": [ "container", [ { - "name": "title", - "type": "string" + "name": "player_id", + "type": "zigzag64" } ] ], @@ -7644,19 +7657,6 @@ "type": "varint" } ] - ], - "texture": [ - "container", - [ - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] ] } } @@ -7745,8 +7745,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7868,7 +7868,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7889,7 +7888,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -7898,13 +7898,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -7990,12 +7990,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -8016,28 +8016,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -8076,6 +8076,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -8088,12 +8097,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -8106,15 +8115,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -8158,13 +8158,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -8210,10 +8210,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -8321,7 +8321,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -8331,7 +8330,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -8426,7 +8426,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8437,7 +8436,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8533,12 +8533,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -8625,14 +8625,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8647,23 +8647,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -8690,16 +8673,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -8719,6 +8706,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8738,7 +8738,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8747,7 +8746,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8760,7 +8760,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8769,7 +8768,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8867,11 +8867,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -8960,11 +8960,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -9004,12 +9004,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -9020,8 +9020,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -9059,12 +9059,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -9106,12 +9106,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -9205,18 +9205,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -9227,11 +9227,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -9254,10 +9254,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -9299,12 +9299,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9525,11 +9525,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9612,13 +9612,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9652,12 +9652,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -9853,11 +9853,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -9871,12 +9871,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9920,7 +9920,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -9938,7 +9937,8 @@ "13": "dyed", "14": "traded", "15": "brushing_completed" - } + }, + "type": "li32" } ] } @@ -9956,11 +9956,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -10010,14 +10010,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -10026,7 +10026,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -10038,7 +10037,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -10047,12 +10047,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -10141,7 +10141,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -10154,7 +10154,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -10193,7 +10193,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -10227,7 +10227,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -10275,7 +10274,8 @@ "start_flying", "stop_flying", "received_server_data" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -10404,13 +10404,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -10466,10 +10466,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -10487,12 +10487,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -10527,10 +10527,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -10539,12 +10539,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10634,11 +10634,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -10710,11 +10710,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -10725,7 +10725,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -10758,7 +10757,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -10836,13 +10836,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -10860,11 +10860,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -10982,7 +10982,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10991,7 +10990,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11004,13 +11004,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11059,7 +11059,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11068,7 +11067,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11078,10 +11078,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -11090,13 +11090,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11147,8 +11147,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -11228,13 +11228,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -11243,12 +11243,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -11296,7 +11296,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -11304,7 +11303,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -11327,7 +11327,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -11348,7 +11347,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -11412,7 +11412,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -11433,7 +11432,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -11442,11 +11442,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -11480,17 +11480,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -11651,14 +11651,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -11700,15 +11700,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -11774,14 +11774,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -11823,7 +11823,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -11857,7 +11856,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ] }, @@ -12020,11 +12020,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -12063,7 +12063,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -12072,7 +12071,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -12081,13 +12081,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -12100,13 +12100,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -12115,13 +12115,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } diff --git a/data/bedrock/1.20.61/protocol.json b/data/bedrock/1.20.61/protocol.json index dfd27237b..946a42a20 100644 --- a/data/bedrock/1.20.61/protocol.json +++ b/data/bedrock/1.20.61/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -717,7 +717,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -850,7 +849,8 @@ "129": "player_last_death_dimension", "130": "player_has_died", "131": "collision_box" - } + }, + "type": "varint" } ] }, @@ -859,7 +859,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -870,7 +869,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -880,27 +880,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -911,7 +911,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -979,13 +978,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1041,7 +1040,8 @@ "timer_flag_1", "timer_flag_2", "timer_flag_3" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1263,12 +1263,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1314,7 +1314,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1322,7 +1321,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1332,6 +1332,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1351,26 +1352,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1403,9 +1403,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1438,7 +1435,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1456,14 +1456,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1478,26 +1478,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1510,28 +1504,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1544,11 +1539,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1570,7 +1570,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1578,7 +1577,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1589,6 +1589,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1602,34 +1611,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1645,15 +1654,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1735,7 +1735,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1747,7 +1746,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1758,44 +1758,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "output", + "type": "ItemLegacy" }, { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "block", + "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "uuid", - "type": "uuid" + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1803,21 +1809,35 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" - } + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] + } ] }, { @@ -1848,20 +1868,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1893,34 +1927,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1952,34 +1972,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2011,50 +2017,44 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "output", - "type": "ItemLegacy" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "block", - "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { - "name": "input_meta", - "type": "zigzag32" + "name": "output", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "output", - "type": "ItemLegacy" + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2322,11 +2322,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2492,7 +2492,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2531,7 +2530,8 @@ "34": "start_flying", "35": "stop_flying", "36": "received_server_data" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2572,7 +2572,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2594,7 +2593,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2605,24 +2605,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2632,91 +2628,82 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2729,25 +2716,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2768,99 +2750,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", + "name": "count", "type": "u8" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2888,7 +2888,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2904,7 +2903,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -2922,11 +2922,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3037,7 +3037,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3055,7 +3054,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3106,11 +3106,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3148,7 +3148,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3198,7 +3197,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3260,13 +3260,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3275,13 +3275,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3290,12 +3290,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3367,12 +3367,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3406,19 +3406,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3426,13 +3425,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3440,13 +3439,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3457,31 +3456,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3492,31 +3491,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3527,31 +3526,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3590,15 +3589,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3663,13 +3662,13 @@ "60": "creative_output", "61": "smithing_table_template", "62": "crafter" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4157,13 +4156,13 @@ "483": "crafter_disable_slot", "484": "block_copper_bulb_turn_on", "485": "block_copper_bulb_turn_off" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4265,13 +4264,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4289,13 +4288,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4317,7 +4316,8 @@ "no_clip", "privileged_builder", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4328,14 +4328,14 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands", "4": "editor" - } + }, + "type": "lu16" } ] }, @@ -4395,7 +4395,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4488,7 +4487,8 @@ "88": "stale_connection_being_replaced", "89": "realms_session_not_found", "90": "bad_packet" - } + }, + "type": "zigzag32" } ], "mcpe_packet": [ @@ -4499,7 +4499,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4705,7 +4704,8 @@ "306": "toggle_crafter_slot_request", "307": "set_player_inventory_options", "308": "set_hud" - } + }, + "type": "varint" } ] }, @@ -4716,210 +4716,210 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_frame_drop_item": "packet_item_frame_drop_item", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "item_frame_drop_item": "packet_item_frame_drop_item", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "server_post_move": "packet_server_post_move" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4966,7 +4966,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -4978,7 +4977,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -5098,14 +5098,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -5123,7 +5123,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -5137,7 +5136,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -5152,7 +5152,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -5165,7 +5165,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -5178,20 +5178,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -5200,7 +5196,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -5209,25 +5205,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -5236,7 +5252,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -5245,26 +5261,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -5283,22 +5289,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5365,12 +5365,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5399,12 +5399,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level" - } + }, + "type": "zigzag32" } ] }, @@ -5565,12 +5565,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5599,12 +5599,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5922,13 +5922,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5955,14 +5955,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -6015,14 +6015,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -6100,7 +6100,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -6291,7 +6290,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -6317,11 +6317,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -6343,7 +6343,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6403,7 +6402,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6425,12 +6425,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6536,13 +6536,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6557,8 +6557,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6709,11 +6709,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6739,7 +6739,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6749,7 +6748,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6764,7 +6764,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6773,7 +6773,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6946,12 +6946,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -7030,34 +7030,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -7222,13 +7222,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -7246,7 +7246,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -7279,7 +7278,8 @@ "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration" - } + }, + "type": "zigzag32" } ] }, @@ -7309,13 +7309,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7547,7 +7547,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7558,7 +7557,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -7569,32 +7569,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ + "query": [ "container", [ { @@ -7603,7 +7578,7 @@ } ] ], - "unregister_player": [ + "register_player": [ "container", [ { @@ -7612,40 +7587,52 @@ } ] ], - "query": [ + "set_bar_progress": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "progress", + "type": "lf32" } ] ], - "set_bar_progress": [ + "set_bar_title": [ "container", [ { - "name": "progress", - "type": "lf32" + "name": "title", + "type": "string" } ] ], - "set_bar_title": [ + "show_bar": [ "container", [ { "name": "title", "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" } ] ], - "update_properties": [ + "texture": [ "container", [ - { - "name": "screen_darkening", - "type": "li16" - }, { "name": "color", "type": "varint" @@ -7656,9 +7643,22 @@ } ] ], - "texture": [ + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ "container", [ + { + "name": "screen_darkening", + "type": "li16" + }, { "name": "color", "type": "varint" @@ -7756,8 +7756,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7879,7 +7879,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7900,7 +7899,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -7909,13 +7909,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -8001,12 +8001,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -8027,28 +8027,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -8087,6 +8087,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -8099,12 +8108,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -8117,15 +8126,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -8169,13 +8169,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -8221,10 +8221,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -8332,7 +8332,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -8342,7 +8341,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -8437,7 +8437,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8448,7 +8447,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8544,12 +8544,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -8636,14 +8636,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8658,23 +8658,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -8701,16 +8684,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -8730,6 +8717,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8749,7 +8749,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8758,7 +8757,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8771,7 +8771,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8780,7 +8779,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8878,11 +8878,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -8971,11 +8971,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -9015,12 +9015,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -9031,8 +9031,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -9070,12 +9070,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -9117,12 +9117,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -9216,18 +9216,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -9238,11 +9238,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -9265,10 +9265,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -9310,12 +9310,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9536,11 +9536,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9605,13 +9605,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9645,12 +9645,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -9846,11 +9846,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -9864,12 +9864,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9913,7 +9913,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -9931,7 +9930,8 @@ "13": "dyed", "14": "traded", "15": "brushing_completed" - } + }, + "type": "li32" } ] } @@ -9949,11 +9949,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -10003,14 +10003,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -10019,7 +10019,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -10031,7 +10030,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -10040,12 +10040,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -10146,7 +10146,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -10159,7 +10159,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -10198,7 +10198,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -10232,7 +10232,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -10281,7 +10280,8 @@ "stop_flying", "received_server_data", "client_predicted_vehicle" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -10410,13 +10410,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -10472,10 +10472,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -10493,12 +10493,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -10533,10 +10533,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -10545,12 +10545,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10640,11 +10640,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -10716,11 +10716,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -10731,7 +10731,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -10764,7 +10763,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -10842,13 +10842,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -10866,11 +10866,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -10988,7 +10988,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -10997,7 +10996,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11010,13 +11010,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11065,7 +11065,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11074,7 +11073,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11084,10 +11084,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -11096,13 +11096,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11153,8 +11153,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -11234,13 +11234,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -11249,12 +11249,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -11302,7 +11302,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -11310,7 +11309,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -11333,7 +11333,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -11354,7 +11353,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -11418,7 +11418,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -11439,7 +11438,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -11448,11 +11448,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -11486,17 +11486,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -11657,14 +11657,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -11706,15 +11706,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -11780,14 +11780,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -11829,7 +11829,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -11863,7 +11862,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ] }, @@ -12026,11 +12026,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -12069,7 +12069,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -12078,7 +12077,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -12087,13 +12087,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -12106,13 +12106,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -12121,13 +12121,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -12151,11 +12151,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "u8" } ] } @@ -12164,7 +12164,6 @@ "Element": [ "mapper", { - "type": "u8", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -12177,7 +12176,8 @@ "8": "Hunger", "9": "AirBubbles", "10": "HourseHealth" - } + }, + "type": "u8" } ], "packet_server_post_move": [ diff --git a/data/bedrock/1.20.71/protocol.json b/data/bedrock/1.20.71/protocol.json index 1befce87c..df32ec30d 100644 --- a/data/bedrock/1.20.71/protocol.json +++ b/data/bedrock/1.20.71/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -717,7 +717,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -850,7 +849,8 @@ "129": "player_last_death_dimension", "130": "player_has_died", "131": "collision_box" - } + }, + "type": "varint" } ] }, @@ -859,7 +859,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -870,7 +869,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -880,27 +880,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -911,7 +911,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -979,13 +978,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1041,7 +1040,8 @@ "timer_flag_1", "timer_flag_2", "timer_flag_3" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1263,12 +1263,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1314,7 +1314,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1322,7 +1321,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1332,6 +1332,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1351,26 +1352,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1403,9 +1403,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1438,7 +1435,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1456,14 +1456,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1478,26 +1478,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1510,28 +1504,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1544,11 +1539,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1570,7 +1570,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1578,7 +1577,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1589,6 +1589,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1602,34 +1611,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1645,15 +1654,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1735,7 +1735,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1747,7 +1746,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1758,44 +1758,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "output", + "type": "ItemLegacy" }, { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "block", + "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "uuid", - "type": "uuid" + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1803,21 +1809,35 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" - } + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] + } ] }, { @@ -1848,20 +1868,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1893,34 +1927,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1952,34 +1972,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2011,50 +2017,44 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "output", - "type": "ItemLegacy" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "block", - "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { - "name": "input_meta", - "type": "zigzag32" + "name": "output", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "output", - "type": "ItemLegacy" + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2322,11 +2322,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2492,7 +2492,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2531,7 +2530,8 @@ "34": "start_flying", "35": "stop_flying", "36": "received_server_data" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2572,7 +2572,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2594,7 +2593,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2605,24 +2605,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2632,91 +2628,82 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2729,25 +2716,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2768,99 +2750,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", + "name": "count", "type": "u8" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2888,7 +2888,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2904,7 +2903,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -2922,11 +2922,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3037,7 +3037,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3055,7 +3054,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3106,11 +3106,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3148,7 +3148,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3198,7 +3197,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3260,13 +3260,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3275,13 +3275,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3290,12 +3290,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3367,12 +3367,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3406,19 +3406,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3426,13 +3425,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3440,13 +3439,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3457,31 +3456,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3492,31 +3491,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3527,31 +3526,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3590,15 +3589,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3663,13 +3662,13 @@ "60": "creative_output", "61": "smithing_table_template", "62": "crafter" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4181,13 +4180,13 @@ "507": "vault_deactivate", "508": "hurt_reduced", "509": "wind_charge_burst" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4289,13 +4288,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4313,13 +4312,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4341,7 +4340,8 @@ "no_clip", "privileged_builder", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4352,14 +4352,14 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands", "4": "editor" - } + }, + "type": "lu16" } ] }, @@ -4419,7 +4419,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4512,7 +4511,8 @@ "88": "stale_connection_being_replaced", "89": "realms_session_not_found", "90": "bad_packet" - } + }, + "type": "zigzag32" } ], "mcpe_packet": [ @@ -4523,7 +4523,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4728,7 +4727,8 @@ "306": "toggle_crafter_slot_request", "307": "set_player_inventory_options", "308": "set_hud" - } + }, + "type": "varint" } ] }, @@ -4739,209 +4739,209 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "server_post_move": "packet_server_post_move" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -4988,7 +4988,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -5000,7 +4999,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -5124,14 +5124,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -5149,7 +5149,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -5163,7 +5162,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -5178,7 +5178,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -5191,7 +5191,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -5204,20 +5204,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -5226,7 +5222,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -5235,25 +5231,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -5262,7 +5278,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -5271,26 +5287,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -5309,22 +5315,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5391,12 +5391,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5425,12 +5425,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level" - } + }, + "type": "zigzag32" } ] }, @@ -5591,12 +5591,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5625,12 +5625,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -5948,13 +5948,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -5981,14 +5981,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -6041,14 +6041,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -6126,7 +6126,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -6321,7 +6320,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -6347,11 +6347,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -6373,7 +6373,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6433,7 +6432,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6455,12 +6455,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6570,13 +6570,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6591,8 +6591,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6747,11 +6747,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6777,7 +6777,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6787,7 +6786,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6802,7 +6802,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6811,7 +6811,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -6984,12 +6984,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -7068,34 +7068,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -7260,13 +7260,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -7284,7 +7284,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -7317,7 +7316,8 @@ "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration" - } + }, + "type": "zigzag32" } ] }, @@ -7347,13 +7347,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7576,7 +7576,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7587,7 +7586,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -7598,32 +7598,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ + "query": [ "container", [ { @@ -7632,7 +7607,7 @@ } ] ], - "unregister_player": [ + "register_player": [ "container", [ { @@ -7641,40 +7616,52 @@ } ] ], - "query": [ + "set_bar_progress": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "progress", + "type": "lf32" } ] ], - "set_bar_progress": [ + "set_bar_title": [ "container", [ { - "name": "progress", - "type": "lf32" + "name": "title", + "type": "string" } ] ], - "set_bar_title": [ + "show_bar": [ "container", [ { "name": "title", "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" } ] ], - "update_properties": [ + "texture": [ "container", [ - { - "name": "screen_darkening", - "type": "li16" - }, { "name": "color", "type": "varint" @@ -7685,9 +7672,22 @@ } ] ], - "texture": [ + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ "container", [ + { + "name": "screen_darkening", + "type": "li16" + }, { "name": "color", "type": "varint" @@ -7785,8 +7785,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7908,7 +7908,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7929,7 +7928,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -7938,13 +7938,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -8030,12 +8030,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -8056,28 +8056,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -8116,6 +8116,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -8128,12 +8137,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -8146,15 +8155,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -8198,13 +8198,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -8250,10 +8250,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -8361,7 +8361,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -8371,7 +8370,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -8466,7 +8466,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8477,7 +8476,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8573,12 +8573,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -8665,14 +8665,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8687,23 +8687,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -8730,16 +8713,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -8759,6 +8746,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8778,7 +8778,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8787,7 +8786,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8800,7 +8800,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8809,7 +8808,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8907,11 +8907,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -9000,11 +9000,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -9044,12 +9044,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -9060,8 +9060,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -9099,12 +9099,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -9146,12 +9146,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -9245,18 +9245,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -9267,11 +9267,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -9294,10 +9294,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -9339,12 +9339,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9561,11 +9561,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9630,13 +9630,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9670,12 +9670,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -9871,11 +9871,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -9889,12 +9889,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9938,7 +9938,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -9956,7 +9955,8 @@ "13": "dyed", "14": "traded", "15": "brushing_completed" - } + }, + "type": "li32" } ] } @@ -9974,11 +9974,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -10028,14 +10028,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -10044,7 +10044,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -10056,7 +10055,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -10065,12 +10065,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -10183,7 +10183,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -10196,7 +10196,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -10235,7 +10235,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -10269,7 +10269,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -10320,7 +10319,8 @@ "client_predicted_vehicle", "paddling_left", "paddling_right" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -10449,13 +10449,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -10511,10 +10511,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -10532,12 +10532,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -10572,10 +10572,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -10584,12 +10584,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10679,11 +10679,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -10755,11 +10755,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -10770,7 +10770,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -10803,7 +10802,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -10881,13 +10881,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -10905,11 +10905,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -11027,7 +11027,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11036,7 +11035,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11049,13 +11049,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11104,7 +11104,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11113,7 +11112,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11123,10 +11123,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -11135,13 +11135,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11192,8 +11192,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -11273,13 +11273,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -11288,12 +11288,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -11341,7 +11341,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -11349,7 +11348,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -11372,7 +11372,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -11393,7 +11392,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -11457,7 +11457,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -11478,7 +11477,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -11487,11 +11487,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -11525,17 +11525,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -11696,14 +11696,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -11745,15 +11745,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -11819,14 +11819,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -11868,7 +11868,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -11902,7 +11901,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ] }, @@ -12065,11 +12065,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -12108,7 +12108,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -12117,7 +12116,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -12126,13 +12126,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -12145,13 +12145,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -12160,13 +12160,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -12190,11 +12190,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "u8" } ] } @@ -12203,7 +12203,6 @@ "Element": [ "mapper", { - "type": "u8", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -12216,7 +12215,8 @@ "8": "Hunger", "9": "AirBubbles", "10": "HourseHealth" - } + }, + "type": "u8" } ], "packet_server_post_move": [ diff --git a/data/bedrock/1.20.80/protocol.json b/data/bedrock/1.20.80/protocol.json index 941b9c100..fafb6eef8 100644 --- a/data/bedrock/1.20.80/protocol.json +++ b/data/bedrock/1.20.80/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -717,7 +717,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -850,7 +849,8 @@ "129": "player_last_death_dimension", "130": "player_has_died", "131": "collision_box" - } + }, + "type": "varint" } ] }, @@ -859,7 +859,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -870,7 +869,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -880,27 +880,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -911,7 +911,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -979,13 +978,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1042,7 +1041,8 @@ "timer_flag_2", "timer_flag_3", "body_rotation_blocked" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1264,12 +1264,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1315,7 +1315,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1323,7 +1322,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1333,6 +1333,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1352,26 +1353,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1404,9 +1404,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1439,7 +1436,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1457,14 +1457,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1479,26 +1479,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1511,28 +1505,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1545,11 +1540,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1571,7 +1571,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1579,7 +1578,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1590,6 +1590,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1603,34 +1612,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1646,15 +1655,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1736,7 +1736,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1748,7 +1747,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1759,44 +1759,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "input_id", + "type": "zigzag32" }, { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "output", + "type": "ItemLegacy" }, { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "block", + "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "uuid", - "type": "uuid" + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, + } + ] + ], + "multi": [ + "container", + [ { - "name": "priority", - "type": "zigzag32" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1804,21 +1810,35 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" - } + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] + } ] }, { @@ -1843,26 +1863,44 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "network_id", "type": "varint" } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1888,40 +1926,30 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "network_id", "type": "varint" } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1947,44 +1975,26 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "network_id", "type": "varint" } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2010,60 +2020,50 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "network_id", "type": "varint" } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" - }, - { - "name": "output", - "type": "ItemLegacy" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "block", - "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { - "name": "input_meta", - "type": "zigzag32" + "name": "output", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "output", - "type": "ItemLegacy" + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" }, { "name": "network_id", @@ -2331,11 +2331,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2501,7 +2501,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2540,7 +2539,8 @@ "34": "start_flying", "35": "stop_flying", "36": "received_server_data" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2581,7 +2581,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2603,7 +2602,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2614,24 +2614,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2641,91 +2637,82 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2738,29 +2725,24 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], - "beacon_payment": [ - "container", - [ - { - "name": "primary_effect", - "type": "zigzag32" - }, - { - "name": "secondary_effect", - "type": "zigzag32" - } - ] - ], - "mine_block": [ + "mine_block": [ "container", [ { @@ -2777,99 +2759,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2897,7 +2897,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2913,7 +2912,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -2931,11 +2931,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3046,7 +3046,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3064,7 +3063,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3115,11 +3115,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3157,7 +3157,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3207,7 +3206,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3269,13 +3269,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3284,13 +3284,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3299,12 +3299,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3376,12 +3376,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3415,19 +3415,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3435,13 +3434,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3449,13 +3448,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3466,31 +3465,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3501,31 +3500,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3536,31 +3535,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3599,15 +3598,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3672,13 +3671,13 @@ "60": "creative_output", "61": "smithing_table_template", "62": "crafter" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4201,13 +4200,13 @@ "518": "ominous_item_spawner_spawn_item", "519": "ominous_bottle_end_use", "520": "mace_smash_heavy_ground" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4309,13 +4308,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4333,13 +4332,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4361,7 +4360,8 @@ "no_clip", "privileged_builder", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4372,14 +4372,14 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands", "4": "editor" - } + }, + "type": "lu16" } ] }, @@ -4439,7 +4439,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4556,7 +4555,8 @@ "112": "service_sign_in_issue", "113": "conn_no_signaling_channel", "114": "conn_not_logged_in" - } + }, + "type": "zigzag32" } ], "mcpe_packet": [ @@ -4567,7 +4567,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4772,7 +4771,8 @@ "306": "toggle_crafter_slot_request", "307": "set_player_inventory_options", "308": "set_hud" - } + }, + "type": "varint" } ] }, @@ -4783,209 +4783,209 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "server_post_move": "packet_server_post_move" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -5032,7 +5032,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -5044,7 +5043,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -5172,14 +5172,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -5197,7 +5197,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -5211,7 +5210,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -5226,7 +5226,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -5239,7 +5239,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -5252,20 +5252,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -5274,7 +5270,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -5283,25 +5279,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -5310,7 +5326,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -5319,26 +5335,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -5357,22 +5363,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5439,12 +5439,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5477,12 +5477,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level" - } + }, + "type": "zigzag32" } ] }, @@ -5643,12 +5643,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5677,12 +5677,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -6000,13 +6000,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -6033,14 +6033,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -6093,14 +6093,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -6178,7 +6178,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -6374,7 +6373,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -6400,11 +6400,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -6426,7 +6426,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6486,7 +6485,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6508,12 +6508,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6623,13 +6623,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6644,8 +6644,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6800,11 +6800,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6830,7 +6830,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6840,7 +6839,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6855,7 +6855,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6864,7 +6864,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -7037,12 +7037,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -7121,34 +7121,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -7313,13 +7313,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -7337,7 +7337,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -7370,7 +7369,8 @@ "28": "strider_ridden_in_lava_in_overworld", "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration" - } + }, + "type": "zigzag32" } ] }, @@ -7400,13 +7400,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7629,7 +7629,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7640,7 +7639,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -7651,32 +7651,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ + "query": [ "container", [ { @@ -7685,7 +7660,7 @@ } ] ], - "unregister_player": [ + "register_player": [ "container", [ { @@ -7694,40 +7669,52 @@ } ] ], - "query": [ + "set_bar_progress": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "progress", + "type": "lf32" } ] ], - "set_bar_progress": [ + "set_bar_title": [ "container", [ { - "name": "progress", - "type": "lf32" + "name": "title", + "type": "string" } ] ], - "set_bar_title": [ + "show_bar": [ "container", [ { "name": "title", "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" } ] ], - "update_properties": [ + "texture": [ "container", [ - { - "name": "screen_darkening", - "type": "li16" - }, { "name": "color", "type": "varint" @@ -7738,9 +7725,22 @@ } ] ], - "texture": [ + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ "container", [ + { + "name": "screen_darkening", + "type": "li16" + }, { "name": "color", "type": "varint" @@ -7838,8 +7838,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -7961,7 +7961,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -7982,7 +7981,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -7991,13 +7991,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -8083,12 +8083,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -8109,28 +8109,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -8169,6 +8169,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -8181,12 +8190,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -8199,15 +8208,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -8251,13 +8251,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -8303,10 +8303,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -8414,7 +8414,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -8424,7 +8423,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -8519,7 +8519,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8530,7 +8529,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8626,12 +8626,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -8718,14 +8718,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8740,23 +8740,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -8783,16 +8766,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -8812,6 +8799,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8831,7 +8831,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8840,7 +8839,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8853,7 +8853,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8862,7 +8861,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8960,11 +8960,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -9053,11 +9053,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -9097,12 +9097,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -9113,8 +9113,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -9152,12 +9152,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -9199,12 +9199,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -9298,18 +9298,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -9320,11 +9320,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -9347,10 +9347,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -9392,12 +9392,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9614,11 +9614,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9683,13 +9683,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9723,12 +9723,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -9924,11 +9924,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -9942,12 +9942,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -9991,7 +9991,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -10009,7 +10008,8 @@ "13": "dyed", "14": "traded", "15": "brushing_completed" - } + }, + "type": "li32" } ] } @@ -10027,11 +10027,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -10081,14 +10081,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -10097,7 +10097,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -10109,7 +10108,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -10118,12 +10118,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -10236,7 +10236,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -10249,7 +10249,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -10288,7 +10288,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -10322,7 +10322,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -10373,7 +10372,8 @@ "client_predicted_vehicle", "paddling_left", "paddling_right" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -10502,13 +10502,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -10568,10 +10568,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -10589,12 +10589,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -10629,10 +10629,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -10641,12 +10641,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10736,11 +10736,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -10769,11 +10769,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -10837,11 +10837,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -10852,7 +10852,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -10885,7 +10884,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -10963,13 +10963,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -10987,11 +10987,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -11109,7 +11109,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11118,7 +11117,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11131,13 +11131,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11186,7 +11186,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11195,7 +11194,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11205,10 +11205,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -11217,13 +11217,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11274,8 +11274,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -11355,13 +11355,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -11370,12 +11370,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -11423,7 +11423,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -11431,7 +11430,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -11454,7 +11454,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -11475,7 +11474,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -11539,7 +11539,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -11560,7 +11559,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -11569,11 +11569,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -11607,17 +11607,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -11778,14 +11778,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -11827,15 +11827,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -11901,14 +11901,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -11950,7 +11950,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -11984,7 +11983,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ] }, @@ -12147,11 +12147,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -12190,7 +12190,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -12199,7 +12198,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -12208,13 +12208,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -12227,13 +12227,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -12242,13 +12242,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -12272,11 +12272,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "u8" } ] } @@ -12285,7 +12285,6 @@ "Element": [ "mapper", { - "type": "u8", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -12300,7 +12299,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "u8" } ], "packet_server_post_move": [ diff --git a/data/bedrock/1.21.0/protocol.json b/data/bedrock/1.21.0/protocol.json index b28f69f36..4b9bb5a26 100644 --- a/data/bedrock/1.21.0/protocol.json +++ b/data/bedrock/1.21.0/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -717,7 +717,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -850,7 +849,8 @@ "129": "player_has_died", "130": "collision_box", "131": "visible_mob_effects" - } + }, + "type": "varint" } ] }, @@ -859,7 +859,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -870,7 +869,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -880,27 +880,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -911,7 +911,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -979,13 +978,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1042,7 +1041,8 @@ "timer_flag_2", "timer_flag_3", "body_rotation_blocked" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1264,12 +1264,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1315,7 +1315,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1323,7 +1322,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1333,6 +1333,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1352,26 +1353,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1404,9 +1404,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1439,7 +1436,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1457,14 +1457,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1479,26 +1479,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1511,28 +1505,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1545,11 +1540,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1571,7 +1571,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1579,7 +1578,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1590,6 +1590,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1603,34 +1612,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1646,15 +1655,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1736,7 +1736,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1748,7 +1747,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1759,48 +1759,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "multi": [ + "container", + [ + { + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1808,20 +1810,34 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1847,6 +1863,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1857,20 +1877,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1896,6 +1930,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1906,34 +1944,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1959,10 +1983,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1973,34 +1993,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2026,10 +2032,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2040,50 +2042,48 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" }, { - "name": "input_meta", + "name": "priority", "type": "zigzag32" }, { - "name": "output", - "type": "ItemLegacy" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "multi": [ - "container", - [ - { - "name": "uuid", - "type": "uuid" + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2169,13 +2169,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2389,11 +2389,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2559,7 +2559,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2598,7 +2597,8 @@ "34": "start_flying", "35": "stop_flying", "36": "received_server_data" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2639,7 +2639,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2661,7 +2660,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2672,24 +2672,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2699,74 +2695,78 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] + } + ] + ], + "create": [ + "container", + [ + { + "name": "result_slot_id", + "type": "u8" } ] ], @@ -2783,7 +2783,7 @@ } ] ], - "consume": [ + "drop": [ "container", [ { @@ -2793,32 +2793,14 @@ { "name": "source", "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], - "create": [ - "container", - [ - { - "name": "result_slot_id", - "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ - { - "name": "primary_effect", - "type": "zigzag32" - }, - { - "name": "secondary_effect", - "type": "zigzag32" - } - ] - ], - "mine_block": [ + "mine_block": [ "container", [ { @@ -2835,99 +2817,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2955,7 +2955,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2971,7 +2970,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -2989,11 +2989,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3104,7 +3104,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3122,7 +3121,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3173,11 +3173,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3215,7 +3215,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3265,7 +3264,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3327,13 +3327,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3342,13 +3342,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3357,12 +3357,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3434,12 +3434,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3473,19 +3473,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3493,13 +3492,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3507,13 +3506,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3524,31 +3523,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3559,31 +3558,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3594,31 +3593,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3657,15 +3656,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3730,13 +3729,13 @@ "60": "creative_output", "61": "smithing_table_template", "62": "crafter" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4268,13 +4267,13 @@ "527": "record_creator", "528": "record_creator_music_box", "529": "record_precipice" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4376,13 +4375,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4400,13 +4399,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4428,7 +4427,8 @@ "no_clip", "privileged_builder", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4439,14 +4439,14 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands", "4": "editor" - } + }, + "type": "lu16" } ] }, @@ -4506,7 +4506,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4623,7 +4622,8 @@ "112": "service_sign_in_issue", "113": "conn_no_signaling_channel", "114": "conn_not_logged_in" - } + }, + "type": "zigzag32" } ], "mcpe_packet": [ @@ -4634,7 +4634,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4840,7 +4839,8 @@ "307": "set_player_inventory_options", "308": "set_hud", "309": "award_achievement" - } + }, + "type": "varint" } ] }, @@ -4851,210 +4851,210 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", - "subchunk": "packet_subchunk", - "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sub_client_login": "packet_sub_client_login", + "subchunk": "packet_subchunk", + "subchunk_request": "packet_subchunk_request", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -5101,7 +5101,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -5113,7 +5112,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -5241,14 +5241,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -5266,7 +5266,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -5280,7 +5279,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -5295,7 +5295,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -5308,7 +5308,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -5321,20 +5321,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -5343,7 +5339,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -5352,25 +5348,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -5379,7 +5395,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -5388,26 +5404,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -5426,22 +5432,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5512,12 +5512,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5550,12 +5550,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level" - } + }, + "type": "zigzag32" } ] }, @@ -5716,12 +5716,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5762,12 +5762,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -6085,13 +6085,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -6118,14 +6118,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -6178,14 +6178,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -6263,7 +6263,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -6460,7 +6459,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -6486,11 +6486,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -6512,7 +6512,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6572,7 +6571,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6594,12 +6594,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6709,13 +6709,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6730,8 +6730,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6886,11 +6886,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6916,7 +6916,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6926,7 +6925,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6941,7 +6941,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6950,7 +6950,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -7127,12 +7127,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -7211,34 +7211,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -7403,13 +7403,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -7427,7 +7427,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -7461,7 +7460,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -7491,13 +7491,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7720,7 +7720,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7731,7 +7730,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -7742,28 +7742,12 @@ { "compareTo": "type", "fields": { - "show_bar": [ + "query": [ "container", [ { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" + "name": "player_id", + "type": "zigzag64" } ] ], @@ -7776,39 +7760,68 @@ } ] ], - "unregister_player": [ + "set_bar_progress": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "progress", + "type": "lf32" } ] ], - "query": [ + "set_bar_title": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "title", + "type": "string" } ] ], - "set_bar_progress": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, { "name": "progress", "type": "lf32" + }, + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] + ], + "texture": [ + "container", + [ + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" } ] ], - "set_bar_title": [ + "unregister_player": [ "container", [ { - "name": "title", - "type": "string" + "name": "player_id", + "type": "zigzag64" } ] ], @@ -7828,19 +7841,6 @@ "type": "varint" } ] - ], - "texture": [ - "container", - [ - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] ] } } @@ -7929,8 +7929,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -8052,7 +8052,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -8073,7 +8072,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -8082,13 +8082,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -8174,12 +8174,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -8200,28 +8200,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -8260,6 +8260,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -8272,12 +8281,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -8290,15 +8299,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -8342,13 +8342,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -8394,10 +8394,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -8505,7 +8505,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -8515,7 +8514,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -8610,7 +8610,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8621,7 +8620,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8717,12 +8717,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -8809,14 +8809,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8831,23 +8831,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -8874,16 +8857,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -8903,6 +8890,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8922,7 +8922,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8931,7 +8930,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8944,7 +8944,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8953,7 +8952,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9051,11 +9051,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -9144,11 +9144,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -9188,12 +9188,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -9204,8 +9204,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -9243,12 +9243,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -9290,12 +9290,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -9389,18 +9389,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -9411,11 +9411,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -9438,10 +9438,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -9483,12 +9483,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9705,11 +9705,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9774,13 +9774,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9814,12 +9814,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -10015,11 +10015,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -10033,12 +10033,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -10082,7 +10082,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -10101,7 +10100,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -10119,11 +10119,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -10173,14 +10173,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -10189,7 +10189,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -10201,7 +10200,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -10210,12 +10210,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -10328,7 +10328,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -10341,7 +10341,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -10380,7 +10380,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -10414,7 +10414,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -10466,7 +10465,8 @@ "paddling_left", "paddling_right", "block_breaking_delay_enabled" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -10595,13 +10595,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -10661,10 +10661,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -10682,12 +10682,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -10722,10 +10722,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -10734,12 +10734,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10829,11 +10829,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -10862,11 +10862,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -10930,11 +10930,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -10945,7 +10945,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -10978,7 +10977,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -11056,13 +11056,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -11080,11 +11080,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -11202,7 +11202,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11211,7 +11210,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11224,13 +11224,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11279,7 +11279,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11288,7 +11287,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11298,10 +11298,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -11310,13 +11310,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11367,8 +11367,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -11448,13 +11448,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -11463,12 +11463,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -11477,7 +11477,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -11485,7 +11484,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -11529,7 +11529,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -11537,7 +11536,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -11560,7 +11560,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -11581,7 +11580,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -11645,7 +11645,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -11666,7 +11665,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -11675,11 +11675,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -11713,17 +11713,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -11884,14 +11884,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -11933,15 +11933,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -12007,14 +12007,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -12056,7 +12056,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -12090,7 +12089,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ] }, @@ -12253,11 +12253,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -12296,7 +12296,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -12305,7 +12304,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -12314,13 +12314,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -12333,13 +12333,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -12348,13 +12348,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -12378,11 +12378,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "u8" } ] } @@ -12391,7 +12391,6 @@ "Element": [ "mapper", { - "type": "u8", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -12406,7 +12405,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "u8" } ], "packet_award_achievement": [ diff --git a/data/bedrock/1.21.100/protocol.json b/data/bedrock/1.21.100/protocol.json index 7e1ae169d..33a48fea7 100644 --- a/data/bedrock/1.21.100/protocol.json +++ b/data/bedrock/1.21.100/protocol.json @@ -160,7 +160,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -169,7 +168,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -188,12 +188,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -205,8 +205,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -276,12 +276,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "data_driven", "2": "none" - } + }, + "type": "zigzag32" } ] }, @@ -301,11 +301,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -315,6 +315,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -329,8 +330,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -368,11 +368,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -382,6 +382,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -396,8 +397,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -436,9 +436,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -460,6 +457,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -468,19 +472,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -499,9 +499,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -523,10 +520,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -540,6 +537,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -548,19 +552,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -704,7 +704,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -841,7 +840,8 @@ "133": "bed_enter_position", "134": "seat_third_person_camera_radius", "135": "seat_camera_relax_distance_smoothing" - } + }, + "type": "varint" } ] }, @@ -850,7 +850,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -861,7 +860,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -871,29 +871,29 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2", - "seat_third_person_camera_radius": "lf32", - "seat_camera_relax_distance_smoothing": "lf32" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2", + "seat_camera_relax_distance_smoothing": "lf32", + "seat_third_person_camera_radius": "lf32" + } } ] } @@ -904,7 +904,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -972,13 +971,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1041,7 +1040,8 @@ "wasd_air_controlled", "does_server_auth_only_dismount", "body_rotation_always_follows_head" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1275,12 +1275,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1289,12 +1289,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "varint" } ] }, @@ -1331,11 +1331,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "varint" } ] } @@ -1353,7 +1353,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1361,7 +1360,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1371,6 +1371,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1390,26 +1391,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1442,9 +1442,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1477,7 +1474,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1495,14 +1495,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1517,26 +1517,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1549,28 +1543,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1583,11 +1578,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1609,7 +1609,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1617,7 +1616,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1628,6 +1628,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1641,34 +1650,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1684,15 +1693,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1774,7 +1774,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1786,7 +1785,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1797,48 +1797,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "multi": [ + "container", + [ + { + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1846,7 +1848,7 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { @@ -1854,12 +1856,26 @@ "type": "LatinString" }, { - "name": "input", + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, + { + "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1885,6 +1901,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1895,20 +1915,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1934,6 +1968,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1944,34 +1982,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1997,10 +2021,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2011,34 +2031,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2064,10 +2070,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2078,50 +2080,48 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" }, { - "name": "input_meta", + "name": "priority", "type": "zigzag32" }, { - "name": "output", - "type": "ItemLegacy" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "multi": [ - "container", - [ - { - "name": "uuid", - "type": "uuid" + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2207,13 +2207,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2427,11 +2427,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2601,7 +2601,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2641,7 +2640,8 @@ "35": "stop_flying", "36": "received_server_data", "37": "start_using_item" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2682,7 +2682,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2704,7 +2703,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2715,24 +2715,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2742,122 +2738,128 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", + "name": "recipe_network_id", + "type": "varint" + }, + { + "name": "times_crafted_2", "type": "u8" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "consume": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "create": [ + "destroy": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "beacon_payment": [ + "drop": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], @@ -2878,7 +2880,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2886,111 +2889,108 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -3018,7 +3018,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -3034,7 +3033,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3052,11 +3052,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3152,7 +3152,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3170,7 +3169,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3221,11 +3221,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3263,7 +3263,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3313,7 +3312,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3375,13 +3375,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3390,13 +3390,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3405,12 +3405,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3482,12 +3482,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3521,19 +3521,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3541,13 +3540,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3555,13 +3554,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3572,31 +3571,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3607,31 +3606,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3642,31 +3641,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3705,15 +3704,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3780,13 +3779,13 @@ "62": "crafter", "63": "dynamic", "64": "registry" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4348,13 +4347,13 @@ "557": "record_creator", "558": "record_creator_music_box", "559": "record_precipice" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4456,13 +4455,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4480,13 +4479,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4509,7 +4508,8 @@ "privileged_builder", "vertical_fly_speed", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4520,7 +4520,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4528,7 +4527,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4685,11 +4685,11 @@ [ "mapper", { - "type": "li32", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "li32" } ] ] @@ -4719,14 +4719,14 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] ] @@ -4736,7 +4736,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4860,7 +4859,8 @@ "119": "realms_timeline_required", "120": "guest_withough_host", "121": "failed_to_join_experience" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -4882,11 +4882,11 @@ "MovementEffectType": [ "mapper", { - "type": "varint", "mappings": { "0": "GLIDE_BOOST", "-1": "invalid" - } + }, + "type": "varint" } ], "BiomeDefinition": [ @@ -5323,7 +5323,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "xyz", "1": "xzy", @@ -5331,7 +5330,8 @@ "3": "yzx", "4": "zxy", "5": "zyx" - } + }, + "type": "zigzag32" } ] }, @@ -5393,7 +5393,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "single_valued", "1": "uniform", @@ -5402,7 +5401,8 @@ "4": "fixed_grid", "5": "jittered_grid", "6": "triangle" - } + }, + "type": "zigzag32" } ] } @@ -5546,7 +5546,6 @@ "EaseType": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -5580,7 +5579,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ], "mcpe_packet": [ @@ -5591,7 +5591,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -5815,7 +5814,8 @@ "326": "player_location", "327": "clientbound_controls_scheme", "328": "server_script_debug_drawer" - } + }, + "type": "varint" } ] }, @@ -5826,228 +5826,228 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_aim_assist_presets": "packet_camera_aim_assist_presets", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_camera_aim_assist": "packet_client_camera_aim_assist", + "client_cheat_ability": "packet_client_cheat_ability", + "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_controls_scheme": "packet_clientbound_controls_scheme", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_registry": "packet_item_registry", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "movement_effect": "packet_movement_effect", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_location": "packet_player_location", + "player_skin": "packet_player_skin", + "player_update_entity_overrides": "packet_player_update_entity_overrides", + "player_video_capture": "packet_player_video_capture", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", + "server_script_debug_drawer": "packet_server_script_debug_drawer", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "serverbound_diagnostics": "packet_serverbound_diagnostics", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_movement_authority": "packet_set_movement_authority", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_registry": "packet_item_registry", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", - "update_abilities": "packet_update_abilities", - "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", - "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", - "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup", - "movement_effect": "packet_movement_effect", - "set_movement_authority": "packet_set_movement_authority", - "camera_aim_assist_presets": "packet_camera_aim_assist_presets", - "client_camera_aim_assist": "packet_client_camera_aim_assist", - "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", + "update_abilities": "packet_update_abilities", + "update_adventure_settings": "packet_update_adventure_settings", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_client_input_locks": "packet_update_client_input_locks", "update_client_options": "packet_update_client_options", - "player_video_capture": "packet_player_video_capture", - "player_update_entity_overrides": "packet_player_update_entity_overrides", - "player_location": "packet_player_location", - "clientbound_controls_scheme": "packet_clientbound_controls_scheme", - "server_script_debug_drawer": "packet_server_script_debug_drawer" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -6094,7 +6094,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -6106,7 +6105,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -6142,9 +6142,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -6157,7 +6154,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -6245,14 +6245,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -6270,7 +6270,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -6284,7 +6283,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -6299,7 +6299,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -6312,7 +6312,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -6325,20 +6325,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -6347,7 +6343,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -6356,25 +6352,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -6383,7 +6399,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -6392,26 +6408,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -6430,22 +6436,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -6516,12 +6516,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -6554,13 +6554,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level", "3": "realms_upload" - } + }, + "type": "zigzag32" } ] }, @@ -6721,12 +6721,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -7080,13 +7080,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -7113,14 +7113,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -7173,14 +7173,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -7258,7 +7258,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -7457,7 +7456,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -7483,11 +7483,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -7509,7 +7509,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -7569,7 +7568,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -7591,12 +7591,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -7710,13 +7710,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -7731,8 +7731,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -7887,11 +7887,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -7917,7 +7917,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -7927,7 +7926,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -7942,7 +7942,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -7951,7 +7951,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -8144,12 +8144,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -8228,34 +8228,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -8427,13 +8427,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -8451,7 +8451,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -8485,7 +8484,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -8515,13 +8515,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -8744,7 +8744,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -8755,7 +8754,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -8766,45 +8766,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "filtered_title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "query": [ "container", [ { @@ -8813,7 +8775,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -8844,9 +8806,21 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "filtered_title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -8873,6 +8847,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -8961,8 +8961,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -9084,7 +9084,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -9105,7 +9104,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -9114,13 +9114,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -9206,12 +9206,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -9232,28 +9232,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -9292,6 +9292,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -9304,12 +9313,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -9322,15 +9331,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -9378,13 +9378,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -9430,10 +9430,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -9541,7 +9541,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -9551,7 +9550,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -9654,7 +9654,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -9665,7 +9664,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -9769,12 +9769,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -9861,14 +9861,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -9883,23 +9883,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -9926,16 +9909,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -9955,6 +9942,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -9974,7 +9974,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9983,7 +9982,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9996,7 +9996,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -10005,7 +10004,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -10103,11 +10103,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -10196,11 +10196,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -10240,12 +10240,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -10256,8 +10256,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -10295,12 +10295,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -10342,12 +10342,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -10441,18 +10441,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -10463,11 +10463,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -10490,10 +10490,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -10535,12 +10535,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -10777,11 +10777,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -10846,13 +10846,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -10886,12 +10886,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -11091,11 +11091,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -11109,12 +11109,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -11158,7 +11158,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -11177,7 +11176,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -11195,11 +11195,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -11249,14 +11249,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -11265,7 +11265,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -11277,7 +11276,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -11286,12 +11286,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -11396,7 +11396,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -11409,7 +11409,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -11448,7 +11448,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -11490,7 +11490,6 @@ "InputFlag": [ "bitflags", { - "type": "varint128", "big": true, "flags": [ "ascend", @@ -11558,7 +11557,8 @@ "sneak_released_raw", "sneak_pressed_raw", "sneak_current_raw" - ] + ], + "type": "varint128" } ], "packet_creative_content": [ @@ -11578,7 +11578,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "all", "1": "construction", @@ -11586,7 +11585,8 @@ "3": "equipment", "4": "items", "5": "item_command_only" - } + }, + "type": "li32" } ] }, @@ -11742,14 +11742,14 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, + "body": 16, "chest": 2, - "legs": 4, "feet": 8, - "body": 16 - } + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -11809,10 +11809,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -11830,12 +11830,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -11870,10 +11870,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -11882,12 +11882,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -11977,11 +11977,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -12010,11 +12010,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -12077,11 +12077,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -12092,7 +12092,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -12125,7 +12124,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -12203,13 +12203,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -12227,11 +12227,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -12328,14 +12328,14 @@ "HeightMapDataType": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low", "4": "all_copied" - } + }, + "type": "u8" } ], "SubChunkEntryWithoutCaching": [ @@ -12362,7 +12362,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12371,7 +12370,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12449,7 +12449,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12458,7 +12457,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12468,10 +12468,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -12547,8 +12547,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -12628,13 +12628,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -12643,12 +12643,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -12657,7 +12657,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -12665,7 +12664,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -12709,7 +12709,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -12717,7 +12716,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -12740,7 +12740,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -12761,7 +12760,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -12825,7 +12825,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -12846,7 +12845,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -12855,11 +12855,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -12893,17 +12893,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -13068,14 +13068,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -13117,15 +13117,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -13191,14 +13191,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -13472,11 +13472,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -13515,7 +13515,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -13524,7 +13523,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -13533,13 +13533,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -13552,13 +13552,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -13567,13 +13567,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -13597,11 +13597,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "varint" } ] } @@ -13610,7 +13610,6 @@ "Element": [ "mapper", { - "type": "varint", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -13625,7 +13624,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "varint" } ], "packet_award_achievement": [ @@ -13745,11 +13745,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "u8" } ] }, @@ -13758,11 +13758,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -13816,12 +13816,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "u8" } ] } @@ -13985,11 +13985,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "add_to_existing" - } + }, + "type": "u8" } ] } @@ -14007,11 +14007,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_from_camera_preset", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -14092,13 +14092,13 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "simple", "1": "fancy", "2": "advanced", "3": "ray_traced" - } + }, + "type": "u8" } ] ] @@ -14113,11 +14113,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "stop", "1": "start" - } + }, + "type": "u8" } ] }, @@ -14163,13 +14163,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "clear_all", "1": "remove", "2": "set_int", "3": "set_float" - } + }, + "type": "u8" } ] }, @@ -14180,8 +14180,8 @@ { "compareTo": "type", "fields": { - "set_int": "li32", - "set_float": "lf32" + "set_float": "lf32", + "set_int": "li32" } } ] @@ -14196,11 +14196,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "coordinates", "1": "type_hide" - } + }, + "type": "li32" } ] }, @@ -14230,14 +14230,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] } @@ -14266,7 +14266,6 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "line", "1": "box", @@ -14274,7 +14273,8 @@ "3": "circle", "4": "text", "5": "arrow" - } + }, + "type": "u8" } ] ] diff --git a/data/bedrock/1.21.111/protocol.json b/data/bedrock/1.21.111/protocol.json index 201e1d49f..43f981dc0 100644 --- a/data/bedrock/1.21.111/protocol.json +++ b/data/bedrock/1.21.111/protocol.json @@ -160,7 +160,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -169,7 +168,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRuleI32": [ @@ -188,12 +188,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -205,8 +205,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "li32", - "float": "lf32" + "float": "lf32", + "int": "li32" } } ] @@ -229,12 +229,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -246,8 +246,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "varint", - "float": "lf32" + "float": "lf32", + "int": "varint" } } ] @@ -310,12 +310,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "data_driven", "2": "none" - } + }, + "type": "zigzag32" } ] }, @@ -335,11 +335,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -349,6 +349,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -363,8 +364,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -402,11 +402,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -416,6 +416,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -430,8 +431,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -470,9 +470,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -494,6 +491,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -502,19 +506,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -533,9 +533,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -557,10 +554,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -574,6 +571,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -582,19 +586,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -738,7 +738,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -875,7 +874,8 @@ "133": "bed_enter_position", "134": "seat_third_person_camera_radius", "135": "seat_camera_relax_distance_smoothing" - } + }, + "type": "varint" } ] }, @@ -884,7 +884,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -895,7 +894,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -905,29 +905,29 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2", - "seat_third_person_camera_radius": "lf32", - "seat_camera_relax_distance_smoothing": "lf32" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2", + "seat_camera_relax_distance_smoothing": "lf32", + "seat_third_person_camera_radius": "lf32" + } } ] } @@ -938,7 +938,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -1006,13 +1005,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1076,7 +1075,8 @@ "does_server_auth_only_dismount", "body_rotation_always_follows_head", "can_use_vertical_movement_action" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1310,13 +1310,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block", "3": "attack" - } + }, + "type": "varint" } ] }, @@ -1325,12 +1325,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "varint" } ] }, @@ -1367,11 +1367,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "varint" } ] } @@ -1389,7 +1389,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1397,7 +1396,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1407,6 +1407,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1426,26 +1427,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1478,9 +1478,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1513,7 +1510,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1531,14 +1531,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1553,26 +1553,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1585,28 +1579,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1619,11 +1614,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1645,7 +1645,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1653,7 +1652,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1664,6 +1664,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1677,34 +1686,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1720,15 +1729,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1810,7 +1810,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1822,7 +1821,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1833,97 +1833,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" }, { - "name": "network_id", - "type": "varint" + "name": "block", + "type": "string" } ] ], - "shulker_box": [ + "multi": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] - }, - { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" - }, - { - "name": "block", - "type": "string" - }, - { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1931,20 +1884,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1970,6 +1937,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1980,7 +1951,7 @@ } ] ], - "shaped": [ + "shaped_chemistry": [ "container", [ { @@ -2047,34 +2018,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2100,10 +2057,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2114,50 +2067,97 @@ } ] ], - "furnace": [ + "shapeless_chemistry": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" + }, + { + "name": "priority", + "type": "zigzag32" + }, + { + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" + }, + { + "name": "network_id", + "type": "varint" } ] ], - "furnace_with_metadata": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "input_meta", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" + }, + { + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2243,13 +2243,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2463,11 +2463,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2637,7 +2637,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2677,7 +2676,8 @@ "35": "stop_flying", "36": "received_server_data", "37": "start_using_item" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2718,7 +2718,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2740,7 +2739,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2751,24 +2751,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2778,122 +2774,128 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", + "name": "recipe_network_id", + "type": "varint" + }, + { + "name": "times_crafted_2", "type": "u8" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "consume": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "create": [ + "destroy": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "beacon_payment": [ + "drop": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], @@ -2914,7 +2916,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2922,111 +2925,108 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -3054,7 +3054,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -3070,7 +3069,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3088,11 +3088,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3188,7 +3188,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3206,7 +3205,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3257,11 +3257,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3299,7 +3299,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3349,7 +3348,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3411,13 +3411,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3426,13 +3426,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3441,12 +3441,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3518,12 +3518,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3557,19 +3557,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3577,13 +3576,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3591,13 +3590,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3608,31 +3607,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3643,31 +3642,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3678,31 +3677,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" + } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3741,15 +3740,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3816,13 +3815,13 @@ "62": "crafter", "63": "dynamic", "64": "registry" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4390,13 +4389,13 @@ "563": "PlaceItem", "564": "SingleItemSwap", "565": "MultiItemSwap" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4498,13 +4497,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4522,13 +4521,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4551,7 +4550,8 @@ "privileged_builder", "vertical_fly_speed", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4562,7 +4562,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4570,7 +4569,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4727,11 +4727,11 @@ [ "mapper", { - "type": "li32", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "li32" } ] ] @@ -4761,14 +4761,14 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] ] @@ -4778,7 +4778,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4902,7 +4901,8 @@ "119": "realms_timeline_required", "120": "guest_withough_host", "121": "failed_to_join_experience" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -4924,11 +4924,11 @@ "MovementEffectType": [ "mapper", { - "type": "varint", "mappings": { "0": "GLIDE_BOOST", "-1": "invalid" - } + }, + "type": "varint" } ], "BiomeDefinition": [ @@ -5341,7 +5341,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "xyz", "1": "xzy", @@ -5349,7 +5348,8 @@ "3": "yzx", "4": "zxy", "5": "zyx" - } + }, + "type": "zigzag32" } ] }, @@ -5411,7 +5411,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "single_valued", "1": "uniform", @@ -5420,7 +5419,8 @@ "4": "fixed_grid", "5": "jittered_grid", "6": "triangle" - } + }, + "type": "zigzag32" } ] } @@ -5564,7 +5564,6 @@ "EaseType": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -5598,7 +5597,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ], "mcpe_packet": [ @@ -5609,7 +5609,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -5834,7 +5833,8 @@ "327": "clientbound_controls_scheme", "328": "server_script_debug_drawer", "329": "serverbound_pack_setting_change" - } + }, + "type": "varint" } ] }, @@ -5845,229 +5845,229 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_aim_assist_presets": "packet_camera_aim_assist_presets", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_camera_aim_assist": "packet_client_camera_aim_assist", + "client_cheat_ability": "packet_client_cheat_ability", + "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_controls_scheme": "packet_clientbound_controls_scheme", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_registry": "packet_item_registry", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "movement_effect": "packet_movement_effect", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_location": "packet_player_location", + "player_skin": "packet_player_skin", + "player_update_entity_overrides": "packet_player_update_entity_overrides", + "player_video_capture": "packet_player_video_capture", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", + "server_script_debug_drawer": "packet_server_script_debug_drawer", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "serverbound_diagnostics": "packet_serverbound_diagnostics", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_movement_authority": "packet_set_movement_authority", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_registry": "packet_item_registry", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", - "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", - "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup", - "movement_effect": "packet_movement_effect", - "set_movement_authority": "packet_set_movement_authority", - "camera_aim_assist_presets": "packet_camera_aim_assist_presets", - "client_camera_aim_assist": "packet_client_camera_aim_assist", - "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_client_input_locks": "packet_update_client_input_locks", "update_client_options": "packet_update_client_options", - "player_video_capture": "packet_player_video_capture", - "player_update_entity_overrides": "packet_player_update_entity_overrides", - "player_location": "packet_player_location", - "clientbound_controls_scheme": "packet_clientbound_controls_scheme", - "server_script_debug_drawer": "packet_server_script_debug_drawer", - "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -6114,7 +6114,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -6126,7 +6125,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -6162,9 +6162,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -6177,7 +6174,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -6265,14 +6265,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -6290,7 +6290,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -6304,7 +6303,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -6319,7 +6319,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -6332,7 +6332,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -6345,20 +6345,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -6367,7 +6363,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -6376,25 +6372,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -6403,7 +6419,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -6412,26 +6428,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -6450,22 +6456,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -6536,12 +6536,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -6574,13 +6574,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level", "3": "realms_upload" - } + }, + "type": "zigzag32" } ] }, @@ -6747,12 +6747,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -7106,13 +7106,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -7139,14 +7139,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -7199,14 +7199,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -7284,7 +7284,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -7489,7 +7488,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -7515,11 +7515,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -7541,7 +7541,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -7601,7 +7600,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -7623,12 +7623,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -7742,13 +7742,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -7763,8 +7763,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -7919,11 +7919,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -7949,7 +7949,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -7959,7 +7958,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -7974,7 +7974,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -7983,7 +7983,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -8176,12 +8176,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -8260,34 +8260,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -8459,13 +8459,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -8483,7 +8483,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -8517,7 +8516,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -8547,13 +8547,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -8782,7 +8782,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -8793,7 +8792,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -8804,45 +8804,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "filtered_title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "query": [ "container", [ { @@ -8851,7 +8813,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -8882,9 +8844,21 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "filtered_title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -8911,6 +8885,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -8999,8 +8999,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -9122,7 +9122,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -9143,7 +9142,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -9152,13 +9152,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -9244,12 +9244,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -9270,28 +9270,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -9330,6 +9330,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -9342,12 +9351,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -9360,15 +9369,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -9416,13 +9416,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -9468,10 +9468,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -9579,7 +9579,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -9589,7 +9588,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -9692,7 +9692,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -9703,7 +9702,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -9807,12 +9807,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -9899,14 +9899,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -9921,23 +9921,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -9964,16 +9947,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -9993,6 +9980,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -10012,7 +10012,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -10021,7 +10020,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -10034,7 +10034,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -10043,7 +10042,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -10141,11 +10141,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -10234,11 +10234,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -10278,12 +10278,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -10294,8 +10294,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -10333,12 +10333,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -10380,12 +10380,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -10479,18 +10479,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -10501,11 +10501,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -10528,10 +10528,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -10573,12 +10573,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -10815,11 +10815,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -10884,13 +10884,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -10924,12 +10924,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -11129,11 +11129,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -11147,12 +11147,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -11196,7 +11196,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -11215,7 +11214,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -11233,11 +11233,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -11287,14 +11287,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -11303,7 +11303,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -11315,7 +11314,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -11324,12 +11324,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -11434,7 +11434,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -11447,7 +11447,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -11486,7 +11486,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -11528,7 +11528,6 @@ "InputFlag": [ "bitflags", { - "type": "varint128", "big": true, "flags": [ "ascend", @@ -11596,7 +11595,8 @@ "sneak_released_raw", "sneak_pressed_raw", "sneak_current_raw" - ] + ], + "type": "varint128" } ], "packet_creative_content": [ @@ -11616,7 +11616,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "all", "1": "construction", @@ -11624,7 +11623,8 @@ "3": "equipment", "4": "items", "5": "item_command_only" - } + }, + "type": "li32" } ] }, @@ -11731,14 +11731,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "helmet", "1": "chestplate", "2": "leggings", "3": "boots", "4": "body" - } + }, + "type": "u8" } ] }, @@ -11805,10 +11805,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -11826,12 +11826,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -11866,10 +11866,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -11878,12 +11878,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -11973,11 +11973,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -12006,11 +12006,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -12073,11 +12073,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -12088,7 +12088,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -12121,7 +12120,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -12199,13 +12199,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -12223,11 +12223,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -12324,14 +12324,14 @@ "HeightMapDataType": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low", "4": "all_copied" - } + }, + "type": "u8" } ], "SubChunkEntryWithoutCaching": [ @@ -12358,7 +12358,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12367,7 +12366,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12445,7 +12445,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12454,7 +12453,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12464,10 +12464,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -12543,8 +12543,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -12624,13 +12624,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -12639,12 +12639,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -12653,7 +12653,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -12661,7 +12660,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -12705,7 +12705,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -12713,7 +12712,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -12736,7 +12736,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -12757,7 +12756,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -12821,7 +12821,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -12842,7 +12841,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -12851,11 +12851,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -12889,17 +12889,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -13064,14 +13064,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -13113,15 +13113,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -13187,14 +13187,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -13468,11 +13468,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -13511,7 +13511,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -13520,7 +13519,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -13529,13 +13529,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -13548,13 +13548,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -13563,13 +13563,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -13593,11 +13593,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "varint" } ] } @@ -13606,7 +13606,6 @@ "Element": [ "mapper", { - "type": "varint", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -13621,7 +13620,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "varint" } ], "packet_award_achievement": [ @@ -13741,11 +13741,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "u8" } ] }, @@ -13754,11 +13754,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -13812,12 +13812,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "u8" } ] } @@ -13981,11 +13981,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "add_to_existing" - } + }, + "type": "u8" } ] } @@ -14003,11 +14003,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_from_camera_preset", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -14088,13 +14088,13 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "simple", "1": "fancy", "2": "advanced", "3": "ray_traced" - } + }, + "type": "u8" } ] ] @@ -14109,11 +14109,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "stop", "1": "start" - } + }, + "type": "u8" } ] }, @@ -14159,13 +14159,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "clear_all", "1": "remove", "2": "set_int", "3": "set_float" - } + }, + "type": "u8" } ] }, @@ -14176,8 +14176,8 @@ { "compareTo": "type", "fields": { - "set_int": "li32", - "set_float": "lf32" + "set_float": "lf32", + "set_int": "li32" } } ] @@ -14192,11 +14192,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "coordinates", "1": "type_hide" - } + }, + "type": "li32" } ] }, @@ -14226,14 +14226,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] } @@ -14262,7 +14262,6 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "line", "1": "box", @@ -14270,7 +14269,8 @@ "3": "circle", "4": "text", "5": "arrow" - } + }, + "type": "u8" } ] ] @@ -14380,12 +14380,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "float", "1": "bool", "2": "string" - } + }, + "type": "u8" } ] }, @@ -14396,8 +14396,8 @@ { "compareTo": "type", "fields": { - "float": "lf32", "bool": "bool", + "float": "lf32", "string": "string" } } diff --git a/data/bedrock/1.21.120/protocol.json b/data/bedrock/1.21.120/protocol.json index f209385a2..b6a52cfda 100644 --- a/data/bedrock/1.21.120/protocol.json +++ b/data/bedrock/1.21.120/protocol.json @@ -160,7 +160,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -169,7 +168,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRuleI32": [ @@ -188,12 +188,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -205,8 +205,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "li32", - "float": "lf32" + "float": "lf32", + "int": "li32" } } ] @@ -229,12 +229,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -246,8 +246,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "varint", - "float": "lf32" + "float": "lf32", + "int": "varint" } } ] @@ -310,12 +310,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "data_driven", "2": "none" - } + }, + "type": "zigzag32" } ] }, @@ -335,11 +335,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -349,6 +349,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -363,8 +364,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -402,11 +402,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -416,6 +416,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -430,8 +431,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -470,9 +470,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -494,6 +491,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -502,19 +506,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -533,9 +533,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -557,10 +554,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -574,6 +571,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -582,19 +586,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -738,7 +738,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -875,7 +874,8 @@ "133": "bed_enter_position", "134": "seat_third_person_camera_radius", "135": "seat_camera_relax_distance_smoothing" - } + }, + "type": "varint" } ] }, @@ -884,7 +884,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -895,7 +894,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -905,29 +905,29 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2", - "seat_third_person_camera_radius": "lf32", - "seat_camera_relax_distance_smoothing": "lf32" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2", + "seat_camera_relax_distance_smoothing": "lf32", + "seat_third_person_camera_radius": "lf32" + } } ] } @@ -938,7 +938,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -1006,13 +1005,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1076,7 +1075,8 @@ "does_server_auth_only_dismount", "body_rotation_always_follows_head", "can_use_vertical_movement_action" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1310,13 +1310,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block", "3": "attack" - } + }, + "type": "varint" } ] }, @@ -1325,12 +1325,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "varint" } ] }, @@ -1367,11 +1367,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "varint" } ] } @@ -1389,7 +1389,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1397,7 +1396,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1407,6 +1407,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1426,26 +1427,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1478,9 +1478,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1513,7 +1510,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1531,14 +1531,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1553,26 +1553,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1585,28 +1579,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1619,11 +1614,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1645,7 +1645,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1653,7 +1652,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1664,6 +1664,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1677,34 +1686,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1720,15 +1729,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1810,7 +1810,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1822,7 +1821,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1833,97 +1833,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" }, { - "name": "network_id", - "type": "varint" + "name": "block", + "type": "string" } ] ], - "shulker_box": [ + "multi": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] - }, - { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" - }, - { - "name": "block", - "type": "string" - }, - { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1931,20 +1884,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1970,6 +1937,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1980,7 +1951,7 @@ } ] ], - "shaped": [ + "shaped_chemistry": [ "container", [ { @@ -2047,34 +2018,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2100,10 +2057,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2114,50 +2067,97 @@ } ] ], - "furnace": [ + "shapeless_chemistry": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" + }, + { + "name": "priority", + "type": "zigzag32" + }, + { + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" + }, + { + "name": "network_id", + "type": "varint" } ] ], - "furnace_with_metadata": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "input_meta", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" + }, + { + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2243,13 +2243,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2463,11 +2463,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2637,7 +2637,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2677,7 +2676,8 @@ "35": "stop_flying", "36": "received_server_data", "37": "start_using_item" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2718,7 +2718,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2740,7 +2739,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2751,24 +2751,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2778,122 +2774,128 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", + "name": "recipe_network_id", + "type": "varint" + }, + { + "name": "times_crafted_2", "type": "u8" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "consume": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "create": [ + "destroy": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "beacon_payment": [ + "drop": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], @@ -2914,7 +2916,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2922,111 +2925,108 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -3054,7 +3054,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -3070,7 +3069,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3088,11 +3088,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3188,7 +3188,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3206,7 +3205,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3257,11 +3257,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3299,7 +3299,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3349,7 +3348,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3411,13 +3411,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3426,13 +3426,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3441,12 +3441,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3518,12 +3518,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3557,19 +3557,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3577,13 +3576,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3591,13 +3590,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3608,31 +3607,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3643,31 +3642,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3678,31 +3677,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" + } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3741,15 +3740,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3816,13 +3815,13 @@ "62": "crafter", "63": "dynamic", "64": "registry" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4390,13 +4389,13 @@ "563": "PlaceItem", "564": "SingleItemSwap", "565": "MultiItemSwap" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4498,13 +4497,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4522,13 +4521,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4551,7 +4550,8 @@ "privileged_builder", "vertical_fly_speed", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4562,7 +4562,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4570,7 +4569,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4727,11 +4727,11 @@ [ "mapper", { - "type": "li32", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "li32" } ] ] @@ -4761,14 +4761,14 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] ] @@ -4834,7 +4834,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4958,7 +4957,8 @@ "119": "realms_timeline_required", "120": "guest_withough_host", "121": "failed_to_join_experience" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -4980,11 +4980,11 @@ "MovementEffectType": [ "mapper", { - "type": "varint", "mappings": { "0": "GLIDE_BOOST", "-1": "invalid" - } + }, + "type": "varint" } ], "BiomeDefinition": [ @@ -5410,7 +5410,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "xyz", "1": "xzy", @@ -5418,7 +5417,8 @@ "3": "yzx", "4": "zxy", "5": "zyx" - } + }, + "type": "zigzag32" } ] }, @@ -5480,7 +5480,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "single_valued", "1": "uniform", @@ -5489,7 +5488,8 @@ "4": "fixed_grid", "5": "jittered_grid", "6": "triangle" - } + }, + "type": "zigzag32" } ] } @@ -5668,7 +5668,6 @@ "EaseType": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -5702,17 +5701,18 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ], "CameraSplineEaseType": [ "mapper", { - "type": "u8", "mappings": { "0": "catmull_rom", "1": "linear" - } + }, + "type": "u8" } ], "ParameterKeyframeValue": [ @@ -5731,10 +5731,10 @@ "GraphicsOverrideParameterType": [ "mapper", { - "type": "u8", "mappings": { "0": "sky_zenith_color" - } + }, + "type": "u8" } ], "mcpe_packet": [ @@ -5745,7 +5745,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -5971,7 +5970,8 @@ "328": "server_script_debug_drawer", "329": "serverbound_pack_setting_change", "331": "graphics_override_parameter" - } + }, + "type": "varint" } ] }, @@ -5982,230 +5982,230 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_aim_assist_presets": "packet_camera_aim_assist_presets", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_camera_aim_assist": "packet_client_camera_aim_assist", + "client_cheat_ability": "packet_client_cheat_ability", + "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_controls_scheme": "packet_clientbound_controls_scheme", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "graphics_override_parameter": "packet_graphics_override_parameter", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_registry": "packet_item_registry", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "movement_effect": "packet_movement_effect", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_location": "packet_player_location", + "player_skin": "packet_player_skin", + "player_update_entity_overrides": "packet_player_update_entity_overrides", + "player_video_capture": "packet_player_video_capture", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", + "server_script_debug_drawer": "packet_server_script_debug_drawer", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "serverbound_diagnostics": "packet_serverbound_diagnostics", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_movement_authority": "packet_set_movement_authority", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_registry": "packet_item_registry", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", - "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", - "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup", - "movement_effect": "packet_movement_effect", - "set_movement_authority": "packet_set_movement_authority", - "camera_aim_assist_presets": "packet_camera_aim_assist_presets", - "client_camera_aim_assist": "packet_client_camera_aim_assist", - "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_client_input_locks": "packet_update_client_input_locks", "update_client_options": "packet_update_client_options", - "player_video_capture": "packet_player_video_capture", - "player_update_entity_overrides": "packet_player_update_entity_overrides", - "player_location": "packet_player_location", - "clientbound_controls_scheme": "packet_clientbound_controls_scheme", - "server_script_debug_drawer": "packet_server_script_debug_drawer", - "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change", - "graphics_override_parameter": "packet_graphics_override_parameter" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -6252,7 +6252,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -6264,7 +6263,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -6300,9 +6300,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -6315,7 +6312,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -6403,14 +6403,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -6428,7 +6428,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -6442,7 +6441,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -6457,7 +6457,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -6470,7 +6470,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -6483,20 +6483,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -6505,7 +6501,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -6514,25 +6510,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -6541,7 +6557,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -6550,26 +6566,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -6588,22 +6594,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -6674,12 +6674,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -6712,13 +6712,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level", "3": "realms_upload" - } + }, + "type": "zigzag32" } ] }, @@ -6885,12 +6885,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -7244,13 +7244,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -7277,14 +7277,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -7337,14 +7337,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -7422,7 +7422,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -7627,7 +7626,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -7653,11 +7653,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -7679,7 +7679,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -7740,7 +7739,8 @@ "77": "vibration_detected", "78": "drink_milk", "79": "wetness_stop" - } + }, + "type": "u8" } ] }, @@ -7762,12 +7762,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -7881,13 +7881,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -7902,8 +7902,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -8058,11 +8058,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -8088,7 +8088,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -8098,7 +8097,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -8117,7 +8117,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -8126,7 +8126,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -8319,12 +8319,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -8403,34 +8403,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -8602,13 +8602,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -8626,7 +8626,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -8660,7 +8659,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -8690,13 +8690,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -8925,7 +8925,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -8936,7 +8935,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -8947,45 +8947,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "filtered_title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "query": [ "container", [ { @@ -8994,7 +8956,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -9025,9 +8987,21 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "filtered_title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -9054,6 +9028,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -9142,8 +9142,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -9265,7 +9265,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -9286,7 +9285,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -9295,13 +9295,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -9387,12 +9387,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -9413,28 +9413,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -9473,6 +9473,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -9485,12 +9494,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -9503,15 +9512,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -9559,13 +9559,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -9611,10 +9611,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -9722,7 +9722,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -9732,7 +9731,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -9835,7 +9835,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -9846,7 +9845,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -9950,12 +9950,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -10042,14 +10042,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -10064,23 +10064,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -10107,16 +10090,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -10136,6 +10123,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -10155,7 +10155,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -10164,7 +10163,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -10177,7 +10177,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -10186,7 +10185,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -10284,11 +10284,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -10377,11 +10377,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -10421,12 +10421,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -10437,8 +10437,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -10476,12 +10476,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -10523,12 +10523,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -10622,18 +10622,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -10644,11 +10644,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -10671,10 +10671,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -10716,12 +10716,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -10958,11 +10958,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -11027,13 +11027,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -11067,12 +11067,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -11272,11 +11272,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -11290,12 +11290,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -11339,7 +11339,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -11358,7 +11357,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -11376,11 +11376,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -11430,14 +11430,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -11446,7 +11446,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -11458,7 +11457,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -11467,12 +11467,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -11577,7 +11577,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -11590,7 +11590,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -11629,7 +11629,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -11671,7 +11671,6 @@ "InputFlag": [ "bitflags", { - "type": "varint128", "big": true, "flags": [ "ascend", @@ -11739,7 +11738,8 @@ "sneak_released_raw", "sneak_pressed_raw", "sneak_current_raw" - ] + ], + "type": "varint128" } ], "packet_creative_content": [ @@ -11759,7 +11759,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "all", "1": "construction", @@ -11767,7 +11766,8 @@ "3": "equipment", "4": "items", "5": "item_command_only" - } + }, + "type": "li32" } ] }, @@ -11874,14 +11874,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "helmet", "1": "chestplate", "2": "leggings", "3": "boots", "4": "body" - } + }, + "type": "u8" } ] }, @@ -11948,10 +11948,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -11969,12 +11969,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -12009,10 +12009,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -12021,12 +12021,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -12116,11 +12116,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -12149,11 +12149,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -12216,11 +12216,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -12231,7 +12231,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -12264,7 +12263,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -12342,13 +12342,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -12366,11 +12366,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -12467,14 +12467,14 @@ "HeightMapDataType": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low", "4": "all_copied" - } + }, + "type": "u8" } ], "SubChunkEntryWithoutCaching": [ @@ -12501,7 +12501,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12510,7 +12509,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12588,7 +12588,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12597,7 +12596,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12607,10 +12607,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -12686,8 +12686,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -12767,13 +12767,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -12782,12 +12782,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -12796,7 +12796,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -12804,7 +12803,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -12848,7 +12848,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -12856,7 +12855,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -12879,7 +12879,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -12900,7 +12899,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -12964,7 +12964,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -12985,7 +12984,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -12994,11 +12994,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -13032,17 +13032,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -13207,14 +13207,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -13256,15 +13256,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -13330,14 +13330,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -13632,11 +13632,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -13675,7 +13675,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -13684,7 +13683,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -13693,13 +13693,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -13712,13 +13712,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -13727,13 +13727,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -13757,11 +13757,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "varint" } ] } @@ -13770,7 +13770,6 @@ "Element": [ "mapper", { - "type": "varint", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -13785,7 +13784,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "varint" } ], "packet_award_achievement": [ @@ -13905,11 +13905,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "u8" } ] }, @@ -13918,11 +13918,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -13976,12 +13976,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "u8" } ] } @@ -14145,11 +14145,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "add_to_existing" - } + }, + "type": "u8" } ] } @@ -14167,11 +14167,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_from_camera_preset", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -14252,13 +14252,13 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "simple", "1": "fancy", "2": "advanced", "3": "ray_traced" - } + }, + "type": "u8" } ] ] @@ -14273,11 +14273,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "stop", "1": "start" - } + }, + "type": "u8" } ] }, @@ -14323,13 +14323,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "clear_all", "1": "remove", "2": "set_int", "3": "set_float" - } + }, + "type": "u8" } ] }, @@ -14340,8 +14340,8 @@ { "compareTo": "type", "fields": { - "set_int": "li32", - "set_float": "lf32" + "set_float": "lf32", + "set_int": "li32" } } ] @@ -14356,11 +14356,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "coordinates", "1": "type_hide" - } + }, + "type": "li32" } ] }, @@ -14390,14 +14390,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] } @@ -14426,7 +14426,6 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "line", "1": "box", @@ -14434,7 +14433,8 @@ "3": "circle", "4": "text", "5": "arrow" - } + }, + "type": "u8" } ] ] @@ -14544,12 +14544,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "float", "1": "bool", "2": "string" - } + }, + "type": "u8" } ] }, @@ -14560,8 +14560,8 @@ { "compareTo": "type", "fields": { - "float": "lf32", "bool": "bool", + "float": "lf32", "string": "string" } } diff --git a/data/bedrock/1.21.124/protocol.json b/data/bedrock/1.21.124/protocol.json index f209385a2..b6a52cfda 100644 --- a/data/bedrock/1.21.124/protocol.json +++ b/data/bedrock/1.21.124/protocol.json @@ -160,7 +160,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -169,7 +168,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRuleI32": [ @@ -188,12 +188,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -205,8 +205,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "li32", - "float": "lf32" + "float": "lf32", + "int": "li32" } } ] @@ -229,12 +229,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -246,8 +246,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "varint", - "float": "lf32" + "float": "lf32", + "int": "varint" } } ] @@ -310,12 +310,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "data_driven", "2": "none" - } + }, + "type": "zigzag32" } ] }, @@ -335,11 +335,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -349,6 +349,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -363,8 +364,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -402,11 +402,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -416,6 +416,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -430,8 +431,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -470,9 +470,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -494,6 +491,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -502,19 +506,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -533,9 +533,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -557,10 +554,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -574,6 +571,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -582,19 +586,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -738,7 +738,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -875,7 +874,8 @@ "133": "bed_enter_position", "134": "seat_third_person_camera_radius", "135": "seat_camera_relax_distance_smoothing" - } + }, + "type": "varint" } ] }, @@ -884,7 +884,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -895,7 +894,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -905,29 +905,29 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2", - "seat_third_person_camera_radius": "lf32", - "seat_camera_relax_distance_smoothing": "lf32" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2", + "seat_camera_relax_distance_smoothing": "lf32", + "seat_third_person_camera_radius": "lf32" + } } ] } @@ -938,7 +938,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -1006,13 +1005,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1076,7 +1075,8 @@ "does_server_auth_only_dismount", "body_rotation_always_follows_head", "can_use_vertical_movement_action" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1310,13 +1310,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block", "3": "attack" - } + }, + "type": "varint" } ] }, @@ -1325,12 +1325,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "varint" } ] }, @@ -1367,11 +1367,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "varint" } ] } @@ -1389,7 +1389,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1397,7 +1396,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1407,6 +1407,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1426,26 +1427,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1478,9 +1478,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1513,7 +1510,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1531,14 +1531,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1553,26 +1553,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1585,28 +1579,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1619,11 +1614,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1645,7 +1645,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1653,7 +1652,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1664,6 +1664,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1677,34 +1686,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1720,15 +1729,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1810,7 +1810,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1822,7 +1821,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1833,97 +1833,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" }, { - "name": "network_id", - "type": "varint" + "name": "block", + "type": "string" } ] ], - "shulker_box": [ + "multi": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] - }, - { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" - }, - { - "name": "block", - "type": "string" - }, - { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1931,20 +1884,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1970,6 +1937,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1980,7 +1951,7 @@ } ] ], - "shaped": [ + "shaped_chemistry": [ "container", [ { @@ -2047,34 +2018,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2100,10 +2057,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2114,50 +2067,97 @@ } ] ], - "furnace": [ + "shapeless_chemistry": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" + }, + { + "name": "priority", + "type": "zigzag32" + }, + { + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" + }, + { + "name": "network_id", + "type": "varint" } ] ], - "furnace_with_metadata": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "input_meta", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" + }, + { + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2243,13 +2243,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2463,11 +2463,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2637,7 +2637,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2677,7 +2676,8 @@ "35": "stop_flying", "36": "received_server_data", "37": "start_using_item" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2718,7 +2718,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2740,7 +2739,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2751,24 +2751,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2778,122 +2774,128 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", + "name": "recipe_network_id", + "type": "varint" + }, + { + "name": "times_crafted_2", "type": "u8" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "consume": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "create": [ + "destroy": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "beacon_payment": [ + "drop": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], @@ -2914,7 +2916,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2922,111 +2925,108 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -3054,7 +3054,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -3070,7 +3069,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3088,11 +3088,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3188,7 +3188,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3206,7 +3205,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3257,11 +3257,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3299,7 +3299,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3349,7 +3348,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3411,13 +3411,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3426,13 +3426,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3441,12 +3441,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3518,12 +3518,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3557,19 +3557,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3577,13 +3576,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3591,13 +3590,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3608,31 +3607,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3643,31 +3642,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3678,31 +3677,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" + } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3741,15 +3740,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3816,13 +3815,13 @@ "62": "crafter", "63": "dynamic", "64": "registry" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4390,13 +4389,13 @@ "563": "PlaceItem", "564": "SingleItemSwap", "565": "MultiItemSwap" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4498,13 +4497,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4522,13 +4521,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4551,7 +4550,8 @@ "privileged_builder", "vertical_fly_speed", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4562,7 +4562,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4570,7 +4569,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4727,11 +4727,11 @@ [ "mapper", { - "type": "li32", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "li32" } ] ] @@ -4761,14 +4761,14 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] ] @@ -4834,7 +4834,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4958,7 +4957,8 @@ "119": "realms_timeline_required", "120": "guest_withough_host", "121": "failed_to_join_experience" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -4980,11 +4980,11 @@ "MovementEffectType": [ "mapper", { - "type": "varint", "mappings": { "0": "GLIDE_BOOST", "-1": "invalid" - } + }, + "type": "varint" } ], "BiomeDefinition": [ @@ -5410,7 +5410,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "xyz", "1": "xzy", @@ -5418,7 +5417,8 @@ "3": "yzx", "4": "zxy", "5": "zyx" - } + }, + "type": "zigzag32" } ] }, @@ -5480,7 +5480,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "single_valued", "1": "uniform", @@ -5489,7 +5488,8 @@ "4": "fixed_grid", "5": "jittered_grid", "6": "triangle" - } + }, + "type": "zigzag32" } ] } @@ -5668,7 +5668,6 @@ "EaseType": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -5702,17 +5701,18 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ], "CameraSplineEaseType": [ "mapper", { - "type": "u8", "mappings": { "0": "catmull_rom", "1": "linear" - } + }, + "type": "u8" } ], "ParameterKeyframeValue": [ @@ -5731,10 +5731,10 @@ "GraphicsOverrideParameterType": [ "mapper", { - "type": "u8", "mappings": { "0": "sky_zenith_color" - } + }, + "type": "u8" } ], "mcpe_packet": [ @@ -5745,7 +5745,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -5971,7 +5970,8 @@ "328": "server_script_debug_drawer", "329": "serverbound_pack_setting_change", "331": "graphics_override_parameter" - } + }, + "type": "varint" } ] }, @@ -5982,230 +5982,230 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_aim_assist_presets": "packet_camera_aim_assist_presets", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_camera_aim_assist": "packet_client_camera_aim_assist", + "client_cheat_ability": "packet_client_cheat_ability", + "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_controls_scheme": "packet_clientbound_controls_scheme", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "graphics_override_parameter": "packet_graphics_override_parameter", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_registry": "packet_item_registry", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "movement_effect": "packet_movement_effect", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_location": "packet_player_location", + "player_skin": "packet_player_skin", + "player_update_entity_overrides": "packet_player_update_entity_overrides", + "player_video_capture": "packet_player_video_capture", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", + "server_script_debug_drawer": "packet_server_script_debug_drawer", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "serverbound_diagnostics": "packet_serverbound_diagnostics", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_movement_authority": "packet_set_movement_authority", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_registry": "packet_item_registry", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", - "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", - "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup", - "movement_effect": "packet_movement_effect", - "set_movement_authority": "packet_set_movement_authority", - "camera_aim_assist_presets": "packet_camera_aim_assist_presets", - "client_camera_aim_assist": "packet_client_camera_aim_assist", - "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_client_input_locks": "packet_update_client_input_locks", "update_client_options": "packet_update_client_options", - "player_video_capture": "packet_player_video_capture", - "player_update_entity_overrides": "packet_player_update_entity_overrides", - "player_location": "packet_player_location", - "clientbound_controls_scheme": "packet_clientbound_controls_scheme", - "server_script_debug_drawer": "packet_server_script_debug_drawer", - "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change", - "graphics_override_parameter": "packet_graphics_override_parameter" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -6252,7 +6252,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -6264,7 +6263,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -6300,9 +6300,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -6315,7 +6312,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -6403,14 +6403,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -6428,7 +6428,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -6442,7 +6441,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -6457,7 +6457,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -6470,7 +6470,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -6483,20 +6483,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -6505,7 +6501,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -6514,25 +6510,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -6541,7 +6557,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -6550,26 +6566,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -6588,22 +6594,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -6674,12 +6674,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -6712,13 +6712,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level", "3": "realms_upload" - } + }, + "type": "zigzag32" } ] }, @@ -6885,12 +6885,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -7244,13 +7244,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -7277,14 +7277,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -7337,14 +7337,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -7422,7 +7422,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -7627,7 +7626,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -7653,11 +7653,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -7679,7 +7679,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -7740,7 +7739,8 @@ "77": "vibration_detected", "78": "drink_milk", "79": "wetness_stop" - } + }, + "type": "u8" } ] }, @@ -7762,12 +7762,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -7881,13 +7881,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -7902,8 +7902,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -8058,11 +8058,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -8088,7 +8088,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -8098,7 +8097,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -8117,7 +8117,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -8126,7 +8126,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -8319,12 +8319,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -8403,34 +8403,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -8602,13 +8602,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -8626,7 +8626,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -8660,7 +8659,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -8690,13 +8690,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -8925,7 +8925,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -8936,7 +8935,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -8947,45 +8947,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "filtered_title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "query": [ "container", [ { @@ -8994,7 +8956,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -9025,9 +8987,21 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "filtered_title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -9054,6 +9028,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -9142,8 +9142,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -9265,7 +9265,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -9286,7 +9285,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -9295,13 +9295,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -9387,12 +9387,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -9413,28 +9413,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -9473,6 +9473,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -9485,12 +9494,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -9503,15 +9512,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -9559,13 +9559,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -9611,10 +9611,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -9722,7 +9722,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -9732,7 +9731,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -9835,7 +9835,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -9846,7 +9845,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -9950,12 +9950,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -10042,14 +10042,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -10064,23 +10064,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -10107,16 +10090,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -10136,6 +10123,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -10155,7 +10155,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -10164,7 +10163,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -10177,7 +10177,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -10186,7 +10185,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -10284,11 +10284,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -10377,11 +10377,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -10421,12 +10421,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -10437,8 +10437,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -10476,12 +10476,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -10523,12 +10523,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -10622,18 +10622,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -10644,11 +10644,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -10671,10 +10671,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -10716,12 +10716,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -10958,11 +10958,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -11027,13 +11027,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -11067,12 +11067,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -11272,11 +11272,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -11290,12 +11290,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -11339,7 +11339,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -11358,7 +11357,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -11376,11 +11376,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -11430,14 +11430,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -11446,7 +11446,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -11458,7 +11457,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -11467,12 +11467,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -11577,7 +11577,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -11590,7 +11590,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -11629,7 +11629,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -11671,7 +11671,6 @@ "InputFlag": [ "bitflags", { - "type": "varint128", "big": true, "flags": [ "ascend", @@ -11739,7 +11738,8 @@ "sneak_released_raw", "sneak_pressed_raw", "sneak_current_raw" - ] + ], + "type": "varint128" } ], "packet_creative_content": [ @@ -11759,7 +11759,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "all", "1": "construction", @@ -11767,7 +11766,8 @@ "3": "equipment", "4": "items", "5": "item_command_only" - } + }, + "type": "li32" } ] }, @@ -11874,14 +11874,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "helmet", "1": "chestplate", "2": "leggings", "3": "boots", "4": "body" - } + }, + "type": "u8" } ] }, @@ -11948,10 +11948,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -11969,12 +11969,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -12009,10 +12009,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -12021,12 +12021,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -12116,11 +12116,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -12149,11 +12149,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -12216,11 +12216,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -12231,7 +12231,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -12264,7 +12263,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -12342,13 +12342,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -12366,11 +12366,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -12467,14 +12467,14 @@ "HeightMapDataType": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low", "4": "all_copied" - } + }, + "type": "u8" } ], "SubChunkEntryWithoutCaching": [ @@ -12501,7 +12501,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12510,7 +12509,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12588,7 +12588,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12597,7 +12596,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12607,10 +12607,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -12686,8 +12686,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -12767,13 +12767,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -12782,12 +12782,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -12796,7 +12796,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -12804,7 +12803,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -12848,7 +12848,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -12856,7 +12855,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -12879,7 +12879,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -12900,7 +12899,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -12964,7 +12964,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -12985,7 +12984,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -12994,11 +12994,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -13032,17 +13032,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -13207,14 +13207,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -13256,15 +13256,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -13330,14 +13330,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -13632,11 +13632,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -13675,7 +13675,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -13684,7 +13683,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -13693,13 +13693,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -13712,13 +13712,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -13727,13 +13727,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -13757,11 +13757,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "varint" } ] } @@ -13770,7 +13770,6 @@ "Element": [ "mapper", { - "type": "varint", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -13785,7 +13784,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "varint" } ], "packet_award_achievement": [ @@ -13905,11 +13905,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "u8" } ] }, @@ -13918,11 +13918,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -13976,12 +13976,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "u8" } ] } @@ -14145,11 +14145,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "add_to_existing" - } + }, + "type": "u8" } ] } @@ -14167,11 +14167,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_from_camera_preset", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -14252,13 +14252,13 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "simple", "1": "fancy", "2": "advanced", "3": "ray_traced" - } + }, + "type": "u8" } ] ] @@ -14273,11 +14273,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "stop", "1": "start" - } + }, + "type": "u8" } ] }, @@ -14323,13 +14323,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "clear_all", "1": "remove", "2": "set_int", "3": "set_float" - } + }, + "type": "u8" } ] }, @@ -14340,8 +14340,8 @@ { "compareTo": "type", "fields": { - "set_int": "li32", - "set_float": "lf32" + "set_float": "lf32", + "set_int": "li32" } } ] @@ -14356,11 +14356,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "coordinates", "1": "type_hide" - } + }, + "type": "li32" } ] }, @@ -14390,14 +14390,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] } @@ -14426,7 +14426,6 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "line", "1": "box", @@ -14434,7 +14433,8 @@ "3": "circle", "4": "text", "5": "arrow" - } + }, + "type": "u8" } ] ] @@ -14544,12 +14544,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "float", "1": "bool", "2": "string" - } + }, + "type": "u8" } ] }, @@ -14560,8 +14560,8 @@ { "compareTo": "type", "fields": { - "float": "lf32", "bool": "bool", + "float": "lf32", "string": "string" } } diff --git a/data/bedrock/1.21.130/protocol.json b/data/bedrock/1.21.130/protocol.json index fd76f6c0f..6053330f7 100644 --- a/data/bedrock/1.21.130/protocol.json +++ b/data/bedrock/1.21.130/protocol.json @@ -160,7 +160,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -169,7 +168,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRuleI32": [ @@ -188,12 +188,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -205,8 +205,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "li32", - "float": "lf32" + "float": "lf32", + "int": "li32" } } ] @@ -229,12 +229,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -246,8 +246,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "varint", - "float": "lf32" + "float": "lf32", + "int": "varint" } } ] @@ -310,12 +310,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "data_driven", "2": "none" - } + }, + "type": "zigzag32" } ] }, @@ -335,11 +335,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -349,6 +349,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -363,8 +364,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -402,11 +402,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -416,6 +416,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -430,8 +431,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -470,9 +470,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -494,6 +491,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -502,19 +506,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -533,9 +533,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -557,10 +554,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -574,6 +571,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -582,19 +586,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -738,7 +738,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -875,7 +874,8 @@ "133": "bed_enter_position", "134": "seat_third_person_camera_radius", "135": "seat_camera_relax_distance_smoothing" - } + }, + "type": "varint" } ] }, @@ -884,7 +884,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -895,7 +894,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -905,29 +905,29 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2", - "seat_third_person_camera_radius": "lf32", - "seat_camera_relax_distance_smoothing": "lf32" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2", + "seat_camera_relax_distance_smoothing": "lf32", + "seat_third_person_camera_radius": "lf32" + } } ] } @@ -938,7 +938,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -1006,13 +1005,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1077,7 +1076,8 @@ "body_rotation_always_follows_head", "can_use_vertical_movement_action", "rotation_locked_to_vehicle" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1311,13 +1311,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block", "3": "attack" - } + }, + "type": "varint" } ] }, @@ -1326,12 +1326,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "varint" } ] }, @@ -1368,11 +1368,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "varint" } ] } @@ -1390,7 +1390,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1398,7 +1397,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1408,6 +1408,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1427,26 +1428,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1479,9 +1479,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1514,7 +1511,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1532,14 +1532,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1554,26 +1554,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1586,28 +1580,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1620,11 +1615,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1646,7 +1646,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1654,7 +1653,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1665,6 +1665,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1678,34 +1687,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1721,15 +1730,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1811,7 +1811,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1823,7 +1822,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1834,97 +1834,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" }, { - "name": "network_id", - "type": "varint" + "name": "block", + "type": "string" } ] ], - "shulker_box": [ + "multi": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] - }, - { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" - }, - { - "name": "block", - "type": "string" - }, - { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1932,20 +1885,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1971,6 +1938,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1981,7 +1952,7 @@ } ] ], - "shaped": [ + "shaped_chemistry": [ "container", [ { @@ -2048,34 +2019,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2101,10 +2058,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2115,50 +2068,97 @@ } ] ], - "furnace": [ + "shapeless_chemistry": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" + }, + { + "name": "priority", + "type": "zigzag32" + }, + { + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" + }, + { + "name": "network_id", + "type": "varint" } ] ], - "furnace_with_metadata": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "input_meta", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" + }, + { + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2244,13 +2244,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2464,11 +2464,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2638,7 +2638,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2678,7 +2677,8 @@ "35": "stop_flying", "36": "received_server_data", "37": "start_using_item" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2719,7 +2719,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2741,7 +2740,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2752,24 +2752,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2779,122 +2775,128 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", + "name": "recipe_network_id", + "type": "varint" + }, + { + "name": "times_crafted_2", "type": "u8" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "consume": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "create": [ + "destroy": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "beacon_payment": [ + "drop": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], @@ -2915,7 +2917,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2923,111 +2926,108 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -3055,7 +3055,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -3071,7 +3070,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3089,11 +3089,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3210,11 +3210,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3252,7 +3252,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3302,7 +3301,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3364,13 +3364,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3379,13 +3379,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3394,12 +3394,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3471,12 +3471,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3510,19 +3510,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3530,13 +3529,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3544,13 +3543,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3561,31 +3560,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3596,31 +3595,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3631,31 +3630,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } - } - ], - "WindowType": [ - "mapper", + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" + } + ], + "WindowType": [ + "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3694,15 +3693,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3769,13 +3768,13 @@ "62": "crafter", "63": "dynamic", "64": "registry" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4355,13 +4354,13 @@ "575": "ImitateCamelHusk", "576": "ItemSpearUse", "577": "ItemWoodenSpearUse" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4463,13 +4462,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4487,13 +4486,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4516,7 +4515,8 @@ "privileged_builder", "vertical_fly_speed", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4527,7 +4527,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4535,7 +4534,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4692,11 +4692,11 @@ [ "mapper", { - "type": "li32", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "li32" } ] ] @@ -4726,14 +4726,14 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] ] @@ -4799,7 +4799,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4923,7 +4922,8 @@ "119": "realms_timeline_required", "120": "guest_withough_host", "121": "failed_to_join_experience" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -4945,11 +4945,11 @@ "MovementEffectType": [ "mapper", { - "type": "varint", "mappings": { "0": "GLIDE_BOOST", "-1": "invalid" - } + }, + "type": "varint" } ], "BiomeDefinition": [ @@ -5375,7 +5375,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "xyz", "1": "xzy", @@ -5383,7 +5382,8 @@ "3": "yzx", "4": "zxy", "5": "zyx" - } + }, + "type": "zigzag32" } ] }, @@ -5445,7 +5445,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "single_valued", "1": "uniform", @@ -5454,7 +5453,8 @@ "4": "fixed_grid", "5": "jittered_grid", "6": "triangle" - } + }, + "type": "zigzag32" } ] } @@ -5633,7 +5633,6 @@ "EaseType": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -5667,17 +5666,18 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ], "CameraSplineEaseType": [ "mapper", { - "type": "u8", "mappings": { "0": "catmull_rom", "1": "linear" - } + }, + "type": "u8" } ], "ParameterKeyframeValue": [ @@ -5696,7 +5696,6 @@ "GraphicsOverrideParameterType": [ "mapper", { - "type": "u8", "mappings": { "0": "sky_zenith_color", "1": "sky_horizon_color", @@ -5708,7 +5707,8 @@ "7": "sun_mie_strength", "8": "moon_mie_strength", "9": "sun_glare_shape" - } + }, + "type": "u8" } ], "DebugMarkerData": [ @@ -5740,7 +5740,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -5968,7 +5967,8 @@ "330": "clientbound_data_store", "331": "graphics_override_parameter", "332": "serverbound_data_store" - } + }, + "type": "varint" } ] }, @@ -5979,232 +5979,232 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_aim_assist_presets": "packet_camera_aim_assist_presets", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_camera_aim_assist": "packet_client_camera_aim_assist", + "client_cheat_ability": "packet_client_cheat_ability", + "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_controls_scheme": "packet_clientbound_controls_scheme", + "clientbound_data_store": "packet_clientbound_data_store", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "graphics_override_parameter": "packet_graphics_override_parameter", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_registry": "packet_item_registry", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", "modal_form_request": "packet_modal_form_request", "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", + "move_player": "packet_move_player", + "movement_effect": "packet_movement_effect", + "multiplayer_settings": "packet_multiplayer_settings", "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_registry": "packet_item_registry", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_location": "packet_player_location", + "player_skin": "packet_player_skin", + "player_update_entity_overrides": "packet_player_update_entity_overrides", + "player_video_capture": "packet_player_video_capture", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", + "server_script_debug_drawer": "packet_server_script_debug_drawer", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "serverbound_data_store": "packet_serverbound_data_store", + "serverbound_diagnostics": "packet_serverbound_diagnostics", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_movement_authority": "packet_set_movement_authority", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", - "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup", - "movement_effect": "packet_movement_effect", - "set_movement_authority": "packet_set_movement_authority", - "camera_aim_assist_presets": "packet_camera_aim_assist_presets", - "client_camera_aim_assist": "packet_client_camera_aim_assist", - "client_movement_prediction_sync": "packet_client_movement_prediction_sync", "update_client_options": "packet_update_client_options", - "player_video_capture": "packet_player_video_capture", - "player_update_entity_overrides": "packet_player_update_entity_overrides", - "player_location": "packet_player_location", - "clientbound_controls_scheme": "packet_clientbound_controls_scheme", - "server_script_debug_drawer": "packet_server_script_debug_drawer", - "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change", - "clientbound_data_store": "packet_clientbound_data_store", - "graphics_override_parameter": "packet_graphics_override_parameter", - "serverbound_data_store": "packet_serverbound_data_store" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -6251,7 +6251,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -6263,7 +6262,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -6299,9 +6299,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -6314,7 +6311,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -6398,14 +6398,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -6427,12 +6427,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "message_only", "1": "authored", "2": "parameters" - } + }, + "type": "u8" } ] }, @@ -6443,48 +6443,48 @@ { "compareTo": "category", "fields": { - "message_only": [ + "authored": [ "container", [ { - "name": "raw", + "name": "chat", "type": "string" }, { - "name": "tip", + "name": "whisper", "type": "string" }, { - "name": "system_message", + "name": "announcement", "type": "string" - }, + } + ] + ], + "message_only": [ + "container", + [ { - "name": "text_object_whisper", + "name": "raw", "type": "string" }, { - "name": "text_object_announcement", + "name": "tip", "type": "string" }, { - "name": "text_object", + "name": "system_message", "type": "string" - } - ] - ], - "authored": [ - "container", - [ + }, { - "name": "chat", + "name": "text_object_whisper", "type": "string" }, { - "name": "whisper", + "name": "text_object_announcement", "type": "string" }, { - "name": "announcement", + "name": "text_object", "type": "string" } ] @@ -6515,7 +6515,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -6529,7 +6528,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -6540,32 +6540,6 @@ { "compareTo": "type", "fields": { - "chat": [ - "container", - [ - { - "name": "source_name", - "type": "string" - }, - { - "name": "message", - "type": "string" - } - ] - ], - "whisper": [ - "container", - [ - { - "name": "source_name", - "type": "string" - }, - { - "name": "message", - "type": "string" - } - ] - ], "announcement": [ "container", [ @@ -6579,34 +6553,20 @@ } ] ], - "raw": [ - "container", - [ - { - "name": "message", - "type": "string" - } - ] - ], - "tip": [ + "chat": [ "container", [ { - "name": "message", - "type": "string" - } - ] - ], - "system": [ - "container", - [ + "name": "source_name", + "type": "string" + }, { "name": "message", "type": "string" } ] ], - "json_whisper": [ + "json": [ "container", [ { @@ -6615,7 +6575,7 @@ } ] ], - "json": [ + "json_announcement": [ "container", [ { @@ -6624,7 +6584,7 @@ } ] ], - "json_announcement": [ + "json_whisper": [ "container", [ { @@ -6633,7 +6593,7 @@ } ] ], - "translation": [ + "jukebox_popup": [ "container", [ { @@ -6671,7 +6631,34 @@ } ] ], - "jukebox_popup": [ + "raw": [ + "container", + [ + { + "name": "message", + "type": "string" + } + ] + ], + "system": [ + "container", + [ + { + "name": "message", + "type": "string" + } + ] + ], + "tip": [ + "container", + [ + { + "name": "message", + "type": "string" + } + ] + ], + "translation": [ "container", [ { @@ -6689,6 +6676,19 @@ ] } ] + ], + "whisper": [ + "container", + [ + { + "name": "source_name", + "type": "string" + }, + { + "name": "message", + "type": "string" + } + ] ] } } @@ -6769,12 +6769,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -6807,13 +6807,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level", "3": "realms_upload" - } + }, + "type": "zigzag32" } ] }, @@ -6980,12 +6980,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -7335,13 +7335,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -7368,14 +7368,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -7428,14 +7428,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -7513,7 +7513,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -7718,7 +7717,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -7744,11 +7744,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -7770,7 +7770,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -7831,7 +7830,8 @@ "77": "vibration_detected", "78": "drink_milk", "79": "wetness_stop" - } + }, + "type": "u8" } ] }, @@ -7853,12 +7853,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -7976,13 +7976,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -8156,11 +8156,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -8186,7 +8186,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "swing_arm", @@ -8194,7 +8193,8 @@ "3": "wake_up", "4": "critical_hit", "5": "magic_critical_hit" - } + }, + "type": "u8" } ] }, @@ -8402,12 +8402,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -8486,34 +8486,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -8685,13 +8685,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -8709,7 +8709,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -8743,7 +8742,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -8773,13 +8773,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -9008,7 +9008,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -9019,7 +9018,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -9030,45 +9030,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "filtered_title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "query": [ "container", [ { @@ -9077,7 +9039,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -9108,9 +9070,21 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "filtered_title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -9137,6 +9111,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -9332,7 +9332,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -9353,7 +9352,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -9362,13 +9362,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -9454,12 +9454,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -9480,28 +9480,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -9540,6 +9540,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -9552,12 +9561,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -9570,15 +9579,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -9781,7 +9781,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -9791,7 +9790,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -9894,7 +9894,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -9905,7 +9904,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -10009,12 +10009,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -10101,14 +10101,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -10118,28 +10118,11 @@ }, { "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], + "type": [ + "switch", + { + "compareTo": "type", + "fields": { "add_page": [ "container", [ @@ -10166,16 +10149,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -10195,6 +10182,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -10214,7 +10214,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -10223,7 +10222,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -10236,7 +10236,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -10245,7 +10244,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -10343,11 +10343,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -10436,11 +10436,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -10480,12 +10480,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -10496,8 +10496,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -10535,12 +10535,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -10582,12 +10582,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -10681,18 +10681,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -10703,11 +10703,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -10730,10 +10730,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -10775,12 +10775,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -11017,11 +11017,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -11086,13 +11086,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -11126,12 +11126,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -11331,11 +11331,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -11349,12 +11349,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -11398,7 +11398,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -11417,7 +11416,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -11435,11 +11435,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -11489,14 +11489,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -11505,7 +11505,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -11517,7 +11516,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -11526,12 +11526,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -11636,7 +11636,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -11649,7 +11649,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -11688,7 +11688,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -11730,7 +11730,6 @@ "InputFlag": [ "bitflags", { - "type": "varint128", "big": true, "flags": [ "ascend", @@ -11798,7 +11797,8 @@ "sneak_released_raw", "sneak_pressed_raw", "sneak_current_raw" - ] + ], + "type": "varint128" } ], "packet_creative_content": [ @@ -11818,7 +11818,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "all", "1": "construction", @@ -11826,7 +11825,8 @@ "3": "equipment", "4": "items", "5": "item_command_only" - } + }, + "type": "li32" } ] }, @@ -11933,14 +11933,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "helmet", "1": "chestplate", "2": "leggings", "3": "boots", "4": "body" - } + }, + "type": "u8" } ] }, @@ -12007,10 +12007,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -12028,12 +12028,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -12068,10 +12068,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -12080,12 +12080,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -12175,11 +12175,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -12208,11 +12208,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -12363,13 +12363,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -12387,11 +12387,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -12488,14 +12488,14 @@ "HeightMapDataType": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low", "4": "all_copied" - } + }, + "type": "u8" } ], "SubChunkEntryWithoutCaching": [ @@ -12522,7 +12522,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12531,7 +12530,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12609,7 +12609,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12618,7 +12617,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12628,10 +12628,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -12707,8 +12707,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -12788,13 +12788,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -12803,12 +12803,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -12817,7 +12817,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -12825,7 +12824,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -12869,7 +12869,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -12877,7 +12876,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -12900,7 +12900,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -12921,7 +12920,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -12985,7 +12985,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -13006,7 +13005,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -13015,11 +13015,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -13053,17 +13053,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -13228,14 +13228,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -13277,15 +13277,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -13351,14 +13351,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -13653,11 +13653,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -13696,7 +13696,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -13705,7 +13704,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -13714,13 +13714,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -13733,13 +13733,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -13748,13 +13748,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -13778,11 +13778,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "varint" } ] } @@ -13791,7 +13791,6 @@ "Element": [ "mapper", { - "type": "varint", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -13806,7 +13805,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "varint" } ], "packet_award_achievement": [ @@ -13926,11 +13926,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "u8" } ] }, @@ -13939,11 +13939,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -13997,12 +13997,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "u8" } ] } @@ -14204,11 +14204,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "add_to_existing" - } + }, + "type": "u8" } ] } @@ -14226,11 +14226,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_from_camera_preset", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -14311,13 +14311,13 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "simple", "1": "fancy", "2": "advanced", "3": "ray_traced" - } + }, + "type": "u8" } ] ] @@ -14332,11 +14332,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "stop", "1": "start" - } + }, + "type": "u8" } ] }, @@ -14382,13 +14382,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "clear_all", "1": "remove", "2": "set_int", "3": "set_float" - } + }, + "type": "u8" } ] }, @@ -14399,8 +14399,8 @@ { "compareTo": "type", "fields": { - "set_int": "li32", - "set_float": "lf32" + "set_float": "lf32", + "set_int": "li32" } } ] @@ -14415,11 +14415,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "coordinates", "1": "type_hide" - } + }, + "type": "li32" } ] }, @@ -14449,14 +14449,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] } @@ -14485,7 +14485,6 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "line", "1": "box", @@ -14493,7 +14492,8 @@ "3": "circle", "4": "text", "5": "arrow" - } + }, + "type": "u8" } ] ] @@ -14603,12 +14603,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "float", "1": "bool", "2": "string" - } + }, + "type": "varint" } ] }, @@ -14619,8 +14619,8 @@ { "compareTo": "type", "fields": { - "float": "lf32", "bool": "bool", + "float": "lf32", "string": "string" } } @@ -14648,12 +14648,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "update", "1": "change", "2": "removal" - } + }, + "type": "varint" } ] }, @@ -14664,7 +14664,7 @@ { "compareTo": "type", "fields": { - "update": [ + "change": [ "container", [ { @@ -14676,20 +14676,20 @@ "type": "string" }, { - "name": "path", - "type": "string" + "name": "update_count", + "type": "varint" }, { "name": "data_type", "type": [ "mapper", { - "type": "varint", "mappings": { "0": "double", "1": "bool", "2": "string" - } + }, + "type": "varint" } ] }, @@ -14700,20 +14700,25 @@ { "compareTo": "data_type", "fields": { - "double": "lf64", "bool": "bool", + "double": "lf64", "string": "string" } } ] - }, + } + ] + ], + "removal": [ + "container", + [ { - "name": "update_count", - "type": "varint" + "name": "name", + "type": "string" } ] ], - "change": [ + "update": [ "container", [ { @@ -14725,20 +14730,20 @@ "type": "string" }, { - "name": "update_count", - "type": "varint" + "name": "path", + "type": "string" }, { "name": "data_type", "type": [ "mapper", { - "type": "varint", "mappings": { "0": "double", "1": "bool", "2": "string" - } + }, + "type": "varint" } ] }, @@ -14749,21 +14754,16 @@ { "compareTo": "data_type", "fields": { - "double": "lf64", "bool": "bool", + "double": "lf64", "string": "string" } } ] - } - ] - ], - "removal": [ - "container", - [ + }, { - "name": "name", - "type": "string" + "name": "update_count", + "type": "varint" } ] ] @@ -14825,12 +14825,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "double", "1": "bool", "2": "string" - } + }, + "type": "varint" } ] }, @@ -14841,8 +14841,8 @@ { "compareTo": "data_type", "fields": { - "double": "lf64", "bool": "bool", + "double": "lf64", "string": "string" } } diff --git a/data/bedrock/1.21.2/protocol.json b/data/bedrock/1.21.2/protocol.json index 851cab9df..35735097d 100644 --- a/data/bedrock/1.21.2/protocol.json +++ b/data/bedrock/1.21.2/protocol.json @@ -191,7 +191,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -200,7 +199,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -219,12 +219,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -236,8 +236,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -314,11 +314,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -328,6 +328,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -342,8 +343,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -381,11 +381,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -395,6 +395,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -409,8 +410,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -449,9 +449,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -473,6 +470,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -481,19 +485,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -512,9 +512,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -536,10 +533,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -553,6 +550,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -561,19 +565,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -717,7 +717,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -850,7 +849,8 @@ "129": "player_has_died", "130": "collision_box", "131": "visible_mob_effects" - } + }, + "type": "varint" } ] }, @@ -859,7 +859,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -870,7 +869,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -880,27 +880,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -911,7 +911,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -979,13 +978,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1042,7 +1041,8 @@ "timer_flag_2", "timer_flag_3", "body_rotation_blocked" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1264,12 +1264,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1315,7 +1315,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1323,7 +1322,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1333,6 +1333,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1352,26 +1353,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1404,9 +1404,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1439,7 +1436,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1457,14 +1457,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1479,26 +1479,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1511,28 +1505,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1545,11 +1540,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1571,7 +1571,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1579,7 +1578,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1590,6 +1590,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1603,34 +1612,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1646,15 +1655,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1736,7 +1736,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1748,7 +1747,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1759,48 +1759,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "multi": [ + "container", + [ + { + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1808,20 +1810,34 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1847,6 +1863,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1857,20 +1877,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1896,6 +1930,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1906,34 +1944,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1959,10 +1983,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1973,34 +1993,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2026,10 +2032,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2040,50 +2042,48 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" }, { - "name": "input_meta", + "name": "priority", "type": "zigzag32" }, { - "name": "output", - "type": "ItemLegacy" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "multi": [ - "container", - [ - { - "name": "uuid", - "type": "uuid" + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2169,13 +2169,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2389,11 +2389,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2559,7 +2559,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2598,7 +2597,8 @@ "34": "start_flying", "35": "stop_flying", "36": "received_server_data" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2639,7 +2639,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2661,7 +2660,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2672,24 +2672,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2699,74 +2695,78 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "pattern", + "type": "string" + } + ] + ], + "craft_recipe": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] + } + ] + ], + "create": [ + "container", + [ + { + "name": "result_slot_id", + "type": "u8" } ] ], @@ -2783,7 +2783,7 @@ } ] ], - "consume": [ + "drop": [ "container", [ { @@ -2793,32 +2793,14 @@ { "name": "source", "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], - "create": [ - "container", - [ - { - "name": "result_slot_id", - "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ - { - "name": "primary_effect", - "type": "zigzag32" - }, - { - "name": "secondary_effect", - "type": "zigzag32" - } - ] - ], - "mine_block": [ + "mine_block": [ "container", [ { @@ -2835,99 +2817,117 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { "name": "recipe_network_id", "type": "varint" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2955,7 +2955,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2971,7 +2970,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -2989,11 +2989,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3104,7 +3104,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3122,7 +3121,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3173,11 +3173,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3215,7 +3215,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3265,7 +3264,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3327,13 +3327,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3342,13 +3342,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3357,12 +3357,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3434,12 +3434,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3473,19 +3473,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3493,13 +3492,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3507,13 +3506,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3524,31 +3523,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3559,31 +3558,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3594,31 +3593,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3657,15 +3656,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3730,13 +3729,13 @@ "60": "creative_output", "61": "smithing_table_template", "62": "crafter" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4268,13 +4267,13 @@ "527": "record_creator", "528": "record_creator_music_box", "529": "record_precipice" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4376,13 +4375,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4400,13 +4399,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4428,7 +4427,8 @@ "no_clip", "privileged_builder", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4439,14 +4439,14 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", "2": "spectator", "3": "commands", "4": "editor" - } + }, + "type": "lu16" } ] }, @@ -4506,7 +4506,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4623,7 +4622,8 @@ "112": "service_sign_in_issue", "113": "conn_no_signaling_channel", "114": "conn_not_logged_in" - } + }, + "type": "zigzag32" } ], "mcpe_packet": [ @@ -4634,7 +4634,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4841,7 +4840,8 @@ "308": "set_hud", "309": "award_achievement", "310": "clientbound_close_form" - } + }, + "type": "varint" } ] }, @@ -4852,211 +4852,211 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", - "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "subchunk_request": "packet_subchunk_request", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -5103,7 +5103,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -5115,7 +5114,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -5243,14 +5243,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -5268,7 +5268,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -5282,7 +5281,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -5297,7 +5297,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -5310,7 +5310,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -5323,20 +5323,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -5345,7 +5341,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -5354,25 +5350,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -5381,7 +5397,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -5390,26 +5406,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -5428,22 +5434,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5514,12 +5514,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5552,12 +5552,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level" - } + }, + "type": "zigzag32" } ] }, @@ -5718,12 +5718,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5764,12 +5764,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -6087,13 +6087,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -6120,14 +6120,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -6180,14 +6180,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -6265,7 +6265,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -6462,7 +6461,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -6488,11 +6488,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -6514,7 +6514,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6574,7 +6573,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6596,12 +6596,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6711,13 +6711,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6732,8 +6732,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6888,11 +6888,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -6918,7 +6918,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -6928,7 +6927,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -6943,7 +6943,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -6952,7 +6952,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -7129,12 +7129,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -7213,34 +7213,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -7405,13 +7405,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -7429,7 +7429,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -7463,7 +7462,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -7493,13 +7493,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7722,7 +7722,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7733,7 +7732,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -7744,28 +7744,12 @@ { "compareTo": "type", "fields": { - "show_bar": [ + "query": [ "container", [ { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" + "name": "player_id", + "type": "zigzag64" } ] ], @@ -7778,39 +7762,68 @@ } ] ], - "unregister_player": [ + "set_bar_progress": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "progress", + "type": "lf32" } ] ], - "query": [ + "set_bar_title": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "title", + "type": "string" } ] ], - "set_bar_progress": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, { "name": "progress", "type": "lf32" + }, + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] + ], + "texture": [ + "container", + [ + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" } ] ], - "set_bar_title": [ + "unregister_player": [ "container", [ { - "name": "title", - "type": "string" + "name": "player_id", + "type": "zigzag64" } ] ], @@ -7830,19 +7843,6 @@ "type": "varint" } ] - ], - "texture": [ - "container", - [ - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] ] } } @@ -7931,8 +7931,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -8054,7 +8054,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -8075,7 +8074,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -8084,13 +8084,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -8176,12 +8176,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -8202,28 +8202,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -8262,6 +8262,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -8274,12 +8283,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -8292,15 +8301,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -8344,13 +8344,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -8396,10 +8396,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -8507,7 +8507,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -8517,7 +8516,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -8612,7 +8612,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8623,7 +8622,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8719,12 +8719,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -8811,14 +8811,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8833,23 +8833,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -8876,16 +8859,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -8905,6 +8892,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -8924,7 +8924,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8933,7 +8932,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -8946,7 +8946,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -8955,7 +8954,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9053,11 +9053,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -9146,11 +9146,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -9190,12 +9190,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -9206,8 +9206,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -9245,12 +9245,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -9292,12 +9292,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -9391,18 +9391,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -9413,11 +9413,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -9440,10 +9440,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -9485,12 +9485,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9707,11 +9707,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9776,13 +9776,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9816,12 +9816,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -10017,11 +10017,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -10035,12 +10035,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -10084,7 +10084,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -10103,7 +10102,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -10121,11 +10121,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -10175,14 +10175,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -10191,7 +10191,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -10203,7 +10202,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -10212,12 +10212,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -10330,7 +10330,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -10343,7 +10343,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -10382,7 +10382,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -10416,7 +10416,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -10468,7 +10467,8 @@ "paddling_left", "paddling_right", "block_breaking_delay_enabled" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -10597,13 +10597,13 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, "chest": 2, - "legs": 4, - "feet": 8 - } + "feet": 8, + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -10663,10 +10663,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -10684,12 +10684,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -10724,10 +10724,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -10736,12 +10736,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10831,11 +10831,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -10864,11 +10864,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -10932,11 +10932,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -10947,7 +10947,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -10980,7 +10979,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -11058,13 +11058,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -11082,11 +11082,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -11204,7 +11204,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11213,7 +11212,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11226,13 +11226,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11281,7 +11281,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11290,7 +11289,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11300,10 +11300,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -11312,13 +11312,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11369,8 +11369,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -11450,13 +11450,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -11465,12 +11465,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -11479,7 +11479,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -11487,7 +11486,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -11531,7 +11531,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -11539,7 +11538,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -11562,7 +11562,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -11583,7 +11582,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -11647,7 +11647,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -11668,7 +11667,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -11677,11 +11677,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -11715,17 +11715,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -11886,14 +11886,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -11935,15 +11935,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -12009,14 +12009,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -12058,7 +12058,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -12092,7 +12091,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ] }, @@ -12255,11 +12255,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -12298,7 +12298,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -12307,7 +12306,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -12316,13 +12316,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -12335,13 +12335,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -12350,13 +12350,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -12380,11 +12380,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "u8" } ] } @@ -12393,7 +12393,6 @@ "Element": [ "mapper", { - "type": "u8", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -12408,7 +12407,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "u8" } ], "packet_award_achievement": [ diff --git a/data/bedrock/1.21.20/protocol.json b/data/bedrock/1.21.20/protocol.json index 6671889ff..429c07e50 100644 --- a/data/bedrock/1.21.20/protocol.json +++ b/data/bedrock/1.21.20/protocol.json @@ -199,7 +199,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -208,7 +207,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -227,12 +227,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -244,8 +244,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -322,11 +322,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -336,6 +336,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -350,8 +351,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -389,11 +389,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -403,6 +403,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -417,8 +418,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -457,9 +457,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -481,6 +478,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -489,19 +493,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -520,9 +520,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -544,10 +541,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -561,6 +558,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -569,19 +573,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -725,7 +725,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -858,7 +857,8 @@ "129": "player_has_died", "130": "collision_box", "131": "visible_mob_effects" - } + }, + "type": "varint" } ] }, @@ -867,7 +867,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -878,7 +877,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -888,27 +888,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -919,7 +919,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -987,13 +986,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1050,7 +1049,8 @@ "timer_flag_2", "timer_flag_3", "body_rotation_blocked" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1276,12 +1276,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1290,12 +1290,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "varint" } ] }, @@ -1332,11 +1332,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "varint" } ] } @@ -1354,7 +1354,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1362,7 +1361,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1372,6 +1372,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1391,26 +1392,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1443,9 +1443,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1478,7 +1475,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1496,14 +1496,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1518,26 +1518,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1550,28 +1544,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1584,11 +1579,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1610,7 +1610,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1618,7 +1617,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1629,6 +1629,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1642,34 +1651,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1685,15 +1694,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1775,7 +1775,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1787,7 +1786,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1798,48 +1798,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "multi": [ + "container", + [ + { + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1847,7 +1849,7 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { @@ -1855,12 +1857,26 @@ "type": "LatinString" }, { - "name": "input", - "type": [ - "array", + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, + { + "name": "input", + "type": [ + "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1886,6 +1902,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1896,20 +1916,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1935,6 +1969,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1945,34 +1983,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1998,10 +2022,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2012,34 +2032,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2065,10 +2071,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2079,50 +2081,48 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" }, { - "name": "input_meta", + "name": "priority", "type": "zigzag32" }, { - "name": "output", - "type": "ItemLegacy" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "multi": [ - "container", - [ - { - "name": "uuid", - "type": "uuid" + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2208,13 +2208,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2428,11 +2428,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2598,7 +2598,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2637,7 +2636,8 @@ "34": "start_flying", "35": "stop_flying", "36": "received_server_data" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2678,7 +2678,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2700,7 +2699,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2711,24 +2711,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2738,91 +2734,94 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "cost", + "type": "varint" + } + ] + ], + "craft_loom_request": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" } ] ], - "swap": [ + "craft_recipe": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", + "name": "recipe_network_id", + "type": "varint" + }, + { + "name": "times_crafted_2", "type": "u8" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2835,25 +2834,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2874,7 +2868,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2884,105 +2879,110 @@ { "name": "times_crafted", "type": "u8" + }, + { + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { "name": "times_crafted", "type": "u8" - }, - { - "name": "filtered_string_index", - "type": "li32" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -3010,7 +3010,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -3026,7 +3025,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3044,11 +3044,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3159,7 +3159,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3177,7 +3176,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3228,11 +3228,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3270,7 +3270,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3320,7 +3319,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3382,13 +3382,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3397,13 +3397,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3412,12 +3412,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3489,12 +3489,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3528,19 +3528,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3548,13 +3547,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3562,13 +3561,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3579,31 +3578,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3614,31 +3613,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3649,31 +3648,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3712,15 +3711,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3786,13 +3785,13 @@ "61": "smithing_table_template", "62": "crafter", "63": "dynamic" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4324,13 +4323,13 @@ "527": "record_creator", "528": "record_creator_music_box", "529": "record_precipice" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4432,13 +4431,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4456,13 +4455,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4484,7 +4483,8 @@ "no_clip", "privileged_builder", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4495,7 +4495,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4503,7 +4502,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4577,7 +4577,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4695,7 +4694,8 @@ "113": "conn_no_signaling_channel", "114": "conn_not_logged_in", "115": "conn_client_signalling_error" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -4719,7 +4719,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4930,7 +4929,8 @@ "313": "jigsaw_structure_data", "314": "current_structure_feature", "315": "serverbound_diagnostics" - } + }, + "type": "varint" } ] }, @@ -4941,215 +4941,215 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "serverbound_diagnostics": "packet_serverbound_diagnostics", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", - "serverbound_diagnostics": "packet_serverbound_diagnostics" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -5196,7 +5196,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -5208,7 +5207,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -5244,9 +5244,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -5259,7 +5256,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -5357,14 +5357,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -5382,7 +5382,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -5396,7 +5395,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -5411,7 +5411,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -5424,7 +5424,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -5437,20 +5437,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -5459,7 +5455,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -5468,25 +5464,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -5495,7 +5511,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -5504,26 +5520,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -5542,22 +5548,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5628,12 +5628,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5666,12 +5666,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level" - } + }, + "type": "zigzag32" } ] }, @@ -5832,12 +5832,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5878,12 +5878,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -6201,13 +6201,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -6234,14 +6234,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -6294,14 +6294,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -6379,7 +6379,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -6576,7 +6575,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -6602,11 +6602,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -6628,7 +6628,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6688,7 +6687,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6710,12 +6710,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6829,13 +6829,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6850,8 +6850,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -7006,11 +7006,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -7036,7 +7036,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -7046,7 +7045,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -7061,7 +7061,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -7070,7 +7070,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -7255,12 +7255,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -7339,34 +7339,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -7538,13 +7538,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -7562,7 +7562,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -7596,7 +7595,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -7626,13 +7626,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7855,7 +7855,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7866,7 +7865,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -7877,28 +7877,12 @@ { "compareTo": "type", "fields": { - "show_bar": [ + "query": [ "container", [ { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" + "name": "player_id", + "type": "zigzag64" } ] ], @@ -7911,39 +7895,68 @@ } ] ], - "unregister_player": [ + "set_bar_progress": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "progress", + "type": "lf32" } ] ], - "query": [ + "set_bar_title": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "title", + "type": "string" } ] ], - "set_bar_progress": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, { "name": "progress", "type": "lf32" + }, + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] + ], + "texture": [ + "container", + [ + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" } ] ], - "set_bar_title": [ + "unregister_player": [ "container", [ { - "name": "title", - "type": "string" + "name": "player_id", + "type": "zigzag64" } ] ], @@ -7963,19 +7976,6 @@ "type": "varint" } ] - ], - "texture": [ - "container", - [ - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] ] } } @@ -8064,8 +8064,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -8187,7 +8187,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -8208,7 +8207,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -8217,13 +8217,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -8309,12 +8309,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -8335,28 +8335,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -8395,6 +8395,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -8407,12 +8416,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -8425,15 +8434,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -8477,13 +8477,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -8529,10 +8529,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -8640,7 +8640,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -8650,7 +8649,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -8749,7 +8749,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8760,7 +8759,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8860,12 +8860,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -8952,14 +8952,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8974,23 +8974,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -9017,16 +9000,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -9046,6 +9033,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -9065,7 +9065,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9074,7 +9073,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9087,7 +9087,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9096,7 +9095,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9194,11 +9194,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -9287,11 +9287,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -9331,12 +9331,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -9347,8 +9347,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -9386,12 +9386,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -9433,12 +9433,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -9532,18 +9532,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -9554,11 +9554,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -9581,10 +9581,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -9626,12 +9626,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9848,11 +9848,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9917,13 +9917,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9957,12 +9957,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -10158,11 +10158,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -10176,12 +10176,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -10225,7 +10225,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -10244,7 +10243,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -10262,11 +10262,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -10316,14 +10316,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -10332,7 +10332,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -10344,7 +10343,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -10353,12 +10353,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -10471,7 +10471,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -10484,7 +10484,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -10523,7 +10523,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -10557,7 +10557,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -10609,7 +10608,8 @@ "paddling_left", "paddling_right", "block_breaking_delay_enabled" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -10750,14 +10750,14 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, + "body": 16, "chest": 2, - "legs": 4, "feet": 8, - "body": 16 - } + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -10817,10 +10817,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -10838,12 +10838,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -10878,10 +10878,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -10890,12 +10890,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10985,11 +10985,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -11018,11 +11018,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -11101,11 +11101,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -11116,7 +11116,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -11149,7 +11148,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -11227,13 +11227,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -11251,11 +11251,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -11373,7 +11373,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11382,7 +11381,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11395,13 +11395,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11450,7 +11450,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11459,7 +11458,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11469,10 +11469,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -11481,13 +11481,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11538,8 +11538,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -11619,13 +11619,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -11634,12 +11634,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -11648,7 +11648,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -11656,7 +11655,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -11700,7 +11700,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -11708,7 +11707,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -11731,7 +11731,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -11752,7 +11751,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -11816,7 +11816,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -11837,7 +11836,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -11846,11 +11846,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -11884,17 +11884,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -12059,14 +12059,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -12108,15 +12108,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -12182,14 +12182,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -12231,7 +12231,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -12265,7 +12264,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ] }, @@ -12464,11 +12464,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -12507,7 +12507,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -12516,7 +12515,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -12525,13 +12525,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -12544,13 +12544,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -12559,13 +12559,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -12589,11 +12589,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "u8" } ] } @@ -12602,7 +12602,6 @@ "Element": [ "mapper", { - "type": "u8", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -12617,7 +12616,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "u8" } ], "packet_award_achievement": [ diff --git a/data/bedrock/1.21.30/protocol.json b/data/bedrock/1.21.30/protocol.json index 55a33cd74..a7258810c 100644 --- a/data/bedrock/1.21.30/protocol.json +++ b/data/bedrock/1.21.30/protocol.json @@ -156,7 +156,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -165,7 +164,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -184,12 +184,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -201,8 +201,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -279,11 +279,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -293,6 +293,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -307,8 +308,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -346,11 +346,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -360,6 +360,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -374,8 +375,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -414,9 +414,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -438,6 +435,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -446,19 +450,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -477,9 +477,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -501,10 +498,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -518,6 +515,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -526,19 +530,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -682,7 +682,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -815,7 +814,8 @@ "129": "player_has_died", "130": "collision_box", "131": "visible_mob_effects" - } + }, + "type": "varint" } ] }, @@ -824,7 +824,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -835,7 +834,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -845,27 +845,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -876,7 +876,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -944,13 +943,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1007,7 +1006,8 @@ "timer_flag_2", "timer_flag_3", "body_rotation_blocked" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1241,12 +1241,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1255,12 +1255,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "varint" } ] }, @@ -1297,11 +1297,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "varint" } ] } @@ -1319,7 +1319,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1327,7 +1326,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1337,6 +1337,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1356,26 +1357,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1408,9 +1408,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1443,7 +1440,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1461,14 +1461,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1483,26 +1483,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1515,28 +1509,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1549,11 +1544,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1575,7 +1575,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1583,7 +1582,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1594,6 +1594,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1607,34 +1616,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1650,15 +1659,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1740,7 +1740,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1752,7 +1751,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1763,48 +1763,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "multi": [ + "container", + [ + { + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1812,7 +1814,7 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { @@ -1820,12 +1822,26 @@ "type": "LatinString" }, { - "name": "input", - "type": [ - "array", + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, + { + "name": "input", + "type": [ + "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1851,6 +1867,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1861,20 +1881,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1900,6 +1934,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1910,34 +1948,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1963,10 +1987,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1977,34 +1997,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2030,10 +2036,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2044,50 +2046,48 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" }, { - "name": "input_meta", + "name": "priority", "type": "zigzag32" }, { - "name": "output", - "type": "ItemLegacy" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "multi": [ - "container", - [ - { - "name": "uuid", - "type": "uuid" + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2173,13 +2173,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2393,11 +2393,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2563,7 +2563,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2602,7 +2601,8 @@ "34": "start_flying", "35": "stop_flying", "36": "received_server_data" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2643,7 +2643,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2665,7 +2664,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2676,24 +2676,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2703,91 +2699,94 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "cost", + "type": "varint" + } + ] + ], + "craft_loom_request": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" } ] ], - "swap": [ + "craft_recipe": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", + "name": "recipe_network_id", + "type": "varint" + }, + { + "name": "times_crafted_2", "type": "u8" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2800,25 +2799,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2839,7 +2833,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2847,103 +2842,108 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2971,7 +2971,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2987,7 +2986,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3005,11 +3005,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3120,7 +3120,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3138,7 +3137,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3189,11 +3189,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3231,7 +3231,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3281,7 +3280,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3343,13 +3343,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3358,13 +3358,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3373,12 +3373,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3450,12 +3450,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3489,19 +3489,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3509,13 +3508,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3523,13 +3522,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3540,31 +3539,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3575,31 +3574,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3610,31 +3609,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3673,15 +3672,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3747,13 +3746,13 @@ "61": "smithing_table_template", "62": "crafter", "63": "dynamic" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4287,13 +4286,13 @@ "529": "record_creator", "530": "record_creator_music_box", "531": "record_precipice" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4395,13 +4394,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4419,13 +4418,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4447,7 +4446,8 @@ "no_clip", "privileged_builder", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4458,7 +4458,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4466,7 +4465,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4561,7 +4561,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4681,7 +4680,8 @@ "115": "conn_client_signalling_error", "116": "sub_client_login_disabled", "117": "deep_link_trying_to_open_demo_world_while_signed_in" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -4708,7 +4708,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4921,7 +4920,8 @@ "315": "serverbound_diagnostics", "316": "camera_aim_assist", "317": "container_registry_cleanup" - } + }, + "type": "varint" } ] }, @@ -4932,217 +4932,217 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "serverbound_diagnostics": "packet_serverbound_diagnostics", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", - "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -5189,7 +5189,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -5201,7 +5200,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -5237,9 +5237,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -5252,7 +5249,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -5342,14 +5342,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -5367,7 +5367,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -5381,7 +5380,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -5396,7 +5396,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -5409,7 +5409,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -5422,20 +5422,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -5444,7 +5440,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -5453,25 +5449,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -5480,7 +5496,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -5489,26 +5505,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -5527,22 +5533,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5613,12 +5613,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5651,12 +5651,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level" - } + }, + "type": "zigzag32" } ] }, @@ -5817,12 +5817,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5863,12 +5863,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -6186,13 +6186,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -6219,14 +6219,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -6279,14 +6279,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -6364,7 +6364,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -6561,7 +6560,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -6587,11 +6587,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -6613,7 +6613,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6673,7 +6672,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6695,12 +6695,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6814,13 +6814,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6835,8 +6835,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -6991,11 +6991,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -7021,7 +7021,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -7031,7 +7030,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -7046,7 +7046,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -7055,7 +7055,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -7248,12 +7248,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -7332,34 +7332,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -7531,13 +7531,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -7555,7 +7555,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -7589,7 +7588,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -7619,13 +7619,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7848,7 +7848,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7859,7 +7858,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -7870,28 +7870,12 @@ { "compareTo": "type", "fields": { - "show_bar": [ + "query": [ "container", [ { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" + "name": "player_id", + "type": "zigzag64" } ] ], @@ -7904,39 +7888,68 @@ } ] ], - "unregister_player": [ + "set_bar_progress": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "progress", + "type": "lf32" } ] ], - "query": [ + "set_bar_title": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "title", + "type": "string" } ] ], - "set_bar_progress": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, { "name": "progress", "type": "lf32" + }, + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] + ], + "texture": [ + "container", + [ + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" } ] ], - "set_bar_title": [ + "unregister_player": [ "container", [ { - "name": "title", - "type": "string" + "name": "player_id", + "type": "zigzag64" } ] ], @@ -7956,19 +7969,6 @@ "type": "varint" } ] - ], - "texture": [ - "container", - [ - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] ] } } @@ -8057,8 +8057,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -8180,7 +8180,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -8201,7 +8200,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -8210,13 +8210,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -8302,12 +8302,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -8328,28 +8328,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -8388,6 +8388,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -8400,12 +8409,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -8418,15 +8427,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -8470,13 +8470,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -8522,10 +8522,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -8633,7 +8633,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -8643,7 +8642,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -8746,7 +8746,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8757,7 +8756,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8857,12 +8857,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -8949,14 +8949,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8971,23 +8971,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -9014,16 +8997,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -9043,6 +9030,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -9062,7 +9062,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9071,7 +9070,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9084,7 +9084,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9093,7 +9092,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9191,11 +9191,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -9284,11 +9284,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -9328,12 +9328,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -9344,8 +9344,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -9383,12 +9383,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -9430,12 +9430,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -9529,18 +9529,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -9551,11 +9551,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -9578,10 +9578,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -9623,12 +9623,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9845,11 +9845,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9914,13 +9914,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9954,12 +9954,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -10159,11 +10159,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -10177,12 +10177,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -10226,7 +10226,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -10245,7 +10244,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -10263,11 +10263,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -10317,14 +10317,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -10333,7 +10333,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -10345,7 +10344,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -10354,12 +10354,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -10472,7 +10472,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -10485,7 +10485,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -10524,7 +10524,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -10558,7 +10558,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -10614,7 +10613,8 @@ "vertical_collision", "down_left", "down_right" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -10755,14 +10755,14 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, + "body": 16, "chest": 2, - "legs": 4, "feet": 8, - "body": 16 - } + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -10822,10 +10822,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -10843,12 +10843,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -10883,10 +10883,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -10895,12 +10895,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -10990,11 +10990,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -11023,11 +11023,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -11106,11 +11106,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -11121,7 +11121,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -11154,7 +11153,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -11232,13 +11232,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -11256,11 +11256,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -11378,7 +11378,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11387,7 +11386,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11400,13 +11400,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11455,7 +11455,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11464,7 +11463,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11474,10 +11474,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -11486,13 +11486,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11543,8 +11543,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -11624,13 +11624,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -11639,12 +11639,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -11653,7 +11653,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -11661,7 +11660,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -11705,7 +11705,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -11713,7 +11712,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -11736,7 +11736,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -11757,7 +11756,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -11821,7 +11821,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -11842,7 +11841,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -11851,11 +11851,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -11889,17 +11889,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -12064,14 +12064,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -12113,15 +12113,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -12187,14 +12187,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -12236,7 +12236,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -12270,7 +12269,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ] }, @@ -12469,11 +12469,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -12512,7 +12512,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -12521,7 +12520,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -12530,13 +12530,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -12549,13 +12549,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -12564,13 +12564,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -12594,11 +12594,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "u8" } ] } @@ -12607,7 +12607,6 @@ "Element": [ "mapper", { - "type": "u8", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -12622,7 +12621,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "u8" } ], "packet_award_achievement": [ diff --git a/data/bedrock/1.21.42/protocol.json b/data/bedrock/1.21.42/protocol.json index 78cff789c..0e77121e3 100644 --- a/data/bedrock/1.21.42/protocol.json +++ b/data/bedrock/1.21.42/protocol.json @@ -160,7 +160,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -169,7 +168,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -188,12 +188,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -205,8 +205,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -283,11 +283,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -297,6 +297,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -311,8 +312,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -350,11 +350,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -364,6 +364,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -378,8 +379,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -418,9 +418,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -442,6 +439,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -450,19 +454,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -481,9 +481,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -505,10 +502,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -522,6 +519,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -530,19 +534,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -686,7 +686,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -819,7 +818,8 @@ "129": "player_has_died", "130": "collision_box", "131": "visible_mob_effects" - } + }, + "type": "varint" } ] }, @@ -828,7 +828,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -839,7 +838,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -849,27 +849,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -880,7 +880,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -948,13 +947,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1011,7 +1010,8 @@ "timer_flag_2", "timer_flag_3", "body_rotation_blocked" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1245,12 +1245,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1259,12 +1259,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "varint" } ] }, @@ -1301,11 +1301,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "varint" } ] } @@ -1323,7 +1323,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1331,7 +1330,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1341,6 +1341,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1360,26 +1361,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1412,9 +1412,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1447,7 +1444,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1465,14 +1465,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1487,26 +1487,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1519,28 +1513,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1553,11 +1548,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1579,7 +1579,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1587,7 +1586,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1598,6 +1598,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1611,34 +1620,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1654,15 +1663,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1744,7 +1744,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1756,7 +1755,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1767,48 +1767,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "multi": [ + "container", + [ + { + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1816,7 +1818,7 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { @@ -1824,12 +1826,26 @@ "type": "LatinString" }, { - "name": "input", - "type": [ - "array", + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, + { + "name": "input", + "type": [ + "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1855,6 +1871,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1865,20 +1885,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1904,6 +1938,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1914,34 +1952,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1967,10 +1991,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1981,34 +2001,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2034,10 +2040,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2048,50 +2050,48 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" }, { - "name": "input_meta", + "name": "priority", "type": "zigzag32" }, { - "name": "output", - "type": "ItemLegacy" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "multi": [ - "container", - [ - { - "name": "uuid", - "type": "uuid" + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2177,13 +2177,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2397,11 +2397,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2567,7 +2567,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2607,7 +2606,8 @@ "35": "stop_flying", "36": "received_server_data", "37": "start_using_item" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2648,7 +2648,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2670,7 +2669,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2681,24 +2681,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2708,91 +2704,94 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" - }, + "name": "cost", + "type": "varint" + } + ] + ], + "craft_loom_request": [ + "container", + [ { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" } ] ], - "swap": [ + "craft_recipe": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", + "name": "recipe_network_id", + "type": "varint" + }, + { + "name": "times_crafted_2", "type": "u8" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "destroy": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "consume": [ + "destroy": [ "container", [ { @@ -2805,25 +2804,20 @@ } ] ], - "create": [ + "drop": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "randomly", + "type": "bool" } ] ], @@ -2844,7 +2838,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2852,103 +2847,108 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2976,7 +2976,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2992,7 +2991,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3010,11 +3010,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3125,7 +3125,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3143,7 +3142,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3194,11 +3194,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3236,7 +3236,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3286,7 +3285,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3348,13 +3348,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3363,13 +3363,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3378,12 +3378,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3455,12 +3455,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3494,19 +3494,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3514,13 +3513,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3528,13 +3527,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3545,31 +3544,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3580,31 +3579,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3615,31 +3614,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3678,15 +3677,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3752,13 +3751,13 @@ "61": "smithing_table_template", "62": "crafter", "63": "dynamic" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4292,13 +4291,13 @@ "529": "record_creator", "530": "record_creator_music_box", "531": "record_precipice" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4400,13 +4399,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4424,13 +4423,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4452,7 +4451,8 @@ "no_clip", "privileged_builder", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4463,7 +4463,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4471,7 +4470,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4594,7 +4594,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4714,7 +4713,8 @@ "115": "conn_client_signalling_error", "116": "sub_client_login_disabled", "117": "deep_link_trying_to_open_demo_world_while_signed_in" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -4736,11 +4736,11 @@ "MovementEffectType": [ "mapper", { - "type": "varint", "mappings": { "0": "GLIDE_BOOST", "-1": "invalid" - } + }, + "type": "varint" } ], "mcpe_packet": [ @@ -4751,7 +4751,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -4966,7 +4965,8 @@ "317": "container_registry_cleanup", "318": "movement_effect", "319": "set_movement_authority" - } + }, + "type": "varint" } ] }, @@ -4977,219 +4977,219 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "movement_effect": "packet_movement_effect", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", - "subchunk": "packet_subchunk", - "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", - "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_network_settings": "packet_request_network_settings", "request_permissions": "packet_request_permissions", - "toast_request": "packet_toast_request", - "update_abilities": "packet_update_abilities", - "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", - "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", + "server_to_client_handshake": "packet_server_to_client_handshake", + "serverbound_diagnostics": "packet_serverbound_diagnostics", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_movement_authority": "packet_set_movement_authority", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", + "subchunk": "packet_subchunk", + "subchunk_request": "packet_subchunk_request", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", + "ticking_areas_load_status": "packet_ticking_areas_load_status", + "toast_request": "packet_toast_request", "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", - "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup", - "movement_effect": "packet_movement_effect", - "set_movement_authority": "packet_set_movement_authority" + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", + "update_abilities": "packet_update_abilities", + "update_adventure_settings": "packet_update_adventure_settings", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_client_input_locks": "packet_update_client_input_locks", + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -5236,7 +5236,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -5248,7 +5247,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -5284,9 +5284,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -5299,7 +5296,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -5367,14 +5367,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -5392,7 +5392,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -5406,7 +5405,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -5421,7 +5421,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -5434,7 +5434,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -5447,20 +5447,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -5469,7 +5465,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -5478,25 +5474,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -5505,7 +5521,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -5514,26 +5530,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -5552,22 +5558,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5638,12 +5638,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5676,12 +5676,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level" - } + }, + "type": "zigzag32" } ] }, @@ -5842,12 +5842,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5888,12 +5888,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -6211,13 +6211,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -6244,14 +6244,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -6304,14 +6304,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -6389,7 +6389,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -6586,7 +6585,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -6612,11 +6612,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -6638,7 +6638,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6698,7 +6697,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6720,12 +6720,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6839,13 +6839,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6860,8 +6860,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -7016,11 +7016,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -7046,7 +7046,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -7056,7 +7055,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -7071,7 +7071,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -7080,7 +7080,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -7273,12 +7273,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -7357,34 +7357,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -7556,13 +7556,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -7580,7 +7580,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -7614,7 +7613,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -7644,13 +7644,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7873,7 +7873,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7884,7 +7883,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -7895,28 +7895,12 @@ { "compareTo": "type", "fields": { - "show_bar": [ + "query": [ "container", [ { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" + "name": "player_id", + "type": "zigzag64" } ] ], @@ -7929,39 +7913,68 @@ } ] ], - "unregister_player": [ + "set_bar_progress": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "progress", + "type": "lf32" } ] ], - "query": [ + "set_bar_title": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "title", + "type": "string" } ] ], - "set_bar_progress": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, { "name": "progress", "type": "lf32" + }, + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" } ] ], - "set_bar_title": [ + "texture": [ + "container", + [ + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] + ], + "unregister_player": [ "container", [ { - "name": "title", - "type": "string" + "name": "player_id", + "type": "zigzag64" } ] ], @@ -7981,19 +7994,6 @@ "type": "varint" } ] - ], - "texture": [ - "container", - [ - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] ] } } @@ -8082,8 +8082,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -8205,7 +8205,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -8226,7 +8225,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -8235,13 +8235,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -8327,12 +8327,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -8353,28 +8353,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -8413,6 +8413,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -8425,12 +8434,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -8443,15 +8452,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -8495,13 +8495,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -8547,10 +8547,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -8658,7 +8658,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -8668,7 +8667,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -8771,7 +8771,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8782,7 +8781,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8882,12 +8882,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -8974,14 +8974,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -8996,23 +8996,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -9039,16 +9022,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -9068,6 +9055,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -9087,7 +9087,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9096,7 +9095,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9109,7 +9109,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9118,7 +9117,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9216,11 +9216,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -9309,11 +9309,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -9353,12 +9353,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -9369,8 +9369,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -9408,12 +9408,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -9455,12 +9455,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -9554,18 +9554,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -9576,11 +9576,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -9603,10 +9603,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -9648,12 +9648,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9870,11 +9870,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -9939,13 +9939,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -9979,12 +9979,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -10184,11 +10184,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -10202,12 +10202,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -10251,7 +10251,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -10270,7 +10269,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -10288,11 +10288,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -10342,14 +10342,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -10358,7 +10358,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -10370,7 +10369,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -10379,12 +10379,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -10489,7 +10489,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -10502,7 +10502,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -10541,7 +10541,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -10579,7 +10579,6 @@ "InputFlag": [ "bitflags", { - "type": "varint64", "big": true, "flags": [ "ascend", @@ -10639,7 +10638,8 @@ "rot_controlled_by_move_direction", "start_spin_attack", "stop_spin_attack" - ] + ], + "type": "varint64" } ], "packet_creative_content": [ @@ -10780,14 +10780,14 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, + "body": 16, "chest": 2, - "legs": 4, "feet": 8, - "body": 16 - } + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -10847,10 +10847,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -10868,12 +10868,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -10908,10 +10908,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -10920,12 +10920,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -11015,11 +11015,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -11048,11 +11048,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -11131,11 +11131,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -11146,7 +11146,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -11179,7 +11178,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -11257,13 +11257,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -11281,11 +11281,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -11403,7 +11403,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11412,7 +11411,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11425,13 +11425,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11480,7 +11480,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11489,7 +11488,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11499,10 +11499,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -11511,13 +11511,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11568,8 +11568,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -11649,13 +11649,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -11664,12 +11664,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -11678,7 +11678,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -11686,7 +11685,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -11730,7 +11730,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -11738,7 +11737,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -11761,7 +11761,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -11782,7 +11781,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -11846,7 +11846,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -11867,7 +11866,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -11876,11 +11876,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -11914,17 +11914,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -12089,14 +12089,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -12138,15 +12138,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -12212,14 +12212,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -12261,7 +12261,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -12295,7 +12294,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ] }, @@ -12501,11 +12501,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -12544,7 +12544,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -12553,7 +12552,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -12562,13 +12562,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -12581,13 +12581,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -12596,13 +12596,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -12626,11 +12626,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "u8" } ] } @@ -12639,7 +12639,6 @@ "Element": [ "mapper", { - "type": "u8", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -12654,7 +12653,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "u8" } ], "packet_award_achievement": [ @@ -12819,12 +12819,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "u8" } ] } diff --git a/data/bedrock/1.21.50/protocol.json b/data/bedrock/1.21.50/protocol.json index 7759dad90..964a0894f 100644 --- a/data/bedrock/1.21.50/protocol.json +++ b/data/bedrock/1.21.50/protocol.json @@ -160,7 +160,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -169,7 +168,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -188,12 +188,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -205,8 +205,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -283,11 +283,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -297,6 +297,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -311,8 +312,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -350,11 +350,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -364,6 +364,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -378,8 +379,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -418,9 +418,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -442,6 +439,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -450,19 +454,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -481,9 +481,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -505,10 +502,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -522,6 +519,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -530,19 +534,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -686,7 +686,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -819,7 +818,8 @@ "129": "player_has_died", "130": "collision_box", "131": "visible_mob_effects" - } + }, + "type": "varint" } ] }, @@ -828,7 +828,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -839,7 +838,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -849,27 +849,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -880,7 +880,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -948,13 +947,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1011,7 +1010,8 @@ "timer_flag_2", "timer_flag_3", "body_rotation_blocked" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1245,12 +1245,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1259,12 +1259,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "varint" } ] }, @@ -1301,11 +1301,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "varint" } ] } @@ -1323,7 +1323,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1331,7 +1330,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1341,6 +1341,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1360,26 +1361,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1412,9 +1412,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1447,7 +1444,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1465,14 +1465,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1487,26 +1487,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1519,28 +1513,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1553,11 +1548,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1579,7 +1579,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1587,7 +1586,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1598,6 +1598,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1611,34 +1620,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1654,15 +1663,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1744,7 +1744,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1756,7 +1755,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1767,48 +1767,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "multi": [ + "container", + [ + { + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1816,7 +1818,7 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { @@ -1824,12 +1826,26 @@ "type": "LatinString" }, { - "name": "input", - "type": [ - "array", + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, + { + "name": "input", + "type": [ + "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1855,6 +1871,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1865,20 +1885,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1904,6 +1938,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1914,34 +1952,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1967,10 +1991,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1981,34 +2001,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2034,10 +2040,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2048,50 +2050,48 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" }, { - "name": "input_meta", + "name": "priority", "type": "zigzag32" }, { - "name": "output", - "type": "ItemLegacy" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "multi": [ - "container", - [ - { - "name": "uuid", - "type": "uuid" + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2177,13 +2177,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2397,11 +2397,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2567,7 +2567,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2607,7 +2606,8 @@ "35": "stop_flying", "36": "received_server_data", "37": "start_using_item" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2648,7 +2648,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2670,7 +2669,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2681,24 +2681,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2708,101 +2704,90 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" - } - ] - ], - "consume": [ - "container", - [ + "name": "times_crafted_2", + "type": "u8" + }, { - "name": "count", + "name": "times_crafted", "type": "u8" }, { - "name": "source", - "type": "StackRequestSlotInfo" - } + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] + } ] ], "create": [ @@ -2814,16 +2799,33 @@ } ] ], - "beacon_payment": [ + "destroy": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" + } + ] + ], + "drop": [ + "container", + [ + { + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], @@ -2844,7 +2846,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2852,111 +2855,108 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -2984,7 +2984,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -3000,7 +2999,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3018,11 +3018,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3137,7 +3137,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3155,7 +3154,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3206,11 +3206,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3248,7 +3248,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3298,7 +3297,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3360,13 +3360,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3375,13 +3375,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3390,12 +3390,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3467,12 +3467,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3506,19 +3506,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3526,13 +3525,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3540,13 +3539,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3557,31 +3556,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3592,31 +3591,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3627,31 +3626,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3690,15 +3689,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3764,13 +3763,13 @@ "61": "smithing_table_template", "62": "crafter", "63": "dynamic" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4304,13 +4303,13 @@ "529": "record_creator", "530": "record_creator_music_box", "531": "record_precipice" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4412,13 +4411,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4436,13 +4435,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4464,7 +4463,8 @@ "no_clip", "privileged_builder", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4475,7 +4475,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4483,7 +4482,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4629,11 +4629,11 @@ [ "mapper", { - "type": "li32", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "li32" } ] ] @@ -4661,7 +4661,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4781,7 +4780,8 @@ "115": "conn_client_signalling_error", "116": "sub_client_login_disabled", "117": "deep_link_trying_to_open_demo_world_while_signed_in" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -4803,11 +4803,11 @@ "MovementEffectType": [ "mapper", { - "type": "varint", "mappings": { "0": "GLIDE_BOOST", "-1": "invalid" - } + }, + "type": "varint" } ], "mcpe_packet": [ @@ -4818,7 +4818,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -5034,7 +5033,8 @@ "318": "movement_effect", "319": "set_movement_authority", "320": "camera_aim_assist_presets" - } + }, + "type": "varint" } ] }, @@ -5045,220 +5045,220 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_aim_assist_presets": "packet_camera_aim_assist_presets", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_cheat_ability": "packet_client_cheat_ability", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_component": "packet_item_component", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "movement_effect": "packet_movement_effect", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_component": "packet_item_component", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", - "subchunk": "packet_subchunk", - "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", - "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_network_settings": "packet_request_network_settings", "request_permissions": "packet_request_permissions", - "toast_request": "packet_toast_request", - "update_abilities": "packet_update_abilities", - "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", - "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", + "server_to_client_handshake": "packet_server_to_client_handshake", + "serverbound_diagnostics": "packet_serverbound_diagnostics", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_movement_authority": "packet_set_movement_authority", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", + "subchunk": "packet_subchunk", + "subchunk_request": "packet_subchunk_request", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", + "ticking_areas_load_status": "packet_ticking_areas_load_status", + "toast_request": "packet_toast_request", "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", - "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup", - "movement_effect": "packet_movement_effect", - "set_movement_authority": "packet_set_movement_authority", - "camera_aim_assist_presets": "packet_camera_aim_assist_presets" + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", + "update_abilities": "packet_update_abilities", + "update_adventure_settings": "packet_update_adventure_settings", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_client_input_locks": "packet_update_client_input_locks", + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -5305,7 +5305,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -5317,7 +5316,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -5353,9 +5353,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -5368,7 +5365,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -5452,14 +5452,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -5477,7 +5477,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -5491,7 +5490,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -5506,7 +5506,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -5519,7 +5519,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -5532,20 +5532,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -5554,7 +5550,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -5563,25 +5559,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -5590,7 +5606,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -5599,26 +5615,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -5637,22 +5643,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5723,12 +5723,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5761,12 +5761,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level" - } + }, + "type": "zigzag32" } ] }, @@ -5927,12 +5927,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5973,12 +5973,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -6296,13 +6296,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -6329,14 +6329,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -6389,14 +6389,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -6474,7 +6474,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -6673,7 +6672,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -6699,11 +6699,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -6725,7 +6725,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6785,7 +6784,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6807,12 +6807,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6926,13 +6926,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6947,8 +6947,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -7103,11 +7103,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -7133,7 +7133,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -7143,7 +7142,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -7158,7 +7158,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -7167,7 +7167,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -7360,12 +7360,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -7444,34 +7444,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -7643,13 +7643,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -7667,7 +7667,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -7701,7 +7700,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -7731,13 +7731,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7960,7 +7960,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7971,7 +7970,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -7982,28 +7982,12 @@ { "compareTo": "type", "fields": { - "show_bar": [ + "query": [ "container", [ { - "name": "title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" + "name": "player_id", + "type": "zigzag64" } ] ], @@ -8016,39 +8000,68 @@ } ] ], - "unregister_player": [ + "set_bar_progress": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "progress", + "type": "lf32" } ] ], - "query": [ + "set_bar_title": [ "container", [ { - "name": "player_id", - "type": "zigzag64" + "name": "title", + "type": "string" } ] ], - "set_bar_progress": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, { "name": "progress", "type": "lf32" + }, + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" } ] ], - "set_bar_title": [ + "texture": [ + "container", + [ + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] + ], + "unregister_player": [ "container", [ { - "name": "title", - "type": "string" + "name": "player_id", + "type": "zigzag64" } ] ], @@ -8068,19 +8081,6 @@ "type": "varint" } ] - ], - "texture": [ - "container", - [ - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] ] } } @@ -8169,8 +8169,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -8292,7 +8292,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -8313,7 +8312,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -8322,13 +8322,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -8414,12 +8414,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -8440,28 +8440,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -8500,6 +8500,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -8512,12 +8521,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -8530,15 +8539,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -8582,13 +8582,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -8634,10 +8634,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -8745,7 +8745,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -8755,7 +8754,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -8858,7 +8858,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8869,7 +8868,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -8969,12 +8969,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -9061,14 +9061,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -9083,23 +9083,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -9126,16 +9109,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -9155,6 +9142,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -9174,7 +9174,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9183,7 +9182,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9196,7 +9196,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9205,7 +9204,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9303,11 +9303,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -9396,11 +9396,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -9440,12 +9440,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -9456,8 +9456,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -9495,12 +9495,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -9542,12 +9542,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -9641,18 +9641,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -9663,11 +9663,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -9690,10 +9690,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -9735,12 +9735,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9957,11 +9957,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -10026,13 +10026,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -10066,12 +10066,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -10271,11 +10271,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -10289,12 +10289,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -10338,7 +10338,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -10357,7 +10356,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -10375,11 +10375,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -10429,14 +10429,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -10445,7 +10445,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -10457,7 +10456,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -10466,12 +10466,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -10576,7 +10576,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -10589,7 +10589,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -10628,7 +10628,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -10670,7 +10670,6 @@ "InputFlag": [ "bitflags", { - "type": "varint128", "big": true, "flags": [ "ascend", @@ -10738,7 +10737,8 @@ "sneak_released_raw", "sneak_pressed_raw", "sneak_current_raw" - ] + ], + "type": "varint128" } ], "packet_creative_content": [ @@ -10879,14 +10879,14 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, + "body": 16, "chest": 2, - "legs": 4, "feet": 8, - "body": 16 - } + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -10946,10 +10946,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -10967,12 +10967,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -11007,10 +11007,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -11019,12 +11019,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -11114,11 +11114,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -11147,11 +11147,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -11230,11 +11230,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -11245,7 +11245,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -11278,7 +11277,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -11356,13 +11356,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -11380,11 +11380,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -11502,7 +11502,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11511,7 +11510,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11524,13 +11524,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11579,7 +11579,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11588,7 +11587,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11598,10 +11598,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -11610,13 +11610,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11667,8 +11667,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -11748,13 +11748,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -11763,12 +11763,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -11777,7 +11777,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -11785,7 +11784,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -11829,7 +11829,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -11837,7 +11836,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -11860,7 +11860,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -11881,7 +11880,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -11945,7 +11945,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -11966,7 +11965,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -11975,11 +11975,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -12013,17 +12013,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -12188,14 +12188,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -12237,15 +12237,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -12311,14 +12311,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -12360,7 +12360,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -12394,7 +12393,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ] }, @@ -12600,11 +12600,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -12643,7 +12643,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -12652,7 +12651,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -12661,13 +12661,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -12680,13 +12680,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -12695,13 +12695,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -12725,11 +12725,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "u8" } ] } @@ -12738,7 +12738,6 @@ "Element": [ "mapper", { - "type": "u8", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -12753,7 +12752,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "u8" } ], "packet_award_achievement": [ @@ -12922,12 +12922,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "u8" } ] } diff --git a/data/bedrock/1.21.60/protocol.json b/data/bedrock/1.21.60/protocol.json index 8fe512c10..ca8baf559 100644 --- a/data/bedrock/1.21.60/protocol.json +++ b/data/bedrock/1.21.60/protocol.json @@ -160,7 +160,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -169,7 +168,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -188,12 +188,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -205,8 +205,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -276,12 +276,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "data_driven", "2": "none" - } + }, + "type": "zigzag32" } ] }, @@ -301,11 +301,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -315,6 +315,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -329,8 +330,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -368,11 +368,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -382,6 +382,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -396,8 +397,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -436,9 +436,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -460,6 +457,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -468,19 +472,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -499,9 +499,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -523,10 +520,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -540,6 +537,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -548,19 +552,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -704,7 +704,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -839,7 +838,8 @@ "131": "visible_mob_effects", "132": "filtered_name", "133": "bed_enter_position" - } + }, + "type": "varint" } ] }, @@ -848,7 +848,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -859,7 +858,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -869,27 +869,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -900,7 +900,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -968,13 +967,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1032,7 +1031,8 @@ "timer_flag_3", "body_rotation_blocked", "render_when_invisible" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1266,12 +1266,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1280,12 +1280,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "varint" } ] }, @@ -1322,11 +1322,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "varint" } ] } @@ -1344,7 +1344,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1352,7 +1351,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1362,6 +1362,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1381,26 +1382,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1433,9 +1433,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1468,7 +1465,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1486,14 +1486,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1508,26 +1508,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1540,28 +1534,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1574,11 +1569,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1600,7 +1600,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1608,7 +1607,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1619,6 +1619,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1632,34 +1641,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1675,15 +1684,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1765,7 +1765,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1777,7 +1776,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1788,48 +1788,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "multi": [ + "container", + [ + { + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1837,7 +1839,7 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { @@ -1845,12 +1847,26 @@ "type": "LatinString" }, { - "name": "input", + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, + { + "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1876,6 +1892,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1886,20 +1906,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1925,6 +1959,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1935,34 +1973,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1988,10 +2012,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2002,34 +2022,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2055,10 +2061,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2069,50 +2071,48 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" }, { - "name": "input_meta", + "name": "priority", "type": "zigzag32" }, { - "name": "output", - "type": "ItemLegacy" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "multi": [ - "container", - [ - { - "name": "uuid", - "type": "uuid" + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2198,13 +2198,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2418,11 +2418,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2588,7 +2588,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2628,7 +2627,8 @@ "35": "stop_flying", "36": "received_server_data", "37": "start_using_item" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2669,7 +2669,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2691,7 +2690,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2702,24 +2702,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2729,122 +2725,128 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", + "name": "recipe_network_id", + "type": "varint" + }, + { + "name": "times_crafted_2", "type": "u8" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "consume": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "create": [ + "destroy": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "beacon_payment": [ + "drop": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], @@ -2865,7 +2867,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2873,111 +2876,108 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -3005,7 +3005,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -3021,7 +3020,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3039,11 +3039,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3139,7 +3139,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3157,7 +3156,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3208,11 +3208,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3250,7 +3250,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3300,7 +3299,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3362,13 +3362,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3377,13 +3377,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3392,12 +3392,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3469,12 +3469,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3508,19 +3508,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3528,13 +3527,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3542,13 +3541,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3559,31 +3558,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3594,31 +3593,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3629,31 +3628,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3692,15 +3691,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3767,13 +3766,13 @@ "62": "crafter", "63": "dynamic", "64": "registry" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4307,13 +4306,13 @@ "529": "record_creator", "530": "record_creator_music_box", "531": "record_precipice" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4415,13 +4414,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4439,13 +4438,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4468,7 +4467,8 @@ "privileged_builder", "vertical_fly_speed", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4479,7 +4479,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4487,7 +4486,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4651,11 +4651,11 @@ [ "mapper", { - "type": "li32", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "li32" } ] ] @@ -4683,7 +4683,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4803,7 +4802,8 @@ "115": "conn_client_signalling_error", "116": "sub_client_login_disabled", "117": "deep_link_trying_to_open_demo_world_while_signed_in" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -4825,11 +4825,11 @@ "MovementEffectType": [ "mapper", { - "type": "varint", "mappings": { "0": "GLIDE_BOOST", "-1": "invalid" - } + }, + "type": "varint" } ], "mcpe_packet": [ @@ -4840,7 +4840,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -5058,7 +5057,8 @@ "320": "camera_aim_assist_presets", "321": "client_camera_aim_assist", "322": "client_movement_prediction_sync" - } + }, + "type": "varint" } ] }, @@ -5069,222 +5069,222 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_aim_assist_presets": "packet_camera_aim_assist_presets", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_camera_aim_assist": "packet_client_camera_aim_assist", + "client_cheat_ability": "packet_client_cheat_ability", + "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_registry": "packet_item_registry", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "movement_effect": "packet_movement_effect", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_registry": "packet_item_registry", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", - "subchunk": "packet_subchunk", - "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", - "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", - "toast_request": "packet_toast_request", - "update_abilities": "packet_update_abilities", - "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", + "request_chunk_radius": "packet_request_chunk_radius", "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", - "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup", - "movement_effect": "packet_movement_effect", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", "set_movement_authority": "packet_set_movement_authority", - "camera_aim_assist_presets": "packet_camera_aim_assist_presets", - "client_camera_aim_assist": "packet_client_camera_aim_assist", - "client_movement_prediction_sync": "packet_client_movement_prediction_sync" + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", + "subchunk": "packet_subchunk", + "subchunk_request": "packet_subchunk_request", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", + "ticking_areas_load_status": "packet_ticking_areas_load_status", + "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", + "update_abilities": "packet_update_abilities", + "update_adventure_settings": "packet_update_adventure_settings", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_client_input_locks": "packet_update_client_input_locks", + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -5331,7 +5331,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -5343,7 +5342,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -5379,9 +5379,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -5394,7 +5391,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -5478,14 +5478,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -5503,7 +5503,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -5517,7 +5516,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -5532,7 +5532,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -5545,7 +5545,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -5558,20 +5558,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -5580,7 +5576,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -5589,25 +5585,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -5616,7 +5632,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -5625,26 +5641,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -5663,22 +5669,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5749,12 +5749,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5787,12 +5787,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level" - } + }, + "type": "zigzag32" } ] }, @@ -5953,12 +5953,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -5999,12 +5999,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -6318,13 +6318,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -6351,14 +6351,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -6411,14 +6411,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -6496,7 +6496,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -6695,7 +6694,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -6721,11 +6721,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -6747,7 +6747,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6807,7 +6806,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6829,12 +6829,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6948,13 +6948,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6969,8 +6969,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -7125,11 +7125,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -7155,7 +7155,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -7165,7 +7164,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -7180,7 +7180,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -7189,7 +7189,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -7382,12 +7382,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -7466,34 +7466,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -7665,13 +7665,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -7689,7 +7689,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -7723,7 +7722,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -7753,13 +7753,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7982,7 +7982,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -7993,7 +7992,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -8004,45 +8004,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "filtered_title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "query": [ "container", [ { @@ -8051,7 +8013,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -8082,9 +8044,21 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "filtered_title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -8111,6 +8085,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -8199,8 +8199,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -8322,7 +8322,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -8343,7 +8342,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -8352,13 +8352,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -8444,12 +8444,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -8470,28 +8470,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -8530,6 +8530,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -8542,12 +8551,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -8560,15 +8569,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -8616,13 +8616,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -8668,10 +8668,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -8779,7 +8779,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -8789,7 +8788,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -8892,7 +8892,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8903,7 +8902,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -9007,12 +9007,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -9099,14 +9099,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -9121,23 +9121,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -9164,16 +9147,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -9193,6 +9180,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -9212,7 +9212,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9221,7 +9220,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9234,7 +9234,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9243,7 +9242,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9341,11 +9341,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -9434,11 +9434,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -9478,12 +9478,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -9494,8 +9494,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -9533,12 +9533,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -9580,12 +9580,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -9679,18 +9679,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -9701,11 +9701,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -9728,10 +9728,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -9773,12 +9773,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -9995,11 +9995,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -10064,13 +10064,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -10104,12 +10104,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -10309,11 +10309,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -10327,12 +10327,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -10376,7 +10376,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -10395,7 +10394,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -10413,11 +10413,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -10467,14 +10467,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -10483,7 +10483,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -10495,7 +10494,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -10504,12 +10504,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -10614,7 +10614,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -10627,7 +10627,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -10666,7 +10666,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -10708,7 +10708,6 @@ "InputFlag": [ "bitflags", { - "type": "varint128", "big": true, "flags": [ "ascend", @@ -10776,7 +10775,8 @@ "sneak_released_raw", "sneak_pressed_raw", "sneak_current_raw" - ] + ], + "type": "varint128" } ], "packet_creative_content": [ @@ -10796,7 +10796,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "all", "1": "construction", @@ -10804,7 +10803,8 @@ "3": "equipment", "4": "items", "5": "item_command_only" - } + }, + "type": "li32" } ] }, @@ -10960,14 +10960,14 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, + "body": 16, "chest": 2, - "legs": 4, "feet": 8, - "body": 16 - } + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -11027,10 +11027,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -11048,12 +11048,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -11088,10 +11088,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -11100,12 +11100,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -11195,11 +11195,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -11228,11 +11228,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -11311,11 +11311,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -11326,7 +11326,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -11359,7 +11358,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -11437,13 +11437,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -11461,11 +11461,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -11583,7 +11583,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11592,7 +11591,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11605,13 +11605,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11660,7 +11660,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11669,7 +11668,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11679,10 +11679,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -11691,13 +11691,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11748,8 +11748,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -11829,13 +11829,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -11844,12 +11844,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -11858,7 +11858,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -11866,7 +11865,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -11910,7 +11910,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -11918,7 +11917,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -11941,7 +11941,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -11962,7 +11961,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -12026,7 +12026,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -12047,7 +12046,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -12056,11 +12056,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -12094,17 +12094,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -12269,14 +12269,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -12318,15 +12318,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -12392,14 +12392,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -12441,7 +12441,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -12475,7 +12474,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ] }, @@ -12681,11 +12681,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -12724,7 +12724,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -12733,7 +12732,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -12742,13 +12742,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -12761,13 +12761,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -12776,13 +12776,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -12806,11 +12806,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "varint" } ] } @@ -12819,7 +12819,6 @@ "Element": [ "mapper", { - "type": "varint", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -12834,7 +12833,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "varint" } ], "packet_award_achievement": [ @@ -12954,11 +12954,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "u8" } ] }, @@ -12967,11 +12967,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "clear" - } + }, + "type": "u8" } ] } @@ -13021,12 +13021,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "u8" } ] } @@ -13190,11 +13190,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "add_to_existing" - } + }, + "type": "u8" } ] } @@ -13212,11 +13212,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_from_camera_preset", "1": "clear" - } + }, + "type": "u8" } ] }, diff --git a/data/bedrock/1.21.70/protocol.json b/data/bedrock/1.21.70/protocol.json index ee1128170..096666cbe 100644 --- a/data/bedrock/1.21.70/protocol.json +++ b/data/bedrock/1.21.70/protocol.json @@ -160,7 +160,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -169,7 +168,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -188,12 +188,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -205,8 +205,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -276,12 +276,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "data_driven", "2": "none" - } + }, + "type": "zigzag32" } ] }, @@ -301,11 +301,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -315,6 +315,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -329,8 +330,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -368,11 +368,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -382,6 +382,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -396,8 +397,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -436,9 +436,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -460,6 +457,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -468,19 +472,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -499,9 +499,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -523,10 +520,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -540,6 +537,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -548,19 +552,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -704,7 +704,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -839,7 +838,8 @@ "131": "visible_mob_effects", "132": "filtered_name", "133": "bed_enter_position" - } + }, + "type": "varint" } ] }, @@ -848,7 +848,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -859,7 +858,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -869,27 +869,27 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2" + } } ] } @@ -900,7 +900,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -968,13 +967,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1035,7 +1034,8 @@ "body_rotation_axis_aligned", "collidable", "wasd_air_controlled" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1269,12 +1269,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1283,12 +1283,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "varint" } ] }, @@ -1325,11 +1325,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "varint" } ] } @@ -1347,7 +1347,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1355,7 +1354,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1365,6 +1365,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1384,26 +1385,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1436,9 +1436,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1471,7 +1468,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1489,14 +1489,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1511,26 +1511,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1543,28 +1537,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1577,11 +1572,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1603,7 +1603,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1611,7 +1610,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1622,6 +1622,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1635,34 +1644,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1678,15 +1687,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1768,7 +1768,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1780,7 +1779,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1791,48 +1791,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "multi": [ + "container", + [ + { + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1840,7 +1842,7 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { @@ -1848,12 +1850,26 @@ "type": "LatinString" }, { - "name": "input", + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, + { + "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1879,6 +1895,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1889,20 +1909,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1928,6 +1962,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1938,34 +1976,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1991,10 +2015,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2005,34 +2025,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2058,10 +2064,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2072,50 +2074,48 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" }, { - "name": "input_meta", + "name": "priority", "type": "zigzag32" }, { - "name": "output", - "type": "ItemLegacy" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "multi": [ - "container", - [ - { - "name": "uuid", - "type": "uuid" + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2201,13 +2201,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2421,11 +2421,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2591,7 +2591,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2631,7 +2630,8 @@ "35": "stop_flying", "36": "received_server_data", "37": "start_using_item" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2672,7 +2672,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2694,7 +2693,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2705,24 +2705,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2732,122 +2728,128 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", + "name": "recipe_network_id", + "type": "varint" + }, + { + "name": "times_crafted_2", "type": "u8" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "consume": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "create": [ + "destroy": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "beacon_payment": [ + "drop": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], @@ -2868,7 +2870,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2876,111 +2879,108 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -3008,7 +3008,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -3024,7 +3023,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3042,11 +3042,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3142,7 +3142,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3160,7 +3159,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3211,11 +3211,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3253,7 +3253,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3303,7 +3302,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3365,13 +3365,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3380,13 +3380,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3395,12 +3395,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3472,12 +3472,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3511,19 +3511,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3531,13 +3530,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3545,13 +3544,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3562,31 +3561,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3597,31 +3596,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3632,31 +3631,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3695,15 +3694,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3770,13 +3769,13 @@ "62": "crafter", "63": "dynamic", "64": "registry" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4310,13 +4309,13 @@ "529": "record_creator", "530": "record_creator_music_box", "531": "record_precipice" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4418,13 +4417,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4442,13 +4441,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4471,7 +4470,8 @@ "privileged_builder", "vertical_fly_speed", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4482,7 +4482,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4490,7 +4489,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4654,11 +4654,11 @@ [ "mapper", { - "type": "li32", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "li32" } ] ] @@ -4686,7 +4686,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4806,7 +4805,8 @@ "115": "conn_client_signalling_error", "116": "sub_client_login_disabled", "117": "deep_link_trying_to_open_demo_world_while_signed_in" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -4828,11 +4828,11 @@ "MovementEffectType": [ "mapper", { - "type": "varint", "mappings": { "0": "GLIDE_BOOST", "-1": "invalid" - } + }, + "type": "varint" } ], "mcpe_packet": [ @@ -4843,7 +4843,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -5064,7 +5063,8 @@ "323": "update_client_options", "324": "player_video_capture", "325": "player_update_entity_overrides" - } + }, + "type": "varint" } ] }, @@ -5075,225 +5075,225 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_aim_assist_presets": "packet_camera_aim_assist_presets", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_camera_aim_assist": "packet_client_camera_aim_assist", + "client_cheat_ability": "packet_client_cheat_ability", + "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_registry": "packet_item_registry", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "movement_effect": "packet_movement_effect", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_registry": "packet_item_registry", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_skin": "packet_player_skin", + "player_update_entity_overrides": "packet_player_update_entity_overrides", + "player_video_capture": "packet_player_video_capture", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", - "subchunk": "packet_subchunk", - "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", - "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", - "toast_request": "packet_toast_request", - "update_abilities": "packet_update_abilities", - "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", + "request_chunk_radius": "packet_request_chunk_radius", "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", - "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup", - "movement_effect": "packet_movement_effect", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", "set_movement_authority": "packet_set_movement_authority", - "camera_aim_assist_presets": "packet_camera_aim_assist_presets", - "client_camera_aim_assist": "packet_client_camera_aim_assist", - "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", + "subchunk": "packet_subchunk", + "subchunk_request": "packet_subchunk_request", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", + "ticking_areas_load_status": "packet_ticking_areas_load_status", + "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", + "update_abilities": "packet_update_abilities", + "update_adventure_settings": "packet_update_adventure_settings", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_client_input_locks": "packet_update_client_input_locks", "update_client_options": "packet_update_client_options", - "player_video_capture": "packet_player_video_capture", - "player_update_entity_overrides": "packet_player_update_entity_overrides" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -5340,7 +5340,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -5352,7 +5351,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -5388,9 +5388,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -5403,7 +5400,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -5487,14 +5487,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -5512,7 +5512,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -5526,7 +5525,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -5541,7 +5541,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -5554,7 +5554,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -5567,20 +5567,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -5589,7 +5585,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -5598,25 +5594,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -5625,7 +5641,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -5634,26 +5650,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -5672,22 +5678,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -5758,12 +5758,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -5796,12 +5796,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level" - } + }, + "type": "zigzag32" } ] }, @@ -5962,12 +5962,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -6008,12 +6008,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -6327,13 +6327,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -6360,14 +6360,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -6420,14 +6420,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -6505,7 +6505,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -6704,7 +6703,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -6730,11 +6730,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -6756,7 +6756,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -6816,7 +6815,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -6838,12 +6838,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -6957,13 +6957,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -6978,8 +6978,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -7134,11 +7134,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -7164,7 +7164,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -7174,7 +7173,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -7189,7 +7189,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -7198,7 +7198,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -7391,12 +7391,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -7475,34 +7475,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -7674,13 +7674,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -7698,7 +7698,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -7732,7 +7731,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -7762,13 +7762,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -7991,7 +7991,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -8002,7 +8001,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -8013,45 +8013,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "filtered_title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "query": [ "container", [ { @@ -8060,7 +8022,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -8091,9 +8053,21 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "filtered_title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -8120,6 +8094,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -8208,8 +8208,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -8331,7 +8331,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -8352,7 +8351,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -8361,13 +8361,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -8453,12 +8453,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -8479,28 +8479,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -8539,6 +8539,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -8551,12 +8560,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -8569,15 +8578,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -8625,13 +8625,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -8677,10 +8677,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -8788,7 +8788,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -8798,7 +8797,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -8901,7 +8901,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -8912,7 +8911,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -9016,12 +9016,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -9108,14 +9108,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -9130,23 +9130,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -9173,16 +9156,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -9202,6 +9189,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -9221,7 +9221,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9230,7 +9229,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9243,7 +9243,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9252,7 +9251,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9350,11 +9350,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -9443,11 +9443,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -9487,12 +9487,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -9503,8 +9503,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -9542,12 +9542,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -9589,12 +9589,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -9688,18 +9688,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -9710,11 +9710,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -9737,10 +9737,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -9782,12 +9782,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -10008,11 +10008,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -10077,13 +10077,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -10117,12 +10117,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -10322,11 +10322,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -10340,12 +10340,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -10389,7 +10389,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -10408,7 +10407,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -10426,11 +10426,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -10480,14 +10480,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -10496,7 +10496,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -10508,7 +10507,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -10517,12 +10517,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -10627,7 +10627,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -10640,7 +10640,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -10679,7 +10679,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -10721,7 +10721,6 @@ "InputFlag": [ "bitflags", { - "type": "varint128", "big": true, "flags": [ "ascend", @@ -10789,7 +10788,8 @@ "sneak_released_raw", "sneak_pressed_raw", "sneak_current_raw" - ] + ], + "type": "varint128" } ], "packet_creative_content": [ @@ -10809,7 +10809,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "all", "1": "construction", @@ -10817,7 +10816,8 @@ "3": "equipment", "4": "items", "5": "item_command_only" - } + }, + "type": "li32" } ] }, @@ -10973,14 +10973,14 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, + "body": 16, "chest": 2, - "legs": 4, "feet": 8, - "body": 16 - } + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -11040,10 +11040,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -11061,12 +11061,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -11101,10 +11101,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -11113,12 +11113,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -11208,11 +11208,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -11241,11 +11241,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -11324,11 +11324,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -11339,7 +11339,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -11372,7 +11371,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -11450,13 +11450,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -11474,11 +11474,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -11596,7 +11596,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11605,7 +11604,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11618,13 +11618,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11673,7 +11673,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -11682,7 +11681,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -11692,10 +11692,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -11704,13 +11704,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -11761,8 +11761,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -11842,13 +11842,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -11857,12 +11857,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -11871,7 +11871,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -11879,7 +11878,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -11923,7 +11923,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -11931,7 +11930,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -11954,7 +11954,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -11975,7 +11974,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -12039,7 +12039,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -12060,7 +12059,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -12069,11 +12069,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -12107,17 +12107,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -12282,14 +12282,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -12331,15 +12331,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -12405,14 +12405,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -12454,7 +12454,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -12488,7 +12487,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ] }, @@ -12694,11 +12694,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -12737,7 +12737,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -12746,7 +12745,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -12755,13 +12755,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -12774,13 +12774,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -12789,13 +12789,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -12819,11 +12819,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "varint" } ] } @@ -12832,7 +12832,6 @@ "Element": [ "mapper", { - "type": "varint", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -12847,7 +12846,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "varint" } ], "packet_award_achievement": [ @@ -12967,11 +12967,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "u8" } ] }, @@ -12980,11 +12980,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "clear" - } + }, + "type": "u8" } ] } @@ -13034,12 +13034,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "u8" } ] } @@ -13203,11 +13203,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "add_to_existing" - } + }, + "type": "u8" } ] } @@ -13225,11 +13225,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_from_camera_preset", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -13310,13 +13310,13 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "simple", "1": "fancy", "2": "advanced", "3": "ray_traced" - } + }, + "type": "u8" } ] ] @@ -13331,11 +13331,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "stop", "1": "start" - } + }, + "type": "u8" } ] }, @@ -13381,13 +13381,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "clear_all", "1": "remove", "2": "set_int", "3": "set_float" - } + }, + "type": "u8" } ] }, @@ -13398,8 +13398,8 @@ { "compareTo": "type", "fields": { - "set_int": "li32", - "set_float": "lf32" + "set_float": "lf32", + "set_int": "li32" } } ] diff --git a/data/bedrock/1.21.80/protocol.json b/data/bedrock/1.21.80/protocol.json index 60cb9f398..f6ecf1a8c 100644 --- a/data/bedrock/1.21.80/protocol.json +++ b/data/bedrock/1.21.80/protocol.json @@ -160,7 +160,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -169,7 +168,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -188,12 +188,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -205,8 +205,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -276,12 +276,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "data_driven", "2": "none" - } + }, + "type": "zigzag32" } ] }, @@ -301,11 +301,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -315,6 +315,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -329,8 +330,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -368,11 +368,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -382,6 +382,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -396,8 +397,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -436,9 +436,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -460,6 +457,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -468,19 +472,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -499,9 +499,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -523,10 +520,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -540,6 +537,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -548,19 +552,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -704,7 +704,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -841,7 +840,8 @@ "133": "bed_enter_position", "134": "seat_third_person_camera_radius", "135": "seat_camera_relax_distance_smoothing" - } + }, + "type": "varint" } ] }, @@ -850,7 +850,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -861,7 +860,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -871,29 +871,29 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2", - "seat_third_person_camera_radius": "lf32", - "seat_camera_relax_distance_smoothing": "lf32" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2", + "seat_camera_relax_distance_smoothing": "lf32", + "seat_third_person_camera_radius": "lf32" + } } ] } @@ -904,7 +904,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -972,13 +971,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1040,7 +1039,8 @@ "collidable", "wasd_air_controlled", "does_server_auth_only_dismount" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1274,12 +1274,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1288,12 +1288,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "varint" } ] }, @@ -1330,11 +1330,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "varint" } ] } @@ -1352,7 +1352,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1360,7 +1359,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1370,6 +1370,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1389,26 +1390,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1441,9 +1441,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1476,7 +1473,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1494,14 +1494,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1516,26 +1516,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1548,28 +1542,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1582,11 +1577,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1608,7 +1608,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1616,7 +1615,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1627,6 +1627,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1640,34 +1649,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1683,15 +1692,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1773,7 +1773,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1785,7 +1784,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1796,48 +1796,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "multi": [ + "container", + [ + { + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1845,7 +1847,7 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { @@ -1853,12 +1855,26 @@ "type": "LatinString" }, { - "name": "input", + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, + { + "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1884,6 +1900,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1894,20 +1914,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1933,6 +1967,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1943,34 +1981,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1996,10 +2020,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2010,34 +2030,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2063,10 +2069,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2077,50 +2079,48 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" }, { - "name": "input_meta", + "name": "priority", "type": "zigzag32" }, { - "name": "output", - "type": "ItemLegacy" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "multi": [ - "container", - [ - { - "name": "uuid", - "type": "uuid" + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2206,13 +2206,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2426,11 +2426,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2600,7 +2600,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2640,7 +2639,8 @@ "35": "stop_flying", "36": "received_server_data", "37": "start_using_item" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2681,7 +2681,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2703,7 +2702,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2714,24 +2714,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2741,122 +2737,128 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", + "name": "recipe_network_id", + "type": "varint" + }, + { + "name": "times_crafted_2", "type": "u8" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "consume": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "create": [ + "destroy": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "beacon_payment": [ + "drop": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], @@ -2877,7 +2879,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2885,111 +2888,108 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -3017,7 +3017,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -3033,7 +3032,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3051,11 +3051,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3151,7 +3151,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3169,7 +3168,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3220,11 +3220,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3262,7 +3262,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3312,7 +3311,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3374,13 +3374,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3389,13 +3389,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3404,12 +3404,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3481,12 +3481,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3520,19 +3520,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3540,13 +3539,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3554,13 +3553,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3571,31 +3570,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3606,31 +3605,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3641,31 +3640,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3704,15 +3703,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3779,13 +3778,13 @@ "62": "crafter", "63": "dynamic", "64": "registry" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4319,13 +4318,13 @@ "529": "record_creator", "530": "record_creator_music_box", "531": "record_precipice" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4427,13 +4426,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4451,13 +4450,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4480,7 +4479,8 @@ "privileged_builder", "vertical_fly_speed", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4491,7 +4491,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4499,7 +4498,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4663,11 +4663,11 @@ [ "mapper", { - "type": "li32", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "li32" } ] ] @@ -4697,14 +4697,14 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] ] @@ -4714,7 +4714,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4835,7 +4834,8 @@ "116": "sub_client_login_disabled", "117": "deep_link_trying_to_open_demo_world_while_signed_in", "118": "async_join_task_denied" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -4857,11 +4857,11 @@ "MovementEffectType": [ "mapper", { - "type": "varint", "mappings": { "0": "GLIDE_BOOST", "-1": "invalid" - } + }, + "type": "varint" } ], "BiomeDefinition": [ @@ -5301,7 +5301,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "xyz", "1": "xzy", @@ -5309,7 +5308,8 @@ "3": "yzx", "4": "zxy", "5": "zyx" - } + }, + "type": "zigzag32" } ] }, @@ -5371,7 +5371,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "single_valued", "1": "uniform", @@ -5380,7 +5379,8 @@ "4": "fixed_grid", "5": "jittered_grid", "6": "triangle" - } + }, + "type": "zigzag32" } ] } @@ -5529,7 +5529,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -5752,7 +5751,8 @@ "325": "player_update_entity_overrides", "326": "player_location", "327": "clientbound_controls_scheme" - } + }, + "type": "varint" } ] }, @@ -5763,227 +5763,227 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_aim_assist_presets": "packet_camera_aim_assist_presets", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_camera_aim_assist": "packet_client_camera_aim_assist", + "client_cheat_ability": "packet_client_cheat_ability", + "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_controls_scheme": "packet_clientbound_controls_scheme", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_registry": "packet_item_registry", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "movement_effect": "packet_movement_effect", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_location": "packet_player_location", + "player_skin": "packet_player_skin", + "player_update_entity_overrides": "packet_player_update_entity_overrides", + "player_video_capture": "packet_player_video_capture", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "serverbound_diagnostics": "packet_serverbound_diagnostics", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_movement_authority": "packet_set_movement_authority", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_registry": "packet_item_registry", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", - "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", - "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup", - "movement_effect": "packet_movement_effect", - "set_movement_authority": "packet_set_movement_authority", - "camera_aim_assist_presets": "packet_camera_aim_assist_presets", - "client_camera_aim_assist": "packet_client_camera_aim_assist", - "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_client_input_locks": "packet_update_client_input_locks", "update_client_options": "packet_update_client_options", - "player_video_capture": "packet_player_video_capture", - "player_update_entity_overrides": "packet_player_update_entity_overrides", - "player_location": "packet_player_location", - "clientbound_controls_scheme": "packet_clientbound_controls_scheme" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -6030,7 +6030,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -6042,7 +6041,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -6078,9 +6078,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -6093,7 +6090,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -6177,14 +6177,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -6202,7 +6202,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -6216,7 +6215,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -6231,7 +6231,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -6244,7 +6244,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -6257,20 +6257,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -6279,7 +6275,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -6288,25 +6284,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -6315,7 +6331,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -6324,26 +6340,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -6362,22 +6368,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -6448,12 +6448,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -6486,13 +6486,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level", "3": "realms_upload" - } + }, + "type": "zigzag32" } ] }, @@ -6653,12 +6653,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -6699,12 +6699,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "zigzag32" } ] }, @@ -7018,13 +7018,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -7051,14 +7051,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -7111,14 +7111,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -7196,7 +7196,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -7395,7 +7394,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -7421,11 +7421,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -7447,7 +7447,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -7507,7 +7506,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -7529,12 +7529,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -7648,13 +7648,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -7669,8 +7669,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -7825,11 +7825,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -7855,7 +7855,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -7865,7 +7864,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -7880,7 +7880,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -7889,7 +7889,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -8082,12 +8082,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -8166,34 +8166,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -8365,13 +8365,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -8389,7 +8389,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -8423,7 +8422,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -8453,13 +8453,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -8682,7 +8682,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -8693,7 +8692,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -8704,45 +8704,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "filtered_title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "query": [ "container", [ { @@ -8751,7 +8713,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -8782,9 +8744,21 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "filtered_title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -8811,6 +8785,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -8899,8 +8899,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -9022,7 +9022,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -9043,7 +9042,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -9052,13 +9052,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -9144,12 +9144,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -9170,28 +9170,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -9230,6 +9230,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -9242,12 +9251,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -9260,15 +9269,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -9316,13 +9316,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -9368,10 +9368,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -9479,7 +9479,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -9489,7 +9488,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -9592,7 +9592,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -9603,7 +9602,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -9707,12 +9707,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -9799,14 +9799,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -9821,23 +9821,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -9864,16 +9847,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -9893,6 +9880,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -9912,7 +9912,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9921,7 +9920,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9934,7 +9934,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9943,7 +9942,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -10041,11 +10041,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -10134,11 +10134,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -10178,12 +10178,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -10194,8 +10194,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -10233,12 +10233,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -10280,12 +10280,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -10379,18 +10379,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -10401,11 +10401,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -10428,10 +10428,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -10473,12 +10473,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -10715,11 +10715,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -10784,13 +10784,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -10824,12 +10824,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -11029,11 +11029,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -11047,12 +11047,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -11096,7 +11096,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -11115,7 +11114,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -11133,11 +11133,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -11187,14 +11187,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -11203,7 +11203,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -11215,7 +11214,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -11224,12 +11224,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -11334,7 +11334,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -11347,7 +11347,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -11386,7 +11386,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -11428,7 +11428,6 @@ "InputFlag": [ "bitflags", { - "type": "varint128", "big": true, "flags": [ "ascend", @@ -11496,7 +11495,8 @@ "sneak_released_raw", "sneak_pressed_raw", "sneak_current_raw" - ] + ], + "type": "varint128" } ], "packet_creative_content": [ @@ -11516,7 +11516,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "all", "1": "construction", @@ -11524,7 +11523,8 @@ "3": "equipment", "4": "items", "5": "item_command_only" - } + }, + "type": "li32" } ] }, @@ -11680,14 +11680,14 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, + "body": 16, "chest": 2, - "legs": 4, "feet": 8, - "body": 16 - } + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -11747,10 +11747,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -11768,12 +11768,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -11808,10 +11808,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -11820,12 +11820,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -11915,11 +11915,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -11948,11 +11948,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -12031,11 +12031,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -12046,7 +12046,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -12079,7 +12078,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -12157,13 +12157,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -12181,11 +12181,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -12303,7 +12303,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12312,7 +12311,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12325,13 +12325,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -12380,7 +12380,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12389,7 +12388,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12399,10 +12399,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -12411,13 +12411,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low" - } + }, + "type": "u8" } ] }, @@ -12468,8 +12468,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -12549,13 +12549,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -12564,12 +12564,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -12578,7 +12578,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -12586,7 +12585,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -12630,7 +12630,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -12638,7 +12637,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -12661,7 +12661,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -12682,7 +12681,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -12746,7 +12746,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -12767,7 +12766,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -12776,11 +12776,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -12814,17 +12814,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -12989,14 +12989,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -13038,15 +13038,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -13112,14 +13112,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -13161,7 +13161,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -13195,7 +13194,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ] }, @@ -13401,11 +13401,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -13444,7 +13444,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -13453,7 +13452,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -13462,13 +13462,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -13481,13 +13481,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -13496,13 +13496,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -13526,11 +13526,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "varint" } ] } @@ -13539,7 +13539,6 @@ "Element": [ "mapper", { - "type": "varint", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -13554,7 +13553,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "varint" } ], "packet_award_achievement": [ @@ -13674,11 +13674,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "u8" } ] }, @@ -13687,11 +13687,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "clear" - } + }, + "type": "u8" } ] } @@ -13741,12 +13741,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "u8" } ] } @@ -13910,11 +13910,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "add_to_existing" - } + }, + "type": "u8" } ] } @@ -13932,11 +13932,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_from_camera_preset", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -14017,13 +14017,13 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "simple", "1": "fancy", "2": "advanced", "3": "ray_traced" - } + }, + "type": "u8" } ] ] @@ -14038,11 +14038,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "stop", "1": "start" - } + }, + "type": "u8" } ] }, @@ -14088,13 +14088,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "clear_all", "1": "remove", "2": "set_int", "3": "set_float" - } + }, + "type": "u8" } ] }, @@ -14105,8 +14105,8 @@ { "compareTo": "type", "fields": { - "set_int": "li32", - "set_float": "lf32" + "set_float": "lf32", + "set_int": "li32" } } ] @@ -14121,11 +14121,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "coordinates", "1": "type_hide" - } + }, + "type": "li32" } ] }, @@ -14155,14 +14155,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] } diff --git a/data/bedrock/1.21.90/protocol.json b/data/bedrock/1.21.90/protocol.json index 4d65dadfb..96e5c0d71 100644 --- a/data/bedrock/1.21.90/protocol.json +++ b/data/bedrock/1.21.90/protocol.json @@ -160,7 +160,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -169,7 +168,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -188,12 +188,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -205,8 +205,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -276,12 +276,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "data_driven", "2": "none" - } + }, + "type": "zigzag32" } ] }, @@ -301,11 +301,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -315,6 +315,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -329,8 +330,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -368,11 +368,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -382,6 +382,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -396,8 +397,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -436,9 +436,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -460,6 +457,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -468,19 +472,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -499,9 +499,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -523,10 +520,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -540,6 +537,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -548,19 +552,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -704,7 +704,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -841,7 +840,8 @@ "133": "bed_enter_position", "134": "seat_third_person_camera_radius", "135": "seat_camera_relax_distance_smoothing" - } + }, + "type": "varint" } ] }, @@ -850,7 +850,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -861,7 +860,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -871,29 +871,29 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2", - "seat_third_person_camera_radius": "lf32", - "seat_camera_relax_distance_smoothing": "lf32" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2", + "seat_camera_relax_distance_smoothing": "lf32", + "seat_third_person_camera_radius": "lf32" + } } ] } @@ -904,7 +904,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -972,13 +971,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1041,7 +1040,8 @@ "wasd_air_controlled", "does_server_auth_only_dismount", "body_rotation_always_follows_head" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1275,12 +1275,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1289,12 +1289,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "varint" } ] }, @@ -1331,11 +1331,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "varint" } ] } @@ -1353,7 +1353,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1361,7 +1360,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1371,6 +1371,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1390,26 +1391,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1442,9 +1442,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1477,7 +1474,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1495,14 +1495,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1517,26 +1517,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1549,28 +1543,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1583,11 +1578,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1609,7 +1609,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1617,7 +1616,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1628,6 +1628,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1641,34 +1650,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1684,15 +1693,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1774,7 +1774,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1786,7 +1785,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1797,48 +1797,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "multi": [ + "container", + [ + { + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1846,7 +1848,7 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { @@ -1854,12 +1856,26 @@ "type": "LatinString" }, { - "name": "input", + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, + { + "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1885,6 +1901,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1895,20 +1915,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1934,6 +1968,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1944,34 +1982,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1997,10 +2021,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2011,34 +2031,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2064,10 +2070,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2078,50 +2080,48 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" }, { - "name": "input_meta", + "name": "priority", "type": "zigzag32" }, { - "name": "output", - "type": "ItemLegacy" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "multi": [ - "container", - [ - { - "name": "uuid", - "type": "uuid" + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2207,13 +2207,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2427,11 +2427,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2601,7 +2601,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2641,7 +2640,8 @@ "35": "stop_flying", "36": "received_server_data", "37": "start_using_item" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2682,7 +2682,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2704,7 +2703,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2715,24 +2715,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2742,122 +2738,128 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", + "name": "recipe_network_id", + "type": "varint" + }, + { + "name": "times_crafted_2", "type": "u8" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "consume": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "create": [ + "destroy": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "beacon_payment": [ + "drop": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], @@ -2878,7 +2880,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2886,111 +2889,108 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -3018,7 +3018,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -3034,7 +3033,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3052,11 +3052,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3152,7 +3152,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3170,7 +3169,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3221,11 +3221,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3263,7 +3263,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3313,7 +3312,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3375,13 +3375,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3390,13 +3390,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3405,12 +3405,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3482,12 +3482,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3521,19 +3521,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3541,13 +3540,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3555,13 +3554,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3572,31 +3571,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3607,31 +3606,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3642,31 +3641,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3705,15 +3704,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3780,13 +3779,13 @@ "62": "crafter", "63": "dynamic", "64": "registry" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4347,13 +4346,13 @@ "556": "record_creator", "557": "record_creator_music_box", "558": "record_precipice" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4455,13 +4454,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4479,13 +4478,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4508,7 +4507,8 @@ "privileged_builder", "vertical_fly_speed", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4519,7 +4519,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4527,7 +4526,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4684,11 +4684,11 @@ [ "mapper", { - "type": "li32", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "li32" } ] ] @@ -4718,14 +4718,14 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] ] @@ -4735,7 +4735,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4859,7 +4858,8 @@ "119": "realms_timeline_required", "120": "guest_withough_host", "121": "failed_to_join_experience" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -4881,11 +4881,11 @@ "MovementEffectType": [ "mapper", { - "type": "varint", "mappings": { "0": "GLIDE_BOOST", "-1": "invalid" - } + }, + "type": "varint" } ], "BiomeDefinition": [ @@ -5325,7 +5325,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "xyz", "1": "xzy", @@ -5333,7 +5332,8 @@ "3": "yzx", "4": "zxy", "5": "zyx" - } + }, + "type": "zigzag32" } ] }, @@ -5395,7 +5395,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "single_valued", "1": "uniform", @@ -5404,7 +5403,8 @@ "4": "fixed_grid", "5": "jittered_grid", "6": "triangle" - } + }, + "type": "zigzag32" } ] } @@ -5553,7 +5553,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -5777,7 +5776,8 @@ "326": "player_location", "327": "clientbound_controls_scheme", "328": "server_script_debug_drawer" - } + }, + "type": "varint" } ] }, @@ -5788,228 +5788,228 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_aim_assist_presets": "packet_camera_aim_assist_presets", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_camera_aim_assist": "packet_client_camera_aim_assist", + "client_cheat_ability": "packet_client_cheat_ability", + "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_controls_scheme": "packet_clientbound_controls_scheme", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_registry": "packet_item_registry", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "movement_effect": "packet_movement_effect", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_location": "packet_player_location", + "player_skin": "packet_player_skin", + "player_update_entity_overrides": "packet_player_update_entity_overrides", + "player_video_capture": "packet_player_video_capture", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", + "server_script_debug_drawer": "packet_server_script_debug_drawer", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "serverbound_diagnostics": "packet_serverbound_diagnostics", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_movement_authority": "packet_set_movement_authority", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_registry": "packet_item_registry", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", - "update_abilities": "packet_update_abilities", - "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", - "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", - "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup", - "movement_effect": "packet_movement_effect", - "set_movement_authority": "packet_set_movement_authority", - "camera_aim_assist_presets": "packet_camera_aim_assist_presets", - "client_camera_aim_assist": "packet_client_camera_aim_assist", - "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", + "update_abilities": "packet_update_abilities", + "update_adventure_settings": "packet_update_adventure_settings", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_client_input_locks": "packet_update_client_input_locks", "update_client_options": "packet_update_client_options", - "player_video_capture": "packet_player_video_capture", - "player_update_entity_overrides": "packet_player_update_entity_overrides", - "player_location": "packet_player_location", - "clientbound_controls_scheme": "packet_clientbound_controls_scheme", - "server_script_debug_drawer": "packet_server_script_debug_drawer" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -6056,7 +6056,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -6068,7 +6067,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -6104,9 +6104,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -6119,7 +6116,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -6207,14 +6207,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -6232,7 +6232,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -6246,7 +6245,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -6261,7 +6261,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -6274,7 +6274,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -6287,20 +6287,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -6309,7 +6305,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -6318,25 +6314,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -6345,7 +6361,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -6354,26 +6370,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -6392,22 +6398,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -6478,12 +6478,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -6516,13 +6516,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level", "3": "realms_upload" - } + }, + "type": "zigzag32" } ] }, @@ -6683,12 +6683,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -7038,13 +7038,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -7071,14 +7071,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -7131,14 +7131,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -7216,7 +7216,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -7415,7 +7414,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -7441,11 +7441,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -7467,7 +7467,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -7527,7 +7526,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -7549,12 +7549,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -7668,13 +7668,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -7689,8 +7689,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -7845,11 +7845,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -7875,7 +7875,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -7885,7 +7884,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -7900,7 +7900,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -7909,7 +7909,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -8102,12 +8102,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -8186,34 +8186,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -8385,13 +8385,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -8409,7 +8409,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -8443,7 +8442,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -8473,13 +8473,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -8702,7 +8702,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -8713,7 +8712,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -8724,45 +8724,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "filtered_title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "query": [ "container", [ { @@ -8771,7 +8733,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -8802,9 +8764,21 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "filtered_title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -8831,6 +8805,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -8919,8 +8919,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -9042,7 +9042,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -9063,7 +9062,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -9072,13 +9072,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -9164,12 +9164,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -9190,28 +9190,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -9250,6 +9250,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -9262,12 +9271,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -9280,15 +9289,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -9336,13 +9336,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -9388,10 +9388,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -9499,7 +9499,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -9509,7 +9508,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -9612,7 +9612,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -9623,7 +9622,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -9727,12 +9727,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -9819,14 +9819,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -9841,23 +9841,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -9884,16 +9867,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -9913,6 +9900,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -9932,7 +9932,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9941,7 +9940,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9954,7 +9954,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9963,7 +9962,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -10061,11 +10061,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -10154,11 +10154,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -10198,12 +10198,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -10214,8 +10214,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -10253,12 +10253,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -10300,12 +10300,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -10399,18 +10399,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -10421,11 +10421,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -10448,10 +10448,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -10493,12 +10493,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -10735,11 +10735,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -10804,13 +10804,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -10844,12 +10844,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -11049,11 +11049,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -11067,12 +11067,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -11116,7 +11116,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -11135,7 +11134,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -11153,11 +11153,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -11207,14 +11207,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -11223,7 +11223,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -11235,7 +11234,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -11244,12 +11244,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -11354,7 +11354,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -11367,7 +11367,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -11406,7 +11406,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -11448,7 +11448,6 @@ "InputFlag": [ "bitflags", { - "type": "varint128", "big": true, "flags": [ "ascend", @@ -11516,7 +11515,8 @@ "sneak_released_raw", "sneak_pressed_raw", "sneak_current_raw" - ] + ], + "type": "varint128" } ], "packet_creative_content": [ @@ -11536,7 +11536,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "all", "1": "construction", @@ -11544,7 +11543,8 @@ "3": "equipment", "4": "items", "5": "item_command_only" - } + }, + "type": "li32" } ] }, @@ -11700,14 +11700,14 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, + "body": 16, "chest": 2, - "legs": 4, "feet": 8, - "body": 16 - } + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -11767,10 +11767,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -11788,12 +11788,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -11828,10 +11828,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -11840,12 +11840,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -11935,11 +11935,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -11968,11 +11968,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -12051,11 +12051,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -12066,7 +12066,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -12099,7 +12098,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -12177,13 +12177,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -12201,11 +12201,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -12302,14 +12302,14 @@ "HeightMapDataType": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low", "4": "all_copied" - } + }, + "type": "u8" } ], "SubChunkEntryWithoutCaching": [ @@ -12336,7 +12336,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12345,7 +12344,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12423,7 +12423,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12432,7 +12431,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12442,10 +12442,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -12521,8 +12521,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -12602,13 +12602,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -12617,12 +12617,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -12631,7 +12631,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -12639,7 +12638,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -12683,7 +12683,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -12691,7 +12690,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -12714,7 +12714,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -12735,7 +12734,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -12799,7 +12799,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -12820,7 +12819,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -12829,11 +12829,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -12867,17 +12867,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -13042,14 +13042,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -13091,15 +13091,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -13165,14 +13165,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -13214,7 +13214,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -13248,7 +13247,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ] }, @@ -13458,11 +13458,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -13501,7 +13501,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -13510,7 +13509,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -13519,13 +13519,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -13538,13 +13538,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -13553,13 +13553,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -13583,11 +13583,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "varint" } ] } @@ -13596,7 +13596,6 @@ "Element": [ "mapper", { - "type": "varint", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -13611,7 +13610,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "varint" } ], "packet_award_achievement": [ @@ -13731,11 +13731,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "u8" } ] }, @@ -13744,11 +13744,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "clear" - } + }, + "type": "u8" } ] } @@ -13798,12 +13798,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "u8" } ] } @@ -13967,11 +13967,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "add_to_existing" - } + }, + "type": "u8" } ] } @@ -13989,11 +13989,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_from_camera_preset", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -14074,13 +14074,13 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "simple", "1": "fancy", "2": "advanced", "3": "ray_traced" - } + }, + "type": "u8" } ] ] @@ -14095,11 +14095,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "stop", "1": "start" - } + }, + "type": "u8" } ] }, @@ -14145,13 +14145,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "clear_all", "1": "remove", "2": "set_int", "3": "set_float" - } + }, + "type": "u8" } ] }, @@ -14162,8 +14162,8 @@ { "compareTo": "type", "fields": { - "set_int": "li32", - "set_float": "lf32" + "set_float": "lf32", + "set_int": "li32" } } ] @@ -14178,11 +14178,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "coordinates", "1": "type_hide" - } + }, + "type": "li32" } ] }, @@ -14212,14 +14212,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] } @@ -14248,7 +14248,6 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "line", "1": "box", @@ -14256,7 +14255,8 @@ "3": "circle", "4": "text", "5": "arrow" - } + }, + "type": "u8" } ] ] diff --git a/data/bedrock/1.21.93/protocol.json b/data/bedrock/1.21.93/protocol.json index 4d65dadfb..96e5c0d71 100644 --- a/data/bedrock/1.21.93/protocol.json +++ b/data/bedrock/1.21.93/protocol.json @@ -160,7 +160,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -169,7 +168,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRule": [ @@ -188,12 +188,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -205,8 +205,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "zigzag32", - "float": "lf32" + "float": "lf32", + "int": "zigzag32" } } ] @@ -276,12 +276,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "data_driven", "2": "none" - } + }, + "type": "zigzag32" } ] }, @@ -301,11 +301,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -315,6 +315,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -329,8 +330,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -368,11 +368,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -382,6 +382,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -396,8 +397,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -436,9 +436,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -460,6 +457,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -468,19 +472,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -499,9 +499,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -523,10 +520,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -540,6 +537,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -548,19 +552,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -704,7 +704,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -841,7 +840,8 @@ "133": "bed_enter_position", "134": "seat_third_person_camera_radius", "135": "seat_camera_relax_distance_smoothing" - } + }, + "type": "varint" } ] }, @@ -850,7 +850,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -861,7 +860,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -871,29 +871,29 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2", - "seat_third_person_camera_radius": "lf32", - "seat_camera_relax_distance_smoothing": "lf32" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2", + "seat_camera_relax_distance_smoothing": "lf32", + "seat_third_person_camera_radius": "lf32" + } } ] } @@ -904,7 +904,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -972,13 +971,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1041,7 +1040,8 @@ "wasd_air_controlled", "does_server_auth_only_dismount", "body_rotation_always_follows_head" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1275,12 +1275,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" - } + }, + "type": "varint" } ] }, @@ -1289,12 +1289,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "varint" } ] }, @@ -1331,11 +1331,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "varint" } ] } @@ -1353,7 +1353,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1361,7 +1360,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1371,6 +1371,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1390,26 +1391,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1442,9 +1442,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1477,7 +1474,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1495,14 +1495,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1517,26 +1517,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1549,28 +1543,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1583,11 +1578,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1609,7 +1609,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1617,7 +1616,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1628,6 +1628,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1641,34 +1650,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1684,15 +1693,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1774,7 +1774,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1786,7 +1785,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1797,48 +1797,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "multi": [ + "container", + [ + { + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1846,7 +1848,7 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { @@ -1854,12 +1856,26 @@ "type": "LatinString" }, { - "name": "input", + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, + { + "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1885,6 +1901,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1895,20 +1915,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1934,6 +1968,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1944,34 +1982,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -1997,10 +2021,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2011,34 +2031,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2064,10 +2070,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2078,50 +2080,48 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" }, { - "name": "input_meta", + "name": "priority", "type": "zigzag32" }, { - "name": "output", - "type": "ItemLegacy" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "multi": [ - "container", - [ - { - "name": "uuid", - "type": "uuid" + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2207,13 +2207,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2427,11 +2427,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2601,7 +2601,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2641,7 +2640,8 @@ "35": "stop_flying", "36": "received_server_data", "37": "start_using_item" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2682,7 +2682,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2704,7 +2703,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2715,24 +2715,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2742,122 +2738,128 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", + "name": "recipe_network_id", + "type": "varint" + }, + { + "name": "times_crafted_2", "type": "u8" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "consume": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "create": [ + "destroy": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "beacon_payment": [ + "drop": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], @@ -2878,7 +2880,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2886,111 +2889,108 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -3018,7 +3018,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -3034,7 +3033,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3052,11 +3052,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3152,7 +3152,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "player", "1": "block", @@ -3170,7 +3169,8 @@ "13": "game_director_entity_server", "14": "script", "15": "executor" - } + }, + "type": "varint" } ] }, @@ -3221,11 +3221,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3263,7 +3263,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3313,7 +3312,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3375,13 +3375,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3390,13 +3390,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3405,12 +3405,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3482,12 +3482,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3521,19 +3521,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3541,13 +3540,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3555,13 +3554,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3572,31 +3571,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3607,31 +3606,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3642,31 +3641,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3705,15 +3704,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3780,13 +3779,13 @@ "62": "crafter", "63": "dynamic", "64": "registry" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4347,13 +4346,13 @@ "556": "record_creator", "557": "record_creator_music_box", "558": "record_precipice" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4455,13 +4454,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4479,13 +4478,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4508,7 +4507,8 @@ "privileged_builder", "vertical_fly_speed", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4519,7 +4519,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4527,7 +4526,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4684,11 +4684,11 @@ [ "mapper", { - "type": "li32", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "li32" } ] ] @@ -4718,14 +4718,14 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] ] @@ -4735,7 +4735,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -4859,7 +4858,8 @@ "119": "realms_timeline_required", "120": "guest_withough_host", "121": "failed_to_join_experience" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -4881,11 +4881,11 @@ "MovementEffectType": [ "mapper", { - "type": "varint", "mappings": { "0": "GLIDE_BOOST", "-1": "invalid" - } + }, + "type": "varint" } ], "BiomeDefinition": [ @@ -5325,7 +5325,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "xyz", "1": "xzy", @@ -5333,7 +5332,8 @@ "3": "yzx", "4": "zxy", "5": "zyx" - } + }, + "type": "zigzag32" } ] }, @@ -5395,7 +5395,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "single_valued", "1": "uniform", @@ -5404,7 +5403,8 @@ "4": "fixed_grid", "5": "jittered_grid", "6": "triangle" - } + }, + "type": "zigzag32" } ] } @@ -5553,7 +5553,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -5777,7 +5776,8 @@ "326": "player_location", "327": "clientbound_controls_scheme", "328": "server_script_debug_drawer" - } + }, + "type": "varint" } ] }, @@ -5788,228 +5788,228 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_aim_assist_presets": "packet_camera_aim_assist_presets", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_camera_aim_assist": "packet_client_camera_aim_assist", + "client_cheat_ability": "packet_client_cheat_ability", + "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_controls_scheme": "packet_clientbound_controls_scheme", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_registry": "packet_item_registry", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "movement_effect": "packet_movement_effect", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_location": "packet_player_location", + "player_skin": "packet_player_skin", + "player_update_entity_overrides": "packet_player_update_entity_overrides", + "player_video_capture": "packet_player_video_capture", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", + "server_script_debug_drawer": "packet_server_script_debug_drawer", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "serverbound_diagnostics": "packet_serverbound_diagnostics", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_movement_authority": "packet_set_movement_authority", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_registry": "packet_item_registry", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", - "update_abilities": "packet_update_abilities", - "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", - "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", - "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup", - "movement_effect": "packet_movement_effect", - "set_movement_authority": "packet_set_movement_authority", - "camera_aim_assist_presets": "packet_camera_aim_assist_presets", - "client_camera_aim_assist": "packet_client_camera_aim_assist", - "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", + "update_abilities": "packet_update_abilities", + "update_adventure_settings": "packet_update_adventure_settings", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", + "update_client_input_locks": "packet_update_client_input_locks", "update_client_options": "packet_update_client_options", - "player_video_capture": "packet_player_video_capture", - "player_update_entity_overrides": "packet_player_update_entity_overrides", - "player_location": "packet_player_location", - "clientbound_controls_scheme": "packet_clientbound_controls_scheme", - "server_script_debug_drawer": "packet_server_script_debug_drawer" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect" } } ] @@ -6056,7 +6056,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -6068,7 +6067,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -6104,9 +6104,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -6119,7 +6116,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -6207,14 +6207,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -6232,7 +6232,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -6246,7 +6245,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -6261,7 +6261,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -6274,7 +6274,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -6287,20 +6287,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -6309,7 +6305,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -6318,25 +6314,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -6345,7 +6361,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -6354,26 +6370,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -6392,22 +6398,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -6478,12 +6478,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -6516,13 +6516,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level", "3": "realms_upload" - } + }, + "type": "zigzag32" } ] }, @@ -6683,12 +6683,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -7038,13 +7038,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -7071,14 +7071,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -7131,14 +7131,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -7216,7 +7216,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -7415,7 +7414,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -7441,11 +7441,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -7467,7 +7467,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -7527,7 +7526,8 @@ "76": "grow_up", "77": "vibration_detected", "78": "drink_milk" - } + }, + "type": "u8" } ] }, @@ -7549,12 +7549,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -7668,13 +7668,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -7689,8 +7689,8 @@ { "compareTo": "action_id", "fields": { - "mouse_over_entity": "vec3f", - "leave_vehicle": "vec3f" + "leave_vehicle": "vec3f", + "mouse_over_entity": "vec3f" } } ] @@ -7845,11 +7845,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -7875,7 +7875,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "swing_arm", @@ -7885,7 +7884,8 @@ "5": "magic_critical_hit", "128": "row_right", "129": "row_left" - } + }, + "type": "zigzag32" } ] }, @@ -7900,7 +7900,7 @@ { "compareTo": "action_id", "fields": { - "row_right": [ + "row_left": [ "container", [ { @@ -7909,7 +7909,7 @@ } ] ], - "row_left": [ + "row_right": [ "container", [ { @@ -8102,12 +8102,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -8186,34 +8186,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -8385,13 +8385,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -8409,7 +8409,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -8443,7 +8442,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -8473,13 +8473,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -8702,7 +8702,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -8713,7 +8712,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -8724,45 +8724,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "filtered_title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "query": [ "container", [ { @@ -8771,7 +8733,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -8802,9 +8764,21 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "filtered_title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -8831,6 +8805,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -8919,8 +8919,8 @@ "compareTo": "../_enum_type", "fields": { "byte": "u8", - "short": "lu16", - "int": "lu32" + "int": "lu32", + "short": "lu16" } } ] @@ -9042,7 +9042,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -9063,7 +9062,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -9072,13 +9072,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -9164,12 +9164,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -9190,28 +9190,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -9250,6 +9250,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -9262,12 +9271,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -9280,15 +9289,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -9336,13 +9336,13 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "last", "2": "silent", "3": "all", "4": "data_set" - } + }, + "type": "i8" } ] }, @@ -9388,10 +9388,10 @@ "switch", { "compareTo": "output_type", + "default": "void", "fields": { "data_set": "string" - }, - "default": "void" + } } ] } @@ -9499,7 +9499,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -9509,7 +9508,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -9612,7 +9612,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -9623,7 +9622,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -9727,12 +9727,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -9819,14 +9819,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "u8" } ] }, @@ -9841,23 +9841,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "u8" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -9884,16 +9867,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "u8" }, { - "name": "page2", - "type": "u8" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -9913,6 +9900,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "u8" + }, + { + "name": "page2", + "type": "u8" + } + ] ] } } @@ -9932,7 +9932,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9941,7 +9940,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -9954,7 +9954,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -9963,7 +9962,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -10061,11 +10061,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -10154,11 +10154,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -10198,12 +10198,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -10214,8 +10214,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -10253,12 +10253,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -10300,12 +10300,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -10399,18 +10399,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -10421,11 +10421,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -10448,10 +10448,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -10493,12 +10493,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -10735,11 +10735,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -10804,13 +10804,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -10844,12 +10844,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -11049,11 +11049,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -11067,12 +11067,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -11116,7 +11116,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -11135,7 +11134,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -11153,11 +11153,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -11207,14 +11207,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -11223,7 +11223,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -11235,7 +11234,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -11244,12 +11244,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -11354,7 +11354,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -11367,7 +11367,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -11406,7 +11406,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -11448,7 +11448,6 @@ "InputFlag": [ "bitflags", { - "type": "varint128", "big": true, "flags": [ "ascend", @@ -11516,7 +11515,8 @@ "sneak_released_raw", "sneak_pressed_raw", "sneak_current_raw" - ] + ], + "type": "varint128" } ], "packet_creative_content": [ @@ -11536,7 +11536,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "all", "1": "construction", @@ -11544,7 +11543,8 @@ "3": "equipment", "4": "items", "5": "item_command_only" - } + }, + "type": "li32" } ] }, @@ -11700,14 +11700,14 @@ "ArmorDamageType": [ "bitflags", { - "type": "u8", "flags": { - "head": 1, + "body": 16, "chest": 2, - "legs": 4, "feet": 8, - "body": 16 - } + "head": 1, + "legs": 4 + }, + "type": "u8" } ], "packet_code_builder": [ @@ -11767,10 +11767,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -11788,12 +11788,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -11828,10 +11828,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -11840,12 +11840,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -11935,11 +11935,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -11968,11 +11968,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -12051,11 +12051,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "1": "clear", "2": "add_cube" - } + }, + "type": "li32" } ] }, @@ -12066,7 +12066,6 @@ { "compareTo": "type", "fields": { - "clear": "void", "add_cube": [ "container", [ @@ -12099,7 +12098,8 @@ "type": "li64" } ] - ] + ], + "clear": "void" } } ] @@ -12177,13 +12177,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -12201,11 +12201,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -12302,14 +12302,14 @@ "HeightMapDataType": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low", "4": "all_copied" - } + }, + "type": "u8" } ], "SubChunkEntryWithoutCaching": [ @@ -12336,7 +12336,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12345,7 +12344,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12423,7 +12423,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12432,7 +12431,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12442,10 +12442,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -12521,8 +12521,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -12602,13 +12602,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -12617,12 +12617,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -12631,7 +12631,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -12639,7 +12638,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -12683,7 +12683,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -12691,7 +12690,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -12714,7 +12714,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -12735,7 +12734,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -12799,7 +12799,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -12820,7 +12819,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -12829,11 +12829,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -12867,17 +12867,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -13042,14 +13042,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -13091,15 +13091,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -13165,14 +13165,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -13214,7 +13214,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -13248,7 +13247,8 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ] }, @@ -13458,11 +13458,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -13501,7 +13501,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -13510,7 +13509,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -13519,13 +13519,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -13538,13 +13538,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] }, @@ -13553,13 +13553,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "survival", "2": "recipe_book", "3": "creative" - } + }, + "type": "zigzag32" } ] } @@ -13583,11 +13583,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "varint" } ] } @@ -13596,7 +13596,6 @@ "Element": [ "mapper", { - "type": "varint", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -13611,7 +13610,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "varint" } ], "packet_award_achievement": [ @@ -13731,11 +13731,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "u8" } ] }, @@ -13744,11 +13744,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "clear" - } + }, + "type": "u8" } ] } @@ -13798,12 +13798,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "u8" } ] } @@ -13967,11 +13967,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "add_to_existing" - } + }, + "type": "u8" } ] } @@ -13989,11 +13989,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_from_camera_preset", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -14074,13 +14074,13 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "simple", "1": "fancy", "2": "advanced", "3": "ray_traced" - } + }, + "type": "u8" } ] ] @@ -14095,11 +14095,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "stop", "1": "start" - } + }, + "type": "u8" } ] }, @@ -14145,13 +14145,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "clear_all", "1": "remove", "2": "set_int", "3": "set_float" - } + }, + "type": "u8" } ] }, @@ -14162,8 +14162,8 @@ { "compareTo": "type", "fields": { - "set_int": "li32", - "set_float": "lf32" + "set_float": "lf32", + "set_int": "li32" } } ] @@ -14178,11 +14178,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "coordinates", "1": "type_hide" - } + }, + "type": "li32" } ] }, @@ -14212,14 +14212,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] } @@ -14248,7 +14248,6 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "line", "1": "box", @@ -14256,7 +14255,8 @@ "3": "circle", "4": "text", "5": "arrow" - } + }, + "type": "u8" } ] ] diff --git a/data/bedrock/1.26.0/protocol.json b/data/bedrock/1.26.0/protocol.json index f604d3538..cb0758a2f 100644 --- a/data/bedrock/1.26.0/protocol.json +++ b/data/bedrock/1.26.0/protocol.json @@ -160,7 +160,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -169,7 +168,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRuleI32": [ @@ -188,12 +188,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -205,8 +205,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "li32", - "float": "lf32" + "float": "lf32", + "int": "li32" } } ] @@ -229,12 +229,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -246,8 +246,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "varint", - "float": "lf32" + "float": "lf32", + "int": "varint" } } ] @@ -310,12 +310,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "data_driven", "2": "none" - } + }, + "type": "zigzag32" } ] }, @@ -335,11 +335,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -349,6 +349,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -363,8 +364,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -402,11 +402,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -416,6 +416,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -430,8 +431,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -470,9 +470,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -494,6 +491,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -502,19 +506,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -533,9 +533,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -557,10 +554,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -574,6 +571,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -582,19 +586,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -738,7 +738,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -878,7 +877,8 @@ "136": "aim_assist_priority_preset_id", "137": "aim_assist_priority_category_id", "138": "aim_assist_priority_actor_id" - } + }, + "type": "varint" } ] }, @@ -887,7 +887,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -898,7 +897,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -908,29 +908,29 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2", - "seat_third_person_camera_radius": "lf32", - "seat_camera_relax_distance_smoothing": "lf32" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2", + "seat_camera_relax_distance_smoothing": "lf32", + "seat_third_person_camera_radius": "lf32" + } } ] } @@ -941,7 +941,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -1009,13 +1008,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1080,7 +1079,8 @@ "body_rotation_always_follows_head", "can_use_vertical_movement_action", "rotation_locked_to_vehicle" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1314,13 +1314,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block", "3": "attack" - } + }, + "type": "varint" } ] }, @@ -1329,12 +1329,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "varint" } ] }, @@ -1371,11 +1371,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "varint" } ] } @@ -1393,7 +1393,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1401,7 +1400,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1411,6 +1411,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1430,26 +1431,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1482,9 +1482,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1517,7 +1514,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1535,14 +1535,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1557,26 +1557,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1589,28 +1583,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1623,11 +1618,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1649,7 +1649,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1657,7 +1656,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1668,6 +1668,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1681,34 +1690,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1724,15 +1733,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1814,7 +1814,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1826,7 +1825,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1837,69 +1837,85 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" }, { - "name": "network_id", - "type": "varint" + "name": "block", + "type": "string" } ] ], - "shulker_box": [ + "multi": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" + "name": "uuid", + "type": "uuid" }, { - "name": "input", - "type": [ + "name": "network_id", + "type": "varint" + } + ] + ], + "shaped": [ + "container", + [ + { + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, + { + "name": "input", + "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1925,6 +1941,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1935,20 +1955,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1974,6 +2008,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -1984,34 +2022,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2037,10 +2061,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2051,34 +2071,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2104,10 +2110,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2118,50 +2120,48 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" }, { - "name": "input_meta", + "name": "priority", "type": "zigzag32" }, { - "name": "output", - "type": "ItemLegacy" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "multi": [ - "container", - [ - { - "name": "uuid", - "type": "uuid" + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2247,13 +2247,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2467,11 +2467,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2641,7 +2641,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2681,7 +2680,8 @@ "35": "stop_flying", "36": "received_server_data", "37": "start_using_item" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2722,7 +2722,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2744,7 +2743,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2755,24 +2755,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2782,122 +2778,128 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", + "name": "recipe_network_id", + "type": "varint" + }, + { + "name": "times_crafted_2", "type": "u8" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "consume": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "create": [ + "destroy": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "beacon_payment": [ + "drop": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], @@ -2918,7 +2920,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2926,111 +2929,108 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -3058,7 +3058,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -3074,7 +3073,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3092,11 +3092,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3213,11 +3213,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3255,7 +3255,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3305,7 +3304,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3367,13 +3367,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3382,13 +3382,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3397,12 +3397,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3474,12 +3474,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3513,19 +3513,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3533,13 +3532,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3547,13 +3546,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3564,31 +3563,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3599,31 +3598,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3634,31 +3633,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3697,15 +3696,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3772,13 +3771,13 @@ "62": "crafter", "63": "dynamic", "64": "registry" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4377,13 +4376,13 @@ "594": "ItemGoldenSpearUse", "595": "ItemDiamondSpearUse", "596": "ItemNetheriteSpearUse" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4485,13 +4484,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4509,13 +4508,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4538,7 +4537,8 @@ "privileged_builder", "vertical_fly_speed", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4549,7 +4549,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4557,7 +4556,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4714,11 +4714,11 @@ [ "mapper", { - "type": "li32", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "li32" } ] ] @@ -4748,14 +4748,14 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] ] @@ -4917,7 +4917,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "unknown", "1": "invalid_size_unknown", @@ -5000,7 +4999,8 @@ "78": "scripting_context_run", "79": "data_driven_ui", "80": "data_driven_ui_defs" - } + }, + "type": "u8" } ] }, @@ -5148,7 +5148,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -5283,7 +5282,8 @@ "130": "editor_mismatch_editor_to_vanilla", "131": "editor_mismatch_vanilla_to_editor", "132": "deny_listed" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -5305,11 +5305,11 @@ "MovementEffectType": [ "mapper", { - "type": "varint", "mappings": { "0": "GLIDE_BOOST", "-1": "invalid" - } + }, + "type": "varint" } ], "BiomeDefinition": [ @@ -5751,7 +5751,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "xyz", "1": "xzy", @@ -5759,7 +5758,8 @@ "3": "yzx", "4": "zxy", "5": "zyx" - } + }, + "type": "zigzag32" } ] }, @@ -5821,7 +5821,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "single_valued", "1": "uniform", @@ -5830,7 +5829,8 @@ "4": "fixed_grid", "5": "jittered_grid", "6": "triangle" - } + }, + "type": "zigzag32" } ] } @@ -6009,7 +6009,6 @@ "EaseType": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -6043,17 +6042,18 @@ "29": "InElastic", "30": "OutElastic", "31": "InOutElastic" - } + }, + "type": "u8" } ], "CameraSplineEaseType": [ "mapper", { - "type": "u8", "mappings": { "0": "catmull_rom", "1": "linear" - } + }, + "type": "u8" } ], "ParameterKeyframeValue": [ @@ -6072,7 +6072,6 @@ "GraphicsOverrideParameterType": [ "mapper", { - "type": "u8", "mappings": { "0": "sky_zenith_color", "1": "sky_horizon_color", @@ -6100,7 +6099,8 @@ "23": "midtones_contrast", "24": "highlights_contrast", "25": "shadows_contrast" - } + }, + "type": "u8" } ], "DebugMarkerData": [ @@ -6132,7 +6132,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -6367,7 +6366,8 @@ "337": "voxel_shapes", "338": "camera_spline", "339": "camera_aim_assist_actor_priority" - } + }, + "type": "varint" } ] }, @@ -6378,239 +6378,239 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_aim_assist_actor_priority": "packet_camera_aim_assist_actor_priority", + "camera_aim_assist_presets": "packet_camera_aim_assist_presets", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "camera_spline": "packet_camera_spline", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_camera_aim_assist": "packet_client_camera_aim_assist", + "client_cheat_ability": "packet_client_cheat_ability", + "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_controls_scheme": "packet_clientbound_controls_scheme", + "clientbound_data_driven_ui_close_all_screens": "packet_clientbound_data_driven_ui_close_all_screens", + "clientbound_data_driven_ui_reload": "packet_clientbound_data_driven_ui_reload", + "clientbound_data_driven_ui_show_screen": "packet_clientbound_data_driven_ui_show_screen", + "clientbound_data_store": "packet_clientbound_data_store", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "clientbound_texture_shift": "packet_clientbound_texture_shift", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "graphics_override_parameter": "packet_graphics_override_parameter", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_registry": "packet_item_registry", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", "modal_form_request": "packet_modal_form_request", "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", + "move_player": "packet_move_player", + "movement_effect": "packet_movement_effect", + "multiplayer_settings": "packet_multiplayer_settings", "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_registry": "packet_item_registry", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_location": "packet_player_location", + "player_skin": "packet_player_skin", + "player_update_entity_overrides": "packet_player_update_entity_overrides", + "player_video_capture": "packet_player_video_capture", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", + "server_script_debug_drawer": "packet_server_script_debug_drawer", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "serverbound_data_store": "packet_serverbound_data_store", + "serverbound_diagnostics": "packet_serverbound_diagnostics", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_movement_authority": "packet_set_movement_authority", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", - "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup", - "movement_effect": "packet_movement_effect", - "set_movement_authority": "packet_set_movement_authority", - "camera_aim_assist_presets": "packet_camera_aim_assist_presets", - "client_camera_aim_assist": "packet_client_camera_aim_assist", - "client_movement_prediction_sync": "packet_client_movement_prediction_sync", "update_client_options": "packet_update_client_options", - "player_video_capture": "packet_player_video_capture", - "player_update_entity_overrides": "packet_player_update_entity_overrides", - "player_location": "packet_player_location", - "clientbound_controls_scheme": "packet_clientbound_controls_scheme", - "server_script_debug_drawer": "packet_server_script_debug_drawer", - "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change", - "clientbound_data_store": "packet_clientbound_data_store", - "graphics_override_parameter": "packet_graphics_override_parameter", - "serverbound_data_store": "packet_serverbound_data_store", - "clientbound_data_driven_ui_show_screen": "packet_clientbound_data_driven_ui_show_screen", - "clientbound_data_driven_ui_close_all_screens": "packet_clientbound_data_driven_ui_close_all_screens", - "clientbound_data_driven_ui_reload": "packet_clientbound_data_driven_ui_reload", - "clientbound_texture_shift": "packet_clientbound_texture_shift", - "voxel_shapes": "packet_voxel_shapes", - "camera_spline": "packet_camera_spline", - "camera_aim_assist_actor_priority": "packet_camera_aim_assist_actor_priority" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect", + "voxel_shapes": "packet_voxel_shapes" } } ] @@ -6657,7 +6657,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -6669,7 +6668,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -6705,9 +6705,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -6720,7 +6717,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -6804,14 +6804,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -6833,12 +6833,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "message_only", "1": "authored", "2": "parameters" - } + }, + "type": "u8" } ] }, @@ -6847,7 +6847,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -6861,7 +6860,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -6872,7 +6872,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -6885,7 +6885,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -6898,20 +6898,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -6920,7 +6916,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -6929,25 +6925,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -6956,7 +6972,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -6965,26 +6981,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -7003,22 +7009,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -7101,12 +7101,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -7139,13 +7139,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level", "3": "realms_upload" - } + }, + "type": "zigzag32" } ] }, @@ -7312,12 +7312,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -7683,13 +7683,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -7716,14 +7716,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -7776,14 +7776,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -7861,7 +7861,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -8066,7 +8065,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -8092,11 +8092,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -8118,7 +8118,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -8179,7 +8178,8 @@ "77": "vibration_detected", "78": "drink_milk", "79": "wetness_stop" - } + }, + "type": "u8" } ] }, @@ -8201,12 +8201,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -8324,13 +8324,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -8504,11 +8504,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -8534,7 +8534,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "swing_arm", @@ -8542,7 +8541,8 @@ "3": "wake_up", "4": "critical_hit", "5": "magic_critical_hit" - } + }, + "type": "u8" } ] }, @@ -8750,12 +8750,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -8834,34 +8834,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -9033,13 +9033,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -9057,7 +9057,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -9091,7 +9090,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -9121,13 +9121,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -9356,7 +9356,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -9367,7 +9366,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -9378,45 +9378,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "filtered_title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "query": [ "container", [ { @@ -9425,7 +9387,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -9456,9 +9418,21 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "filtered_title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -9485,6 +9459,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -9680,7 +9680,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -9701,7 +9700,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -9710,13 +9710,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -9802,12 +9802,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -9828,28 +9828,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -9888,6 +9888,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -9900,12 +9909,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -9918,15 +9927,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -10129,7 +10129,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -10139,7 +10138,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -10242,7 +10242,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -10253,7 +10252,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -10357,12 +10357,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -10453,14 +10453,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "varint" } ] }, @@ -10471,23 +10471,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "zigzag32" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -10514,16 +10497,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "zigzag32" }, { - "name": "page2", - "type": "zigzag32" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -10543,6 +10530,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "zigzag32" + }, + { + "name": "page2", + "type": "zigzag32" + } + ] ] } } @@ -10562,7 +10562,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -10571,7 +10570,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -10584,7 +10584,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -10593,7 +10592,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -10691,11 +10691,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -10784,11 +10784,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -10828,12 +10828,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -10844,8 +10844,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -10883,12 +10883,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -10930,12 +10930,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -11029,18 +11029,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -11051,11 +11051,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -11078,10 +11078,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -11123,12 +11123,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -11365,11 +11365,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -11434,13 +11434,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -11474,12 +11474,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -11679,11 +11679,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -11697,12 +11697,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -11746,7 +11746,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -11765,7 +11764,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -11783,11 +11783,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -11837,14 +11837,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -11853,7 +11853,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -11865,7 +11864,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -11874,12 +11874,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -11984,7 +11984,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -11997,7 +11997,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -12036,7 +12036,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -12078,7 +12078,6 @@ "InputFlag": [ "bitflags", { - "type": "varint128", "big": true, "flags": [ "ascend", @@ -12146,7 +12145,8 @@ "sneak_released_raw", "sneak_pressed_raw", "sneak_current_raw" - ] + ], + "type": "varint128" } ], "packet_creative_content": [ @@ -12166,7 +12166,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "all", "1": "construction", @@ -12174,7 +12173,8 @@ "3": "equipment", "4": "items", "5": "item_command_only" - } + }, + "type": "li32" } ] }, @@ -12281,14 +12281,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "helmet", "1": "chestplate", "2": "leggings", "3": "boots", "4": "body" - } + }, + "type": "u8" } ] }, @@ -12355,10 +12355,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -12376,12 +12376,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -12416,10 +12416,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -12428,12 +12428,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -12523,11 +12523,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -12556,11 +12556,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -12711,13 +12711,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -12735,11 +12735,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -12836,14 +12836,14 @@ "HeightMapDataType": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low", "4": "all_copied" - } + }, + "type": "u8" } ], "SubChunkEntryWithoutCaching": [ @@ -12870,7 +12870,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12879,7 +12878,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12957,7 +12957,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -12966,7 +12965,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -12976,10 +12976,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -13055,8 +13055,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -13136,13 +13136,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -13151,12 +13151,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -13165,7 +13165,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -13173,7 +13172,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -13217,7 +13217,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -13225,7 +13224,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -13248,7 +13248,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -13269,7 +13268,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -13333,7 +13333,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -13354,7 +13353,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -13363,11 +13363,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -13401,17 +13401,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -13576,14 +13576,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -13625,15 +13625,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -13699,14 +13699,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -14001,11 +14001,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -14044,7 +14044,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -14053,7 +14052,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -14062,13 +14062,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -14081,13 +14081,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "inventory_only", "2": "default", "3": "recipe_book_only" - } + }, + "type": "zigzag32" } ] }, @@ -14096,13 +14096,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "inventory_only", "2": "default", "3": "recipe_book_only" - } + }, + "type": "zigzag32" } ] } @@ -14126,11 +14126,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "varint" } ] } @@ -14139,7 +14139,6 @@ "Element": [ "mapper", { - "type": "varint", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -14154,7 +14153,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "varint" } ], "packet_award_achievement": [ @@ -14284,11 +14284,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "u8" } ] }, @@ -14297,11 +14297,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -14355,12 +14355,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "u8" } ] } @@ -14594,11 +14594,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "add_to_existing" - } + }, + "type": "u8" } ] } @@ -14616,11 +14616,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_from_camera_preset", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -14701,13 +14701,13 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "simple", "1": "fancy", "2": "advanced", "3": "ray_traced" - } + }, + "type": "u8" } ] ] @@ -14722,11 +14722,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "stop", "1": "start" - } + }, + "type": "u8" } ] }, @@ -14772,13 +14772,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "clear_all", "1": "remove", "2": "set_int", "3": "set_float" - } + }, + "type": "u8" } ] }, @@ -14789,8 +14789,8 @@ { "compareTo": "type", "fields": { - "set_int": "li32", - "set_float": "lf32" + "set_float": "lf32", + "set_int": "li32" } } ] @@ -14805,11 +14805,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "coordinates", "1": "type_hide" - } + }, + "type": "li32" } ] }, @@ -14839,14 +14839,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] } @@ -14875,7 +14875,6 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "line", "1": "box", @@ -14883,7 +14882,8 @@ "3": "circle", "4": "text", "5": "arrow" - } + }, + "type": "u8" } ] ] @@ -14993,12 +14993,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "float", "1": "bool", "2": "string" - } + }, + "type": "varint" } ] }, @@ -15009,8 +15009,8 @@ { "compareTo": "type", "fields": { - "float": "lf32", "bool": "bool", + "float": "lf32", "string": "string" } } @@ -15038,12 +15038,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "update", "1": "change", "2": "removal" - } + }, + "type": "varint" } ] }, @@ -15054,7 +15054,7 @@ { "compareTo": "type", "fields": { - "update": [ + "change": [ "container", [ { @@ -15066,20 +15066,20 @@ "type": "string" }, { - "name": "path", - "type": "string" + "name": "update_count", + "type": "varint" }, { "name": "data_type", "type": [ "mapper", { - "type": "varint", "mappings": { "0": "double", "1": "bool", "2": "string" - } + }, + "type": "varint" } ] }, @@ -15090,24 +15090,25 @@ { "compareTo": "data_type", "fields": { - "double": "lf64", "bool": "bool", + "double": "lf64", "string": "string" } } ] - }, - { - "name": "update_count", - "type": "li32" - }, + } + ] + ], + "removal": [ + "container", + [ { - "name": "path_update_count", - "type": "li32" + "name": "name", + "type": "string" } ] ], - "change": [ + "update": [ "container", [ { @@ -15119,20 +15120,20 @@ "type": "string" }, { - "name": "update_count", - "type": "varint" + "name": "path", + "type": "string" }, { "name": "data_type", "type": [ "mapper", { - "type": "varint", "mappings": { "0": "double", "1": "bool", "2": "string" - } + }, + "type": "varint" } ] }, @@ -15143,21 +15144,20 @@ { "compareTo": "data_type", "fields": { - "double": "lf64", "bool": "bool", + "double": "lf64", "string": "string" } } ] - } - ] - ], - "removal": [ - "container", - [ + }, { - "name": "name", - "type": "string" + "name": "update_count", + "type": "li32" + }, + { + "name": "path_update_count", + "type": "li32" } ] ] @@ -15227,12 +15227,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "double", "1": "bool", "2": "string" - } + }, + "type": "varint" } ] }, @@ -15243,8 +15243,8 @@ { "compareTo": "data_type", "fields": { - "double": "lf64", "bool": "bool", + "double": "lf64", "string": "string" } } @@ -15285,14 +15285,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "initialize", "2": "start", "3": "set_enabled", "4": "sync" - } + }, + "type": "u8" } ] }, diff --git a/data/bedrock/1.26.10/protocol.json b/data/bedrock/1.26.10/protocol.json index aa97d02ae..a80c2b96f 100644 --- a/data/bedrock/1.26.10/protocol.json +++ b/data/bedrock/1.26.10/protocol.json @@ -160,7 +160,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -169,7 +168,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRuleI32": [ @@ -188,12 +188,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -205,8 +205,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "li32", - "float": "lf32" + "float": "lf32", + "int": "li32" } } ] @@ -229,12 +229,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -246,8 +246,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "varint", - "float": "lf32" + "float": "lf32", + "int": "varint" } } ] @@ -310,12 +310,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "data_driven", "2": "none" - } + }, + "type": "zigzag32" } ] }, @@ -335,11 +335,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -349,6 +349,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -363,8 +364,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -402,11 +402,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -416,6 +416,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -430,8 +431,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -470,9 +470,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -494,6 +491,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -502,19 +506,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -533,9 +533,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -557,10 +554,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -574,6 +571,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -582,19 +586,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -738,7 +738,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -881,7 +880,8 @@ "139": "arrow_shooter_id", "140": "firework_direction", "141": "firework_shooter_id" - } + }, + "type": "varint" } ] }, @@ -890,7 +890,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -901,7 +900,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -911,29 +911,29 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2", - "seat_third_person_camera_radius": "lf32", - "seat_camera_relax_distance_smoothing": "lf32" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2", + "seat_camera_relax_distance_smoothing": "lf32", + "seat_third_person_camera_radius": "lf32" + } } ] } @@ -944,7 +944,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -1012,13 +1011,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1083,7 +1082,8 @@ "body_rotation_always_follows_head", "can_use_vertical_movement_action", "rotation_locked_to_vehicle" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1317,13 +1317,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block", "3": "attack" - } + }, + "type": "varint" } ] }, @@ -1332,12 +1332,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "varint" } ] }, @@ -1374,11 +1374,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "varint" } ] }, @@ -1387,11 +1387,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "off", "1": "on" - } + }, + "type": "u8" } ] } @@ -1409,7 +1409,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1417,7 +1416,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1427,6 +1427,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1446,26 +1447,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1498,9 +1498,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1533,7 +1530,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1551,14 +1551,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1573,26 +1573,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1605,28 +1599,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1639,11 +1634,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1665,7 +1665,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1673,7 +1672,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1684,6 +1684,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1697,34 +1706,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1740,15 +1749,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1830,7 +1830,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1842,7 +1841,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1853,118 +1853,85 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", + "name": "input_meta", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "output", + "type": "ItemLegacy" }, { - "name": "network_id", - "type": "varint" + "name": "block", + "type": "string" } ] ], - "shulker_box": [ + "multi": [ "container", [ - { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] - }, - { - "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, { "name": "uuid", "type": "uuid" }, - { - "name": "block", - "type": "string" - }, - { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" - }, { "name": "network_id", "type": "varint" } ] ], - "shapeless_chemistry": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -1990,6 +1957,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2000,7 +1971,7 @@ } ] ], - "shaped": [ + "shaped_chemistry": [ "container", [ { @@ -2067,34 +2038,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2120,10 +2077,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2134,50 +2087,97 @@ } ] ], - "furnace": [ + "shapeless_chemistry": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" + }, + { + "name": "priority", + "type": "zigzag32" + }, + { + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" + }, + { + "name": "network_id", + "type": "varint" } ] ], - "furnace_with_metadata": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" }, { - "name": "input_meta", - "type": "zigzag32" + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "multi": [ - "container", - [ + }, { - "name": "uuid", - "type": "uuid" + "name": "priority", + "type": "zigzag32" + }, + { + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2263,13 +2263,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2483,11 +2483,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2657,7 +2657,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2697,7 +2696,8 @@ "35": "stop_flying", "36": "received_server_data", "37": "start_using_item" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2738,7 +2738,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2760,7 +2759,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2771,24 +2771,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2798,122 +2794,128 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted_2", + "type": "u8" + }, + { + "name": "times_crafted", + "type": "u8" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "consume": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "create": [ + "destroy": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "beacon_payment": [ + "drop": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], @@ -2934,7 +2936,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -2942,111 +2945,108 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -3074,7 +3074,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -3090,7 +3089,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3108,11 +3108,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3229,11 +3229,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3271,7 +3271,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3321,7 +3320,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3383,13 +3383,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3398,13 +3398,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3413,12 +3413,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3490,12 +3490,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3529,19 +3529,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3549,13 +3548,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3563,13 +3562,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3580,31 +3579,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3615,31 +3614,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3650,31 +3649,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", - "-2": "crafting_add_ingredient", - "-1": "none" - } + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", + "-2": "crafting_add_ingredient", + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3713,15 +3712,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3791,13 +3790,13 @@ "65": "recipe_food", "66": "recipe_blocks", "67": "recipe_furnace_items" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4398,13 +4397,13 @@ "596": "ItemNetheriteSpearUse", "597": "PauseGrowth", "598": "ResetGrowth" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4506,13 +4505,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4530,13 +4529,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4559,7 +4558,8 @@ "privileged_builder", "vertical_fly_speed", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4570,7 +4570,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4578,7 +4577,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4735,11 +4735,11 @@ [ "mapper", { - "type": "li32", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "li32" } ] ] @@ -4769,14 +4769,14 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] ] @@ -4989,7 +4989,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "unknown", "1": "invalid_size_unknown", @@ -5083,7 +5082,8 @@ "89": "gameface_media", "90": "gameface_json", "91": "gameface_script_engine" - } + }, + "type": "u8" } ] }, @@ -5279,7 +5279,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -5414,7 +5413,8 @@ "130": "editor_mismatch_editor_to_vanilla", "131": "editor_mismatch_vanilla_to_editor", "132": "deny_listed" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -5436,11 +5436,11 @@ "MovementEffectType": [ "mapper", { - "type": "varint", "mappings": { "0": "GLIDE_BOOST", "-1": "invalid" - } + }, + "type": "varint" } ], "BiomeDefinition": [ @@ -5882,7 +5882,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "xyz", "1": "xzy", @@ -5890,7 +5889,8 @@ "3": "yzx", "4": "zxy", "5": "zyx" - } + }, + "type": "zigzag32" } ] }, @@ -5952,7 +5952,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "single_valued", "1": "uniform", @@ -5961,7 +5960,8 @@ "4": "fixed_grid", "5": "jittered_grid", "6": "triangle" - } + }, + "type": "zigzag32" } ] } @@ -6140,7 +6140,6 @@ "EaseType": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -6175,7 +6174,8 @@ "30": "OutElastic", "31": "InOutElastic", "32": "InverseLerp" - } + }, + "type": "u8" } ], "ParameterKeyframeValue": [ @@ -6194,7 +6194,6 @@ "GraphicsOverrideParameterType": [ "mapper", { - "type": "u8", "mappings": { "0": "sky_zenith_color", "1": "sky_horizon_color", @@ -6245,7 +6244,8 @@ "46": "flash_illuminance", "47": "ambient_color", "48": "ambient_illuminance" - } + }, + "type": "u8" } ], "DebugMarkerData": [ @@ -6277,14 +6277,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "none", "1": "bool", "2": "int64", "4": "string", "6": "map" - } + }, + "type": "li32" } ] }, @@ -6295,17 +6295,17 @@ { "compareTo": "type", "fields": { - "none": "void", "bool": "bool", "int64": "li64", - "string": "string", "map": [ "array", { "countType": "varint", "type": "DataStoreMapEntry" } - ] + ], + "none": "void", + "string": "string" } } ] @@ -6333,12 +6333,12 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "update", "1": "change", "2": "removal" - } + }, + "type": "lu32" } ] }, @@ -6349,6 +6349,36 @@ { "compareTo": "change_type", "fields": { + "change": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "property", + "type": "string" + }, + { + "name": "update_count", + "type": "lu32" + }, + { + "name": "new_value", + "type": "DataStorePropertyValue" + } + ] + ], + "removal": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "update": [ "container", [ @@ -6369,12 +6399,12 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "double", "1": "bool", "2": "string" - } + }, + "type": "lu32" } ] }, @@ -6385,8 +6415,8 @@ { "compareTo": "data_type", "fields": { - "double": "lf64", "bool": "bool", + "double": "lf64", "string": "string" } } @@ -6401,36 +6431,6 @@ "type": "lu32" } ] - ], - "change": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "property", - "type": "string" - }, - { - "name": "update_count", - "type": "lu32" - }, - { - "name": "new_value", - "type": "DataStorePropertyValue" - } - ] - ], - "removal": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -6518,13 +6518,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "add", "2": "remove", "3": "update" - } + }, + "type": "u8" } ] } @@ -6614,11 +6614,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "float", "1": "string" - } + }, + "type": "varint" } ] }, @@ -6669,12 +6669,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "bool", "1": "float", "2": "colour" - } + }, + "type": "varint" } ] }, @@ -6701,6 +6701,22 @@ } ] ], + "colour": [ + "container", + [ + { + "name": "colour_value", + "type": "li32" + }, + { + "name": "colour_operation", + "type": [ + "option", + "li32" + ] + } + ] + ], "float": [ "container", [ @@ -6730,22 +6746,6 @@ ] } ] - ], - "colour": [ - "container", - [ - { - "name": "colour_value", - "type": "li32" - }, - { - "name": "colour_operation", - "type": [ - "option", - "li32" - ] - } - ] ] } } @@ -6827,7 +6827,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -7068,7 +7067,8 @@ "343": "serverbound_data_driven_screen_closed", "344": "sync_world_clocks", "345": "clientbound_attribute_layer_sync" - } + }, + "type": "varint" } ] }, @@ -7079,245 +7079,245 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_aim_assist_actor_priority": "packet_camera_aim_assist_actor_priority", + "camera_aim_assist_presets": "packet_camera_aim_assist_presets", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "camera_spline": "packet_camera_spline", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_camera_aim_assist": "packet_client_camera_aim_assist", + "client_cheat_ability": "packet_client_cheat_ability", + "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_attribute_layer_sync": "packet_clientbound_attribute_layer_sync", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_controls_scheme": "packet_clientbound_controls_scheme", + "clientbound_data_driven_ui_close_screen": "packet_clientbound_data_driven_ui_close_screen", + "clientbound_data_driven_ui_reload": "packet_clientbound_data_driven_ui_reload", + "clientbound_data_driven_ui_show_screen": "packet_clientbound_data_driven_ui_show_screen", + "clientbound_data_store": "packet_clientbound_data_store", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "clientbound_texture_shift": "packet_clientbound_texture_shift", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "debug_renderer": "packet_debug_renderer", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "graphics_override_parameter": "packet_graphics_override_parameter", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_registry": "packet_item_registry", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "locator_bar": "packet_locator_bar", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "movement_effect": "packet_movement_effect", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "party_changed": "packet_party_changed", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_location": "packet_player_location", + "player_skin": "packet_player_skin", + "player_update_entity_overrides": "packet_player_update_entity_overrides", + "player_video_capture": "packet_player_video_capture", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "resource_packs_ready_for_validation": "packet_resource_packs_ready_for_validation", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", + "server_script_debug_drawer": "packet_server_script_debug_drawer", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_stats": "packet_server_stats", + "server_to_client_handshake": "packet_server_to_client_handshake", + "serverbound_data_driven_screen_closed": "packet_serverbound_data_driven_screen_closed", + "serverbound_data_store": "packet_serverbound_data_store", + "serverbound_diagnostics": "packet_serverbound_diagnostics", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_movement_authority": "packet_set_movement_authority", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_registry": "packet_item_registry", - "filter_text_packet": "packet_filter_text_packet", - "debug_renderer": "packet_debug_renderer", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "sync_world_clocks": "packet_sync_world_clocks", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", - "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup", - "movement_effect": "packet_movement_effect", - "set_movement_authority": "packet_set_movement_authority", - "camera_aim_assist_presets": "packet_camera_aim_assist_presets", - "client_camera_aim_assist": "packet_client_camera_aim_assist", - "client_movement_prediction_sync": "packet_client_movement_prediction_sync", "update_client_options": "packet_update_client_options", - "player_video_capture": "packet_player_video_capture", - "player_update_entity_overrides": "packet_player_update_entity_overrides", - "player_location": "packet_player_location", - "clientbound_controls_scheme": "packet_clientbound_controls_scheme", - "server_script_debug_drawer": "packet_server_script_debug_drawer", - "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change", - "clientbound_data_store": "packet_clientbound_data_store", - "graphics_override_parameter": "packet_graphics_override_parameter", - "serverbound_data_store": "packet_serverbound_data_store", - "clientbound_data_driven_ui_show_screen": "packet_clientbound_data_driven_ui_show_screen", - "clientbound_data_driven_ui_close_screen": "packet_clientbound_data_driven_ui_close_screen", - "clientbound_data_driven_ui_reload": "packet_clientbound_data_driven_ui_reload", - "clientbound_texture_shift": "packet_clientbound_texture_shift", - "voxel_shapes": "packet_voxel_shapes", - "camera_spline": "packet_camera_spline", - "camera_aim_assist_actor_priority": "packet_camera_aim_assist_actor_priority", - "resource_packs_ready_for_validation": "packet_resource_packs_ready_for_validation", - "locator_bar": "packet_locator_bar", - "party_changed": "packet_party_changed", - "serverbound_data_driven_screen_closed": "packet_serverbound_data_driven_screen_closed", - "sync_world_clocks": "packet_sync_world_clocks", - "clientbound_attribute_layer_sync": "packet_clientbound_attribute_layer_sync" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect", + "voxel_shapes": "packet_voxel_shapes" } } ] @@ -7364,7 +7364,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -7376,7 +7375,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -7412,9 +7412,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -7427,7 +7424,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -7511,14 +7511,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -7540,12 +7540,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "message_only", "1": "authored", "2": "parameters" - } + }, + "type": "u8" } ] }, @@ -7554,7 +7554,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -7568,7 +7567,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -7579,7 +7579,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -7592,7 +7592,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -7605,20 +7605,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -7627,7 +7623,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -7636,25 +7632,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -7663,7 +7679,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -7672,26 +7688,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -7710,22 +7716,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -7808,12 +7808,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -7846,13 +7846,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level", "3": "realms_upload" - } + }, + "type": "zigzag32" } ] }, @@ -8019,12 +8019,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -8390,13 +8390,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -8423,14 +8423,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -8483,14 +8483,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -8568,7 +8568,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -8773,7 +8772,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -8799,11 +8799,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -8825,7 +8825,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -8886,7 +8885,8 @@ "77": "vibration_detected", "78": "drink_milk", "79": "wetness_stop" - } + }, + "type": "u8" } ] }, @@ -8908,12 +8908,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -9031,13 +9031,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -9211,11 +9211,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -9241,7 +9241,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "swing_arm", @@ -9249,7 +9248,8 @@ "3": "wake_up", "4": "critical_hit", "5": "magic_critical_hit" - } + }, + "type": "u8" } ] }, @@ -9457,12 +9457,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -9541,34 +9541,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -9740,13 +9740,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -9764,7 +9764,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -9798,7 +9797,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -9828,13 +9828,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -10063,7 +10063,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -10074,7 +10073,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -10085,45 +10085,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "filtered_title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "query": [ "container", [ { @@ -10132,7 +10094,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -10163,9 +10125,21 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "filtered_title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -10192,6 +10166,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -10387,7 +10387,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -10408,7 +10407,8 @@ "62": "json", "71": "block_states", "74": "command" - } + }, + "type": "lu16" } ] }, @@ -10417,13 +10417,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -10509,12 +10509,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -10535,28 +10535,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -10595,6 +10595,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -10607,12 +10616,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -10625,15 +10634,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -10836,7 +10836,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -10846,7 +10845,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -10949,7 +10949,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -10960,7 +10959,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -11064,12 +11064,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -11160,14 +11160,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "varint" } ] }, @@ -11178,23 +11178,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "zigzag32" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -11221,16 +11204,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "zigzag32" }, { - "name": "page2", - "type": "zigzag32" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -11250,6 +11237,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "zigzag32" + }, + { + "name": "page2", + "type": "zigzag32" + } + ] ] } } @@ -11269,7 +11269,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -11278,7 +11277,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -11291,7 +11291,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -11300,7 +11299,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -11398,11 +11398,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -11491,11 +11491,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -11535,12 +11535,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -11551,8 +11551,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -11590,12 +11590,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -11637,12 +11637,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -11736,18 +11736,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -11758,11 +11758,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -11785,10 +11785,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -11830,12 +11830,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -12072,11 +12072,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -12141,13 +12141,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -12181,12 +12181,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -12386,11 +12386,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -12404,12 +12404,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -12453,7 +12453,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -12472,7 +12471,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -12490,11 +12490,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -12544,14 +12544,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -12560,7 +12560,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -12572,7 +12571,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -12581,12 +12581,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -12691,7 +12691,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -12704,7 +12704,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -12743,7 +12743,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -12785,7 +12785,6 @@ "InputFlag": [ "bitflags", { - "type": "varint128", "big": true, "flags": [ "ascend", @@ -12853,7 +12852,8 @@ "sneak_released_raw", "sneak_pressed_raw", "sneak_current_raw" - ] + ], + "type": "varint128" } ], "packet_creative_content": [ @@ -12873,7 +12873,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "all", "1": "construction", @@ -12881,7 +12880,8 @@ "3": "equipment", "4": "items", "5": "item_command_only" - } + }, + "type": "li32" } ] }, @@ -12988,14 +12988,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "helmet", "1": "chestplate", "2": "leggings", "3": "boots", "4": "body" - } + }, + "type": "u8" } ] }, @@ -13062,10 +13062,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -13083,12 +13083,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -13123,10 +13123,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -13135,12 +13135,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -13230,11 +13230,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -13263,11 +13263,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -13418,13 +13418,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -13442,11 +13442,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -13543,14 +13543,14 @@ "HeightMapDataType": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low", "4": "all_copied" - } + }, + "type": "u8" } ], "SubChunkEntryWithoutCaching": [ @@ -13577,7 +13577,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -13586,7 +13585,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -13664,7 +13664,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -13673,7 +13672,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -13683,10 +13683,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -13762,8 +13762,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -13843,13 +13843,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -13858,12 +13858,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -13872,7 +13872,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -13880,7 +13879,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -13924,7 +13924,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -13932,7 +13931,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] } @@ -13955,7 +13955,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -13976,7 +13975,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -14040,7 +14040,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -14061,7 +14060,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -14070,11 +14070,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -14108,17 +14108,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -14283,14 +14283,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -14332,15 +14332,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -14402,14 +14402,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -14704,11 +14704,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -14747,7 +14747,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -14756,7 +14755,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -14765,13 +14765,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -14784,13 +14784,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "inventory_only", "2": "default", "3": "recipe_book_only" - } + }, + "type": "zigzag32" } ] }, @@ -14799,13 +14799,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "inventory_only", "2": "default", "3": "recipe_book_only" - } + }, + "type": "zigzag32" } ] } @@ -14829,11 +14829,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "varint" } ] } @@ -14842,7 +14842,6 @@ "Element": [ "mapper", { - "type": "varint", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -14857,7 +14856,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "varint" } ], "packet_award_achievement": [ @@ -14987,11 +14987,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "u8" } ] }, @@ -15000,11 +15000,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -15058,12 +15058,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "u8" } ] } @@ -15297,11 +15297,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "add_to_existing" - } + }, + "type": "u8" } ] } @@ -15319,11 +15319,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_from_camera_preset", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -15404,13 +15404,13 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "simple", "1": "fancy", "2": "advanced", "3": "ray_traced" - } + }, + "type": "u8" } ] ] @@ -15425,11 +15425,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "stop", "1": "start" - } + }, + "type": "u8" } ] }, @@ -15475,13 +15475,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "clear_all", "1": "remove", "2": "set_int", "3": "set_float" - } + }, + "type": "u8" } ] }, @@ -15492,8 +15492,8 @@ { "compareTo": "type", "fields": { - "set_int": "li32", - "set_float": "lf32" + "set_float": "lf32", + "set_int": "li32" } } ] @@ -15508,11 +15508,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "coordinates", "1": "type_hide" - } + }, + "type": "li32" } ] }, @@ -15542,14 +15542,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] } @@ -15578,7 +15578,6 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "line", "1": "box", @@ -15586,7 +15585,8 @@ "3": "circle", "4": "text", "5": "arrow" - } + }, + "type": "u8" } ] ] @@ -15696,12 +15696,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "float", "1": "bool", "2": "string" - } + }, + "type": "varint" } ] }, @@ -15712,8 +15712,8 @@ { "compareTo": "type", "fields": { - "float": "lf32", "bool": "bool", + "float": "lf32", "string": "string" } } @@ -15800,12 +15800,12 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "double", "1": "bool", "2": "string" - } + }, + "type": "lu32" } ] }, @@ -15816,8 +15816,8 @@ { "compareTo": "data_type", "fields": { - "double": "lf64", "bool": "bool", + "double": "lf64", "string": "string" } } @@ -15877,14 +15877,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "initialize", "2": "start", "3": "set_enabled", "4": "sync" - } + }, + "type": "u8" } ] }, @@ -16026,14 +16026,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "programmatic_close", "1": "programmatic_close_all", "2": "client_canceled", "3": "user_busy", "4": "invalid_form" - } + }, + "type": "u8" } ] } @@ -16047,13 +16047,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "sync_state", "1": "initialize_registry", "2": "add_time_marker", "3": "remove_time_marker" - } + }, + "type": "varint" } ] }, @@ -16064,16 +16064,20 @@ { "compareTo": "payload_type", "fields": { - "sync_state": [ + "add_time_marker": [ "container", [ { - "name": "sync_states", + "name": "add_clock_id", + "type": "varint64" + }, + { + "name": "add_time_markers", "type": [ "array", { "countType": "varint", - "type": "SyncWorldClockStateData" + "type": "TimeMarkerData" } ] } @@ -16094,39 +16098,35 @@ } ] ], - "add_time_marker": [ + "remove_time_marker": [ "container", [ { - "name": "add_clock_id", + "name": "remove_clock_id", "type": "varint64" }, { - "name": "add_time_markers", + "name": "remove_time_marker_ids", "type": [ "array", { "countType": "varint", - "type": "TimeMarkerData" + "type": "varint64" } ] } ] ], - "remove_time_marker": [ + "sync_state": [ "container", [ { - "name": "remove_clock_id", - "type": "varint64" - }, - { - "name": "remove_time_marker_ids", + "name": "sync_states", "type": [ "array", { "countType": "varint", - "type": "varint64" + "type": "SyncWorldClockStateData" } ] } @@ -16146,13 +16146,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "update_layers", "1": "update_settings", "2": "update_environment", "3": "remove_environment" - } + }, + "type": "varint" } ] }, @@ -16163,22 +16163,30 @@ { "compareTo": "payload_type", "fields": { - "update_layers": [ + "remove_environment": [ "container", [ { - "name": "layers", + "name": "layer_name", + "type": "string" + }, + { + "name": "dimension_id", + "type": "zigzag32" + }, + { + "name": "remove_attribute_names", "type": [ "array", { "countType": "varint", - "type": "AttributeLayerData" + "type": "string" } ] } ] ], - "update_settings": [ + "update_environment": [ "container", [ { @@ -16190,35 +16198,33 @@ "type": "zigzag32" }, { - "name": "settings", - "type": "AttributeLayerSettings" + "name": "environment_attributes", + "type": [ + "array", + { + "countType": "varint", + "type": "EnvironmentAttributeData" + } + ] } ] ], - "update_environment": [ + "update_layers": [ "container", [ { - "name": "layer_name", - "type": "string" - }, - { - "name": "dimension_id", - "type": "zigzag32" - }, - { - "name": "environment_attributes", + "name": "layers", "type": [ "array", { "countType": "varint", - "type": "EnvironmentAttributeData" + "type": "AttributeLayerData" } ] } ] ], - "remove_environment": [ + "update_settings": [ "container", [ { @@ -16230,14 +16236,8 @@ "type": "zigzag32" }, { - "name": "remove_attribute_names", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "settings", + "type": "AttributeLayerSettings" } ] ] diff --git a/data/bedrock/1.26.20/protocol.json b/data/bedrock/1.26.20/protocol.json index 72dd095d5..33ed7c44f 100644 --- a/data/bedrock/1.26.20/protocol.json +++ b/data/bedrock/1.26.20/protocol.json @@ -160,7 +160,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -169,7 +168,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRuleI32": [ @@ -188,12 +188,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -205,8 +205,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "li32", - "float": "lf32" + "float": "lf32", + "int": "li32" } } ] @@ -229,12 +229,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -246,8 +246,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "varint", - "float": "lf32" + "float": "lf32", + "int": "varint" } } ] @@ -310,12 +310,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "data_driven", "2": "none" - } + }, + "type": "zigzag32" } ] }, @@ -335,11 +335,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -349,6 +349,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -363,8 +364,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -402,11 +402,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -416,6 +416,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -430,8 +431,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -470,9 +470,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -494,6 +491,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -502,19 +506,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -533,9 +533,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -557,10 +554,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -574,6 +571,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -582,19 +586,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -608,12 +608,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "item_stack_net_id", "1": "item_stack_request_id", "2": "item_stack_legacy_request_id" - } + }, + "type": "varint" } ] }, @@ -648,10 +648,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "void", "fields": { "true": "ItemV4NetIdVariant" - }, - "default": "void" + } } ] }, @@ -665,6 +665,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -673,14 +680,7 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } @@ -824,7 +824,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -969,7 +968,8 @@ "141": "firework_shooter_id", "142": "reserved_139", "143": "nameplate_render_distance_max" - } + }, + "type": "varint" } ] }, @@ -978,7 +978,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -989,7 +988,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -999,29 +999,29 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2", - "seat_third_person_camera_radius": "lf32", - "seat_camera_relax_distance_smoothing": "lf32" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2", + "seat_camera_relax_distance_smoothing": "lf32", + "seat_third_person_camera_radius": "lf32" + } } ] } @@ -1032,7 +1032,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -1100,13 +1099,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1174,7 +1173,8 @@ "uses_legacy_friction", "uses_uniform_air_drag", "nameplate_depth_tested" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1408,13 +1408,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block", "3": "attack" - } + }, + "type": "varint" } ] }, @@ -1423,12 +1423,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "varint" } ] }, @@ -1465,11 +1465,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "varint" } ] }, @@ -1478,11 +1478,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "off", "1": "on" - } + }, + "type": "u8" } ] } @@ -1500,7 +1500,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1508,7 +1507,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1518,6 +1518,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1537,26 +1538,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1589,9 +1589,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1624,7 +1621,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1642,14 +1642,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] }, @@ -1664,26 +1664,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "varint" } ] }, @@ -1696,28 +1690,29 @@ "type": "Item" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "varint" } ] }, @@ -1730,11 +1725,16 @@ "type": "Item" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1756,7 +1756,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1764,7 +1763,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1775,6 +1775,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1788,34 +1797,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1831,15 +1840,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -1921,7 +1921,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -1933,7 +1932,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -1944,48 +1944,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", + "type": "zigzag32" }, { - "name": "priority", - "type": "zigzag32" - }, - { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "ItemLegacy" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "multi": [ + "container", + [ + { + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -1993,20 +1995,34 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -2032,6 +2048,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2042,20 +2062,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -2081,6 +2115,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2091,34 +2129,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2144,10 +2168,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2158,34 +2178,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2211,10 +2217,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2225,50 +2227,48 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" }, { - "name": "input_meta", + "name": "priority", "type": "zigzag32" }, { - "name": "output", - "type": "ItemLegacy" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "multi": [ - "container", - [ - { - "name": "uuid", - "type": "uuid" + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2354,13 +2354,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2574,11 +2574,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2748,7 +2748,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2788,7 +2787,8 @@ "35": "stop_flying", "36": "received_server_data", "37": "start_using_item" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2829,7 +2829,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2851,7 +2850,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -2862,24 +2862,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2889,122 +2885,128 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", + "name": "recipe_network_id", + "type": "varint" + }, + { + "name": "times_crafted_2", "type": "u8" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "consume": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "create": [ + "destroy": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "beacon_payment": [ + "drop": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], @@ -3025,7 +3027,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -3033,111 +3036,108 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -3165,7 +3165,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -3181,7 +3180,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3199,11 +3199,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3320,11 +3320,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3362,7 +3362,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3412,7 +3411,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3474,13 +3474,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3489,13 +3489,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3504,12 +3504,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3581,12 +3581,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3620,19 +3620,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3640,13 +3639,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3654,13 +3653,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3671,31 +3670,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3706,31 +3705,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3741,31 +3740,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3804,15 +3803,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3882,13 +3881,13 @@ "65": "recipe_food", "66": "recipe_blocks", "67": "recipe_furnace_items" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4491,13 +4490,13 @@ "598": "ResetGrowth", "599": "PushedByPlayer", "600": "Bounce" - } + }, + "type": "varint" } ], "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4599,13 +4598,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4623,13 +4622,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4652,7 +4651,8 @@ "privileged_builder", "vertical_fly_speed", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4663,7 +4663,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4671,7 +4670,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4828,11 +4828,11 @@ [ "mapper", { - "type": "li32", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "li32" } ] ] @@ -4862,14 +4862,14 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] ] @@ -5082,7 +5082,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "unknown", "1": "invalid_size_unknown", @@ -5176,7 +5175,8 @@ "89": "gameface_media", "90": "gameface_json", "91": "gameface_script_engine" - } + }, + "type": "u8" } ] }, @@ -5372,7 +5372,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -5511,7 +5510,8 @@ "134": "nonce_not_found", "135": "nonce_expired", "136": "nonce_not_valid" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -5533,11 +5533,11 @@ "MovementEffectType": [ "mapper", { - "type": "varint", "mappings": { "0": "GLIDE_BOOST", "-1": "invalid" - } + }, + "type": "varint" } ], "BiomeDefinition": [ @@ -6048,7 +6048,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "xyz", "1": "xzy", @@ -6056,7 +6055,8 @@ "3": "yzx", "4": "zxy", "5": "zyx" - } + }, + "type": "zigzag32" } ] }, @@ -6118,7 +6118,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "single_valued", "1": "uniform", @@ -6127,7 +6126,8 @@ "4": "fixed_grid", "5": "jittered_grid", "6": "triangle" - } + }, + "type": "zigzag32" } ] } @@ -6306,7 +6306,6 @@ "EaseType": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -6341,7 +6340,8 @@ "30": "OutElastic", "31": "InOutElastic", "32": "InverseLerp" - } + }, + "type": "u8" } ], "ParameterKeyframeValue": [ @@ -6360,7 +6360,6 @@ "GraphicsOverrideParameterType": [ "mapper", { - "type": "u8", "mappings": { "0": "sky_zenith_color", "1": "sky_horizon_color", @@ -6414,7 +6413,8 @@ "49": "emissive_desaturation", "50": "sky_intensity", "51": "orbital_offset_degrees" - } + }, + "type": "u8" } ], "DebugMarkerData": [ @@ -6446,14 +6446,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "none", "1": "bool", "2": "int64", "4": "string", "6": "map" - } + }, + "type": "li32" } ] }, @@ -6464,17 +6464,17 @@ { "compareTo": "type", "fields": { - "none": "void", "bool": "bool", "int64": "li64", - "string": "string", "map": [ "array", { "countType": "varint", "type": "DataStoreMapEntry" } - ] + ], + "none": "void", + "string": "string" } } ] @@ -6502,12 +6502,12 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "update", "1": "change", "2": "removal" - } + }, + "type": "lu32" } ] }, @@ -6518,6 +6518,36 @@ { "compareTo": "change_type", "fields": { + "change": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "property", + "type": "string" + }, + { + "name": "update_count", + "type": "lu32" + }, + { + "name": "new_value", + "type": "DataStorePropertyValue" + } + ] + ], + "removal": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "update": [ "container", [ @@ -6538,12 +6568,12 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "double", "1": "bool", "2": "string" - } + }, + "type": "lu32" } ] }, @@ -6554,8 +6584,8 @@ { "compareTo": "data_type", "fields": { - "double": "lf64", "bool": "bool", + "double": "lf64", "string": "string" } } @@ -6570,36 +6600,6 @@ "type": "lu32" } ] - ], - "change": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "property", - "type": "string" - }, - { - "name": "update_count", - "type": "lu32" - }, - { - "name": "new_value", - "type": "DataStorePropertyValue" - } - ] - ], - "removal": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -6694,13 +6694,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "add", "2": "remove", "3": "update" - } + }, + "type": "u8" } ] } @@ -6790,11 +6790,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "float", "1": "string" - } + }, + "type": "varint" } ] }, @@ -6845,12 +6845,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "bool", "1": "float", "2": "colour" - } + }, + "type": "varint" } ] }, @@ -6877,6 +6877,22 @@ } ] ], + "colour": [ + "container", + [ + { + "name": "colour_value", + "type": "li32" + }, + { + "name": "colour_operation", + "type": [ + "option", + "li32" + ] + } + ] + ], "float": [ "container", [ @@ -6906,22 +6922,6 @@ ] } ] - ], - "colour": [ - "container", - [ - { - "name": "colour_value", - "type": "li32" - }, - { - "name": "colour_operation", - "type": [ - "option", - "li32" - ] - } - ] ] } } @@ -7051,7 +7051,6 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "line", "1": "box", @@ -7059,7 +7058,8 @@ "3": "circle", "4": "text", "5": "arrow" - } + }, + "type": "u8" } ] ] @@ -7126,15 +7126,15 @@ "switch", { "compareTo": "type", + "default": "void", "fields": { - "line": "ShapeLine", + "arrow": "ShapeArrow", "box": "ShapeBox", - "sphere": "ShapeSphere", "circle": "ShapeCircle", - "text": "ShapeText", - "arrow": "ShapeArrow" - }, - "default": "void" + "line": "ShapeLine", + "sphere": "ShapeSphere", + "text": "ShapeText" + } } ] } @@ -7264,7 +7264,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -7507,7 +7506,8 @@ "345": "clientbound_attribute_layer_sync", "346": "server_store_info", "347": "server_presence_info" - } + }, + "type": "varint" } ] }, @@ -7518,247 +7518,247 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_aim_assist_actor_priority": "packet_camera_aim_assist_actor_priority", + "camera_aim_assist_presets": "packet_camera_aim_assist_presets", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "camera_spline": "packet_camera_spline", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_camera_aim_assist": "packet_client_camera_aim_assist", + "client_cheat_ability": "packet_client_cheat_ability", + "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_attribute_layer_sync": "packet_clientbound_attribute_layer_sync", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_controls_scheme": "packet_clientbound_controls_scheme", + "clientbound_data_driven_ui_close_screen": "packet_clientbound_data_driven_ui_close_screen", + "clientbound_data_driven_ui_reload": "packet_clientbound_data_driven_ui_reload", + "clientbound_data_driven_ui_show_screen": "packet_clientbound_data_driven_ui_show_screen", + "clientbound_data_store": "packet_clientbound_data_store", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "clientbound_texture_shift": "packet_clientbound_texture_shift", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "graphics_override_parameter": "packet_graphics_override_parameter", "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", + "hurt_armor": "packet_hurt_armor", + "initiate_web_socket_connection": "packet_initiate_web_socket_connection", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_registry": "packet_item_registry", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", + "lab_table": "packet_lab_table", + "lectern_update": "packet_lectern_update", + "lesson_progress": "packet_lesson_progress", "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "locator_bar": "packet_locator_bar", + "login": "packet_login", + "map_create_locked_copy": "packet_map_create_locked_copy", "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "movement_effect": "packet_movement_effect", + "multiplayer_settings": "packet_multiplayer_settings", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", + "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "party_changed": "packet_party_changed", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", + "player_auth_input": "packet_player_auth_input", + "player_enchant_options": "packet_player_enchant_options", + "player_fog": "packet_player_fog", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_location": "packet_player_location", + "player_skin": "packet_player_skin", + "player_update_entity_overrides": "packet_player_update_entity_overrides", + "player_video_capture": "packet_player_video_capture", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", + "primitive_shapes": "packet_primitive_shapes", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", + "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", "resource_pack_chunk_data": "packet_resource_pack_chunk_data", "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", - "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "resource_packs_ready_for_validation": "packet_resource_packs_ready_for_validation", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "server_post_move": "packet_server_post_move", + "server_presence_info": "packet_server_presence_info", + "server_script_debug_drawer": "packet_server_script_debug_drawer", "server_settings_request": "packet_server_settings_request", "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", + "server_stats": "packet_server_stats", + "server_store_info": "packet_server_store_info", + "server_to_client_handshake": "packet_server_to_client_handshake", + "serverbound_data_driven_screen_closed": "packet_serverbound_data_driven_screen_closed", + "serverbound_data_store": "packet_serverbound_data_store", + "serverbound_diagnostics": "packet_serverbound_diagnostics", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change", + "set_commands_enabled": "packet_set_commands_enabled", "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", + "set_difficulty": "packet_set_difficulty", "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_movement_authority": "packet_set_movement_authority", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", "set_score": "packet_set_score", - "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", + "simulation_type": "packet_simulation_type", + "spawn_experience_orb": "packet_spawn_experience_orb", "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", - "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", - "map_create_locked_copy": "packet_map_create_locked_copy", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", "structure_template_data_export_request": "packet_structure_template_data_export_request", "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", - "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", - "network_settings": "packet_network_settings", - "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", - "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", - "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_registry": "packet_item_registry", - "filter_text_packet": "packet_filter_text_packet", - "primitive_shapes": "packet_primitive_shapes", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", - "remove_volume_entity": "packet_remove_volume_entity", - "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "sync_world_clocks": "packet_sync_world_clocks", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", - "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup", - "movement_effect": "packet_movement_effect", - "set_movement_authority": "packet_set_movement_authority", - "camera_aim_assist_presets": "packet_camera_aim_assist_presets", - "client_camera_aim_assist": "packet_client_camera_aim_assist", - "client_movement_prediction_sync": "packet_client_movement_prediction_sync", "update_client_options": "packet_update_client_options", - "player_video_capture": "packet_player_video_capture", - "player_update_entity_overrides": "packet_player_update_entity_overrides", - "player_location": "packet_player_location", - "clientbound_controls_scheme": "packet_clientbound_controls_scheme", - "server_script_debug_drawer": "packet_server_script_debug_drawer", - "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change", - "clientbound_data_store": "packet_clientbound_data_store", - "graphics_override_parameter": "packet_graphics_override_parameter", - "serverbound_data_store": "packet_serverbound_data_store", - "clientbound_data_driven_ui_show_screen": "packet_clientbound_data_driven_ui_show_screen", - "clientbound_data_driven_ui_close_screen": "packet_clientbound_data_driven_ui_close_screen", - "clientbound_data_driven_ui_reload": "packet_clientbound_data_driven_ui_reload", - "clientbound_texture_shift": "packet_clientbound_texture_shift", - "voxel_shapes": "packet_voxel_shapes", - "camera_spline": "packet_camera_spline", - "camera_aim_assist_actor_priority": "packet_camera_aim_assist_actor_priority", - "resource_packs_ready_for_validation": "packet_resource_packs_ready_for_validation", - "locator_bar": "packet_locator_bar", - "party_changed": "packet_party_changed", - "serverbound_data_driven_screen_closed": "packet_serverbound_data_driven_screen_closed", - "sync_world_clocks": "packet_sync_world_clocks", - "clientbound_attribute_layer_sync": "packet_clientbound_attribute_layer_sync", - "server_store_info": "packet_server_store_info", - "server_presence_info": "packet_server_presence_info" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect", + "voxel_shapes": "packet_voxel_shapes" } } ] @@ -7805,7 +7805,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -7817,7 +7816,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -7853,9 +7853,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -7868,7 +7865,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -7952,14 +7952,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -7981,12 +7981,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "message_only", "1": "authored", "2": "parameters" - } + }, + "type": "u8" } ] }, @@ -7995,7 +7995,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -8009,7 +8008,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -8020,7 +8020,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -8033,7 +8033,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -8046,20 +8046,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -8068,7 +8064,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -8077,25 +8073,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -8104,7 +8120,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -8113,26 +8129,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -8151,22 +8157,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -8249,12 +8249,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -8287,13 +8287,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level", "3": "realms_upload" - } + }, + "type": "zigzag32" } ] }, @@ -8460,12 +8460,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -8831,13 +8831,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -8864,14 +8864,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -8924,14 +8924,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -9009,7 +9009,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -9214,7 +9213,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -9240,11 +9240,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -9266,7 +9266,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -9329,7 +9328,8 @@ "79": "wetness_stop", "80": "kinetic_damage_dealt", "81": "hurt_without_receiving_damage" - } + }, + "type": "u8" } ] }, @@ -9358,12 +9358,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -9481,13 +9481,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -9661,11 +9661,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -9691,7 +9691,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "swing_arm", @@ -9699,7 +9698,8 @@ "3": "wake_up", "4": "critical_hit", "5": "magic_critical_hit" - } + }, + "type": "u8" } ] }, @@ -9913,12 +9913,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -9997,34 +9997,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -10196,13 +10196,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -10220,7 +10220,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -10254,7 +10253,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -10284,13 +10284,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -10519,7 +10519,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "show_bar", "1": "register_player", @@ -10530,7 +10529,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "varint" } ] }, @@ -10541,45 +10541,7 @@ { "compareTo": "type", "fields": { - "show_bar": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "filtered_title", - "type": "string" - }, - { - "name": "progress", - "type": "lf32" - }, - { - "name": "screen_darkening", - "type": "li16" - }, - { - "name": "color", - "type": "varint" - }, - { - "name": "overlay", - "type": "varint" - } - ] - ], - "register_player": [ - "container", - [ - { - "name": "player_id", - "type": "zigzag64" - } - ] - ], - "unregister_player": [ + "query": [ "container", [ { @@ -10588,7 +10550,7 @@ } ] ], - "query": [ + "register_player": [ "container", [ { @@ -10619,9 +10581,21 @@ } ] ], - "update_properties": [ + "show_bar": [ "container", [ + { + "name": "title", + "type": "string" + }, + { + "name": "filtered_title", + "type": "string" + }, + { + "name": "progress", + "type": "lf32" + }, { "name": "screen_darkening", "type": "li16" @@ -10648,6 +10622,32 @@ "type": "varint" } ] + ], + "unregister_player": [ + "container", + [ + { + "name": "player_id", + "type": "zigzag64" + } + ] + ], + "update_properties": [ + "container", + [ + { + "name": "screen_darkening", + "type": "li16" + }, + { + "name": "color", + "type": "varint" + }, + { + "name": "overlay", + "type": "varint" + } + ] ] } } @@ -10843,7 +10843,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -10864,7 +10863,8 @@ "62": "json", "71": "block_states", "75": "command" - } + }, + "type": "lu16" } ] }, @@ -10873,13 +10873,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -10965,12 +10965,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -10991,28 +10991,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -11051,6 +11051,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -11063,12 +11072,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -11081,15 +11090,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -11292,7 +11292,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -11302,7 +11301,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -11412,7 +11412,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -11423,7 +11422,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -11527,12 +11527,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -11623,14 +11623,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "varint" } ] }, @@ -11641,23 +11641,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "zigzag32" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -11684,16 +11667,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "zigzag32" }, { - "name": "page2", - "type": "zigzag32" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -11713,6 +11700,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "zigzag32" + }, + { + "name": "page2", + "type": "zigzag32" + } + ] ] } } @@ -11732,7 +11732,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -11741,7 +11740,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -11754,7 +11754,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -11763,7 +11762,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -11861,11 +11861,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -11954,11 +11954,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -11998,12 +11998,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -12014,8 +12014,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -12053,12 +12053,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -12100,12 +12100,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -12199,18 +12199,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -12221,11 +12221,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -12248,10 +12248,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -12293,12 +12293,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -12542,11 +12542,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -12611,13 +12611,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -12651,12 +12651,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -12856,11 +12856,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -12874,12 +12874,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -12923,7 +12923,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -12942,7 +12941,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -12960,11 +12960,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -13014,14 +13014,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -13030,7 +13030,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -13042,7 +13041,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -13051,12 +13051,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -13161,7 +13161,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -13174,7 +13174,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -13213,7 +13213,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -13255,7 +13255,6 @@ "InputFlag": [ "bitflags", { - "type": "varint128", "big": true, "flags": [ "ascend", @@ -13323,7 +13322,8 @@ "sneak_released_raw", "sneak_pressed_raw", "sneak_current_raw" - ] + ], + "type": "varint128" } ], "packet_creative_content": [ @@ -13343,7 +13343,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "all", "1": "construction", @@ -13351,7 +13350,8 @@ "3": "equipment", "4": "items", "5": "item_command_only" - } + }, + "type": "li32" } ] }, @@ -13458,14 +13458,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "helmet", "1": "chestplate", "2": "leggings", "3": "boots", "4": "body" - } + }, + "type": "u8" } ] }, @@ -13532,10 +13532,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -13553,12 +13553,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -13593,10 +13593,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -13605,12 +13605,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -13700,11 +13700,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -13733,11 +13733,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -13878,13 +13878,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -13902,11 +13902,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -14003,14 +14003,14 @@ "HeightMapDataType": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low", "4": "all_copied" - } + }, + "type": "u8" } ], "SubChunkEntryWithoutCaching": [ @@ -14037,7 +14037,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -14046,7 +14045,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -14124,7 +14124,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -14133,7 +14132,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -14143,10 +14143,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -14222,8 +14222,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -14303,13 +14303,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -14318,12 +14318,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -14332,7 +14332,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -14340,7 +14339,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -14384,7 +14384,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -14392,7 +14391,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] }, @@ -14419,7 +14419,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -14440,7 +14439,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -14504,7 +14504,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -14525,7 +14524,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -14534,11 +14534,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -14572,17 +14572,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -14747,14 +14747,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -14796,15 +14796,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -14866,14 +14866,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -15168,11 +15168,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -15211,7 +15211,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -15220,7 +15219,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -15229,13 +15229,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -15248,13 +15248,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "inventory_only", "2": "default", "3": "recipe_book_only" - } + }, + "type": "zigzag32" } ] }, @@ -15263,13 +15263,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "inventory_only", "2": "default", "3": "recipe_book_only" - } + }, + "type": "zigzag32" } ] } @@ -15293,11 +15293,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "varint" } ] } @@ -15306,7 +15306,6 @@ "Element": [ "mapper", { - "type": "varint", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -15321,7 +15320,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "varint" } ], "packet_award_achievement": [ @@ -15471,11 +15471,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "u8" } ] }, @@ -15484,11 +15484,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -15542,12 +15542,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "u8" } ] } @@ -15781,11 +15781,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "add_to_existing" - } + }, + "type": "u8" } ] } @@ -15803,11 +15803,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_from_camera_preset", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -15900,13 +15900,13 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "simple", "1": "fancy", "2": "advanced", "3": "ray_traced" - } + }, + "type": "u8" } ] ] @@ -15928,11 +15928,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "stop", "1": "start" - } + }, + "type": "u8" } ] }, @@ -15978,13 +15978,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "clear_all", "1": "remove", "2": "set_int", "3": "set_float" - } + }, + "type": "u8" } ] }, @@ -15995,8 +15995,8 @@ { "compareTo": "type", "fields": { - "set_int": "li32", - "set_float": "lf32" + "set_float": "lf32", + "set_int": "li32" } } ] @@ -16011,11 +16011,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "coordinates", "1": "type_hide" - } + }, + "type": "li32" } ] }, @@ -16045,14 +16045,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] } @@ -16081,7 +16081,6 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "line", "1": "box", @@ -16089,7 +16088,8 @@ "3": "circle", "4": "text", "5": "arrow" - } + }, + "type": "u8" } ] ] @@ -16199,12 +16199,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "float", "1": "bool", "2": "string" - } + }, + "type": "varint" } ] }, @@ -16215,8 +16215,8 @@ { "compareTo": "type", "fields": { - "float": "lf32", "bool": "bool", + "float": "lf32", "string": "string" } } @@ -16303,12 +16303,12 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "double", "1": "bool", "2": "string" - } + }, + "type": "lu32" } ] }, @@ -16319,8 +16319,8 @@ { "compareTo": "data_type", "fields": { - "double": "lf64", "bool": "bool", + "double": "lf64", "string": "string" } } @@ -16380,14 +16380,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "initialize", "2": "start", "3": "set_enabled", "4": "sync" - } + }, + "type": "u8" } ] }, @@ -16532,14 +16532,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "programmatic_close", "1": "programmatic_close_all", "2": "client_canceled", "3": "user_busy", "4": "invalid_form" - } + }, + "type": "u8" } ] } @@ -16553,13 +16553,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "sync_state", "1": "initialize_registry", "2": "add_time_marker", "3": "remove_time_marker" - } + }, + "type": "varint" } ] }, @@ -16570,16 +16570,20 @@ { "compareTo": "payload_type", "fields": { - "sync_state": [ + "add_time_marker": [ "container", [ { - "name": "sync_states", + "name": "add_clock_id", + "type": "varint64" + }, + { + "name": "add_time_markers", "type": [ "array", { "countType": "varint", - "type": "SyncWorldClockStateData" + "type": "TimeMarkerData" } ] } @@ -16600,39 +16604,35 @@ } ] ], - "add_time_marker": [ + "remove_time_marker": [ "container", [ { - "name": "add_clock_id", + "name": "remove_clock_id", "type": "varint64" }, { - "name": "add_time_markers", + "name": "remove_time_marker_ids", "type": [ "array", { "countType": "varint", - "type": "TimeMarkerData" + "type": "varint64" } ] } ] ], - "remove_time_marker": [ + "sync_state": [ "container", [ { - "name": "remove_clock_id", - "type": "varint64" - }, - { - "name": "remove_time_marker_ids", + "name": "sync_states", "type": [ "array", { "countType": "varint", - "type": "varint64" + "type": "SyncWorldClockStateData" } ] } @@ -16652,13 +16652,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "update_layers", "1": "update_settings", "2": "update_environment", "3": "remove_environment" - } + }, + "type": "varint" } ] }, @@ -16669,22 +16669,30 @@ { "compareTo": "payload_type", "fields": { - "update_layers": [ + "remove_environment": [ "container", [ { - "name": "layers", + "name": "layer_name", + "type": "string" + }, + { + "name": "dimension_id", + "type": "zigzag32" + }, + { + "name": "remove_attribute_names", "type": [ "array", { "countType": "varint", - "type": "AttributeLayerData" + "type": "string" } ] } ] ], - "update_settings": [ + "update_environment": [ "container", [ { @@ -16696,35 +16704,33 @@ "type": "zigzag32" }, { - "name": "settings", - "type": "AttributeLayerSettings" + "name": "environment_attributes", + "type": [ + "array", + { + "countType": "varint", + "type": "EnvironmentAttributeData" + } + ] } ] ], - "update_environment": [ + "update_layers": [ "container", [ { - "name": "layer_name", - "type": "string" - }, - { - "name": "dimension_id", - "type": "zigzag32" - }, - { - "name": "environment_attributes", + "name": "layers", "type": [ "array", { "countType": "varint", - "type": "EnvironmentAttributeData" + "type": "AttributeLayerData" } ] } ] ], - "remove_environment": [ + "update_settings": [ "container", [ { @@ -16736,14 +16742,8 @@ "type": "zigzag32" }, { - "name": "remove_attribute_names", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "settings", + "type": "AttributeLayerSettings" } ] ] diff --git a/data/bedrock/1.26.30/protocol.json b/data/bedrock/1.26.30/protocol.json index 4323869ce..53b329d81 100644 --- a/data/bedrock/1.26.30/protocol.json +++ b/data/bedrock/1.26.30/protocol.json @@ -160,7 +160,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -169,7 +168,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRuleI32": [ @@ -188,12 +188,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -205,8 +205,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "li32", - "float": "lf32" + "float": "lf32", + "int": "li32" } } ] @@ -229,12 +229,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -246,8 +246,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "varint", - "float": "lf32" + "float": "lf32", + "int": "varint" } } ] @@ -310,12 +310,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "data_driven", "2": "none" - } + }, + "type": "zigzag32" } ] }, @@ -335,11 +335,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -349,6 +349,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -363,8 +364,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -402,11 +402,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -416,6 +416,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -430,8 +431,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -470,9 +470,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -494,6 +491,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -502,19 +506,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -533,9 +533,6 @@ "switch", { "compareTo": "network_id", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -557,10 +554,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "zigzag32", "fields": { "0": "void" - }, - "default": "zigzag32" + } } ] }, @@ -574,6 +571,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -582,19 +586,15 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } @@ -608,12 +608,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "item_stack_net_id", "1": "item_stack_request_id", "2": "item_stack_legacy_request_id" - } + }, + "type": "varint" } ] }, @@ -648,10 +648,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "void", "fields": { "true": "ItemV4NetIdVariant" - }, - "default": "void" + } } ] }, @@ -665,6 +665,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -673,14 +680,7 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } @@ -848,7 +848,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -993,7 +992,8 @@ "141": "firework_shooter_id", "142": "reserved_139", "143": "nameplate_render_distance_max" - } + }, + "type": "varint" } ] }, @@ -1002,7 +1002,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -1013,7 +1012,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -1023,29 +1023,29 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2", - "seat_third_person_camera_radius": "lf32", - "seat_camera_relax_distance_smoothing": "lf32" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2", + "seat_camera_relax_distance_smoothing": "lf32", + "seat_third_person_camera_radius": "lf32" + } } ] } @@ -1056,7 +1056,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -1124,13 +1123,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1198,7 +1197,8 @@ "uses_legacy_friction", "uses_uniform_air_drag", "nameplate_depth_tested" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1432,13 +1432,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block", "3": "attack" - } + }, + "type": "zigzag32" } ] }, @@ -1447,12 +1447,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "u8" } ] }, @@ -1489,11 +1489,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "u8" } ] }, @@ -1502,11 +1502,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "off", "1": "on" - } + }, + "type": "u8" } ] } @@ -1524,7 +1524,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1532,7 +1531,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1634,7 +1634,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1642,7 +1641,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1652,6 +1652,7 @@ "switch", { "compareTo": "source_type", + "default": "void", "fields": { "container": [ "container", @@ -1671,26 +1672,25 @@ } ] ], - "world_interaction": [ + "craft_slot": [ "container", [ { - "name": "flags", + "name": "action", "type": "varint" } ] ], - "craft_slot": [ + "world_interaction": [ "container", [ { - "name": "action", + "name": "flags", "type": "varint" } ] ] - }, - "default": "void" + } } ] }, @@ -1723,9 +1723,6 @@ "switch", { "compareTo": "legacy_request_id", - "fields": { - "0": "void" - }, "default": [ "array", { @@ -1758,7 +1755,10 @@ ] ] } - ] + ], + "fields": { + "0": "void" + } } ] } @@ -1778,14 +1778,14 @@ [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] ] @@ -1804,26 +1804,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "zigzag32", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "zigzag32" } ] }, @@ -1836,28 +1830,29 @@ "type": "ItemV4" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "zigzag32", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "zigzag32" } ] }, @@ -1870,11 +1865,16 @@ "type": "ItemV4" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1896,7 +1896,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", @@ -1904,7 +1903,8 @@ "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" - } + }, + "type": "u8" } ] }, @@ -1915,6 +1915,15 @@ { "compareTo": "type", "fields": { + "complex_alias": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "int_id_meta": [ "container", [ @@ -1928,34 +1937,34 @@ "switch", { "compareTo": "network_id", + "default": "li16", "fields": { "0": "void" - }, - "default": "li16" + } } ] } ] ], - "molang": [ + "item_tag": [ "container", [ { - "name": "expression", + "name": "tag", "type": "string" - }, - { - "name": "version", - "type": "u8" } ] ], - "item_tag": [ + "molang": [ "container", [ { - "name": "tag", + "name": "expression", "type": "string" + }, + { + "name": "version", + "type": "u8" } ] ], @@ -1971,15 +1980,6 @@ "type": "li16" } ] - ], - "complex_alias": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -2061,7 +2061,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "shapeless", "1": "shaped", @@ -2073,7 +2072,8 @@ "7": "shaped_chemistry", "8": "smithing_transform", "9": "smithing_trim" - } + }, + "type": "zigzag32" } ] }, @@ -2084,48 +2084,50 @@ { "compareTo": "type", "fields": { - "shapeless": [ + "furnace": [ "container", [ { - "name": "recipe_id", - "type": "LatinString" - }, - { - "name": "input", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "input_id", + "type": "zigzag32" }, { "name": "output", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] - }, - { - "name": "uuid", - "type": "uuid" + "type": "ItemLegacy" }, { "name": "block", "type": "string" - }, - { - "name": "priority", + } + ] + ], + "furnace_with_metadata": [ + "container", + [ + { + "name": "input_id", "type": "zigzag32" }, { - "name": "unlocking_requirement", - "type": "RecipeUnlockingRequirement" + "name": "input_meta", + "type": "zigzag32" + }, + { + "name": "output", + "type": "ItemLegacy" + }, + { + "name": "block", + "type": "string" + } + ] + ], + "multi": [ + "container", + [ + { + "name": "uuid", + "type": "uuid" }, { "name": "network_id", @@ -2133,20 +2135,34 @@ } ] ], - "shulker_box": [ + "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -2172,6 +2188,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2182,20 +2202,34 @@ } ] ], - "shapeless_chemistry": [ + "shaped_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, + { + "name": "width", + "type": "zigzag32" + }, + { + "name": "height", + "type": "zigzag32" + }, { "name": "input", "type": [ "array", { - "countType": "varint", - "type": "RecipeIngredient" + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "RecipeIngredient" + } + ] } ] }, @@ -2221,6 +2255,10 @@ "name": "priority", "type": "zigzag32" }, + { + "name": "assume_symmetry", + "type": "bool" + }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2231,34 +2269,20 @@ } ] ], - "shaped": [ + "shapeless": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2284,10 +2308,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2298,34 +2318,20 @@ } ] ], - "shaped_chemistry": [ + "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, - { - "name": "width", - "type": "zigzag32" - }, - { - "name": "height", - "type": "zigzag32" - }, { "name": "input", "type": [ "array", { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "RecipeIngredient" - } - ] + "countType": "varint", + "type": "RecipeIngredient" } ] }, @@ -2351,10 +2357,6 @@ "name": "priority", "type": "zigzag32" }, - { - "name": "assume_symmetry", - "type": "bool" - }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" @@ -2365,50 +2367,48 @@ } ] ], - "furnace": [ + "shulker_box": [ "container", [ { - "name": "input_id", - "type": "zigzag32" + "name": "recipe_id", + "type": "LatinString" + }, + { + "name": "input", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] }, { "name": "output", - "type": "ItemLegacy" + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] + }, + { + "name": "uuid", + "type": "uuid" }, { "name": "block", "type": "string" - } - ] - ], - "furnace_with_metadata": [ - "container", - [ - { - "name": "input_id", - "type": "zigzag32" }, { - "name": "input_meta", + "name": "priority", "type": "zigzag32" }, { - "name": "output", - "type": "ItemLegacy" - }, - { - "name": "block", - "type": "string" - } - ] - ], - "multi": [ - "container", - [ - { - "name": "uuid", - "type": "uuid" + "name": "unlocking_requirement", + "type": "RecipeUnlockingRequirement" }, { "name": "network_id", @@ -2494,13 +2494,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "u8" } ] }, @@ -2714,11 +2714,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -2888,7 +2888,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2928,7 +2927,8 @@ "35": "stop_flying", "36": "received_server_data", "37": "start_using_item" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2969,7 +2969,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "take", "1": "place", @@ -2991,7 +2990,8 @@ "17": "craft_loom_request", "18": "non_implemented", "19": "results_deprecated" - } + }, + "type": "u8" } ] }, @@ -3002,24 +3002,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -3029,122 +3025,128 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "place_in_container": [ + "craft_creative": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "take_out_container": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "cost", + "type": "varint" } ] ], - "swap": [ + "craft_loom_request": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "pattern", + "type": "string" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" - }, - { - "name": "randomly", - "type": "bool" + "name": "times_crafted", + "type": "u8" } ] ], - "destroy": [ + "craft_recipe_auto": [ "container", [ { - "name": "count", + "name": "recipe_network_id", + "type": "varint" + }, + { + "name": "times_crafted_2", "type": "u8" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient" + } + ] } ] ], - "consume": [ + "create": [ "container", [ { - "name": "count", + "name": "result_slot_id", "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" } ] ], - "create": [ + "destroy": [ "container", [ { - "name": "result_slot_id", + "name": "count", "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "beacon_payment": [ + "drop": [ "container", [ { - "name": "primary_effect", - "type": "zigzag32" + "name": "count", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "randomly", + "type": "bool" } ] ], @@ -3165,7 +3167,8 @@ } ] ], - "craft_recipe": [ + "non_implemented": "void", + "optional": [ "container", [ { @@ -3173,111 +3176,108 @@ "type": "varint" }, { - "name": "times_crafted", - "type": "u8" + "name": "filtered_string_index", + "type": "li32" } ] ], - "craft_recipe_auto": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted_2", + "name": "count", "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient" - } - ] + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_creative": [ + "place_in_container": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "optional": [ + "results_deprecated": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "result_items", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemLegacy" + } + ] }, { - "name": "filtered_string_index", - "type": "li32" + "name": "times_crafted", + "type": "u8" } ] ], - "craft_grindstone_request": [ + "swap": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" - }, - { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "cost", - "type": "varint" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "craft_loom_request": [ + "take": [ "container", [ { - "name": "pattern", - "type": "string" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", - "results_deprecated": [ + "take_out_container": [ "container", [ { - "name": "result_items", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemLegacy" - } - ] + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" } ] ] @@ -3305,7 +3305,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -3321,7 +3320,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -3339,11 +3339,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3460,11 +3460,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3502,7 +3502,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3552,7 +3551,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3614,13 +3614,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3629,13 +3629,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3644,12 +3644,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3721,12 +3721,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3760,19 +3760,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3780,13 +3779,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3794,13 +3793,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3811,31 +3810,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3846,31 +3845,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3881,31 +3880,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3944,15 +3943,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -4022,13 +4021,13 @@ "65": "recipe_food", "66": "recipe_blocks", "67": "recipe_furnace_items" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4641,7 +4640,8 @@ "608": "BucketEmptyLandAnimal", "609": "GeyserContinuousEruptionStart", "610": "GeyserContinuousEruptionActive" - } + }, + "type": "varint" } ], "ServerSoundHandle": "lu64", @@ -4649,7 +4649,6 @@ "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4751,13 +4750,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4775,13 +4774,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4804,7 +4803,8 @@ "privileged_builder", "vertical_fly_speed", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4815,7 +4815,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4823,7 +4822,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4980,11 +4980,11 @@ [ "mapper", { - "type": "li32", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "li32" } ] ] @@ -5014,14 +5014,14 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] ] @@ -5234,7 +5234,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "unknown", "1": "invalid_size_unknown", @@ -5328,7 +5327,8 @@ "89": "gameface_media", "90": "gameface_json", "91": "gameface_script_engine" - } + }, + "type": "u8" } ] }, @@ -5537,7 +5537,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -5676,7 +5675,8 @@ "134": "nonce_not_found", "135": "nonce_expired", "136": "nonce_not_valid" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -5698,12 +5698,12 @@ "MovementEffectType": [ "mapper", { - "type": "varint", "mappings": { "0": "GLIDE_BOOST", "1": "GEYSER_BOOST", "-1": "invalid" - } + }, + "type": "varint" } ], "BiomeDefinition": [ @@ -6239,7 +6239,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "xyz", "1": "xzy", @@ -6247,7 +6246,8 @@ "3": "yzx", "4": "zxy", "5": "zyx" - } + }, + "type": "zigzag32" } ] }, @@ -6309,7 +6309,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "single_valued", "1": "uniform", @@ -6318,7 +6317,8 @@ "4": "fixed_grid", "5": "jittered_grid", "6": "triangle" - } + }, + "type": "zigzag32" } ] } @@ -6497,7 +6497,6 @@ "EaseType": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -6532,7 +6531,8 @@ "30": "OutElastic", "31": "InOutElastic", "32": "InverseLerp" - } + }, + "type": "u8" } ], "ParameterKeyframeValue": [ @@ -6551,7 +6551,6 @@ "GraphicsOverrideParameterType": [ "mapper", { - "type": "u8", "mappings": { "0": "sky_zenith_color", "1": "sky_horizon_color", @@ -6605,7 +6604,8 @@ "49": "emissive_desaturation", "50": "sky_intensity", "51": "orbital_offset_degrees" - } + }, + "type": "u8" } ], "DebugMarkerData": [ @@ -6637,14 +6637,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "none", "1": "bool", "2": "int64", "4": "string", "6": "map" - } + }, + "type": "li32" } ] }, @@ -6655,17 +6655,17 @@ { "compareTo": "type", "fields": { - "none": "void", "bool": "bool", "int64": "li64", - "string": "string", "map": [ "array", { "countType": "varint", "type": "DataStoreMapEntry" } - ] + ], + "none": "void", + "string": "string" } } ] @@ -6693,12 +6693,12 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "update", "1": "change", "2": "removal" - } + }, + "type": "lu32" } ] }, @@ -6709,6 +6709,36 @@ { "compareTo": "change_type", "fields": { + "change": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "property", + "type": "string" + }, + { + "name": "update_count", + "type": "lu32" + }, + { + "name": "new_value", + "type": "DataStorePropertyValue" + } + ] + ], + "removal": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "update": [ "container", [ @@ -6729,12 +6759,12 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "double", "1": "bool", "2": "string" - } + }, + "type": "lu32" } ] }, @@ -6745,8 +6775,8 @@ { "compareTo": "data_type", "fields": { - "double": "lf64", "bool": "bool", + "double": "lf64", "string": "string" } } @@ -6761,36 +6791,6 @@ "type": "lu32" } ] - ], - "change": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "property", - "type": "string" - }, - { - "name": "update_count", - "type": "lu32" - }, - { - "name": "new_value", - "type": "DataStorePropertyValue" - } - ] - ], - "removal": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -6885,13 +6885,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "add", "2": "remove", "3": "update" - } + }, + "type": "u8" } ] } @@ -6981,11 +6981,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "float", "1": "string" - } + }, + "type": "varint" } ] }, @@ -7036,12 +7036,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "bool", "1": "float", "2": "colour" - } + }, + "type": "varint" } ] }, @@ -7068,6 +7068,22 @@ } ] ], + "colour": [ + "container", + [ + { + "name": "colour_value", + "type": "li32" + }, + { + "name": "colour_operation", + "type": [ + "option", + "li32" + ] + } + ] + ], "float": [ "container", [ @@ -7097,22 +7113,6 @@ ] } ] - ], - "colour": [ - "container", - [ - { - "name": "colour_value", - "type": "li32" - }, - { - "name": "colour_operation", - "type": [ - "option", - "li32" - ] - } - ] ] } } @@ -7282,7 +7282,6 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "line", "1": "box", @@ -7290,7 +7289,8 @@ "3": "circle", "4": "text", "5": "arrow" - } + }, + "type": "u8" } ] ] @@ -7357,15 +7357,15 @@ "switch", { "compareTo": "type", + "default": "void", "fields": { - "line": "ShapeLine", + "arrow": "ShapeArrow", "box": "ShapeBox", - "sphere": "ShapeSphere", "circle": "ShapeCircle", - "text": "ShapeText", - "arrow": "ShapeArrow" - }, - "default": "void" + "line": "ShapeLine", + "sphere": "ShapeSphere", + "text": "ShapeText" + } } ] } @@ -7495,7 +7495,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -7741,7 +7740,8 @@ "348": "clientbound_update_sound_data", "349": "send_party_destination_cookie", "350": "party_destination_cookie_response" - } + }, + "type": "varint" } ] }, @@ -7752,250 +7752,250 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", - "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", - "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", - "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", - "container_set_data": "packet_container_set_data", - "crafting_data": "packet_crafting_data", - "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", - "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", - "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", + "block_event": "packet_block_event", + "block_pick_request": "packet_block_pick_request", + "book_edit": "packet_book_edit", "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_aim_assist_actor_priority": "packet_camera_aim_assist_actor_priority", + "camera_aim_assist_presets": "packet_camera_aim_assist_presets", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "camera_spline": "packet_camera_spline", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_camera_aim_assist": "packet_client_camera_aim_assist", + "client_cheat_ability": "packet_client_cheat_ability", + "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_attribute_layer_sync": "packet_clientbound_attribute_layer_sync", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_controls_scheme": "packet_clientbound_controls_scheme", + "clientbound_data_driven_ui_close_screen": "packet_clientbound_data_driven_ui_close_screen", + "clientbound_data_driven_ui_reload": "packet_clientbound_data_driven_ui_reload", + "clientbound_data_driven_ui_show_screen": "packet_clientbound_data_driven_ui_show_screen", + "clientbound_data_store": "packet_clientbound_data_store", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "clientbound_texture_shift": "packet_clientbound_texture_shift", + "clientbound_update_sound_data": "packet_clientbound_update_sound_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", "command_block_update": "packet_command_block_update", "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", + "container_close": "packet_container_close", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", + "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", + "crafting_data": "packet_crafting_data", + "crafting_event": "packet_crafting_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", + "event": "packet_event", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", + "game_rules_changed": "packet_game_rules_changed", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "graphics_override_parameter": "packet_graphics_override_parameter", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_registry": "packet_item_registry", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "locator_bar": "packet_locator_bar", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "movement_effect": "packet_movement_effect", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "party_changed": "packet_party_changed", + "party_destination_cookie_response": "packet_party_destination_cookie_response", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_registry": "packet_item_registry", - "filter_text_packet": "packet_filter_text_packet", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_location": "packet_player_location", + "player_skin": "packet_player_skin", + "player_update_entity_overrides": "packet_player_update_entity_overrides", + "player_video_capture": "packet_player_video_capture", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", "primitive_shapes": "packet_primitive_shapes", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "resource_packs_ready_for_validation": "packet_resource_packs_ready_for_validation", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "send_party_destination_cookie": "packet_send_party_destination_cookie", + "server_post_move": "packet_server_post_move", + "server_presence_info": "packet_server_presence_info", + "server_script_debug_drawer": "packet_server_script_debug_drawer", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_stats": "packet_server_stats", + "server_store_info": "packet_server_store_info", + "server_to_client_handshake": "packet_server_to_client_handshake", + "serverbound_data_driven_screen_closed": "packet_serverbound_data_driven_screen_closed", + "serverbound_data_store": "packet_serverbound_data_store", + "serverbound_diagnostics": "packet_serverbound_diagnostics", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_movement_authority": "packet_set_movement_authority", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "sync_world_clocks": "packet_sync_world_clocks", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", - "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup", - "movement_effect": "packet_movement_effect", - "set_movement_authority": "packet_set_movement_authority", - "camera_aim_assist_presets": "packet_camera_aim_assist_presets", - "client_camera_aim_assist": "packet_client_camera_aim_assist", - "client_movement_prediction_sync": "packet_client_movement_prediction_sync", "update_client_options": "packet_update_client_options", - "player_video_capture": "packet_player_video_capture", - "player_update_entity_overrides": "packet_player_update_entity_overrides", - "player_location": "packet_player_location", - "clientbound_controls_scheme": "packet_clientbound_controls_scheme", - "server_script_debug_drawer": "packet_server_script_debug_drawer", - "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change", - "clientbound_data_store": "packet_clientbound_data_store", - "graphics_override_parameter": "packet_graphics_override_parameter", - "serverbound_data_store": "packet_serverbound_data_store", - "clientbound_data_driven_ui_show_screen": "packet_clientbound_data_driven_ui_show_screen", - "clientbound_data_driven_ui_close_screen": "packet_clientbound_data_driven_ui_close_screen", - "clientbound_data_driven_ui_reload": "packet_clientbound_data_driven_ui_reload", - "clientbound_texture_shift": "packet_clientbound_texture_shift", - "voxel_shapes": "packet_voxel_shapes", - "camera_spline": "packet_camera_spline", - "camera_aim_assist_actor_priority": "packet_camera_aim_assist_actor_priority", - "resource_packs_ready_for_validation": "packet_resource_packs_ready_for_validation", - "locator_bar": "packet_locator_bar", - "party_changed": "packet_party_changed", - "serverbound_data_driven_screen_closed": "packet_serverbound_data_driven_screen_closed", - "sync_world_clocks": "packet_sync_world_clocks", - "clientbound_attribute_layer_sync": "packet_clientbound_attribute_layer_sync", - "server_store_info": "packet_server_store_info", - "server_presence_info": "packet_server_presence_info", - "clientbound_update_sound_data": "packet_clientbound_update_sound_data", - "send_party_destination_cookie": "packet_send_party_destination_cookie", - "party_destination_cookie_response": "packet_party_destination_cookie_response" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect", + "voxel_shapes": "packet_voxel_shapes" } } ] @@ -8042,7 +8042,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -8054,7 +8053,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -8090,9 +8090,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -8105,7 +8102,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -8189,14 +8189,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "refused", "2": "send_packs", "3": "have_all_packs", "4": "completed" - } + }, + "type": "u8" } ] }, @@ -8218,12 +8218,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "message_only", "1": "authored", "2": "parameters" - } + }, + "type": "u8" } ] }, @@ -8232,7 +8232,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -8246,7 +8245,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -8257,32 +8257,6 @@ { "compareTo": "type", "fields": { - "chat": [ - "container", - [ - { - "name": "source_name", - "type": "string" - }, - { - "name": "message", - "type": "string" - } - ] - ], - "whisper": [ - "container", - [ - { - "name": "source_name", - "type": "string" - }, - { - "name": "message", - "type": "string" - } - ] - ], "announcement": [ "container", [ @@ -8296,34 +8270,20 @@ } ] ], - "raw": [ - "container", - [ - { - "name": "message", - "type": "string" - } - ] - ], - "tip": [ - "container", - [ - { - "name": "message", - "type": "string" - } - ] - ], - "system": [ + "chat": [ "container", [ + { + "name": "source_name", + "type": "string" + }, { "name": "message", "type": "string" } ] ], - "json_whisper": [ + "json": [ "container", [ { @@ -8332,7 +8292,7 @@ } ] ], - "json": [ + "json_announcement": [ "container", [ { @@ -8341,7 +8301,7 @@ } ] ], - "json_announcement": [ + "json_whisper": [ "container", [ { @@ -8350,7 +8310,7 @@ } ] ], - "translation": [ + "jukebox_popup": [ "container", [ { @@ -8388,7 +8348,34 @@ } ] ], - "jukebox_popup": [ + "raw": [ + "container", + [ + { + "name": "message", + "type": "string" + } + ] + ], + "system": [ + "container", + [ + { + "name": "message", + "type": "string" + } + ] + ], + "tip": [ + "container", + [ + { + "name": "message", + "type": "string" + } + ] + ], + "translation": [ "container", [ { @@ -8406,6 +8393,19 @@ ] } ] + ], + "whisper": [ + "container", + [ + { + "name": "source_name", + "type": "string" + }, + { + "name": "message", + "type": "string" + } + ] ] } } @@ -8486,12 +8486,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -8524,13 +8524,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level", "3": "realms_upload" - } + }, + "type": "zigzag32" } ] }, @@ -8697,12 +8697,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -9080,13 +9080,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -9113,14 +9113,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -9173,14 +9173,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -9258,7 +9258,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -9463,7 +9462,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -9489,11 +9489,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -9515,7 +9515,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -9578,7 +9577,8 @@ "79": "wetness_stop", "80": "kinetic_damage_dealt", "81": "hurt_without_receiving_damage" - } + }, + "type": "u8" } ] }, @@ -9607,12 +9607,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -9730,13 +9730,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -9910,11 +9910,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -9940,7 +9940,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "swing_arm", @@ -9948,7 +9947,8 @@ "3": "wake_up", "4": "critical_hit", "5": "magic_critical_hit" - } + }, + "type": "u8" } ] }, @@ -10162,12 +10162,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -10246,34 +10246,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -10445,13 +10445,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -10469,7 +10469,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -10503,7 +10502,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -10533,13 +10533,13 @@ "UpdateMapFlags": [ "bitflags", { - "type": "varint", "flags": [ "void", "texture", "decoration", "initialisation" - ] + ], + "type": "varint" } ], "packet_clientbound_map_item_data": [ @@ -10772,7 +10772,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "show_bar", "1": "register_player", @@ -10783,7 +10782,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "u8" } ] }, @@ -10804,7 +10804,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "pink", "1": "blue", @@ -10814,7 +10813,8 @@ "5": "purple", "6": "rebecca_purple", "7": "white" - } + }, + "type": "u8" } ] }, @@ -10823,14 +10823,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "progress", "1": "notched_6", "2": "notched_10", "3": "notched_12", "4": "notched_20" - } + }, + "type": "u8" } ] } @@ -11024,7 +11024,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -11045,7 +11044,8 @@ "62": "json", "71": "block_states", "75": "command" - } + }, + "type": "lu16" } ] }, @@ -11054,13 +11054,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -11146,12 +11146,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -11172,28 +11172,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -11232,6 +11232,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -11244,12 +11253,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -11262,15 +11271,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -11473,7 +11473,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -11483,7 +11482,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -11593,7 +11593,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -11604,7 +11603,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -11708,12 +11708,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -11804,14 +11804,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "varint" } ] }, @@ -11822,23 +11822,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "zigzag32" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -11865,16 +11848,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "zigzag32" }, { - "name": "page2", - "type": "zigzag32" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -11894,6 +11881,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "zigzag32" + }, + { + "name": "page2", + "type": "zigzag32" + } + ] ] } } @@ -11913,7 +11913,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -11922,7 +11921,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -11935,7 +11935,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -11944,7 +11943,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -12042,11 +12042,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -12135,11 +12135,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "change", "1": "remove" - } + }, + "type": "u8" } ] }, @@ -12179,12 +12179,12 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "i8" } ] }, @@ -12195,8 +12195,8 @@ { "compareTo": "entry_type", "fields": { - "player": "zigzag64", - "entity": "zigzag64" + "entity": "zigzag64", + "player": "zigzag64" } } ] @@ -12234,12 +12234,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -12281,12 +12281,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -12380,18 +12380,18 @@ "DeltaMoveFlags": [ "bitflags", { - "type": "lu16", "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, + "force_move": 256, "has_rot_x": 8, "has_rot_y": 16, "has_rot_z": 32, + "has_x": 1, + "has_y": 2, + "has_z": 4, "on_ground": 64, - "teleport": 128, - "force_move": 256 - } + "teleport": 128 + }, + "type": "lu16" } ], "packet_set_scoreboard_identity": [ @@ -12402,11 +12402,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -12429,10 +12429,10 @@ "switch", { "compareTo": "../action", + "default": "void", "fields": { "register_identity": "zigzag64" - }, - "default": "void" + } } ] } @@ -12474,12 +12474,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -12723,11 +12723,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -12792,13 +12792,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -12832,12 +12832,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -13029,11 +13029,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -13047,12 +13047,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -13096,7 +13096,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -13115,7 +13114,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -13133,11 +13133,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -13187,14 +13187,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -13203,7 +13203,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -13215,7 +13214,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -13224,12 +13224,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -13334,7 +13334,7 @@ { "compareTo": "action", "fields": { - "start_break": [ + "abort_break": [ "container", [ { @@ -13347,7 +13347,7 @@ } ] ], - "abort_break": [ + "continue_break": [ "container", [ { @@ -13386,7 +13386,7 @@ } ] ], - "continue_break": [ + "start_break": [ "container", [ { @@ -13428,7 +13428,6 @@ "InputFlag": [ "bitflags", { - "type": "varint128", "big": true, "flags": [ "ascend", @@ -13496,7 +13495,8 @@ "sneak_released_raw", "sneak_pressed_raw", "sneak_current_raw" - ] + ], + "type": "varint128" } ], "packet_creative_content": [ @@ -13516,7 +13516,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "all", "1": "construction", @@ -13524,7 +13523,8 @@ "3": "equipment", "4": "items", "5": "item_command_only" - } + }, + "type": "li32" } ] }, @@ -13631,14 +13631,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "helmet", "1": "chestplate", "2": "leggings", "3": "boots", "4": "body" - } + }, + "type": "u8" } ] }, @@ -13705,10 +13705,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -13726,12 +13726,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -13766,10 +13766,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -13778,12 +13778,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -13873,11 +13873,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -13906,11 +13906,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -14051,13 +14051,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -14075,11 +14075,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -14176,14 +14176,14 @@ "HeightMapDataType": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low", "4": "all_copied" - } + }, + "type": "u8" } ], "SubChunkEntryWithoutCaching": [ @@ -14210,7 +14210,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -14219,7 +14218,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -14297,7 +14297,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -14306,7 +14305,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -14316,10 +14316,10 @@ "switch", { "compareTo": "result", + "default": "ByteArray", "fields": { "success_all_air": "void" - }, - "default": "ByteArray" + } } ] }, @@ -14395,8 +14395,8 @@ { "compareTo": "cache_enabled", "fields": { - "true": "SubChunkEntryWithCaching", - "false": "SubChunkEntryWithoutCaching" + "false": "SubChunkEntryWithoutCaching", + "true": "SubChunkEntryWithCaching" } } ] @@ -14460,13 +14460,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -14475,12 +14475,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -14489,7 +14489,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -14497,7 +14496,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -14541,7 +14541,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -14549,7 +14548,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] }, @@ -14576,7 +14576,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -14597,7 +14596,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -14661,7 +14661,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -14682,7 +14681,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -14691,11 +14691,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -14729,17 +14729,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -14904,14 +14904,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -14953,15 +14953,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -15023,14 +15023,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -15325,11 +15325,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -15368,7 +15368,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -15377,7 +15376,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -15386,13 +15386,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -15405,13 +15405,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "inventory_only", "2": "default", "3": "recipe_book_only" - } + }, + "type": "zigzag32" } ] }, @@ -15420,13 +15420,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "inventory_only", "2": "default", "3": "recipe_book_only" - } + }, + "type": "zigzag32" } ] } @@ -15450,11 +15450,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "varint" } ] } @@ -15463,7 +15463,6 @@ "Element": [ "mapper", { - "type": "varint", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -15478,7 +15477,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "varint" } ], "packet_award_achievement": [ @@ -15638,11 +15638,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "u8" } ] }, @@ -15651,11 +15651,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -15709,12 +15709,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "u8" } ] } @@ -15948,11 +15948,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "add_to_existing" - } + }, + "type": "u8" } ] } @@ -15970,11 +15970,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_from_camera_preset", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -16067,13 +16067,13 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "simple", "1": "fancy", "2": "advanced", "3": "ray_traced" - } + }, + "type": "u8" } ] ] @@ -16095,11 +16095,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "stop", "1": "start" - } + }, + "type": "u8" } ] }, @@ -16145,13 +16145,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "clear_all", "1": "remove", "2": "set_int", "3": "set_float" - } + }, + "type": "u8" } ] }, @@ -16162,8 +16162,8 @@ { "compareTo": "type", "fields": { - "set_int": "li32", - "set_float": "lf32" + "set_float": "lf32", + "set_int": "li32" } } ] @@ -16178,11 +16178,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "coordinates", "1": "type_hide" - } + }, + "type": "li32" } ] }, @@ -16212,14 +16212,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] } @@ -16248,7 +16248,6 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "line", "1": "box", @@ -16256,7 +16255,8 @@ "3": "circle", "4": "text", "5": "arrow" - } + }, + "type": "u8" } ] ] @@ -16366,12 +16366,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "float", "1": "bool", "2": "string" - } + }, + "type": "varint" } ] }, @@ -16382,8 +16382,8 @@ { "compareTo": "type", "fields": { - "float": "lf32", "bool": "bool", + "float": "lf32", "string": "string" } } @@ -16477,12 +16477,12 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "double", "1": "bool", "2": "string" - } + }, + "type": "lu32" } ] }, @@ -16493,8 +16493,8 @@ { "compareTo": "data_type", "fields": { - "double": "lf64", "bool": "bool", + "double": "lf64", "string": "string" } } @@ -16554,14 +16554,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "initialize", "2": "start", "3": "set_enabled", "4": "sync" - } + }, + "type": "u8" } ] }, @@ -16715,13 +16715,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "sync_state", "1": "initialize_registry", "2": "add_time_marker", "3": "remove_time_marker" - } + }, + "type": "varint" } ] }, @@ -16732,16 +16732,20 @@ { "compareTo": "payload_type", "fields": { - "sync_state": [ + "add_time_marker": [ "container", [ { - "name": "sync_states", + "name": "add_clock_id", + "type": "varint64" + }, + { + "name": "add_time_markers", "type": [ "array", { "countType": "varint", - "type": "SyncWorldClockStateData" + "type": "TimeMarkerData" } ] } @@ -16762,39 +16766,35 @@ } ] ], - "add_time_marker": [ + "remove_time_marker": [ "container", [ { - "name": "add_clock_id", + "name": "remove_clock_id", "type": "varint64" }, { - "name": "add_time_markers", + "name": "remove_time_marker_ids", "type": [ "array", { "countType": "varint", - "type": "TimeMarkerData" + "type": "varint64" } ] } ] ], - "remove_time_marker": [ + "sync_state": [ "container", [ { - "name": "remove_clock_id", - "type": "varint64" - }, - { - "name": "remove_time_marker_ids", + "name": "sync_states", "type": [ "array", { "countType": "varint", - "type": "varint64" + "type": "SyncWorldClockStateData" } ] } @@ -16814,13 +16814,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "update_layers", "1": "update_settings", "2": "update_environment", "3": "remove_environment" - } + }, + "type": "varint" } ] }, @@ -16831,22 +16831,30 @@ { "compareTo": "payload_type", "fields": { - "update_layers": [ + "remove_environment": [ "container", [ { - "name": "layers", + "name": "layer_name", + "type": "string" + }, + { + "name": "dimension_id", + "type": "zigzag32" + }, + { + "name": "remove_attribute_names", "type": [ "array", { "countType": "varint", - "type": "AttributeLayerData" + "type": "string" } ] } ] ], - "update_settings": [ + "update_environment": [ "container", [ { @@ -16858,35 +16866,33 @@ "type": "zigzag32" }, { - "name": "settings", - "type": "AttributeLayerSettings" + "name": "environment_attributes", + "type": [ + "array", + { + "countType": "varint", + "type": "EnvironmentAttributeData" + } + ] } ] ], - "update_environment": [ + "update_layers": [ "container", [ { - "name": "layer_name", - "type": "string" - }, - { - "name": "dimension_id", - "type": "zigzag32" - }, - { - "name": "environment_attributes", + "name": "layers", "type": [ "array", { "countType": "varint", - "type": "EnvironmentAttributeData" + "type": "AttributeLayerData" } ] } ] ], - "remove_environment": [ + "update_settings": [ "container", [ { @@ -16898,14 +16904,8 @@ "type": "zigzag32" }, { - "name": "remove_attribute_names", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "settings", + "type": "AttributeLayerSettings" } ] ] diff --git a/data/bedrock/1.26.40/protocol.json b/data/bedrock/1.26.40/protocol.json index 830b087e3..ec7c869e0 100644 --- a/data/bedrock/1.26.40/protocol.json +++ b/data/bedrock/1.26.40/protocol.json @@ -162,7 +162,6 @@ "GameMode": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "survival", "1": "creative", @@ -171,7 +170,8 @@ "4": "creative_spectator", "5": "fallback", "6": "spectator" - } + }, + "type": "zigzag32" } ], "GameRuleI32": [ @@ -190,12 +190,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -207,8 +207,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "li32", - "float": "lf32" + "float": "lf32", + "int": "li32" } } ] @@ -231,12 +231,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "bool", "2": "int", "3": "float" - } + }, + "type": "varint" } ] }, @@ -248,8 +248,8 @@ "compareTo": "type", "fields": { "bool": "bool", - "int": "varint", - "float": "lf32" + "float": "lf32", + "int": "varint" } } ] @@ -312,12 +312,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "data_driven", "2": "none" - } + }, + "type": "zigzag32" } ] }, @@ -337,11 +337,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -351,6 +351,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -365,8 +366,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -404,11 +404,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "false", "65535": "true" - } + }, + "type": "lu16" } ] }, @@ -418,6 +418,7 @@ "switch", { "compareTo": "has_nbt", + "default": "void", "fields": { "true": [ "container", @@ -432,8 +433,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -484,6 +484,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -492,14 +499,7 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } @@ -530,10 +530,10 @@ "switch", { "compareTo": "has_stack_id", + "default": "void", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -547,6 +547,13 @@ "switch", { "compareTo": "network_id", + "default": [ + "encapsulated", + { + "lengthType": "varint", + "type": "ItemExtraDataWithoutBlockingTick" + } + ], "fields": { "/ShieldItemID": [ "encapsulated", @@ -555,14 +562,7 @@ "type": "ItemExtraDataWithBlockingTick" } ] - }, - "default": [ - "encapsulated", - { - "lengthType": "varint", - "type": "ItemExtraDataWithoutBlockingTick" - } - ] + } } ] } @@ -730,7 +730,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "flags", "1": "health", @@ -875,7 +874,8 @@ "141": "firework_shooter_id", "142": "reserved_139", "143": "nameplate_render_distance_max" - } + }, + "type": "varint" } ] }, @@ -884,7 +884,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "byte", "1": "short", @@ -895,7 +894,8 @@ "6": "vec3i", "7": "long", "8": "vec3f" - } + }, + "type": "varint" } ] }, @@ -909,29 +909,29 @@ "switch", { "compareTo": "key", - "fields": { - "flags": "MetadataFlags1", - "flags_extended": "MetadataFlags2", - "seat_third_person_camera_radius": "lf32", - "seat_camera_relax_distance_smoothing": "lf32" - }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", - "short": "li16", - "int": "zigzag32", - "float": "lf32", - "string": "string", "compound": "nbt", - "vec3i": "vec3i", + "float": "lf32", + "int": "zigzag32", "long": "zigzag64", - "vec3f": "vec3f" + "short": "li16", + "string": "string", + "vec3f": "vec3f", + "vec3i": "vec3i" } } - ] + ], + "fields": { + "flags": "MetadataFlags1", + "flags_extended": "MetadataFlags2", + "seat_camera_relax_distance_smoothing": "lf32", + "seat_third_person_camera_radius": "lf32" + } } ] } @@ -942,7 +942,6 @@ "MetadataFlags1": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "onfire", @@ -1010,13 +1009,13 @@ "transition_sitting", "eating", "laying_down" - ] + ], + "type": "zigzag64" } ], "MetadataFlags2": [ "bitflags", { - "type": "zigzag64", "big": true, "flags": [ "sneezing", @@ -1085,7 +1084,8 @@ "uses_uniform_air_drag", "nameplate_depth_tested", "not_pickable_from_inside" - ] + ], + "type": "zigzag64" } ], "Link": [ @@ -1319,13 +1319,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block", "3": "attack" - } + }, + "type": "zigzag32" } ] }, @@ -1334,12 +1334,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" - } + }, + "type": "u8" } ] }, @@ -1376,11 +1376,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "failure", "1": "success" - } + }, + "type": "u8" } ] }, @@ -1389,11 +1389,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "off", "1": "on" - } + }, + "type": "u8" } ] } @@ -1411,7 +1411,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "container", "1": "global", @@ -1419,7 +1418,8 @@ "3": "creative", "100": "craft_slot", "99999": "craft" - } + }, + "type": "varint" } ] }, @@ -1523,14 +1523,14 @@ [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "inventory_mismatch", "2": "item_use", "3": "item_use_on_entity", "4": "item_release" - } + }, + "type": "varint" } ] ] @@ -1549,26 +1549,20 @@ { "compareTo": "transaction_type", "fields": { - "normal": "void", "inventory_mismatch": "void", - "item_use": "TransactionUseItem", - "item_use_on_entity": [ + "item_release": [ "container", [ - { - "name": "entity_runtime_id", - "type": "varint64" - }, { "name": "action_type", "type": [ "mapper", { - "type": "zigzag32", "mappings": { - "0": "interact", - "1": "attack" - } + "0": "release", + "1": "consume" + }, + "type": "zigzag32" } ] }, @@ -1581,28 +1575,29 @@ "type": "ItemV4" }, { - "name": "player_pos", - "type": "vec3f" - }, - { - "name": "click_pos", + "name": "head_pos", "type": "vec3f" } ] ], - "item_release": [ + "item_use": "TransactionUseItem", + "item_use_on_entity": [ "container", [ + { + "name": "entity_runtime_id", + "type": "varint64" + }, { "name": "action_type", "type": [ "mapper", { - "type": "zigzag32", "mappings": { - "0": "release", - "1": "consume" - } + "0": "interact", + "1": "attack" + }, + "type": "zigzag32" } ] }, @@ -1615,11 +1610,16 @@ "type": "ItemV4" }, { - "name": "head_pos", + "name": "player_pos", + "type": "vec3f" + }, + { + "name": "click_pos", "type": "vec3f" } ] - ] + ], + "normal": "void" } } ] @@ -1641,11 +1641,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "invalid", "1": "valid" - } + }, + "type": "varint" } ] }, @@ -1688,11 +1688,11 @@ } ] ], - "name": [ + "item_tag": [ "container", [ { - "name": "name", + "name": "tag", "type": "string" }, { @@ -1714,11 +1714,11 @@ } ] ], - "item_tag": [ + "name": [ "container", [ { - "name": "tag", + "name": "name", "type": "string" }, { @@ -2000,13 +2000,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "always_unlocked", "2": "player_in_water", "3": "player_has_many_items" - } + }, + "type": "zigzag32" } ] }, @@ -2045,7 +2045,6 @@ "PersonaPieceType": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "skeleton", @@ -2076,7 +2075,8 @@ "26": "classic_skin", "27": "emote", "28": "unsupported" - } + }, + "type": "li32" } ], "Skin": [ @@ -2157,11 +2157,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "slim", "1": "wide" - } + }, + "type": "u8" } ] }, @@ -2269,11 +2269,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "remove", "1": "add" - } + }, + "type": "varint" } ] }, @@ -2426,7 +2426,6 @@ "Action": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "start_break", "1": "abort_break", @@ -2466,7 +2465,8 @@ "35": "stop_flying", "36": "received_server_data", "37": "start_using_item" - } + }, + "type": "zigzag32" } ], "StackRequestSlotInfo": [ @@ -2494,13 +2494,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "invalid", "1": "name", "2": "molang", "3": "item_tag" - } + }, + "type": "varint" } ] }, @@ -2516,16 +2516,12 @@ "compareTo": "type", "fields": { "invalid": "void", - "name": [ + "item_tag": [ "container", [ { - "name": "name", + "name": "tag", "type": "string" - }, - { - "name": "metadata", - "type": "zigzag32" } ] ], @@ -2542,12 +2538,16 @@ } ] ], - "item_tag": [ + "name": [ "container", [ { - "name": "tag", + "name": "name", "type": "string" + }, + { + "name": "metadata", + "type": "zigzag32" } ] ] @@ -2569,11 +2569,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "invalid", "1": "name" - } + }, + "type": "varint" } ] }, @@ -2587,9 +2587,6 @@ "switch", { "compareTo": "type", - "fields": { - "invalid": "void" - }, "default": [ "container", [ @@ -2602,7 +2599,10 @@ "type": "zigzag32" } ] - ] + ], + "fields": { + "invalid": "void" + } } ] }, @@ -2647,7 +2647,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "take", "1": "place", @@ -2667,7 +2666,8 @@ "15": "craft_loom_request", "16": "non_implemented", "17": "results_deprecated" - } + }, + "type": "varint" } ] }, @@ -2682,24 +2682,20 @@ { "compareTo": "type_id", "fields": { - "take": [ + "beacon_payment": [ "container", [ { - "name": "count", - "type": "u8" - }, - { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "primary_effect", + "type": "zigzag32" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "secondary_effect", + "type": "zigzag32" } ] ], - "place": [ + "consume": [ "container", [ { @@ -2709,157 +2705,145 @@ { "name": "source", "type": "StackRequestSlotInfo" - }, - { - "name": "destination", - "type": "StackRequestSlotInfo" } ] ], - "swap": [ + "craft_creative": [ "container", [ { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "item_id", + "type": "varint" }, { - "name": "destination", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "drop": [ + "craft_grindstone_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "li32" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" }, { - "name": "randomly", - "type": "bool" + "name": "cost", + "type": "zigzag32" } ] ], - "destroy": [ + "craft_loom_request": [ "container", [ { - "name": "count", - "type": "u8" + "name": "pattern", + "type": "string" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "consume": [ + "craft_recipe": [ "container", [ { - "name": "count", - "type": "u8" + "name": "recipe_network_id", + "type": "varint" }, { - "name": "source", - "type": "StackRequestSlotInfo" + "name": "times_crafted", + "type": "u8" } ] ], - "create": [ + "craft_recipe_auto": [ "container", [ { - "name": "result_slot_id", - "type": "u8" - } - ] - ], - "beacon_payment": [ - "container", - [ + "name": "recipe_network_id", + "type": "varint" + }, { - "name": "primary_effect", - "type": "zigzag32" + "name": "times_crafted", + "type": "u8" }, { - "name": "secondary_effect", - "type": "zigzag32" + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "RecipeIngredient2" + } + ] } ] ], - "mine_block": [ + "create": [ "container", [ { - "name": "hotbar_slot", - "type": "zigzag32" - }, - { - "name": "predicted_durability", - "type": "zigzag32" - }, - { - "name": "network_id", - "type": "li32" + "name": "result_slot_id", + "type": "u8" } ] ], - "craft_recipe": [ + "destroy": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" } ] ], - "craft_recipe_auto": [ + "drop": [ "container", [ { - "name": "recipe_network_id", - "type": "varint" + "name": "count", + "type": "u8" }, { - "name": "times_crafted", - "type": "u8" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "RecipeIngredient2" - } - ] + "name": "randomly", + "type": "bool" } ] ], - "craft_creative": [ + "mine_block": [ "container", [ { - "name": "item_id", - "type": "varint" + "name": "hotbar_slot", + "type": "zigzag32" }, { - "name": "times_crafted", - "type": "u8" + "name": "predicted_durability", + "type": "zigzag32" + }, + { + "name": "network_id", + "type": "li32" } ] ], + "non_implemented": "void", "optional": [ "container", [ @@ -2873,37 +2857,23 @@ } ] ], - "craft_grindstone_request": [ + "place": [ "container", [ { - "name": "recipe_network_id", - "type": "li32" - }, - { - "name": "times_crafted", + "name": "count", "type": "u8" }, { - "name": "cost", - "type": "zigzag32" - } - ] - ], - "craft_loom_request": [ - "container", - [ - { - "name": "pattern", - "type": "string" + "name": "source", + "type": "StackRequestSlotInfo" }, { - "name": "times_crafted", - "type": "u8" + "name": "destination", + "type": "StackRequestSlotInfo" } ] ], - "non_implemented": "void", "results_deprecated": [ "container", [ @@ -2922,6 +2892,36 @@ "type": "u8" } ] + ], + "swap": [ + "container", + [ + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] + ], + "take": [ + "container", + [ + { + "name": "count", + "type": "u8" + }, + { + "name": "source", + "type": "StackRequestSlotInfo" + }, + { + "name": "destination", + "type": "StackRequestSlotInfo" + } + ] ] } } @@ -2947,7 +2947,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "chat_public", "1": "chat_whisper", @@ -2963,7 +2962,8 @@ "11": "kick_command", "12": "title_command", "13": "summon_command" - } + }, + "type": "li32" } ] } @@ -2981,11 +2981,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ok", "1": "error" - } + }, + "type": "u8" } ] }, @@ -3100,11 +3100,11 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "entity", "1": "block" - } + }, + "type": "li32" } ] }, @@ -3132,7 +3132,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marker_white", "1": "marker_green", @@ -3182,7 +3181,8 @@ "45": "village_taiga", "46": "jungle_temple", "47": "witch_hut" - } + }, + "type": "u8" } ] }, @@ -3244,13 +3244,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "90_deg", "2": "180_deg", "3": "270_deg" - } + }, + "type": "u8" } ] }, @@ -3259,13 +3259,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "x_axis", "2": "z_axis", "3": "both_axes" - } + }, + "type": "u8" } ] }, @@ -3274,12 +3274,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "layers", "2": "blocks" - } + }, + "type": "u8" } ] }, @@ -3351,12 +3351,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -3390,19 +3390,18 @@ "PermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "visitor", "1": "member", "2": "operator", "3": "custom" - } + }, + "type": "u8" } ], "CommandPermissionLevel": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3410,13 +3409,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "CommandPermissionLevelVarint": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "operator", @@ -3424,13 +3423,13 @@ "3": "host", "4": "owner", "5": "internal" - } + }, + "type": "u8" } ], "WindowID": [ "mapper", { - "type": "i8", "mappings": { "0": "inventory", "1": "first", @@ -3441,31 +3440,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "i8" } ], "WindowIDVarint": [ "mapper", { - "type": "varint", "mappings": { "0": "inventory", "1": "first", @@ -3476,31 +3475,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "varint" } ], "WindowIDZigzag32": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "first", @@ -3511,31 +3510,31 @@ "122": "hotbar", "123": "fixed_inventory", "124": "ui", + "-1": "none", + "-10": "container_input", "-100": "drop_contents", - "-24": "beacon", - "-23": "trading_output", - "-22": "trading_use_inputs", - "-21": "trading_input_2", - "-20": "trading_input_1", - "-17": "enchant_output", - "-16": "enchant_material", - "-15": "enchant_input", - "-13": "anvil_output", - "-12": "anvil_result", "-11": "anvil_material", - "-10": "container_input", - "-5": "crafting_use_ingredient", - "-4": "crafting_result", - "-3": "crafting_remove_ingredient", + "-12": "anvil_result", + "-13": "anvil_output", + "-15": "enchant_input", + "-16": "enchant_material", + "-17": "enchant_output", "-2": "crafting_add_ingredient", - "-1": "none" - } + "-20": "trading_input_1", + "-21": "trading_input_2", + "-22": "trading_use_inputs", + "-23": "trading_output", + "-24": "beacon", + "-3": "crafting_remove_ingredient", + "-4": "crafting_result", + "-5": "crafting_use_ingredient" + }, + "type": "zigzag32" } ], "WindowType": [ "mapper", { - "type": "i8", "mappings": { "0": "container", "1": "workbench", @@ -3574,15 +3573,15 @@ "34": "chest_boat", "35": "decorated_pot", "36": "crafter", - "-9": "none", - "-1": "inventory" - } + "-1": "inventory", + "-9": "none" + }, + "type": "i8" } ], "ContainerSlotType": [ "mapper", { - "type": "u8", "mappings": { "0": "anvil_input", "1": "anvil_material", @@ -3652,13 +3651,13 @@ "65": "recipe_food", "66": "recipe_blocks", "67": "recipe_furnace_items" - } + }, + "type": "u8" } ], "SoundType": [ "mapper", { - "type": "varint", "mappings": { "0": "ItemUseOn", "1": "Hit", @@ -4275,7 +4274,8 @@ "612": "Dismount", "613": "StrawBedBreakLeave", "614": "Undefined" - } + }, + "type": "varint" } ], "ServerSoundHandle": "lu64", @@ -4283,7 +4283,6 @@ "LegacyEntityType": [ "mapper", { - "type": "li32", "mappings": { "10": "chicken", "11": "cow", @@ -4385,13 +4384,13 @@ "111": "tropicalfish", "112": "cod", "113": "panda" - } + }, + "type": "li32" } ], "DeviceOS": [ "mapper", { - "type": "li32", "mappings": { "0": "Undefined", "1": "Android", @@ -4409,13 +4408,13 @@ "13": "Xbox", "14": "WindowsPhone", "15": "Linux" - } + }, + "type": "li32" } ], "AbilitySet": [ "bitflags", { - "type": "lu32", "flags": [ "build", "mine", @@ -4438,7 +4437,8 @@ "privileged_builder", "vertical_fly_speed", "count" - ] + ], + "type": "lu32" } ], "AbilityLayers": [ @@ -4449,7 +4449,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "cache", "1": "base", @@ -4457,7 +4456,8 @@ "3": "commands", "4": "editor", "5": "loading_screen" - } + }, + "type": "lu16" } ] }, @@ -4614,11 +4614,11 @@ [ "mapper", { - "type": "li32", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "li32" } ] ] @@ -4648,14 +4648,14 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] ] @@ -4868,7 +4868,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "unknown", "1": "invalid_size_unknown", @@ -4962,7 +4961,8 @@ "89": "gameface_media", "90": "gameface_json", "91": "gameface_script_engine" - } + }, + "type": "u8" } ] }, @@ -5180,7 +5180,6 @@ "DisconnectFailReason": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "unknown", "1": "cant_connect_no_internet", @@ -5330,7 +5329,8 @@ "145": "host_accepts_no_type_of_auth", "146": "not_authenticated_fast_fail", "147": "editor_not_allowed" - } + }, + "type": "zigzag32" } ], "FullContainerName": [ @@ -5352,12 +5352,12 @@ "MovementEffectType": [ "mapper", { - "type": "varint", "mappings": { "0": "GLIDE_BOOST", "1": "GEYSER_BOOST", "-1": "invalid" - } + }, + "type": "varint" } ], "BiomeDefinition": [ @@ -5893,7 +5893,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "xyz", "1": "xzy", @@ -5901,7 +5900,8 @@ "3": "yzx", "4": "zxy", "5": "zyx" - } + }, + "type": "zigzag32" } ] }, @@ -5963,7 +5963,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "single_valued", "1": "uniform", @@ -5972,7 +5971,8 @@ "4": "fixed_grid", "5": "jittered_grid", "6": "triangle" - } + }, + "type": "zigzag32" } ] } @@ -6151,7 +6151,6 @@ "EaseType": [ "mapper", { - "type": "u8", "mappings": { "0": "Linear", "1": "Spring", @@ -6186,7 +6185,8 @@ "30": "OutElastic", "31": "InOutElastic", "32": "InverseLerp" - } + }, + "type": "u8" } ], "ParameterKeyframeValue": [ @@ -6205,7 +6205,6 @@ "GraphicsOverrideParameterType": [ "mapper", { - "type": "u8", "mappings": { "0": "sky_zenith_color", "1": "sky_horizon_color", @@ -6259,7 +6258,8 @@ "49": "emissive_desaturation", "50": "sky_intensity", "51": "orbital_offset_degrees" - } + }, + "type": "u8" } ], "DebugMarkerData": [ @@ -6291,14 +6291,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "none", "1": "bool", "2": "int64", "4": "string", "6": "map" - } + }, + "type": "li32" } ] }, @@ -6309,17 +6309,17 @@ { "compareTo": "type", "fields": { - "none": "void", "bool": "bool", "int64": "li64", - "string": "string", "map": [ "array", { "countType": "varint", "type": "DataStoreMapEntry" } - ] + ], + "none": "void", + "string": "string" } } ] @@ -6347,12 +6347,12 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "update", "1": "change", "2": "removal" - } + }, + "type": "lu32" } ] }, @@ -6363,6 +6363,36 @@ { "compareTo": "change_type", "fields": { + "change": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "property", + "type": "string" + }, + { + "name": "update_count", + "type": "lu32" + }, + { + "name": "new_value", + "type": "DataStorePropertyValue" + } + ] + ], + "removal": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], "update": [ "container", [ @@ -6383,12 +6413,12 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "double", "1": "bool", "2": "string" - } + }, + "type": "lu32" } ] }, @@ -6399,8 +6429,8 @@ { "compareTo": "data_type", "fields": { - "double": "lf64", "bool": "bool", + "double": "lf64", "string": "string" } } @@ -6415,36 +6445,6 @@ "type": "lu32" } ] - ], - "change": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "property", - "type": "string" - }, - { - "name": "update_count", - "type": "lu32" - }, - { - "name": "new_value", - "type": "DataStorePropertyValue" - } - ] - ], - "removal": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] ] } } @@ -6539,13 +6539,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "add", "2": "remove", "3": "update" - } + }, + "type": "u8" } ] } @@ -6635,11 +6635,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "float", "1": "string" - } + }, + "type": "varint" } ] }, @@ -6690,12 +6690,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "bool", "1": "float", "2": "colour" - } + }, + "type": "varint" } ] }, @@ -6722,6 +6722,22 @@ } ] ], + "colour": [ + "container", + [ + { + "name": "colour_value", + "type": "li32" + }, + { + "name": "colour_operation", + "type": [ + "option", + "li32" + ] + } + ] + ], "float": [ "container", [ @@ -6751,22 +6767,6 @@ ] } ] - ], - "colour": [ - "container", - [ - { - "name": "colour_value", - "type": "li32" - }, - { - "name": "colour_operation", - "type": [ - "option", - "li32" - ] - } - ] ] } } @@ -6949,7 +6949,6 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "line", "1": "box", @@ -6957,7 +6956,8 @@ "3": "circle", "4": "text", "5": "arrow" - } + }, + "type": "u8" } ] ] @@ -7024,15 +7024,15 @@ "switch", { "compareTo": "type", + "default": "void", "fields": { - "line": "ShapeLine", + "arrow": "ShapeArrow", "box": "ShapeBox", - "sphere": "ShapeSphere", "circle": "ShapeCircle", - "text": "ShapeText", - "arrow": "ShapeArrow" - }, - "default": "void" + "line": "ShapeLine", + "sphere": "ShapeSphere", + "text": "ShapeText" + } } ] } @@ -7162,7 +7162,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "1": "login", "2": "play_status", @@ -7408,7 +7407,8 @@ "348": "clientbound_update_sound_data", "349": "send_party_destination_cookie", "350": "party_destination_cookie_response" - } + }, + "type": "varint" } ] }, @@ -7419,250 +7419,250 @@ { "compareTo": "name", "fields": { - "login": "packet_login", - "play_status": "packet_play_status", - "server_to_client_handshake": "packet_server_to_client_handshake", - "client_to_server_handshake": "packet_client_to_server_handshake", - "disconnect": "packet_disconnect", - "resource_packs_info": "packet_resource_packs_info", - "resource_pack_stack": "packet_resource_pack_stack", - "resource_pack_client_response": "packet_resource_pack_client_response", - "text": "packet_text", - "set_time": "packet_set_time", - "start_game": "packet_start_game", - "add_player": "packet_add_player", + "add_behavior_tree": "packet_add_behavior_tree", "add_entity": "packet_add_entity", - "remove_entity": "packet_remove_entity", "add_item_entity": "packet_add_item_entity", - "take_item_entity": "packet_take_item_entity", - "move_entity": "packet_move_entity", - "move_player": "packet_move_player", - "rider_jump": "packet_rider_jump", - "update_block": "packet_update_block", "add_painting": "packet_add_painting", - "tick_sync": "packet_tick_sync", - "level_sound_event_old": "packet_level_sound_event_old", - "level_event": "packet_level_event", + "add_player": "packet_add_player", + "add_volume_entity": "packet_add_volume_entity", + "adventure_settings": "packet_adventure_settings", + "agent_action": "packet_agent_action", + "agent_animation": "packet_agent_animation", + "animate": "packet_animate", + "animate_entity": "packet_animate_entity", + "anvil_damage": "packet_anvil_damage", + "available_commands": "packet_available_commands", + "available_entity_identifiers": "packet_available_entity_identifiers", + "award_achievement": "packet_award_achievement", + "biome_definition_list": "packet_biome_definition_list", + "block_entity_data": "packet_block_entity_data", "block_event": "packet_block_event", - "entity_event": "packet_entity_event", - "mob_effect": "packet_mob_effect", - "update_attributes": "packet_update_attributes", - "inventory_transaction": "packet_inventory_transaction", - "mob_equipment": "packet_mob_equipment", - "mob_armor_equipment": "packet_mob_armor_equipment", - "interact": "packet_interact", "block_pick_request": "packet_block_pick_request", - "entity_pick_request": "packet_entity_pick_request", - "player_action": "packet_player_action", - "hurt_armor": "packet_hurt_armor", - "set_entity_data": "packet_set_entity_data", - "set_entity_motion": "packet_set_entity_motion", - "set_entity_link": "packet_set_entity_link", - "set_health": "packet_set_health", - "set_spawn_position": "packet_set_spawn_position", - "animate": "packet_animate", - "respawn": "packet_respawn", - "container_open": "packet_container_open", + "book_edit": "packet_book_edit", + "boss_event": "packet_boss_event", + "camera": "packet_camera", + "camera_aim_assist": "packet_camera_aim_assist", + "camera_aim_assist_actor_priority": "packet_camera_aim_assist_actor_priority", + "camera_aim_assist_presets": "packet_camera_aim_assist_presets", + "camera_instruction": "packet_camera_instruction", + "camera_presets": "packet_camera_presets", + "camera_shake": "packet_camera_shake", + "camera_spline": "packet_camera_spline", + "change_dimension": "packet_change_dimension", + "change_mob_property": "packet_change_mob_property", + "chunk_radius_update": "packet_chunk_radius_update", + "client_cache_blob_status": "packet_client_cache_blob_status", + "client_cache_miss_response": "packet_client_cache_miss_response", + "client_cache_status": "packet_client_cache_status", + "client_camera_aim_assist": "packet_client_camera_aim_assist", + "client_cheat_ability": "packet_client_cheat_ability", + "client_movement_prediction_sync": "packet_client_movement_prediction_sync", + "client_start_item_cooldown": "packet_client_start_item_cooldown", + "client_to_server_handshake": "packet_client_to_server_handshake", + "clientbound_attribute_layer_sync": "packet_clientbound_attribute_layer_sync", + "clientbound_close_form": "packet_clientbound_close_form", + "clientbound_controls_scheme": "packet_clientbound_controls_scheme", + "clientbound_data_driven_ui_close_screen": "packet_clientbound_data_driven_ui_close_screen", + "clientbound_data_driven_ui_reload": "packet_clientbound_data_driven_ui_reload", + "clientbound_data_driven_ui_show_screen": "packet_clientbound_data_driven_ui_show_screen", + "clientbound_data_store": "packet_clientbound_data_store", + "clientbound_map_item_data": "packet_clientbound_map_item_data", + "clientbound_texture_shift": "packet_clientbound_texture_shift", + "clientbound_update_sound_data": "packet_clientbound_update_sound_data", + "code_builder": "packet_code_builder", + "code_builder_source": "packet_code_builder_source", + "command_block_update": "packet_command_block_update", + "command_output": "packet_command_output", + "command_request": "packet_command_request", + "completed_using_item": "packet_completed_using_item", + "compressed_biome_definitions": "packet_compressed_biome_definitions", "container_close": "packet_container_close", - "player_hotbar": "packet_player_hotbar", - "inventory_content": "packet_inventory_content", - "inventory_slot": "packet_inventory_slot", + "container_open": "packet_container_open", + "container_registry_cleanup": "packet_container_registry_cleanup", "container_set_data": "packet_container_set_data", + "correct_player_move_prediction": "packet_correct_player_move_prediction", "crafting_data": "packet_crafting_data", "crafting_event": "packet_crafting_event", - "gui_data_pick_item": "packet_gui_data_pick_item", - "adventure_settings": "packet_adventure_settings", - "block_entity_data": "packet_block_entity_data", - "player_input": "packet_player_input", - "level_chunk": "packet_level_chunk", - "set_commands_enabled": "packet_set_commands_enabled", - "set_difficulty": "packet_set_difficulty", - "change_dimension": "packet_change_dimension", - "set_player_game_type": "packet_set_player_game_type", - "player_list": "packet_player_list", - "simple_event": "packet_simple_event", + "create_photo": "packet_create_photo", + "creative_content": "packet_creative_content", + "current_structure_feature": "packet_current_structure_feature", + "death_info": "packet_death_info", + "debug_info": "packet_debug_info", + "dimension_data": "packet_dimension_data", + "disconnect": "packet_disconnect", + "editor_network": "packet_editor_network", + "edu_uri_resource_packet": "packet_edu_uri_resource_packet", + "education_settings": "packet_education_settings", + "emote": "packet_emote", + "emote_list": "packet_emote_list", + "entity_event": "packet_entity_event", + "entity_pick_request": "packet_entity_pick_request", "event": "packet_event", - "spawn_experience_orb": "packet_spawn_experience_orb", - "clientbound_map_item_data": "packet_clientbound_map_item_data", - "map_info_request": "packet_map_info_request", - "request_chunk_radius": "packet_request_chunk_radius", - "chunk_radius_update": "packet_chunk_radius_update", + "feature_registry": "packet_feature_registry", + "filter_text_packet": "packet_filter_text_packet", "game_rules_changed": "packet_game_rules_changed", - "camera": "packet_camera", - "boss_event": "packet_boss_event", - "show_credits": "packet_show_credits", - "available_commands": "packet_available_commands", - "command_request": "packet_command_request", - "command_block_update": "packet_command_block_update", - "command_output": "packet_command_output", - "update_trade": "packet_update_trade", - "update_equipment": "packet_update_equipment", - "resource_pack_data_info": "packet_resource_pack_data_info", - "resource_pack_chunk_data": "packet_resource_pack_chunk_data", - "resource_pack_chunk_request": "packet_resource_pack_chunk_request", - "transfer": "packet_transfer", - "play_sound": "packet_play_sound", - "stop_sound": "packet_stop_sound", - "set_title": "packet_set_title", - "add_behavior_tree": "packet_add_behavior_tree", - "structure_block_update": "packet_structure_block_update", - "show_store_offer": "packet_show_store_offer", - "purchase_receipt": "packet_purchase_receipt", - "player_skin": "packet_player_skin", - "sub_client_login": "packet_sub_client_login", + "game_test_request": "packet_game_test_request", + "game_test_results": "packet_game_test_results", + "graphics_override_parameter": "packet_graphics_override_parameter", + "gui_data_pick_item": "packet_gui_data_pick_item", + "hurt_armor": "packet_hurt_armor", "initiate_web_socket_connection": "packet_initiate_web_socket_connection", - "set_last_hurt_by": "packet_set_last_hurt_by", - "book_edit": "packet_book_edit", - "npc_request": "packet_npc_request", - "photo_transfer": "packet_photo_transfer", - "modal_form_request": "packet_modal_form_request", - "modal_form_response": "packet_modal_form_response", - "server_settings_request": "packet_server_settings_request", - "server_settings_response": "packet_server_settings_response", - "show_profile": "packet_show_profile", - "set_default_game_type": "packet_set_default_game_type", - "remove_objective": "packet_remove_objective", - "set_display_objective": "packet_set_display_objective", - "set_score": "packet_set_score", + "interact": "packet_interact", + "inventory_content": "packet_inventory_content", + "inventory_slot": "packet_inventory_slot", + "inventory_transaction": "packet_inventory_transaction", + "item_registry": "packet_item_registry", + "item_stack_request": "packet_item_stack_request", + "item_stack_response": "packet_item_stack_response", + "jigsaw_structure_data": "packet_jigsaw_structure_data", "lab_table": "packet_lab_table", - "update_block_synced": "packet_update_block_synced", - "move_entity_delta": "packet_move_entity_delta", - "set_scoreboard_identity": "packet_set_scoreboard_identity", - "set_local_player_as_initialized": "packet_set_local_player_as_initialized", - "update_soft_enum": "packet_update_soft_enum", - "network_stack_latency": "packet_network_stack_latency", - "script_custom_event": "packet_script_custom_event", - "spawn_particle_effect": "packet_spawn_particle_effect", - "available_entity_identifiers": "packet_available_entity_identifiers", - "level_sound_event_v2": "packet_level_sound_event_v2", - "network_chunk_publisher_update": "packet_network_chunk_publisher_update", - "biome_definition_list": "packet_biome_definition_list", - "level_sound_event": "packet_level_sound_event", - "level_event_generic": "packet_level_event_generic", "lectern_update": "packet_lectern_update", - "video_stream_connect": "packet_video_stream_connect", - "client_cache_status": "packet_client_cache_status", - "on_screen_texture_animation": "packet_on_screen_texture_animation", + "lesson_progress": "packet_lesson_progress", + "level_chunk": "packet_level_chunk", + "level_event": "packet_level_event", + "level_event_generic": "packet_level_event_generic", + "level_sound_event": "packet_level_sound_event", + "level_sound_event_old": "packet_level_sound_event_old", + "level_sound_event_v2": "packet_level_sound_event_v2", + "locator_bar": "packet_locator_bar", + "login": "packet_login", "map_create_locked_copy": "packet_map_create_locked_copy", - "structure_template_data_export_request": "packet_structure_template_data_export_request", - "structure_template_data_export_response": "packet_structure_template_data_export_response", - "update_block_properties": "packet_update_block_properties", - "client_cache_blob_status": "packet_client_cache_blob_status", - "client_cache_miss_response": "packet_client_cache_miss_response", - "education_settings": "packet_education_settings", - "emote": "packet_emote", + "map_info_request": "packet_map_info_request", + "mob_armor_equipment": "packet_mob_armor_equipment", + "mob_effect": "packet_mob_effect", + "mob_equipment": "packet_mob_equipment", + "modal_form_request": "packet_modal_form_request", + "modal_form_response": "packet_modal_form_response", + "motion_prediction_hints": "packet_motion_prediction_hints", + "move_entity": "packet_move_entity", + "move_entity_delta": "packet_move_entity_delta", + "move_player": "packet_move_player", + "movement_effect": "packet_movement_effect", "multiplayer_settings": "packet_multiplayer_settings", - "settings_command": "packet_settings_command", - "anvil_damage": "packet_anvil_damage", - "completed_using_item": "packet_completed_using_item", + "network_chunk_publisher_update": "packet_network_chunk_publisher_update", "network_settings": "packet_network_settings", + "network_stack_latency": "packet_network_stack_latency", + "npc_dialogue": "packet_npc_dialogue", + "npc_request": "packet_npc_request", + "on_screen_texture_animation": "packet_on_screen_texture_animation", + "open_sign": "packet_open_sign", + "packet_violation_warning": "packet_packet_violation_warning", + "party_changed": "packet_party_changed", + "party_destination_cookie_response": "packet_party_destination_cookie_response", + "photo_info_request": "packet_photo_info_request", + "photo_transfer": "packet_photo_transfer", + "play_sound": "packet_play_sound", + "play_status": "packet_play_status", + "player_action": "packet_player_action", + "player_armor_damage": "packet_player_armor_damage", "player_auth_input": "packet_player_auth_input", - "creative_content": "packet_creative_content", "player_enchant_options": "packet_player_enchant_options", - "item_stack_request": "packet_item_stack_request", - "item_stack_response": "packet_item_stack_response", - "player_armor_damage": "packet_player_armor_damage", - "code_builder": "packet_code_builder", - "update_player_game_type": "packet_update_player_game_type", - "emote_list": "packet_emote_list", - "position_tracking_db_request": "packet_position_tracking_db_request", - "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", - "debug_info": "packet_debug_info", - "packet_violation_warning": "packet_packet_violation_warning", - "motion_prediction_hints": "packet_motion_prediction_hints", - "animate_entity": "packet_animate_entity", - "camera_shake": "packet_camera_shake", "player_fog": "packet_player_fog", - "correct_player_move_prediction": "packet_correct_player_move_prediction", - "item_registry": "packet_item_registry", - "filter_text_packet": "packet_filter_text_packet", + "player_hotbar": "packet_player_hotbar", + "player_input": "packet_player_input", + "player_list": "packet_player_list", + "player_location": "packet_player_location", + "player_skin": "packet_player_skin", + "player_update_entity_overrides": "packet_player_update_entity_overrides", + "player_video_capture": "packet_player_video_capture", + "position_tracking_db_broadcast": "packet_position_tracking_db_broadcast", + "position_tracking_db_request": "packet_position_tracking_db_request", "primitive_shapes": "packet_primitive_shapes", - "sync_entity_property": "packet_sync_entity_property", - "add_volume_entity": "packet_add_volume_entity", + "purchase_receipt": "packet_purchase_receipt", + "refresh_entitlements": "packet_refresh_entitlements", + "remove_entity": "packet_remove_entity", + "remove_objective": "packet_remove_objective", "remove_volume_entity": "packet_remove_volume_entity", + "request_ability": "packet_request_ability", + "request_chunk_radius": "packet_request_chunk_radius", + "request_network_settings": "packet_request_network_settings", + "request_permissions": "packet_request_permissions", + "resource_pack_chunk_data": "packet_resource_pack_chunk_data", + "resource_pack_chunk_request": "packet_resource_pack_chunk_request", + "resource_pack_client_response": "packet_resource_pack_client_response", + "resource_pack_data_info": "packet_resource_pack_data_info", + "resource_pack_stack": "packet_resource_pack_stack", + "resource_packs_info": "packet_resource_packs_info", + "resource_packs_ready_for_validation": "packet_resource_packs_ready_for_validation", + "respawn": "packet_respawn", + "rider_jump": "packet_rider_jump", + "script_custom_event": "packet_script_custom_event", + "script_message": "packet_script_message", + "send_party_destination_cookie": "packet_send_party_destination_cookie", + "server_post_move": "packet_server_post_move", + "server_presence_info": "packet_server_presence_info", + "server_script_debug_drawer": "packet_server_script_debug_drawer", + "server_settings_request": "packet_server_settings_request", + "server_settings_response": "packet_server_settings_response", + "server_stats": "packet_server_stats", + "server_store_info": "packet_server_store_info", + "server_to_client_handshake": "packet_server_to_client_handshake", + "serverbound_data_driven_screen_closed": "packet_serverbound_data_driven_screen_closed", + "serverbound_data_store": "packet_serverbound_data_store", + "serverbound_diagnostics": "packet_serverbound_diagnostics", + "serverbound_loading_screen": "packet_serverbound_loading_screen", + "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change", + "set_commands_enabled": "packet_set_commands_enabled", + "set_default_game_type": "packet_set_default_game_type", + "set_difficulty": "packet_set_difficulty", + "set_display_objective": "packet_set_display_objective", + "set_entity_data": "packet_set_entity_data", + "set_entity_link": "packet_set_entity_link", + "set_entity_motion": "packet_set_entity_motion", + "set_health": "packet_set_health", + "set_hud": "packet_set_hud", + "set_last_hurt_by": "packet_set_last_hurt_by", + "set_local_player_as_initialized": "packet_set_local_player_as_initialized", + "set_movement_authority": "packet_set_movement_authority", + "set_player_game_type": "packet_set_player_game_type", + "set_player_inventory_options": "packet_set_player_inventory_options", + "set_score": "packet_set_score", + "set_scoreboard_identity": "packet_set_scoreboard_identity", + "set_spawn_position": "packet_set_spawn_position", + "set_time": "packet_set_time", + "set_title": "packet_set_title", + "settings_command": "packet_settings_command", + "show_credits": "packet_show_credits", + "show_profile": "packet_show_profile", + "show_store_offer": "packet_show_store_offer", + "simple_event": "packet_simple_event", "simulation_type": "packet_simulation_type", - "npc_dialogue": "packet_npc_dialogue", - "edu_uri_resource_packet": "packet_edu_uri_resource_packet", - "create_photo": "packet_create_photo", - "update_subchunk_blocks": "packet_update_subchunk_blocks", - "photo_info_request": "packet_photo_info_request", + "spawn_experience_orb": "packet_spawn_experience_orb", + "spawn_particle_effect": "packet_spawn_particle_effect", + "start_game": "packet_start_game", + "stop_sound": "packet_stop_sound", + "structure_block_update": "packet_structure_block_update", + "structure_template_data_export_request": "packet_structure_template_data_export_request", + "structure_template_data_export_response": "packet_structure_template_data_export_response", + "sub_client_login": "packet_sub_client_login", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request", - "client_start_item_cooldown": "packet_client_start_item_cooldown", - "script_message": "packet_script_message", - "code_builder_source": "packet_code_builder_source", + "sync_entity_property": "packet_sync_entity_property", + "sync_world_clocks": "packet_sync_world_clocks", + "take_item_entity": "packet_take_item_entity", + "text": "packet_text", + "tick_sync": "packet_tick_sync", "ticking_areas_load_status": "packet_ticking_areas_load_status", - "dimension_data": "packet_dimension_data", - "agent_action": "packet_agent_action", - "change_mob_property": "packet_change_mob_property", - "lesson_progress": "packet_lesson_progress", - "request_ability": "packet_request_ability", - "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request", + "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", + "transfer": "packet_transfer", + "trim_data": "packet_trim_data", + "unlocked_recipes": "packet_unlocked_recipes", "update_abilities": "packet_update_abilities", "update_adventure_settings": "packet_update_adventure_settings", - "death_info": "packet_death_info", - "editor_network": "packet_editor_network", - "feature_registry": "packet_feature_registry", - "server_stats": "packet_server_stats", - "request_network_settings": "packet_request_network_settings", - "game_test_request": "packet_game_test_request", - "game_test_results": "packet_game_test_results", + "update_attributes": "packet_update_attributes", + "update_block": "packet_update_block", + "update_block_properties": "packet_update_block_properties", + "update_block_synced": "packet_update_block_synced", "update_client_input_locks": "packet_update_client_input_locks", - "client_cheat_ability": "packet_client_cheat_ability", - "camera_presets": "packet_camera_presets", - "unlocked_recipes": "packet_unlocked_recipes", - "camera_instruction": "packet_camera_instruction", - "compressed_biome_definitions": "packet_compressed_biome_definitions", - "trim_data": "packet_trim_data", - "open_sign": "packet_open_sign", - "agent_animation": "packet_agent_animation", - "refresh_entitlements": "packet_refresh_entitlements", - "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", - "set_player_inventory_options": "packet_set_player_inventory_options", - "set_hud": "packet_set_hud", - "award_achievement": "packet_award_achievement", - "server_post_move": "packet_server_post_move", - "clientbound_close_form": "packet_clientbound_close_form", - "serverbound_loading_screen": "packet_serverbound_loading_screen", - "jigsaw_structure_data": "packet_jigsaw_structure_data", - "current_structure_feature": "packet_current_structure_feature", - "serverbound_diagnostics": "packet_serverbound_diagnostics", - "camera_aim_assist": "packet_camera_aim_assist", - "container_registry_cleanup": "packet_container_registry_cleanup", - "movement_effect": "packet_movement_effect", - "set_movement_authority": "packet_set_movement_authority", - "camera_aim_assist_presets": "packet_camera_aim_assist_presets", - "client_camera_aim_assist": "packet_client_camera_aim_assist", - "client_movement_prediction_sync": "packet_client_movement_prediction_sync", "update_client_options": "packet_update_client_options", - "player_video_capture": "packet_player_video_capture", - "player_update_entity_overrides": "packet_player_update_entity_overrides", - "player_location": "packet_player_location", - "clientbound_controls_scheme": "packet_clientbound_controls_scheme", - "server_script_debug_drawer": "packet_server_script_debug_drawer", - "serverbound_pack_setting_change": "packet_serverbound_pack_setting_change", - "clientbound_data_store": "packet_clientbound_data_store", - "graphics_override_parameter": "packet_graphics_override_parameter", - "serverbound_data_store": "packet_serverbound_data_store", - "clientbound_data_driven_ui_show_screen": "packet_clientbound_data_driven_ui_show_screen", - "clientbound_data_driven_ui_close_screen": "packet_clientbound_data_driven_ui_close_screen", - "clientbound_data_driven_ui_reload": "packet_clientbound_data_driven_ui_reload", - "clientbound_texture_shift": "packet_clientbound_texture_shift", - "voxel_shapes": "packet_voxel_shapes", - "camera_spline": "packet_camera_spline", - "camera_aim_assist_actor_priority": "packet_camera_aim_assist_actor_priority", - "resource_packs_ready_for_validation": "packet_resource_packs_ready_for_validation", - "locator_bar": "packet_locator_bar", - "party_changed": "packet_party_changed", - "serverbound_data_driven_screen_closed": "packet_serverbound_data_driven_screen_closed", - "sync_world_clocks": "packet_sync_world_clocks", - "clientbound_attribute_layer_sync": "packet_clientbound_attribute_layer_sync", - "server_store_info": "packet_server_store_info", - "server_presence_info": "packet_server_presence_info", - "clientbound_update_sound_data": "packet_clientbound_update_sound_data", - "send_party_destination_cookie": "packet_send_party_destination_cookie", - "party_destination_cookie_response": "packet_party_destination_cookie_response" + "update_equipment": "packet_update_equipment", + "update_player_game_type": "packet_update_player_game_type", + "update_soft_enum": "packet_update_soft_enum", + "update_subchunk_blocks": "packet_update_subchunk_blocks", + "update_trade": "packet_update_trade", + "video_stream_connect": "packet_video_stream_connect", + "voxel_shapes": "packet_voxel_shapes" } } ] @@ -7709,7 +7709,6 @@ "type": [ "mapper", { - "type": "i32", "mappings": { "0": "login_success", "1": "failed_client", @@ -7721,7 +7720,8 @@ "7": "failed_server_full", "8": "failed_editor_vanilla_mismatch", "9": "failed_vanilla_editor_mismatch" - } + }, + "type": "i32" } ] } @@ -7757,9 +7757,6 @@ "switch", { "compareTo": "hide_disconnect_reason", - "fields": { - "true": "void" - }, "default": [ "container", [ @@ -7772,7 +7769,10 @@ "type": "string" } ] - ] + ], + "fields": { + "true": "void" + } } ] } @@ -7856,13 +7856,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "refused", "1": "send_packs", "2": "have_all_packs", "3": "completed" - } + }, + "type": "varint" } ] }, @@ -7876,10 +7876,10 @@ "switch", { "compareTo": "response_status", + "default": "void", "fields": { "send_packs": "ResourcePackIds" - }, - "default": "void" + } } ] } @@ -7897,12 +7897,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "message_only", "1": "authored", "2": "parameters" - } + }, + "type": "u8" } ] }, @@ -7911,7 +7911,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "raw", "1": "chat", @@ -7925,7 +7924,8 @@ "9": "json_whisper", "10": "json", "11": "json_announcement" - } + }, + "type": "u8" } ] }, @@ -7936,7 +7936,7 @@ { "compareTo": "type", "fields": { - "chat": [ + "announcement": [ "container", [ { @@ -7949,7 +7949,7 @@ } ] ], - "whisper": [ + "chat": [ "container", [ { @@ -7962,20 +7962,16 @@ } ] ], - "announcement": [ + "json": [ "container", [ - { - "name": "source_name", - "type": "string" - }, { "name": "message", "type": "string" } ] ], - "raw": [ + "json_announcement": [ "container", [ { @@ -7984,7 +7980,7 @@ } ] ], - "tip": [ + "json_whisper": [ "container", [ { @@ -7993,25 +7989,45 @@ } ] ], - "system": [ + "jukebox_popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json_whisper": [ + "popup": [ "container", [ { "name": "message", "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "json": [ + "raw": [ "container", [ { @@ -8020,7 +8036,7 @@ } ] ], - "json_announcement": [ + "system": [ "container", [ { @@ -8029,26 +8045,16 @@ } ] ], - "translation": [ + "tip": [ "container", [ { "name": "message", "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] } ] ], - "popup": [ + "translation": [ "container", [ { @@ -8067,22 +8073,16 @@ } ] ], - "jukebox_popup": [ + "whisper": [ "container", [ { - "name": "message", + "name": "source_name", "type": "string" }, { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" } ] ] @@ -8165,12 +8165,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "overworld", "1": "nether", "2": "end" - } + }, + "type": "zigzag32" } ] }, @@ -8203,13 +8203,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "not_editor", "1": "project", "2": "test_level", "3": "realms_upload" - } + }, + "type": "zigzag32" } ] }, @@ -8376,12 +8376,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "dropped", "2": "disabled" - } + }, + "type": "u8" } ] }, @@ -8760,13 +8760,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "normal", "1": "reset", "2": "teleport", "3": "rotation" - } + }, + "type": "u8" } ] }, @@ -8790,14 +8790,14 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "unknown", "1": "projectile", "2": "chorus_fruit", "3": "command", "4": "behavior" - } + }, + "type": "li32" } ] }, @@ -8848,14 +8848,14 @@ "UpdateBlockFlags": [ "bitflags", { - "type": "varint", "flags": { "neighbors": 1, "network": 2, "no_graphic": 4, - "unused": 8, - "priority": 16 - } + "priority": 16, + "unused": 8 + }, + "type": "varint" } ], "packet_add_painting": [ @@ -8933,7 +8933,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "1000": "sound_click", "1001": "sound_click_fail", @@ -9138,7 +9137,8 @@ "16463": "add_particle_spore_blossom_ambient", "16464": "add_particle_wax", "16465": "add_particle_electric_spark" - } + }, + "type": "zigzag32" } ] }, @@ -9164,11 +9164,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "sound", "1": "change_state" - } + }, + "type": "zigzag32" } ] }, @@ -9190,7 +9190,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "jump", "2": "hurt_animation", @@ -9253,7 +9252,8 @@ "79": "wetness_stop", "80": "kinetic_damage_dealt", "81": "hurt_without_receiving_damage" - } + }, + "type": "u8" } ] }, @@ -9282,12 +9282,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "add", "2": "update", "3": "remove" - } + }, + "type": "u8" } ] }, @@ -9405,13 +9405,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "3": "leave_vehicle", "4": "mouse_over_entity", "5": "npc_open", "6": "open_inventory" - } + }, + "type": "u8" } ] }, @@ -9585,11 +9585,11 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "player", "1": "world" - } + }, + "type": "zigzag32" } ] }, @@ -9615,7 +9615,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "swing_arm", @@ -9623,7 +9622,8 @@ "3": "wake_up", "4": "critical_hit", "5": "magic_critical_hit" - } + }, + "type": "u8" } ] }, @@ -9913,12 +9913,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "inventory", "1": "crafting", "2": "workbench" - } + }, + "type": "zigzag32" } ] }, @@ -9997,34 +9997,34 @@ "AdventureFlags": [ "bitflags", { - "type": "varint", "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, "allow_flight": 64, + "auto_jump": 32, + "flying": 512, + "muted": 1024, "no_clip": 128, + "no_pvp": 2, "world_builder": 256, - "flying": 512, - "muted": 1024 - } + "world_immutable": 1 + }, + "type": "varint" } ], "ActionPermissions": [ "bitflags", { - "type": "varint", "flags": { - "mine": 65537, + "attack_mobs": 65552, + "attack_players": 65544, + "build": 65792, + "default": 66048, "doors_and_switches": 65538, + "mine": 65537, "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } + "teleport": 65664 + }, + "type": "varint" } ], "packet_block_entity_data": [ @@ -10175,13 +10175,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "uninitialized_subtype", "1": "enable_commands", "2": "disable_commands", "3": "unlock_world_template_settings" - } + }, + "type": "lu16" } ] } @@ -10199,7 +10199,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "achievement_awarded", "1": "entity_interact", @@ -10233,7 +10232,8 @@ "29": "sneak_close_to_sculk_sensor", "30": "careful_restoration", "31": "item_used" - } + }, + "type": "zigzag32" } ] }, @@ -10465,7 +10465,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "show_bar", "1": "register_player", @@ -10476,7 +10475,8 @@ "6": "update_properties", "7": "texture", "8": "query" - } + }, + "type": "u8" } ] }, @@ -10497,7 +10497,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "pink", "1": "blue", @@ -10507,7 +10506,8 @@ "5": "purple", "6": "rebecca_purple", "7": "white" - } + }, + "type": "u8" } ] }, @@ -10516,14 +10516,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "progress", "1": "notched_6", "2": "notched_10", "3": "notched_12", "4": "notched_20" - } + }, + "type": "u8" } ] } @@ -10717,7 +10717,6 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "1": "int", "3": "float", @@ -10738,7 +10737,8 @@ "62": "json", "71": "block_states", "75": "command" - } + }, + "type": "lu16" } ] }, @@ -10747,13 +10747,13 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "16": "valid", "48": "enum", "256": "suffixed", "1040": "soft_enum" - } + }, + "type": "lu16" } ] }, @@ -10839,12 +10839,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "cheats_enabled", "1": "operator_permissions", "2": "host_permissions" - } + }, + "type": "u8" } ] } @@ -10865,28 +10865,28 @@ [ { "name": "unused", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "collapse_enum", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_semantic_constraint", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "as_chained_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "unknown2", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ], @@ -10925,6 +10925,15 @@ { "compareTo": "is_block", "fields": { + "false": [ + "container", + [ + { + "name": "minecart_entity_runtime_id", + "type": "varint64" + } + ] + ], "true": [ "container", [ @@ -10937,12 +10946,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "impulse", "1": "repeat", "2": "chain" - } + }, + "type": "varint" } ] }, @@ -10955,15 +10964,6 @@ "type": "bool" } ] - ], - "false": [ - "container", - [ - { - "name": "minecart_entity_runtime_id", - "type": "varint64" - } - ] ] } } @@ -11166,7 +11166,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "addon", "2": "cached", @@ -11176,7 +11175,8 @@ "6": "resources", "7": "skins", "8": "world_template" - } + }, + "type": "u8" } ] } @@ -11297,7 +11297,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "clear", "1": "reset", @@ -11308,7 +11307,8 @@ "6": "set_title_json", "7": "set_subtitle_json", "8": "action_bar_message_json" - } + }, + "type": "zigzag32" } ] }, @@ -11412,12 +11412,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "marketplace", "1": "dressing_room", "2": "third_party_server_page" - } + }, + "type": "u8" } ] } @@ -11504,14 +11504,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "replace_page", "1": "add_page", "2": "delete_page", "3": "swap_pages", "4": "sign" - } + }, + "type": "varint" } ] }, @@ -11522,23 +11522,6 @@ { "compareTo": "type", "fields": { - "replace_page": [ - "container", - [ - { - "name": "page_number", - "type": "zigzag32" - }, - { - "name": "text", - "type": "string" - }, - { - "name": "photo_name", - "type": "string" - } - ] - ], "add_page": [ "container", [ @@ -11565,16 +11548,20 @@ } ] ], - "swap_pages": [ + "replace_page": [ "container", [ { - "name": "page1", + "name": "page_number", "type": "zigzag32" }, { - "name": "page2", - "type": "zigzag32" + "name": "text", + "type": "string" + }, + { + "name": "photo_name", + "type": "string" } ] ], @@ -11594,6 +11581,19 @@ "type": "string" } ] + ], + "swap_pages": [ + "container", + [ + { + "name": "page1", + "type": "zigzag32" + }, + { + "name": "page2", + "type": "zigzag32" + } + ] ] } } @@ -11613,7 +11613,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -11622,7 +11621,8 @@ "4": "set_skin", "5": "set_interaction_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -11635,7 +11635,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_actions", "1": "execute_action", @@ -11644,7 +11643,8 @@ "4": "set_skin", "5": "set_interact_text", "6": "execute_opening_commands" - } + }, + "type": "u8" } ] }, @@ -11742,11 +11742,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "closed", "1": "busy" - } + }, + "type": "u8" } ] } @@ -11844,13 +11844,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "remove", "1": "player", "2": "entity", "3": "fake_player" - } + }, + "type": "varint" } ] }, @@ -11868,19 +11868,24 @@ "switch", { "compareTo": "entry_type", + "default": [ + "container", + [ + { + "name": "objective_name", + "type": "string" + }, + { + "name": "score", + "type": "li32" + }, + { + "name": "entity_unique_id", + "type": "zigzag64" + } + ] + ], "fields": { - "remove": [ - "container", - [ - { - "name": "objective_name", - "type": [ - "option", - "string" - ] - } - ] - ], "fake_player": [ "container", [ @@ -11897,25 +11902,20 @@ "type": "string" } ] + ], + "remove": [ + "container", + [ + { + "name": "objective_name", + "type": [ + "option", + "string" + ] + } + ] ] - }, - "default": [ - "container", - [ - { - "name": "objective_name", - "type": "string" - }, - { - "name": "score", - "type": "li32" - }, - { - "name": "entity_unique_id", - "type": "zigzag64" - } - ] - ] + } } ] } @@ -11934,12 +11934,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "combine", "1": "react", "2": "reset" - } + }, + "type": "u8" } ] }, @@ -11981,12 +11981,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "entity", "1": "create", "2": "destroy" - } + }, + "type": "varint" } ] } @@ -12067,11 +12067,11 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" - } + }, + "type": "i8" } ] }, @@ -12133,12 +12133,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "remove", "2": "update" - } + }, + "type": "u8" } ] } @@ -12382,11 +12382,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "none", "2": "close" - } + }, + "type": "u8" } ] }, @@ -12451,13 +12451,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export_from_save", "2": "export_from_load", "3": "query_saved_structure", "4": "import_from_save" - } + }, + "type": "u8" } ] } @@ -12491,12 +12491,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "export", "2": "query", "3": "import" - } + }, + "type": "u8" } ] } @@ -12688,11 +12688,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "server_side", "2": "mute_chat" - } + }, + "type": "u8" } ] } @@ -12706,12 +12706,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "enable_multiplayer", "1": "disable_multiplayer", "2": "refresh_join_code" - } + }, + "type": "zigzag32" } ] } @@ -12751,7 +12751,6 @@ "type": [ "mapper", { - "type": "li32", "mappings": { "0": "equip_armor", "1": "eat", @@ -12770,7 +12769,8 @@ "14": "traded", "15": "brushing_completed", "16": "opened_vault" - } + }, + "type": "li32" } ] } @@ -12788,11 +12788,11 @@ "type": [ "mapper", { - "type": "lu16", "mappings": { "0": "deflate", "1": "snappy" - } + }, + "type": "lu16" } ] }, @@ -12851,14 +12851,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "unknown", "1": "mouse", "2": "touch", "3": "game_pad", "4": "motion_controller" - } + }, + "type": "varint" } ] }, @@ -12867,7 +12867,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "normal", "1": "teaser", @@ -12879,7 +12878,8 @@ "7": "exit_level", "8": "exit_level_living_room", "9": "num_modes" - } + }, + "type": "varint" } ] }, @@ -12888,12 +12888,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "touch", "1": "crosshair", "2": "classic" - } + }, + "type": "zigzag32" } ] }, @@ -13026,7 +13026,6 @@ "InputData": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "ascend", "1": "descend", @@ -13094,7 +13093,8 @@ "63": "sneak_pressed_raw", "64": "sneak_current_raw", "65": "internal_update" - } + }, + "type": "zigzag32" } ], "packet_creative_content": [ @@ -13114,7 +13114,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "all", "1": "construction", @@ -13122,7 +13121,8 @@ "3": "equipment", "4": "items", "5": "item_command_only" - } + }, + "type": "u8" } ] }, @@ -13229,14 +13229,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "helmet", "1": "chestplate", "2": "leggings", "3": "boots", "4": "body" - } + }, + "type": "u8" } ] }, @@ -13303,10 +13303,10 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "query" - } + }, + "type": "u8" } ] }, @@ -13324,12 +13324,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "update", "1": "destory", "2": "not_found" - } + }, + "type": "u8" } ] }, @@ -13364,10 +13364,10 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "malformed" - } + }, + "type": "zigzag32" } ] }, @@ -13376,12 +13376,12 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "warning", "1": "final_warning", "2": "terminating" - } + }, + "type": "zigzag32" } ] }, @@ -13471,11 +13471,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "add", "1": "stop" - } + }, + "type": "u8" } ] } @@ -13504,11 +13504,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "player", "1": "vehicle" - } + }, + "type": "u8" } ] }, @@ -13649,13 +13649,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "game", "1": "editor", "2": "test", "3": "invalid" - } + }, + "type": "u8" } ] } @@ -13673,11 +13673,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "open", "1": "close" - } + }, + "type": "varint" } ] }, @@ -13774,14 +13774,14 @@ "HeightMapDataType": [ "mapper", { - "type": "u8", "mappings": { "0": "no_data", "1": "has_data", "2": "too_high", "3": "too_low", "4": "all_copied" - } + }, + "type": "u8" } ], "SubChunkEntry": [ @@ -13808,7 +13808,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "undefined", "1": "success", @@ -13817,7 +13816,8 @@ "4": "player_not_found", "5": "y_index_out_of_bounds", "6": "success_all_air" - } + }, + "type": "u8" } ] }, @@ -13949,13 +13949,13 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "get", "2": "set", "3": "reset" - } + }, + "type": "u8" } ] }, @@ -13964,12 +13964,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "code_status", "2": "instantiation" - } + }, + "type": "u8" } ] }, @@ -13978,7 +13978,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "none", "1": "not_started", @@ -13986,7 +13985,8 @@ "3": "paused", "4": "error", "5": "succeeded" - } + }, + "type": "u8" } ] } @@ -14030,7 +14030,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "legacy", "1": "overworld", @@ -14038,7 +14037,8 @@ "3": "nether", "4": "end", "5": "void" - } + }, + "type": "zigzag32" } ] }, @@ -14069,7 +14069,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "attack", @@ -14090,7 +14089,8 @@ "16": "till", "17": "transfer_item_to", "18": "turn" - } + }, + "type": "zigzag32" } ] }, @@ -14154,7 +14154,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "build", "1": "mine", @@ -14175,7 +14174,8 @@ "16": "world_builder", "17": "no_clip", "18": "ability_count" - } + }, + "type": "zigzag32" } ] }, @@ -14184,11 +14184,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "1": "bool", "2": "float" - } + }, + "type": "u8" } ] }, @@ -14222,17 +14222,17 @@ "RequestPermissions": [ "bitflags", { - "type": "lu16", "flags": { + "attack_mobs": 32, + "attack_players": 16, "build": 1, - "mine": 2, "doors_and_switches": 4, + "mine": 2, "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, "operator": 64, "teleport": 128 - } + }, + "type": "lu16" } ], "packet_toast_request": [ @@ -14397,14 +14397,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "0deg", "1": "90deg", "2": "180deg", "3": "270deg", "4": "360deg" - } + }, + "type": "u8" } ] }, @@ -14446,15 +14446,15 @@ "InputLockFlags": [ "bitflags", { - "type": "varint", "flags": { - "move": 2, + "dismount": 32, "jump": 4, - "sneak": 8, "mount": 16, - "dismount": 32, - "rotation": 64 - } + "move": 2, + "rotation": 64, + "sneak": 8 + }, + "type": "varint" } ], "packet_update_client_input_locks": [ @@ -14516,14 +14516,14 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "empty", "1": "initially_unlocked", "2": "newly_unlocked", "3": "remove_unlocked", "4": "remove_all_unlocked" - } + }, + "type": "lu32" } ] }, @@ -14818,11 +14818,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "arm_swing", "1": "shrug" - } + }, + "type": "u8" } ] }, @@ -14861,7 +14861,6 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "construction", @@ -14870,7 +14869,8 @@ "4": "nature", "5": "search", "6": "survival" - } + }, + "type": "zigzag32" } ] }, @@ -14879,13 +14879,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "fullscreen", "2": "crafting", "3": "armor" - } + }, + "type": "zigzag32" } ] }, @@ -14898,13 +14898,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "inventory_only", "2": "default", "3": "recipe_book_only" - } + }, + "type": "zigzag32" } ] }, @@ -14913,13 +14913,13 @@ "type": [ "mapper", { - "type": "zigzag32", "mappings": { "0": "none", "1": "inventory_only", "2": "default", "3": "recipe_book_only" - } + }, + "type": "zigzag32" } ] } @@ -14943,11 +14943,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "hide", "1": "reset" - } + }, + "type": "varint" } ] } @@ -14956,7 +14956,6 @@ "Element": [ "mapper", { - "type": "varint", "mappings": { "0": "PaperDoll", "1": "Armour", @@ -14971,7 +14970,8 @@ "10": "VehicleHealth", "11": "EffectsBar", "12": "ItemTextPopup" - } + }, + "type": "varint" } ], "packet_award_achievement": [ @@ -15141,11 +15141,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "angle", "1": "distance" - } + }, + "type": "u8" } ] }, @@ -15154,11 +15154,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -15212,12 +15212,12 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "client", "1": "server", "2": "server_with_rewind" - } + }, + "type": "u8" } ] } @@ -15451,11 +15451,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set", "1": "add_to_existing" - } + }, + "type": "u8" } ] } @@ -15473,11 +15473,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "set_from_camera_preset", "1": "clear" - } + }, + "type": "u8" } ] }, @@ -15570,13 +15570,13 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "simple", "1": "fancy", "2": "advanced", "3": "ray_traced" - } + }, + "type": "u8" } ] ] @@ -15598,11 +15598,11 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "stop", "1": "start" - } + }, + "type": "u8" } ] }, @@ -15648,13 +15648,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "clear_all", "1": "remove", "2": "set_int", "3": "set_float" - } + }, + "type": "varint" } ] }, @@ -15669,8 +15669,8 @@ { "compareTo": "type", "fields": { - "set_int": "li32", - "set_float": "lf32" + "set_float": "lf32", + "set_int": "li32" } } ] @@ -15689,11 +15689,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "coordinates", "1": "type_hide" - } + }, + "type": "varint" } ] }, @@ -15723,14 +15723,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "locked_player_relative_strafe", "1": "camera_relative", "2": "camera_relative_strafe", "3": "player_relative", "4": "player_relative_strafe" - } + }, + "type": "u8" } ] } @@ -15759,7 +15759,6 @@ [ "mapper", { - "type": "u8", "mappings": { "0": "line", "1": "box", @@ -15767,7 +15766,8 @@ "3": "circle", "4": "text", "5": "arrow" - } + }, + "type": "u8" } ] ] @@ -15877,12 +15877,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "float", "1": "bool", "2": "string" - } + }, + "type": "varint" } ] }, @@ -15893,8 +15893,8 @@ { "compareTo": "type", "fields": { - "float": "lf32", "bool": "bool", + "float": "lf32", "string": "string" } } @@ -15988,12 +15988,12 @@ "type": [ "mapper", { - "type": "lu32", "mappings": { "0": "double", "1": "bool", "2": "string" - } + }, + "type": "lu32" } ] }, @@ -16004,8 +16004,8 @@ { "compareTo": "data_type", "fields": { - "double": "lf64", "bool": "bool", + "double": "lf64", "string": "string" } } @@ -16065,14 +16065,14 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "invalid", "1": "initialize", "2": "start", "3": "set_enabled", "4": "sync" - } + }, + "type": "u8" } ] }, @@ -16226,13 +16226,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "sync_state", "1": "initialize_registry", "2": "add_time_marker", "3": "remove_time_marker" - } + }, + "type": "varint" } ] }, @@ -16243,16 +16243,20 @@ { "compareTo": "payload_type", "fields": { - "sync_state": [ + "add_time_marker": [ "container", [ { - "name": "sync_states", + "name": "add_clock_id", + "type": "varint64" + }, + { + "name": "add_time_markers", "type": [ "array", { "countType": "varint", - "type": "SyncWorldClockStateData" + "type": "TimeMarkerData" } ] } @@ -16273,39 +16277,35 @@ } ] ], - "add_time_marker": [ + "remove_time_marker": [ "container", [ { - "name": "add_clock_id", + "name": "remove_clock_id", "type": "varint64" }, { - "name": "add_time_markers", + "name": "remove_time_marker_ids", "type": [ "array", { "countType": "varint", - "type": "TimeMarkerData" + "type": "varint64" } ] } ] ], - "remove_time_marker": [ + "sync_state": [ "container", [ { - "name": "remove_clock_id", - "type": "varint64" - }, - { - "name": "remove_time_marker_ids", + "name": "sync_states", "type": [ "array", { "countType": "varint", - "type": "varint64" + "type": "SyncWorldClockStateData" } ] } @@ -16325,13 +16325,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "update_layers", "1": "update_settings", "2": "update_environment", "3": "remove_environment" - } + }, + "type": "varint" } ] }, @@ -16342,22 +16342,30 @@ { "compareTo": "payload_type", "fields": { - "update_layers": [ + "remove_environment": [ "container", [ { - "name": "layers", + "name": "layer_name", + "type": "string" + }, + { + "name": "dimension_id", + "type": "zigzag32" + }, + { + "name": "remove_attribute_names", "type": [ "array", { "countType": "varint", - "type": "AttributeLayerData" + "type": "string" } ] } ] ], - "update_settings": [ + "update_environment": [ "container", [ { @@ -16369,35 +16377,33 @@ "type": "zigzag32" }, { - "name": "settings", - "type": "AttributeLayerSettings" + "name": "environment_attributes", + "type": [ + "array", + { + "countType": "varint", + "type": "EnvironmentAttributeData" + } + ] } ] ], - "update_environment": [ + "update_layers": [ "container", [ { - "name": "layer_name", - "type": "string" - }, - { - "name": "dimension_id", - "type": "zigzag32" - }, - { - "name": "environment_attributes", + "name": "layers", "type": [ "array", { "countType": "varint", - "type": "EnvironmentAttributeData" + "type": "AttributeLayerData" } ] } ] ], - "remove_environment": [ + "update_settings": [ "container", [ { @@ -16409,14 +16415,8 @@ "type": "zigzag32" }, { - "name": "remove_attribute_names", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "settings", + "type": "AttributeLayerSettings" } ] ] diff --git a/data/pc/0.30c/protocol.json b/data/pc/0.30c/protocol.json index 3ef804fd1..e9b1d1a28 100644 --- a/data/pc/0.30c/protocol.json +++ b/data/pc/0.30c/protocol.json @@ -1,13 +1,61 @@ { "types": { - "u8": "native", - "string": "native", - "i8": "native", + "byte_array": "native", "i16": "native", - "byte_array": "native" + "i8": "native", + "string": "native", + "u8": "native" }, "toServer": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "player_identification", + "0x05": "set_block", + "0x08": "position", + "0x0d": "message" + }, + "type": "u8" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "message": "packet_message", + "player_identification": "packet_player_identification", + "position": "packet_position", + "set_block": "packet_set_block" + } + } + ] + } + ] + ], + "packet_message": [ + "container", + [ + { + "name": "unused", + "type": "u8" + }, + { + "name": "message", + "type": "string" + } + ] + ], "packet_player_identification": [ "container", [ @@ -29,9 +77,13 @@ } ] ], - "packet_set_block": [ + "packet_position": [ "container", [ + { + "name": "player_id", + "type": "u8" + }, { "name": "x", "type": "i16" @@ -45,22 +97,18 @@ "type": "i16" }, { - "name": "mode", + "name": "yaw", "type": "u8" }, { - "name": "block_type", + "name": "pitch", "type": "u8" } ] ], - "packet_position": [ + "packet_set_block": [ "container", [ - { - "name": "player_id", - "type": "u8" - }, { "name": "x", "type": "i16" @@ -74,28 +122,19 @@ "type": "i16" }, { - "name": "yaw", + "name": "mode", "type": "u8" }, { - "name": "pitch", - "type": "u8" - } - ] - ], - "packet_message": [ - "container", - [ - { - "name": "unused", + "name": "block_type", "type": "u8" - }, - { - "name": "message", - "type": "string" } ] - ], + ] + } + }, + "toClient": { + "types": { "packet": [ "container", [ @@ -104,13 +143,24 @@ "type": [ "mapper", { - "type": "u8", "mappings": { - "0x00": "player_identification", - "0x05": "set_block", - "0x08": "position", - "0x0d": "message" - } + "0x00": "server_identification", + "0x01": "ping", + "0x02": "level_initialize", + "0x03": "level_data_chunk", + "0x04": "level_finalize", + "0x06": "set_block", + "0x07": "spawn_player", + "0x08": "player_teleport", + "0x09": "position_and_orientation_update", + "0x0a": "position_update", + "0x0b": "orientation_update", + "0x0c": "despawn_player", + "0x0d": "message", + "0x0e": "disconnect_player", + "0x0f": "update_user_type" + }, + "type": "u8" } ] }, @@ -121,48 +171,44 @@ { "compareTo": "name", "fields": { - "player_identification": "packet_player_identification", + "despawn_player": "packet_despawn_player", + "disconnect_player": "packet_disconnect_player", + "level_data_chunk": "packet_level_data_chunk", + "level_finalize": "packet_level_finalize", + "level_initialize": "packet_level_initialize", + "message": "packet_message", + "orientation_update": "packet_orientation_update", + "ping": "packet_ping", + "player_teleport": "packet_player_teleport", + "position_and_orientation_update": "packet_position_and_orientation_update", + "position_update": "packet_position_update", + "server_identification": "packet_server_identification", "set_block": "packet_set_block", - "position": "packet_position", - "message": "packet_message" + "spawn_player": "packet_spawn_player", + "update_user_type": "packet_update_user_type" } } ] } ] - ] - } - }, - "toClient": { - "types": { - "packet_server_identification": [ + ], + "packet_despawn_player": [ "container", [ { - "name": "protocol_version", - "type": "u8" - }, - { - "name": "server_name", - "type": "string" - }, - { - "name": "server_motd", - "type": "string" - }, - { - "name": "user_type", + "name": "player_id", "type": "i8" } ] ], - "packet_ping": [ - "container", - [] - ], - "packet_level_initialize": [ + "packet_disconnect_player": [ "container", - [] + [ + { + "name": "disconnect_reason", + "type": "string" + } + ] ], "packet_level_data_chunk": [ "container", @@ -194,50 +240,30 @@ } ] ], - "packet_set_block": [ + "packet_level_initialize": [ + "container", + [] + ], + "packet_message": [ "container", [ { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" + "name": "player_id", + "type": "i8" }, { - "name": "block_type", - "type": "u8" + "name": "message", + "type": "string" } ] ], - "packet_spawn_player": [ + "packet_orientation_update": [ "container", [ { "name": "player_id", "type": "i8" }, - { - "name": "player_name", - "type": "string" - }, - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - }, { "name": "yaw", "type": "u8" @@ -248,6 +274,10 @@ } ] ], + "packet_ping": [ + "container", + [] + ], "packet_player_teleport": [ "container", [ @@ -327,33 +357,49 @@ } ] ], - "packet_orientation_update": [ + "packet_server_identification": [ "container", [ { - "name": "player_id", - "type": "i8" + "name": "protocol_version", + "type": "u8" }, { - "name": "yaw", - "type": "u8" + "name": "server_name", + "type": "string" }, { - "name": "pitch", - "type": "u8" + "name": "server_motd", + "type": "string" + }, + { + "name": "user_type", + "type": "i8" } ] ], - "packet_despawn_player": [ + "packet_set_block": [ "container", [ { - "name": "player_id", - "type": "i8" + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + }, + { + "name": "block_type", + "type": "u8" } ] ], - "packet_message": [ + "packet_spawn_player": [ "container", [ { @@ -361,17 +407,28 @@ "type": "i8" }, { - "name": "message", + "name": "player_name", "type": "string" - } - ] - ], - "packet_disconnect_player": [ - "container", - [ + }, { - "name": "disconnect_reason", - "type": "string" + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + }, + { + "name": "yaw", + "type": "u8" + }, + { + "name": "pitch", + "type": "u8" } ] ], @@ -383,63 +440,6 @@ "type": "u8" } ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "u8", - "mappings": { - "0x00": "server_identification", - "0x01": "ping", - "0x02": "level_initialize", - "0x03": "level_data_chunk", - "0x04": "level_finalize", - "0x06": "set_block", - "0x07": "spawn_player", - "0x08": "player_teleport", - "0x09": "position_and_orientation_update", - "0x0a": "position_update", - "0x0b": "orientation_update", - "0x0c": "despawn_player", - "0x0d": "message", - "0x0e": "disconnect_player", - "0x0f": "update_user_type" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "server_identification": "packet_server_identification", - "ping": "packet_ping", - "level_initialize": "packet_level_initialize", - "level_data_chunk": "packet_level_data_chunk", - "level_finalize": "packet_level_finalize", - "set_block": "packet_set_block", - "spawn_player": "packet_spawn_player", - "player_teleport": "packet_player_teleport", - "position_and_orientation_update": "packet_position_and_orientation_update", - "position_update": "packet_position_update", - "orientation_update": "packet_orientation_update", - "despawn_player": "packet_despawn_player", - "message": "packet_message", - "disconnect_player": "packet_disconnect_player", - "update_user_type": "packet_update_user_type" - } - } - ] - } - ] ] } } diff --git a/data/pc/1.10-pre1/protocol.json b/data/pc/1.10-pre1/protocol.json index 01ebc9d33..c5af88058 100644 --- a/data/pc/1.10-pre1/protocol.json +++ b/data/pc/1.10-pre1/protocol.json @@ -1,116 +1,53 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 255, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ + "anon": true, + "type": [ "container", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "key", + "type": "u8" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "type", + "type": "i8" } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -155,42 +92,105 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ + "compareTo": "blockId", + "default": [ "container", [ { - "name": "key", - "type": "u8" + "name": "itemCount", + "type": "i8" }, { - "name": "type", - "type": "i8" + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -203,8 +203,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -224,36 +224,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -262,11 +232,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -277,38 +247,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -317,11 +299,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -332,21 +314,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -357,6 +331,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -365,11 +352,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -380,13 +367,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -394,6 +394,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -442,16 +486,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -460,13 +499,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -477,28 +514,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -523,6 +545,21 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -531,11 +568,85 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "sound_effect", + "0x47": "playerlist_header", + "0x48": "collect", + "0x49": "entity_teleport", + "0x4a": "entity_update_attributes", + "0x4b": "entity_effect" + }, + "type": "varint" } ] }, @@ -546,66 +657,106 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } - } + "abilities": "packet_abilities", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "custom_payload": "packet_custom_payload", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", + "name": "flags", "type": "i8" }, { - "name": "objectData", - "type": "i32" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "velocity", - "type": "vec3i16" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_animation": [ "container", [ { @@ -613,49 +764,25 @@ "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "animation", + "type": "u8" } ] ], - "packet_spawn_entity_weather": [ + "packet_attach_entity": [ "container", [ { "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "type": "i32" }, { - "name": "z", - "type": "f64" + "name": "vehicleId", + "type": "i32" } ] ], - "packet_spawn_entity_living": [ + "packet_bed": [ "container", [ { @@ -663,48 +790,33 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "u8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_block_action": [ + "container", + [ { - "name": "pitch", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "headPitch", - "type": "i8" + "name": "byte1", + "type": "u8" }, { - "name": "velocity", - "type": "vec3i16" + "name": "byte2", + "type": "u8" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "blockId", + "type": "varint" } ] ], - "packet_spawn_entity_painting": [ + "packet_block_break_animation": [ "container", [ { @@ -712,248 +824,244 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" + "name": "location", + "type": "position" }, { - "name": "title", - "type": "string" - }, + "name": "destroyStage", + "type": "i8" + } + ] + ], + "packet_block_change": [ + "container", + [ { "name": "location", "type": "position" }, { - "name": "direction", - "type": "u8" + "name": "type", + "type": "varint" } ] ], - "packet_named_entity_spawn": [ + "packet_boss_bar": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "playerUUID", - "type": "UUID" + "name": "action", + "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "title", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "3": "string" + } + } + ] }, { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" + "name": "health", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "color", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "dividers", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", + "name": "flags", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } } ] } ] ], - "packet_block_break_animation": [ + "packet_camera": [ "container", [ { - "name": "entityId", + "name": "cameraId", "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" } ] ], - "packet_tile_entity_data": [ + "packet_chat": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "message", + "type": "string" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "position", + "type": "i8" } ] ], - "packet_block_action": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "byte1", - "type": "u8" - }, - { - "name": "byte2", + "name": "windowId", "type": "u8" - }, - { - "name": "blockId", - "type": "varint" } ] ], - "packet_block_change": [ + "packet_collect": [ "container", [ { - "name": "location", - "type": "position" + "name": "collectedEntityId", + "type": "varint" }, { - "name": "type", + "name": "collectorEntityId", "type": "varint" } ] ], - "packet_boss_bar": [ + "packet_combat_event": [ "container", [ { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", + "name": "event", "type": "varint" }, { - "name": "title", + "name": "duration", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "string", - "3": "string" - }, - "default": "void" + "1": "varint" + } } ] }, { - "name": "health", + "name": "playerId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" + "2": "varint" + } } ] }, { - "name": "color", + "name": "entityId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "dividers", + "name": "message", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "2": "string" + } } ] + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], @@ -966,264 +1074,282 @@ } ] ], - "packet_tab_complete": [ + "packet_entity": [ "container", [ { - "name": "matches", + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "varint" } ] } ] ], - "packet_chat": [ + "packet_entity_effect": [ "container", [ { - "name": "message", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "position", + "name": "effectId", "type": "i8" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ + }, { - "name": "chunkX", - "type": "i32" + "name": "amplifier", + "type": "i8" }, { - "name": "chunkZ", - "type": "i32" + "name": "duration", + "type": "varint" }, { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] - } - ] + "name": "hideParticles", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "slot", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "inventoryType", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "windowTitle", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "pitch", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ - { - "name": "windowId", - "type": "i8" }, { - "name": "slot", + "name": "dZ", "type": "i16" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ + "name": "yaw", + "type": "i8" + }, { - "name": "itemID", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_status": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "data", - "type": "restBuffer" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_named_sound_effect": [ + "packet_entity_teleport": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_velocity": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -1286,20 +1412,7 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ + "packet_game_state_change": [ "container", [ { @@ -1312,151 +1425,30 @@ } ] ], - "packet_keep_alive": [ + "packet_held_item_slot": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "slot", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "groundUp", - "type": "bool" - }, - { - "name": "bitMap", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" } ] ], - "packet_world_particles": [ + "packet_kick_disconnect": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, - { - "name": "particles", - "type": "i32" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "particleId", - "fields": { - "36": [ - "array", - { - "count": 2, - "type": "varint" - } - ], - "37": [ - "array", - { - "count": 1, - "type": "varint" - } - ], - "38": [ - "array", - { - "count": 1, - "type": "varint" - } - ] - }, - "default": "void" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -1544,10 +1536,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1557,10 +1549,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1570,10 +1562,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1583,46 +1575,100 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" + }, + { + "name": "bitMap", "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "dY", - "type": "i16" + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] + } + ] + ], + "packet_multi_block_change": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" }, { - "name": "dZ", - "type": "i16" + "name": "chunkZ", + "type": "i32" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_entity_move_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -1630,16 +1676,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dY", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -1650,58 +1700,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -1719,80 +1747,35 @@ } ] ], - "packet_abilities": [ + "packet_open_window": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" + "name": "windowId", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_combat_event": [ - "container", - [ - { - "name": "event", - "type": "varint" + "name": "inventoryType", + "type": "string" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { "name": "entityId", "type": [ "switch", { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -1806,14 +1789,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -1890,37 +1873,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -1932,6 +1915,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -1965,7 +1961,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -1973,23 +1969,20 @@ "type": "varint" }, { - "name": "location", - "type": "position" - } - ] - ], - "packet_entity_destroy": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -2040,223 +2033,218 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ + { + "name": "name", + "type": "string" + }, { "name": "action", - "type": "varint" + "type": "i8" }, { - "name": "radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "0": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "x", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "new_radius", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] - }, - { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_camera": [ + "packet_set_cooldown": [ "container", [ { - "name": "cameraId", + "name": "itemID", + "type": "varint" + }, + { + "name": "cooldownTicks", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_set_passengers": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "entityId", + "type": "varint" + }, + { + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_scoreboard_display_objective": [ + "packet_set_slot": [ "container", [ { - "name": "position", + "name": "windowId", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_entity_metadata": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "soundCategory", + "type": "varint" + }, { - "name": "entityId", + "name": "x", "type": "i32" }, { - "name": "vehicleId", + "name": "y", + "type": "i32" + }, + { + "name": "z", "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -2264,91 +2252,73 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "item", - "type": "slot" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_experience": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "totalExperience", - "type": "varint" - } - ] - ], - "packet_update_health": [ - "container", - [ + "name": "type", + "type": "u8" + }, { - "name": "health", - "type": "f32" + "name": "x", + "type": "f64" }, { - "name": "food", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_scoreboard_objective": [ - "container", - [ + "name": "z", + "type": "f64" + }, { - "name": "name", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "action", + "name": "pitch", "type": "i8" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "headPitch", + "type": "i8" }, { - "name": "type", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_set_passengers": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -2356,18 +2326,100 @@ "type": "varint" }, { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_teams": [ + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", + "type": "string" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" + } + ] + ], + "packet_spawn_entity_weather": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], + "packet_teams": [ "container", [ { @@ -2384,11 +2436,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2398,11 +2450,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2412,11 +2464,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2426,11 +2478,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2440,11 +2492,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2454,11 +2506,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2468,11 +2520,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2482,6 +2534,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -2504,62 +2557,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -2576,11 +2593,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string" - }, - "default": "void" + } } ] }, @@ -2590,10 +2607,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] }, @@ -2603,10 +2620,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] }, @@ -2616,81 +2633,78 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_sound_effect": [ + "packet_transaction": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "soundCategory", - "type": "varint" + "name": "action", + "type": "i16" }, { - "name": "x", - "type": "i32" - }, + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ { - "name": "y", + "name": "chunkX", "type": "i32" }, { - "name": "z", + "name": "chunkZ", "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" } ] ], - "packet_playerlist_header": [ + "packet_update_health": [ "container", [ { - "name": "header", - "type": "string" + "name": "health", + "type": "f32" }, { - "name": "footer", - "type": "string" + "name": "food", + "type": "varint" + }, + { + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_collect": [ + "packet_update_time": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" + "name": "age", + "type": "i64" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "time", + "type": "i64" } ] ], - "packet_entity_teleport": [ + "packet_vehicle_move": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "x", "type": "f64" @@ -2705,100 +2719,269 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "onGround", - "type": "bool" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_entity_update_attributes": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "properties", + "name": "radius", "type": [ - "array", + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], + "packet_world_particles": [ + "container", + [ + { + "name": "particleId", + "type": "i32" + }, + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "particleId", + "default": "void", + "fields": { + "36": [ + "array", + { + "count": 2, + "type": "varint" + } + ], + "37": [ + "array", + { + "count": 1, + "type": "varint" + } + ], + "38": [ + "array", + { + "count": 1, + "type": "varint" + } + ] + } + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -2807,85 +2990,39 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "sound_effect", - "0x47": "playerlist_header", - "0x48": "collect", - "0x49": "entity_teleport", - "0x4a": "entity_update_attributes", - "0x4b": "entity_effect" - } + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" + }, + "type": "varint" } ] }, @@ -2896,118 +3033,111 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", + "abilities": "packet_abilities", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "look": "packet_look", "position": "packet_position", - "bed": "packet_bed", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect" + "position_look": "packet_position_look", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_sign": "packet_update_sign", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" + } + ] + ], + "packet_arm_animation": [ + "container", + [ + { + "name": "hand", "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_block_dig": [ + "container", + [ + { + "name": "status", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" + } + ] + ], + "packet_block_place": [ "container", [ { - "name": "text", - "type": "string" + "name": "location", + "type": "position" }, { - "name": "assumeCommand", - "type": "bool" + "name": "direction", + "type": "varint" }, { - "name": "lookedAtBlock", - "type": [ - "option", - "position" - ] + "name": "hand", + "type": "varint" + }, + { + "name": "cursorX", + "type": "i8" + }, + { + "name": "cursorY", + "type": "i8" + }, + { + "name": "cursorZ", + "type": "i8" } ] ], @@ -3029,49 +3159,25 @@ } ] ], - "packet_settings": [ + "packet_close_window": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", + "name": "windowId", "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" } ] ], - "packet_transaction": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "channel", + "type": "string" }, { - "name": "accepted", - "type": "bool" + "name": "data", + "type": "restBuffer" } ] ], @@ -3088,129 +3194,64 @@ } ] ], - "packet_window_click": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "mode", - "type": "i8" + "name": "actionId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_close_window": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_held_item_slot": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "slotId", + "type": "i16" } ] ], - "packet_use_entity": [ + "packet_keep_alive": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] } ] ], - "packet_keep_alive": [ + "packet_look": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -3264,118 +3305,76 @@ } ] ], - "packet_look": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_flying": [ + "packet_set_creative_slot": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_vehicle_move": [ + "packet_settings": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "locale", + "type": "string" }, { - "name": "yaw", - "type": "f32" + "name": "viewDistance", + "type": "i8" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_steer_boat": [ - "container", - [ - { - "name": "leftPaddle", - "type": "bool" + "name": "chatFlags", + "type": "varint" }, { - "name": "rightPaddle", + "name": "chatColors", "type": "bool" - } - ] - ], - "packet_abilities": [ - "container", - [ - { - "name": "flags", - "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "skinParts", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -3396,34 +3395,49 @@ } ] ], - "packet_resource_pack_receive": [ + "packet_tab_complete": [ "container", [ { - "name": "result", - "type": "varint" + "name": "text", + "type": "string" + }, + { + "name": "assumeCommand", + "type": "bool" + }, + { + "name": "lookedAtBlock", + "type": [ + "option", + "position" + ] } ] ], - "packet_held_item_slot": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "teleportId", + "type": "varint" } ] ], - "packet_set_creative_slot": [ + "packet_transaction": [ "container", [ { - "name": "slot", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" }, { - "name": "item", - "type": "slot" + "name": "accepted", + "type": "bool" } ] ], @@ -3452,146 +3466,132 @@ } ] ], - "packet_arm_animation": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", + "type": "varint" + }, + { + "name": "mouse", "type": "varint" + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], - "packet_spectate": [ + "packet_use_item": [ "container", [ { - "name": "target", - "type": "UUID" + "name": "hand", + "type": "varint" } ] ], - "packet_block_place": [ + "packet_vehicle_move": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "hand", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "cursorX", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "cursorY", - "type": "i8" + "name": "yaw", + "type": "f32" }, { - "name": "cursorZ", - "type": "i8" + "name": "pitch", + "type": "f32" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" - } - ] - ], - "packet": [ - "container", - [ + "name": "windowId", + "type": "u8" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" - } - } - ] + "name": "slot", + "type": "i16" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } - } - ] + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.10/protocol.json b/data/pc/1.10/protocol.json index 01ebc9d33..c5af88058 100644 --- a/data/pc/1.10/protocol.json +++ b/data/pc/1.10/protocol.json @@ -1,116 +1,53 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 255, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ + "anon": true, + "type": [ "container", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "key", + "type": "u8" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "type", + "type": "i8" } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -155,42 +92,105 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ + "compareTo": "blockId", + "default": [ "container", [ { - "name": "key", - "type": "u8" + "name": "itemCount", + "type": "i8" }, { - "name": "type", - "type": "i8" + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -203,8 +203,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -224,36 +224,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -262,11 +232,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -277,38 +247,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -317,11 +299,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -332,21 +314,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -357,6 +331,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -365,11 +352,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -380,13 +367,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -394,6 +394,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -442,16 +486,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -460,13 +499,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -477,28 +514,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -523,6 +545,21 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -531,11 +568,85 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "sound_effect", + "0x47": "playerlist_header", + "0x48": "collect", + "0x49": "entity_teleport", + "0x4a": "entity_update_attributes", + "0x4b": "entity_effect" + }, + "type": "varint" } ] }, @@ -546,66 +657,106 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } - } + "abilities": "packet_abilities", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "custom_payload": "packet_custom_payload", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", + "name": "flags", "type": "i8" }, { - "name": "objectData", - "type": "i32" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "velocity", - "type": "vec3i16" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_animation": [ "container", [ { @@ -613,49 +764,25 @@ "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "animation", + "type": "u8" } ] ], - "packet_spawn_entity_weather": [ + "packet_attach_entity": [ "container", [ { "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "type": "i32" }, { - "name": "z", - "type": "f64" + "name": "vehicleId", + "type": "i32" } ] ], - "packet_spawn_entity_living": [ + "packet_bed": [ "container", [ { @@ -663,48 +790,33 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "u8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_block_action": [ + "container", + [ { - "name": "pitch", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "headPitch", - "type": "i8" + "name": "byte1", + "type": "u8" }, { - "name": "velocity", - "type": "vec3i16" + "name": "byte2", + "type": "u8" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "blockId", + "type": "varint" } ] ], - "packet_spawn_entity_painting": [ + "packet_block_break_animation": [ "container", [ { @@ -712,248 +824,244 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" + "name": "location", + "type": "position" }, { - "name": "title", - "type": "string" - }, + "name": "destroyStage", + "type": "i8" + } + ] + ], + "packet_block_change": [ + "container", + [ { "name": "location", "type": "position" }, { - "name": "direction", - "type": "u8" + "name": "type", + "type": "varint" } ] ], - "packet_named_entity_spawn": [ + "packet_boss_bar": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "playerUUID", - "type": "UUID" + "name": "action", + "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "title", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "3": "string" + } + } + ] }, { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" + "name": "health", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "color", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "dividers", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", + "name": "flags", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } } ] } ] ], - "packet_block_break_animation": [ + "packet_camera": [ "container", [ { - "name": "entityId", + "name": "cameraId", "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" } ] ], - "packet_tile_entity_data": [ + "packet_chat": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "message", + "type": "string" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "position", + "type": "i8" } ] ], - "packet_block_action": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "byte1", - "type": "u8" - }, - { - "name": "byte2", + "name": "windowId", "type": "u8" - }, - { - "name": "blockId", - "type": "varint" } ] ], - "packet_block_change": [ + "packet_collect": [ "container", [ { - "name": "location", - "type": "position" + "name": "collectedEntityId", + "type": "varint" }, { - "name": "type", + "name": "collectorEntityId", "type": "varint" } ] ], - "packet_boss_bar": [ + "packet_combat_event": [ "container", [ { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", + "name": "event", "type": "varint" }, { - "name": "title", + "name": "duration", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "string", - "3": "string" - }, - "default": "void" + "1": "varint" + } } ] }, { - "name": "health", + "name": "playerId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" + "2": "varint" + } } ] }, { - "name": "color", + "name": "entityId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "dividers", + "name": "message", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "2": "string" + } } ] + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], @@ -966,264 +1074,282 @@ } ] ], - "packet_tab_complete": [ + "packet_entity": [ "container", [ { - "name": "matches", + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "varint" } ] } ] ], - "packet_chat": [ + "packet_entity_effect": [ "container", [ { - "name": "message", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "position", + "name": "effectId", "type": "i8" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ + }, { - "name": "chunkX", - "type": "i32" + "name": "amplifier", + "type": "i8" }, { - "name": "chunkZ", - "type": "i32" + "name": "duration", + "type": "varint" }, { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] - } - ] + "name": "hideParticles", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "slot", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "inventoryType", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "windowTitle", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "pitch", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ - { - "name": "windowId", - "type": "i8" }, { - "name": "slot", + "name": "dZ", "type": "i16" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ + "name": "yaw", + "type": "i8" + }, { - "name": "itemID", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_status": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "data", - "type": "restBuffer" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_named_sound_effect": [ + "packet_entity_teleport": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_velocity": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -1286,20 +1412,7 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ + "packet_game_state_change": [ "container", [ { @@ -1312,151 +1425,30 @@ } ] ], - "packet_keep_alive": [ + "packet_held_item_slot": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "slot", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "groundUp", - "type": "bool" - }, - { - "name": "bitMap", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" } ] ], - "packet_world_particles": [ + "packet_kick_disconnect": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, - { - "name": "particles", - "type": "i32" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "particleId", - "fields": { - "36": [ - "array", - { - "count": 2, - "type": "varint" - } - ], - "37": [ - "array", - { - "count": 1, - "type": "varint" - } - ], - "38": [ - "array", - { - "count": 1, - "type": "varint" - } - ] - }, - "default": "void" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -1544,10 +1536,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1557,10 +1549,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1570,10 +1562,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1583,46 +1575,100 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" + }, + { + "name": "bitMap", "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "dY", - "type": "i16" + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] + } + ] + ], + "packet_multi_block_change": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" }, { - "name": "dZ", - "type": "i16" + "name": "chunkZ", + "type": "i32" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_entity_move_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -1630,16 +1676,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dY", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -1650,58 +1700,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -1719,80 +1747,35 @@ } ] ], - "packet_abilities": [ + "packet_open_window": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" + "name": "windowId", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_combat_event": [ - "container", - [ - { - "name": "event", - "type": "varint" + "name": "inventoryType", + "type": "string" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { "name": "entityId", "type": [ "switch", { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -1806,14 +1789,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -1890,37 +1873,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -1932,6 +1915,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -1965,7 +1961,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -1973,23 +1969,20 @@ "type": "varint" }, { - "name": "location", - "type": "position" - } - ] - ], - "packet_entity_destroy": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -2040,223 +2033,218 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ + { + "name": "name", + "type": "string" + }, { "name": "action", - "type": "varint" + "type": "i8" }, { - "name": "radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "0": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "x", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "new_radius", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] - }, - { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_camera": [ + "packet_set_cooldown": [ "container", [ { - "name": "cameraId", + "name": "itemID", + "type": "varint" + }, + { + "name": "cooldownTicks", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_set_passengers": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "entityId", + "type": "varint" + }, + { + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_scoreboard_display_objective": [ + "packet_set_slot": [ "container", [ { - "name": "position", + "name": "windowId", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_entity_metadata": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "soundCategory", + "type": "varint" + }, { - "name": "entityId", + "name": "x", "type": "i32" }, { - "name": "vehicleId", + "name": "y", + "type": "i32" + }, + { + "name": "z", "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -2264,91 +2252,73 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "item", - "type": "slot" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_experience": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "totalExperience", - "type": "varint" - } - ] - ], - "packet_update_health": [ - "container", - [ + "name": "type", + "type": "u8" + }, { - "name": "health", - "type": "f32" + "name": "x", + "type": "f64" }, { - "name": "food", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_scoreboard_objective": [ - "container", - [ + "name": "z", + "type": "f64" + }, { - "name": "name", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "action", + "name": "pitch", "type": "i8" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "headPitch", + "type": "i8" }, { - "name": "type", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_set_passengers": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -2356,18 +2326,100 @@ "type": "varint" }, { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_teams": [ + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", + "type": "string" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" + } + ] + ], + "packet_spawn_entity_weather": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], + "packet_teams": [ "container", [ { @@ -2384,11 +2436,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2398,11 +2450,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2412,11 +2464,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2426,11 +2478,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2440,11 +2492,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2454,11 +2506,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2468,11 +2520,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2482,6 +2534,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -2504,62 +2557,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -2576,11 +2593,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string" - }, - "default": "void" + } } ] }, @@ -2590,10 +2607,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] }, @@ -2603,10 +2620,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] }, @@ -2616,81 +2633,78 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_sound_effect": [ + "packet_transaction": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "soundCategory", - "type": "varint" + "name": "action", + "type": "i16" }, { - "name": "x", - "type": "i32" - }, + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ { - "name": "y", + "name": "chunkX", "type": "i32" }, { - "name": "z", + "name": "chunkZ", "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" } ] ], - "packet_playerlist_header": [ + "packet_update_health": [ "container", [ { - "name": "header", - "type": "string" + "name": "health", + "type": "f32" }, { - "name": "footer", - "type": "string" + "name": "food", + "type": "varint" + }, + { + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_collect": [ + "packet_update_time": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" + "name": "age", + "type": "i64" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "time", + "type": "i64" } ] ], - "packet_entity_teleport": [ + "packet_vehicle_move": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "x", "type": "f64" @@ -2705,100 +2719,269 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "onGround", - "type": "bool" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_entity_update_attributes": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "properties", + "name": "radius", "type": [ - "array", + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], + "packet_world_particles": [ + "container", + [ + { + "name": "particleId", + "type": "i32" + }, + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "particleId", + "default": "void", + "fields": { + "36": [ + "array", + { + "count": 2, + "type": "varint" + } + ], + "37": [ + "array", + { + "count": 1, + "type": "varint" + } + ], + "38": [ + "array", + { + "count": 1, + "type": "varint" + } + ] + } + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -2807,85 +2990,39 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "sound_effect", - "0x47": "playerlist_header", - "0x48": "collect", - "0x49": "entity_teleport", - "0x4a": "entity_update_attributes", - "0x4b": "entity_effect" - } + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" + }, + "type": "varint" } ] }, @@ -2896,118 +3033,111 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", + "abilities": "packet_abilities", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "look": "packet_look", "position": "packet_position", - "bed": "packet_bed", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect" + "position_look": "packet_position_look", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_sign": "packet_update_sign", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" + } + ] + ], + "packet_arm_animation": [ + "container", + [ + { + "name": "hand", "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_block_dig": [ + "container", + [ + { + "name": "status", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" + } + ] + ], + "packet_block_place": [ "container", [ { - "name": "text", - "type": "string" + "name": "location", + "type": "position" }, { - "name": "assumeCommand", - "type": "bool" + "name": "direction", + "type": "varint" }, { - "name": "lookedAtBlock", - "type": [ - "option", - "position" - ] + "name": "hand", + "type": "varint" + }, + { + "name": "cursorX", + "type": "i8" + }, + { + "name": "cursorY", + "type": "i8" + }, + { + "name": "cursorZ", + "type": "i8" } ] ], @@ -3029,49 +3159,25 @@ } ] ], - "packet_settings": [ + "packet_close_window": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", + "name": "windowId", "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" } ] ], - "packet_transaction": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "channel", + "type": "string" }, { - "name": "accepted", - "type": "bool" + "name": "data", + "type": "restBuffer" } ] ], @@ -3088,129 +3194,64 @@ } ] ], - "packet_window_click": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "mode", - "type": "i8" + "name": "actionId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_close_window": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_held_item_slot": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "slotId", + "type": "i16" } ] ], - "packet_use_entity": [ + "packet_keep_alive": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] } ] ], - "packet_keep_alive": [ + "packet_look": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -3264,118 +3305,76 @@ } ] ], - "packet_look": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_flying": [ + "packet_set_creative_slot": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_vehicle_move": [ + "packet_settings": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "locale", + "type": "string" }, { - "name": "yaw", - "type": "f32" + "name": "viewDistance", + "type": "i8" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_steer_boat": [ - "container", - [ - { - "name": "leftPaddle", - "type": "bool" + "name": "chatFlags", + "type": "varint" }, { - "name": "rightPaddle", + "name": "chatColors", "type": "bool" - } - ] - ], - "packet_abilities": [ - "container", - [ - { - "name": "flags", - "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "skinParts", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -3396,34 +3395,49 @@ } ] ], - "packet_resource_pack_receive": [ + "packet_tab_complete": [ "container", [ { - "name": "result", - "type": "varint" + "name": "text", + "type": "string" + }, + { + "name": "assumeCommand", + "type": "bool" + }, + { + "name": "lookedAtBlock", + "type": [ + "option", + "position" + ] } ] ], - "packet_held_item_slot": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "teleportId", + "type": "varint" } ] ], - "packet_set_creative_slot": [ + "packet_transaction": [ "container", [ { - "name": "slot", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" }, { - "name": "item", - "type": "slot" + "name": "accepted", + "type": "bool" } ] ], @@ -3452,146 +3466,132 @@ } ] ], - "packet_arm_animation": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", + "type": "varint" + }, + { + "name": "mouse", "type": "varint" + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], - "packet_spectate": [ + "packet_use_item": [ "container", [ { - "name": "target", - "type": "UUID" + "name": "hand", + "type": "varint" } ] ], - "packet_block_place": [ + "packet_vehicle_move": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "hand", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "cursorX", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "cursorY", - "type": "i8" + "name": "yaw", + "type": "f32" }, { - "name": "cursorZ", - "type": "i8" + "name": "pitch", + "type": "f32" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" - } - ] - ], - "packet": [ - "container", - [ + "name": "windowId", + "type": "u8" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" - } - } - ] + "name": "slot", + "type": "i16" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } - } - ] + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.11/protocol.json b/data/pc/1.11/protocol.json index 7b2d648cb..1706511c1 100644 --- a/data/pc/1.11/protocol.json +++ b/data/pc/1.11/protocol.json @@ -1,116 +1,53 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 255, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ + "anon": true, + "type": [ "container", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "key", + "type": "u8" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "type", + "type": "i8" } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -155,42 +92,105 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ + "compareTo": "blockId", + "default": [ "container", [ { - "name": "key", - "type": "u8" + "name": "itemCount", + "type": "i8" }, { - "name": "type", - "type": "i8" + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -203,8 +203,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -224,36 +224,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -262,11 +232,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -277,38 +247,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -317,11 +299,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -332,21 +314,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -357,6 +331,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -365,11 +352,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -380,13 +367,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -394,6 +394,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -442,16 +486,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -460,13 +499,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -477,28 +514,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -523,6 +545,21 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -531,11 +568,85 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "sound_effect", + "0x47": "playerlist_header", + "0x48": "collect", + "0x49": "entity_teleport", + "0x4a": "entity_update_attributes", + "0x4b": "entity_effect" + }, + "type": "varint" } ] }, @@ -546,66 +657,106 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } - } + "abilities": "packet_abilities", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "custom_payload": "packet_custom_payload", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", + "name": "flags", "type": "i8" }, { - "name": "objectData", - "type": "i32" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "velocity", - "type": "vec3i16" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_animation": [ "container", [ { @@ -613,49 +764,25 @@ "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "animation", + "type": "u8" } ] ], - "packet_spawn_entity_weather": [ + "packet_attach_entity": [ "container", [ { "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "type": "i32" }, { - "name": "z", - "type": "f64" + "name": "vehicleId", + "type": "i32" } ] ], - "packet_spawn_entity_living": [ + "packet_bed": [ "container", [ { @@ -663,48 +790,33 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_block_action": [ + "container", + [ { - "name": "pitch", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "headPitch", - "type": "i8" + "name": "byte1", + "type": "u8" }, { - "name": "velocity", - "type": "vec3i16" + "name": "byte2", + "type": "u8" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "blockId", + "type": "varint" } ] ], - "packet_spawn_entity_painting": [ + "packet_block_break_animation": [ "container", [ { @@ -712,248 +824,248 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" + "name": "location", + "type": "position" }, { - "name": "title", - "type": "string" - }, + "name": "destroyStage", + "type": "i8" + } + ] + ], + "packet_block_change": [ + "container", + [ { "name": "location", "type": "position" }, { - "name": "direction", - "type": "u8" + "name": "type", + "type": "varint" } ] ], - "packet_named_entity_spawn": [ + "packet_boss_bar": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "playerUUID", - "type": "UUID" + "name": "action", + "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "title", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "3": "string" + } + } + ] }, { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" + "name": "health", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "color", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "dividers", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", + "name": "flags", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } } ] } ] ], - "packet_block_break_animation": [ + "packet_camera": [ "container", [ { - "name": "entityId", + "name": "cameraId", "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" } ] ], - "packet_tile_entity_data": [ + "packet_chat": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "message", + "type": "string" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "position", + "type": "i8" } ] ], - "packet_block_action": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "byte1", - "type": "u8" - }, - { - "name": "byte2", + "name": "windowId", "type": "u8" - }, - { - "name": "blockId", - "type": "varint" } ] ], - "packet_block_change": [ + "packet_collect": [ "container", [ { - "name": "location", - "type": "position" + "name": "collectedEntityId", + "type": "varint" }, { - "name": "type", + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", "type": "varint" } ] ], - "packet_boss_bar": [ + "packet_combat_event": [ "container", [ { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", + "name": "event", "type": "varint" }, { - "name": "title", + "name": "duration", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "string", - "3": "string" - }, - "default": "void" + "1": "varint" + } } ] }, { - "name": "health", + "name": "playerId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" + "2": "varint" + } } ] }, { - "name": "color", + "name": "entityId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "dividers", + "name": "message", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "2": "string" + } } ] + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], @@ -966,264 +1078,282 @@ } ] ], - "packet_tab_complete": [ + "packet_entity": [ "container", [ { - "name": "matches", + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "varint" } ] } ] ], - "packet_chat": [ + "packet_entity_effect": [ "container", [ { - "name": "message", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "position", + "name": "effectId", "type": "i8" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ + }, { - "name": "chunkX", - "type": "i32" + "name": "amplifier", + "type": "i8" }, { - "name": "chunkZ", - "type": "i32" + "name": "duration", + "type": "varint" }, { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] - } - ] + "name": "hideParticles", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "slot", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "inventoryType", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "windowTitle", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "pitch", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ - { - "name": "windowId", - "type": "i8" }, { - "name": "slot", + "name": "dZ", "type": "i16" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ + "name": "yaw", + "type": "i8" + }, { - "name": "itemID", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_status": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "data", - "type": "restBuffer" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_named_sound_effect": [ + "packet_entity_teleport": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_velocity": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -1286,19 +1416,6 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], "packet_game_state_change": [ "container", [ @@ -1312,151 +1429,30 @@ } ] ], - "packet_keep_alive": [ + "packet_held_item_slot": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "slot", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "groundUp", - "type": "bool" - }, - { - "name": "bitMap", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" } ] ], - "packet_world_particles": [ + "packet_kick_disconnect": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, - { - "name": "particles", - "type": "i32" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "particleId", - "fields": { - "36": [ - "array", - { - "count": 2, - "type": "varint" - } - ], - "37": [ - "array", - { - "count": 1, - "type": "varint" - } - ], - "38": [ - "array", - { - "count": 1, - "type": "varint" - } - ] - }, - "default": "void" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -1544,10 +1540,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1557,10 +1553,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1570,10 +1566,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1583,46 +1579,100 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" + }, + { + "name": "bitMap", "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "dY", - "type": "i16" + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] + } + ] + ], + "packet_multi_block_change": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" }, { - "name": "dZ", - "type": "i16" + "name": "chunkZ", + "type": "i32" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_entity_move_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -1630,16 +1680,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dY", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -1650,58 +1704,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -1719,80 +1751,35 @@ } ] ], - "packet_abilities": [ + "packet_open_window": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" + "name": "windowId", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_combat_event": [ - "container", - [ - { - "name": "event", - "type": "varint" + "name": "inventoryType", + "type": "string" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { "name": "entityId", "type": [ "switch", { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -1806,14 +1793,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -1890,37 +1877,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -1932,6 +1919,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -1965,7 +1965,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -1973,23 +1973,20 @@ "type": "varint" }, { - "name": "location", - "type": "position" - } - ] - ], - "packet_entity_destroy": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -2040,223 +2037,218 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ + { + "name": "name", + "type": "string" + }, { "name": "action", - "type": "varint" + "type": "i8" }, { - "name": "radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "0": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "x", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "new_radius", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] - }, - { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_camera": [ + "packet_set_cooldown": [ "container", [ { - "name": "cameraId", + "name": "itemID", + "type": "varint" + }, + { + "name": "cooldownTicks", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_set_passengers": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "entityId", + "type": "varint" + }, + { + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_scoreboard_display_objective": [ + "packet_set_slot": [ "container", [ { - "name": "position", + "name": "windowId", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_entity_metadata": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "soundCategory", + "type": "varint" + }, { - "name": "entityId", + "name": "x", "type": "i32" }, { - "name": "vehicleId", + "name": "y", "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -2264,91 +2256,73 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "item", - "type": "slot" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_experience": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "totalExperience", + "name": "type", "type": "varint" - } - ] - ], - "packet_update_health": [ - "container", - [ + }, { - "name": "health", - "type": "f32" + "name": "x", + "type": "f64" }, { - "name": "food", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_scoreboard_objective": [ - "container", - [ + "name": "z", + "type": "f64" + }, { - "name": "name", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "action", + "name": "pitch", "type": "i8" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "headPitch", + "type": "i8" }, { - "name": "type", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_set_passengers": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -2356,18 +2330,100 @@ "type": "varint" }, { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_teams": [ + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", + "type": "string" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" + } + ] + ], + "packet_spawn_entity_weather": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], + "packet_teams": [ "container", [ { @@ -2384,11 +2440,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2398,11 +2454,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2412,11 +2468,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2426,11 +2482,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2440,11 +2496,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2454,11 +2510,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2468,11 +2524,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2482,6 +2538,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -2504,62 +2561,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -2576,12 +2597,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2591,10 +2612,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -2604,10 +2625,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -2617,85 +2638,78 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_sound_effect": [ + "packet_transaction": [ "container", [ { - "name": "soundId", - "type": "varint" - }, - { - "name": "soundCategory", - "type": "varint" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" + "name": "windowId", + "type": "i8" }, { - "name": "volume", - "type": "f32" + "name": "action", + "type": "i16" }, { - "name": "pitch", - "type": "f32" + "name": "accepted", + "type": "bool" } ] ], - "packet_playerlist_header": [ + "packet_unload_chunk": [ "container", [ { - "name": "header", - "type": "string" + "name": "chunkX", + "type": "i32" }, { - "name": "footer", - "type": "string" + "name": "chunkZ", + "type": "i32" } ] ], - "packet_collect": [ + "packet_update_health": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "collectorEntityId", + "name": "food", "type": "varint" }, { - "name": "pickupItemCount", - "type": "varint" + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_entity_teleport": [ + "packet_update_time": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "age", + "type": "i64" }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ { "name": "x", "type": "f64" @@ -2710,100 +2724,269 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "type": "f32" } ] ], - "packet_entity_update_attributes": [ + "packet_window_items": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "properties", + "name": "items", "type": [ "array", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "countType": "i16", + "type": "slot" } ] } ] ], - "packet_entity_effect": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, + { + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } + } + ] + } + ] + ], + "packet_world_event": [ + "container", + [ { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], + "packet_world_particles": [ + "container", + [ + { + "name": "particleId", + "type": "i32" + }, + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "particleId", + "default": "void", + "fields": { + "36": [ + "array", + { + "count": 2, + "type": "varint" + } + ], + "37": [ + "array", + { + "count": 1, + "type": "varint" + } + ], + "38": [ + "array", + { + "count": 1, + "type": "varint" + } + ] + } + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -2812,85 +2995,39 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "sound_effect", - "0x47": "playerlist_header", - "0x48": "collect", - "0x49": "entity_teleport", - "0x4a": "entity_update_attributes", - "0x4b": "entity_effect" - } + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" + }, + "type": "varint" } ] }, @@ -2901,118 +3038,111 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", + "abilities": "packet_abilities", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "look": "packet_look", "position": "packet_position", - "bed": "packet_bed", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect" + "position_look": "packet_position_look", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_sign": "packet_update_sign", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" + } + ] + ], + "packet_arm_animation": [ + "container", + [ + { + "name": "hand", + "type": "varint" + } + ] + ], + "packet_block_dig": [ + "container", + [ + { + "name": "status", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_tab_complete": [ + "packet_block_place": [ "container", [ { - "name": "text", - "type": "string" + "name": "location", + "type": "position" }, { - "name": "assumeCommand", - "type": "bool" + "name": "direction", + "type": "varint" }, { - "name": "lookedAtBlock", - "type": [ - "option", - "position" - ] + "name": "hand", + "type": "varint" + }, + { + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" } ] ], @@ -3034,49 +3164,25 @@ } ] ], - "packet_settings": [ + "packet_close_window": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", + "name": "windowId", "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" } ] ], - "packet_transaction": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "channel", + "type": "string" }, { - "name": "accepted", - "type": "bool" + "name": "data", + "type": "restBuffer" } ] ], @@ -3093,129 +3199,64 @@ } ] ], - "packet_window_click": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "mode", - "type": "i8" + "name": "actionId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_close_window": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_held_item_slot": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "slotId", + "type": "i16" } ] ], - "packet_use_entity": [ + "packet_keep_alive": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] } ] ], - "packet_keep_alive": [ + "packet_look": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -3269,118 +3310,76 @@ } ] ], - "packet_look": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_flying": [ + "packet_set_creative_slot": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_vehicle_move": [ + "packet_settings": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "locale", + "type": "string" }, { - "name": "yaw", - "type": "f32" + "name": "viewDistance", + "type": "i8" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_steer_boat": [ - "container", - [ - { - "name": "leftPaddle", - "type": "bool" + "name": "chatFlags", + "type": "varint" }, { - "name": "rightPaddle", + "name": "chatColors", "type": "bool" - } - ] - ], - "packet_abilities": [ - "container", - [ - { - "name": "flags", - "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "skinParts", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -3401,34 +3400,49 @@ } ] ], - "packet_resource_pack_receive": [ + "packet_tab_complete": [ "container", [ { - "name": "result", - "type": "varint" + "name": "text", + "type": "string" + }, + { + "name": "assumeCommand", + "type": "bool" + }, + { + "name": "lookedAtBlock", + "type": [ + "option", + "position" + ] } ] ], - "packet_held_item_slot": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "teleportId", + "type": "varint" } ] ], - "packet_set_creative_slot": [ + "packet_transaction": [ "container", [ { - "name": "slot", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" }, { - "name": "item", - "type": "slot" + "name": "accepted", + "type": "bool" } ] ], @@ -3457,146 +3471,132 @@ } ] ], - "packet_arm_animation": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", + "type": "varint" + }, + { + "name": "mouse", "type": "varint" + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], - "packet_spectate": [ + "packet_use_item": [ "container", [ { - "name": "target", - "type": "UUID" + "name": "hand", + "type": "varint" } ] ], - "packet_block_place": [ + "packet_vehicle_move": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "hand", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "cursorX", - "type": "f32" + "name": "z", + "type": "f64" }, { - "name": "cursorY", + "name": "yaw", "type": "f32" }, { - "name": "cursorZ", + "name": "pitch", "type": "f32" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" - } - ] - ], - "packet": [ - "container", - [ + "name": "windowId", + "type": "u8" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" - } - } - ] + "name": "slot", + "type": "i16" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } - } - ] + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.12-pre4/protocol.json b/data/pc/1.12-pre4/protocol.json index 79c1a895a..657a5ad1e 100644 --- a/data/pc/1.12-pre4/protocol.json +++ b/data/pc/1.12-pre4/protocol.json @@ -1,116 +1,53 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 255, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ + "anon": true, + "type": [ "container", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "key", + "type": "u8" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "type", + "type": "i8" } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -156,42 +93,105 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ + "compareTo": "blockId", + "default": [ "container", [ { - "name": "key", - "type": "u8" + "name": "itemCount", + "type": "i8" }, { - "name": "type", - "type": "i8" + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -204,8 +204,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -225,36 +225,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -263,11 +233,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -278,38 +248,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -318,11 +300,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -333,21 +315,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -358,6 +332,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -366,11 +353,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -381,13 +368,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -395,6 +395,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -443,16 +487,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -461,13 +500,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -478,28 +515,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -524,34 +546,12 @@ } ] ], - "packet": [ + "packet_login_start": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } - } - ] + "name": "username", + "type": "string" } ] ] @@ -561,248 +561,216 @@ "play": { "toClient": { "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] - ], - "packet_spawn_entity_weather": [ + "packet": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - } - ] - ], - "packet_spawn_entity_living": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "velocity", - "type": "vec3i16" - }, - { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_spawn_entity_painting": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "string" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "u8" - } - ] - ], - "packet_named_entity_spawn": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "advancements", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "tab_complete", + "0x10": "chat", + "0x11": "multi_block_change", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "login", + "0x25": "map", + "0x26": "rel_entity_move", + "0x27": "entity_move_look", + "0x28": "entity_look", + "0x29": "entity", + "0x2a": "vehicle_move", + "0x2b": "open_sign_entity", + "0x2c": "abilities", + "0x2d": "combat_event", + "0x2e": "player_info", + "0x2f": "position", + "0x30": "bed", + "0x31": "unlock_recipes", + "0x32": "entity_destroy", + "0x33": "remove_entity_effect", + "0x34": "resource_pack_send", + "0x35": "respawn", + "0x36": "entity_head_rotation", + "0x37": "world_border", + "0x38": "camera", + "0x39": "held_item_slot", + "0x3a": "scoreboard_display_objective", + "0x3b": "entity_metadata", + "0x3c": "attach_entity", + "0x3d": "entity_velocity", + "0x3e": "entity_equipment", + "0x3f": "experience", + "0x40": "update_health", + "0x41": "scoreboard_objective", + "0x42": "set_passengers", + "0x43": "teams", + "0x44": "scoreboard_score", + "0x45": "spawn_position", + "0x46": "update_time", + "0x47": "title", + "0x48": "sound_effect", + "0x49": "playerlist_header", + "0x4a": "collect", + "0x4b": "entity_teleport", + "0x4c": "entity_update_attributes", + "0x4d": "entity_effect", + "0x4e": "advancement_progress" + }, + "type": "varint" + } + ] }, { - "name": "metadata", - "type": "entityMetadata" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_progress": "packet_advancement_progress", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "custom_payload": "packet_custom_payload", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_animation": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "flags", + "type": "i8" }, { - "name": "animation", - "type": "u8" + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_statistics": [ + "packet_advancement_progress": [ "container", [ { - "name": "entries", + "name": "id", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } + "option", + "string" ] } ] @@ -986,7 +954,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -994,29 +962,34 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" + "name": "entityId", + "type": "i32" }, { - "name": "action", - "type": "u8" + "name": "vehicleId", + "type": "i32" + } + ] + ], + "packet_bed": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "location", + "type": "position" } ] ], @@ -1041,6 +1014,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1071,11 +1061,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1085,11 +1075,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1099,11 +1089,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1113,11 +1103,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1127,283 +1117,441 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" + "name": "cameraId", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chat": [ "container", [ { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" + }, + { + "name": "position", + "type": "i8" } ] ], - "packet_chat": [ + "packet_close_window": [ "container", [ { - "name": "message", - "type": "string" + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", + "type": "varint" }, { - "name": "position", - "type": "i8" + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" } ] ], - "packet_multi_block_change": [ + "packet_combat_event": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "event", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "records", + "name": "playerId", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "i32", + "2": "i32" + } + } + ] + }, + { + "name": "message", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "string" + } } ] } ] ], - "packet_transaction": [ + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_difficulty": [ + "container", + [ + { + "name": "difficulty", + "type": "u8" + } + ] + ], + "packet_entity": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, - { - "name": "accepted", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_close_window": [ + "packet_entity_destroy": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_open_window": [ + "packet_entity_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "inventoryType", - "type": "string" + "name": "effectId", + "type": "i8" }, { - "name": "windowTitle", - "type": "string" + "name": "amplifier", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "duration", + "type": "varint" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "hideParticles", + "type": "i8" } ] ], - "packet_window_items": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "slot", + "type": "varint" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "property", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "value", - "type": "i16" + "name": "headYaw", + "type": "i8" } ] ], - "packet_set_slot": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", + "name": "entityId", + "type": "varint" + }, + { + "name": "yaw", "type": "i8" }, { - "name": "slot", - "type": "i16" + "name": "pitch", + "type": "i8" }, { - "name": "item", - "type": "slot" + "name": "onGround", + "type": "bool" } ] ], - "packet_set_cooldown": [ + "packet_entity_metadata": [ "container", [ { - "name": "itemID", + "name": "entityId", "type": "varint" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_custom_payload": [ + "packet_entity_move_look": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_named_sound_effect": [ + "packet_entity_status": [ "container", [ { - "name": "soundName", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "soundCategory", + "name": "entityStatus", + "type": "i8" + } + ] + ], + "packet_entity_teleport": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_velocity": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -1466,19 +1614,6 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], "packet_game_state_change": [ "container", [ @@ -1492,151 +1627,30 @@ } ] ], - "packet_keep_alive": [ + "packet_held_item_slot": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "slot", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "groundUp", - "type": "bool" - }, - { - "name": "bitMap", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" } ] ], - "packet_world_particles": [ + "packet_kick_disconnect": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, - { - "name": "particles", - "type": "i32" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "particleId", - "fields": { - "36": [ - "array", - { - "count": 2, - "type": "varint" - } - ], - "37": [ - "array", - { - "count": 1, - "type": "varint" - } - ], - "38": [ - "array", - { - "count": 1, - "type": "varint" - } - ] - }, - "default": "void" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -1724,10 +1738,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1737,10 +1751,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1750,10 +1764,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1763,84 +1777,121 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "z", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "groundUp", + "type": "bool" }, { - "name": "dZ", - "type": "i16" + "name": "bitMap", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "chunkX", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "chunkZ", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_named_entity_spawn": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "dZ", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "yaw", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "pitch", - "type": "i8" + "name": "y", + "type": "f64" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -1851,37 +1902,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -1899,80 +1949,35 @@ } ] ], - "packet_abilities": [ + "packet_open_window": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" + "name": "windowId", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_combat_event": [ - "container", - [ - { - "name": "event", - "type": "varint" + "name": "inventoryType", + "type": "string" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { "name": "entityId", "type": [ "switch", { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -1986,14 +1991,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2070,37 +2075,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -2112,6 +2117,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -2145,7 +2163,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -2153,60 +2171,20 @@ "type": "varint" }, { - "name": "location", - "type": "position" - } - ] - ], - "packet_unlock_recipes": [ - "container", - [ - { - "name": "action", + "name": "dX", "type": "i16" }, { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "filteringCraftable", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] + "name": "dZ", + "type": "i16" }, { - "name": "recipes2", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "onGround", + "type": "bool" } ] ], @@ -2257,223 +2235,292 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ - { - "name": "action", - "type": "varint" - }, - { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + { + "name": "name", + "type": "string" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "i8" }, { - "name": "new_radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "speed", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "warning_blocks", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_camera": [ + "packet_set_cooldown": [ "container", [ { - "name": "cameraId", + "name": "itemID", + "type": "varint" + }, + { + "name": "cooldownTicks", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_set_passengers": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "entityId", + "type": "varint" + }, + { + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_scoreboard_display_objective": [ + "packet_set_slot": [ "container", [ { - "name": "position", + "name": "windowId", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_entity_metadata": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "soundCategory", + "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_attach_entity": [ + "packet_spawn_entity": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "vehicleId", + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity_experience_orb": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" + } + ] + ], + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, { "name": "velocity", "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -2481,104 +2528,94 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "item", - "type": "slot" + "name": "title", + "type": "string" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_experience": [ + "packet_spawn_entity_weather": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "totalExperience", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_update_health": [ + "packet_spawn_position": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_scoreboard_objective": [ + "packet_statistics": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "action", - "type": "i8" - }, - { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - }, - { - "name": "type", + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "varint" + } + ] + ] } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": "string" } ] } @@ -2601,11 +2638,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2615,11 +2652,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2629,11 +2666,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2643,11 +2680,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2657,11 +2694,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2671,11 +2708,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2685,11 +2722,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2699,6 +2736,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -2721,62 +2759,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -2793,12 +2795,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2808,10 +2810,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -2821,10 +2823,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -2834,85 +2836,115 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_sound_effect": [ + "packet_transaction": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "soundCategory", - "type": "varint" + "name": "action", + "type": "i16" }, { - "name": "x", - "type": "i32" - }, + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ { - "name": "y", + "name": "chunkX", "type": "i32" }, { - "name": "z", + "name": "chunkZ", "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" } ] ], - "packet_playerlist_header": [ + "packet_unlock_recipes": [ "container", [ { - "name": "header", - "type": "string" + "name": "action", + "type": "i16" }, { - "name": "footer", - "type": "string" + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "recipes1", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] + }, + { + "name": "recipes2", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] } ] ], - "packet_collect": [ + "packet_update_health": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "collectorEntityId", + "name": "food", "type": "varint" }, { - "name": "pickupItemCount", - "type": "varint" + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_entity_teleport": [ + "packet_update_time": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "age", + "type": "i64" }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ { "name": "x", "type": "f64" @@ -2927,645 +2959,592 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "type": "f32" } ] ], - "packet_entity_update_attributes": [ + "packet_window_items": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "properties", + "name": "items", "type": [ "array", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "countType": "i16", + "type": "slot" } ] } ] ], - "packet_entity_effect": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "effectId", - "type": "i8" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] }, { - "name": "amplifier", - "type": "i8" + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "duration", - "type": "varint" + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "hideParticles", - "type": "i8" - } - ] - ], - "packet_advancement_progress": [ - "container", - [ + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, { - "name": "id", + "name": "new_radius", "type": [ - "option", - "string" + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } ] - } - ] - ], - "packet": [ - "container", - [ + }, { - "name": "name", + "name": "speed", "type": [ - "mapper", + "switch", { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "advancements", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "tab_complete", - "0x10": "chat", - "0x11": "multi_block_change", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "login", - "0x25": "map", - "0x26": "rel_entity_move", - "0x27": "entity_move_look", - "0x28": "entity_look", - "0x29": "entity", - "0x2a": "vehicle_move", - "0x2b": "open_sign_entity", - "0x2c": "abilities", - "0x2d": "combat_event", - "0x2e": "player_info", - "0x2f": "position", - "0x30": "bed", - "0x31": "unlock_recipes", - "0x32": "entity_destroy", - "0x33": "remove_entity_effect", - "0x34": "resource_pack_send", - "0x35": "respawn", - "0x36": "entity_head_rotation", - "0x37": "world_border", - "0x38": "camera", - "0x39": "held_item_slot", - "0x3a": "scoreboard_display_objective", - "0x3b": "entity_metadata", - "0x3c": "attach_entity", - "0x3d": "entity_velocity", - "0x3e": "entity_equipment", - "0x3f": "experience", - "0x40": "update_health", - "0x41": "scoreboard_objective", - "0x42": "set_passengers", - "0x43": "teams", - "0x44": "scoreboard_score", - "0x45": "spawn_position", - "0x46": "update_time", - "0x47": "title", - "0x48": "sound_effect", - "0x49": "playerlist_header", - "0x4a": "collect", - "0x4b": "entity_teleport", - "0x4c": "entity_update_attributes", - "0x4d": "entity_effect", - "0x4e": "advancement_progress" + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" } } ] }, { - "name": "params", + "name": "portalBoundary", "type": [ "switch", { - "compareTo": "name", + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", - "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", - "position": "packet_position", - "bed": "packet_bed", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "advancement_progress": "packet_advancement_progress" + "3": "varint", + "5": "varint" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_world_event": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" } ] ], - "packet_prepare_crafting_grid": [ + "packet_world_particles": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "particleId", + "type": "i32" }, { - "name": "actionNumber", - "type": "u16" + "name": "longDistance", + "type": "bool" }, { - "name": "returnEntry", + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", "type": [ - "array", + "switch", { - "countType": "u16", - "type": [ - "container", - [ + "compareTo": "particleId", + "default": "void", + "fields": { + "36": [ + "array", { - "name": "item", - "type": "slot" - }, + "count": 2, + "type": "varint" + } + ], + "37": [ + "array", { - "name": "craftingSlot", - "type": "u8" - }, + "count": 1, + "type": "varint" + } + ], + "38": [ + "array", { - "name": "playerSlot", - "type": "u8" + "count": 1, + "type": "varint" } ] - ] + } } ] - }, + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "prepareEntry", + "name": "name", "type": [ - "array", + "mapper", { - "countType": "u16", - "type": [ - "container", - [ - { - "name": "item", - "type": "slot" - }, - { - "name": "craftingSlot", - "type": "u8" - }, - { - "name": "playerSlot", - "type": "u8" - } - ] - ] + "mappings": { + "0x00": "teleport_confirm", + "0x01": "prepare_crafting_grid", + "0x02": "tab_complete", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "use_entity", + "0x0c": "keep_alive", + "0x0d": "position", + "0x0e": "position_look", + "0x0f": "look", + "0x10": "flying", + "0x11": "vehicle_move", + "0x12": "steer_boat", + "0x13": "abilities", + "0x14": "block_dig", + "0x15": "entity_action", + "0x16": "steer_vehicle", + "0x17": "crafting_book_data", + "0x18": "resource_pack_receive", + "0x19": "held_item_slot", + "0x1a": "set_creative_slot", + "0x1b": "update_sign", + "0x1c": "arm_animation", + "0x1d": "spectate", + "0x1e": "block_place", + "0x1f": "use_item", + "0x20": "advancement_tab" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat": "packet_chat", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "crafting_book_data": "packet_crafting_book_data", + "custom_payload": "packet_custom_payload", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "look": "packet_look", + "position": "packet_position", + "position_look": "packet_position_look", + "prepare_crafting_grid": "packet_prepare_crafting_grid", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_sign": "packet_update_sign", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" + } } ] } ] ], - "packet_tab_complete": [ + "packet_abilities": [ "container", [ { - "name": "text", - "type": "string" + "name": "flags", + "type": "i8" }, { - "name": "assumeCommand", - "type": "bool" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "lookedAtBlock", - "type": [ - "option", - "position" - ] + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_chat": [ + "packet_advancement_tab": [ "container", [ { - "name": "message", - "type": "string" + "name": "action", + "type": "varint" + }, + { + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_client_command": [ + "packet_arm_animation": [ "container", [ { - "name": "actionId", + "name": "hand", "type": "varint" } ] ], - "packet_settings": [ + "packet_block_dig": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", + "name": "status", "type": "varint" }, { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" + "name": "location", + "type": "position" }, { - "name": "mainHand", - "type": "varint" + "name": "face", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_block_place": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "action", - "type": "i16" + "name": "direction", + "type": "varint" }, { - "name": "accepted", - "type": "bool" - } - ] - ], - "packet_enchant_item": [ - "container", - [ + "name": "hand", + "type": "varint" + }, { - "name": "windowId", - "type": "i8" + "name": "cursorX", + "type": "f32" }, { - "name": "enchantment", - "type": "i8" + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" } ] ], - "packet_window_click": [ + "packet_chat": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, - { - "name": "mode", - "type": "i8" - }, - { - "name": "item", - "type": "slot" + "name": "message", + "type": "string" } ] ], - "packet_close_window": [ + "packet_client_command": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "actionId", + "type": "varint" } ] ], - "packet_custom_payload": [ + "packet_close_window": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "windowId", + "type": "u8" } ] ], - "packet_use_entity": [ + "packet_crafting_book_data": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "type", + "type": "i32" }, { - "name": "z", + "anon": true, "type": [ "switch", { - "compareTo": "mouse", + "compareTo": "type", "fields": { - "2": "f32" - }, - "default": "void" + "1": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "2": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + } + ] + ] + } } ] - }, + } + ] + ], + "packet_custom_payload": [ + "container", + [ { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_keep_alive": [ + "packet_enchant_item": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "windowId", + "type": "i8" + }, + { + "name": "enchantment", + "type": "i8" } ] ], - "packet_position": [ + "packet_entity_action": [ "container", [ { - "name": "x", - "type": "f64" + "name": "entityId", + "type": "varint" }, { - "name": "y", - "type": "f64" + "name": "actionId", + "type": "varint" }, { - "name": "z", - "type": "f64" - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { "name": "onGround", "type": "bool" } ] ], - "packet_position_look": [ + "packet_held_item_slot": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, + "name": "slotId", + "type": "i16" + } + ] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "onGround", - "type": "bool" + "name": "keepAliveId", + "type": "varint" } ] ], @@ -3586,16 +3565,28 @@ } ] ], - "packet_flying": [ + "packet_position": [ "container", [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "onGround", "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_position_look": [ "container", [ { @@ -3617,160 +3608,211 @@ { "name": "pitch", "type": "f32" - } - ] - ], - "packet_steer_boat": [ - "container", - [ - { - "name": "leftPaddle", - "type": "bool" }, { - "name": "rightPaddle", + "name": "onGround", "type": "bool" } ] ], - "packet_abilities": [ + "packet_prepare_crafting_grid": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "windowId", + "type": "u8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "actionNumber", + "type": "u16" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "returnEntry", + "type": [ + "array", + { + "countType": "u16", + "type": [ + "container", + [ + { + "name": "item", + "type": "slot" + }, + { + "name": "craftingSlot", + "type": "u8" + }, + { + "name": "playerSlot", + "type": "u8" + } + ] + ] + } + ] + }, + { + "name": "prepareEntry", + "type": [ + "array", + { + "countType": "u16", + "type": [ + "container", + [ + { + "name": "item", + "type": "slot" + }, + { + "name": "craftingSlot", + "type": "u8" + }, + { + "name": "playerSlot", + "type": "u8" + } + ] + ] + } + ] } ] ], - "packet_block_dig": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "status", + "name": "result", "type": "varint" - }, + } + ] + ], + "packet_set_creative_slot": [ + "container", + [ { - "name": "location", - "type": "position" + "name": "slot", + "type": "i16" }, { - "name": "face", - "type": "i8" + "name": "item", + "type": "slot" } ] ], - "packet_entity_action": [ + "packet_settings": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "locale", + "type": "string" }, { - "name": "actionId", + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "jumpBoost", + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", "type": "varint" } ] ], - "packet_steer_vehicle": [ + "packet_spectate": [ "container", [ { - "name": "sideways", - "type": "f32" - }, - { - "name": "forward", - "type": "f32" - }, - { - "name": "jump", - "type": "u8" + "name": "target", + "type": "UUID" } ] ], - "packet_crafting_book_data": [ + "packet_steer_boat": [ "container", [ { - "name": "type", - "type": "i32" + "name": "leftPaddle", + "type": "bool" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "1": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "2": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "rightPaddle", + "type": "bool" + } + ] + ], + "packet_steer_vehicle": [ + "container", + [ + { + "name": "sideways", + "type": "f32" + }, + { + "name": "forward", + "type": "f32" + }, + { + "name": "jump", + "type": "u8" } ] ], - "packet_resource_pack_receive": [ + "packet_tab_complete": [ "container", [ { - "name": "result", - "type": "varint" + "name": "text", + "type": "string" + }, + { + "name": "assumeCommand", + "type": "bool" + }, + { + "name": "lookedAtBlock", + "type": [ + "option", + "position" + ] } ] ], - "packet_held_item_slot": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "teleportId", + "type": "varint" } ] ], - "packet_set_creative_slot": [ + "packet_transaction": [ "container", [ { - "name": "slot", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" }, { - "name": "item", - "type": "slot" + "name": "accepted", + "type": "bool" } ] ], @@ -3799,50 +3841,69 @@ } ] ], - "packet_arm_animation": [ - "container", - [ - { - "name": "hand", - "type": "varint" - } - ] - ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "location", - "type": "position" + "type": "varint" }, { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "hand", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -3855,118 +3916,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "prepare_crafting_grid", - "0x02": "tab_complete", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "use_entity", - "0x0c": "keep_alive", - "0x0d": "position", - "0x0e": "position_look", - "0x0f": "look", - "0x10": "flying", - "0x11": "vehicle_move", - "0x12": "steer_boat", - "0x13": "abilities", - "0x14": "block_dig", - "0x15": "entity_action", - "0x16": "steer_vehicle", - "0x17": "crafting_book_data", - "0x18": "resource_pack_receive", - "0x19": "held_item_slot", - "0x1a": "set_creative_slot", - "0x1b": "update_sign", - "0x1c": "arm_animation", - "0x1d": "spectate", - "0x1e": "block_place", - "0x1f": "use_item", - "0x20": "advancement_tab" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "prepare_crafting_grid": "packet_prepare_crafting_grid", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.12.1/protocol.json b/data/pc/1.12.1/protocol.json index 34a18e253..53a499394 100644 --- a/data/pc/1.12.1/protocol.json +++ b/data/pc/1.12.1/protocol.json @@ -1,116 +1,53 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 255, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ + "anon": true, + "type": [ "container", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "key", + "type": "u8" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "type", + "type": "i8" } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -156,42 +93,105 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ + "compareTo": "blockId", + "default": [ "container", [ { - "name": "key", - "type": "u8" + "name": "itemCount", + "type": "i8" }, { - "name": "type", - "type": "i8" + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -204,8 +204,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -225,36 +225,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -263,11 +233,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -278,38 +248,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -318,11 +300,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -333,21 +315,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -358,6 +332,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -366,11 +353,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -381,13 +368,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -395,6 +395,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -443,16 +487,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -461,13 +500,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -478,28 +515,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -524,34 +546,12 @@ } ] ], - "packet": [ + "packet_login_start": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } - } - ] + "name": "username", + "type": "string" } ] ] @@ -561,249 +561,207 @@ "play": { "toClient": { "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] - ], - "packet_spawn_entity_weather": [ + "packet": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - } - ] - ], - "packet_spawn_entity_living": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "velocity", - "type": "vec3i16" - }, - { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_spawn_entity_painting": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "string" - }, - { - "name": "location", - "type": "position" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "entity", + "0x26": "rel_entity_move", + "0x27": "entity_move_look", + "0x28": "entity_look", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "craft_recipe_response", + "0x2c": "abilities", + "0x2d": "combat_event", + "0x2e": "player_info", + "0x2f": "position", + "0x30": "bed", + "0x31": "unlock_recipes", + "0x32": "entity_destroy", + "0x33": "remove_entity_effect", + "0x34": "resource_pack_send", + "0x35": "respawn", + "0x36": "entity_head_rotation", + "0x37": "select_advancement_tab", + "0x38": "world_border", + "0x39": "camera", + "0x3a": "held_item_slot", + "0x3b": "scoreboard_display_objective", + "0x3c": "entity_metadata", + "0x3d": "attach_entity", + "0x3e": "entity_velocity", + "0x3f": "entity_equipment", + "0x40": "experience", + "0x41": "update_health", + "0x42": "scoreboard_objective", + "0x43": "set_passengers", + "0x44": "teams", + "0x45": "scoreboard_score", + "0x46": "spawn_position", + "0x47": "update_time", + "0x48": "title", + "0x49": "sound_effect", + "0x4a": "playerlist_header", + "0x4b": "collect", + "0x4c": "entity_teleport", + "0x4d": "advancements", + "0x4e": "entity_update_attributes", + "0x4f": "entity_effect" + }, + "type": "varint" + } + ] }, { - "name": "direction", - "type": "u8" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_named_entity_spawn": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "flags", "type": "i8" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "walkingSpeed", + "type": "f32" } ] ], @@ -869,23 +827,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -896,10 +854,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1016,7 +974,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1024,29 +982,34 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" + "name": "entityId", + "type": "i32" }, { - "name": "action", - "type": "u8" + "name": "vehicleId", + "type": "i32" + } + ] + ], + "packet_bed": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "location", + "type": "position" } ] ], @@ -1062,12 +1025,29 @@ "type": "u8" }, { - "name": "byte2", - "type": "u8" + "name": "byte2", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" }, { - "name": "blockId", - "type": "varint" + "name": "destroyStage", + "type": "i8" } ] ], @@ -1101,11 +1081,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1115,11 +1095,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1129,11 +1109,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1143,11 +1123,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1157,198 +1137,237 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" + "name": "cameraId", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chat": [ "container", [ { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" + }, + { + "name": "position", + "type": "i8" } ] ], - "packet_chat": [ + "packet_close_window": [ "container", [ { - "name": "message", - "type": "string" + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", + "type": "varint" }, { - "name": "position", - "type": "i8" + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" } ] ], - "packet_multi_block_change": [ + "packet_combat_event": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "event", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "records", + "name": "playerId", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "i32", + "2": "i32" + } + } + ] + }, + { + "name": "message", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "string" + } } ] } ] ], - "packet_transaction": [ + "packet_craft_progress_bar": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "action", + "name": "property", "type": "i16" }, { - "name": "accepted", - "type": "bool" + "name": "value", + "type": "i16" } ] ], - "packet_close_window": [ + "packet_craft_recipe_response": [ "container", [ { "name": "windowId", - "type": "u8" + "type": "i8" + }, + { + "name": "recipe", + "type": "varint" } ] ], - "packet_open_window": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "inventoryType", + "name": "channel", "type": "string" }, { - "name": "windowTitle", - "type": "string" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_difficulty": [ + "container", + [ { - "name": "slotCount", + "name": "difficulty", "type": "u8" - }, + } + ] + ], + "packet_entity": [ + "container", + [ { "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "type": "varint" } ] ], - "packet_window_items": [ + "packet_entity_destroy": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "items", + "name": "entityIds", "type": [ "array", { - "countType": "i16", - "type": "slot" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_craft_progress_bar": [ + "packet_entity_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", - "type": "i16" + "name": "effectId", + "type": "i8" }, { - "name": "value", - "type": "i16" + "name": "amplifier", + "type": "i8" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "i8" } ] ], - "packet_set_slot": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { "name": "slot", - "type": "i16" + "type": "varint" }, { "name": "item", @@ -1356,71 +1375,83 @@ } ] ], - "packet_set_cooldown": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "itemID", + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_metadata": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_named_sound_effect": [ + "packet_entity_move_look": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "dX", + "type": "i16" }, { - "name": "y", - "type": "i32" + "name": "dY", + "type": "i16" }, { - "name": "z", - "type": "i32" + "name": "dZ", + "type": "i16" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ + "type": "i8" + }, { - "name": "reason", - "type": "string" + "name": "onGround", + "type": "bool" } ] ], @@ -1437,27 +1468,48 @@ } ] ], - "packet_explosion": [ + "packet_entity_teleport": [ "container", [ + { + "name": "entityId", + "type": "varint" + }, { "name": "x", - "type": "f32" + "type": "f64" }, { "name": "y", - "type": "f32" + "type": "f64" }, { "name": "z", - "type": "f32" + "type": "f64" }, { - "name": "radius", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "affectedBlockOffsets", + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", "type": [ "array", { @@ -1466,207 +1518,172 @@ "container", [ { - "name": "x", - "type": "i8" + "name": "key", + "type": "string" }, { - "name": "y", - "type": "i8" + "name": "value", + "type": "f64" }, { - "name": "z", - "type": "i8" + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] } ] ] } ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, - { - "name": "playerMotionY", - "type": "f32" - }, - { - "name": "playerMotionZ", - "type": "f32" } ] ], - "packet_unload_chunk": [ + "packet_entity_velocity": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_game_state_change": [ + "packet_experience": [ "container", [ { - "name": "reason", - "type": "u8" + "name": "experienceBar", + "type": "f32" }, { - "name": "gameMode", - "type": "f32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ + "name": "level", + "type": "varint" + }, { - "name": "keepAliveId", + "name": "totalExperience", "type": "varint" } ] ], - "packet_map_chunk": [ + "packet_explosion": [ "container", [ { "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" + "type": "f32" }, { - "name": "groundUp", - "type": "bool" + "name": "y", + "type": "f32" }, { - "name": "bitMap", - "type": "varint" + "name": "z", + "type": "f32" }, { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "radius", + "type": "f32" }, { - "name": "blockEntities", + "name": "affectedBlockOffsets", "type": [ "array", { - "countType": "varint", - "type": "nbt" + "countType": "i32", + "type": [ + "container", + [ + { + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + } + ] + ] } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" - } - ] - ], - "packet_world_particles": [ - "container", - [ - { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" + ] }, { - "name": "offsetX", + "name": "playerMotionX", "type": "f32" }, { - "name": "offsetY", + "name": "playerMotionY", "type": "f32" }, { - "name": "offsetZ", + "name": "playerMotionZ", "type": "f32" + } + ] + ], + "packet_game_state_change": [ + "container", + [ + { + "name": "reason", + "type": "u8" }, { - "name": "particleData", + "name": "gameMode", "type": "f32" - }, + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "particles", - "type": "i32" - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "data", - "type": [ - "switch", - { - "compareTo": "particleId", - "fields": { - "36": [ - "array", - { - "count": 2, - "type": "varint" - } - ], - "37": [ - "array", - { - "count": 1, - "type": "varint" - } - ], - "38": [ - "array", - { - "count": 1, - "type": "varint" - } - ] - }, - "default": "void" - } - ] + "name": "keepAliveId", + "type": "varint" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "string" } ] ], @@ -1754,10 +1771,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1767,10 +1784,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1780,10 +1797,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1793,85 +1810,122 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "z", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "groundUp", + "type": "bool" }, { - "name": "dZ", - "type": "i16" + "name": "bitMap", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "yaw", - "type": "i8" + "name": "chunkX", + "type": "i32" }, { - "name": "pitch", - "type": "i8" + "name": "chunkZ", + "type": "i32" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_entity_look": [ + "packet_named_entity_spawn": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "playerUUID", + "type": "UUID" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "yaw", "type": "i8" @@ -1881,37 +1935,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -1924,98 +1977,40 @@ "container", [ { - "name": "location", - "type": "position" - } - ] - ], - "packet_craft_recipe_response": [ - "container", - [ - { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "varint" - } - ] - ], - "packet_abilities": [ - "container", - [ - { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "event", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "inventoryType", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { - "name": "message", + "name": "entityId", "type": [ "switch", { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -2029,14 +2024,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2113,37 +2108,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -2155,6 +2150,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -2188,7 +2196,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -2196,62 +2204,188 @@ "type": "varint" }, { - "name": "location", - "type": "position" + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_unlock_recipes": [ + "packet_remove_entity_effect": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "effectId", + "type": "i8" + } + ] + ], + "packet_resource_pack_send": [ + "container", + [ + { + "name": "url", + "type": "string" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "hash", + "type": "string" + } + ] + ], + "packet_respawn": [ + "container", + [ + { + "name": "dimension", + "type": "i32" }, { - "name": "recipes1", + "name": "difficulty", + "type": "u8" + }, + { + "name": "gamemode", + "type": "u8" + }, + { + "name": "levelType", + "type": "string" + } + ] + ], + "packet_scoreboard_display_objective": [ + "container", + [ + { + "name": "position", + "type": "i8" + }, + { + "name": "name", + "type": "string" + } + ] + ], + "packet_scoreboard_objective": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "action", + "type": "i8" + }, + { + "name": "displayText", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "varint" + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } } ] }, { - "name": "recipes2", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - "default": "void" + "0": "string", + "2": "string" + } + } + ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "scoreName", + "type": "string" + }, + { + "name": "value", + "type": [ + "switch", + { + "compareTo": "action", + "default": "varint", + "fields": { + "1": "void" + } } ] } ] ], - "packet_entity_destroy": [ + "packet_select_advancement_tab": [ + "container", + [ + { + "name": "id", + "type": [ + "option", + "string" + ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "itemID", + "type": "varint" + }, + { + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_passengers": [ "container", [ { - "name": "entityIds", + "name": "entityId", + "type": "varint" + }, + { + "name": "passengers", "type": [ "array", { @@ -2262,270 +2396,201 @@ } ] ], - "packet_remove_entity_effect": [ + "packet_set_slot": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "effectId", - "type": "i8" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_resource_pack_send": [ + "packet_sound_effect": [ "container", [ { - "name": "url", - "type": "string" + "name": "soundId", + "type": "varint" }, { - "name": "hash", - "type": "string" - } - ] - ], - "packet_respawn": [ - "container", - [ + "name": "soundCategory", + "type": "varint" + }, { - "name": "dimension", + "name": "x", "type": "i32" }, { - "name": "difficulty", - "type": "u8" + "name": "y", + "type": "i32" }, { - "name": "gamemode", - "type": "u8" + "name": "z", + "type": "i32" }, { - "name": "levelType", - "type": "string" - } - ] - ], - "packet_entity_head_rotation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "volume", + "type": "f32" }, { - "name": "headYaw", - "type": "i8" + "name": "pitch", + "type": "f32" } ] ], - "packet_world_border": [ + "packet_spawn_entity": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] + "name": "objectUUID", + "type": "UUID" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "type", + "type": "i8" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "x", + "type": "f64" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "y", + "type": "f64" }, { - "name": "new_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "z", + "type": "f64" }, { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "objectData", + "type": "i32" }, { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_camera": [ + "packet_spawn_entity_experience_orb": [ "container", [ { - "name": "cameraId", + "name": "entityId", "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + }, { - "name": "slot", - "type": "i8" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + "name": "x", + "type": "f64" + }, { - "name": "position", - "type": "i8" + "name": "y", + "type": "f64" }, { - "name": "name", - "type": "string" + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_metadata": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "velocity", + "type": "vec3i16" + }, { "name": "metadata", "type": "entityMetadata" } ] ], - "packet_attach_entity": [ + "packet_spawn_entity_painting": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "vehicleId", - "type": "i32" - } - ] - ], - "packet_entity_velocity": [ - "container", - [ + "name": "entityUUID", + "type": "UUID" + }, { - "name": "entityId", - "type": "varint" + "name": "title", + "type": "string" }, { - "name": "velocity", - "type": "vec3i16" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_weather": [ "container", [ { @@ -2533,104 +2598,69 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_experience": [ - "container", - [ - { - "name": "experienceBar", - "type": "f32" + "name": "x", + "type": "f64" }, { - "name": "level", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "totalExperience", - "type": "varint" + "name": "z", + "type": "f64" } ] ], - "packet_update_health": [ + "packet_spawn_position": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_scoreboard_objective": [ + "packet_statistics": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "action", - "type": "i8" - }, - { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - }, - { - "name": "type", + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "varint" + } + ] + ] } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": "string" } ] } @@ -2653,11 +2683,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2667,11 +2697,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2681,11 +2711,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2695,11 +2725,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2709,11 +2739,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2723,11 +2753,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2737,11 +2767,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2751,6 +2781,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -2773,66 +2804,123 @@ "type": "string" } ] - }, - "default": "void" + } } ] } ] ], - "packet_scoreboard_score": [ + "packet_tile_entity_data": [ "container", [ { - "name": "itemName", - "type": "string" + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "u8" }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ], + "packet_title": [ + "container", + [ { "name": "action", "type": "varint" }, { - "name": "scoreName", - "type": "string" + "name": "text", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "1": "string", + "2": "string" + } + } + ] }, { - "name": "value", + "name": "fadeIn", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "void" - }, - "default": "varint" + "3": "i32" + } + } + ] + }, + { + "name": "stay", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "i32" + } + } + ] + }, + { + "name": "fadeOut", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "i32" + } } ] } ] ], - "packet_spawn_position": [ + "packet_transaction": [ "container", [ { - "name": "location", - "type": "position" + "name": "windowId", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" } ] ], - "packet_update_time": [ + "packet_unload_chunk": [ "container", [ { - "name": "age", - "type": "i64" + "name": "chunkX", + "type": "i32" }, { - "name": "time", - "type": "i64" + "name": "chunkZ", + "type": "i32" } ] ], - "packet_title": [ + "packet_unlock_recipes": [ "container", [ { @@ -2840,86 +2928,91 @@ "type": "varint" }, { - "name": "text", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "craftingBookOpen", + "type": "bool" }, { - "name": "fadeIn", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "i32" - }, - "default": "void" - } - ] + "name": "filteringCraftable", + "type": "bool" }, { - "name": "stay", + "name": "recipes1", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "3": "i32" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] }, { - "name": "fadeOut", + "name": "recipes2", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "3": "i32" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } } ] } ] ], - "packet_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "soundCategory", + "name": "food", "type": "varint" }, + { + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_time": [ + "container", + [ + { + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", + "name": "yaw", "type": "f32" }, { @@ -2928,344 +3021,251 @@ } ] ], - "packet_playerlist_header": [ + "packet_window_items": [ "container", [ { - "name": "header", - "type": "string" + "name": "windowId", + "type": "u8" }, { - "name": "footer", - "type": "string" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_collect": [ + "packet_world_border": [ "container", [ { - "name": "collectedEntityId", + "name": "action", "type": "varint" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] }, { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, { - "name": "entityId", - "type": "varint" + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "x", - "type": "f64" + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "y", - "type": "f64" + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "z", - "type": "f64" + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } + } + ] } ] ], - "packet_entity_update_attributes": [ + "packet_world_event": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "effectId", + "type": "i32" }, { - "name": "properties", - "type": [ - "array", - { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] - } - ] + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" } ] ], - "packet_entity_effect": [ + "packet_world_particles": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "particleId", + "type": "i32" }, { - "name": "effectId", - "type": "i8" + "name": "longDistance", + "type": "bool" }, { - "name": "amplifier", - "type": "i8" + "name": "x", + "type": "f32" }, { - "name": "duration", - "type": "varint" + "name": "y", + "type": "f32" }, { - "name": "hideParticles", - "type": "i8" - } - ] - ], - "packet_select_advancement_tab": [ - "container", - [ + "name": "z", + "type": "f32" + }, { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet": [ - "container", - [ + "name": "offsetX", + "type": "f32" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "entity", - "0x26": "rel_entity_move", - "0x27": "entity_move_look", - "0x28": "entity_look", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "craft_recipe_response", - "0x2c": "abilities", - "0x2d": "combat_event", - "0x2e": "player_info", - "0x2f": "position", - "0x30": "bed", - "0x31": "unlock_recipes", - "0x32": "entity_destroy", - "0x33": "remove_entity_effect", - "0x34": "resource_pack_send", - "0x35": "respawn", - "0x36": "entity_head_rotation", - "0x37": "select_advancement_tab", - "0x38": "world_border", - "0x39": "camera", - "0x3a": "held_item_slot", - "0x3b": "scoreboard_display_objective", - "0x3c": "entity_metadata", - "0x3d": "attach_entity", - "0x3e": "entity_velocity", - "0x3f": "entity_equipment", - "0x40": "experience", - "0x41": "update_health", - "0x42": "scoreboard_objective", - "0x43": "set_passengers", - "0x44": "teams", - "0x45": "scoreboard_score", - "0x46": "spawn_position", - "0x47": "update_time", - "0x48": "title", - "0x49": "sound_effect", - "0x4a": "playerlist_header", - "0x4b": "collect", - "0x4c": "entity_teleport", - "0x4d": "advancements", - "0x4e": "entity_update_attributes", - "0x4f": "entity_effect" - } - } - ] + "name": "offsetY", + "type": "f32" }, { - "name": "params", + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", "type": [ "switch", { - "compareTo": "name", + "compareTo": "particleId", + "default": "void", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", - "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", - "position": "packet_position", - "bed": "packet_bed", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab" + "36": [ + "array", + { + "count": 2, + "type": "varint" + } + ], + "37": [ + "array", + { + "count": 1, + "type": "varint" + } + ], + "38": [ + "array", + { + "count": 1, + "type": "varint" + } + ] } } ] @@ -3276,147 +3276,276 @@ }, "toServer": { "types": { - "packet_teleport_confirm": [ + "packet": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "flying", + "0x0d": "position", + "0x0e": "position_look", + "0x0f": "look", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "craft_recipe_request", + "0x13": "abilities", + "0x14": "block_dig", + "0x15": "entity_action", + "0x16": "steer_vehicle", + "0x17": "crafting_book_data", + "0x18": "resource_pack_receive", + "0x19": "advancement_tab", + "0x1a": "held_item_slot", + "0x1b": "set_creative_slot", + "0x1c": "update_sign", + "0x1d": "arm_animation", + "0x1e": "spectate", + "0x1f": "block_place", + "0x20": "use_item" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat": "packet_chat", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", + "custom_payload": "packet_custom_payload", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "look": "packet_look", + "position": "packet_position", + "position_look": "packet_position_look", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_sign": "packet_update_sign", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" + } + } + ] } ] ], - "packet_tab_complete": [ + "packet_abilities": [ "container", [ { - "name": "text", - "type": "string" + "name": "flags", + "type": "i8" }, { - "name": "assumeCommand", - "type": "bool" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "lookedAtBlock", + "name": "walkingSpeed", + "type": "f32" + } + ] + ], + "packet_advancement_tab": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "tabId", "type": [ - "option", - "position" + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } ] } ] ], - "packet_chat": [ + "packet_arm_animation": [ "container", [ { - "name": "message", - "type": "string" + "name": "hand", + "type": "varint" } ] ], - "packet_client_command": [ + "packet_block_dig": [ "container", [ { - "name": "actionId", + "name": "status", "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_settings": [ + "packet_block_place": [ "container", [ { - "name": "locale", - "type": "string" + "name": "location", + "type": "position" }, { - "name": "viewDistance", - "type": "i8" + "name": "direction", + "type": "varint" }, { - "name": "chatFlags", + "name": "hand", "type": "varint" }, { - "name": "chatColors", - "type": "bool" + "name": "cursorX", + "type": "f32" }, { - "name": "skinParts", - "type": "u8" + "name": "cursorY", + "type": "f32" }, { - "name": "mainHand", - "type": "varint" + "name": "cursorZ", + "type": "f32" } ] ], - "packet_transaction": [ + "packet_chat": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, - { - "name": "accepted", - "type": "bool" + "name": "message", + "type": "string" } ] ], - "packet_enchant_item": [ + "packet_client_command": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "actionId", + "type": "varint" } ] ], - "packet_window_click": [ + "packet_close_window": [ "container", [ { "name": "windowId", "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, + } + ] + ], + "packet_craft_recipe_request": [ + "container", + [ { - "name": "mouseButton", + "name": "windowId", "type": "i8" }, { - "name": "action", - "type": "i16" - }, - { - "name": "mode", - "type": "i8" + "name": "recipe", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "makeAll", + "type": "bool" } ] ], - "packet_close_window": [ + "packet_crafting_book_data": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "type", + "type": "varint" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "i32" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], @@ -3433,128 +3562,60 @@ } ] ], - "packet_use_entity": [ + "packet_enchant_item": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, + "name": "enchantment", + "type": "i8" + } + ] + ], + "packet_entity_action": [ + "container", + [ { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "actionId", + "type": "varint" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_keep_alive": [ + "packet_flying": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "onGround", + "type": "bool" } ] ], - "packet_position": [ + "packet_held_item_slot": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "onGround", - "type": "bool" + "name": "slotId", + "type": "i16" } ] ], - "packet_position_look": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "keepAliveId", + "type": "varint" } ] ], @@ -3575,16 +3636,28 @@ } ] ], - "packet_flying": [ + "packet_position": [ "container", [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "onGround", "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_position_look": [ "container", [ { @@ -3606,177 +3679,146 @@ { "name": "pitch", "type": "f32" - } - ] - ], - "packet_steer_boat": [ - "container", - [ - { - "name": "leftPaddle", - "type": "bool" }, { - "name": "rightPaddle", + "name": "onGround", "type": "bool" } ] ], - "packet_craft_recipe_request": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", + "name": "result", "type": "varint" - }, - { - "name": "makeAll", - "type": "bool" } ] ], - "packet_abilities": [ + "packet_set_creative_slot": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" + "name": "slot", + "type": "i16" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "item", + "type": "slot" } ] ], - "packet_block_dig": [ + "packet_settings": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" + "name": "locale", + "type": "string" }, { - "name": "face", + "name": "viewDistance", "type": "i8" - } - ] - ], - "packet_entity_action": [ - "container", - [ + }, { - "name": "entityId", + "name": "chatFlags", "type": "varint" }, { - "name": "actionId", - "type": "varint" + "name": "chatColors", + "type": "bool" }, { - "name": "jumpBoost", + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", "type": "varint" } ] ], - "packet_steer_vehicle": [ + "packet_spectate": [ "container", [ { - "name": "sideways", - "type": "f32" - }, - { - "name": "forward", - "type": "f32" - }, - { - "name": "jump", - "type": "u8" + "name": "target", + "type": "UUID" } ] ], - "packet_crafting_book_data": [ + "packet_steer_boat": [ "container", [ { - "name": "type", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "i32" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "rightPaddle", + "type": "bool" + } + ] + ], + "packet_steer_vehicle": [ + "container", + [ + { + "name": "sideways", + "type": "f32" + }, + { + "name": "forward", + "type": "f32" + }, + { + "name": "jump", + "type": "u8" } ] ], - "packet_resource_pack_receive": [ + "packet_tab_complete": [ "container", [ { - "name": "result", - "type": "varint" + "name": "text", + "type": "string" + }, + { + "name": "assumeCommand", + "type": "bool" + }, + { + "name": "lookedAtBlock", + "type": [ + "option", + "position" + ] } ] ], - "packet_held_item_slot": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "teleportId", + "type": "varint" } ] ], - "packet_set_creative_slot": [ + "packet_transaction": [ "container", [ { - "name": "slot", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" }, { - "name": "item", - "type": "slot" + "name": "accepted", + "type": "bool" } ] ], @@ -3805,50 +3847,69 @@ } ] ], - "packet_arm_animation": [ - "container", - [ - { - "name": "hand", - "type": "varint" - } - ] - ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "location", - "type": "position" + "type": "varint" }, { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "hand", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -3861,118 +3922,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "flying", - "0x0d": "position", - "0x0e": "position_look", - "0x0f": "look", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "craft_recipe_request", - "0x13": "abilities", - "0x14": "block_dig", - "0x15": "entity_action", - "0x16": "steer_vehicle", - "0x17": "crafting_book_data", - "0x18": "resource_pack_receive", - "0x19": "advancement_tab", - "0x1a": "held_item_slot", - "0x1b": "set_creative_slot", - "0x1c": "update_sign", - "0x1d": "arm_animation", - "0x1e": "spectate", - "0x1f": "block_place", - "0x20": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.12.2/protocol.json b/data/pc/1.12.2/protocol.json index 927c8032c..b71c13d6c 100644 --- a/data/pc/1.12.2/protocol.json +++ b/data/pc/1.12.2/protocol.json @@ -1,116 +1,53 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 255, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ + "anon": true, + "type": [ "container", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "key", + "type": "u8" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "type", + "type": "i8" } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -156,42 +93,105 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ + "compareTo": "blockId", + "default": [ "container", [ { - "name": "key", - "type": "u8" + "name": "itemCount", + "type": "i8" }, { - "name": "type", - "type": "i8" + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -204,8 +204,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -225,36 +225,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -263,11 +233,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -278,38 +248,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -318,11 +300,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -333,21 +315,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -358,6 +332,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -366,11 +353,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -381,13 +368,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -395,6 +395,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -443,16 +487,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -461,13 +500,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -478,28 +515,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -524,34 +546,12 @@ } ] ], - "packet": [ + "packet_login_start": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } - } - ] + "name": "username", + "type": "string" } ] ] @@ -561,249 +561,207 @@ "play": { "toClient": { "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] - ], - "packet_spawn_entity_weather": [ + "packet": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - } - ] - ], - "packet_spawn_entity_living": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "velocity", - "type": "vec3i16" - }, - { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_spawn_entity_painting": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "string" - }, - { - "name": "location", - "type": "position" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "entity", + "0x26": "rel_entity_move", + "0x27": "entity_move_look", + "0x28": "entity_look", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "craft_recipe_response", + "0x2c": "abilities", + "0x2d": "combat_event", + "0x2e": "player_info", + "0x2f": "position", + "0x30": "bed", + "0x31": "unlock_recipes", + "0x32": "entity_destroy", + "0x33": "remove_entity_effect", + "0x34": "resource_pack_send", + "0x35": "respawn", + "0x36": "entity_head_rotation", + "0x37": "select_advancement_tab", + "0x38": "world_border", + "0x39": "camera", + "0x3a": "held_item_slot", + "0x3b": "scoreboard_display_objective", + "0x3c": "entity_metadata", + "0x3d": "attach_entity", + "0x3e": "entity_velocity", + "0x3f": "entity_equipment", + "0x40": "experience", + "0x41": "update_health", + "0x42": "scoreboard_objective", + "0x43": "set_passengers", + "0x44": "teams", + "0x45": "scoreboard_score", + "0x46": "spawn_position", + "0x47": "update_time", + "0x48": "title", + "0x49": "sound_effect", + "0x4a": "playerlist_header", + "0x4b": "collect", + "0x4c": "entity_teleport", + "0x4d": "advancements", + "0x4e": "entity_update_attributes", + "0x4f": "entity_effect" + }, + "type": "varint" + } + ] }, { - "name": "direction", - "type": "u8" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_named_entity_spawn": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "flags", "type": "i8" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "walkingSpeed", + "type": "f32" } ] ], @@ -869,23 +827,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -896,10 +854,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1016,7 +974,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1024,29 +982,34 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" + "name": "entityId", + "type": "i32" }, { - "name": "action", - "type": "u8" + "name": "vehicleId", + "type": "i32" + } + ] + ], + "packet_bed": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "location", + "type": "position" } ] ], @@ -1062,12 +1025,29 @@ "type": "u8" }, { - "name": "byte2", - "type": "u8" + "name": "byte2", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" }, { - "name": "blockId", - "type": "varint" + "name": "destroyStage", + "type": "i8" } ] ], @@ -1101,11 +1081,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1115,11 +1095,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1129,11 +1109,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1143,11 +1123,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1157,198 +1137,237 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" + "name": "cameraId", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chat": [ "container", [ { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" + }, + { + "name": "position", + "type": "i8" } ] ], - "packet_chat": [ + "packet_close_window": [ "container", [ { - "name": "message", - "type": "string" + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", + "type": "varint" }, { - "name": "position", - "type": "i8" + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" } ] ], - "packet_multi_block_change": [ + "packet_combat_event": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "event", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "records", + "name": "playerId", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "i32", + "2": "i32" + } + } + ] + }, + { + "name": "message", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "string" + } } ] } ] ], - "packet_transaction": [ + "packet_craft_progress_bar": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "action", + "name": "property", "type": "i16" }, { - "name": "accepted", - "type": "bool" + "name": "value", + "type": "i16" } ] ], - "packet_close_window": [ + "packet_craft_recipe_response": [ "container", [ { "name": "windowId", - "type": "u8" + "type": "i8" + }, + { + "name": "recipe", + "type": "varint" } ] ], - "packet_open_window": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "inventoryType", + "name": "channel", "type": "string" }, { - "name": "windowTitle", - "type": "string" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_difficulty": [ + "container", + [ { - "name": "slotCount", + "name": "difficulty", "type": "u8" - }, + } + ] + ], + "packet_entity": [ + "container", + [ { "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "type": "varint" } ] ], - "packet_window_items": [ + "packet_entity_destroy": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "items", + "name": "entityIds", "type": [ "array", { - "countType": "i16", - "type": "slot" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_craft_progress_bar": [ + "packet_entity_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", - "type": "i16" + "name": "effectId", + "type": "i8" }, { - "name": "value", - "type": "i16" + "name": "amplifier", + "type": "i8" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "i8" } ] ], - "packet_set_slot": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { "name": "slot", - "type": "i16" + "type": "varint" }, { "name": "item", @@ -1356,71 +1375,83 @@ } ] ], - "packet_set_cooldown": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "itemID", + "name": "entityId", "type": "varint" }, { - "name": "cooldownTicks", + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ + "container", + [ + { + "name": "entityId", "type": "varint" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_metadata": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_named_sound_effect": [ + "packet_entity_move_look": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "dX", + "type": "i16" }, { - "name": "y", - "type": "i32" + "name": "dY", + "type": "i16" }, { - "name": "z", - "type": "i32" + "name": "dZ", + "type": "i16" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ + "type": "i8" + }, { - "name": "reason", - "type": "string" + "name": "onGround", + "type": "bool" } ] ], @@ -1437,27 +1468,48 @@ } ] ], - "packet_explosion": [ + "packet_entity_teleport": [ "container", [ + { + "name": "entityId", + "type": "varint" + }, { "name": "x", - "type": "f32" + "type": "f64" }, { "name": "y", - "type": "f32" + "type": "f64" }, { "name": "z", - "type": "f32" + "type": "f64" }, { - "name": "radius", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "affectedBlockOffsets", + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", "type": [ "array", { @@ -1466,143 +1518,79 @@ "container", [ { - "name": "x", - "type": "i8" + "name": "key", + "type": "string" }, { - "name": "y", - "type": "i8" + "name": "value", + "type": "f64" }, { - "name": "z", - "type": "i8" + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] } ] ] } ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, - { - "name": "playerMotionY", - "type": "f32" - }, - { - "name": "playerMotionZ", - "type": "f32" } ] ], - "packet_unload_chunk": [ + "packet_entity_velocity": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_game_state_change": [ + "packet_experience": [ "container", [ { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", + "name": "experienceBar", "type": "f32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_map_chunk": [ - "container", - [ - { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "groundUp", - "type": "bool" }, { - "name": "bitMap", + "name": "level", "type": "varint" }, { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" + "name": "totalExperience", + "type": "varint" } ] ], - "packet_world_particles": [ + "packet_explosion": [ "container", [ - { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, { "name": "x", "type": "f32" @@ -1616,57 +1604,86 @@ "type": "f32" }, { - "name": "offsetX", + "name": "radius", + "type": "f32" + }, + { + "name": "affectedBlockOffsets", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + } + ] + ] + } + ] + }, + { + "name": "playerMotionX", "type": "f32" }, { - "name": "offsetY", + "name": "playerMotionY", "type": "f32" }, { - "name": "offsetZ", + "name": "playerMotionZ", "type": "f32" + } + ] + ], + "packet_game_state_change": [ + "container", + [ + { + "name": "reason", + "type": "u8" }, { - "name": "particleData", + "name": "gameMode", "type": "f32" - }, + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "particles", - "type": "i32" - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "data", - "type": [ - "switch", - { - "compareTo": "particleId", - "fields": { - "36": [ - "array", - { - "count": 2, - "type": "varint" - } - ], - "37": [ - "array", - { - "count": 1, - "type": "varint" - } - ], - "38": [ - "array", - { - "count": 1, - "type": "varint" - } - ] - }, - "default": "void" - } - ] + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "string" } ] ], @@ -1754,10 +1771,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1767,10 +1784,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1780,10 +1797,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1793,85 +1810,122 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "z", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "groundUp", + "type": "bool" }, { - "name": "dZ", - "type": "i16" + "name": "bitMap", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "yaw", - "type": "i8" + "name": "chunkX", + "type": "i32" }, { - "name": "pitch", - "type": "i8" + "name": "chunkZ", + "type": "i32" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_entity_look": [ + "packet_named_entity_spawn": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "playerUUID", + "type": "UUID" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "yaw", "type": "i8" @@ -1881,37 +1935,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -1924,98 +1977,40 @@ "container", [ { - "name": "location", - "type": "position" - } - ] - ], - "packet_craft_recipe_response": [ - "container", - [ - { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "varint" - } - ] - ], - "packet_abilities": [ - "container", - [ - { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "event", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "inventoryType", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { - "name": "message", + "name": "entityId", "type": [ "switch", { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -2029,14 +2024,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2113,37 +2108,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -2155,6 +2150,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -2188,7 +2196,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -2196,62 +2204,188 @@ "type": "varint" }, { - "name": "location", - "type": "position" + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_unlock_recipes": [ + "packet_remove_entity_effect": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "effectId", + "type": "i8" + } + ] + ], + "packet_resource_pack_send": [ + "container", + [ + { + "name": "url", + "type": "string" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "hash", + "type": "string" + } + ] + ], + "packet_respawn": [ + "container", + [ + { + "name": "dimension", + "type": "i32" }, { - "name": "recipes1", + "name": "difficulty", + "type": "u8" + }, + { + "name": "gamemode", + "type": "u8" + }, + { + "name": "levelType", + "type": "string" + } + ] + ], + "packet_scoreboard_display_objective": [ + "container", + [ + { + "name": "position", + "type": "i8" + }, + { + "name": "name", + "type": "string" + } + ] + ], + "packet_scoreboard_objective": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "action", + "type": "i8" + }, + { + "name": "displayText", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "varint" + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } } ] }, { - "name": "recipes2", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - "default": "void" + "0": "string", + "2": "string" + } + } + ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "scoreName", + "type": "string" + }, + { + "name": "value", + "type": [ + "switch", + { + "compareTo": "action", + "default": "varint", + "fields": { + "1": "void" + } } ] } ] ], - "packet_entity_destroy": [ + "packet_select_advancement_tab": [ + "container", + [ + { + "name": "id", + "type": [ + "option", + "string" + ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "itemID", + "type": "varint" + }, + { + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_passengers": [ "container", [ { - "name": "entityIds", + "name": "entityId", + "type": "varint" + }, + { + "name": "passengers", "type": [ "array", { @@ -2262,270 +2396,201 @@ } ] ], - "packet_remove_entity_effect": [ + "packet_set_slot": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "effectId", - "type": "i8" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_resource_pack_send": [ + "packet_sound_effect": [ "container", [ { - "name": "url", - "type": "string" + "name": "soundId", + "type": "varint" }, { - "name": "hash", - "type": "string" - } - ] - ], - "packet_respawn": [ - "container", - [ + "name": "soundCategory", + "type": "varint" + }, { - "name": "dimension", + "name": "x", "type": "i32" }, { - "name": "difficulty", - "type": "u8" + "name": "y", + "type": "i32" }, { - "name": "gamemode", - "type": "u8" + "name": "z", + "type": "i32" }, { - "name": "levelType", - "type": "string" - } - ] - ], - "packet_entity_head_rotation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "volume", + "type": "f32" }, { - "name": "headYaw", - "type": "i8" + "name": "pitch", + "type": "f32" } ] ], - "packet_world_border": [ + "packet_spawn_entity": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] + "name": "objectUUID", + "type": "UUID" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "type", + "type": "i8" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "x", + "type": "f64" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "y", + "type": "f64" }, { - "name": "new_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "z", + "type": "f64" }, { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "objectData", + "type": "i32" }, { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_camera": [ + "packet_spawn_entity_experience_orb": [ "container", [ { - "name": "cameraId", + "name": "entityId", "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + }, { - "name": "slot", - "type": "i8" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + "name": "x", + "type": "f64" + }, { - "name": "position", - "type": "i8" + "name": "y", + "type": "f64" }, { - "name": "name", - "type": "string" + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_metadata": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "velocity", + "type": "vec3i16" + }, { "name": "metadata", "type": "entityMetadata" } ] ], - "packet_attach_entity": [ + "packet_spawn_entity_painting": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "vehicleId", - "type": "i32" - } - ] - ], - "packet_entity_velocity": [ - "container", - [ + "name": "entityUUID", + "type": "UUID" + }, { - "name": "entityId", - "type": "varint" + "name": "title", + "type": "string" }, { - "name": "velocity", - "type": "vec3i16" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_weather": [ "container", [ { @@ -2533,104 +2598,69 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_experience": [ - "container", - [ - { - "name": "experienceBar", - "type": "f32" + "name": "x", + "type": "f64" }, { - "name": "level", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "totalExperience", - "type": "varint" + "name": "z", + "type": "f64" } ] ], - "packet_update_health": [ + "packet_spawn_position": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_scoreboard_objective": [ + "packet_statistics": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "action", - "type": "i8" - }, - { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - }, - { - "name": "type", + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "varint" + } + ] + ] } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": "string" } ] } @@ -2653,11 +2683,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2667,11 +2697,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2681,11 +2711,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2695,11 +2725,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2709,11 +2739,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2723,11 +2753,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2737,11 +2767,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2751,6 +2781,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -2773,66 +2804,123 @@ "type": "string" } ] - }, - "default": "void" + } } ] } ] ], - "packet_scoreboard_score": [ + "packet_tile_entity_data": [ "container", [ { - "name": "itemName", - "type": "string" + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "u8" }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ], + "packet_title": [ + "container", + [ { "name": "action", "type": "varint" }, { - "name": "scoreName", - "type": "string" + "name": "text", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "1": "string", + "2": "string" + } + } + ] }, { - "name": "value", + "name": "fadeIn", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "void" - }, - "default": "varint" + "3": "i32" + } + } + ] + }, + { + "name": "stay", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "i32" + } + } + ] + }, + { + "name": "fadeOut", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "i32" + } } ] } ] ], - "packet_spawn_position": [ + "packet_transaction": [ "container", [ { - "name": "location", - "type": "position" + "name": "windowId", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" } ] ], - "packet_update_time": [ + "packet_unload_chunk": [ "container", [ { - "name": "age", - "type": "i64" + "name": "chunkX", + "type": "i32" }, { - "name": "time", - "type": "i64" + "name": "chunkZ", + "type": "i32" } ] ], - "packet_title": [ + "packet_unlock_recipes": [ "container", [ { @@ -2840,86 +2928,91 @@ "type": "varint" }, { - "name": "text", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "craftingBookOpen", + "type": "bool" }, { - "name": "fadeIn", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "i32" - }, - "default": "void" - } - ] + "name": "filteringCraftable", + "type": "bool" }, { - "name": "stay", + "name": "recipes1", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "3": "i32" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] }, { - "name": "fadeOut", + "name": "recipes2", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "3": "i32" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } } ] } ] ], - "packet_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "soundCategory", + "name": "food", "type": "varint" }, + { + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_time": [ + "container", + [ + { + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", + "name": "yaw", "type": "f32" }, { @@ -2928,344 +3021,251 @@ } ] ], - "packet_playerlist_header": [ + "packet_window_items": [ "container", [ { - "name": "header", - "type": "string" + "name": "windowId", + "type": "u8" }, { - "name": "footer", - "type": "string" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_collect": [ + "packet_world_border": [ "container", [ { - "name": "collectedEntityId", + "name": "action", "type": "varint" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] }, { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, { - "name": "entityId", - "type": "varint" + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "x", - "type": "f64" + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "y", - "type": "f64" + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "z", - "type": "f64" + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } + } + ] } ] ], - "packet_entity_update_attributes": [ + "packet_world_event": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "effectId", + "type": "i32" }, { - "name": "properties", - "type": [ - "array", - { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] - } - ] + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" } ] ], - "packet_entity_effect": [ + "packet_world_particles": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "particleId", + "type": "i32" }, { - "name": "effectId", - "type": "i8" + "name": "longDistance", + "type": "bool" }, { - "name": "amplifier", - "type": "i8" + "name": "x", + "type": "f32" }, { - "name": "duration", - "type": "varint" + "name": "y", + "type": "f32" }, { - "name": "hideParticles", - "type": "i8" - } - ] - ], - "packet_select_advancement_tab": [ - "container", - [ + "name": "z", + "type": "f32" + }, { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet": [ - "container", - [ + "name": "offsetX", + "type": "f32" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "entity", - "0x26": "rel_entity_move", - "0x27": "entity_move_look", - "0x28": "entity_look", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "craft_recipe_response", - "0x2c": "abilities", - "0x2d": "combat_event", - "0x2e": "player_info", - "0x2f": "position", - "0x30": "bed", - "0x31": "unlock_recipes", - "0x32": "entity_destroy", - "0x33": "remove_entity_effect", - "0x34": "resource_pack_send", - "0x35": "respawn", - "0x36": "entity_head_rotation", - "0x37": "select_advancement_tab", - "0x38": "world_border", - "0x39": "camera", - "0x3a": "held_item_slot", - "0x3b": "scoreboard_display_objective", - "0x3c": "entity_metadata", - "0x3d": "attach_entity", - "0x3e": "entity_velocity", - "0x3f": "entity_equipment", - "0x40": "experience", - "0x41": "update_health", - "0x42": "scoreboard_objective", - "0x43": "set_passengers", - "0x44": "teams", - "0x45": "scoreboard_score", - "0x46": "spawn_position", - "0x47": "update_time", - "0x48": "title", - "0x49": "sound_effect", - "0x4a": "playerlist_header", - "0x4b": "collect", - "0x4c": "entity_teleport", - "0x4d": "advancements", - "0x4e": "entity_update_attributes", - "0x4f": "entity_effect" - } - } - ] + "name": "offsetY", + "type": "f32" }, { - "name": "params", + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", "type": [ "switch", { - "compareTo": "name", + "compareTo": "particleId", + "default": "void", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", - "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", - "position": "packet_position", - "bed": "packet_bed", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab" + "36": [ + "array", + { + "count": 2, + "type": "varint" + } + ], + "37": [ + "array", + { + "count": 1, + "type": "varint" + } + ], + "38": [ + "array", + { + "count": 1, + "type": "varint" + } + ] } } ] @@ -3276,147 +3276,276 @@ }, "toServer": { "types": { - "packet_teleport_confirm": [ + "packet": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "flying", + "0x0d": "position", + "0x0e": "position_look", + "0x0f": "look", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "craft_recipe_request", + "0x13": "abilities", + "0x14": "block_dig", + "0x15": "entity_action", + "0x16": "steer_vehicle", + "0x17": "crafting_book_data", + "0x18": "resource_pack_receive", + "0x19": "advancement_tab", + "0x1a": "held_item_slot", + "0x1b": "set_creative_slot", + "0x1c": "update_sign", + "0x1d": "arm_animation", + "0x1e": "spectate", + "0x1f": "block_place", + "0x20": "use_item" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat": "packet_chat", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", + "custom_payload": "packet_custom_payload", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "look": "packet_look", + "position": "packet_position", + "position_look": "packet_position_look", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_sign": "packet_update_sign", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" + } + } + ] } ] ], - "packet_tab_complete": [ + "packet_abilities": [ "container", [ { - "name": "text", - "type": "string" + "name": "flags", + "type": "i8" }, { - "name": "assumeCommand", - "type": "bool" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "lookedAtBlock", + "name": "walkingSpeed", + "type": "f32" + } + ] + ], + "packet_advancement_tab": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "tabId", "type": [ - "option", - "position" + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } ] } ] ], - "packet_chat": [ + "packet_arm_animation": [ "container", [ { - "name": "message", - "type": "string" + "name": "hand", + "type": "varint" } ] ], - "packet_client_command": [ + "packet_block_dig": [ "container", [ { - "name": "actionId", + "name": "status", "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_settings": [ + "packet_block_place": [ "container", [ { - "name": "locale", - "type": "string" + "name": "location", + "type": "position" }, { - "name": "viewDistance", - "type": "i8" + "name": "direction", + "type": "varint" }, { - "name": "chatFlags", + "name": "hand", "type": "varint" }, { - "name": "chatColors", - "type": "bool" + "name": "cursorX", + "type": "f32" }, { - "name": "skinParts", - "type": "u8" + "name": "cursorY", + "type": "f32" }, { - "name": "mainHand", - "type": "varint" + "name": "cursorZ", + "type": "f32" } ] ], - "packet_transaction": [ + "packet_chat": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, - { - "name": "accepted", - "type": "bool" + "name": "message", + "type": "string" } ] ], - "packet_enchant_item": [ + "packet_client_command": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "actionId", + "type": "varint" } ] ], - "packet_window_click": [ + "packet_close_window": [ "container", [ { "name": "windowId", "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, + } + ] + ], + "packet_craft_recipe_request": [ + "container", + [ { - "name": "mouseButton", + "name": "windowId", "type": "i8" }, { - "name": "action", - "type": "i16" - }, - { - "name": "mode", - "type": "i8" + "name": "recipe", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "makeAll", + "type": "bool" } ] ], - "packet_close_window": [ + "packet_crafting_book_data": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "type", + "type": "varint" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "i32" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], @@ -3433,128 +3562,60 @@ } ] ], - "packet_use_entity": [ + "packet_enchant_item": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, + "name": "enchantment", + "type": "i8" + } + ] + ], + "packet_entity_action": [ + "container", + [ { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "actionId", + "type": "varint" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_keep_alive": [ + "packet_flying": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "onGround", + "type": "bool" } ] ], - "packet_position": [ + "packet_held_item_slot": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "onGround", - "type": "bool" + "name": "slotId", + "type": "i16" } ] ], - "packet_position_look": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], @@ -3575,16 +3636,28 @@ } ] ], - "packet_flying": [ + "packet_position": [ "container", [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "onGround", "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_position_look": [ "container", [ { @@ -3606,177 +3679,146 @@ { "name": "pitch", "type": "f32" - } - ] - ], - "packet_steer_boat": [ - "container", - [ - { - "name": "leftPaddle", - "type": "bool" }, { - "name": "rightPaddle", + "name": "onGround", "type": "bool" } ] ], - "packet_craft_recipe_request": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", + "name": "result", "type": "varint" - }, - { - "name": "makeAll", - "type": "bool" } ] ], - "packet_abilities": [ + "packet_set_creative_slot": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" + "name": "slot", + "type": "i16" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "item", + "type": "slot" } ] ], - "packet_block_dig": [ + "packet_settings": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" + "name": "locale", + "type": "string" }, { - "name": "face", + "name": "viewDistance", "type": "i8" - } - ] - ], - "packet_entity_action": [ - "container", - [ + }, { - "name": "entityId", + "name": "chatFlags", "type": "varint" }, { - "name": "actionId", - "type": "varint" + "name": "chatColors", + "type": "bool" }, { - "name": "jumpBoost", + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", "type": "varint" } ] ], - "packet_steer_vehicle": [ + "packet_spectate": [ "container", [ { - "name": "sideways", - "type": "f32" - }, - { - "name": "forward", - "type": "f32" - }, - { - "name": "jump", - "type": "u8" + "name": "target", + "type": "UUID" } ] ], - "packet_crafting_book_data": [ + "packet_steer_boat": [ "container", [ { - "name": "type", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "i32" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "rightPaddle", + "type": "bool" + } + ] + ], + "packet_steer_vehicle": [ + "container", + [ + { + "name": "sideways", + "type": "f32" + }, + { + "name": "forward", + "type": "f32" + }, + { + "name": "jump", + "type": "u8" } ] ], - "packet_resource_pack_receive": [ + "packet_tab_complete": [ "container", [ { - "name": "result", - "type": "varint" + "name": "text", + "type": "string" + }, + { + "name": "assumeCommand", + "type": "bool" + }, + { + "name": "lookedAtBlock", + "type": [ + "option", + "position" + ] } ] ], - "packet_held_item_slot": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "teleportId", + "type": "varint" } ] ], - "packet_set_creative_slot": [ + "packet_transaction": [ "container", [ { - "name": "slot", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" }, { - "name": "item", - "type": "slot" + "name": "accepted", + "type": "bool" } ] ], @@ -3805,50 +3847,69 @@ } ] ], - "packet_arm_animation": [ - "container", - [ - { - "name": "hand", - "type": "varint" - } - ] - ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "location", - "type": "position" + "type": "varint" }, { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "hand", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -3861,118 +3922,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "flying", - "0x0d": "position", - "0x0e": "position_look", - "0x0f": "look", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "craft_recipe_request", - "0x13": "abilities", - "0x14": "block_dig", - "0x15": "entity_action", - "0x16": "steer_vehicle", - "0x17": "crafting_book_data", - "0x18": "resource_pack_receive", - "0x19": "advancement_tab", - "0x1a": "held_item_slot", - "0x1b": "set_creative_slot", - "0x1c": "update_sign", - "0x1d": "arm_animation", - "0x1e": "spectate", - "0x1f": "block_place", - "0x20": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.12/protocol.json b/data/pc/1.12/protocol.json index cd9d65648..7728151d3 100644 --- a/data/pc/1.12/protocol.json +++ b/data/pc/1.12/protocol.json @@ -1,116 +1,53 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 255, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ + "anon": true, + "type": [ "container", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "key", + "type": "u8" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "type", + "type": "i8" } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -156,42 +93,105 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ + "compareTo": "blockId", + "default": [ "container", [ { - "name": "key", - "type": "u8" + "name": "itemCount", + "type": "i8" }, { - "name": "type", - "type": "i8" + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -204,8 +204,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -225,36 +225,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -263,11 +233,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -278,38 +248,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -318,11 +300,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -333,21 +315,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -358,6 +332,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -366,11 +353,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -381,13 +368,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -395,6 +395,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -443,16 +487,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -461,13 +500,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -478,28 +515,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -524,34 +546,12 @@ } ] ], - "packet": [ + "packet_login_start": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } - } - ] + "name": "username", + "type": "string" } ] ] @@ -561,252 +561,208 @@ "play": { "toClient": { "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] - ], - "packet_spawn_entity_weather": [ + "packet": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - } - ] - ], - "packet_spawn_entity_living": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "velocity", - "type": "vec3i16" - }, - { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_spawn_entity_painting": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "string" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "u8" - } - ] - ], - "packet_named_entity_spawn": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "entity", + "0x26": "rel_entity_move", + "0x27": "entity_move_look", + "0x28": "entity_look", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "unlock_recipes", + "0x31": "entity_destroy", + "0x32": "remove_entity_effect", + "0x33": "resource_pack_send", + "0x34": "respawn", + "0x35": "entity_head_rotation", + "0x36": "select_advancement_tab", + "0x37": "world_border", + "0x38": "camera", + "0x39": "held_item_slot", + "0x3a": "scoreboard_display_objective", + "0x3b": "entity_metadata", + "0x3c": "attach_entity", + "0x3d": "entity_velocity", + "0x3e": "entity_equipment", + "0x3f": "experience", + "0x40": "update_health", + "0x41": "scoreboard_objective", + "0x42": "set_passengers", + "0x43": "teams", + "0x44": "scoreboard_score", + "0x45": "spawn_position", + "0x46": "update_time", + "0x47": "title", + "0x48": "sound_effect", + "0x49": "playerlist_header", + "0x4a": "collect", + "0x4b": "entity_teleport", + "0x4c": "advancements", + "0x4d": "entity_update_attributes", + "0x4e": "entity_effect" + }, + "type": "varint" + } + ] }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", + "name": "params", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "custom_payload": "packet_custom_payload", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } } ] } ] ], + "packet_abilities": [ + "container", + [ + { + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" + } + ] + ], "packet_advancements": [ "container", [ @@ -869,23 +825,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -896,10 +852,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1016,7 +972,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1024,29 +980,34 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" + "name": "entityId", + "type": "i32" }, { - "name": "action", - "type": "u8" + "name": "vehicleId", + "type": "i32" + } + ] + ], + "packet_bed": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "location", + "type": "position" } ] ], @@ -1071,6 +1032,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1101,11 +1079,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1115,11 +1093,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1129,11 +1107,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1143,11 +1121,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1157,198 +1135,224 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" + "name": "cameraId", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chat": [ "container", [ { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "message", + "type": "string" + }, + { + "name": "position", + "type": "i8" } ] ], - "packet_chat": [ + "packet_close_window": [ "container", [ { - "name": "message", - "type": "string" + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", + "type": "varint" }, { - "name": "position", - "type": "i8" + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" } ] ], - "packet_multi_block_change": [ + "packet_combat_event": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "event", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "records", + "name": "playerId", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "i32", + "2": "i32" + } + } + ] + }, + { + "name": "message", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "string" + } } ] } ] ], - "packet_transaction": [ + "packet_craft_progress_bar": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "action", + "name": "property", "type": "i16" }, { - "name": "accepted", - "type": "bool" + "name": "value", + "type": "i16" } ] ], - "packet_close_window": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_open_window": [ + "packet_difficulty": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "inventoryType", - "type": "string" - }, - { - "name": "windowTitle", - "type": "string" - }, - { - "name": "slotCount", + "name": "difficulty", "type": "u8" - }, + } + ] + ], + "packet_entity": [ + "container", + [ { "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "type": "varint" } ] ], - "packet_window_items": [ + "packet_entity_destroy": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "items", + "name": "entityIds", "type": [ "array", { - "countType": "i16", - "type": "slot" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_craft_progress_bar": [ + "packet_entity_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", - "type": "i16" + "name": "effectId", + "type": "i8" }, { - "name": "value", - "type": "i16" + "name": "amplifier", + "type": "i8" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "i8" } ] ], - "packet_set_slot": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { "name": "slot", - "type": "i16" + "type": "varint" }, { "name": "item", @@ -1356,71 +1360,83 @@ } ] ], - "packet_set_cooldown": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "itemID", + "name": "entityId", "type": "varint" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "headYaw", + "type": "i8" } ] ], - "packet_custom_payload": [ + "packet_entity_look": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_named_sound_effect": [ + "packet_entity_metadata": [ "container", [ { - "name": "soundName", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "soundCategory", + "name": "metadata", + "type": "entityMetadata" + } + ] + ], + "packet_entity_move_look": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "dX", + "type": "i16" }, { - "name": "y", - "type": "i32" + "name": "dY", + "type": "i16" }, { - "name": "z", - "type": "i32" + "name": "dZ", + "type": "i16" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ + "type": "i8" + }, { - "name": "reason", - "type": "string" + "name": "onGround", + "type": "bool" } ] ], @@ -1437,27 +1453,48 @@ } ] ], - "packet_explosion": [ + "packet_entity_teleport": [ "container", [ + { + "name": "entityId", + "type": "varint" + }, { "name": "x", - "type": "f32" + "type": "f64" }, { "name": "y", - "type": "f32" + "type": "f64" }, { "name": "z", - "type": "f32" + "type": "f64" }, { - "name": "radius", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "affectedBlockOffsets", + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", "type": [ "array", { @@ -1466,143 +1503,79 @@ "container", [ { - "name": "x", - "type": "i8" + "name": "key", + "type": "string" }, { - "name": "y", - "type": "i8" + "name": "value", + "type": "f64" }, { - "name": "z", - "type": "i8" + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] } ] ] } ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, - { - "name": "playerMotionY", - "type": "f32" - }, - { - "name": "playerMotionZ", - "type": "f32" - } - ] - ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ - "container", - [ - { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", - "type": "f32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "varint" } ] ], - "packet_map_chunk": [ + "packet_entity_velocity": [ "container", - [ - { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "groundUp", - "type": "bool" - }, - { - "name": "bitMap", - "type": "varint" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" - } - ] + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_world_event": [ + "packet_experience": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" + "name": "experienceBar", + "type": "f32" }, { - "name": "data", - "type": "i32" + "name": "level", + "type": "varint" }, { - "name": "global", - "type": "bool" + "name": "totalExperience", + "type": "varint" } ] ], - "packet_world_particles": [ + "packet_explosion": [ "container", [ - { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, { "name": "x", "type": "f32" @@ -1616,57 +1589,86 @@ "type": "f32" }, { - "name": "offsetX", + "name": "radius", "type": "f32" }, { - "name": "offsetY", - "type": "f32" + "name": "affectedBlockOffsets", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + } + ] + ] + } + ] }, { - "name": "offsetZ", + "name": "playerMotionX", "type": "f32" }, { - "name": "particleData", + "name": "playerMotionY", "type": "f32" }, { - "name": "particles", - "type": "i32" + "name": "playerMotionZ", + "type": "f32" + } + ] + ], + "packet_game_state_change": [ + "container", + [ + { + "name": "reason", + "type": "u8" }, { - "name": "data", - "type": [ - "switch", - { - "compareTo": "particleId", - "fields": { - "36": [ - "array", - { - "count": 2, - "type": "varint" - } - ], - "37": [ - "array", - { - "count": 1, - "type": "varint" - } - ], - "38": [ - "array", - { - "count": 1, - "type": "varint" - } - ] - }, - "default": "void" - } - ] + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "varint" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "string" } ] ], @@ -1754,10 +1756,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1767,10 +1769,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1780,10 +1782,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1793,84 +1795,121 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "z", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "groundUp", + "type": "bool" }, { - "name": "dZ", - "type": "i16" + "name": "bitMap", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "chunkX", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "chunkZ", + "type": "i32" }, { - "name": "dY", - "type": "i16" - }, + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_named_entity_spawn": [ + "container", + [ { - "name": "dZ", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "yaw", - "type": "i8" + "name": "playerUUID", + "type": "UUID" }, { - "name": "pitch", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_look": [ - "container", - [ + "name": "y", + "type": "f64" + }, { - "name": "entityId", - "type": "varint" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -1881,37 +1920,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -1929,80 +1967,35 @@ } ] ], - "packet_abilities": [ + "packet_open_window": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" + "name": "windowId", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_combat_event": [ - "container", - [ - { - "name": "event", - "type": "varint" + "name": "inventoryType", + "type": "string" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { "name": "entityId", "type": [ "switch", { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -2016,14 +2009,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2100,37 +2093,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -2142,6 +2135,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -2175,7 +2181,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -2183,69 +2189,20 @@ "type": "varint" }, { - "name": "location", - "type": "position" - } - ] - ], - "packet_unlock_recipes": [ - "container", - [ - { - "name": "action", - "type": "varint" - }, - { - "name": "craftingBookOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "dZ", + "type": "i16" }, { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "onGround", + "type": "bool" } ] ], @@ -2296,223 +2253,230 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ - { - "name": "action", - "type": "varint" - }, - { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + { + "name": "name", + "type": "string" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "i8" }, { - "name": "new_radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "speed", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "warning_blocks", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_camera": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "id", + "type": [ + "option", + "string" + ] } ] ], - "packet_held_item_slot": [ + "packet_set_cooldown": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "itemID", + "type": "varint" + }, + { + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_scoreboard_display_objective": [ + "packet_set_passengers": [ "container", [ { - "name": "position", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "name", - "type": "string" + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_entity_metadata": [ + "packet_set_slot": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_attach_entity": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", + "type": "varint" + }, + { + "name": "soundCategory", + "type": "varint" + }, + { + "name": "x", "type": "i32" }, { - "name": "vehicleId", + "name": "y", "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -2520,104 +2484,168 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "item", - "type": "slot" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_experience": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "totalExperience", + "name": "type", "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "velocity", + "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_update_health": [ + "packet_spawn_entity_painting": [ "container", [ { - "name": "health", - "type": "f32" + "name": "entityId", + "type": "varint" + }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", + "type": "string" }, { - "name": "food", - "type": "varint" + "name": "location", + "type": "position" }, { - "name": "foodSaturation", - "type": "f32" + "name": "direction", + "type": "u8" } ] ], - "packet_scoreboard_objective": [ + "packet_spawn_entity_weather": [ "container", [ { - "name": "name", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "action", + "name": "type", "type": "i8" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "x", + "type": "f64" }, { - "name": "type", + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "varint" + } + ] + ] } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": "string" } ] } @@ -2640,11 +2668,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2654,11 +2682,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2668,11 +2696,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2682,11 +2710,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2696,11 +2724,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2710,11 +2738,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2724,11 +2752,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2738,6 +2766,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -2760,62 +2789,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -2832,12 +2825,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2847,10 +2840,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -2860,10 +2853,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -2873,85 +2866,124 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_sound_effect": [ + "packet_transaction": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "soundCategory", - "type": "varint" + "name": "action", + "type": "i16" }, { - "name": "x", - "type": "i32" - }, + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ { - "name": "y", + "name": "chunkX", "type": "i32" }, { - "name": "z", + "name": "chunkZ", "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" } ] ], - "packet_playerlist_header": [ + "packet_unlock_recipes": [ "container", [ { - "name": "header", - "type": "string" + "name": "action", + "type": "varint" }, { - "name": "footer", - "type": "string" + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "recipes1", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + }, + { + "name": "recipes2", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + } + ] } ] ], - "packet_collect": [ + "packet_update_health": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "collectorEntityId", + "name": "food", "type": "varint" }, { - "name": "pickupItemCount", - "type": "varint" + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_entity_teleport": [ + "packet_update_time": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "age", + "type": "i64" }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ { "name": "x", "type": "f64" @@ -2966,645 +2998,592 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "type": "f32" } ] ], - "packet_entity_update_attributes": [ + "packet_window_items": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "properties", + "name": "items", "type": [ "array", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "countType": "i16", + "type": "slot" } ] } ] ], - "packet_entity_effect": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "effectId", - "type": "i8" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] }, { - "name": "amplifier", - "type": "i8" + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "duration", - "type": "varint" + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "hideParticles", - "type": "i8" - } - ] - ], - "packet_select_advancement_tab": [ - "container", - [ + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, { - "name": "id", + "name": "new_radius", "type": [ - "option", - "string" + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } ] - } - ] - ], - "packet": [ - "container", - [ + }, { - "name": "name", + "name": "speed", "type": [ - "mapper", + "switch", { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "entity", - "0x26": "rel_entity_move", - "0x27": "entity_move_look", - "0x28": "entity_look", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "unlock_recipes", - "0x31": "entity_destroy", - "0x32": "remove_entity_effect", - "0x33": "resource_pack_send", - "0x34": "respawn", - "0x35": "entity_head_rotation", - "0x36": "select_advancement_tab", - "0x37": "world_border", - "0x38": "camera", - "0x39": "held_item_slot", - "0x3a": "scoreboard_display_objective", - "0x3b": "entity_metadata", - "0x3c": "attach_entity", - "0x3d": "entity_velocity", - "0x3e": "entity_equipment", - "0x3f": "experience", - "0x40": "update_health", - "0x41": "scoreboard_objective", - "0x42": "set_passengers", - "0x43": "teams", - "0x44": "scoreboard_score", - "0x45": "spawn_position", - "0x46": "update_time", - "0x47": "title", - "0x48": "sound_effect", - "0x49": "playerlist_header", - "0x4a": "collect", - "0x4b": "entity_teleport", - "0x4c": "advancements", - "0x4d": "entity_update_attributes", - "0x4e": "entity_effect" + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" } } ] }, { - "name": "params", + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", "type": [ "switch", { - "compareTo": "name", + "compareTo": "action", + "default": "void", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", - "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", - "position": "packet_position", - "bed": "packet_bed", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab" + "3": "varint", + "5": "varint" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_world_event": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" } ] ], - "packet_prepare_crafting_grid": [ + "packet_world_particles": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "particleId", + "type": "i32" }, { - "name": "actionNumber", - "type": "u16" + "name": "longDistance", + "type": "bool" }, { - "name": "returnEntry", + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", "type": [ - "array", + "switch", { - "countType": "u16", - "type": [ - "container", - [ + "compareTo": "particleId", + "default": "void", + "fields": { + "36": [ + "array", { - "name": "item", - "type": "slot" - }, + "count": 2, + "type": "varint" + } + ], + "37": [ + "array", { - "name": "craftingSlot", - "type": "u8" - }, + "count": 1, + "type": "varint" + } + ], + "38": [ + "array", { - "name": "playerSlot", - "type": "u8" + "count": 1, + "type": "varint" } ] - ] + } } ] - }, + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "prepareEntry", + "name": "name", "type": [ - "array", + "mapper", { - "countType": "u16", - "type": [ - "container", - [ - { - "name": "item", - "type": "slot" - }, - { - "name": "craftingSlot", - "type": "u8" - }, - { - "name": "playerSlot", - "type": "u8" - } - ] - ] + "mappings": { + "0x00": "teleport_confirm", + "0x01": "prepare_crafting_grid", + "0x02": "tab_complete", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "use_entity", + "0x0c": "keep_alive", + "0x0d": "flying", + "0x0e": "position", + "0x0f": "position_look", + "0x10": "look", + "0x11": "vehicle_move", + "0x12": "steer_boat", + "0x13": "abilities", + "0x14": "block_dig", + "0x15": "entity_action", + "0x16": "steer_vehicle", + "0x17": "crafting_book_data", + "0x18": "resource_pack_receive", + "0x19": "advancement_tab", + "0x1a": "held_item_slot", + "0x1b": "set_creative_slot", + "0x1c": "update_sign", + "0x1d": "arm_animation", + "0x1e": "spectate", + "0x1f": "block_place", + "0x20": "use_item" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat": "packet_chat", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "crafting_book_data": "packet_crafting_book_data", + "custom_payload": "packet_custom_payload", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "look": "packet_look", + "position": "packet_position", + "position_look": "packet_position_look", + "prepare_crafting_grid": "packet_prepare_crafting_grid", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_sign": "packet_update_sign", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" + } } ] } ] ], - "packet_tab_complete": [ + "packet_abilities": [ "container", [ { - "name": "text", - "type": "string" + "name": "flags", + "type": "i8" }, { - "name": "assumeCommand", - "type": "bool" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "lookedAtBlock", - "type": [ - "option", - "position" - ] + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_chat": [ + "packet_advancement_tab": [ "container", [ { - "name": "message", - "type": "string" + "name": "action", + "type": "varint" + }, + { + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_client_command": [ + "packet_arm_animation": [ "container", [ { - "name": "actionId", + "name": "hand", "type": "varint" } ] ], - "packet_settings": [ + "packet_block_dig": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", + "name": "status", "type": "varint" }, { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" + "name": "location", + "type": "position" }, { - "name": "mainHand", - "type": "varint" + "name": "face", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_block_place": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "action", - "type": "i16" + "name": "direction", + "type": "varint" }, { - "name": "accepted", - "type": "bool" - } - ] - ], - "packet_enchant_item": [ - "container", - [ + "name": "hand", + "type": "varint" + }, { - "name": "windowId", - "type": "i8" + "name": "cursorX", + "type": "f32" }, { - "name": "enchantment", - "type": "i8" + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" } ] ], - "packet_window_click": [ + "packet_chat": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, - { - "name": "mode", - "type": "i8" - }, - { - "name": "item", - "type": "slot" + "name": "message", + "type": "string" } ] ], - "packet_close_window": [ + "packet_client_command": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "actionId", + "type": "varint" } ] ], - "packet_custom_payload": [ + "packet_close_window": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "windowId", + "type": "u8" } ] ], - "packet_use_entity": [ + "packet_crafting_book_data": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "type", "type": "varint" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", + "anon": true, "type": [ "switch", { - "compareTo": "mouse", + "compareTo": "type", "fields": { - "2": "f32" - }, - "default": "void" + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "i32" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + } + ] + ] + } } ] - }, + } + ] + ], + "packet_custom_payload": [ + "container", + [ { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_keep_alive": [ + "packet_enchant_item": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "windowId", + "type": "i8" + }, + { + "name": "enchantment", + "type": "i8" } ] ], - "packet_position": [ + "packet_entity_action": [ "container", [ { - "name": "x", - "type": "f64" + "name": "entityId", + "type": "varint" }, { - "name": "y", - "type": "f64" + "name": "actionId", + "type": "varint" }, { - "name": "z", - "type": "f64" - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { "name": "onGround", "type": "bool" } ] ], - "packet_position_look": [ + "packet_held_item_slot": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, + "name": "slotId", + "type": "i16" + } + ] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "onGround", - "type": "bool" + "name": "keepAliveId", + "type": "varint" } ] ], @@ -3625,16 +3604,28 @@ } ] ], - "packet_flying": [ + "packet_position": [ "container", [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "onGround", "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_position_look": [ "container", [ { @@ -3656,160 +3647,211 @@ { "name": "pitch", "type": "f32" - } - ] - ], - "packet_steer_boat": [ - "container", - [ - { - "name": "leftPaddle", - "type": "bool" }, { - "name": "rightPaddle", + "name": "onGround", "type": "bool" } ] ], - "packet_abilities": [ + "packet_prepare_crafting_grid": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "windowId", + "type": "u8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "actionNumber", + "type": "u16" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "returnEntry", + "type": [ + "array", + { + "countType": "u16", + "type": [ + "container", + [ + { + "name": "item", + "type": "slot" + }, + { + "name": "craftingSlot", + "type": "u8" + }, + { + "name": "playerSlot", + "type": "u8" + } + ] + ] + } + ] + }, + { + "name": "prepareEntry", + "type": [ + "array", + { + "countType": "u16", + "type": [ + "container", + [ + { + "name": "item", + "type": "slot" + }, + { + "name": "craftingSlot", + "type": "u8" + }, + { + "name": "playerSlot", + "type": "u8" + } + ] + ] + } + ] } ] ], - "packet_block_dig": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "status", + "name": "result", "type": "varint" - }, + } + ] + ], + "packet_set_creative_slot": [ + "container", + [ { - "name": "location", - "type": "position" + "name": "slot", + "type": "i16" }, { - "name": "face", - "type": "i8" + "name": "item", + "type": "slot" } ] ], - "packet_entity_action": [ + "packet_settings": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "locale", + "type": "string" }, { - "name": "actionId", + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "jumpBoost", + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", "type": "varint" } ] ], - "packet_steer_vehicle": [ + "packet_spectate": [ "container", [ { - "name": "sideways", - "type": "f32" - }, - { - "name": "forward", - "type": "f32" - }, - { - "name": "jump", - "type": "u8" + "name": "target", + "type": "UUID" } ] ], - "packet_crafting_book_data": [ + "packet_steer_boat": [ "container", [ { - "name": "type", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "i32" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "rightPaddle", + "type": "bool" + } + ] + ], + "packet_steer_vehicle": [ + "container", + [ + { + "name": "sideways", + "type": "f32" + }, + { + "name": "forward", + "type": "f32" + }, + { + "name": "jump", + "type": "u8" } ] ], - "packet_resource_pack_receive": [ + "packet_tab_complete": [ "container", [ { - "name": "result", - "type": "varint" + "name": "text", + "type": "string" + }, + { + "name": "assumeCommand", + "type": "bool" + }, + { + "name": "lookedAtBlock", + "type": [ + "option", + "position" + ] } ] ], - "packet_held_item_slot": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "teleportId", + "type": "varint" } ] ], - "packet_set_creative_slot": [ + "packet_transaction": [ "container", [ { - "name": "slot", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" }, { - "name": "item", - "type": "slot" + "name": "accepted", + "type": "bool" } ] ], @@ -3838,50 +3880,69 @@ } ] ], - "packet_arm_animation": [ - "container", - [ - { - "name": "hand", - "type": "varint" - } - ] - ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "location", - "type": "position" + "type": "varint" }, { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "hand", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -3894,118 +3955,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "prepare_crafting_grid", - "0x02": "tab_complete", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "use_entity", - "0x0c": "keep_alive", - "0x0d": "flying", - "0x0e": "position", - "0x0f": "position_look", - "0x10": "look", - "0x11": "vehicle_move", - "0x12": "steer_boat", - "0x13": "abilities", - "0x14": "block_dig", - "0x15": "entity_action", - "0x16": "steer_vehicle", - "0x17": "crafting_book_data", - "0x18": "resource_pack_receive", - "0x19": "advancement_tab", - "0x1a": "held_item_slot", - "0x1b": "set_creative_slot", - "0x1c": "update_sign", - "0x1d": "arm_animation", - "0x1e": "spectate", - "0x1f": "block_place", - "0x20": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "prepare_crafting_grid": "packet_prepare_crafting_grid", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.13.1/protocol.json b/data/pc/1.13.1/protocol.json index 717f48c22..cc3bd678a 100644 --- a/data/pc/1.13.1/protocol.json +++ b/data/pc/1.13.1/protocol.json @@ -1,343 +1,80 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "itemId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "itemId", - "fields": { - "-1": "void" - }, - "default": [ - "container", - [ - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "11": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "20": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "27": [ - "container", - [ + "name": "has_command", + "signed": false, + "size": 1 + }, { - "name": "item", - "type": "slot" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "y", - "size": 12, - "signed": true + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "z", - "size": 26, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "extraNodeData", - "type": [ - "switch", + "name": "extraNodeData", + "type": [ + "switch", { "compareTo": "flags/command_node_type", "fields": { @@ -370,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -380,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -402,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -415,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -434,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -456,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -469,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -488,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -510,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -523,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -542,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -564,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -577,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -589,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -669,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -685,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -694,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -705,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -719,125 +456,274 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ "container", [ { - "name": "name", + "anon": true, "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": {} + "compareTo": "type" } ] } ] ] } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } - } - ] - }, + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "11": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "20": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "27": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "itemId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "itemId", + "default": [ + "container", + [ + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" } - } - ] + ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - } + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, - "status": { + "handshaking": { "toClient": { "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], "packet": [ "container", [ @@ -846,11 +732,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } + "mappings": {}, + "type": "varint" } ] }, @@ -860,10 +743,7 @@ "switch", { "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } + "fields": {} } ] } @@ -873,19 +753,6 @@ }, "toServer": { "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], "packet": [ "container", [ @@ -894,11 +761,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" } ] }, @@ -909,95 +776,153 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { - "packet_disconnect": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "reason", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_encryption_begin": [ + "packet_set_protocol": [ "container", [ { - "name": "serverId", + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", "type": "string" }, { - "name": "publicKey", + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" + } + ] + ] + } + } + }, + "status": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": { + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "server_info": "packet_server_info" + } } ] } ] ], - "packet_success": [ + "packet_ping": [ "container", [ { - "name": "uuid", - "type": "string" - }, - { - "name": "username", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_compress": [ + "packet_server_info": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "response", + "type": "string" } ] - ], - "packet_login_plugin_request": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "messageId", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" + } + ] }, { - "name": "channel", - "type": "string" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } + } + ] + } + ] + ], + "packet_ping": [ + "container", + [ { - "name": "data", - "type": "restBuffer" + "name": "time", + "type": "i64" } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1006,14 +931,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "disconnect", "0x01": "encryption_begin", "0x02": "success", "0x03": "compress", "0x04": "login_plugin_request" - } + }, + "type": "varint" } ] }, @@ -1024,26 +949,31 @@ { "compareTo": "name", "fields": { + "compress": "packet_compress", "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_compress": [ "container", [ { - "name": "username", + "name": "threshold", + "type": "varint" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", "type": "string" } ] @@ -1052,7 +982,11 @@ "container", [ { - "name": "sharedSecret", + "name": "serverId", + "type": "string" + }, + { + "name": "publicKey", "type": [ "buffer", { @@ -1071,22 +1005,40 @@ } ] ], - "packet_login_plugin_response": [ + "packet_login_plugin_request": [ "container", [ { "name": "messageId", "type": "varint" }, + { + "name": "channel", + "type": "string" + }, { "name": "data", - "type": [ - "option", - "restBuffer" - ] + "type": "restBuffer" } ] ], + "packet_success": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1095,12 +1047,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "login_start", "0x01": "encryption_begin", "0x02": "login_plugin_response" - } + }, + "type": "varint" } ] }, @@ -1111,268 +1063,282 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "x", - "type": "f64" - }, + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ], + "packet_login_plugin_response": [ + "container", + [ { - "name": "y", - "type": "f64" + "name": "messageId", + "type": "varint" }, { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] - ], - "packet_spawn_entity_weather": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_spawn_entity_living": [ + "packet_login_start": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "velocity", - "type": "vec3i16" - }, - { - "name": "metadata", - "type": "entityMetadata" + "name": "username", + "type": "string" } ] - ], - "packet_spawn_entity_painting": [ + ] + } + } + }, + "play": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" - }, - { - "name": "location", - "type": "position" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "nbt_query_response", + "0x1e": "explosion", + "0x1f": "unload_chunk", + "0x20": "game_state_change", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "login", + "0x26": "map", + "0x27": "entity", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "vehicle_move", + "0x2c": "open_sign_entity", + "0x2d": "craft_recipe_response", + "0x2e": "abilities", + "0x2f": "combat_event", + "0x30": "player_info", + "0x31": "face_player", + "0x32": "position", + "0x33": "bed", + "0x34": "unlock_recipes", + "0x35": "entity_destroy", + "0x36": "remove_entity_effect", + "0x37": "resource_pack_send", + "0x38": "respawn", + "0x39": "entity_head_rotation", + "0x3a": "select_advancement_tab", + "0x3b": "world_border", + "0x3c": "camera", + "0x3d": "held_item_slot", + "0x3e": "scoreboard_display_objective", + "0x3f": "entity_metadata", + "0x40": "attach_entity", + "0x41": "entity_velocity", + "0x42": "entity_equipment", + "0x43": "experience", + "0x44": "update_health", + "0x45": "scoreboard_objective", + "0x46": "set_passengers", + "0x47": "teams", + "0x48": "scoreboard_score", + "0x49": "spawn_position", + "0x4a": "update_time", + "0x4b": "title", + "0x4c": "stop_sound", + "0x4d": "sound_effect", + "0x4e": "playerlist_header", + "0x4f": "collect", + "0x50": "entity_teleport", + "0x51": "advancements", + "0x52": "entity_update_attributes", + "0x53": "entity_effect", + "0x54": "declare_recipes", + "0x55": "tags" + }, + "type": "varint" + } + ] }, { - "name": "direction", - "type": "u8" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_named_entity_spawn": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "flags", "type": "i8" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "walkingSpeed", + "type": "f32" } ] ], @@ -1438,23 +1404,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1465,10 +1431,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1585,7 +1551,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1593,29 +1559,34 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" + "name": "entityId", + "type": "i32" }, { - "name": "action", - "type": "u8" + "name": "vehicleId", + "type": "i32" + } + ] + ], + "packet_bed": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "location", + "type": "position" } ] ], @@ -1640,6 +1611,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1670,11 +1658,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1684,11 +1672,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1698,11 +1686,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1712,11 +1700,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1726,176 +1714,193 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" + "name": "cameraId", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chat": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", - "type": "varint" + "name": "message", + "type": "string" }, { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "name": "position", + "type": "i8" } ] ], - "packet_declare_commands": [ + "packet_close_window": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] - }, - { - "name": "rootIndex", - "type": "varint" + "name": "windowId", + "type": "u8" } ] ], - "packet_face_player": [ + "packet_collect": [ "container", [ { - "name": "feet_eyes", + "name": "collectedEntityId", "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "collectorEntityId", + "type": "varint" }, { - "name": "y", - "type": "f64" + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_combat_event": [ + "container", + [ + { + "name": "event", + "type": "varint" }, { - "name": "z", - "type": "f64" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "isEntity", - "type": "bool" + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] }, { "name": "entityId", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "entity_feet_eyes", + "name": "message", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "string" - }, - "default": "void" + "2": "string" + } } ] } ] ], - "packet_nbt_query_response": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" } ] ], - "packet_chat": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "message", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "position", - "type": "i8" + "name": "recipe", + "type": "string" } ] ], - "packet_multi_block_change": [ + "packet_custom_payload": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "channel", + "type": "string" }, { - "name": "chunkZ", - "type": "i32" + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "records", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { @@ -1904,16 +1909,121 @@ "container", [ { - "name": "horizontalPos", - "type": "u8" + "name": "recipeId", + "type": "string" }, { - "name": "y", - "type": "u8" + "name": "type", + "type": "string" }, { - "name": "blockId", - "type": "varint" + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_special_armordye": "void", + "crafting_special_banneraddpattern": "void", + "crafting_special_bannerduplicate": "void", + "crafting_special_bookcloning": "void", + "crafting_special_firework_rocket": "void", + "crafting_special_firework_star": "void", + "crafting_special_firework_star_fade": "void", + "crafting_special_mapcloning": "void", + "crafting_special_mapextending": "void", + "crafting_special_repairitem": "void", + "crafting_special_shielddecoration": "void", + "crafting_special_shulkerboxcoloring": "void", + "crafting_special_tippedarrow": "void", + "smelting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ] + } + } + ] } ] ] @@ -1922,197 +2032,291 @@ } ] ], - "packet_transaction": [ + "packet_difficulty": [ "container", [ { - "name": "windowId", + "name": "difficulty", + "type": "u8" + } + ] + ], + "packet_entity": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "packet_entity_effect": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "effectId", + "type": "i8" + }, + { + "name": "amplifier", + "type": "i8" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", "type": "i8" + } + ] + ], + "packet_entity_equipment": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "slot", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "inventoryType", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "windowTitle", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "pitch", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ - { - "name": "windowId", - "type": "i8" }, { - "name": "slot", + "name": "dZ", "type": "i16" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ + "name": "yaw", + "type": "i8" + }, { - "name": "itemID", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_status": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "data", - "type": "restBuffer" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_named_sound_effect": [ + "packet_entity_teleport": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_velocity": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -2175,153 +2379,94 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ + "packet_face_player": [ "container", [ { - "name": "reason", - "type": "u8" + "name": "feet_eyes", + "type": "varint" }, - { - "name": "gameMode", - "type": "f32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_map_chunk": [ - "container", - [ { "name": "x", - "type": "i32" + "type": "f64" }, { - "name": "z", - "type": "i32" + "name": "y", + "type": "f64" }, { - "name": "groundUp", - "type": "bool" + "name": "z", + "type": "f64" }, { - "name": "bitMap", - "type": "varint" + "name": "isEntity", + "type": "bool" }, { - "name": "chunkData", + "name": "entityId", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } } ] }, { - "name": "blockEntities", + "name": "entity_feet_eyes", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "nbt" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] } ] ], - "packet_world_event": [ + "packet_game_state_change": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "reason", + "type": "u8" }, { - "name": "global", - "type": "bool" + "name": "gameMode", + "type": "f32" } ] ], - "packet_world_particles": [ + "packet_held_item_slot": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "particles", - "type": "i32" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -2420,10 +2565,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2433,10 +2578,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2446,10 +2591,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2459,85 +2604,122 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "z", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "groundUp", + "type": "bool" }, { - "name": "dZ", - "type": "i16" + "name": "bitMap", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "yaw", - "type": "i8" + "name": "chunkX", + "type": "i32" }, { - "name": "pitch", - "type": "i8" + "name": "chunkZ", + "type": "i32" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_entity_look": [ + "packet_named_entity_spawn": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "playerUUID", + "type": "UUID" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "yaw", "type": "i8" @@ -2547,37 +2729,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2586,102 +2767,57 @@ } ] ], - "packet_open_sign_entity": [ - "container", - [ - { - "name": "location", - "type": "position" - } - ] - ], - "packet_craft_recipe_response": [ + "packet_nbt_query_response": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "transactionId", + "type": "varint" }, { - "name": "recipe", - "type": "string" + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "event", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "inventoryType", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { - "name": "message", + "name": "entityId", "type": [ "switch", { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -2695,14 +2831,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2779,37 +2915,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -2821,6 +2957,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -2854,7 +3003,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -2862,310 +3011,360 @@ "type": "varint" }, { - "name": "location", - "type": "position" + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_unlock_recipes": [ + "packet_remove_entity_effect": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "effectId", + "type": "i8" + } + ] + ], + "packet_resource_pack_send": [ + "container", + [ + { + "name": "url", + "type": "string" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "hash", + "type": "string" + } + ] + ], + "packet_respawn": [ + "container", + [ + { + "name": "dimension", + "type": "i32" }, { - "name": "smeltingBookOpen", - "type": "bool" + "name": "difficulty", + "type": "u8" }, { - "name": "filteringSmeltable", - "type": "bool" + "name": "gamemode", + "type": "u8" }, { - "name": "recipes1", + "name": "levelType", + "type": "string" + } + ] + ], + "packet_scoreboard_display_objective": [ + "container", + [ + { + "name": "position", + "type": "i8" + }, + { + "name": "name", + "type": "string" + } + ] + ], + "packet_scoreboard_objective": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "action", + "type": "i8" + }, + { + "name": "displayText", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "type", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "scoreName", + "type": "string" }, { - "name": "recipes2", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_entity_destroy": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "entityIds", + "name": "id", "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } + "option", + "string" ] } ] ], - "packet_remove_entity_effect": [ + "packet_set_cooldown": [ "container", [ { - "name": "entityId", + "name": "itemID", "type": "varint" }, { - "name": "effectId", - "type": "i8" + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_resource_pack_send": [ + "packet_set_passengers": [ "container", [ { - "name": "url", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "hash", - "type": "string" + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_respawn": [ + "packet_set_slot": [ "container", [ { - "name": "dimension", - "type": "i32" - }, - { - "name": "difficulty", - "type": "u8" + "name": "windowId", + "type": "i8" }, { - "name": "gamemode", - "type": "u8" + "name": "slot", + "type": "i16" }, { - "name": "levelType", - "type": "string" + "name": "item", + "type": "slot" } ] ], - "packet_entity_head_rotation": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", "type": "varint" }, { - "name": "headYaw", - "type": "i8" + "name": "soundCategory", + "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_world_border": [ + "packet_spawn_entity": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] + "name": "objectUUID", + "type": "UUID" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "type", + "type": "i8" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "x", + "type": "f64" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "y", + "type": "f64" }, { - "name": "new_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "z", + "type": "f64" }, { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "objectData", + "type": "i32" }, { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_camera": [ + "packet_spawn_entity_experience_orb": [ "container", [ { - "name": "cameraId", + "name": "entityId", "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_held_item_slot": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "slot", + "name": "entityId", + "type": "varint" + }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", "type": "i8" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + }, { - "name": "position", + "name": "pitch", "type": "i8" }, { - "name": "name", - "type": "string" - } - ] - ], - "packet_entity_metadata": [ - "container", - [ + "name": "headPitch", + "type": "i8" + }, { - "name": "entityId", - "type": "varint" + "name": "velocity", + "type": "vec3i16" }, { "name": "metadata", @@ -3173,33 +3372,32 @@ } ] ], - "packet_attach_entity": [ + "packet_spawn_entity_painting": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "vehicleId", - "type": "i32" - } - ] - ], - "packet_entity_velocity": [ - "container", - [ + "name": "entityUUID", + "type": "UUID" + }, { - "name": "entityId", + "name": "title", "type": "varint" }, { - "name": "velocity", - "type": "vec3i16" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_weather": [ "container", [ { @@ -3207,109 +3405,159 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "item", - "type": "slot" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_experience": [ + "packet_spawn_position": [ "container", [ { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" - }, - { - "name": "totalExperience", - "type": "varint" + "name": "location", + "type": "position" } ] ], - "packet_update_health": [ + "packet_statistics": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_scoreboard_objective": [ + "packet_stop_sound": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "action", + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "2": "string", + "3": "string" + } } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "passengers", + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], + "packet_tags": [ + "container", + [ + { + "name": "blockTags", + "type": "tags" + }, + { + "name": "itemTags", + "type": "tags" + }, + { + "name": "fluidTags", + "type": "tags" + } + ] + ], "packet_teams": [ "container", [ @@ -3327,11 +3575,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3341,11 +3589,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3355,11 +3603,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3369,11 +3617,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3383,11 +3631,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3397,11 +3645,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3411,11 +3659,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3425,6 +3673,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3434,75 +3683,39 @@ } ], "3": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + "array", + { + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3519,12 +3732,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3534,10 +3747,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3547,10 +3760,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3560,77 +3773,146 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_stop_sound": [ + "packet_transaction": [ "container", [ { - "name": "flags", + "name": "windowId", "type": "i8" }, { - "name": "source", + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + } + ] + ], + "packet_unlock_recipes": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "filteringSmeltable", + "type": "bool" + }, + { + "name": "recipes1", "type": [ - "switch", + "array", { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" + "countType": "varint", + "type": "string" } ] }, { - "name": "sound", + "name": "recipes2", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "action", + "default": "void", "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "soundCategory", + "name": "food", "type": "varint" }, + { + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_time": [ + "container", + [ + { + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", + "name": "yaw", "type": "f32" }, { @@ -3639,294 +3921,228 @@ } ] ], - "packet_playerlist_header": [ + "packet_window_items": [ "container", [ { - "name": "header", - "type": "string" + "name": "windowId", + "type": "u8" }, { - "name": "footer", - "type": "string" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_collect": [ + "packet_world_border": [ "container", [ { - "name": "collectedEntityId", + "name": "action", "type": "varint" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] }, { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "x", - "type": "f64" + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "y", - "type": "f64" + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "z", - "type": "f64" + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_update_attributes": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] }, { - "name": "properties", + "name": "warning_blocks", "type": [ - "array", + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], - "packet_select_advancement_tab": [ + "packet_world_particles": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + "name": "particleId", + "type": "i32" + }, { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "recipeId", - "type": "string" - }, - { - "name": "type", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "crafting_special_armordye": "void", - "crafting_special_bookcloning": "void", - "crafting_special_mapcloning": "void", - "crafting_special_mapextending": "void", - "crafting_special_firework_rocket": "void", - "crafting_special_firework_star": "void", - "crafting_special_firework_star_fade": "void", - "crafting_special_repairitem": "void", - "crafting_special_tippedarrow": "void", - "crafting_special_bannerduplicate": "void", - "crafting_special_banneraddpattern": "void", - "crafting_special_shielddecoration": "void", - "crafting_special_shulkerboxcoloring": "void", - "smelting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ] - } - } - ] - } - ] - ] + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" } ] } @@ -3956,24 +4172,11 @@ ] ] } - ], - "packet_tags": [ - "container", - [ - { - "name": "blockTags", - "type": "tags" - }, - { - "name": "itemTags", - "type": "tags" - }, - { - "name": "fluidTags", - "type": "tags" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -3982,95 +4185,52 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "nbt_query_response", - "0x1e": "explosion", - "0x1f": "unload_chunk", - "0x20": "game_state_change", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "login", - "0x26": "map", - "0x27": "entity", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "vehicle_move", - "0x2c": "open_sign_entity", - "0x2d": "craft_recipe_response", - "0x2e": "abilities", - "0x2f": "combat_event", - "0x30": "player_info", - "0x31": "face_player", - "0x32": "position", - "0x33": "bed", - "0x34": "unlock_recipes", - "0x35": "entity_destroy", - "0x36": "remove_entity_effect", - "0x37": "resource_pack_send", - "0x38": "respawn", - "0x39": "entity_head_rotation", - "0x3a": "select_advancement_tab", - "0x3b": "world_border", - "0x3c": "camera", - "0x3d": "held_item_slot", - "0x3e": "scoreboard_display_objective", - "0x3f": "entity_metadata", - "0x40": "attach_entity", - "0x41": "entity_velocity", - "0x42": "entity_equipment", - "0x43": "experience", - "0x44": "update_health", - "0x45": "scoreboard_objective", - "0x46": "set_passengers", - "0x47": "teams", - "0x48": "scoreboard_score", - "0x49": "spawn_position", - "0x4a": "update_time", - "0x4b": "title", - "0x4c": "stop_sound", - "0x4d": "sound_effect", - "0x4e": "playerlist_header", - "0x4f": "collect", - "0x50": "entity_teleport", - "0x51": "advancements", - "0x52": "entity_update_attributes", - "0x53": "entity_effect", - "0x54": "declare_recipes", - "0x55": "tags" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "tab_complete", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "keep_alive", + "0x0f": "flying", + "0x10": "position", + "0x11": "position_look", + "0x12": "look", + "0x13": "vehicle_move", + "0x14": "steer_boat", + "0x15": "pick_item", + "0x16": "craft_recipe_request", + "0x17": "abilities", + "0x18": "block_dig", + "0x19": "entity_action", + "0x1a": "steer_vehicle", + "0x1b": "crafting_book_data", + "0x1c": "name_item", + "0x1d": "resource_pack_receive", + "0x1e": "advancement_tab", + "0x1f": "select_trade", + "0x20": "set_beacon_effect", + "0x21": "held_item_slot", + "0x22": "update_command_block", + "0x23": "update_command_block_minecart", + "0x24": "set_creative_slot", + "0x25": "update_structure_block", + "0x26": "update_sign", + "0x27": "arm_animation", + "0x28": "spectate", + "0x29": "block_place", + "0x2a": "use_item" + }, + "type": "varint" } ] }, @@ -4081,683 +4241,614 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", - "position": "packet_position", - "bed": "packet_bed", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags" + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_edit_book": [ + "packet_arm_animation": [ "container", [ - { - "name": "new_book", - "type": "slot" - }, - { - "name": "signing", - "type": "bool" - }, { "name": "hand", "type": "varint" } ] ], - "packet_query_entity_nbt": [ + "packet_block_dig": [ "container", [ { - "name": "transactionId", + "name": "status", "type": "varint" }, { - "name": "entityId", - "type": "varint" + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_pick_item": [ + "packet_block_place": [ "container", [ { - "name": "slot", + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "varint" + }, + { + "name": "hand", "type": "varint" + }, + { + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" } ] ], - "packet_name_item": [ + "packet_chat": [ "container", [ { - "name": "name", + "name": "message", "type": "string" } ] ], - "packet_select_trade": [ + "packet_client_command": [ "container", [ { - "name": "slot", + "name": "actionId", "type": "varint" } ] ], - "packet_set_beacon_effect": [ + "packet_close_window": [ "container", [ { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", - "type": "varint" + "name": "windowId", + "type": "u8" } ] ], - "packet_update_command_block": [ + "packet_craft_recipe_request": [ "container", [ { - "name": "location", - "type": "position" + "name": "windowId", + "type": "i8" }, { - "name": "command", + "name": "recipe", "type": "string" }, { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", - "type": "u8" + "name": "makeAll", + "type": "bool" } ] ], - "packet_update_command_block_minecart": [ + "packet_crafting_book_data": [ "container", [ { - "name": "entityId", + "name": "type", "type": "varint" }, { - "name": "command", - "type": "string" - }, - { - "name": "track_output", - "type": "bool" + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "smeltingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], - "packet_update_structure_block": [ + "packet_custom_payload": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", + "name": "channel", "type": "string" }, { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_edit_book": [ + "container", + [ { - "name": "size_y", - "type": "i8" + "name": "new_book", + "type": "slot" }, { - "name": "size_z", - "type": "i8" + "name": "signing", + "type": "bool" }, { - "name": "mirror", + "name": "hand", "type": "varint" - }, + } + ] + ], + "packet_enchant_item": [ + "container", + [ { - "name": "rotation", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "metadata", - "type": "string" - }, + "name": "enchantment", + "type": "i8" + } + ] + ], + "packet_entity_action": [ + "container", + [ { - "name": "integrity", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "seed", - "type": "varlong" + "name": "actionId", + "type": "varint" }, { - "name": "flags", - "type": "u8" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_flying": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "text", - "type": "string" + "name": "onGround", + "type": "bool" } ] ], - "packet_chat": [ + "packet_held_item_slot": [ "container", [ { - "name": "message", - "type": "string" + "name": "slotId", + "type": "i16" } ] ], - "packet_client_command": [ + "packet_keep_alive": [ "container", [ { - "name": "actionId", - "type": "varint" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_settings": [ + "packet_look": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" + "name": "yaw", + "type": "f32" }, { - "name": "chatFlags", - "type": "varint" + "name": "pitch", + "type": "f32" }, { - "name": "chatColors", + "name": "onGround", "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" } ] ], - "packet_transaction": [ + "packet_name_item": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ { - "name": "accepted", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], - "packet_enchant_item": [ + "packet_position": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "enchantment", - "type": "i8" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_position_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "x", + "type": "f64" }, { - "name": "slot", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "mouseButton", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "action", - "type": "i16" + "name": "yaw", + "type": "f32" }, { - "name": "mode", - "type": "i8" + "name": "pitch", + "type": "f32" }, { - "name": "item", - "type": "slot" + "name": "onGround", + "type": "bool" } ] ], - "packet_close_window": [ + "packet_query_block_nbt": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "transactionId", + "type": "varint" + }, + { + "name": "location", + "type": "position" } ] ], - "packet_custom_payload": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "channel", - "type": "string" + "name": "transactionId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "entityId", + "type": "varint" } ] ], - "packet_use_entity": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "result", "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] } ] ], - "packet_keep_alive": [ + "packet_select_trade": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "slot", + "type": "varint" } ] ], - "packet_position": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "x", - "type": "f64" + "name": "primary_effect", + "type": "varint" }, { - "name": "y", - "type": "f64" - }, + "name": "secondary_effect", + "type": "varint" + } + ] + ], + "packet_set_creative_slot": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "slot", + "type": "i16" }, { - "name": "onGround", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_position_look": [ + "packet_settings": [ "container", [ { - "name": "x", - "type": "f64" + "name": "locale", + "type": "string" }, { - "name": "y", - "type": "f64" + "name": "viewDistance", + "type": "i8" }, { - "name": "z", - "type": "f64" + "name": "chatFlags", + "type": "varint" }, { - "name": "yaw", - "type": "f32" + "name": "chatColors", + "type": "bool" }, { - "name": "pitch", - "type": "f32" + "name": "skinParts", + "type": "u8" }, { - "name": "onGround", - "type": "bool" + "name": "mainHand", + "type": "varint" } ] ], - "packet_look": [ + "packet_spectate": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "target", + "type": "UUID" } ] ], - "packet_flying": [ + "packet_steer_boat": [ "container", [ { - "name": "onGround", + "name": "leftPaddle", + "type": "bool" + }, + { + "name": "rightPaddle", "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_steer_vehicle": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "sideways", + "type": "f32" }, { - "name": "yaw", + "name": "forward", "type": "f32" }, { - "name": "pitch", - "type": "f32" + "name": "jump", + "type": "u8" } ] ], - "packet_steer_boat": [ + "packet_tab_complete": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "transactionId", + "type": "varint" }, { - "name": "rightPaddle", - "type": "bool" + "name": "text", + "type": "string" } ] ], - "packet_craft_recipe_request": [ + "packet_teleport_confirm": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" - }, - { - "name": "makeAll", - "type": "bool" + "name": "teleportId", + "type": "varint" } ] ], - "packet_abilities": [ + "packet_transaction": [ "container", [ { - "name": "flags", + "name": "windowId", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "action", + "type": "i16" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "accepted", + "type": "bool" } ] ], - "packet_block_dig": [ + "packet_update_command_block": [ "container", [ - { - "name": "status", - "type": "varint" - }, { "name": "location", "type": "position" }, { - "name": "face", - "type": "i8" + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_entity_action": [ + "packet_update_command_block_minecart": [ "container", [ { @@ -4765,182 +4856,172 @@ "type": "varint" }, { - "name": "actionId", - "type": "varint" + "name": "command", + "type": "string" }, { - "name": "jumpBoost", - "type": "varint" + "name": "track_output", + "type": "bool" } ] ], - "packet_steer_vehicle": [ + "packet_update_sign": [ "container", [ { - "name": "sideways", - "type": "f32" + "name": "location", + "type": "position" }, { - "name": "forward", - "type": "f32" + "name": "text1", + "type": "string" }, { - "name": "jump", - "type": "u8" - } - ] - ], - "packet_crafting_book_data": [ - "container", - [ + "name": "text2", + "type": "string" + }, { - "name": "type", - "type": "varint" + "name": "text3", + "type": "string" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "smeltingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "text4", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_update_structure_block": [ "container", [ { - "name": "result", + "name": "location", + "type": "position" + }, + { + "name": "action", "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + }, { - "name": "slotId", - "type": "i16" - } - ] - ], - "packet_set_creative_slot": [ - "container", - [ + "name": "mode", + "type": "varint" + }, { - "name": "slot", - "type": "i16" + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_update_sign": [ - "container", - [ - { - "name": "location", - "type": "position" + "name": "mirror", + "type": "varint" }, { - "name": "text1", - "type": "string" + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "location", - "type": "position" + "type": "varint" }, { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "hand", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -4953,138 +5034,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "tab_complete", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "keep_alive", - "0x0f": "flying", - "0x10": "position", - "0x11": "position_look", - "0x12": "look", - "0x13": "vehicle_move", - "0x14": "steer_boat", - "0x15": "pick_item", - "0x16": "craft_recipe_request", - "0x17": "abilities", - "0x18": "block_dig", - "0x19": "entity_action", - "0x1a": "steer_vehicle", - "0x1b": "crafting_book_data", - "0x1c": "name_item", - "0x1d": "resource_pack_receive", - "0x1e": "advancement_tab", - "0x1f": "select_trade", - "0x20": "set_beacon_effect", - "0x21": "held_item_slot", - "0x22": "update_command_block", - "0x23": "update_command_block_minecart", - "0x24": "set_creative_slot", - "0x25": "update_structure_block", - "0x26": "update_sign", - "0x27": "arm_animation", - "0x28": "spectate", - "0x29": "block_place", - "0x2a": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.13.2-pre1/protocol.json b/data/pc/1.13.2-pre1/protocol.json index 538490790..94ed15562 100644 --- a/data/pc/1.13.2-pre1/protocol.json +++ b/data/pc/1.13.2-pre1/protocol.json @@ -1,347 +1,80 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "11": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "20": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "27": [ - "container", - [ + "name": "has_command", + "signed": false, + "size": 1 + }, { - "name": "item", - "type": "slot" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "y", - "size": 12, - "signed": true + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "z", - "size": 26, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "extraNodeData", - "type": [ - "switch", + "name": "extraNodeData", + "type": [ + "switch", { "compareTo": "flags/command_node_type", "fields": { @@ -374,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -384,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -406,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -419,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -438,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -460,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -473,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -492,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -514,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -527,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -546,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -568,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -581,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -593,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -673,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -689,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -698,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -709,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -723,285 +456,374 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ "container", [ { - "name": "name", + "anon": true, "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": {} + "compareTo": "type" } ] } ] ] } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } - } - ] - } - ] - ] + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle" + } } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", { - "name": "time", - "type": "i64" + "compareTo": "particleId" } ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } - } - ] - } + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "11": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "20": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "27": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] ] - ] + } } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } - } - ] - }, + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" - } - } - ] + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - } + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, - "login": { + "handshaking": { "toClient": { "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_encryption_begin": [ + "packet": [ "container", [ { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": {}, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": {} } ] } ] - ], - "packet_success": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "uuid", - "type": "string" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] }, { - "name": "username", - "type": "string" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] } ] ], - "packet_compress": [ + "packet_legacy_server_list_ping": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "payload", + "type": "u8" } ] ], - "packet_login_plugin_request": [ + "packet_set_protocol": [ "container", [ { - "name": "messageId", + "name": "protocolVersion", "type": "varint" }, { - "name": "channel", + "name": "serverHost", "type": "string" }, { - "name": "data", - "type": "restBuffer" + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1010,14 +832,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -1028,69 +847,86 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", - "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_ping": [ "container", [ { - "name": "username", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_encryption_begin": [ + "packet_server_info": [ "container", [ { - "name": "sharedSecret", + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } } ] } ] ], - "packet_login_plugin_response": [ + "packet_ping": [ "container", [ { - "name": "messageId", - "type": "varint" - }, - { - "name": "data", - "type": [ - "option", - "restBuffer" - ] + "name": "time", + "type": "i64" } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1099,12 +935,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", + "0x00": "disconnect", "0x01": "encryption_begin", - "0x02": "login_plugin_response" - } + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" + }, + "type": "varint" } ] }, @@ -1115,268 +953,396 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", + "compress": "packet_compress", + "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_compress": [ "container", [ { - "name": "entityId", + "name": "threshold", "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_disconnect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "reason", + "type": "string" } ] ], - "packet_spawn_entity_weather": [ + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" + "name": "serverId", + "type": "string" }, { - "name": "y", - "type": "f64" + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "z", - "type": "f64" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_spawn_entity_living": [ + "packet_login_plugin_request": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", + "name": "messageId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "channel", + "type": "string" }, { - "name": "yaw", - "type": "i8" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_success": [ + "container", + [ { - "name": "pitch", - "type": "i8" + "name": "uuid", + "type": "string" }, { - "name": "headPitch", - "type": "i8" - }, + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "velocity", - "type": "vec3i16" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" + }, + "type": "varint" + } + ] }, { - "name": "metadata", - "type": "entityMetadata" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "encryption_begin": "packet_encryption_begin", + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" + } + } + ] } ] ], - "packet_spawn_entity_painting": [ + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" - }, - { - "name": "location", - "type": "position" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "direction", - "type": "u8" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_named_entity_spawn": [ + "packet_login_plugin_response": [ "container", [ { - "name": "entityId", + "name": "messageId", "type": "varint" }, { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + "name": "data", + "type": [ + "option", + "restBuffer" + ] + } + ] + ], + "packet_login_start": [ + "container", + [ { - "name": "yaw", - "type": "i8" - }, + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "packet": [ + "container", + [ { - "name": "pitch", - "type": "i8" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "nbt_query_response", + "0x1e": "explosion", + "0x1f": "unload_chunk", + "0x20": "game_state_change", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "login", + "0x26": "map", + "0x27": "entity", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "vehicle_move", + "0x2c": "open_sign_entity", + "0x2d": "craft_recipe_response", + "0x2e": "abilities", + "0x2f": "combat_event", + "0x30": "player_info", + "0x31": "face_player", + "0x32": "position", + "0x33": "bed", + "0x34": "unlock_recipes", + "0x35": "entity_destroy", + "0x36": "remove_entity_effect", + "0x37": "resource_pack_send", + "0x38": "respawn", + "0x39": "entity_head_rotation", + "0x3a": "select_advancement_tab", + "0x3b": "world_border", + "0x3c": "camera", + "0x3d": "held_item_slot", + "0x3e": "scoreboard_display_objective", + "0x3f": "entity_metadata", + "0x40": "attach_entity", + "0x41": "entity_velocity", + "0x42": "entity_equipment", + "0x43": "experience", + "0x44": "update_health", + "0x45": "scoreboard_objective", + "0x46": "set_passengers", + "0x47": "teams", + "0x48": "scoreboard_score", + "0x49": "spawn_position", + "0x4a": "update_time", + "0x4b": "title", + "0x4c": "stop_sound", + "0x4d": "sound_effect", + "0x4e": "playerlist_header", + "0x4f": "collect", + "0x50": "entity_teleport", + "0x51": "advancements", + "0x52": "entity_update_attributes", + "0x53": "entity_effect", + "0x54": "declare_recipes", + "0x55": "tags" + }, + "type": "varint" + } + ] }, { - "name": "metadata", - "type": "entityMetadata" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_animation": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "flags", + "type": "i8" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ + "name": "flyingSpeed", + "type": "f32" + }, { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "walkingSpeed", + "type": "f32" } ] ], @@ -1442,23 +1408,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1469,10 +1435,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1589,7 +1555,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1597,29 +1563,34 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" + "name": "entityId", + "type": "i32" }, { - "name": "action", - "type": "u8" + "name": "vehicleId", + "type": "i32" + } + ] + ], + "packet_bed": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "location", + "type": "position" } ] ], @@ -1644,6 +1615,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1674,11 +1662,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1688,11 +1676,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1702,11 +1690,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1716,11 +1704,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1730,176 +1718,193 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ - "container", - [ - { - "name": "difficulty", - "type": "u8" - } - ] - ], - "packet_tab_complete": [ + "packet_camera": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", - "type": "varint" - }, - { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "name": "cameraId", + "type": "varint" } ] ], - "packet_declare_commands": [ + "packet_chat": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] + "name": "message", + "type": "string" }, { - "name": "rootIndex", - "type": "varint" + "name": "position", + "type": "i8" } ] ], - "packet_face_player": [ + "packet_close_window": [ "container", [ { - "name": "feet_eyes", + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "collectorEntityId", + "type": "varint" }, { - "name": "y", - "type": "f64" + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_combat_event": [ + "container", + [ + { + "name": "event", + "type": "varint" }, { - "name": "z", - "type": "f64" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "isEntity", - "type": "bool" + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] }, { "name": "entityId", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "entity_feet_eyes", + "name": "message", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "string" - }, - "default": "void" + "2": "string" + } } ] } ] ], - "packet_nbt_query_response": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" } ] ], - "packet_chat": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "message", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "position", - "type": "i8" + "name": "recipe", + "type": "string" } ] ], - "packet_multi_block_change": [ + "packet_custom_payload": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "channel", + "type": "string" }, { - "name": "chunkZ", - "type": "i32" + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "records", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { @@ -1908,16 +1913,121 @@ "container", [ { - "name": "horizontalPos", - "type": "u8" + "name": "recipeId", + "type": "string" }, { - "name": "y", - "type": "u8" + "name": "type", + "type": "string" }, { - "name": "blockId", - "type": "varint" + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_special_armordye": "void", + "crafting_special_banneraddpattern": "void", + "crafting_special_bannerduplicate": "void", + "crafting_special_bookcloning": "void", + "crafting_special_firework_rocket": "void", + "crafting_special_firework_star": "void", + "crafting_special_firework_star_fade": "void", + "crafting_special_mapcloning": "void", + "crafting_special_mapextending": "void", + "crafting_special_repairitem": "void", + "crafting_special_shielddecoration": "void", + "crafting_special_shulkerboxcoloring": "void", + "crafting_special_tippedarrow": "void", + "smelting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ] + } + } + ] } ] ] @@ -1926,197 +2036,291 @@ } ] ], - "packet_transaction": [ + "packet_difficulty": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, + "name": "difficulty", + "type": "u8" + } + ] + ], + "packet_entity": [ + "container", + [ { - "name": "accepted", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_close_window": [ + "packet_entity_destroy": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_open_window": [ + "packet_entity_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "inventoryType", - "type": "string" + "name": "effectId", + "type": "i8" }, { - "name": "windowTitle", - "type": "string" + "name": "amplifier", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "duration", + "type": "varint" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "hideParticles", + "type": "i8" } ] ], - "packet_window_items": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "slot", + "type": "varint" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "property", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "value", - "type": "i16" + "name": "headYaw", + "type": "i8" } ] ], - "packet_set_slot": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", + "name": "entityId", + "type": "varint" + }, + { + "name": "yaw", "type": "i8" }, { - "name": "slot", - "type": "i16" + "name": "pitch", + "type": "i8" }, { - "name": "item", - "type": "slot" + "name": "onGround", + "type": "bool" } ] ], - "packet_set_cooldown": [ + "packet_entity_metadata": [ "container", [ { - "name": "itemID", + "name": "entityId", "type": "varint" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_custom_payload": [ + "packet_entity_move_look": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_named_sound_effect": [ + "packet_entity_status": [ "container", [ { - "name": "soundName", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "soundCategory", + "name": "entityStatus", + "type": "i8" + } + ] + ], + "packet_entity_teleport": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] + } + ] + ], + "packet_entity_velocity": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_status": [ + "packet_experience": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "experienceBar", + "type": "f32" }, { - "name": "entityStatus", - "type": "i8" + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -2179,153 +2383,94 @@ } ] ], - "packet_unload_chunk": [ + "packet_face_player": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "feet_eyes", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ - "container", - [ - { - "name": "reason", - "type": "u8" + "name": "x", + "type": "f64" }, { - "name": "gameMode", - "type": "f32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_map_chunk": [ - "container", - [ - { - "name": "x", - "type": "i32" + "name": "y", + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "groundUp", + "name": "isEntity", "type": "bool" }, { - "name": "bitMap", - "type": "varint" - }, - { - "name": "chunkData", + "name": "entityId", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } } ] }, { - "name": "blockEntities", + "name": "entity_feet_eyes", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "nbt" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] } ] ], - "packet_world_event": [ + "packet_game_state_change": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "reason", + "type": "u8" }, { - "name": "global", - "type": "bool" + "name": "gameMode", + "type": "f32" } ] ], - "packet_world_particles": [ + "packet_held_item_slot": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "particles", - "type": "i32" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -2424,10 +2569,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2437,10 +2582,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2450,10 +2595,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2463,84 +2608,121 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "z", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "groundUp", + "type": "bool" }, { - "name": "dZ", - "type": "i16" + "name": "bitMap", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "chunkX", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "chunkZ", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_named_entity_spawn": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "dZ", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "yaw", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "pitch", - "type": "i8" + "name": "y", + "type": "f64" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -2551,37 +2733,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2590,102 +2771,57 @@ } ] ], - "packet_open_sign_entity": [ - "container", - [ - { - "name": "location", - "type": "position" - } - ] - ], - "packet_craft_recipe_response": [ + "packet_nbt_query_response": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "transactionId", + "type": "varint" }, { - "name": "recipe", - "type": "string" + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "event", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "inventoryType", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { - "name": "message", + "name": "entityId", "type": [ "switch", { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -2699,14 +2835,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2783,37 +2919,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -2825,6 +2961,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -2858,7 +3007,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -2866,77 +3015,20 @@ "type": "varint" }, { - "name": "location", - "type": "position" - } - ] - ], - "packet_unlock_recipes": [ - "container", - [ - { - "name": "action", - "type": "varint" - }, - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "filteringCraftable", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "filteringSmeltable", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "dY", + "type": "i16" }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -2987,223 +3079,329 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ + { + "name": "name", + "type": "string" + }, { "name": "action", - "type": "varint" + "type": "i8" }, { - "name": "radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "0": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "x", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "new_radius", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "1": "void" + } } ] - }, + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ { - "name": "speed", + "name": "id", "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } + "option", + "string" ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "itemID", + "type": "varint" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_passengers": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "warning_time", + "name": "passengers", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] + } + ] + ], + "packet_set_slot": [ + "container", + [ + { + "name": "windowId", + "type": "i8" }, { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_camera": [ + "packet_sound_effect": [ "container", [ { - "name": "cameraId", + "name": "soundId", + "type": "varint" + }, + { + "name": "soundCategory", "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_held_item_slot": [ + "packet_spawn_entity": [ "container", [ { - "name": "slot", + "name": "entityId", + "type": "varint" + }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_scoreboard_display_objective": [ + "packet_spawn_entity_experience_orb": [ "container", [ { - "name": "position", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "name", - "type": "string" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_metadata": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "velocity", + "type": "vec3i16" + }, { "name": "metadata", "type": "entityMetadata" } ] ], - "packet_attach_entity": [ + "packet_spawn_entity_painting": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "vehicleId", - "type": "i32" - } - ] - ], - "packet_entity_velocity": [ - "container", - [ + "name": "entityUUID", + "type": "UUID" + }, { - "name": "entityId", + "name": "title", "type": "varint" }, { - "name": "velocity", - "type": "vec3i16" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_weather": [ "container", [ { @@ -3211,109 +3409,159 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "item", - "type": "slot" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_experience": [ + "packet_spawn_position": [ "container", [ { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" - }, - { - "name": "totalExperience", - "type": "varint" + "name": "location", + "type": "position" } ] ], - "packet_update_health": [ + "packet_statistics": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_scoreboard_objective": [ + "packet_stop_sound": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "action", + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "2": "string", + "3": "string" + } } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "passengers", + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], + "packet_tags": [ + "container", + [ + { + "name": "blockTags", + "type": "tags" + }, + { + "name": "itemTags", + "type": "tags" + }, + { + "name": "fluidTags", + "type": "tags" + } + ] + ], "packet_teams": [ "container", [ @@ -3331,11 +3579,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3345,11 +3593,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3359,11 +3607,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3373,11 +3621,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3387,11 +3635,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3401,6 +3649,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3423,8 +3672,7 @@ "type": "string" } ] - }, - "default": "void" + } } ] }, @@ -3434,79 +3682,44 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - }, - { - "name": "suffix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" + "0": "string", + "2": "string" + } + } + ] }, { - "name": "value", + "name": "suffix", "type": [ "switch", { - "compareTo": "action", + "compareTo": "mode", + "default": "void", "fields": { - "1": "void" - }, - "default": "varint" + "0": "string", + "2": "string" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3523,12 +3736,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3538,10 +3751,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3551,10 +3764,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3564,77 +3777,146 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_stop_sound": [ + "packet_transaction": [ "container", [ { - "name": "flags", + "name": "windowId", "type": "i8" }, { - "name": "source", + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + } + ] + ], + "packet_unlock_recipes": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "filteringSmeltable", + "type": "bool" + }, + { + "name": "recipes1", "type": [ - "switch", + "array", { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" + "countType": "varint", + "type": "string" } ] }, { - "name": "sound", + "name": "recipes2", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "action", + "default": "void", "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "soundCategory", + "name": "food", "type": "varint" }, + { + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_time": [ + "container", + [ + { + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", + "name": "yaw", "type": "f32" }, { @@ -3643,294 +3925,228 @@ } ] ], - "packet_playerlist_header": [ + "packet_window_items": [ "container", [ { - "name": "header", - "type": "string" + "name": "windowId", + "type": "u8" }, { - "name": "footer", - "type": "string" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_collect": [ + "packet_world_border": [ "container", [ { - "name": "collectedEntityId", + "name": "action", "type": "varint" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] }, { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "x", - "type": "f64" + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "y", - "type": "f64" + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "z", - "type": "f64" + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_update_attributes": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] }, { - "name": "properties", + "name": "warning_blocks", "type": [ - "array", + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], - "packet_select_advancement_tab": [ + "packet_world_particles": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + "name": "particleId", + "type": "i32" + }, { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "recipeId", - "type": "string" - }, - { - "name": "type", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "crafting_special_armordye": "void", - "crafting_special_bookcloning": "void", - "crafting_special_mapcloning": "void", - "crafting_special_mapextending": "void", - "crafting_special_firework_rocket": "void", - "crafting_special_firework_star": "void", - "crafting_special_firework_star_fade": "void", - "crafting_special_repairitem": "void", - "crafting_special_tippedarrow": "void", - "crafting_special_bannerduplicate": "void", - "crafting_special_banneraddpattern": "void", - "crafting_special_shielddecoration": "void", - "crafting_special_shulkerboxcoloring": "void", - "smelting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ] - } - } - ] - } - ] - ] + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" } ] } @@ -3960,24 +4176,11 @@ ] ] } - ], - "packet_tags": [ - "container", - [ - { - "name": "blockTags", - "type": "tags" - }, - { - "name": "itemTags", - "type": "tags" - }, - { - "name": "fluidTags", - "type": "tags" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -3986,95 +4189,52 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "nbt_query_response", - "0x1e": "explosion", - "0x1f": "unload_chunk", - "0x20": "game_state_change", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "login", - "0x26": "map", - "0x27": "entity", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "vehicle_move", - "0x2c": "open_sign_entity", - "0x2d": "craft_recipe_response", - "0x2e": "abilities", - "0x2f": "combat_event", - "0x30": "player_info", - "0x31": "face_player", - "0x32": "position", - "0x33": "bed", - "0x34": "unlock_recipes", - "0x35": "entity_destroy", - "0x36": "remove_entity_effect", - "0x37": "resource_pack_send", - "0x38": "respawn", - "0x39": "entity_head_rotation", - "0x3a": "select_advancement_tab", - "0x3b": "world_border", - "0x3c": "camera", - "0x3d": "held_item_slot", - "0x3e": "scoreboard_display_objective", - "0x3f": "entity_metadata", - "0x40": "attach_entity", - "0x41": "entity_velocity", - "0x42": "entity_equipment", - "0x43": "experience", - "0x44": "update_health", - "0x45": "scoreboard_objective", - "0x46": "set_passengers", - "0x47": "teams", - "0x48": "scoreboard_score", - "0x49": "spawn_position", - "0x4a": "update_time", - "0x4b": "title", - "0x4c": "stop_sound", - "0x4d": "sound_effect", - "0x4e": "playerlist_header", - "0x4f": "collect", - "0x50": "entity_teleport", - "0x51": "advancements", - "0x52": "entity_update_attributes", - "0x53": "entity_effect", - "0x54": "declare_recipes", - "0x55": "tags" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "tab_complete", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "keep_alive", + "0x0f": "flying", + "0x10": "position", + "0x11": "position_look", + "0x12": "look", + "0x13": "vehicle_move", + "0x14": "steer_boat", + "0x15": "pick_item", + "0x16": "craft_recipe_request", + "0x17": "abilities", + "0x18": "block_dig", + "0x19": "entity_action", + "0x1a": "steer_vehicle", + "0x1b": "crafting_book_data", + "0x1c": "name_item", + "0x1d": "resource_pack_receive", + "0x1e": "advancement_tab", + "0x1f": "select_trade", + "0x20": "set_beacon_effect", + "0x21": "held_item_slot", + "0x22": "update_command_block", + "0x23": "update_command_block_minecart", + "0x24": "set_creative_slot", + "0x25": "update_structure_block", + "0x26": "update_sign", + "0x27": "arm_animation", + "0x28": "spectate", + "0x29": "block_place", + "0x2a": "use_item" + }, + "type": "varint" } ] }, @@ -4085,683 +4245,614 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", - "position": "packet_position", - "bed": "packet_bed", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags" + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_edit_book": [ + "packet_arm_animation": [ "container", [ - { - "name": "new_book", - "type": "slot" - }, - { - "name": "signing", - "type": "bool" - }, { "name": "hand", "type": "varint" } ] ], - "packet_query_entity_nbt": [ + "packet_block_dig": [ "container", [ { - "name": "transactionId", + "name": "status", "type": "varint" }, { - "name": "entityId", - "type": "varint" + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_pick_item": [ + "packet_block_place": [ "container", [ { - "name": "slot", + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "varint" + }, + { + "name": "hand", "type": "varint" + }, + { + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" } ] ], - "packet_name_item": [ + "packet_chat": [ "container", [ { - "name": "name", + "name": "message", "type": "string" } ] ], - "packet_select_trade": [ + "packet_client_command": [ "container", [ { - "name": "slot", + "name": "actionId", "type": "varint" } ] ], - "packet_set_beacon_effect": [ + "packet_close_window": [ "container", [ { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", - "type": "varint" + "name": "windowId", + "type": "u8" } ] ], - "packet_update_command_block": [ + "packet_craft_recipe_request": [ "container", [ { - "name": "location", - "type": "position" + "name": "windowId", + "type": "i8" }, { - "name": "command", + "name": "recipe", "type": "string" }, { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", - "type": "u8" + "name": "makeAll", + "type": "bool" } ] ], - "packet_update_command_block_minecart": [ + "packet_crafting_book_data": [ "container", [ { - "name": "entityId", + "name": "type", "type": "varint" }, { - "name": "command", - "type": "string" - }, - { - "name": "track_output", - "type": "bool" + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "smeltingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], - "packet_update_structure_block": [ + "packet_custom_payload": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", + "name": "channel", "type": "string" }, { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_edit_book": [ + "container", + [ { - "name": "size_y", - "type": "i8" + "name": "new_book", + "type": "slot" }, { - "name": "size_z", - "type": "i8" + "name": "signing", + "type": "bool" }, { - "name": "mirror", + "name": "hand", "type": "varint" - }, + } + ] + ], + "packet_enchant_item": [ + "container", + [ { - "name": "rotation", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "metadata", - "type": "string" - }, + "name": "enchantment", + "type": "i8" + } + ] + ], + "packet_entity_action": [ + "container", + [ { - "name": "integrity", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "seed", - "type": "varlong" + "name": "actionId", + "type": "varint" }, { - "name": "flags", - "type": "u8" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_flying": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "text", - "type": "string" + "name": "onGround", + "type": "bool" } ] ], - "packet_chat": [ + "packet_held_item_slot": [ "container", [ { - "name": "message", - "type": "string" + "name": "slotId", + "type": "i16" } ] ], - "packet_client_command": [ + "packet_keep_alive": [ "container", [ { - "name": "actionId", - "type": "varint" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_settings": [ + "packet_look": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" + "name": "yaw", + "type": "f32" }, { - "name": "chatFlags", - "type": "varint" + "name": "pitch", + "type": "f32" }, { - "name": "chatColors", + "name": "onGround", "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" } ] ], - "packet_transaction": [ + "packet_name_item": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ { - "name": "accepted", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], - "packet_enchant_item": [ + "packet_position": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "enchantment", - "type": "i8" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_position_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "x", + "type": "f64" }, { - "name": "slot", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "mouseButton", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "action", - "type": "i16" + "name": "yaw", + "type": "f32" }, { - "name": "mode", - "type": "i8" + "name": "pitch", + "type": "f32" }, { - "name": "item", - "type": "slot" + "name": "onGround", + "type": "bool" } ] ], - "packet_close_window": [ + "packet_query_block_nbt": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "transactionId", + "type": "varint" + }, + { + "name": "location", + "type": "position" } ] ], - "packet_custom_payload": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "channel", - "type": "string" + "name": "transactionId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "entityId", + "type": "varint" } ] ], - "packet_use_entity": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "result", "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] } ] ], - "packet_keep_alive": [ + "packet_select_trade": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "slot", + "type": "varint" } ] ], - "packet_position": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "x", - "type": "f64" + "name": "primary_effect", + "type": "varint" }, { - "name": "y", - "type": "f64" - }, + "name": "secondary_effect", + "type": "varint" + } + ] + ], + "packet_set_creative_slot": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "slot", + "type": "i16" }, { - "name": "onGround", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_position_look": [ + "packet_settings": [ "container", [ { - "name": "x", - "type": "f64" + "name": "locale", + "type": "string" }, { - "name": "y", - "type": "f64" + "name": "viewDistance", + "type": "i8" }, { - "name": "z", - "type": "f64" + "name": "chatFlags", + "type": "varint" }, { - "name": "yaw", - "type": "f32" + "name": "chatColors", + "type": "bool" }, { - "name": "pitch", - "type": "f32" + "name": "skinParts", + "type": "u8" }, { - "name": "onGround", - "type": "bool" + "name": "mainHand", + "type": "varint" } ] ], - "packet_look": [ + "packet_spectate": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "target", + "type": "UUID" } ] ], - "packet_flying": [ + "packet_steer_boat": [ "container", [ { - "name": "onGround", + "name": "leftPaddle", + "type": "bool" + }, + { + "name": "rightPaddle", "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_steer_vehicle": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "sideways", + "type": "f32" }, { - "name": "yaw", + "name": "forward", "type": "f32" }, { - "name": "pitch", - "type": "f32" + "name": "jump", + "type": "u8" } ] ], - "packet_steer_boat": [ + "packet_tab_complete": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "transactionId", + "type": "varint" }, { - "name": "rightPaddle", - "type": "bool" + "name": "text", + "type": "string" } ] ], - "packet_craft_recipe_request": [ + "packet_teleport_confirm": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" - }, - { - "name": "makeAll", - "type": "bool" + "name": "teleportId", + "type": "varint" } ] ], - "packet_abilities": [ + "packet_transaction": [ "container", [ { - "name": "flags", + "name": "windowId", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "action", + "type": "i16" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "accepted", + "type": "bool" } ] ], - "packet_block_dig": [ + "packet_update_command_block": [ "container", [ - { - "name": "status", - "type": "varint" - }, { "name": "location", "type": "position" }, { - "name": "face", - "type": "i8" + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_entity_action": [ + "packet_update_command_block_minecart": [ "container", [ { @@ -4769,182 +4860,172 @@ "type": "varint" }, { - "name": "actionId", - "type": "varint" + "name": "command", + "type": "string" }, { - "name": "jumpBoost", - "type": "varint" + "name": "track_output", + "type": "bool" } ] ], - "packet_steer_vehicle": [ + "packet_update_sign": [ "container", [ { - "name": "sideways", - "type": "f32" + "name": "location", + "type": "position" }, { - "name": "forward", - "type": "f32" + "name": "text1", + "type": "string" }, { - "name": "jump", - "type": "u8" - } - ] - ], - "packet_crafting_book_data": [ - "container", - [ + "name": "text2", + "type": "string" + }, { - "name": "type", - "type": "varint" + "name": "text3", + "type": "string" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "smeltingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "text4", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_update_structure_block": [ "container", [ { - "name": "result", + "name": "location", + "type": "position" + }, + { + "name": "action", "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + }, { - "name": "slotId", - "type": "i16" - } - ] - ], - "packet_set_creative_slot": [ - "container", - [ + "name": "mode", + "type": "varint" + }, { - "name": "slot", - "type": "i16" + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_update_sign": [ - "container", - [ - { - "name": "location", - "type": "position" + "name": "mirror", + "type": "varint" }, { - "name": "text1", - "type": "string" + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "location", - "type": "position" + "type": "varint" }, { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "hand", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -4957,138 +5038,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "tab_complete", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "keep_alive", - "0x0f": "flying", - "0x10": "position", - "0x11": "position_look", - "0x12": "look", - "0x13": "vehicle_move", - "0x14": "steer_boat", - "0x15": "pick_item", - "0x16": "craft_recipe_request", - "0x17": "abilities", - "0x18": "block_dig", - "0x19": "entity_action", - "0x1a": "steer_vehicle", - "0x1b": "crafting_book_data", - "0x1c": "name_item", - "0x1d": "resource_pack_receive", - "0x1e": "advancement_tab", - "0x1f": "select_trade", - "0x20": "set_beacon_effect", - "0x21": "held_item_slot", - "0x22": "update_command_block", - "0x23": "update_command_block_minecart", - "0x24": "set_creative_slot", - "0x25": "update_structure_block", - "0x26": "update_sign", - "0x27": "arm_animation", - "0x28": "spectate", - "0x29": "block_place", - "0x2a": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.13.2-pre2/protocol.json b/data/pc/1.13.2-pre2/protocol.json index 538490790..94ed15562 100644 --- a/data/pc/1.13.2-pre2/protocol.json +++ b/data/pc/1.13.2-pre2/protocol.json @@ -1,347 +1,80 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "11": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "20": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "27": [ - "container", - [ + "name": "has_command", + "signed": false, + "size": 1 + }, { - "name": "item", - "type": "slot" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "y", - "size": 12, - "signed": true + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "z", - "size": 26, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "extraNodeData", - "type": [ - "switch", + "name": "extraNodeData", + "type": [ + "switch", { "compareTo": "flags/command_node_type", "fields": { @@ -374,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -384,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -406,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -419,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -438,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -460,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -473,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -492,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -514,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -527,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -546,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -568,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -581,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -593,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -673,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -689,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -698,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -709,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -723,285 +456,374 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ "container", [ { - "name": "name", + "anon": true, "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": {} + "compareTo": "type" } ] } ] ] } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } - } - ] - } - ] - ] + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle" + } } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", { - "name": "time", - "type": "i64" + "compareTo": "particleId" } ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } - } - ] - } + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "11": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "20": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "27": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] ] - ] + } } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } - } - ] - }, + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" - } - } - ] + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - } + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, - "login": { + "handshaking": { "toClient": { "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_encryption_begin": [ + "packet": [ "container", [ { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": {}, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": {} } ] } ] - ], - "packet_success": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "uuid", - "type": "string" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] }, { - "name": "username", - "type": "string" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] } ] ], - "packet_compress": [ + "packet_legacy_server_list_ping": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "payload", + "type": "u8" } ] ], - "packet_login_plugin_request": [ + "packet_set_protocol": [ "container", [ { - "name": "messageId", + "name": "protocolVersion", "type": "varint" }, { - "name": "channel", + "name": "serverHost", "type": "string" }, { - "name": "data", - "type": "restBuffer" + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1010,14 +832,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -1028,69 +847,86 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", - "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_ping": [ "container", [ { - "name": "username", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_encryption_begin": [ + "packet_server_info": [ "container", [ { - "name": "sharedSecret", + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } } ] } ] ], - "packet_login_plugin_response": [ + "packet_ping": [ "container", [ { - "name": "messageId", - "type": "varint" - }, - { - "name": "data", - "type": [ - "option", - "restBuffer" - ] + "name": "time", + "type": "i64" } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1099,12 +935,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", + "0x00": "disconnect", "0x01": "encryption_begin", - "0x02": "login_plugin_response" - } + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" + }, + "type": "varint" } ] }, @@ -1115,268 +953,396 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", + "compress": "packet_compress", + "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_compress": [ "container", [ { - "name": "entityId", + "name": "threshold", "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_disconnect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "reason", + "type": "string" } ] ], - "packet_spawn_entity_weather": [ + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" + "name": "serverId", + "type": "string" }, { - "name": "y", - "type": "f64" + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "z", - "type": "f64" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_spawn_entity_living": [ + "packet_login_plugin_request": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", + "name": "messageId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "channel", + "type": "string" }, { - "name": "yaw", - "type": "i8" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_success": [ + "container", + [ { - "name": "pitch", - "type": "i8" + "name": "uuid", + "type": "string" }, { - "name": "headPitch", - "type": "i8" - }, + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "velocity", - "type": "vec3i16" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" + }, + "type": "varint" + } + ] }, { - "name": "metadata", - "type": "entityMetadata" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "encryption_begin": "packet_encryption_begin", + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" + } + } + ] } ] ], - "packet_spawn_entity_painting": [ + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" - }, - { - "name": "location", - "type": "position" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "direction", - "type": "u8" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_named_entity_spawn": [ + "packet_login_plugin_response": [ "container", [ { - "name": "entityId", + "name": "messageId", "type": "varint" }, { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + "name": "data", + "type": [ + "option", + "restBuffer" + ] + } + ] + ], + "packet_login_start": [ + "container", + [ { - "name": "yaw", - "type": "i8" - }, + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "packet": [ + "container", + [ { - "name": "pitch", - "type": "i8" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "nbt_query_response", + "0x1e": "explosion", + "0x1f": "unload_chunk", + "0x20": "game_state_change", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "login", + "0x26": "map", + "0x27": "entity", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "vehicle_move", + "0x2c": "open_sign_entity", + "0x2d": "craft_recipe_response", + "0x2e": "abilities", + "0x2f": "combat_event", + "0x30": "player_info", + "0x31": "face_player", + "0x32": "position", + "0x33": "bed", + "0x34": "unlock_recipes", + "0x35": "entity_destroy", + "0x36": "remove_entity_effect", + "0x37": "resource_pack_send", + "0x38": "respawn", + "0x39": "entity_head_rotation", + "0x3a": "select_advancement_tab", + "0x3b": "world_border", + "0x3c": "camera", + "0x3d": "held_item_slot", + "0x3e": "scoreboard_display_objective", + "0x3f": "entity_metadata", + "0x40": "attach_entity", + "0x41": "entity_velocity", + "0x42": "entity_equipment", + "0x43": "experience", + "0x44": "update_health", + "0x45": "scoreboard_objective", + "0x46": "set_passengers", + "0x47": "teams", + "0x48": "scoreboard_score", + "0x49": "spawn_position", + "0x4a": "update_time", + "0x4b": "title", + "0x4c": "stop_sound", + "0x4d": "sound_effect", + "0x4e": "playerlist_header", + "0x4f": "collect", + "0x50": "entity_teleport", + "0x51": "advancements", + "0x52": "entity_update_attributes", + "0x53": "entity_effect", + "0x54": "declare_recipes", + "0x55": "tags" + }, + "type": "varint" + } + ] }, { - "name": "metadata", - "type": "entityMetadata" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_animation": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "flags", + "type": "i8" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ + "name": "flyingSpeed", + "type": "f32" + }, { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "walkingSpeed", + "type": "f32" } ] ], @@ -1442,23 +1408,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1469,10 +1435,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1589,7 +1555,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1597,29 +1563,34 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" + "name": "entityId", + "type": "i32" }, { - "name": "action", - "type": "u8" + "name": "vehicleId", + "type": "i32" + } + ] + ], + "packet_bed": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "location", + "type": "position" } ] ], @@ -1644,6 +1615,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1674,11 +1662,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1688,11 +1676,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1702,11 +1690,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1716,11 +1704,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1730,176 +1718,193 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ - "container", - [ - { - "name": "difficulty", - "type": "u8" - } - ] - ], - "packet_tab_complete": [ + "packet_camera": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", - "type": "varint" - }, - { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "name": "cameraId", + "type": "varint" } ] ], - "packet_declare_commands": [ + "packet_chat": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] + "name": "message", + "type": "string" }, { - "name": "rootIndex", - "type": "varint" + "name": "position", + "type": "i8" } ] ], - "packet_face_player": [ + "packet_close_window": [ "container", [ { - "name": "feet_eyes", + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "collectorEntityId", + "type": "varint" }, { - "name": "y", - "type": "f64" + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_combat_event": [ + "container", + [ + { + "name": "event", + "type": "varint" }, { - "name": "z", - "type": "f64" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "isEntity", - "type": "bool" + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] }, { "name": "entityId", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "entity_feet_eyes", + "name": "message", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "string" - }, - "default": "void" + "2": "string" + } } ] } ] ], - "packet_nbt_query_response": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" } ] ], - "packet_chat": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "message", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "position", - "type": "i8" + "name": "recipe", + "type": "string" } ] ], - "packet_multi_block_change": [ + "packet_custom_payload": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "channel", + "type": "string" }, { - "name": "chunkZ", - "type": "i32" + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "records", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { @@ -1908,16 +1913,121 @@ "container", [ { - "name": "horizontalPos", - "type": "u8" + "name": "recipeId", + "type": "string" }, { - "name": "y", - "type": "u8" + "name": "type", + "type": "string" }, { - "name": "blockId", - "type": "varint" + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_special_armordye": "void", + "crafting_special_banneraddpattern": "void", + "crafting_special_bannerduplicate": "void", + "crafting_special_bookcloning": "void", + "crafting_special_firework_rocket": "void", + "crafting_special_firework_star": "void", + "crafting_special_firework_star_fade": "void", + "crafting_special_mapcloning": "void", + "crafting_special_mapextending": "void", + "crafting_special_repairitem": "void", + "crafting_special_shielddecoration": "void", + "crafting_special_shulkerboxcoloring": "void", + "crafting_special_tippedarrow": "void", + "smelting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ] + } + } + ] } ] ] @@ -1926,197 +2036,291 @@ } ] ], - "packet_transaction": [ + "packet_difficulty": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, + "name": "difficulty", + "type": "u8" + } + ] + ], + "packet_entity": [ + "container", + [ { - "name": "accepted", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_close_window": [ + "packet_entity_destroy": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_open_window": [ + "packet_entity_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "inventoryType", - "type": "string" + "name": "effectId", + "type": "i8" }, { - "name": "windowTitle", - "type": "string" + "name": "amplifier", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "duration", + "type": "varint" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "hideParticles", + "type": "i8" } ] ], - "packet_window_items": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "slot", + "type": "varint" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "property", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "value", - "type": "i16" + "name": "headYaw", + "type": "i8" } ] ], - "packet_set_slot": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", + "name": "entityId", + "type": "varint" + }, + { + "name": "yaw", "type": "i8" }, { - "name": "slot", - "type": "i16" + "name": "pitch", + "type": "i8" }, { - "name": "item", - "type": "slot" + "name": "onGround", + "type": "bool" } ] ], - "packet_set_cooldown": [ + "packet_entity_metadata": [ "container", [ { - "name": "itemID", + "name": "entityId", "type": "varint" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_custom_payload": [ + "packet_entity_move_look": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_named_sound_effect": [ + "packet_entity_status": [ "container", [ { - "name": "soundName", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "soundCategory", + "name": "entityStatus", + "type": "i8" + } + ] + ], + "packet_entity_teleport": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] + } + ] + ], + "packet_entity_velocity": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_status": [ + "packet_experience": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "experienceBar", + "type": "f32" }, { - "name": "entityStatus", - "type": "i8" + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -2179,153 +2383,94 @@ } ] ], - "packet_unload_chunk": [ + "packet_face_player": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "feet_eyes", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ - "container", - [ - { - "name": "reason", - "type": "u8" + "name": "x", + "type": "f64" }, { - "name": "gameMode", - "type": "f32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_map_chunk": [ - "container", - [ - { - "name": "x", - "type": "i32" + "name": "y", + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "groundUp", + "name": "isEntity", "type": "bool" }, { - "name": "bitMap", - "type": "varint" - }, - { - "name": "chunkData", + "name": "entityId", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } } ] }, { - "name": "blockEntities", + "name": "entity_feet_eyes", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "nbt" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] } ] ], - "packet_world_event": [ + "packet_game_state_change": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "reason", + "type": "u8" }, { - "name": "global", - "type": "bool" + "name": "gameMode", + "type": "f32" } ] ], - "packet_world_particles": [ + "packet_held_item_slot": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "particles", - "type": "i32" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -2424,10 +2569,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2437,10 +2582,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2450,10 +2595,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2463,84 +2608,121 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "z", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "groundUp", + "type": "bool" }, { - "name": "dZ", - "type": "i16" + "name": "bitMap", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "chunkX", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "chunkZ", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_named_entity_spawn": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "dZ", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "yaw", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "pitch", - "type": "i8" + "name": "y", + "type": "f64" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -2551,37 +2733,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2590,102 +2771,57 @@ } ] ], - "packet_open_sign_entity": [ - "container", - [ - { - "name": "location", - "type": "position" - } - ] - ], - "packet_craft_recipe_response": [ + "packet_nbt_query_response": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "transactionId", + "type": "varint" }, { - "name": "recipe", - "type": "string" + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "event", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "inventoryType", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { - "name": "message", + "name": "entityId", "type": [ "switch", { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -2699,14 +2835,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2783,37 +2919,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -2825,6 +2961,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -2858,7 +3007,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -2866,77 +3015,20 @@ "type": "varint" }, { - "name": "location", - "type": "position" - } - ] - ], - "packet_unlock_recipes": [ - "container", - [ - { - "name": "action", - "type": "varint" - }, - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "filteringCraftable", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "filteringSmeltable", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "dY", + "type": "i16" }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -2987,223 +3079,329 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ + { + "name": "name", + "type": "string" + }, { "name": "action", - "type": "varint" + "type": "i8" }, { - "name": "radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "0": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "x", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "new_radius", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "1": "void" + } } ] - }, + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ { - "name": "speed", + "name": "id", "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } + "option", + "string" ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "itemID", + "type": "varint" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_passengers": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "warning_time", + "name": "passengers", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] + } + ] + ], + "packet_set_slot": [ + "container", + [ + { + "name": "windowId", + "type": "i8" }, { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_camera": [ + "packet_sound_effect": [ "container", [ { - "name": "cameraId", + "name": "soundId", + "type": "varint" + }, + { + "name": "soundCategory", "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_held_item_slot": [ + "packet_spawn_entity": [ "container", [ { - "name": "slot", + "name": "entityId", + "type": "varint" + }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_scoreboard_display_objective": [ + "packet_spawn_entity_experience_orb": [ "container", [ { - "name": "position", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "name", - "type": "string" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_metadata": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "velocity", + "type": "vec3i16" + }, { "name": "metadata", "type": "entityMetadata" } ] ], - "packet_attach_entity": [ + "packet_spawn_entity_painting": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "vehicleId", - "type": "i32" - } - ] - ], - "packet_entity_velocity": [ - "container", - [ + "name": "entityUUID", + "type": "UUID" + }, { - "name": "entityId", + "name": "title", "type": "varint" }, { - "name": "velocity", - "type": "vec3i16" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_weather": [ "container", [ { @@ -3211,109 +3409,159 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "item", - "type": "slot" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_experience": [ + "packet_spawn_position": [ "container", [ { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" - }, - { - "name": "totalExperience", - "type": "varint" + "name": "location", + "type": "position" } ] ], - "packet_update_health": [ + "packet_statistics": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_scoreboard_objective": [ + "packet_stop_sound": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "action", + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "2": "string", + "3": "string" + } } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "passengers", + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], + "packet_tags": [ + "container", + [ + { + "name": "blockTags", + "type": "tags" + }, + { + "name": "itemTags", + "type": "tags" + }, + { + "name": "fluidTags", + "type": "tags" + } + ] + ], "packet_teams": [ "container", [ @@ -3331,11 +3579,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3345,11 +3593,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3359,11 +3607,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3373,11 +3621,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3387,11 +3635,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3401,6 +3649,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3423,8 +3672,7 @@ "type": "string" } ] - }, - "default": "void" + } } ] }, @@ -3434,79 +3682,44 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - }, - { - "name": "suffix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" + "0": "string", + "2": "string" + } + } + ] }, { - "name": "value", + "name": "suffix", "type": [ "switch", { - "compareTo": "action", + "compareTo": "mode", + "default": "void", "fields": { - "1": "void" - }, - "default": "varint" + "0": "string", + "2": "string" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3523,12 +3736,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3538,10 +3751,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3551,10 +3764,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3564,77 +3777,146 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_stop_sound": [ + "packet_transaction": [ "container", [ { - "name": "flags", + "name": "windowId", "type": "i8" }, { - "name": "source", + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + } + ] + ], + "packet_unlock_recipes": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "filteringSmeltable", + "type": "bool" + }, + { + "name": "recipes1", "type": [ - "switch", + "array", { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" + "countType": "varint", + "type": "string" } ] }, { - "name": "sound", + "name": "recipes2", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "action", + "default": "void", "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "soundCategory", + "name": "food", "type": "varint" }, + { + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_time": [ + "container", + [ + { + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", + "name": "yaw", "type": "f32" }, { @@ -3643,294 +3925,228 @@ } ] ], - "packet_playerlist_header": [ + "packet_window_items": [ "container", [ { - "name": "header", - "type": "string" + "name": "windowId", + "type": "u8" }, { - "name": "footer", - "type": "string" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_collect": [ + "packet_world_border": [ "container", [ { - "name": "collectedEntityId", + "name": "action", "type": "varint" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] }, { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "x", - "type": "f64" + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "y", - "type": "f64" + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "z", - "type": "f64" + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_update_attributes": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] }, { - "name": "properties", + "name": "warning_blocks", "type": [ - "array", + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], - "packet_select_advancement_tab": [ + "packet_world_particles": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + "name": "particleId", + "type": "i32" + }, { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "recipeId", - "type": "string" - }, - { - "name": "type", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "crafting_special_armordye": "void", - "crafting_special_bookcloning": "void", - "crafting_special_mapcloning": "void", - "crafting_special_mapextending": "void", - "crafting_special_firework_rocket": "void", - "crafting_special_firework_star": "void", - "crafting_special_firework_star_fade": "void", - "crafting_special_repairitem": "void", - "crafting_special_tippedarrow": "void", - "crafting_special_bannerduplicate": "void", - "crafting_special_banneraddpattern": "void", - "crafting_special_shielddecoration": "void", - "crafting_special_shulkerboxcoloring": "void", - "smelting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ] - } - } - ] - } - ] - ] + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" } ] } @@ -3960,24 +4176,11 @@ ] ] } - ], - "packet_tags": [ - "container", - [ - { - "name": "blockTags", - "type": "tags" - }, - { - "name": "itemTags", - "type": "tags" - }, - { - "name": "fluidTags", - "type": "tags" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -3986,95 +4189,52 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "nbt_query_response", - "0x1e": "explosion", - "0x1f": "unload_chunk", - "0x20": "game_state_change", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "login", - "0x26": "map", - "0x27": "entity", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "vehicle_move", - "0x2c": "open_sign_entity", - "0x2d": "craft_recipe_response", - "0x2e": "abilities", - "0x2f": "combat_event", - "0x30": "player_info", - "0x31": "face_player", - "0x32": "position", - "0x33": "bed", - "0x34": "unlock_recipes", - "0x35": "entity_destroy", - "0x36": "remove_entity_effect", - "0x37": "resource_pack_send", - "0x38": "respawn", - "0x39": "entity_head_rotation", - "0x3a": "select_advancement_tab", - "0x3b": "world_border", - "0x3c": "camera", - "0x3d": "held_item_slot", - "0x3e": "scoreboard_display_objective", - "0x3f": "entity_metadata", - "0x40": "attach_entity", - "0x41": "entity_velocity", - "0x42": "entity_equipment", - "0x43": "experience", - "0x44": "update_health", - "0x45": "scoreboard_objective", - "0x46": "set_passengers", - "0x47": "teams", - "0x48": "scoreboard_score", - "0x49": "spawn_position", - "0x4a": "update_time", - "0x4b": "title", - "0x4c": "stop_sound", - "0x4d": "sound_effect", - "0x4e": "playerlist_header", - "0x4f": "collect", - "0x50": "entity_teleport", - "0x51": "advancements", - "0x52": "entity_update_attributes", - "0x53": "entity_effect", - "0x54": "declare_recipes", - "0x55": "tags" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "tab_complete", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "keep_alive", + "0x0f": "flying", + "0x10": "position", + "0x11": "position_look", + "0x12": "look", + "0x13": "vehicle_move", + "0x14": "steer_boat", + "0x15": "pick_item", + "0x16": "craft_recipe_request", + "0x17": "abilities", + "0x18": "block_dig", + "0x19": "entity_action", + "0x1a": "steer_vehicle", + "0x1b": "crafting_book_data", + "0x1c": "name_item", + "0x1d": "resource_pack_receive", + "0x1e": "advancement_tab", + "0x1f": "select_trade", + "0x20": "set_beacon_effect", + "0x21": "held_item_slot", + "0x22": "update_command_block", + "0x23": "update_command_block_minecart", + "0x24": "set_creative_slot", + "0x25": "update_structure_block", + "0x26": "update_sign", + "0x27": "arm_animation", + "0x28": "spectate", + "0x29": "block_place", + "0x2a": "use_item" + }, + "type": "varint" } ] }, @@ -4085,683 +4245,614 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", - "position": "packet_position", - "bed": "packet_bed", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags" + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_edit_book": [ + "packet_arm_animation": [ "container", [ - { - "name": "new_book", - "type": "slot" - }, - { - "name": "signing", - "type": "bool" - }, { "name": "hand", "type": "varint" } ] ], - "packet_query_entity_nbt": [ + "packet_block_dig": [ "container", [ { - "name": "transactionId", + "name": "status", "type": "varint" }, { - "name": "entityId", - "type": "varint" + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_pick_item": [ + "packet_block_place": [ "container", [ { - "name": "slot", + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "varint" + }, + { + "name": "hand", "type": "varint" + }, + { + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" } ] ], - "packet_name_item": [ + "packet_chat": [ "container", [ { - "name": "name", + "name": "message", "type": "string" } ] ], - "packet_select_trade": [ + "packet_client_command": [ "container", [ { - "name": "slot", + "name": "actionId", "type": "varint" } ] ], - "packet_set_beacon_effect": [ + "packet_close_window": [ "container", [ { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", - "type": "varint" + "name": "windowId", + "type": "u8" } ] ], - "packet_update_command_block": [ + "packet_craft_recipe_request": [ "container", [ { - "name": "location", - "type": "position" + "name": "windowId", + "type": "i8" }, { - "name": "command", + "name": "recipe", "type": "string" }, { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", - "type": "u8" + "name": "makeAll", + "type": "bool" } ] ], - "packet_update_command_block_minecart": [ + "packet_crafting_book_data": [ "container", [ { - "name": "entityId", + "name": "type", "type": "varint" }, { - "name": "command", - "type": "string" - }, - { - "name": "track_output", - "type": "bool" + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "smeltingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], - "packet_update_structure_block": [ + "packet_custom_payload": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", + "name": "channel", "type": "string" }, { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_edit_book": [ + "container", + [ { - "name": "size_y", - "type": "i8" + "name": "new_book", + "type": "slot" }, { - "name": "size_z", - "type": "i8" + "name": "signing", + "type": "bool" }, { - "name": "mirror", + "name": "hand", "type": "varint" - }, + } + ] + ], + "packet_enchant_item": [ + "container", + [ { - "name": "rotation", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "metadata", - "type": "string" - }, + "name": "enchantment", + "type": "i8" + } + ] + ], + "packet_entity_action": [ + "container", + [ { - "name": "integrity", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "seed", - "type": "varlong" + "name": "actionId", + "type": "varint" }, { - "name": "flags", - "type": "u8" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_flying": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "text", - "type": "string" + "name": "onGround", + "type": "bool" } ] ], - "packet_chat": [ + "packet_held_item_slot": [ "container", [ { - "name": "message", - "type": "string" + "name": "slotId", + "type": "i16" } ] ], - "packet_client_command": [ + "packet_keep_alive": [ "container", [ { - "name": "actionId", - "type": "varint" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_settings": [ + "packet_look": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" + "name": "yaw", + "type": "f32" }, { - "name": "chatFlags", - "type": "varint" + "name": "pitch", + "type": "f32" }, { - "name": "chatColors", + "name": "onGround", "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" } ] ], - "packet_transaction": [ + "packet_name_item": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ { - "name": "accepted", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], - "packet_enchant_item": [ + "packet_position": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "enchantment", - "type": "i8" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_position_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "x", + "type": "f64" }, { - "name": "slot", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "mouseButton", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "action", - "type": "i16" + "name": "yaw", + "type": "f32" }, { - "name": "mode", - "type": "i8" + "name": "pitch", + "type": "f32" }, { - "name": "item", - "type": "slot" + "name": "onGround", + "type": "bool" } ] ], - "packet_close_window": [ + "packet_query_block_nbt": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "transactionId", + "type": "varint" + }, + { + "name": "location", + "type": "position" } ] ], - "packet_custom_payload": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "channel", - "type": "string" + "name": "transactionId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "entityId", + "type": "varint" } ] ], - "packet_use_entity": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "result", "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] } ] ], - "packet_keep_alive": [ + "packet_select_trade": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "slot", + "type": "varint" } ] ], - "packet_position": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "x", - "type": "f64" + "name": "primary_effect", + "type": "varint" }, { - "name": "y", - "type": "f64" - }, + "name": "secondary_effect", + "type": "varint" + } + ] + ], + "packet_set_creative_slot": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "slot", + "type": "i16" }, { - "name": "onGround", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_position_look": [ + "packet_settings": [ "container", [ { - "name": "x", - "type": "f64" + "name": "locale", + "type": "string" }, { - "name": "y", - "type": "f64" + "name": "viewDistance", + "type": "i8" }, { - "name": "z", - "type": "f64" + "name": "chatFlags", + "type": "varint" }, { - "name": "yaw", - "type": "f32" + "name": "chatColors", + "type": "bool" }, { - "name": "pitch", - "type": "f32" + "name": "skinParts", + "type": "u8" }, { - "name": "onGround", - "type": "bool" + "name": "mainHand", + "type": "varint" } ] ], - "packet_look": [ + "packet_spectate": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "target", + "type": "UUID" } ] ], - "packet_flying": [ + "packet_steer_boat": [ "container", [ { - "name": "onGround", + "name": "leftPaddle", + "type": "bool" + }, + { + "name": "rightPaddle", "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_steer_vehicle": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "sideways", + "type": "f32" }, { - "name": "yaw", + "name": "forward", "type": "f32" }, { - "name": "pitch", - "type": "f32" + "name": "jump", + "type": "u8" } ] ], - "packet_steer_boat": [ + "packet_tab_complete": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "transactionId", + "type": "varint" }, { - "name": "rightPaddle", - "type": "bool" + "name": "text", + "type": "string" } ] ], - "packet_craft_recipe_request": [ + "packet_teleport_confirm": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" - }, - { - "name": "makeAll", - "type": "bool" + "name": "teleportId", + "type": "varint" } ] ], - "packet_abilities": [ + "packet_transaction": [ "container", [ { - "name": "flags", + "name": "windowId", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "action", + "type": "i16" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "accepted", + "type": "bool" } ] ], - "packet_block_dig": [ + "packet_update_command_block": [ "container", [ - { - "name": "status", - "type": "varint" - }, { "name": "location", "type": "position" }, { - "name": "face", - "type": "i8" + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_entity_action": [ + "packet_update_command_block_minecart": [ "container", [ { @@ -4769,182 +4860,172 @@ "type": "varint" }, { - "name": "actionId", - "type": "varint" + "name": "command", + "type": "string" }, { - "name": "jumpBoost", - "type": "varint" + "name": "track_output", + "type": "bool" } ] ], - "packet_steer_vehicle": [ + "packet_update_sign": [ "container", [ { - "name": "sideways", - "type": "f32" + "name": "location", + "type": "position" }, { - "name": "forward", - "type": "f32" + "name": "text1", + "type": "string" }, { - "name": "jump", - "type": "u8" - } - ] - ], - "packet_crafting_book_data": [ - "container", - [ + "name": "text2", + "type": "string" + }, { - "name": "type", - "type": "varint" + "name": "text3", + "type": "string" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "smeltingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "text4", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_update_structure_block": [ "container", [ { - "name": "result", + "name": "location", + "type": "position" + }, + { + "name": "action", "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + }, { - "name": "slotId", - "type": "i16" - } - ] - ], - "packet_set_creative_slot": [ - "container", - [ + "name": "mode", + "type": "varint" + }, { - "name": "slot", - "type": "i16" + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_update_sign": [ - "container", - [ - { - "name": "location", - "type": "position" + "name": "mirror", + "type": "varint" }, { - "name": "text1", - "type": "string" + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "location", - "type": "position" + "type": "varint" }, { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "hand", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -4957,138 +5038,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "tab_complete", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "keep_alive", - "0x0f": "flying", - "0x10": "position", - "0x11": "position_look", - "0x12": "look", - "0x13": "vehicle_move", - "0x14": "steer_boat", - "0x15": "pick_item", - "0x16": "craft_recipe_request", - "0x17": "abilities", - "0x18": "block_dig", - "0x19": "entity_action", - "0x1a": "steer_vehicle", - "0x1b": "crafting_book_data", - "0x1c": "name_item", - "0x1d": "resource_pack_receive", - "0x1e": "advancement_tab", - "0x1f": "select_trade", - "0x20": "set_beacon_effect", - "0x21": "held_item_slot", - "0x22": "update_command_block", - "0x23": "update_command_block_minecart", - "0x24": "set_creative_slot", - "0x25": "update_structure_block", - "0x26": "update_sign", - "0x27": "arm_animation", - "0x28": "spectate", - "0x29": "block_place", - "0x2a": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.13.2/protocol.json b/data/pc/1.13.2/protocol.json index 1798dca7e..692209245 100644 --- a/data/pc/1.13.2/protocol.json +++ b/data/pc/1.13.2/protocol.json @@ -1,347 +1,80 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "11": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "20": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "27": [ - "container", - [ + "name": "has_command", + "signed": false, + "size": 1 + }, { - "name": "item", - "type": "slot" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "y", - "size": 12, - "signed": true + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "z", - "size": 26, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "extraNodeData", - "type": [ - "switch", + "name": "extraNodeData", + "type": [ + "switch", { "compareTo": "flags/command_node_type", "fields": { @@ -374,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -384,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -406,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -419,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -438,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -460,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -473,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -492,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -514,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -527,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -546,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -568,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -581,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -593,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -673,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -689,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -698,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -709,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -723,83 +456,288 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ "container", [ { - "name": "name", + "anon": true, "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": {} + "compareTo": "type" } ] } ] ] } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "11": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "20": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "27": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ "mapper", { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } + "mappings": {}, + "type": "varint" } ] }, @@ -809,39 +747,83 @@ "switch", { "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + "fields": {} } ] } ] ] } - } - }, - "status": { - "toClient": { + }, + "toServer": { "types": { - "packet_server_info": [ + "packet": [ "container", [ { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", [ { - "name": "time", - "type": "i64" + "name": "payload", + "type": "u8" } ] ], + "packet_set_protocol": [ + "container", + [ + { + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" + } + ] + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -850,11 +832,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -865,21 +847,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -890,6 +864,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -898,11 +885,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -913,13 +900,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -927,6 +927,52 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -963,45 +1009,40 @@ } ] ], - "packet_success": [ + "packet_login_plugin_request": [ "container", [ { - "name": "uuid", - "type": "string" + "name": "messageId", + "type": "varint" }, { - "name": "username", + "name": "channel", "type": "string" - } - ] - ], - "packet_compress": [ - "container", - [ + }, { - "name": "threshold", - "type": "varint" + "name": "data", + "type": "restBuffer" } ] ], - "packet_login_plugin_request": [ + "packet_success": [ "container", [ { - "name": "messageId", - "type": "varint" - }, - { - "name": "channel", + "name": "uuid", "type": "string" }, { - "name": "data", - "type": "restBuffer" + "name": "username", + "type": "string" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1010,14 +1051,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", + "0x00": "login_start", "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" - } + "0x02": "login_plugin_response" + }, + "type": "varint" } ] }, @@ -1028,29 +1067,14 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -1091,36 +1115,12 @@ } ] ], - "packet": [ + "packet_login_start": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" - } - } - ] + "name": "username", + "type": "string" } ] ] @@ -1130,253 +1130,219 @@ "play": { "toClient": { "types": { - "packet_spawn_entity": [ + "packet": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] - ], - "packet_spawn_entity_weather": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - } - ] - ], - "packet_spawn_entity_living": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "velocity", - "type": "vec3i16" - }, - { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_spawn_entity_painting": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" - }, - { - "name": "location", - "type": "position" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "nbt_query_response", + "0x1e": "explosion", + "0x1f": "unload_chunk", + "0x20": "game_state_change", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "login", + "0x26": "map", + "0x27": "entity", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "vehicle_move", + "0x2c": "open_sign_entity", + "0x2d": "craft_recipe_response", + "0x2e": "abilities", + "0x2f": "combat_event", + "0x30": "player_info", + "0x31": "face_player", + "0x32": "position", + "0x33": "bed", + "0x34": "unlock_recipes", + "0x35": "entity_destroy", + "0x36": "remove_entity_effect", + "0x37": "resource_pack_send", + "0x38": "respawn", + "0x39": "entity_head_rotation", + "0x3a": "select_advancement_tab", + "0x3b": "world_border", + "0x3c": "camera", + "0x3d": "held_item_slot", + "0x3e": "scoreboard_display_objective", + "0x3f": "entity_metadata", + "0x40": "attach_entity", + "0x41": "entity_velocity", + "0x42": "entity_equipment", + "0x43": "experience", + "0x44": "update_health", + "0x45": "scoreboard_objective", + "0x46": "set_passengers", + "0x47": "teams", + "0x48": "scoreboard_score", + "0x49": "spawn_position", + "0x4a": "update_time", + "0x4b": "title", + "0x4c": "stop_sound", + "0x4d": "sound_effect", + "0x4e": "playerlist_header", + "0x4f": "collect", + "0x50": "entity_teleport", + "0x51": "advancements", + "0x52": "entity_update_attributes", + "0x53": "entity_effect", + "0x54": "declare_recipes", + "0x55": "tags" + }, + "type": "varint" + } + ] }, { - "name": "direction", - "type": "u8" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_named_entity_spawn": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "flags", "type": "i8" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "walkingSpeed", + "type": "f32" } ] ], @@ -1442,23 +1408,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1469,10 +1435,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1589,7 +1555,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1597,29 +1563,34 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" + "name": "entityId", + "type": "i32" }, { - "name": "action", - "type": "u8" + "name": "vehicleId", + "type": "i32" + } + ] + ], + "packet_bed": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "location", + "type": "position" } ] ], @@ -1644,6 +1615,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1674,11 +1662,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1688,11 +1676,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1702,11 +1690,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1716,11 +1704,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1730,176 +1718,193 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" + "name": "cameraId", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chat": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", - "type": "varint" + "name": "message", + "type": "string" }, { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "name": "position", + "type": "i8" } ] ], - "packet_declare_commands": [ + "packet_close_window": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] - }, - { - "name": "rootIndex", - "type": "varint" + "name": "windowId", + "type": "u8" } ] ], - "packet_face_player": [ + "packet_collect": [ "container", [ { - "name": "feet_eyes", + "name": "collectedEntityId", "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "collectorEntityId", + "type": "varint" }, { - "name": "y", - "type": "f64" + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_combat_event": [ + "container", + [ + { + "name": "event", + "type": "varint" }, { - "name": "z", - "type": "f64" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "isEntity", - "type": "bool" + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] }, { "name": "entityId", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "entity_feet_eyes", + "name": "message", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "string" - }, - "default": "void" + "2": "string" + } } ] } ] ], - "packet_nbt_query_response": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" } ] ], - "packet_chat": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "message", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "position", - "type": "i8" + "name": "recipe", + "type": "string" } ] ], - "packet_multi_block_change": [ + "packet_custom_payload": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "channel", + "type": "string" }, { - "name": "chunkZ", - "type": "i32" + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "records", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { @@ -1908,16 +1913,121 @@ "container", [ { - "name": "horizontalPos", - "type": "u8" + "name": "recipeId", + "type": "string" }, { - "name": "y", - "type": "u8" + "name": "type", + "type": "string" }, { - "name": "blockId", - "type": "varint" + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_special_armordye": "void", + "crafting_special_banneraddpattern": "void", + "crafting_special_bannerduplicate": "void", + "crafting_special_bookcloning": "void", + "crafting_special_firework_rocket": "void", + "crafting_special_firework_star": "void", + "crafting_special_firework_star_fade": "void", + "crafting_special_mapcloning": "void", + "crafting_special_mapextending": "void", + "crafting_special_repairitem": "void", + "crafting_special_shielddecoration": "void", + "crafting_special_shulkerboxcoloring": "void", + "crafting_special_tippedarrow": "void", + "smelting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ] + } + } + ] } ] ] @@ -1926,197 +2036,291 @@ } ] ], - "packet_transaction": [ + "packet_difficulty": [ "container", [ { - "name": "windowId", + "name": "difficulty", + "type": "u8" + } + ] + ], + "packet_entity": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "packet_entity_effect": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "effectId", + "type": "i8" + }, + { + "name": "amplifier", + "type": "i8" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", "type": "i8" + } + ] + ], + "packet_entity_equipment": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "slot", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "inventoryType", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "windowTitle", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "pitch", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ - { - "name": "windowId", - "type": "i8" }, { - "name": "slot", + "name": "dZ", "type": "i16" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ + "name": "yaw", + "type": "i8" + }, { - "name": "itemID", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_status": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "data", - "type": "restBuffer" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_named_sound_effect": [ + "packet_entity_teleport": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_velocity": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -2179,153 +2383,94 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ + "packet_face_player": [ "container", [ { - "name": "reason", - "type": "u8" + "name": "feet_eyes", + "type": "varint" }, - { - "name": "gameMode", - "type": "f32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_map_chunk": [ - "container", - [ { "name": "x", - "type": "i32" + "type": "f64" }, { - "name": "z", - "type": "i32" + "name": "y", + "type": "f64" }, { - "name": "groundUp", - "type": "bool" + "name": "z", + "type": "f64" }, { - "name": "bitMap", - "type": "varint" + "name": "isEntity", + "type": "bool" }, { - "name": "chunkData", + "name": "entityId", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } } ] }, { - "name": "blockEntities", + "name": "entity_feet_eyes", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "nbt" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] } ] ], - "packet_world_event": [ + "packet_game_state_change": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "reason", + "type": "u8" }, { - "name": "global", - "type": "bool" + "name": "gameMode", + "type": "f32" } ] ], - "packet_world_particles": [ + "packet_held_item_slot": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "particles", - "type": "i32" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -2424,10 +2569,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2437,10 +2582,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2450,10 +2595,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2463,85 +2608,122 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "z", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "groundUp", + "type": "bool" }, { - "name": "dZ", - "type": "i16" + "name": "bitMap", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "yaw", - "type": "i8" + "name": "chunkX", + "type": "i32" }, { - "name": "pitch", - "type": "i8" + "name": "chunkZ", + "type": "i32" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_entity_look": [ + "packet_named_entity_spawn": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "playerUUID", + "type": "UUID" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "yaw", "type": "i8" @@ -2551,37 +2733,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2590,102 +2771,57 @@ } ] ], - "packet_open_sign_entity": [ - "container", - [ - { - "name": "location", - "type": "position" - } - ] - ], - "packet_craft_recipe_response": [ + "packet_nbt_query_response": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "transactionId", + "type": "varint" }, { - "name": "recipe", - "type": "string" + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "event", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "inventoryType", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { - "name": "message", + "name": "entityId", "type": [ "switch", { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -2699,14 +2835,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2783,37 +2919,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -2825,6 +2961,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -2858,7 +3007,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -2866,310 +3015,360 @@ "type": "varint" }, { - "name": "location", - "type": "position" + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_unlock_recipes": [ + "packet_remove_entity_effect": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "effectId", + "type": "i8" + } + ] + ], + "packet_resource_pack_send": [ + "container", + [ + { + "name": "url", + "type": "string" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "hash", + "type": "string" + } + ] + ], + "packet_respawn": [ + "container", + [ + { + "name": "dimension", + "type": "i32" }, { - "name": "smeltingBookOpen", - "type": "bool" + "name": "difficulty", + "type": "u8" }, { - "name": "filteringSmeltable", - "type": "bool" + "name": "gamemode", + "type": "u8" }, { - "name": "recipes1", + "name": "levelType", + "type": "string" + } + ] + ], + "packet_scoreboard_display_objective": [ + "container", + [ + { + "name": "position", + "type": "i8" + }, + { + "name": "name", + "type": "string" + } + ] + ], + "packet_scoreboard_objective": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "action", + "type": "i8" + }, + { + "name": "displayText", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "type", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "scoreName", + "type": "string" }, { - "name": "recipes2", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_entity_destroy": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "entityIds", + "name": "id", "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } + "option", + "string" ] } ] ], - "packet_remove_entity_effect": [ + "packet_set_cooldown": [ "container", [ { - "name": "entityId", + "name": "itemID", "type": "varint" }, { - "name": "effectId", - "type": "i8" + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_resource_pack_send": [ + "packet_set_passengers": [ "container", [ { - "name": "url", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "hash", - "type": "string" + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_respawn": [ + "packet_set_slot": [ "container", [ { - "name": "dimension", - "type": "i32" - }, - { - "name": "difficulty", - "type": "u8" + "name": "windowId", + "type": "i8" }, { - "name": "gamemode", - "type": "u8" + "name": "slot", + "type": "i16" }, { - "name": "levelType", - "type": "string" + "name": "item", + "type": "slot" } ] ], - "packet_entity_head_rotation": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", "type": "varint" }, { - "name": "headYaw", - "type": "i8" + "name": "soundCategory", + "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_world_border": [ + "packet_spawn_entity": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] + "name": "objectUUID", + "type": "UUID" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "type", + "type": "i8" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "x", + "type": "f64" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "y", + "type": "f64" }, { - "name": "new_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "z", + "type": "f64" }, { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "objectData", + "type": "i32" }, { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_camera": [ + "packet_spawn_entity_experience_orb": [ "container", [ { - "name": "cameraId", + "name": "entityId", "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_held_item_slot": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "slot", + "name": "entityId", + "type": "varint" + }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", "type": "i8" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + }, { - "name": "position", + "name": "pitch", "type": "i8" }, { - "name": "name", - "type": "string" - } - ] - ], - "packet_entity_metadata": [ - "container", - [ + "name": "headPitch", + "type": "i8" + }, { - "name": "entityId", - "type": "varint" + "name": "velocity", + "type": "vec3i16" }, { "name": "metadata", @@ -3177,33 +3376,32 @@ } ] ], - "packet_attach_entity": [ + "packet_spawn_entity_painting": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "vehicleId", - "type": "i32" - } - ] - ], - "packet_entity_velocity": [ - "container", - [ + "name": "entityUUID", + "type": "UUID" + }, { - "name": "entityId", + "name": "title", "type": "varint" }, { - "name": "velocity", - "type": "vec3i16" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_weather": [ "container", [ { @@ -3211,109 +3409,159 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "item", - "type": "slot" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_experience": [ + "packet_spawn_position": [ "container", [ { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" - }, - { - "name": "totalExperience", - "type": "varint" + "name": "location", + "type": "position" } ] ], - "packet_update_health": [ + "packet_statistics": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_scoreboard_objective": [ + "packet_stop_sound": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "action", + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "2": "string", + "3": "string" + } } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "passengers", + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], + "packet_tags": [ + "container", + [ + { + "name": "blockTags", + "type": "tags" + }, + { + "name": "itemTags", + "type": "tags" + }, + { + "name": "fluidTags", + "type": "tags" + } + ] + ], "packet_teams": [ "container", [ @@ -3331,11 +3579,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3345,11 +3593,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3359,11 +3607,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3373,11 +3621,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3387,11 +3635,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3401,11 +3649,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3415,11 +3663,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3429,6 +3677,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3438,75 +3687,39 @@ } ], "3": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + "array", + { + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3523,12 +3736,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3538,10 +3751,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3551,10 +3764,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3564,77 +3777,146 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_stop_sound": [ + "packet_transaction": [ "container", [ { - "name": "flags", + "name": "windowId", "type": "i8" }, { - "name": "source", + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + } + ] + ], + "packet_unlock_recipes": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "filteringSmeltable", + "type": "bool" + }, + { + "name": "recipes1", "type": [ - "switch", + "array", { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" + "countType": "varint", + "type": "string" } ] }, { - "name": "sound", + "name": "recipes2", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "action", + "default": "void", "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "soundCategory", + "name": "food", "type": "varint" }, + { + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_time": [ + "container", + [ + { + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", + "name": "yaw", "type": "f32" }, { @@ -3643,294 +3925,228 @@ } ] ], - "packet_playerlist_header": [ + "packet_window_items": [ "container", [ { - "name": "header", - "type": "string" + "name": "windowId", + "type": "u8" }, { - "name": "footer", - "type": "string" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_collect": [ + "packet_world_border": [ "container", [ { - "name": "collectedEntityId", + "name": "action", "type": "varint" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] }, { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "x", - "type": "f64" + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "y", - "type": "f64" + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "z", - "type": "f64" + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_update_attributes": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] }, { - "name": "properties", + "name": "warning_blocks", "type": [ - "array", + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], - "packet_select_advancement_tab": [ + "packet_world_particles": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + "name": "particleId", + "type": "i32" + }, { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "recipeId", - "type": "string" - }, - { - "name": "type", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "crafting_special_armordye": "void", - "crafting_special_bookcloning": "void", - "crafting_special_mapcloning": "void", - "crafting_special_mapextending": "void", - "crafting_special_firework_rocket": "void", - "crafting_special_firework_star": "void", - "crafting_special_firework_star_fade": "void", - "crafting_special_repairitem": "void", - "crafting_special_tippedarrow": "void", - "crafting_special_bannerduplicate": "void", - "crafting_special_banneraddpattern": "void", - "crafting_special_shielddecoration": "void", - "crafting_special_shulkerboxcoloring": "void", - "smelting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ] - } - } - ] - } - ] - ] + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" } ] } @@ -3960,24 +4176,11 @@ ] ] } - ], - "packet_tags": [ - "container", - [ - { - "name": "blockTags", - "type": "tags" - }, - { - "name": "itemTags", - "type": "tags" - }, - { - "name": "fluidTags", - "type": "tags" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -3986,95 +4189,52 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "nbt_query_response", - "0x1e": "explosion", - "0x1f": "unload_chunk", - "0x20": "game_state_change", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "login", - "0x26": "map", - "0x27": "entity", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "vehicle_move", - "0x2c": "open_sign_entity", - "0x2d": "craft_recipe_response", - "0x2e": "abilities", - "0x2f": "combat_event", - "0x30": "player_info", - "0x31": "face_player", - "0x32": "position", - "0x33": "bed", - "0x34": "unlock_recipes", - "0x35": "entity_destroy", - "0x36": "remove_entity_effect", - "0x37": "resource_pack_send", - "0x38": "respawn", - "0x39": "entity_head_rotation", - "0x3a": "select_advancement_tab", - "0x3b": "world_border", - "0x3c": "camera", - "0x3d": "held_item_slot", - "0x3e": "scoreboard_display_objective", - "0x3f": "entity_metadata", - "0x40": "attach_entity", - "0x41": "entity_velocity", - "0x42": "entity_equipment", - "0x43": "experience", - "0x44": "update_health", - "0x45": "scoreboard_objective", - "0x46": "set_passengers", - "0x47": "teams", - "0x48": "scoreboard_score", - "0x49": "spawn_position", - "0x4a": "update_time", - "0x4b": "title", - "0x4c": "stop_sound", - "0x4d": "sound_effect", - "0x4e": "playerlist_header", - "0x4f": "collect", - "0x50": "entity_teleport", - "0x51": "advancements", - "0x52": "entity_update_attributes", - "0x53": "entity_effect", - "0x54": "declare_recipes", - "0x55": "tags" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "tab_complete", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "keep_alive", + "0x0f": "flying", + "0x10": "position", + "0x11": "position_look", + "0x12": "look", + "0x13": "vehicle_move", + "0x14": "steer_boat", + "0x15": "pick_item", + "0x16": "craft_recipe_request", + "0x17": "abilities", + "0x18": "block_dig", + "0x19": "entity_action", + "0x1a": "steer_vehicle", + "0x1b": "crafting_book_data", + "0x1c": "name_item", + "0x1d": "resource_pack_receive", + "0x1e": "advancement_tab", + "0x1f": "select_trade", + "0x20": "set_beacon_effect", + "0x21": "held_item_slot", + "0x22": "update_command_block", + "0x23": "update_command_block_minecart", + "0x24": "set_creative_slot", + "0x25": "update_structure_block", + "0x26": "update_sign", + "0x27": "arm_animation", + "0x28": "spectate", + "0x29": "block_place", + "0x2a": "use_item" + }, + "type": "varint" } ] }, @@ -4085,683 +4245,614 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", - "position": "packet_position", - "bed": "packet_bed", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags" + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_edit_book": [ + "packet_arm_animation": [ "container", [ - { - "name": "new_book", - "type": "slot" - }, - { - "name": "signing", - "type": "bool" - }, { "name": "hand", "type": "varint" } ] ], - "packet_query_entity_nbt": [ + "packet_block_dig": [ "container", [ { - "name": "transactionId", + "name": "status", "type": "varint" }, { - "name": "entityId", - "type": "varint" + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_pick_item": [ + "packet_block_place": [ "container", [ { - "name": "slot", + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "varint" + }, + { + "name": "hand", "type": "varint" + }, + { + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" } ] ], - "packet_name_item": [ + "packet_chat": [ "container", [ { - "name": "name", + "name": "message", "type": "string" } ] ], - "packet_select_trade": [ + "packet_client_command": [ "container", [ { - "name": "slot", + "name": "actionId", "type": "varint" } ] ], - "packet_set_beacon_effect": [ + "packet_close_window": [ "container", [ { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", - "type": "varint" + "name": "windowId", + "type": "u8" } ] ], - "packet_update_command_block": [ + "packet_craft_recipe_request": [ "container", [ { - "name": "location", - "type": "position" + "name": "windowId", + "type": "i8" }, { - "name": "command", + "name": "recipe", "type": "string" }, { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", - "type": "u8" + "name": "makeAll", + "type": "bool" } ] ], - "packet_update_command_block_minecart": [ + "packet_crafting_book_data": [ "container", [ { - "name": "entityId", + "name": "type", "type": "varint" }, { - "name": "command", - "type": "string" - }, - { - "name": "track_output", - "type": "bool" + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "smeltingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], - "packet_update_structure_block": [ + "packet_custom_payload": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", + "name": "channel", "type": "string" }, { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_edit_book": [ + "container", + [ { - "name": "size_y", - "type": "i8" + "name": "new_book", + "type": "slot" }, { - "name": "size_z", - "type": "i8" + "name": "signing", + "type": "bool" }, { - "name": "mirror", + "name": "hand", "type": "varint" - }, + } + ] + ], + "packet_enchant_item": [ + "container", + [ { - "name": "rotation", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "metadata", - "type": "string" - }, + "name": "enchantment", + "type": "i8" + } + ] + ], + "packet_entity_action": [ + "container", + [ { - "name": "integrity", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "seed", - "type": "varlong" + "name": "actionId", + "type": "varint" }, { - "name": "flags", - "type": "u8" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_flying": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "text", - "type": "string" + "name": "onGround", + "type": "bool" } ] ], - "packet_chat": [ + "packet_held_item_slot": [ "container", [ { - "name": "message", - "type": "string" + "name": "slotId", + "type": "i16" } ] ], - "packet_client_command": [ + "packet_keep_alive": [ "container", [ { - "name": "actionId", - "type": "varint" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_settings": [ + "packet_look": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" + "name": "yaw", + "type": "f32" }, { - "name": "chatFlags", - "type": "varint" + "name": "pitch", + "type": "f32" }, { - "name": "chatColors", + "name": "onGround", "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" } ] ], - "packet_transaction": [ + "packet_name_item": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ { - "name": "accepted", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], - "packet_enchant_item": [ + "packet_position": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "enchantment", - "type": "i8" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_position_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "x", + "type": "f64" }, { - "name": "slot", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "mouseButton", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "action", - "type": "i16" + "name": "yaw", + "type": "f32" }, { - "name": "mode", - "type": "i8" + "name": "pitch", + "type": "f32" }, { - "name": "item", - "type": "slot" + "name": "onGround", + "type": "bool" } ] ], - "packet_close_window": [ + "packet_query_block_nbt": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "transactionId", + "type": "varint" + }, + { + "name": "location", + "type": "position" } ] ], - "packet_custom_payload": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "channel", - "type": "string" + "name": "transactionId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "entityId", + "type": "varint" } ] ], - "packet_use_entity": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "result", "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] } ] ], - "packet_keep_alive": [ + "packet_select_trade": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "slot", + "type": "varint" } ] ], - "packet_position": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "x", - "type": "f64" + "name": "primary_effect", + "type": "varint" }, { - "name": "y", - "type": "f64" - }, + "name": "secondary_effect", + "type": "varint" + } + ] + ], + "packet_set_creative_slot": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "slot", + "type": "i16" }, { - "name": "onGround", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_position_look": [ + "packet_settings": [ "container", [ { - "name": "x", - "type": "f64" + "name": "locale", + "type": "string" }, { - "name": "y", - "type": "f64" + "name": "viewDistance", + "type": "i8" }, { - "name": "z", - "type": "f64" + "name": "chatFlags", + "type": "varint" }, { - "name": "yaw", - "type": "f32" + "name": "chatColors", + "type": "bool" }, { - "name": "pitch", - "type": "f32" + "name": "skinParts", + "type": "u8" }, { - "name": "onGround", - "type": "bool" + "name": "mainHand", + "type": "varint" } ] ], - "packet_look": [ + "packet_spectate": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "target", + "type": "UUID" } ] ], - "packet_flying": [ + "packet_steer_boat": [ "container", [ { - "name": "onGround", + "name": "leftPaddle", + "type": "bool" + }, + { + "name": "rightPaddle", "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_steer_vehicle": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "sideways", + "type": "f32" }, { - "name": "yaw", + "name": "forward", "type": "f32" }, { - "name": "pitch", - "type": "f32" + "name": "jump", + "type": "u8" } ] ], - "packet_steer_boat": [ + "packet_tab_complete": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "transactionId", + "type": "varint" }, { - "name": "rightPaddle", - "type": "bool" + "name": "text", + "type": "string" } ] ], - "packet_craft_recipe_request": [ + "packet_teleport_confirm": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" - }, - { - "name": "makeAll", - "type": "bool" + "name": "teleportId", + "type": "varint" } ] ], - "packet_abilities": [ + "packet_transaction": [ "container", [ { - "name": "flags", + "name": "windowId", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "action", + "type": "i16" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "accepted", + "type": "bool" } ] ], - "packet_block_dig": [ + "packet_update_command_block": [ "container", [ - { - "name": "status", - "type": "varint" - }, { "name": "location", "type": "position" }, { - "name": "face", - "type": "i8" + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_entity_action": [ + "packet_update_command_block_minecart": [ "container", [ { @@ -4769,182 +4860,172 @@ "type": "varint" }, { - "name": "actionId", - "type": "varint" + "name": "command", + "type": "string" }, { - "name": "jumpBoost", - "type": "varint" + "name": "track_output", + "type": "bool" } ] ], - "packet_steer_vehicle": [ + "packet_update_sign": [ "container", [ { - "name": "sideways", - "type": "f32" + "name": "location", + "type": "position" }, { - "name": "forward", - "type": "f32" + "name": "text1", + "type": "string" }, { - "name": "jump", - "type": "u8" - } - ] - ], - "packet_crafting_book_data": [ - "container", - [ + "name": "text2", + "type": "string" + }, { - "name": "type", - "type": "varint" + "name": "text3", + "type": "string" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "smeltingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "text4", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_update_structure_block": [ "container", [ { - "name": "result", + "name": "location", + "type": "position" + }, + { + "name": "action", "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + }, { - "name": "slotId", - "type": "i16" - } - ] - ], - "packet_set_creative_slot": [ - "container", - [ + "name": "mode", + "type": "varint" + }, { - "name": "slot", - "type": "i16" + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_update_sign": [ - "container", - [ - { - "name": "location", - "type": "position" + "name": "mirror", + "type": "varint" }, { - "name": "text1", - "type": "string" + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "location", - "type": "position" + "type": "varint" }, { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "hand", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -4957,138 +5038,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "tab_complete", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "keep_alive", - "0x0f": "flying", - "0x10": "position", - "0x11": "position_look", - "0x12": "look", - "0x13": "vehicle_move", - "0x14": "steer_boat", - "0x15": "pick_item", - "0x16": "craft_recipe_request", - "0x17": "abilities", - "0x18": "block_dig", - "0x19": "entity_action", - "0x1a": "steer_vehicle", - "0x1b": "crafting_book_data", - "0x1c": "name_item", - "0x1d": "resource_pack_receive", - "0x1e": "advancement_tab", - "0x1f": "select_trade", - "0x20": "set_beacon_effect", - "0x21": "held_item_slot", - "0x22": "update_command_block", - "0x23": "update_command_block_minecart", - "0x24": "set_creative_slot", - "0x25": "update_structure_block", - "0x26": "update_sign", - "0x27": "arm_animation", - "0x28": "spectate", - "0x29": "block_place", - "0x2a": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.13/protocol.json b/data/pc/1.13/protocol.json index 1dda4850b..5bf07ff12 100644 --- a/data/pc/1.13/protocol.json +++ b/data/pc/1.13/protocol.json @@ -1,343 +1,80 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "itemId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "itemId", - "fields": { - "-1": "void" - }, - "default": [ - "container", - [ - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "11": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "20": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "27": [ - "container", - [ + "name": "has_command", + "signed": false, + "size": 1 + }, { - "name": "item", - "type": "slot" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "y", - "size": 12, - "signed": true + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "z", - "size": 26, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "extraNodeData", - "type": [ - "switch", + "name": "extraNodeData", + "type": [ + "switch", { "compareTo": "flags/command_node_type", "fields": { @@ -370,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -380,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -402,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -415,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -434,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -456,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -469,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -488,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -510,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -523,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -542,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -564,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -577,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -589,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -669,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -685,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -694,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -705,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -719,125 +456,274 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ "container", [ { - "name": "name", + "anon": true, "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": {} + "compareTo": "type" } ] } ] ] } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } - } - ] - }, + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "11": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "20": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "27": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "itemId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "itemId", + "default": [ + "container", + [ + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" } - } - ] + ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - } + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, - "status": { + "handshaking": { "toClient": { "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], "packet": [ "container", [ @@ -846,11 +732,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } + "mappings": {}, + "type": "varint" } ] }, @@ -860,10 +743,7 @@ "switch", { "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } + "fields": {} } ] } @@ -873,19 +753,6 @@ }, "toServer": { "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], "packet": [ "container", [ @@ -894,11 +761,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" } ] }, @@ -909,95 +776,153 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { - "packet_disconnect": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "reason", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_encryption_begin": [ + "packet_set_protocol": [ "container", [ { - "name": "serverId", + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", "type": "string" }, { - "name": "publicKey", + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" + } + ] + ] + } + } + }, + "status": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": { + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "server_info": "packet_server_info" + } } ] } ] ], - "packet_success": [ + "packet_ping": [ "container", [ { - "name": "uuid", - "type": "string" - }, - { - "name": "username", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_compress": [ + "packet_server_info": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "response", + "type": "string" } ] - ], - "packet_login_plugin_request": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "messageId", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" + } + ] }, { - "name": "channel", - "type": "string" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } + } + ] + } + ] + ], + "packet_ping": [ + "container", + [ { - "name": "data", - "type": "restBuffer" + "name": "time", + "type": "i64" } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1006,14 +931,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "disconnect", "0x01": "encryption_begin", "0x02": "success", "0x03": "compress", "0x04": "login_plugin_request" - } + }, + "type": "varint" } ] }, @@ -1024,26 +949,31 @@ { "compareTo": "name", "fields": { + "compress": "packet_compress", "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_compress": [ "container", [ { - "name": "username", + "name": "threshold", + "type": "varint" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", "type": "string" } ] @@ -1052,7 +982,11 @@ "container", [ { - "name": "sharedSecret", + "name": "serverId", + "type": "string" + }, + { + "name": "publicKey", "type": [ "buffer", { @@ -1071,22 +1005,40 @@ } ] ], - "packet_login_plugin_response": [ + "packet_login_plugin_request": [ "container", [ { "name": "messageId", "type": "varint" }, + { + "name": "channel", + "type": "string" + }, { "name": "data", - "type": [ - "option", - "restBuffer" - ] + "type": "restBuffer" } ] ], + "packet_success": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1095,12 +1047,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "login_start", "0x01": "encryption_begin", "0x02": "login_plugin_response" - } + }, + "type": "varint" } ] }, @@ -1111,268 +1063,282 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "x", - "type": "f64" - }, + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ], + "packet_login_plugin_response": [ + "container", + [ { - "name": "y", - "type": "f64" + "name": "messageId", + "type": "varint" }, { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] - ], - "packet_spawn_entity_weather": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_spawn_entity_living": [ + "packet_login_start": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "velocity", - "type": "vec3i16" - }, - { - "name": "metadata", - "type": "entityMetadata" + "name": "username", + "type": "string" } ] - ], - "packet_spawn_entity_painting": [ + ] + } + } + }, + "play": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" - }, - { - "name": "location", - "type": "position" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "nbt_query_response", + "0x1e": "explosion", + "0x1f": "unload_chunk", + "0x20": "game_state_change", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "login", + "0x26": "map", + "0x27": "entity", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "vehicle_move", + "0x2c": "open_sign_entity", + "0x2d": "craft_recipe_response", + "0x2e": "abilities", + "0x2f": "combat_event", + "0x30": "player_info", + "0x31": "face_player", + "0x32": "position", + "0x33": "bed", + "0x34": "unlock_recipes", + "0x35": "entity_destroy", + "0x36": "remove_entity_effect", + "0x37": "resource_pack_send", + "0x38": "respawn", + "0x39": "entity_head_rotation", + "0x3a": "select_advancement_tab", + "0x3b": "world_border", + "0x3c": "camera", + "0x3d": "held_item_slot", + "0x3e": "scoreboard_display_objective", + "0x3f": "entity_metadata", + "0x40": "attach_entity", + "0x41": "entity_velocity", + "0x42": "entity_equipment", + "0x43": "experience", + "0x44": "update_health", + "0x45": "scoreboard_objective", + "0x46": "set_passengers", + "0x47": "teams", + "0x48": "scoreboard_score", + "0x49": "spawn_position", + "0x4a": "update_time", + "0x4b": "title", + "0x4c": "stop_sound", + "0x4d": "sound_effect", + "0x4e": "playerlist_header", + "0x4f": "collect", + "0x50": "entity_teleport", + "0x51": "advancements", + "0x52": "entity_update_attributes", + "0x53": "entity_effect", + "0x54": "declare_recipes", + "0x55": "tags" + }, + "type": "varint" + } + ] }, { - "name": "direction", - "type": "u8" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_named_entity_spawn": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "flags", "type": "i8" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "walkingSpeed", + "type": "f32" } ] ], @@ -1438,23 +1404,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1465,10 +1431,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1585,7 +1551,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1593,29 +1559,34 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" + "name": "entityId", + "type": "i32" }, { - "name": "action", - "type": "u8" + "name": "vehicleId", + "type": "i32" + } + ] + ], + "packet_bed": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "location", + "type": "position" } ] ], @@ -1640,6 +1611,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1670,11 +1658,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1684,11 +1672,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1698,11 +1686,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1712,11 +1700,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1726,176 +1714,193 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" + "name": "cameraId", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chat": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", - "type": "varint" + "name": "message", + "type": "string" }, { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "name": "position", + "type": "i8" } ] ], - "packet_declare_commands": [ + "packet_close_window": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] - }, - { - "name": "rootIndex", - "type": "varint" + "name": "windowId", + "type": "u8" } ] ], - "packet_face_player": [ + "packet_collect": [ "container", [ { - "name": "feet_eyes", + "name": "collectedEntityId", "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "collectorEntityId", + "type": "varint" }, { - "name": "y", - "type": "f64" + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_combat_event": [ + "container", + [ + { + "name": "event", + "type": "varint" }, { - "name": "z", - "type": "f64" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "isEntity", - "type": "bool" + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] }, { "name": "entityId", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "entity_feet_eyes", + "name": "message", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "string" - }, - "default": "void" + "2": "string" + } } ] } ] ], - "packet_nbt_query_response": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" } ] ], - "packet_chat": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "message", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "position", - "type": "i8" + "name": "recipe", + "type": "string" } ] ], - "packet_multi_block_change": [ + "packet_custom_payload": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "channel", + "type": "string" }, { - "name": "chunkZ", - "type": "i32" + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "records", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { @@ -1904,16 +1909,121 @@ "container", [ { - "name": "horizontalPos", - "type": "u8" + "name": "recipeId", + "type": "string" }, { - "name": "y", - "type": "u8" + "name": "type", + "type": "string" }, { - "name": "blockId", - "type": "varint" + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_special_armordye": "void", + "crafting_special_banneraddpattern": "void", + "crafting_special_bannerduplicate": "void", + "crafting_special_bookcloning": "void", + "crafting_special_firework_rocket": "void", + "crafting_special_firework_star": "void", + "crafting_special_firework_star_fade": "void", + "crafting_special_mapcloning": "void", + "crafting_special_mapextending": "void", + "crafting_special_repairitem": "void", + "crafting_special_shielddecoration": "void", + "crafting_special_shulkerboxcoloring": "void", + "crafting_special_tippedarrow": "void", + "smelting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ] + } + } + ] } ] ] @@ -1922,197 +2032,291 @@ } ] ], - "packet_transaction": [ + "packet_difficulty": [ "container", [ { - "name": "windowId", + "name": "difficulty", + "type": "u8" + } + ] + ], + "packet_entity": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "packet_entity_effect": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "effectId", + "type": "i8" + }, + { + "name": "amplifier", + "type": "i8" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", "type": "i8" + } + ] + ], + "packet_entity_equipment": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "slot", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "inventoryType", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "windowTitle", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "pitch", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ - { - "name": "windowId", - "type": "i8" }, { - "name": "slot", + "name": "dZ", "type": "i16" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ + "name": "yaw", + "type": "i8" + }, { - "name": "itemID", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_status": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "data", - "type": "restBuffer" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_named_sound_effect": [ + "packet_entity_teleport": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_velocity": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -2175,153 +2379,94 @@ } ] ], - "packet_unload_chunk": [ + "packet_face_player": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "feet_eyes", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ - "container", - [ - { - "name": "reason", - "type": "u8" + "name": "x", + "type": "f64" }, { - "name": "gameMode", - "type": "f32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_map_chunk": [ - "container", - [ - { - "name": "x", - "type": "i32" + "name": "y", + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "groundUp", + "name": "isEntity", "type": "bool" }, { - "name": "bitMap", - "type": "varint" - }, - { - "name": "chunkData", + "name": "entityId", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } } ] }, { - "name": "blockEntities", + "name": "entity_feet_eyes", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "nbt" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] } ] ], - "packet_world_event": [ + "packet_game_state_change": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "reason", + "type": "u8" }, { - "name": "global", - "type": "bool" + "name": "gameMode", + "type": "f32" } ] ], - "packet_world_particles": [ + "packet_held_item_slot": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "particles", - "type": "i32" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -2420,10 +2565,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2433,10 +2578,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2446,10 +2591,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2459,85 +2604,122 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "z", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "groundUp", + "type": "bool" }, { - "name": "dZ", - "type": "i16" + "name": "bitMap", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "yaw", - "type": "i8" + "name": "chunkX", + "type": "i32" }, { - "name": "pitch", - "type": "i8" + "name": "chunkZ", + "type": "i32" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_entity_look": [ + "packet_named_entity_spawn": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "playerUUID", + "type": "UUID" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "yaw", "type": "i8" @@ -2547,37 +2729,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2586,102 +2767,57 @@ } ] ], - "packet_open_sign_entity": [ - "container", - [ - { - "name": "location", - "type": "position" - } - ] - ], - "packet_craft_recipe_response": [ + "packet_nbt_query_response": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "transactionId", + "type": "varint" }, { - "name": "recipe", - "type": "string" + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "event", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "inventoryType", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { - "name": "message", + "name": "entityId", "type": [ "switch", { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -2695,14 +2831,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2779,37 +2915,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -2821,6 +2957,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -2854,7 +3003,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -2862,310 +3011,360 @@ "type": "varint" }, { - "name": "location", - "type": "position" + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_unlock_recipes": [ + "packet_remove_entity_effect": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "effectId", + "type": "i8" + } + ] + ], + "packet_resource_pack_send": [ + "container", + [ + { + "name": "url", + "type": "string" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "hash", + "type": "string" + } + ] + ], + "packet_respawn": [ + "container", + [ + { + "name": "dimension", + "type": "i32" }, { - "name": "smeltingBookOpen", - "type": "bool" + "name": "difficulty", + "type": "u8" }, { - "name": "filteringSmeltable", - "type": "bool" + "name": "gamemode", + "type": "u8" }, { - "name": "recipes1", + "name": "levelType", + "type": "string" + } + ] + ], + "packet_scoreboard_display_objective": [ + "container", + [ + { + "name": "position", + "type": "i8" + }, + { + "name": "name", + "type": "string" + } + ] + ], + "packet_scoreboard_objective": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "action", + "type": "i8" + }, + { + "name": "displayText", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "type", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "scoreName", + "type": "string" }, { - "name": "recipes2", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_entity_destroy": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "entityIds", + "name": "id", "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } + "option", + "string" ] } ] ], - "packet_remove_entity_effect": [ + "packet_set_cooldown": [ "container", [ { - "name": "entityId", + "name": "itemID", "type": "varint" }, { - "name": "effectId", - "type": "i8" + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_resource_pack_send": [ + "packet_set_passengers": [ "container", [ { - "name": "url", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "hash", - "type": "string" + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_respawn": [ + "packet_set_slot": [ "container", [ { - "name": "dimension", - "type": "i32" - }, - { - "name": "difficulty", - "type": "u8" + "name": "windowId", + "type": "i8" }, { - "name": "gamemode", - "type": "u8" + "name": "slot", + "type": "i16" }, { - "name": "levelType", - "type": "string" + "name": "item", + "type": "slot" } ] ], - "packet_entity_head_rotation": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", "type": "varint" }, { - "name": "headYaw", - "type": "i8" + "name": "soundCategory", + "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_world_border": [ + "packet_spawn_entity": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] + "name": "objectUUID", + "type": "UUID" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "type", + "type": "i8" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "x", + "type": "f64" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "y", + "type": "f64" }, { - "name": "new_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "z", + "type": "f64" }, { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "objectData", + "type": "i32" }, { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_camera": [ + "packet_spawn_entity_experience_orb": [ "container", [ { - "name": "cameraId", + "name": "entityId", "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_held_item_slot": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "slot", + "name": "entityId", + "type": "varint" + }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", "type": "i8" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + }, { - "name": "position", + "name": "pitch", "type": "i8" }, { - "name": "name", - "type": "string" - } - ] - ], - "packet_entity_metadata": [ - "container", - [ + "name": "headPitch", + "type": "i8" + }, { - "name": "entityId", - "type": "varint" + "name": "velocity", + "type": "vec3i16" }, { "name": "metadata", @@ -3173,33 +3372,32 @@ } ] ], - "packet_attach_entity": [ + "packet_spawn_entity_painting": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "vehicleId", - "type": "i32" - } - ] - ], - "packet_entity_velocity": [ - "container", - [ + "name": "entityUUID", + "type": "UUID" + }, { - "name": "entityId", + "name": "title", "type": "varint" }, { - "name": "velocity", - "type": "vec3i16" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_weather": [ "container", [ { @@ -3207,109 +3405,159 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "item", - "type": "slot" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_experience": [ + "packet_spawn_position": [ "container", [ { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" - }, - { - "name": "totalExperience", - "type": "varint" + "name": "location", + "type": "position" } ] ], - "packet_update_health": [ + "packet_statistics": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_scoreboard_objective": [ + "packet_stop_sound": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "action", + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "2": "string", + "3": "string" + } } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "passengers", + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], + "packet_tags": [ + "container", + [ + { + "name": "blockTags", + "type": "tags" + }, + { + "name": "itemTags", + "type": "tags" + }, + { + "name": "fluidTags", + "type": "tags" + } + ] + ], "packet_teams": [ "container", [ @@ -3327,11 +3575,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3341,11 +3589,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3355,11 +3603,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3369,11 +3617,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3383,11 +3631,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3397,11 +3645,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3411,11 +3659,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3425,6 +3673,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3432,77 +3681,41 @@ "countType": "varint", "type": "string" } - ], - "3": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + ], + "3": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3519,12 +3732,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3534,10 +3747,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3547,10 +3760,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3560,77 +3773,146 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_stop_sound": [ + "packet_transaction": [ "container", [ { - "name": "flags", + "name": "windowId", "type": "i8" }, { - "name": "source", + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + } + ] + ], + "packet_unlock_recipes": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "filteringSmeltable", + "type": "bool" + }, + { + "name": "recipes1", "type": [ - "switch", + "array", { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" + "countType": "varint", + "type": "string" } ] }, { - "name": "sound", + "name": "recipes2", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "action", + "default": "void", "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "soundCategory", + "name": "food", "type": "varint" }, + { + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_time": [ + "container", + [ + { + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", + "name": "yaw", "type": "f32" }, { @@ -3639,294 +3921,228 @@ } ] ], - "packet_playerlist_header": [ + "packet_window_items": [ "container", [ { - "name": "header", - "type": "string" + "name": "windowId", + "type": "u8" }, { - "name": "footer", - "type": "string" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_collect": [ + "packet_world_border": [ "container", [ { - "name": "collectedEntityId", + "name": "action", "type": "varint" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] }, { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "x", - "type": "f64" + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "y", - "type": "f64" + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "z", - "type": "f64" + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_update_attributes": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] }, { - "name": "properties", + "name": "warning_blocks", "type": [ - "array", + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], - "packet_select_advancement_tab": [ + "packet_world_particles": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + "name": "particleId", + "type": "i32" + }, { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "recipeId", - "type": "string" - }, - { - "name": "type", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "crafting_special_armordye": "void", - "crafting_special_bookcloning": "void", - "crafting_special_mapcloning": "void", - "crafting_special_mapextending": "void", - "crafting_special_firework_rocket": "void", - "crafting_special_firework_star": "void", - "crafting_special_firework_star_fade": "void", - "crafting_special_repairitem": "void", - "crafting_special_tippedarrow": "void", - "crafting_special_bannerduplicate": "void", - "crafting_special_banneraddpattern": "void", - "crafting_special_shielddecoration": "void", - "crafting_special_shulkerboxcoloring": "void", - "smelting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ] - } - } - ] - } - ] - ] + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" } ] } @@ -3956,24 +4172,11 @@ ] ] } - ], - "packet_tags": [ - "container", - [ - { - "name": "blockTags", - "type": "tags" - }, - { - "name": "itemTags", - "type": "tags" - }, - { - "name": "fluidTags", - "type": "tags" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -3982,95 +4185,52 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "nbt_query_response", - "0x1e": "explosion", - "0x1f": "unload_chunk", - "0x20": "game_state_change", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "login", - "0x26": "map", - "0x27": "entity", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "vehicle_move", - "0x2c": "open_sign_entity", - "0x2d": "craft_recipe_response", - "0x2e": "abilities", - "0x2f": "combat_event", - "0x30": "player_info", - "0x31": "face_player", - "0x32": "position", - "0x33": "bed", - "0x34": "unlock_recipes", - "0x35": "entity_destroy", - "0x36": "remove_entity_effect", - "0x37": "resource_pack_send", - "0x38": "respawn", - "0x39": "entity_head_rotation", - "0x3a": "select_advancement_tab", - "0x3b": "world_border", - "0x3c": "camera", - "0x3d": "held_item_slot", - "0x3e": "scoreboard_display_objective", - "0x3f": "entity_metadata", - "0x40": "attach_entity", - "0x41": "entity_velocity", - "0x42": "entity_equipment", - "0x43": "experience", - "0x44": "update_health", - "0x45": "scoreboard_objective", - "0x46": "set_passengers", - "0x47": "teams", - "0x48": "scoreboard_score", - "0x49": "spawn_position", - "0x4a": "update_time", - "0x4b": "title", - "0x4c": "stop_sound", - "0x4d": "sound_effect", - "0x4e": "playerlist_header", - "0x4f": "collect", - "0x50": "entity_teleport", - "0x51": "advancements", - "0x52": "entity_update_attributes", - "0x53": "entity_effect", - "0x54": "declare_recipes", - "0x55": "tags" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "tab_complete", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "keep_alive", + "0x0f": "flying", + "0x10": "position", + "0x11": "position_look", + "0x12": "look", + "0x13": "vehicle_move", + "0x14": "steer_boat", + "0x15": "pick_item", + "0x16": "craft_recipe_request", + "0x17": "abilities", + "0x18": "block_dig", + "0x19": "entity_action", + "0x1a": "steer_vehicle", + "0x1b": "crafting_book_data", + "0x1c": "name_item", + "0x1d": "resource_pack_receive", + "0x1e": "advancement_tab", + "0x1f": "select_trade", + "0x20": "set_beacon_effect", + "0x21": "held_item_slot", + "0x22": "update_command_block", + "0x23": "update_command_block_minecart", + "0x24": "set_creative_slot", + "0x25": "update_structure_block", + "0x26": "update_sign", + "0x27": "arm_animation", + "0x28": "spectate", + "0x29": "block_place", + "0x2a": "use_item" + }, + "type": "varint" } ] }, @@ -4081,679 +4241,610 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", - "position": "packet_position", - "bed": "packet_bed", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags" + "keep_alive": "packet_keep_alive", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_edit_book": [ + "packet_arm_animation": [ "container", [ { - "name": "new_book", - "type": "slot" - }, - { - "name": "signing", - "type": "bool" + "name": "hand", + "type": "varint" } ] ], - "packet_query_entity_nbt": [ + "packet_block_dig": [ "container", [ { - "name": "transactionId", + "name": "status", "type": "varint" }, { - "name": "entityId", - "type": "varint" + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_pick_item": [ + "packet_block_place": [ "container", [ { - "name": "slot", + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "varint" + }, + { + "name": "hand", "type": "varint" + }, + { + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" } ] ], - "packet_name_item": [ + "packet_chat": [ "container", [ { - "name": "name", + "name": "message", "type": "string" } ] ], - "packet_select_trade": [ + "packet_client_command": [ "container", [ { - "name": "slot", + "name": "actionId", "type": "varint" } ] ], - "packet_set_beacon_effect": [ + "packet_close_window": [ "container", [ { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", - "type": "varint" + "name": "windowId", + "type": "u8" } ] ], - "packet_update_command_block": [ + "packet_craft_recipe_request": [ "container", [ { - "name": "location", - "type": "position" + "name": "windowId", + "type": "i8" }, { - "name": "command", + "name": "recipe", "type": "string" }, { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", - "type": "u8" + "name": "makeAll", + "type": "bool" } ] ], - "packet_update_command_block_minecart": [ + "packet_crafting_book_data": [ "container", [ { - "name": "entityId", + "name": "type", "type": "varint" }, { - "name": "command", - "type": "string" - }, - { - "name": "track_output", - "type": "bool" + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "smeltingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], - "packet_update_structure_block": [ + "packet_custom_payload": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", + "name": "channel", "type": "string" }, { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_edit_book": [ + "container", + [ { - "name": "size_x", - "type": "i8" + "name": "new_book", + "type": "slot" }, { - "name": "size_y", + "name": "signing", + "type": "bool" + } + ] + ], + "packet_enchant_item": [ + "container", + [ + { + "name": "windowId", "type": "i8" }, { - "name": "size_z", + "name": "enchantment", "type": "i8" - }, + } + ] + ], + "packet_entity_action": [ + "container", + [ { - "name": "mirror", + "name": "entityId", "type": "varint" }, { - "name": "rotation", + "name": "actionId", "type": "varint" }, { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", - "type": "f32" - }, - { - "name": "seed", - "type": "varlong" - }, - { - "name": "flags", - "type": "u8" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_flying": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "text", - "type": "string" + "name": "onGround", + "type": "bool" } ] ], - "packet_chat": [ + "packet_held_item_slot": [ "container", [ { - "name": "message", - "type": "string" + "name": "slotId", + "type": "i16" } ] ], - "packet_client_command": [ + "packet_keep_alive": [ "container", [ { - "name": "actionId", - "type": "varint" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_settings": [ + "packet_look": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" + "name": "yaw", + "type": "f32" }, { - "name": "chatFlags", - "type": "varint" + "name": "pitch", + "type": "f32" }, { - "name": "chatColors", + "name": "onGround", "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" } ] ], - "packet_transaction": [ + "packet_name_item": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ { - "name": "accepted", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], - "packet_enchant_item": [ + "packet_position": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "enchantment", - "type": "i8" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_position_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "x", + "type": "f64" }, { - "name": "slot", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "mouseButton", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "action", - "type": "i16" + "name": "yaw", + "type": "f32" }, { - "name": "mode", - "type": "i8" + "name": "pitch", + "type": "f32" }, { - "name": "item", - "type": "slot" + "name": "onGround", + "type": "bool" } ] ], - "packet_close_window": [ + "packet_query_block_nbt": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "transactionId", + "type": "varint" + }, + { + "name": "location", + "type": "position" } ] ], - "packet_custom_payload": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "channel", - "type": "string" + "name": "transactionId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "entityId", + "type": "varint" } ] ], - "packet_use_entity": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "result", "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] } ] ], - "packet_keep_alive": [ + "packet_select_trade": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "slot", + "type": "varint" } ] ], - "packet_position": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "x", - "type": "f64" + "name": "primary_effect", + "type": "varint" }, { - "name": "y", - "type": "f64" - }, + "name": "secondary_effect", + "type": "varint" + } + ] + ], + "packet_set_creative_slot": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "slot", + "type": "i16" }, { - "name": "onGround", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_position_look": [ + "packet_settings": [ "container", [ { - "name": "x", - "type": "f64" + "name": "locale", + "type": "string" }, { - "name": "y", - "type": "f64" + "name": "viewDistance", + "type": "i8" }, { - "name": "z", - "type": "f64" + "name": "chatFlags", + "type": "varint" }, { - "name": "yaw", - "type": "f32" + "name": "chatColors", + "type": "bool" }, { - "name": "pitch", - "type": "f32" + "name": "skinParts", + "type": "u8" }, { - "name": "onGround", - "type": "bool" + "name": "mainHand", + "type": "varint" } ] ], - "packet_look": [ + "packet_spectate": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "target", + "type": "UUID" } ] ], - "packet_flying": [ + "packet_steer_boat": [ "container", [ { - "name": "onGround", + "name": "leftPaddle", + "type": "bool" + }, + { + "name": "rightPaddle", "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_steer_vehicle": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "sideways", + "type": "f32" }, { - "name": "yaw", + "name": "forward", "type": "f32" }, { - "name": "pitch", - "type": "f32" + "name": "jump", + "type": "u8" } ] ], - "packet_steer_boat": [ + "packet_tab_complete": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "transactionId", + "type": "varint" }, { - "name": "rightPaddle", - "type": "bool" + "name": "text", + "type": "string" } ] ], - "packet_craft_recipe_request": [ + "packet_teleport_confirm": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" - }, - { - "name": "makeAll", - "type": "bool" + "name": "teleportId", + "type": "varint" } ] ], - "packet_abilities": [ + "packet_transaction": [ "container", [ { - "name": "flags", + "name": "windowId", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "action", + "type": "i16" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "accepted", + "type": "bool" } ] ], - "packet_block_dig": [ + "packet_update_command_block": [ "container", [ - { - "name": "status", - "type": "varint" - }, { "name": "location", "type": "position" }, { - "name": "face", - "type": "i8" + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_entity_action": [ + "packet_update_command_block_minecart": [ "container", [ { @@ -4761,182 +4852,172 @@ "type": "varint" }, { - "name": "actionId", - "type": "varint" + "name": "command", + "type": "string" }, { - "name": "jumpBoost", - "type": "varint" + "name": "track_output", + "type": "bool" } ] ], - "packet_steer_vehicle": [ + "packet_update_sign": [ "container", [ { - "name": "sideways", - "type": "f32" + "name": "location", + "type": "position" }, { - "name": "forward", - "type": "f32" + "name": "text1", + "type": "string" }, { - "name": "jump", - "type": "u8" - } - ] - ], - "packet_crafting_book_data": [ - "container", - [ + "name": "text2", + "type": "string" + }, { - "name": "type", - "type": "varint" + "name": "text3", + "type": "string" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "smeltingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "text4", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_update_structure_block": [ "container", [ { - "name": "result", + "name": "location", + "type": "position" + }, + { + "name": "action", "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + }, { - "name": "slotId", - "type": "i16" - } - ] - ], - "packet_set_creative_slot": [ - "container", - [ + "name": "mode", + "type": "varint" + }, { - "name": "slot", - "type": "i16" + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_update_sign": [ - "container", - [ - { - "name": "location", - "type": "position" + "name": "mirror", + "type": "varint" }, { - "name": "text1", - "type": "string" + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "location", - "type": "position" + "type": "varint" }, { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "hand", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -4949,138 +5030,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "tab_complete", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "keep_alive", - "0x0f": "flying", - "0x10": "position", - "0x11": "position_look", - "0x12": "look", - "0x13": "vehicle_move", - "0x14": "steer_boat", - "0x15": "pick_item", - "0x16": "craft_recipe_request", - "0x17": "abilities", - "0x18": "block_dig", - "0x19": "entity_action", - "0x1a": "steer_vehicle", - "0x1b": "crafting_book_data", - "0x1c": "name_item", - "0x1d": "resource_pack_receive", - "0x1e": "advancement_tab", - "0x1f": "select_trade", - "0x20": "set_beacon_effect", - "0x21": "held_item_slot", - "0x22": "update_command_block", - "0x23": "update_command_block_minecart", - "0x24": "set_creative_slot", - "0x25": "update_structure_block", - "0x26": "update_sign", - "0x27": "arm_animation", - "0x28": "spectate", - "0x29": "block_place", - "0x2a": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.14.1/protocol.json b/data/pc/1.14.1/protocol.json index 1b400c31d..5d46c653f 100644 --- a/data/pc/1.14.1/protocol.json +++ b/data/pc/1.14.1/protocol.json @@ -1,412 +1,75 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "23": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "32": [ - "container", - [ + "name": "has_command", + "signed": false, + "size": 1 + }, { - "name": "item", - "type": "slot" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { "name": "extraNodeData", @@ -444,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -454,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -476,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -489,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -508,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -530,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -543,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -562,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -584,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -597,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -616,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -638,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -651,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -663,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -743,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -759,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -768,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -779,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -793,70 +456,377 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": {} + "compareTo": "type" } ] } ] ] } - }, - "toServer": { - "types": { - "packet_set_protocol": [ + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "23": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "32": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", + "name": "tagName", "type": "string" }, { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] - ], - "packet_legacy_server_list_ping": [ + ] + } + ], + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "payload", - "type": "u8" + "name": "name", + "type": [ + "mapper", + { + "mappings": {}, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": {} + } + ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -865,11 +835,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -880,38 +850,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -920,11 +902,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -935,21 +917,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -960,6 +934,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -968,11 +955,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -983,95 +970,33 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_encryption_begin": [ - "container", - [ - { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "verifyToken", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ], - "packet_success": [ - "container", - [ - { - "name": "uuid", - "type": "string" - }, - { - "name": "username", - "type": "string" - } - ] ], - "packet_compress": [ + "packet_ping": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "time", + "type": "i64" } ] ], - "packet_login_plugin_request": [ + "packet_ping_start": [ "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1080,14 +1005,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "disconnect", "0x01": "encryption_begin", "0x02": "success", "0x03": "compress", "0x04": "login_plugin_request" - } + }, + "type": "varint" } ] }, @@ -1098,26 +1023,31 @@ { "compareTo": "name", "fields": { + "compress": "packet_compress", "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_compress": [ "container", [ { - "name": "username", + "name": "threshold", + "type": "varint" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", "type": "string" } ] @@ -1126,7 +1056,11 @@ "container", [ { - "name": "sharedSecret", + "name": "serverId", + "type": "string" + }, + { + "name": "publicKey", "type": [ "buffer", { @@ -1145,22 +1079,40 @@ } ] ], - "packet_login_plugin_response": [ + "packet_login_plugin_request": [ "container", [ { "name": "messageId", "type": "varint" }, + { + "name": "channel", + "type": "string" + }, { "name": "data", - "type": [ - "option", - "restBuffer" - ] + "type": "restBuffer" } ] ], + "packet_success": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1169,12 +1121,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "login_start", "0x01": "encryption_begin", "0x02": "login_plugin_response" - } + }, + "type": "varint" } ] }, @@ -1185,268 +1137,294 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } - } - ] - } - ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + } + ] } ] ], - "packet_spawn_entity_weather": [ + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "z", - "type": "f64" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_spawn_entity_living": [ + "packet_login_plugin_response": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", + "name": "messageId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "velocity", - "type": "vec3i16" - }, - { - "name": "metadata", - "type": "entityMetadata" + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_spawn_entity_painting": [ + "packet_login_start": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" - }, + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "packet": [ + "container", + [ { - "name": "location", - "type": "position" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "entity", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "combat_event", + "0x33": "player_info", + "0x34": "face_player", + "0x35": "position", + "0x36": "unlock_recipes", + "0x37": "entity_destroy", + "0x38": "remove_entity_effect", + "0x39": "resource_pack_send", + "0x3a": "respawn", + "0x3b": "entity_head_rotation", + "0x3c": "select_advancement_tab", + "0x3d": "world_border", + "0x3e": "camera", + "0x3f": "held_item_slot", + "0x40": "update_view_position", + "0x41": "update_view_distance", + "0x42": "scoreboard_display_objective", + "0x43": "entity_metadata", + "0x44": "attach_entity", + "0x45": "entity_velocity", + "0x46": "entity_equipment", + "0x47": "experience", + "0x48": "update_health", + "0x49": "scoreboard_objective", + "0x4a": "set_passengers", + "0x4b": "teams", + "0x4c": "scoreboard_score", + "0x4d": "spawn_position", + "0x4e": "update_time", + "0x4f": "title", + "0x50": "entity_sound_effect", + "0x51": "sound_effect", + "0x52": "stop_sound", + "0x53": "playerlist_header", + "0x54": "nbt_query_response", + "0x55": "collect", + "0x56": "entity_teleport", + "0x57": "advancements", + "0x58": "entity_update_attributes", + "0x59": "entity_effect", + "0x5a": "declare_recipes", + "0x5b": "tags" + }, + "type": "varint" + } + ] }, { - "name": "direction", - "type": "u8" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "trade_list": "packet_trade_list", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_named_entity_spawn": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "flags", "type": "i8" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "walkingSpeed", + "type": "f32" } ] ], @@ -1512,23 +1490,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1539,10 +1517,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1659,7 +1637,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1667,29 +1645,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -1714,6 +1684,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1744,11 +1731,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1758,11 +1745,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1772,11 +1759,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1786,11 +1773,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1800,180 +1787,193 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" - }, - { - "name": "difficultyLocked", - "type": "bool" + "name": "cameraId", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chat": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" + "name": "message", + "type": "string" }, { - "name": "length", - "type": "varint" - }, + "name": "position", + "type": "i8" + } + ] + ], + "packet_close_window": [ + "container", + [ { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "name": "windowId", + "type": "u8" } ] ], - "packet_declare_commands": [ + "packet_collect": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] + "name": "collectedEntityId", + "type": "varint" + }, + { + "name": "collectorEntityId", + "type": "varint" }, { - "name": "rootIndex", + "name": "pickupItemCount", "type": "varint" } ] ], - "packet_face_player": [ + "packet_combat_event": [ "container", [ { - "name": "feet_eyes", + "name": "event", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "isEntity", - "type": "bool" + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] }, { "name": "entityId", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "entity_feet_eyes", + "name": "message", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "string" - }, - "default": "void" + "2": "string" + } } ] } ] ], - "packet_nbt_query_response": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" } ] ], - "packet_chat": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "message", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "position", - "type": "i8" + "name": "recipe", + "type": "string" } ] ], - "packet_multi_block_change": [ + "packet_custom_payload": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "channel", + "type": "string" }, { - "name": "chunkZ", - "type": "i32" + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "records", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { @@ -1982,16 +1982,118 @@ "container", [ { - "name": "horizontalPos", - "type": "u8" + "name": "type", + "type": "string" }, { - "name": "y", - "type": "u8" + "name": "recipeId", + "type": "string" }, { - "name": "blockId", - "type": "varint" + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] } ] ] @@ -2000,95 +2102,78 @@ } ] ], - "packet_transaction": [ + "packet_difficulty": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "difficulty", + "type": "u8" }, { - "name": "accepted", + "name": "difficultyLocked", "type": "bool" } ] ], - "packet_close_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" - } - ] - ], - "packet_open_window": [ + "packet_entity": [ "container", - [ - { - "name": "windowId", - "type": "varint" - }, + [ { - "name": "inventoryType", + "name": "entityId", "type": "varint" - }, - { - "name": "windowTitle", - "type": "string" } ] ], - "packet_window_items": [ + "packet_entity_destroy": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "items", + "name": "entityIds", "type": [ "array", { - "countType": "i16", - "type": "slot" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_craft_progress_bar": [ + "packet_entity_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", - "type": "i16" + "name": "effectId", + "type": "i8" }, { - "name": "value", - "type": "i16" + "name": "amplifier", + "type": "i8" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "i8" } ] ], - "packet_set_slot": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { "name": "slot", - "type": "i16" + "type": "varint" }, { "name": "item", @@ -2096,71 +2181,108 @@ } ] ], - "packet_set_cooldown": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "itemID", + "name": "entityId", "type": "varint" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "headYaw", + "type": "i8" } ] ], - "packet_custom_payload": [ + "packet_entity_look": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_named_sound_effect": [ + "packet_entity_metadata": [ "container", [ { - "name": "soundName", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "soundCategory", + "name": "metadata", + "type": "entityMetadata" + } + ] + ], + "packet_entity_move_look": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "dX", + "type": "i16" }, { - "name": "y", - "type": "i32" + "name": "dY", + "type": "i16" }, { - "name": "z", - "type": "i32" + "name": "dZ", + "type": "i16" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "reason", - "type": "string" + "name": "soundId", + "type": "varint" + }, + { + "name": "soundCategory", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], @@ -2177,27 +2299,48 @@ } ] ], - "packet_explosion": [ + "packet_entity_teleport": [ "container", [ + { + "name": "entityId", + "type": "varint" + }, { "name": "x", - "type": "f32" + "type": "f64" }, { "name": "y", - "type": "f32" + "type": "f64" }, { "name": "z", - "type": "f32" + "type": "f64" }, { - "name": "radius", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "affectedBlockOffsets", + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", "type": [ "array", { @@ -2206,237 +2349,223 @@ "container", [ { - "name": "x", - "type": "i8" + "name": "key", + "type": "string" }, { - "name": "y", - "type": "i8" + "name": "value", + "type": "f64" }, { - "name": "z", - "type": "i8" + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] } ] ] } ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, - { - "name": "playerMotionY", - "type": "f32" - }, - { - "name": "playerMotionZ", - "type": "f32" } ] ], - "packet_unload_chunk": [ + "packet_entity_velocity": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_game_state_change": [ + "packet_experience": [ "container", [ { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", + "name": "experienceBar", "type": "f32" - } - ] - ], - "packet_open_horse_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" - }, - { - "name": "nbSlots", - "type": "varint" }, { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ + "name": "level", + "type": "varint" + }, { - "name": "keepAliveId", - "type": "i64" + "name": "totalExperience", + "type": "varint" } ] ], - "packet_map_chunk": [ + "packet_explosion": [ "container", [ { "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "groundUp", - "type": "bool" + "type": "f32" }, { - "name": "bitMap", - "type": "varint" + "name": "y", + "type": "f32" }, { - "name": "heightmaps", - "type": "nbt" + "name": "z", + "type": "f32" }, { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "radius", + "type": "f32" }, { - "name": "blockEntities", + "name": "affectedBlockOffsets", "type": [ "array", { - "countType": "varint", - "type": "nbt" + "countType": "i32", + "type": [ + "container", + [ + { + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + } + ] + ] } ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" }, { - "name": "location", - "type": "position" + "name": "playerMotionX", + "type": "f32" }, { - "name": "data", - "type": "i32" + "name": "playerMotionY", + "type": "f32" }, { - "name": "global", - "type": "bool" + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_world_particles": [ + "packet_face_player": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" + "name": "feet_eyes", + "type": "varint" }, { "name": "x", - "type": "f32" + "type": "f64" }, { "name": "y", - "type": "f32" + "type": "f64" }, { "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" + "type": "f64" }, { - "name": "particleData", - "type": "f32" + "name": "isEntity", + "type": "bool" }, { - "name": "particles", - "type": "i32" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "data", + "name": "entity_feet_eyes", "type": [ - "particleData", + "switch", { - "compareTo": "particleId" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] } ] ], - "packet_update_light": [ + "packet_game_state_change": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - }, - { - "name": "skyLightMask", - "type": "varint" + "name": "reason", + "type": "u8" }, { - "name": "blockLightMask", - "type": "varint" - }, + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "emptySkyLightMask", - "type": "varint" - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "emptyBlockLightMask", - "type": "varint" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "data", - "type": "restBuffer" + "name": "reason", + "type": "string" } ] ], @@ -2539,10 +2668,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2552,10 +2681,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2565,10 +2694,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2578,120 +2707,104 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_trade_list": [ + "packet_map_chunk": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "trades", - "type": [ - "array", - { - "countType": "u8", - "type": [ - "container", - [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - "slot" - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - } - ] - ] - } - ] + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" }, { - "name": "villagerLevel", + "name": "bitMap", "type": "varint" }, { - "name": "experience", - "type": "varint" + "name": "heightmaps", + "type": "nbt" }, { - "name": "isRegularVillager", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] } ] ], - "packet_rel_entity_move": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" + "name": "chunkX", + "type": "i32" }, { - "name": "dZ", - "type": "i16" + "name": "chunkZ", + "type": "i32" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_entity_move_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -2699,37 +2812,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "yaw", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "pitch", - "type": "i8" + "name": "y", + "type": "f64" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -2740,37 +2836,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2779,113 +2874,68 @@ } ] ], - "packet_open_book": [ + "packet_nbt_query_response": [ "container", [ { - "name": "hand", + "name": "transactionId", "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_open_sign_entity": [ + "packet_open_book": [ "container", [ { - "name": "location", - "type": "position" + "name": "hand", + "type": "varint" } ] ], - "packet_craft_recipe_response": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "recipe", - "type": "string" + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "event", + "name": "windowId", "type": "varint" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + "name": "inventoryType", + "type": "varint" }, { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "string" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" } ] ], @@ -2897,14 +2947,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2981,37 +3031,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -3023,6 +3073,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -3056,72 +3119,28 @@ } ] ], - "packet_unlock_recipes": [ + "packet_rel_entity_move": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smeltingBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmeltable", + "name": "onGround", "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -3168,206 +3187,230 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ { - "name": "action", - "type": "varint" + "name": "name", + "type": "string" }, { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "i8" }, { - "name": "x", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "z", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "new_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "speed", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" + "1": "void" + } } ] - }, + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ { - "name": "portalBoundary", + "name": "id", "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } + "option", + "string" ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "itemID", + "type": "varint" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_passengers": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "warning_blocks", + "name": "passengers", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_camera": [ + "packet_set_slot": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "windowId", + "type": "i8" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_held_item_slot": [ + "packet_sound_effect": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "soundId", + "type": "varint" + }, + { + "name": "soundCategory", + "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_update_view_position": [ + "packet_spawn_entity": [ "container", [ { - "name": "chunkX", + "name": "entityId", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" - } - ] - ], - "packet_update_view_distance": [ - "container", - [ + "name": "objectUUID", + "type": "UUID" + }, { - "name": "viewDistance", + "name": "type", "type": "varint" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + }, { - "name": "position", + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_metadata": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -3375,38 +3418,73 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "x", + "type": "f64" + }, { - "name": "entityId", - "type": "i32" + "name": "y", + "type": "f64" }, { - "name": "vehicleId", - "type": "i32" + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, { "name": "velocity", "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -3414,106 +3492,185 @@ "type": "varint" }, { - "name": "slot", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_experience": [ + "packet_spawn_entity_weather": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "totalExperience", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_update_health": [ + "packet_spawn_position": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_scoreboard_objective": [ + "packet_statistics": [ "container", [ { - "name": "name", - "type": "string" - }, + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_stop_sound": [ + "container", + [ { - "name": "action", + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "2": "string", + "3": "string" + } + } + ] + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], - "packet_set_passengers": [ + "packet_tags": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "blockTags", + "type": "tags" }, { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "itemTags", + "type": "tags" + }, + { + "name": "fluidTags", + "type": "tags" + }, + { + "name": "entityTags", + "type": "tags" } ] ], @@ -3534,11 +3691,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3548,11 +3705,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3562,11 +3719,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3576,11 +3733,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3590,11 +3747,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3604,11 +3761,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3618,11 +3775,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3632,6 +3789,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3654,62 +3812,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3726,12 +3848,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3741,10 +3863,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3754,160 +3876,274 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } + } + ] + }, + { + "name": "fadeOut", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "i32" + } + } + ] + } + ] + ], + "packet_trade_list": [ + "container", + [ + { + "name": "windowId", + "type": "varint" + }, + { + "name": "trades", + "type": [ + "array", + { + "countType": "u8", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + } + ] + ] + } + ] + }, + { + "name": "villagerLevel", + "type": "varint" + }, + { + "name": "experience", + "type": "varint" + }, + { + "name": "isRegularVillager", + "type": "bool" + } + ] + ], + "packet_transaction": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + } + ] + ], + "packet_unlock_recipes": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "filteringSmeltable", + "type": "bool" + }, + { + "name": "recipes1", + "type": [ + "array", + { + "countType": "varint", + "type": "string" } ] }, { - "name": "fadeOut", + "name": "recipes2", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "3": "i32" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_entity_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", - "type": "varint" - }, - { - "name": "soundCategory", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "entityId", + "name": "food", "type": "varint" }, { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", + "name": "foodSaturation", "type": "f32" } ] ], - "packet_stop_sound": [ - "container", - [ - { - "name": "flags", - "type": "i8" - }, - { - "name": "source", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "sound", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "2": "string", - "3": "string" - }, - "default": "void" - } - ] - } - ] - ], - "packet_sound_effect": [ + "packet_update_light": [ "container", [ { - "name": "soundId", + "name": "chunkX", "type": "varint" }, { - "name": "soundCategory", + "name": "chunkZ", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "skyLightMask", + "type": "varint" }, { - "name": "y", - "type": "i32" + "name": "blockLightMask", + "type": "varint" }, { - "name": "z", - "type": "i32" + "name": "emptySkyLightMask", + "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "emptyBlockLightMask", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "data", + "type": "restBuffer" } ] ], - "packet_playerlist_header": [ + "packet_update_time": [ "container", [ { - "name": "header", - "type": "string" + "name": "age", + "type": "i64" }, { - "name": "footer", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_collect": [ + "packet_update_view_distance": [ "container", [ { - "name": "collectedEntityId", + "name": "viewDistance", "type": "varint" - }, + } + ] + ], + "packet_update_view_position": [ + "container", + [ { - "name": "collectorEntityId", + "name": "chunkX", "type": "varint" }, { - "name": "pickupItemCount", + "name": "chunkZ", "type": "varint" } ] ], - "packet_entity_teleport": [ + "packet_vehicle_move": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "x", "type": "f64" @@ -3922,266 +4158,245 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "onGround", - "type": "bool" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_entity_update_attributes": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "properties", + "name": "radius", "type": [ - "array", + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], - "packet_select_advancement_tab": [ + "packet_world_particles": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + "name": "particleId", + "type": "i32" + }, { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] - } - ] - ] - } - ] - } - ] - ], - "packet_tags": [ - "container", - [ + "name": "longDistance", + "type": "bool" + }, { - "name": "blockTags", - "type": "tags" + "name": "x", + "type": "f32" }, { - "name": "itemTags", - "type": "tags" + "name": "y", + "type": "f32" }, { - "name": "fluidTags", - "type": "tags" + "name": "z", + "type": "f32" }, { - "name": "entityTags", - "type": "tags" + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -4190,101 +4405,55 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "entity", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "combat_event", - "0x33": "player_info", - "0x34": "face_player", - "0x35": "position", - "0x36": "unlock_recipes", - "0x37": "entity_destroy", - "0x38": "remove_entity_effect", - "0x39": "resource_pack_send", - "0x3a": "respawn", - "0x3b": "entity_head_rotation", - "0x3c": "select_advancement_tab", - "0x3d": "world_border", - "0x3e": "camera", - "0x3f": "held_item_slot", - "0x40": "update_view_position", - "0x41": "update_view_distance", - "0x42": "scoreboard_display_objective", - "0x43": "entity_metadata", - "0x44": "attach_entity", - "0x45": "entity_velocity", - "0x46": "entity_equipment", - "0x47": "experience", - "0x48": "update_health", - "0x49": "scoreboard_objective", - "0x4a": "set_passengers", - "0x4b": "teams", - "0x4c": "scoreboard_score", - "0x4d": "spawn_position", - "0x4e": "update_time", - "0x4f": "title", - "0x50": "entity_sound_effect", - "0x51": "sound_effect", - "0x52": "stop_sound", - "0x53": "playerlist_header", - "0x54": "nbt_query_response", - "0x55": "collect", - "0x56": "entity_teleport", - "0x57": "advancements", - "0x58": "entity_update_attributes", - "0x59": "entity_effect", - "0x5a": "declare_recipes", - "0x5b": "tags" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "crafting_book_data", + "0x1e": "name_item", + "0x1f": "resource_pack_receive", + "0x20": "advancement_tab", + "0x21": "select_trade", + "0x22": "set_beacon_effect", + "0x23": "held_item_slot", + "0x24": "update_command_block", + "0x25": "update_command_block_minecart", + "0x26": "set_creative_slot", + "0x27": "update_jigsaw_block", + "0x28": "update_structure_block", + "0x29": "update_sign", + "0x2a": "arm_animation", + "0x2b": "spectate", + "0x2c": "block_place", + "0x2d": "use_item" + }, + "type": "varint" } ] }, @@ -4295,538 +4464,394 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "entity_sound_effect": "packet_entity_sound_effect", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags" + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_set_difficulty": [ + "packet_arm_animation": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "hand", + "type": "varint" } ] ], - "packet_edit_book": [ + "packet_block_dig": [ "container", [ { - "name": "new_book", - "type": "slot" + "name": "status", + "type": "varint" }, { - "name": "signing", - "type": "bool" + "name": "location", + "type": "position" }, { - "name": "hand", - "type": "varint" + "name": "face", + "type": "i8" } ] ], - "packet_query_entity_nbt": [ + "packet_block_place": [ "container", [ { - "name": "transactionId", + "name": "hand", "type": "varint" }, { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_pick_item": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "slot", + "name": "direction", "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ + }, { - "name": "name", - "type": "string" + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" } ] ], - "packet_select_trade": [ + "packet_chat": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "message", + "type": "string" } ] ], - "packet_set_beacon_effect": [ + "packet_client_command": [ "container", [ { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", + "name": "actionId", "type": "varint" } ] ], - "packet_update_command_block": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", + "name": "windowId", "type": "u8" } ] ], - "packet_update_command_block_minecart": [ + "packet_craft_recipe_request": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "command", + "name": "recipe", "type": "string" }, { - "name": "track_output", + "name": "makeAll", "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_crafting_book_data": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", + "name": "type", "type": "varint" }, { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", - "type": "f32" - }, - { - "name": "seed", - "type": "varlong" - }, - { - "name": "flags", - "type": "u8" + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "smeltingFilter", + "type": "bool" + }, + { + "name": "blastingBookOpen", + "type": "bool" + }, + { + "name": "blastingFilter", + "type": "bool" + }, + { + "name": "smokingBookOpen", + "type": "bool" + }, + { + "name": "smokingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], - "packet_tab_complete": [ + "packet_custom_payload": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "text", - "type": "string" + "name": "data", + "type": "restBuffer" } ] ], - "packet_chat": [ + "packet_edit_book": [ "container", [ { - "name": "message", - "type": "string" - } - ] - ], - "packet_client_command": [ - "container", - [ + "name": "new_book", + "type": "slot" + }, { - "name": "actionId", + "name": "signing", + "type": "bool" + }, + { + "name": "hand", "type": "varint" } ] ], - "packet_settings": [ + "packet_enchant_item": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", + "name": "windowId", "type": "i8" }, { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" + "name": "enchantment", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "actionId", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_enchant_item": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "onGround", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_held_item_slot": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", + "name": "slotId", "type": "i16" - }, - { - "name": "mode", - "type": "i8" - }, - { - "name": "item", - "type": "slot" } ] ], - "packet_close_window": [ + "packet_keep_alive": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_custom_payload": [ + "packet_lock_difficulty": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "locked", + "type": "bool" } ] ], - "packet_use_entity": [ + "packet_look": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "f32" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "f32" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_name_item": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "name", + "type": "string" } ] ], - "packet_lock_difficulty": [ + "packet_pick_item": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], @@ -4880,135 +4905,133 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "location", + "type": "position" + } + ] + ], + "packet_query_entity_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_flying": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_select_trade": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + "name": "slot", + "type": "varint" + } + ] + ], + "packet_set_beacon_effect": [ + "container", + [ { - "name": "yaw", - "type": "f32" + "name": "primary_effect", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "secondary_effect", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_creative_slot": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "slot", + "type": "i16" }, { - "name": "rightPaddle", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_craft_recipe_request": [ + "packet_set_difficulty": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" - }, - { - "name": "makeAll", - "type": "bool" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_abilities": [ + "packet_settings": [ "container", [ { - "name": "flags", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "chatFlags", + "type": "varint" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5029,100 +5052,80 @@ } ] ], - "packet_crafting_book_data": [ + "packet_tab_complete": [ "container", [ { - "name": "type", + "name": "transactionId", "type": "varint" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "smeltingFilter", - "type": "bool" - }, - { - "name": "blastingBookOpen", - "type": "bool" - }, - { - "name": "blastingFilter", - "type": "bool" - }, - { - "name": "smokingBookOpen", - "type": "bool" - }, - { - "name": "smokingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_transaction": [ "container", [ { - "name": "slotId", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" + }, + { + "name": "accepted", + "type": "bool" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "location", + "type": "position" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] + ], + "packet_update_command_block_minecart": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5151,75 +5154,159 @@ "container", [ { - "name": "location", - "type": "position" + "name": "location", + "type": "position" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" }, { - "name": "text1", - "type": "string" + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "hand", "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "cursorX", - "type": "f32" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "insideBlock", - "type": "bool" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -5232,144 +5319,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "crafting_book_data", - "0x1e": "name_item", - "0x1f": "resource_pack_receive", - "0x20": "advancement_tab", - "0x21": "select_trade", - "0x22": "set_beacon_effect", - "0x23": "held_item_slot", - "0x24": "update_command_block", - "0x25": "update_command_block_minecart", - "0x26": "set_creative_slot", - "0x27": "update_jigsaw_block", - "0x28": "update_structure_block", - "0x29": "update_sign", - "0x2a": "arm_animation", - "0x2b": "spectate", - "0x2c": "block_place", - "0x2d": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.14.3/protocol.json b/data/pc/1.14.3/protocol.json index 2e51ff1aa..6e891e127 100644 --- a/data/pc/1.14.3/protocol.json +++ b/data/pc/1.14.3/protocol.json @@ -1,412 +1,75 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "23": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "32": [ - "container", - [ + "name": "has_command", + "signed": false, + "size": 1 + }, { - "name": "item", - "type": "slot" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { "name": "extraNodeData", @@ -444,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -454,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -476,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -489,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -508,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -530,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -543,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -562,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -584,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -597,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -616,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -638,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -651,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -663,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -743,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -759,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -768,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -779,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -793,173 +456,348 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": {} - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ "container", [ { - "name": "name", + "anon": true, "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" } - } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + "compareTo": "type" } ] } ] ] } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } - } - ] - }, + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } - } - ] + "compareTo": "particleId" } ] - ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "23": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "32": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ] + } } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "time", - "type": "i64" + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] - ], + ] + } + ], + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { "packet": [ "container", [ @@ -968,11 +806,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "mappings": {}, + "type": "varint" } ] }, @@ -982,96 +817,186 @@ "switch", { "compareTo": "name", - "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" - } + "fields": {} } ] } ] ] } - } - }, - "login": { - "toClient": { + }, + "toServer": { "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_encryption_begin": [ + "packet": [ "container", [ { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } } ] } ] ], - "packet_success": [ - "container", - [ - { - "name": "uuid", - "type": "string" - }, - { - "name": "username", - "type": "string" - } - ] - ], - "packet_compress": [ + "packet_legacy_server_list_ping": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "payload", + "type": "u8" } ] ], - "packet_login_plugin_request": [ + "packet_set_protocol": [ "container", [ { - "name": "messageId", + "name": "protocolVersion", "type": "varint" }, { - "name": "channel", + "name": "serverHost", "type": "string" }, { - "name": "data", - "type": "restBuffer" + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" + } + ] + ] + } + } + }, + "status": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "server_info": "packet_server_info" + } + } + ] + } + ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } + } + ] + } + ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1080,14 +1005,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "disconnect", "0x01": "encryption_begin", "0x02": "success", "0x03": "compress", "0x04": "login_plugin_request" - } + }, + "type": "varint" } ] }, @@ -1098,26 +1023,31 @@ { "compareTo": "name", "fields": { + "compress": "packet_compress", "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_compress": [ "container", [ { - "name": "username", + "name": "threshold", + "type": "varint" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", "type": "string" } ] @@ -1126,7 +1056,11 @@ "container", [ { - "name": "sharedSecret", + "name": "serverId", + "type": "string" + }, + { + "name": "publicKey", "type": [ "buffer", { @@ -1145,22 +1079,40 @@ } ] ], - "packet_login_plugin_response": [ + "packet_login_plugin_request": [ "container", [ { "name": "messageId", "type": "varint" }, + { + "name": "channel", + "type": "string" + }, { "name": "data", - "type": [ - "option", - "restBuffer" - ] + "type": "restBuffer" } ] ], + "packet_success": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1169,12 +1121,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "login_start", "0x01": "encryption_begin", "0x02": "login_plugin_response" - } + }, + "type": "varint" } ] }, @@ -1185,268 +1137,294 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "velocity", - "type": "vec3i16" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_login_plugin_response": [ "container", [ { - "name": "entityId", + "name": "messageId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_spawn_entity_weather": [ + "packet_login_start": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - } - ] - ], - "packet_spawn_entity_living": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "velocity", - "type": "vec3i16" - }, - { - "name": "metadata", - "type": "entityMetadata" + "name": "username", + "type": "string" } ] - ], - "packet_spawn_entity_painting": [ + ] + } + } + }, + "play": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" - }, - { - "name": "location", - "type": "position" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "entity", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "combat_event", + "0x33": "player_info", + "0x34": "face_player", + "0x35": "position", + "0x36": "unlock_recipes", + "0x37": "entity_destroy", + "0x38": "remove_entity_effect", + "0x39": "resource_pack_send", + "0x3a": "respawn", + "0x3b": "entity_head_rotation", + "0x3c": "select_advancement_tab", + "0x3d": "world_border", + "0x3e": "camera", + "0x3f": "held_item_slot", + "0x40": "update_view_position", + "0x41": "update_view_distance", + "0x42": "scoreboard_display_objective", + "0x43": "entity_metadata", + "0x44": "attach_entity", + "0x45": "entity_velocity", + "0x46": "entity_equipment", + "0x47": "experience", + "0x48": "update_health", + "0x49": "scoreboard_objective", + "0x4a": "set_passengers", + "0x4b": "teams", + "0x4c": "scoreboard_score", + "0x4d": "spawn_position", + "0x4e": "update_time", + "0x4f": "title", + "0x50": "entity_sound_effect", + "0x51": "sound_effect", + "0x52": "stop_sound", + "0x53": "playerlist_header", + "0x54": "nbt_query_response", + "0x55": "collect", + "0x56": "entity_teleport", + "0x57": "advancements", + "0x58": "entity_update_attributes", + "0x59": "entity_effect", + "0x5a": "declare_recipes", + "0x5b": "tags" + }, + "type": "varint" + } + ] }, { - "name": "direction", - "type": "u8" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "trade_list": "packet_trade_list", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_named_entity_spawn": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "flags", "type": "i8" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "walkingSpeed", + "type": "f32" } ] ], @@ -1512,23 +1490,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1539,10 +1517,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1659,7 +1637,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1667,29 +1645,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -1714,6 +1684,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1744,11 +1731,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1758,11 +1745,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1772,11 +1759,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1786,11 +1773,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1800,180 +1787,193 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" - }, - { - "name": "difficultyLocked", - "type": "bool" + "name": "cameraId", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chat": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", - "type": "varint" + "name": "message", + "type": "string" }, { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "name": "position", + "type": "i8" } ] ], - "packet_declare_commands": [ + "packet_close_window": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] - }, - { - "name": "rootIndex", - "type": "varint" + "name": "windowId", + "type": "u8" } ] ], - "packet_face_player": [ + "packet_collect": [ "container", [ { - "name": "feet_eyes", + "name": "collectedEntityId", "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "collectorEntityId", + "type": "varint" }, { - "name": "y", - "type": "f64" + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_combat_event": [ + "container", + [ + { + "name": "event", + "type": "varint" }, { - "name": "z", - "type": "f64" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "isEntity", - "type": "bool" + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] }, { "name": "entityId", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "entity_feet_eyes", + "name": "message", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "string" - }, - "default": "void" + "2": "string" + } } ] } ] ], - "packet_nbt_query_response": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" } ] ], - "packet_chat": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "message", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "position", - "type": "i8" + "name": "recipe", + "type": "string" } ] ], - "packet_multi_block_change": [ + "packet_custom_payload": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "channel", + "type": "string" }, { - "name": "chunkZ", - "type": "i32" + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "records", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { @@ -1982,16 +1982,118 @@ "container", [ { - "name": "horizontalPos", - "type": "u8" + "name": "type", + "type": "string" }, { - "name": "y", - "type": "u8" + "name": "recipeId", + "type": "string" }, { - "name": "blockId", - "type": "varint" + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] } ] ] @@ -2000,370 +2102,326 @@ } ] ], - "packet_transaction": [ + "packet_difficulty": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "difficulty", + "type": "u8" }, { - "name": "accepted", + "name": "difficultyLocked", "type": "bool" } ] ], - "packet_close_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" - } - ] - ], - "packet_open_window": [ + "packet_entity": [ "container", [ { - "name": "windowId", - "type": "varint" - }, - { - "name": "inventoryType", + "name": "entityId", "type": "varint" - }, - { - "name": "windowTitle", - "type": "string" } ] ], - "packet_window_items": [ + "packet_entity_destroy": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "items", + "name": "entityIds", "type": [ "array", { - "countType": "i16", - "type": "slot" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_craft_progress_bar": [ + "packet_entity_effect": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "property", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "value", - "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ - { - "name": "windowId", + "name": "effectId", "type": "i8" }, { - "name": "slot", - "type": "i16" + "name": "amplifier", + "type": "i8" }, { - "name": "item", - "type": "slot" + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "i8" } ] ], - "packet_set_cooldown": [ + "packet_entity_equipment": [ "container", [ { - "name": "itemID", + "name": "entityId", "type": "varint" }, { - "name": "cooldownTicks", + "name": "slot", "type": "varint" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_custom_payload": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "headYaw", + "type": "i8" } ] ], - "packet_named_sound_effect": [ + "packet_entity_look": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ + "type": "i8" + }, { - "name": "reason", - "type": "string" + "name": "onGround", + "type": "bool" } ] ], - "packet_entity_status": [ + "packet_entity_metadata": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_explosion": [ + "packet_entity_move_look": [ "container", [ { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "z", - "type": "f32" + "name": "dX", + "type": "i16" }, { - "name": "radius", - "type": "f32" + "name": "dY", + "type": "i16" }, { - "name": "affectedBlockOffsets", - "type": [ - "array", - { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "x", - "type": "i8" - }, - { - "name": "y", - "type": "i8" - }, - { - "name": "z", - "type": "i8" - } - ] - ] - } - ] + "name": "dZ", + "type": "i16" }, { - "name": "playerMotionX", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "playerMotionY", - "type": "f32" + "name": "pitch", + "type": "i8" }, { - "name": "playerMotionZ", - "type": "f32" + "name": "onGround", + "type": "bool" } ] ], - "packet_unload_chunk": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "soundId", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ - "container", - [ + "name": "soundCategory", + "type": "varint" + }, { - "name": "reason", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "gameMode", + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", "type": "f32" } ] ], - "packet_open_horse_window": [ + "packet_entity_status": [ "container", [ - { - "name": "windowId", - "type": "u8" - }, - { - "name": "nbSlots", - "type": "varint" - }, { "name": "entityId", "type": "i32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ + }, { - "name": "keepAliveId", - "type": "i64" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_entity_teleport": [ "container", [ + { + "name": "entityId", + "type": "varint" + }, { "name": "x", - "type": "i32" + "type": "f64" }, { - "name": "z", - "type": "i32" + "name": "y", + "type": "f64" }, { - "name": "groundUp", - "type": "bool" + "name": "z", + "type": "f64" }, { - "name": "bitMap", - "type": "varint" + "name": "yaw", + "type": "i8" }, { - "name": "heightmaps", - "type": "nbt" + "name": "pitch", + "type": "i8" }, { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "blockEntities", + "name": "properties", "type": [ "array", { - "countType": "varint", - "type": "nbt" + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] } ] } ] ], - "packet_world_event": [ + "packet_entity_velocity": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "global", - "type": "bool" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_world_particles": [ + "packet_experience": [ "container", [ { - "name": "particleId", - "type": "i32" + "name": "experienceBar", + "type": "f32" }, { - "name": "longDistance", - "type": "bool" + "name": "level", + "type": "varint" }, + { + "name": "totalExperience", + "type": "varint" + } + ] + ], + "packet_explosion": [ + "container", + [ { "name": "x", "type": "f32" @@ -2377,66 +2435,137 @@ "type": "f32" }, { - "name": "offsetX", + "name": "radius", "type": "f32" }, { - "name": "offsetY", - "type": "f32" + "name": "affectedBlockOffsets", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + } + ] + ] + } + ] }, { - "name": "offsetZ", + "name": "playerMotionX", "type": "f32" }, { - "name": "particleData", + "name": "playerMotionY", "type": "f32" }, { - "name": "particles", - "type": "i32" - }, - { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_update_light": [ + "packet_face_player": [ "container", [ { - "name": "chunkX", + "name": "feet_eyes", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "skyLightMask", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "blockLightMask", - "type": "varint" + "name": "z", + "type": "f64" }, { - "name": "emptySkyLightMask", - "type": "varint" + "name": "isEntity", + "type": "bool" }, { - "name": "emptyBlockLightMask", - "type": "varint" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "data", - "type": "restBuffer" + "name": "entity_feet_eyes", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } + } + ] + } + ] + ], + "packet_game_state_change": [ + "container", + [ + { + "name": "reason", + "type": "u8" + }, + { + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "string" } ] ], @@ -2539,10 +2668,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2552,10 +2681,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2565,10 +2694,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2578,124 +2707,104 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_trade_list": [ + "packet_map_chunk": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "trades", - "type": [ - "array", - { - "countType": "u8", - "type": [ - "container", - [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - "slot" - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - } - ] - ] - } - ] + "name": "z", + "type": "i32" }, { - "name": "villagerLevel", + "name": "groundUp", + "type": "bool" + }, + { + "name": "bitMap", "type": "varint" }, { - "name": "experience", - "type": "varint" + "name": "heightmaps", + "type": "nbt" }, { - "name": "isRegularVillager", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "canRestock", - "type": "bool" + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] } ] ], - "packet_rel_entity_move": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" + "name": "chunkX", + "type": "i32" }, { - "name": "dZ", - "type": "i16" + "name": "chunkZ", + "type": "i32" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_entity_move_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -2703,37 +2812,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "yaw", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "pitch", - "type": "i8" + "name": "y", + "type": "f64" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -2744,37 +2836,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2783,113 +2874,68 @@ } ] ], - "packet_open_book": [ + "packet_nbt_query_response": [ "container", [ { - "name": "hand", + "name": "transactionId", "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_open_sign_entity": [ + "packet_open_book": [ "container", [ { - "name": "location", - "type": "position" + "name": "hand", + "type": "varint" } ] ], - "packet_craft_recipe_response": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "recipe", - "type": "string" + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "event", + "name": "windowId", "type": "varint" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + "name": "inventoryType", + "type": "varint" }, { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "string" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" } ] ], @@ -2901,14 +2947,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2985,37 +3031,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -3027,6 +3073,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -3060,72 +3119,28 @@ } ] ], - "packet_unlock_recipes": [ + "packet_rel_entity_move": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smeltingBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmeltable", + "name": "onGround", "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -3172,206 +3187,230 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ { - "name": "action", - "type": "varint" + "name": "name", + "type": "string" }, { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "i8" }, { - "name": "x", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "z", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "new_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "speed", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" + "1": "void" + } } ] - }, + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ { - "name": "portalBoundary", + "name": "id", "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } + "option", + "string" ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "itemID", + "type": "varint" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_passengers": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "warning_blocks", + "name": "passengers", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_camera": [ + "packet_set_slot": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "windowId", + "type": "i8" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_held_item_slot": [ + "packet_sound_effect": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "soundId", + "type": "varint" + }, + { + "name": "soundCategory", + "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_update_view_position": [ + "packet_spawn_entity": [ "container", [ { - "name": "chunkX", + "name": "entityId", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" - } - ] - ], - "packet_update_view_distance": [ - "container", - [ + "name": "objectUUID", + "type": "UUID" + }, { - "name": "viewDistance", + "name": "type", "type": "varint" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + }, { - "name": "position", + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_metadata": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -3379,38 +3418,73 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "x", + "type": "f64" + }, { - "name": "entityId", - "type": "i32" + "name": "y", + "type": "f64" }, { - "name": "vehicleId", - "type": "i32" + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, { "name": "velocity", "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -3418,106 +3492,185 @@ "type": "varint" }, { - "name": "slot", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_experience": [ + "packet_spawn_entity_weather": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "totalExperience", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_update_health": [ + "packet_spawn_position": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_scoreboard_objective": [ + "packet_statistics": [ "container", [ { - "name": "name", - "type": "string" - }, + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_stop_sound": [ + "container", + [ { - "name": "action", + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "2": "string", + "3": "string" + } + } + ] + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], - "packet_set_passengers": [ + "packet_tags": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "blockTags", + "type": "tags" }, { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "itemTags", + "type": "tags" + }, + { + "name": "fluidTags", + "type": "tags" + }, + { + "name": "entityTags", + "type": "tags" } ] ], @@ -3538,11 +3691,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3552,11 +3705,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3566,11 +3719,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3580,11 +3733,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3594,11 +3747,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3608,11 +3761,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3622,11 +3775,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3636,6 +3789,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3658,62 +3812,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3730,12 +3848,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3745,10 +3863,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3758,160 +3876,278 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } + } + ] + }, + { + "name": "fadeOut", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "i32" + } + } + ] + } + ] + ], + "packet_trade_list": [ + "container", + [ + { + "name": "windowId", + "type": "varint" + }, + { + "name": "trades", + "type": [ + "array", + { + "countType": "u8", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + } + ] + ] + } + ] + }, + { + "name": "villagerLevel", + "type": "varint" + }, + { + "name": "experience", + "type": "varint" + }, + { + "name": "isRegularVillager", + "type": "bool" + }, + { + "name": "canRestock", + "type": "bool" + } + ] + ], + "packet_transaction": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + } + ] + ], + "packet_unlock_recipes": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "filteringSmeltable", + "type": "bool" + }, + { + "name": "recipes1", + "type": [ + "array", + { + "countType": "varint", + "type": "string" } ] }, { - "name": "fadeOut", + "name": "recipes2", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "3": "i32" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_entity_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", - "type": "varint" - }, - { - "name": "soundCategory", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "entityId", + "name": "food", "type": "varint" }, { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", + "name": "foodSaturation", "type": "f32" } ] ], - "packet_stop_sound": [ - "container", - [ - { - "name": "flags", - "type": "i8" - }, - { - "name": "source", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "sound", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "2": "string", - "3": "string" - }, - "default": "void" - } - ] - } - ] - ], - "packet_sound_effect": [ + "packet_update_light": [ "container", [ { - "name": "soundId", + "name": "chunkX", "type": "varint" }, { - "name": "soundCategory", + "name": "chunkZ", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "skyLightMask", + "type": "varint" }, { - "name": "y", - "type": "i32" + "name": "blockLightMask", + "type": "varint" }, { - "name": "z", - "type": "i32" + "name": "emptySkyLightMask", + "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "emptyBlockLightMask", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "data", + "type": "restBuffer" } ] ], - "packet_playerlist_header": [ + "packet_update_time": [ "container", [ { - "name": "header", - "type": "string" + "name": "age", + "type": "i64" }, { - "name": "footer", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_collect": [ + "packet_update_view_distance": [ "container", [ { - "name": "collectedEntityId", + "name": "viewDistance", "type": "varint" - }, + } + ] + ], + "packet_update_view_position": [ + "container", + [ { - "name": "collectorEntityId", + "name": "chunkX", "type": "varint" }, { - "name": "pickupItemCount", + "name": "chunkZ", "type": "varint" } ] ], - "packet_entity_teleport": [ + "packet_vehicle_move": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "x", "type": "f64" @@ -3926,266 +4162,245 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "onGround", - "type": "bool" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_entity_update_attributes": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "properties", + "name": "radius", "type": [ - "array", + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], - "packet_select_advancement_tab": [ + "packet_world_particles": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + "name": "particleId", + "type": "i32" + }, { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] - } - ] - ] - } - ] - } - ] - ], - "packet_tags": [ - "container", - [ + "name": "longDistance", + "type": "bool" + }, { - "name": "blockTags", - "type": "tags" + "name": "x", + "type": "f32" }, { - "name": "itemTags", - "type": "tags" + "name": "y", + "type": "f32" }, { - "name": "fluidTags", - "type": "tags" + "name": "z", + "type": "f32" }, { - "name": "entityTags", - "type": "tags" + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -4194,101 +4409,55 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "entity", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "combat_event", - "0x33": "player_info", - "0x34": "face_player", - "0x35": "position", - "0x36": "unlock_recipes", - "0x37": "entity_destroy", - "0x38": "remove_entity_effect", - "0x39": "resource_pack_send", - "0x3a": "respawn", - "0x3b": "entity_head_rotation", - "0x3c": "select_advancement_tab", - "0x3d": "world_border", - "0x3e": "camera", - "0x3f": "held_item_slot", - "0x40": "update_view_position", - "0x41": "update_view_distance", - "0x42": "scoreboard_display_objective", - "0x43": "entity_metadata", - "0x44": "attach_entity", - "0x45": "entity_velocity", - "0x46": "entity_equipment", - "0x47": "experience", - "0x48": "update_health", - "0x49": "scoreboard_objective", - "0x4a": "set_passengers", - "0x4b": "teams", - "0x4c": "scoreboard_score", - "0x4d": "spawn_position", - "0x4e": "update_time", - "0x4f": "title", - "0x50": "entity_sound_effect", - "0x51": "sound_effect", - "0x52": "stop_sound", - "0x53": "playerlist_header", - "0x54": "nbt_query_response", - "0x55": "collect", - "0x56": "entity_teleport", - "0x57": "advancements", - "0x58": "entity_update_attributes", - "0x59": "entity_effect", - "0x5a": "declare_recipes", - "0x5b": "tags" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "crafting_book_data", + "0x1e": "name_item", + "0x1f": "resource_pack_receive", + "0x20": "advancement_tab", + "0x21": "select_trade", + "0x22": "set_beacon_effect", + "0x23": "held_item_slot", + "0x24": "update_command_block", + "0x25": "update_command_block_minecart", + "0x26": "set_creative_slot", + "0x27": "update_jigsaw_block", + "0x28": "update_structure_block", + "0x29": "update_sign", + "0x2a": "arm_animation", + "0x2b": "spectate", + "0x2c": "block_place", + "0x2d": "use_item" + }, + "type": "varint" } ] }, @@ -4299,538 +4468,394 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "entity_sound_effect": "packet_entity_sound_effect", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags" + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_set_difficulty": [ + "packet_arm_animation": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "hand", + "type": "varint" } ] ], - "packet_edit_book": [ + "packet_block_dig": [ "container", [ { - "name": "new_book", - "type": "slot" + "name": "status", + "type": "varint" }, { - "name": "signing", - "type": "bool" + "name": "location", + "type": "position" }, { - "name": "hand", - "type": "varint" + "name": "face", + "type": "i8" } ] ], - "packet_query_entity_nbt": [ + "packet_block_place": [ "container", [ { - "name": "transactionId", + "name": "hand", "type": "varint" }, { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_pick_item": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "slot", + "name": "direction", "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ + }, { - "name": "name", - "type": "string" + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" } ] ], - "packet_select_trade": [ + "packet_chat": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "message", + "type": "string" } ] ], - "packet_set_beacon_effect": [ + "packet_client_command": [ "container", [ { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", + "name": "actionId", "type": "varint" } ] ], - "packet_update_command_block": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", + "name": "windowId", "type": "u8" } ] ], - "packet_update_command_block_minecart": [ + "packet_craft_recipe_request": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "command", + "name": "recipe", "type": "string" }, { - "name": "track_output", + "name": "makeAll", "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_crafting_book_data": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", + "name": "type", "type": "varint" }, { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", - "type": "f32" - }, - { - "name": "seed", - "type": "varlong" - }, - { - "name": "flags", - "type": "u8" + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "smeltingFilter", + "type": "bool" + }, + { + "name": "blastingBookOpen", + "type": "bool" + }, + { + "name": "blastingFilter", + "type": "bool" + }, + { + "name": "smokingBookOpen", + "type": "bool" + }, + { + "name": "smokingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], - "packet_tab_complete": [ + "packet_custom_payload": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "text", - "type": "string" + "name": "data", + "type": "restBuffer" } ] ], - "packet_chat": [ + "packet_edit_book": [ "container", [ { - "name": "message", - "type": "string" - } - ] - ], - "packet_client_command": [ - "container", - [ + "name": "new_book", + "type": "slot" + }, { - "name": "actionId", + "name": "signing", + "type": "bool" + }, + { + "name": "hand", "type": "varint" } ] ], - "packet_settings": [ + "packet_enchant_item": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", + "name": "windowId", "type": "i8" }, { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" + "name": "enchantment", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "actionId", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_enchant_item": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "onGround", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_held_item_slot": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", + "name": "slotId", "type": "i16" - }, - { - "name": "mode", - "type": "i8" - }, - { - "name": "item", - "type": "slot" } ] ], - "packet_close_window": [ + "packet_keep_alive": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_custom_payload": [ + "packet_lock_difficulty": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "locked", + "type": "bool" } ] ], - "packet_use_entity": [ + "packet_look": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "f32" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "f32" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_name_item": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "name", + "type": "string" } ] ], - "packet_lock_difficulty": [ + "packet_pick_item": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], @@ -4884,135 +4909,133 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "location", + "type": "position" + } + ] + ], + "packet_query_entity_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_flying": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_select_trade": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + "name": "slot", + "type": "varint" + } + ] + ], + "packet_set_beacon_effect": [ + "container", + [ { - "name": "yaw", - "type": "f32" + "name": "primary_effect", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "secondary_effect", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_creative_slot": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "slot", + "type": "i16" }, { - "name": "rightPaddle", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_craft_recipe_request": [ + "packet_set_difficulty": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" - }, - { - "name": "makeAll", - "type": "bool" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_abilities": [ + "packet_settings": [ "container", [ { - "name": "flags", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "chatFlags", + "type": "varint" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5033,100 +5056,80 @@ } ] ], - "packet_crafting_book_data": [ + "packet_tab_complete": [ "container", [ { - "name": "type", + "name": "transactionId", "type": "varint" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "smeltingFilter", - "type": "bool" - }, - { - "name": "blastingBookOpen", - "type": "bool" - }, - { - "name": "blastingFilter", - "type": "bool" - }, - { - "name": "smokingBookOpen", - "type": "bool" - }, - { - "name": "smokingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_transaction": [ "container", [ { - "name": "slotId", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" + }, + { + "name": "accepted", + "type": "bool" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "location", + "type": "position" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] + ], + "packet_update_command_block_minecart": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5155,75 +5158,159 @@ "container", [ { - "name": "location", - "type": "position" + "name": "location", + "type": "position" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" }, { - "name": "text1", - "type": "string" + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "hand", "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "cursorX", - "type": "f32" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "insideBlock", - "type": "bool" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -5236,144 +5323,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "crafting_book_data", - "0x1e": "name_item", - "0x1f": "resource_pack_receive", - "0x20": "advancement_tab", - "0x21": "select_trade", - "0x22": "set_beacon_effect", - "0x23": "held_item_slot", - "0x24": "update_command_block", - "0x25": "update_command_block_minecart", - "0x26": "set_creative_slot", - "0x27": "update_jigsaw_block", - "0x28": "update_structure_block", - "0x29": "update_sign", - "0x2a": "arm_animation", - "0x2b": "spectate", - "0x2c": "block_place", - "0x2d": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.14.4/protocol.json b/data/pc/1.14.4/protocol.json index 0406bd839..6d4951442 100644 --- a/data/pc/1.14.4/protocol.json +++ b/data/pc/1.14.4/protocol.json @@ -1,412 +1,75 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "23": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "32": [ - "container", - [ + "name": "has_command", + "signed": false, + "size": 1 + }, { - "name": "item", - "type": "slot" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { "name": "extraNodeData", @@ -444,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -454,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -476,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -489,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -508,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -530,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -543,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -562,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -584,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -597,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -616,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -638,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -651,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -663,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -743,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -759,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -768,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -779,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -793,173 +456,348 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": {} - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ "container", [ { - "name": "name", + "anon": true, "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" } - } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + "compareTo": "type" } ] } ] ] } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } - } - ] - }, + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } - } - ] + "compareTo": "particleId" } ] - ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "23": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "32": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ] + } } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "time", - "type": "i64" + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] - ], + ] + } + ], + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { "packet": [ "container", [ @@ -968,11 +806,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "mappings": {}, + "type": "varint" } ] }, @@ -982,96 +817,186 @@ "switch", { "compareTo": "name", - "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" - } + "fields": {} } ] } ] ] } - } - }, - "login": { - "toClient": { + }, + "toServer": { "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_encryption_begin": [ + "packet": [ "container", [ { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } } ] } ] ], - "packet_success": [ - "container", - [ - { - "name": "uuid", - "type": "string" - }, - { - "name": "username", - "type": "string" - } - ] - ], - "packet_compress": [ + "packet_legacy_server_list_ping": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "payload", + "type": "u8" } ] ], - "packet_login_plugin_request": [ + "packet_set_protocol": [ "container", [ { - "name": "messageId", + "name": "protocolVersion", "type": "varint" }, { - "name": "channel", + "name": "serverHost", "type": "string" }, { - "name": "data", - "type": "restBuffer" + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" + } + ] + ] + } + } + }, + "status": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "server_info": "packet_server_info" + } + } + ] + } + ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } + } + ] + } + ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1080,14 +1005,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "disconnect", "0x01": "encryption_begin", "0x02": "success", "0x03": "compress", "0x04": "login_plugin_request" - } + }, + "type": "varint" } ] }, @@ -1098,26 +1023,31 @@ { "compareTo": "name", "fields": { + "compress": "packet_compress", "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_compress": [ "container", [ { - "name": "username", + "name": "threshold", + "type": "varint" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", "type": "string" } ] @@ -1126,7 +1056,11 @@ "container", [ { - "name": "sharedSecret", + "name": "serverId", + "type": "string" + }, + { + "name": "publicKey", "type": [ "buffer", { @@ -1145,22 +1079,40 @@ } ] ], - "packet_login_plugin_response": [ + "packet_login_plugin_request": [ "container", [ { "name": "messageId", "type": "varint" }, + { + "name": "channel", + "type": "string" + }, { "name": "data", - "type": [ - "option", - "restBuffer" - ] + "type": "restBuffer" } ] ], + "packet_success": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1169,12 +1121,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "login_start", "0x01": "encryption_begin", "0x02": "login_plugin_response" - } + }, + "type": "varint" } ] }, @@ -1185,268 +1137,317 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "velocity", - "type": "vec3i16" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_login_plugin_response": [ "container", [ { - "name": "entityId", + "name": "messageId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_spawn_entity_weather": [ + "packet_login_start": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "username", + "type": "string" } ] - ], - "packet_spawn_entity_living": [ + ] + } + } + }, + "play": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "velocity", - "type": "vec3i16" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "entity", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "combat_event", + "0x33": "player_info", + "0x34": "face_player", + "0x35": "position", + "0x36": "unlock_recipes", + "0x37": "entity_destroy", + "0x38": "remove_entity_effect", + "0x39": "resource_pack_send", + "0x3a": "respawn", + "0x3b": "entity_head_rotation", + "0x3c": "select_advancement_tab", + "0x3d": "world_border", + "0x3e": "camera", + "0x3f": "held_item_slot", + "0x40": "update_view_position", + "0x41": "update_view_distance", + "0x42": "scoreboard_display_objective", + "0x43": "entity_metadata", + "0x44": "attach_entity", + "0x45": "entity_velocity", + "0x46": "entity_equipment", + "0x47": "experience", + "0x48": "update_health", + "0x49": "scoreboard_objective", + "0x4a": "set_passengers", + "0x4b": "teams", + "0x4c": "scoreboard_score", + "0x4d": "spawn_position", + "0x4e": "update_time", + "0x4f": "title", + "0x50": "entity_sound_effect", + "0x51": "sound_effect", + "0x52": "stop_sound", + "0x53": "playerlist_header", + "0x54": "nbt_query_response", + "0x55": "collect", + "0x56": "entity_teleport", + "0x57": "advancements", + "0x58": "entity_update_attributes", + "0x59": "entity_effect", + "0x5a": "declare_recipes", + "0x5b": "tags", + "0x5c": "acknowledge_player_digging" + }, + "type": "varint" + } + ] }, { - "name": "metadata", - "type": "entityMetadata" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "trade_list": "packet_trade_list", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_spawn_entity_painting": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" + "name": "flags", + "type": "i8" }, { - "name": "location", - "type": "position" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "direction", - "type": "u8" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_named_entity_spawn": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "pitch", - "type": "i8" + "name": "block", + "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", + "name": "status", "type": "varint" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "successful", + "type": "bool" } ] ], @@ -1512,23 +1513,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1539,10 +1540,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1659,7 +1660,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1667,29 +1668,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -1714,6 +1707,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1744,11 +1754,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1758,11 +1768,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1772,11 +1782,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1786,11 +1796,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1800,68 +1810,166 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } + } + ] + } + ] + ], + "packet_camera": [ + "container", + [ + { + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat": [ + "container", + [ + { + "name": "message", + "type": "string" + }, + { + "name": "position", + "type": "i8" + } + ] + ], + "packet_close_window": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", + "type": "varint" + }, + { + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_combat_event": [ + "container", + [ + { + "name": "event", + "type": "varint" + }, + { + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] + }, + { + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "i32", + "2": "i32" + } + } + ] + }, + { + "name": "message", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "string" + } } ] } ] ], - "packet_difficulty": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "difficulty", + "name": "windowId", "type": "u8" }, { - "name": "difficultyLocked", - "type": "bool" + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" } ] ], - "packet_tab_complete": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "start", - "type": "varint" - }, + "name": "recipe", + "type": "string" + } + ] + ], + "packet_custom_payload": [ + "container", + [ { - "name": "length", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "name": "data", + "type": "restBuffer" } ] ], @@ -1884,296 +1992,453 @@ } ] ], - "packet_face_player": [ + "packet_declare_recipes": [ "container", [ { - "name": "feet_eyes", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entity_feet_eyes", + "name": "recipes", "type": [ - "switch", + "array", { - "compareTo": "isEntity", - "fields": { - "true": "string" - }, - "default": "void" + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] + } + ] + ] } ] } ] ], - "packet_nbt_query_response": [ + "packet_difficulty": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "difficulty", + "type": "u8" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "difficultyLocked", + "type": "bool" } ] ], - "packet_chat": [ + "packet_entity": [ "container", [ { - "name": "message", - "type": "string" - }, + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_entity_destroy": [ + "container", + [ { - "name": "position", - "type": "i8" + "name": "entityIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_multi_block_change": [ + "packet_entity_effect": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "effectId", + "type": "i8" }, { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] - } - ] + "name": "amplifier", + "type": "i8" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "slot", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", + "name": "entityId", "type": "varint" }, { - "name": "inventoryType", - "type": "varint" + "name": "yaw", + "type": "i8" }, { - "name": "windowTitle", - "type": "string" + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ + }, { - "name": "windowId", + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", "type": "i8" }, { - "name": "slot", - "type": "i16" + "name": "pitch", + "type": "i8" }, { - "name": "item", - "type": "slot" + "name": "onGround", + "type": "bool" } ] ], - "packet_set_cooldown": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "itemID", + "name": "soundId", "type": "varint" }, { - "name": "cooldownTicks", + "name": "soundCategory", + "type": "varint" + }, + { + "name": "entityId", "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_custom_payload": [ + "packet_entity_status": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "data", - "type": "restBuffer" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_named_sound_effect": [ + "packet_entity_teleport": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_velocity": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "entityId", + "type": "varint" + }, + { + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "totalExperience", + "type": "varint" } ] ], @@ -2236,207 +2501,94 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ - "container", - [ - { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", - "type": "f32" - } - ] - ], - "packet_open_horse_window": [ + "packet_face_player": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "nbSlots", + "name": "feet_eyes", "type": "varint" }, - { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_map_chunk": [ - "container", - [ { "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "groundUp", - "type": "bool" + "name": "y", + "type": "f64" }, { - "name": "bitMap", - "type": "varint" + "name": "z", + "type": "f64" }, { - "name": "heightmaps", - "type": "nbt" + "name": "isEntity", + "type": "bool" }, { - "name": "chunkData", + "name": "entityId", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } } ] }, { - "name": "blockEntities", + "name": "entity_feet_eyes", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "nbt" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] } ] ], - "packet_world_event": [ + "packet_game_state_change": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "reason", + "type": "u8" }, { - "name": "global", - "type": "bool" + "name": "gameMode", + "type": "f32" } ] ], - "packet_world_particles": [ + "packet_held_item_slot": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, - { - "name": "particles", - "type": "i32" - }, - { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "slot", + "type": "i8" } ] ], - "packet_update_light": [ + "packet_keep_alive": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - }, - { - "name": "skyLightMask", - "type": "varint" - }, - { - "name": "blockLightMask", - "type": "varint" - }, - { - "name": "emptySkyLightMask", - "type": "varint" - }, - { - "name": "emptyBlockLightMask", - "type": "varint" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "data", - "type": "restBuffer" + "name": "reason", + "type": "string" } ] ], @@ -2539,10 +2691,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2552,129 +2704,130 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "i8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } } ] + } + ] + ], + "packet_map_chunk": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" + }, + { + "name": "bitMap", + "type": "varint" }, { - "name": "y", + "name": "heightmaps", + "type": "nbt" + }, + { + "name": "chunkData", "type": [ - "switch", + "buffer", { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "i8" + "countType": "varint" } ] }, { - "name": "data", + "name": "blockEntities", "type": [ - "switch", + "array", { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] + "countType": "varint", + "type": "nbt" } ] } ] ], - "packet_trade_list": [ + "packet_multi_block_change": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "chunkX", + "type": "i32" }, { - "name": "trades", + "name": "chunkZ", + "type": "i32" + }, + { + "name": "records", "type": [ "array", { - "countType": "u8", + "countType": "varint", "type": [ "container", [ { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - "slot" - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" + "name": "horizontalPos", + "type": "u8" }, { - "name": "priceMultiplier", - "type": "f32" + "name": "y", + "type": "u8" }, { - "name": "demand", - "type": "i32" + "name": "blockId", + "type": "varint" } ] ] } ] - }, - { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" - }, - { - "name": "isRegularVillager", - "type": "bool" - }, - { - "name": "canRestock", - "type": "bool" } ] ], - "packet_rel_entity_move": [ + "packet_named_entity_spawn": [ "container", [ { @@ -2682,41 +2835,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_move_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dX", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dY", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -2727,58 +2859,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2787,113 +2897,68 @@ } ] ], - "packet_open_book": [ + "packet_nbt_query_response": [ "container", [ { - "name": "hand", + "name": "transactionId", "type": "varint" - } - ] - ], - "packet_open_sign_entity": [ - "container", - [ + }, { - "name": "location", - "type": "position" + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_craft_recipe_response": [ + "packet_open_book": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" + "name": "hand", + "type": "varint" } ] ], - "packet_abilities": [ + "packet_open_horse_window": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "windowId", + "type": "u8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "nbSlots", + "type": "varint" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "entityId", + "type": "i32" } ] ], - "packet_combat_event": [ + "packet_open_sign_entity": [ "container", [ { - "name": "event", - "type": "varint" - }, - { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "location", + "type": "position" + } + ] + ], + "packet_open_window": [ + "container", + [ + { + "name": "windowId", + "type": "varint" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + "name": "inventoryType", + "type": "varint" }, { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "string" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" } ] ], @@ -2905,14 +2970,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2989,37 +3054,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -3031,6 +3096,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -3064,72 +3142,28 @@ } ] ], - "packet_unlock_recipes": [ + "packet_rel_entity_move": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smeltingBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmeltable", + "name": "onGround", "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -3176,206 +3210,185 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ { - "name": "action", - "type": "varint" - }, - { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "name", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "i8" }, { - "name": "old_radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "new_radius", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] - }, + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] + "name": "itemName", + "type": "string" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "warning_blocks", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_camera": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "id", + "type": [ + "option", + "string" + ] } ] ], - "packet_held_item_slot": [ + "packet_set_cooldown": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "itemID", + "type": "varint" + }, + { + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_update_view_position": [ + "packet_set_passengers": [ "container", [ { - "name": "chunkX", + "name": "entityId", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_update_view_distance": [ + "packet_set_slot": [ "container", [ { - "name": "viewDistance", - "type": "varint" + "name": "windowId", + "type": "i8" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_scoreboard_display_objective": [ + "packet_sound_effect": [ "container", [ { - "name": "position", - "type": "i8" + "name": "soundId", + "type": "varint" }, { - "name": "name", - "type": "string" + "name": "soundCategory", + "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_entity_metadata": [ + "packet_spawn_entity": [ "container", [ { @@ -3383,38 +3396,118 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_attach_entity": [ + "packet_spawn_entity_experience_orb": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "vehicleId", - "type": "i32" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, { "name": "velocity", "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -3422,109 +3515,188 @@ "type": "varint" }, { - "name": "slot", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_experience": [ + "packet_spawn_entity_weather": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "totalExperience", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_update_health": [ + "packet_spawn_position": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ { - "name": "foodSaturation", - "type": "f32" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_scoreboard_objective": [ + "packet_stop_sound": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "action", + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "2": "string", + "3": "string" + } } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "passengers", + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], + "packet_tags": [ + "container", + [ + { + "name": "blockTags", + "type": "tags" + }, + { + "name": "itemTags", + "type": "tags" + }, + { + "name": "fluidTags", + "type": "tags" + }, + { + "name": "entityTags", + "type": "tags" + } + ] + ], "packet_teams": [ "container", [ @@ -3542,11 +3714,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3556,11 +3728,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3570,11 +3742,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3584,11 +3756,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3598,11 +3770,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3612,11 +3784,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3626,11 +3798,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3640,6 +3812,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3662,62 +3835,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3734,12 +3871,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3749,10 +3886,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3762,10 +3899,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3775,147 +3912,269 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } + } + ] + } + ] + ], + "packet_trade_list": [ + "container", + [ + { + "name": "windowId", + "type": "varint" + }, + { + "name": "trades", + "type": [ + "array", + { + "countType": "u8", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] } ] + }, + { + "name": "villagerLevel", + "type": "varint" + }, + { + "name": "experience", + "type": "varint" + }, + { + "name": "isRegularVillager", + "type": "bool" + }, + { + "name": "canRestock", + "type": "bool" + } + ] + ], + "packet_transaction": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" } ] ], - "packet_entity_sound_effect": [ + "packet_unlock_recipes": [ "container", [ { - "name": "soundId", + "name": "action", "type": "varint" }, { - "name": "soundCategory", - "type": "varint" + "name": "craftingBookOpen", + "type": "bool" }, { - "name": "entityId", - "type": "varint" + "name": "filteringCraftable", + "type": "bool" }, { - "name": "volume", - "type": "f32" + "name": "smeltingBookOpen", + "type": "bool" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_stop_sound": [ - "container", - [ - { - "name": "flags", - "type": "i8" + "name": "filteringSmeltable", + "type": "bool" }, { - "name": "source", + "name": "recipes1", "type": [ - "switch", + "array", { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" + "countType": "varint", + "type": "string" } ] }, { - "name": "sound", + "name": "recipes2", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "action", + "default": "void", "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" }, { - "name": "soundCategory", + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_light": [ + "container", + [ + { + "name": "chunkX", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "chunkZ", + "type": "varint" }, { - "name": "y", - "type": "i32" + "name": "skyLightMask", + "type": "varint" }, { - "name": "z", - "type": "i32" + "name": "blockLightMask", + "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "emptySkyLightMask", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "emptyBlockLightMask", + "type": "varint" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_playerlist_header": [ + "packet_update_time": [ "container", [ { - "name": "header", - "type": "string" + "name": "age", + "type": "i64" }, { - "name": "footer", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_collect": [ + "packet_update_view_distance": [ "container", [ { - "name": "collectedEntityId", + "name": "viewDistance", "type": "varint" - }, + } + ] + ], + "packet_update_view_position": [ + "container", + [ { - "name": "collectorEntityId", + "name": "chunkX", "type": "varint" }, { - "name": "pickupItemCount", + "name": "chunkZ", "type": "varint" } ] ], - "packet_entity_teleport": [ + "packet_vehicle_move": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "x", "type": "f64" @@ -3930,287 +4189,245 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "type": "f32" } ] ], - "packet_entity_update_attributes": [ + "packet_window_items": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "properties", + "name": "items", "type": [ "array", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "countType": "i16", + "type": "slot" } ] } ] ], - "packet_entity_effect": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "effectId", - "type": "i8" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "amplifier", - "type": "i8" + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] }, { - "name": "duration", - "type": "varint" + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] }, { - "name": "hideParticles", - "type": "i8" - } - ] - ], - "packet_select_advancement_tab": [ - "container", - [ - { - "name": "id", + "name": "warning_time", "type": [ - "option", - "string" + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + }, { - "name": "recipes", + "name": "warning_blocks", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_tags": [ + "packet_world_event": [ "container", [ { - "name": "blockTags", - "type": "tags" + "name": "effectId", + "type": "i32" }, { - "name": "itemTags", - "type": "tags" + "name": "location", + "type": "position" }, { - "name": "fluidTags", - "type": "tags" + "name": "data", + "type": "i32" }, { - "name": "entityTags", - "type": "tags" + "name": "global", + "type": "bool" } ] ], - "packet_acknowledge_player_digging": [ + "packet_world_particles": [ "container", [ { - "name": "location", - "type": "position" + "name": "particleId", + "type": "i32" }, { - "name": "block", - "type": "varint" + "name": "longDistance", + "type": "bool" }, { - "name": "status", - "type": "varint" + "name": "x", + "type": "f32" }, { - "name": "successful", - "type": "bool" + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -4219,102 +4436,55 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "entity", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "combat_event", - "0x33": "player_info", - "0x34": "face_player", - "0x35": "position", - "0x36": "unlock_recipes", - "0x37": "entity_destroy", - "0x38": "remove_entity_effect", - "0x39": "resource_pack_send", - "0x3a": "respawn", - "0x3b": "entity_head_rotation", - "0x3c": "select_advancement_tab", - "0x3d": "world_border", - "0x3e": "camera", - "0x3f": "held_item_slot", - "0x40": "update_view_position", - "0x41": "update_view_distance", - "0x42": "scoreboard_display_objective", - "0x43": "entity_metadata", - "0x44": "attach_entity", - "0x45": "entity_velocity", - "0x46": "entity_equipment", - "0x47": "experience", - "0x48": "update_health", - "0x49": "scoreboard_objective", - "0x4a": "set_passengers", - "0x4b": "teams", - "0x4c": "scoreboard_score", - "0x4d": "spawn_position", - "0x4e": "update_time", - "0x4f": "title", - "0x50": "entity_sound_effect", - "0x51": "sound_effect", - "0x52": "stop_sound", - "0x53": "playerlist_header", - "0x54": "nbt_query_response", - "0x55": "collect", - "0x56": "entity_teleport", - "0x57": "advancements", - "0x58": "entity_update_attributes", - "0x59": "entity_effect", - "0x5a": "declare_recipes", - "0x5b": "tags", - "0x5c": "acknowledge_player_digging" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "crafting_book_data", + "0x1e": "name_item", + "0x1f": "resource_pack_receive", + "0x20": "advancement_tab", + "0x21": "select_trade", + "0x22": "set_beacon_effect", + "0x23": "held_item_slot", + "0x24": "update_command_block", + "0x25": "update_command_block_minecart", + "0x26": "set_creative_slot", + "0x27": "update_jigsaw_block", + "0x28": "update_structure_block", + "0x29": "update_sign", + "0x2a": "arm_animation", + "0x2b": "spectate", + "0x2c": "block_place", + "0x2d": "use_item" + }, + "type": "varint" } ] }, @@ -4325,539 +4495,394 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "entity_sound_effect": "packet_entity_sound_effect", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "acknowledge_player_digging": "packet_acknowledge_player_digging" + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_set_difficulty": [ + "packet_arm_animation": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "hand", + "type": "varint" } ] ], - "packet_edit_book": [ + "packet_block_dig": [ "container", [ { - "name": "new_book", - "type": "slot" + "name": "status", + "type": "varint" }, { - "name": "signing", - "type": "bool" + "name": "location", + "type": "position" }, { - "name": "hand", - "type": "varint" + "name": "face", + "type": "i8" } ] ], - "packet_query_entity_nbt": [ + "packet_block_place": [ "container", [ { - "name": "transactionId", + "name": "hand", "type": "varint" }, { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_pick_item": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "slot", + "name": "direction", "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ + }, { - "name": "name", - "type": "string" + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" } ] ], - "packet_select_trade": [ + "packet_chat": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "message", + "type": "string" } ] ], - "packet_set_beacon_effect": [ + "packet_client_command": [ "container", [ { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", + "name": "actionId", "type": "varint" } ] ], - "packet_update_command_block": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", + "name": "windowId", "type": "u8" } ] ], - "packet_update_command_block_minecart": [ + "packet_craft_recipe_request": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "command", + "name": "recipe", "type": "string" }, { - "name": "track_output", + "name": "makeAll", "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_crafting_book_data": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", + "name": "type", "type": "varint" }, { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", - "type": "f32" - }, - { - "name": "seed", - "type": "varlong" - }, - { - "name": "flags", - "type": "u8" + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "smeltingFilter", + "type": "bool" + }, + { + "name": "blastingBookOpen", + "type": "bool" + }, + { + "name": "blastingFilter", + "type": "bool" + }, + { + "name": "smokingBookOpen", + "type": "bool" + }, + { + "name": "smokingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], - "packet_tab_complete": [ + "packet_custom_payload": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "text", - "type": "string" + "name": "data", + "type": "restBuffer" } ] ], - "packet_chat": [ + "packet_edit_book": [ "container", [ { - "name": "message", - "type": "string" - } - ] - ], - "packet_client_command": [ - "container", - [ + "name": "new_book", + "type": "slot" + }, { - "name": "actionId", + "name": "signing", + "type": "bool" + }, + { + "name": "hand", "type": "varint" } ] ], - "packet_settings": [ + "packet_enchant_item": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", + "name": "windowId", "type": "i8" }, { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" + "name": "enchantment", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "actionId", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_enchant_item": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "onGround", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_held_item_slot": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", + "name": "slotId", "type": "i16" - }, - { - "name": "mode", - "type": "i8" - }, - { - "name": "item", - "type": "slot" } ] ], - "packet_close_window": [ + "packet_keep_alive": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_custom_payload": [ + "packet_lock_difficulty": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "locked", + "type": "bool" } ] ], - "packet_use_entity": [ + "packet_look": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "f32" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "f32" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_name_item": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "name", + "type": "string" } ] ], - "packet_lock_difficulty": [ + "packet_pick_item": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], @@ -4911,135 +4936,133 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "location", + "type": "position" + } + ] + ], + "packet_query_entity_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_flying": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_select_trade": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + "name": "slot", + "type": "varint" + } + ] + ], + "packet_set_beacon_effect": [ + "container", + [ { - "name": "yaw", - "type": "f32" + "name": "primary_effect", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "secondary_effect", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_creative_slot": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "slot", + "type": "i16" }, { - "name": "rightPaddle", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_craft_recipe_request": [ + "packet_set_difficulty": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" - }, - { - "name": "makeAll", - "type": "bool" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_abilities": [ + "packet_settings": [ "container", [ { - "name": "flags", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "chatFlags", + "type": "varint" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5060,100 +5083,80 @@ } ] ], - "packet_crafting_book_data": [ + "packet_tab_complete": [ "container", [ { - "name": "type", + "name": "transactionId", "type": "varint" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "smeltingFilter", - "type": "bool" - }, - { - "name": "blastingBookOpen", - "type": "bool" - }, - { - "name": "blastingFilter", - "type": "bool" - }, - { - "name": "smokingBookOpen", - "type": "bool" - }, - { - "name": "smokingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_transaction": [ "container", [ { - "name": "slotId", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" + }, + { + "name": "accepted", + "type": "bool" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "location", + "type": "position" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] + ], + "packet_update_command_block_minecart": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5182,75 +5185,159 @@ "container", [ { - "name": "location", - "type": "position" + "name": "location", + "type": "position" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" }, { - "name": "text1", - "type": "string" + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "hand", "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "cursorX", - "type": "f32" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "insideBlock", - "type": "bool" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -5263,144 +5350,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "crafting_book_data", - "0x1e": "name_item", - "0x1f": "resource_pack_receive", - "0x20": "advancement_tab", - "0x21": "select_trade", - "0x22": "set_beacon_effect", - "0x23": "held_item_slot", - "0x24": "update_command_block", - "0x25": "update_command_block_minecart", - "0x26": "set_creative_slot", - "0x27": "update_jigsaw_block", - "0x28": "update_structure_block", - "0x29": "update_sign", - "0x2a": "arm_animation", - "0x2b": "spectate", - "0x2c": "block_place", - "0x2d": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.14/protocol.json b/data/pc/1.14/protocol.json index 1b400c31d..5d46c653f 100644 --- a/data/pc/1.14/protocol.json +++ b/data/pc/1.14/protocol.json @@ -1,412 +1,75 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "23": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "32": [ - "container", - [ + "name": "has_command", + "signed": false, + "size": 1 + }, { - "name": "item", - "type": "slot" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { "name": "extraNodeData", @@ -444,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -454,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -476,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -489,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -508,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -530,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -543,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -562,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -584,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -597,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -616,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -638,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -651,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -663,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -743,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -759,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -768,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -779,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -793,70 +456,377 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": {} + "compareTo": "type" } ] } ] ] } - }, - "toServer": { - "types": { - "packet_set_protocol": [ + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "23": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "32": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", + "name": "tagName", "type": "string" }, { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] - ], - "packet_legacy_server_list_ping": [ + ] + } + ], + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "payload", - "type": "u8" + "name": "name", + "type": [ + "mapper", + { + "mappings": {}, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": {} + } + ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -865,11 +835,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -880,38 +850,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -920,11 +902,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -935,21 +917,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -960,6 +934,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -968,11 +955,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -983,95 +970,33 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_encryption_begin": [ - "container", - [ - { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "verifyToken", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ], - "packet_success": [ - "container", - [ - { - "name": "uuid", - "type": "string" - }, - { - "name": "username", - "type": "string" - } - ] ], - "packet_compress": [ + "packet_ping": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "time", + "type": "i64" } ] ], - "packet_login_plugin_request": [ + "packet_ping_start": [ "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1080,14 +1005,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "disconnect", "0x01": "encryption_begin", "0x02": "success", "0x03": "compress", "0x04": "login_plugin_request" - } + }, + "type": "varint" } ] }, @@ -1098,26 +1023,31 @@ { "compareTo": "name", "fields": { + "compress": "packet_compress", "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_compress": [ "container", [ { - "name": "username", + "name": "threshold", + "type": "varint" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", "type": "string" } ] @@ -1126,7 +1056,11 @@ "container", [ { - "name": "sharedSecret", + "name": "serverId", + "type": "string" + }, + { + "name": "publicKey", "type": [ "buffer", { @@ -1145,22 +1079,40 @@ } ] ], - "packet_login_plugin_response": [ + "packet_login_plugin_request": [ "container", [ { "name": "messageId", "type": "varint" }, + { + "name": "channel", + "type": "string" + }, { "name": "data", - "type": [ - "option", - "restBuffer" - ] + "type": "restBuffer" } ] ], + "packet_success": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1169,12 +1121,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "login_start", "0x01": "encryption_begin", "0x02": "login_plugin_response" - } + }, + "type": "varint" } ] }, @@ -1185,268 +1137,294 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } - } - ] - } - ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + } + ] } ] ], - "packet_spawn_entity_weather": [ + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "z", - "type": "f64" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_spawn_entity_living": [ + "packet_login_plugin_response": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", + "name": "messageId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "velocity", - "type": "vec3i16" - }, - { - "name": "metadata", - "type": "entityMetadata" + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_spawn_entity_painting": [ + "packet_login_start": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" - }, + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "packet": [ + "container", + [ { - "name": "location", - "type": "position" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "entity", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "combat_event", + "0x33": "player_info", + "0x34": "face_player", + "0x35": "position", + "0x36": "unlock_recipes", + "0x37": "entity_destroy", + "0x38": "remove_entity_effect", + "0x39": "resource_pack_send", + "0x3a": "respawn", + "0x3b": "entity_head_rotation", + "0x3c": "select_advancement_tab", + "0x3d": "world_border", + "0x3e": "camera", + "0x3f": "held_item_slot", + "0x40": "update_view_position", + "0x41": "update_view_distance", + "0x42": "scoreboard_display_objective", + "0x43": "entity_metadata", + "0x44": "attach_entity", + "0x45": "entity_velocity", + "0x46": "entity_equipment", + "0x47": "experience", + "0x48": "update_health", + "0x49": "scoreboard_objective", + "0x4a": "set_passengers", + "0x4b": "teams", + "0x4c": "scoreboard_score", + "0x4d": "spawn_position", + "0x4e": "update_time", + "0x4f": "title", + "0x50": "entity_sound_effect", + "0x51": "sound_effect", + "0x52": "stop_sound", + "0x53": "playerlist_header", + "0x54": "nbt_query_response", + "0x55": "collect", + "0x56": "entity_teleport", + "0x57": "advancements", + "0x58": "entity_update_attributes", + "0x59": "entity_effect", + "0x5a": "declare_recipes", + "0x5b": "tags" + }, + "type": "varint" + } + ] }, { - "name": "direction", - "type": "u8" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "trade_list": "packet_trade_list", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_named_entity_spawn": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "flags", "type": "i8" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "walkingSpeed", + "type": "f32" } ] ], @@ -1512,23 +1490,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1539,10 +1517,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1659,7 +1637,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1667,29 +1645,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -1714,6 +1684,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1744,11 +1731,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1758,11 +1745,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1772,11 +1759,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1786,11 +1773,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1800,180 +1787,193 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" - }, - { - "name": "difficultyLocked", - "type": "bool" + "name": "cameraId", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chat": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" + "name": "message", + "type": "string" }, { - "name": "length", - "type": "varint" - }, + "name": "position", + "type": "i8" + } + ] + ], + "packet_close_window": [ + "container", + [ { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "name": "windowId", + "type": "u8" } ] ], - "packet_declare_commands": [ + "packet_collect": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] + "name": "collectedEntityId", + "type": "varint" + }, + { + "name": "collectorEntityId", + "type": "varint" }, { - "name": "rootIndex", + "name": "pickupItemCount", "type": "varint" } ] ], - "packet_face_player": [ + "packet_combat_event": [ "container", [ { - "name": "feet_eyes", + "name": "event", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "isEntity", - "type": "bool" + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] }, { "name": "entityId", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "entity_feet_eyes", + "name": "message", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "string" - }, - "default": "void" + "2": "string" + } } ] } ] ], - "packet_nbt_query_response": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" } ] ], - "packet_chat": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "message", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "position", - "type": "i8" + "name": "recipe", + "type": "string" } ] ], - "packet_multi_block_change": [ + "packet_custom_payload": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "channel", + "type": "string" }, { - "name": "chunkZ", - "type": "i32" + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "records", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { @@ -1982,16 +1982,118 @@ "container", [ { - "name": "horizontalPos", - "type": "u8" + "name": "type", + "type": "string" }, { - "name": "y", - "type": "u8" + "name": "recipeId", + "type": "string" }, { - "name": "blockId", - "type": "varint" + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] } ] ] @@ -2000,95 +2102,78 @@ } ] ], - "packet_transaction": [ + "packet_difficulty": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "difficulty", + "type": "u8" }, { - "name": "accepted", + "name": "difficultyLocked", "type": "bool" } ] ], - "packet_close_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" - } - ] - ], - "packet_open_window": [ + "packet_entity": [ "container", - [ - { - "name": "windowId", - "type": "varint" - }, + [ { - "name": "inventoryType", + "name": "entityId", "type": "varint" - }, - { - "name": "windowTitle", - "type": "string" } ] ], - "packet_window_items": [ + "packet_entity_destroy": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "items", + "name": "entityIds", "type": [ "array", { - "countType": "i16", - "type": "slot" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_craft_progress_bar": [ + "packet_entity_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", - "type": "i16" + "name": "effectId", + "type": "i8" }, { - "name": "value", - "type": "i16" + "name": "amplifier", + "type": "i8" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "i8" } ] ], - "packet_set_slot": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { "name": "slot", - "type": "i16" + "type": "varint" }, { "name": "item", @@ -2096,71 +2181,108 @@ } ] ], - "packet_set_cooldown": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "itemID", + "name": "entityId", "type": "varint" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "headYaw", + "type": "i8" } ] ], - "packet_custom_payload": [ + "packet_entity_look": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_named_sound_effect": [ + "packet_entity_metadata": [ "container", [ { - "name": "soundName", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "soundCategory", + "name": "metadata", + "type": "entityMetadata" + } + ] + ], + "packet_entity_move_look": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "dX", + "type": "i16" }, { - "name": "y", - "type": "i32" + "name": "dY", + "type": "i16" }, { - "name": "z", - "type": "i32" + "name": "dZ", + "type": "i16" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "reason", - "type": "string" + "name": "soundId", + "type": "varint" + }, + { + "name": "soundCategory", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], @@ -2177,27 +2299,48 @@ } ] ], - "packet_explosion": [ + "packet_entity_teleport": [ "container", [ + { + "name": "entityId", + "type": "varint" + }, { "name": "x", - "type": "f32" + "type": "f64" }, { "name": "y", - "type": "f32" + "type": "f64" }, { "name": "z", - "type": "f32" + "type": "f64" }, { - "name": "radius", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "affectedBlockOffsets", + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", "type": [ "array", { @@ -2206,237 +2349,223 @@ "container", [ { - "name": "x", - "type": "i8" + "name": "key", + "type": "string" }, { - "name": "y", - "type": "i8" + "name": "value", + "type": "f64" }, { - "name": "z", - "type": "i8" + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] } ] ] } ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, - { - "name": "playerMotionY", - "type": "f32" - }, - { - "name": "playerMotionZ", - "type": "f32" } ] ], - "packet_unload_chunk": [ + "packet_entity_velocity": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_game_state_change": [ + "packet_experience": [ "container", [ { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", + "name": "experienceBar", "type": "f32" - } - ] - ], - "packet_open_horse_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" - }, - { - "name": "nbSlots", - "type": "varint" }, { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ + "name": "level", + "type": "varint" + }, { - "name": "keepAliveId", - "type": "i64" + "name": "totalExperience", + "type": "varint" } ] ], - "packet_map_chunk": [ + "packet_explosion": [ "container", [ { "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "groundUp", - "type": "bool" + "type": "f32" }, { - "name": "bitMap", - "type": "varint" + "name": "y", + "type": "f32" }, { - "name": "heightmaps", - "type": "nbt" + "name": "z", + "type": "f32" }, { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "radius", + "type": "f32" }, { - "name": "blockEntities", + "name": "affectedBlockOffsets", "type": [ "array", { - "countType": "varint", - "type": "nbt" + "countType": "i32", + "type": [ + "container", + [ + { + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + } + ] + ] } ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" }, { - "name": "location", - "type": "position" + "name": "playerMotionX", + "type": "f32" }, { - "name": "data", - "type": "i32" + "name": "playerMotionY", + "type": "f32" }, { - "name": "global", - "type": "bool" + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_world_particles": [ + "packet_face_player": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" + "name": "feet_eyes", + "type": "varint" }, { "name": "x", - "type": "f32" + "type": "f64" }, { "name": "y", - "type": "f32" + "type": "f64" }, { "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" + "type": "f64" }, { - "name": "particleData", - "type": "f32" + "name": "isEntity", + "type": "bool" }, { - "name": "particles", - "type": "i32" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "data", + "name": "entity_feet_eyes", "type": [ - "particleData", + "switch", { - "compareTo": "particleId" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] } ] ], - "packet_update_light": [ + "packet_game_state_change": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - }, - { - "name": "skyLightMask", - "type": "varint" + "name": "reason", + "type": "u8" }, { - "name": "blockLightMask", - "type": "varint" - }, + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "emptySkyLightMask", - "type": "varint" - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "emptyBlockLightMask", - "type": "varint" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "data", - "type": "restBuffer" + "name": "reason", + "type": "string" } ] ], @@ -2539,10 +2668,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2552,10 +2681,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2565,10 +2694,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2578,120 +2707,104 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_trade_list": [ + "packet_map_chunk": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "trades", - "type": [ - "array", - { - "countType": "u8", - "type": [ - "container", - [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - "slot" - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - } - ] - ] - } - ] + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" }, { - "name": "villagerLevel", + "name": "bitMap", "type": "varint" }, { - "name": "experience", - "type": "varint" + "name": "heightmaps", + "type": "nbt" }, { - "name": "isRegularVillager", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] } ] ], - "packet_rel_entity_move": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" + "name": "chunkX", + "type": "i32" }, { - "name": "dZ", - "type": "i16" + "name": "chunkZ", + "type": "i32" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_entity_move_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -2699,37 +2812,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "yaw", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "pitch", - "type": "i8" + "name": "y", + "type": "f64" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -2740,37 +2836,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2779,113 +2874,68 @@ } ] ], - "packet_open_book": [ + "packet_nbt_query_response": [ "container", [ { - "name": "hand", + "name": "transactionId", "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_open_sign_entity": [ + "packet_open_book": [ "container", [ { - "name": "location", - "type": "position" + "name": "hand", + "type": "varint" } ] ], - "packet_craft_recipe_response": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "recipe", - "type": "string" + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "event", + "name": "windowId", "type": "varint" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + "name": "inventoryType", + "type": "varint" }, { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "string" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" } ] ], @@ -2897,14 +2947,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2981,37 +3031,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -3023,6 +3073,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -3056,72 +3119,28 @@ } ] ], - "packet_unlock_recipes": [ + "packet_rel_entity_move": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smeltingBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmeltable", + "name": "onGround", "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -3168,206 +3187,230 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ { - "name": "action", - "type": "varint" + "name": "name", + "type": "string" }, { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "i8" }, { - "name": "x", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "z", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "new_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "speed", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" + "1": "void" + } } ] - }, + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ { - "name": "portalBoundary", + "name": "id", "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } + "option", + "string" ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "itemID", + "type": "varint" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_passengers": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "warning_blocks", + "name": "passengers", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_camera": [ + "packet_set_slot": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "windowId", + "type": "i8" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_held_item_slot": [ + "packet_sound_effect": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "soundId", + "type": "varint" + }, + { + "name": "soundCategory", + "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_update_view_position": [ + "packet_spawn_entity": [ "container", [ { - "name": "chunkX", + "name": "entityId", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" - } - ] - ], - "packet_update_view_distance": [ - "container", - [ + "name": "objectUUID", + "type": "UUID" + }, { - "name": "viewDistance", + "name": "type", "type": "varint" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + }, { - "name": "position", + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_metadata": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -3375,38 +3418,73 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "x", + "type": "f64" + }, { - "name": "entityId", - "type": "i32" + "name": "y", + "type": "f64" }, { - "name": "vehicleId", - "type": "i32" + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, { "name": "velocity", "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -3414,106 +3492,185 @@ "type": "varint" }, { - "name": "slot", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_experience": [ + "packet_spawn_entity_weather": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "totalExperience", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_update_health": [ + "packet_spawn_position": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_scoreboard_objective": [ + "packet_statistics": [ "container", [ { - "name": "name", - "type": "string" - }, + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_stop_sound": [ + "container", + [ { - "name": "action", + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "2": "string", + "3": "string" + } + } + ] + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], - "packet_set_passengers": [ + "packet_tags": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "blockTags", + "type": "tags" }, { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "itemTags", + "type": "tags" + }, + { + "name": "fluidTags", + "type": "tags" + }, + { + "name": "entityTags", + "type": "tags" } ] ], @@ -3534,11 +3691,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3548,11 +3705,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3562,11 +3719,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3576,11 +3733,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3590,11 +3747,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3604,11 +3761,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3618,11 +3775,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3632,6 +3789,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3654,62 +3812,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3726,12 +3848,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3741,10 +3863,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3754,160 +3876,274 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } + } + ] + }, + { + "name": "fadeOut", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "i32" + } + } + ] + } + ] + ], + "packet_trade_list": [ + "container", + [ + { + "name": "windowId", + "type": "varint" + }, + { + "name": "trades", + "type": [ + "array", + { + "countType": "u8", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + } + ] + ] + } + ] + }, + { + "name": "villagerLevel", + "type": "varint" + }, + { + "name": "experience", + "type": "varint" + }, + { + "name": "isRegularVillager", + "type": "bool" + } + ] + ], + "packet_transaction": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + } + ] + ], + "packet_unlock_recipes": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "filteringSmeltable", + "type": "bool" + }, + { + "name": "recipes1", + "type": [ + "array", + { + "countType": "varint", + "type": "string" } ] }, { - "name": "fadeOut", + "name": "recipes2", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "3": "i32" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_entity_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", - "type": "varint" - }, - { - "name": "soundCategory", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "entityId", + "name": "food", "type": "varint" }, { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", + "name": "foodSaturation", "type": "f32" } ] ], - "packet_stop_sound": [ - "container", - [ - { - "name": "flags", - "type": "i8" - }, - { - "name": "source", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "sound", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "2": "string", - "3": "string" - }, - "default": "void" - } - ] - } - ] - ], - "packet_sound_effect": [ + "packet_update_light": [ "container", [ { - "name": "soundId", + "name": "chunkX", "type": "varint" }, { - "name": "soundCategory", + "name": "chunkZ", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "skyLightMask", + "type": "varint" }, { - "name": "y", - "type": "i32" + "name": "blockLightMask", + "type": "varint" }, { - "name": "z", - "type": "i32" + "name": "emptySkyLightMask", + "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "emptyBlockLightMask", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "data", + "type": "restBuffer" } ] ], - "packet_playerlist_header": [ + "packet_update_time": [ "container", [ { - "name": "header", - "type": "string" + "name": "age", + "type": "i64" }, { - "name": "footer", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_collect": [ + "packet_update_view_distance": [ "container", [ { - "name": "collectedEntityId", + "name": "viewDistance", "type": "varint" - }, + } + ] + ], + "packet_update_view_position": [ + "container", + [ { - "name": "collectorEntityId", + "name": "chunkX", "type": "varint" }, { - "name": "pickupItemCount", + "name": "chunkZ", "type": "varint" } ] ], - "packet_entity_teleport": [ + "packet_vehicle_move": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "x", "type": "f64" @@ -3922,266 +4158,245 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "onGround", - "type": "bool" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_entity_update_attributes": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "properties", + "name": "radius", "type": [ - "array", + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], - "packet_select_advancement_tab": [ + "packet_world_particles": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + "name": "particleId", + "type": "i32" + }, { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] - } - ] - ] - } - ] - } - ] - ], - "packet_tags": [ - "container", - [ + "name": "longDistance", + "type": "bool" + }, { - "name": "blockTags", - "type": "tags" + "name": "x", + "type": "f32" }, { - "name": "itemTags", - "type": "tags" + "name": "y", + "type": "f32" }, { - "name": "fluidTags", - "type": "tags" + "name": "z", + "type": "f32" }, { - "name": "entityTags", - "type": "tags" + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -4190,101 +4405,55 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "entity", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "combat_event", - "0x33": "player_info", - "0x34": "face_player", - "0x35": "position", - "0x36": "unlock_recipes", - "0x37": "entity_destroy", - "0x38": "remove_entity_effect", - "0x39": "resource_pack_send", - "0x3a": "respawn", - "0x3b": "entity_head_rotation", - "0x3c": "select_advancement_tab", - "0x3d": "world_border", - "0x3e": "camera", - "0x3f": "held_item_slot", - "0x40": "update_view_position", - "0x41": "update_view_distance", - "0x42": "scoreboard_display_objective", - "0x43": "entity_metadata", - "0x44": "attach_entity", - "0x45": "entity_velocity", - "0x46": "entity_equipment", - "0x47": "experience", - "0x48": "update_health", - "0x49": "scoreboard_objective", - "0x4a": "set_passengers", - "0x4b": "teams", - "0x4c": "scoreboard_score", - "0x4d": "spawn_position", - "0x4e": "update_time", - "0x4f": "title", - "0x50": "entity_sound_effect", - "0x51": "sound_effect", - "0x52": "stop_sound", - "0x53": "playerlist_header", - "0x54": "nbt_query_response", - "0x55": "collect", - "0x56": "entity_teleport", - "0x57": "advancements", - "0x58": "entity_update_attributes", - "0x59": "entity_effect", - "0x5a": "declare_recipes", - "0x5b": "tags" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "crafting_book_data", + "0x1e": "name_item", + "0x1f": "resource_pack_receive", + "0x20": "advancement_tab", + "0x21": "select_trade", + "0x22": "set_beacon_effect", + "0x23": "held_item_slot", + "0x24": "update_command_block", + "0x25": "update_command_block_minecart", + "0x26": "set_creative_slot", + "0x27": "update_jigsaw_block", + "0x28": "update_structure_block", + "0x29": "update_sign", + "0x2a": "arm_animation", + "0x2b": "spectate", + "0x2c": "block_place", + "0x2d": "use_item" + }, + "type": "varint" } ] }, @@ -4295,538 +4464,394 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "entity_sound_effect": "packet_entity_sound_effect", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags" + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_set_difficulty": [ + "packet_arm_animation": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "hand", + "type": "varint" } ] ], - "packet_edit_book": [ + "packet_block_dig": [ "container", [ { - "name": "new_book", - "type": "slot" + "name": "status", + "type": "varint" }, { - "name": "signing", - "type": "bool" + "name": "location", + "type": "position" }, { - "name": "hand", - "type": "varint" + "name": "face", + "type": "i8" } ] ], - "packet_query_entity_nbt": [ + "packet_block_place": [ "container", [ { - "name": "transactionId", + "name": "hand", "type": "varint" }, { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_pick_item": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "slot", + "name": "direction", "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ + }, { - "name": "name", - "type": "string" + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" } ] ], - "packet_select_trade": [ + "packet_chat": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "message", + "type": "string" } ] ], - "packet_set_beacon_effect": [ + "packet_client_command": [ "container", [ { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", + "name": "actionId", "type": "varint" } ] ], - "packet_update_command_block": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", + "name": "windowId", "type": "u8" } ] ], - "packet_update_command_block_minecart": [ + "packet_craft_recipe_request": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "command", + "name": "recipe", "type": "string" }, { - "name": "track_output", + "name": "makeAll", "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_crafting_book_data": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", + "name": "type", "type": "varint" }, { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", - "type": "f32" - }, - { - "name": "seed", - "type": "varlong" - }, - { - "name": "flags", - "type": "u8" + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "smeltingFilter", + "type": "bool" + }, + { + "name": "blastingBookOpen", + "type": "bool" + }, + { + "name": "blastingFilter", + "type": "bool" + }, + { + "name": "smokingBookOpen", + "type": "bool" + }, + { + "name": "smokingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], - "packet_tab_complete": [ + "packet_custom_payload": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "text", - "type": "string" + "name": "data", + "type": "restBuffer" } ] ], - "packet_chat": [ + "packet_edit_book": [ "container", [ { - "name": "message", - "type": "string" - } - ] - ], - "packet_client_command": [ - "container", - [ + "name": "new_book", + "type": "slot" + }, { - "name": "actionId", + "name": "signing", + "type": "bool" + }, + { + "name": "hand", "type": "varint" } ] ], - "packet_settings": [ + "packet_enchant_item": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", + "name": "windowId", "type": "i8" }, { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" + "name": "enchantment", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "actionId", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_enchant_item": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "onGround", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_held_item_slot": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", + "name": "slotId", "type": "i16" - }, - { - "name": "mode", - "type": "i8" - }, - { - "name": "item", - "type": "slot" } ] ], - "packet_close_window": [ + "packet_keep_alive": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_custom_payload": [ + "packet_lock_difficulty": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "locked", + "type": "bool" } ] ], - "packet_use_entity": [ + "packet_look": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "f32" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "f32" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_name_item": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "name", + "type": "string" } ] ], - "packet_lock_difficulty": [ + "packet_pick_item": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], @@ -4880,135 +4905,133 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "location", + "type": "position" + } + ] + ], + "packet_query_entity_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_flying": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_select_trade": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + "name": "slot", + "type": "varint" + } + ] + ], + "packet_set_beacon_effect": [ + "container", + [ { - "name": "yaw", - "type": "f32" + "name": "primary_effect", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "secondary_effect", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_creative_slot": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "slot", + "type": "i16" }, { - "name": "rightPaddle", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_craft_recipe_request": [ + "packet_set_difficulty": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" - }, - { - "name": "makeAll", - "type": "bool" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_abilities": [ + "packet_settings": [ "container", [ { - "name": "flags", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "chatFlags", + "type": "varint" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5029,100 +5052,80 @@ } ] ], - "packet_crafting_book_data": [ + "packet_tab_complete": [ "container", [ { - "name": "type", + "name": "transactionId", "type": "varint" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "smeltingFilter", - "type": "bool" - }, - { - "name": "blastingBookOpen", - "type": "bool" - }, - { - "name": "blastingFilter", - "type": "bool" - }, - { - "name": "smokingBookOpen", - "type": "bool" - }, - { - "name": "smokingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_transaction": [ "container", [ { - "name": "slotId", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" + }, + { + "name": "accepted", + "type": "bool" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "location", + "type": "position" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] + ], + "packet_update_command_block_minecart": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5151,75 +5154,159 @@ "container", [ { - "name": "location", - "type": "position" + "name": "location", + "type": "position" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" }, { - "name": "text1", - "type": "string" + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "hand", "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "cursorX", - "type": "f32" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "insideBlock", - "type": "bool" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -5232,144 +5319,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "crafting_book_data", - "0x1e": "name_item", - "0x1f": "resource_pack_receive", - "0x20": "advancement_tab", - "0x21": "select_trade", - "0x22": "set_beacon_effect", - "0x23": "held_item_slot", - "0x24": "update_command_block", - "0x25": "update_command_block_minecart", - "0x26": "set_creative_slot", - "0x27": "update_jigsaw_block", - "0x28": "update_structure_block", - "0x29": "update_sign", - "0x2a": "arm_animation", - "0x2b": "spectate", - "0x2c": "block_place", - "0x2d": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.15.1/protocol.json b/data/pc/1.15.1/protocol.json index 3d4acadaa..e8118b28c 100644 --- a/data/pc/1.15.1/protocol.json +++ b/data/pc/1.15.1/protocol.json @@ -1,412 +1,75 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "23": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "32": [ - "container", - [ + "name": "has_command", + "signed": false, + "size": 1 + }, { - "name": "item", - "type": "slot" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { "name": "extraNodeData", @@ -444,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -454,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -476,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -489,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -508,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -530,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -543,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -562,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -584,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -597,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -616,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -638,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -651,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -663,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -743,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -759,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -768,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -779,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -793,173 +456,348 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": {} - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ "container", [ { - "name": "name", + "anon": true, "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" } - } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + "compareTo": "type" } ] } ] ] } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } - } - ] - }, + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } - } - ] + "compareTo": "particleId" } ] - ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "23": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "32": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ] + } } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "time", - "type": "i64" + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] - ], + ] + } + ], + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { "packet": [ "container", [ @@ -968,11 +806,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "mappings": {}, + "type": "varint" } ] }, @@ -982,96 +817,186 @@ "switch", { "compareTo": "name", - "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" - } + "fields": {} } ] } ] ] } - } - }, - "login": { - "toClient": { + }, + "toServer": { "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_encryption_begin": [ + "packet": [ "container", [ { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } } ] } ] ], - "packet_success": [ - "container", - [ - { - "name": "uuid", - "type": "string" - }, - { - "name": "username", - "type": "string" - } - ] - ], - "packet_compress": [ + "packet_legacy_server_list_ping": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "payload", + "type": "u8" } ] ], - "packet_login_plugin_request": [ + "packet_set_protocol": [ "container", [ { - "name": "messageId", + "name": "protocolVersion", "type": "varint" }, { - "name": "channel", + "name": "serverHost", "type": "string" }, { - "name": "data", - "type": "restBuffer" + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" + } + ] + ] + } + } + }, + "status": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "server_info": "packet_server_info" + } + } + ] } ] ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } + } + ] + } + ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1080,14 +1005,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "disconnect", "0x01": "encryption_begin", "0x02": "success", "0x03": "compress", "0x04": "login_plugin_request" - } + }, + "type": "varint" } ] }, @@ -1098,26 +1023,31 @@ { "compareTo": "name", "fields": { + "compress": "packet_compress", "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_compress": [ "container", [ { - "name": "username", + "name": "threshold", + "type": "varint" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", "type": "string" } ] @@ -1126,7 +1056,11 @@ "container", [ { - "name": "sharedSecret", + "name": "serverId", + "type": "string" + }, + { + "name": "publicKey", "type": [ "buffer", { @@ -1145,22 +1079,40 @@ } ] ], - "packet_login_plugin_response": [ + "packet_login_plugin_request": [ "container", [ { "name": "messageId", "type": "varint" }, + { + "name": "channel", + "type": "string" + }, { "name": "data", - "type": [ - "option", - "restBuffer" - ] + "type": "restBuffer" } ] ], + "packet_success": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1169,12 +1121,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "login_start", "0x01": "encryption_begin", "0x02": "login_plugin_response" - } + }, + "type": "varint" } ] }, @@ -1185,260 +1137,317 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "velocity", - "type": "vec3i16" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_login_plugin_response": [ "container", [ { - "name": "entityId", + "name": "messageId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_spawn_entity_weather": [ + "packet_login_start": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "packet": [ + "container", + [ { - "name": "y", - "type": "f64" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "tab_complete", + "0x12": "declare_commands", + "0x13": "transaction", + "0x14": "close_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "open_horse_window", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "update_light", + "0x26": "login", + "0x27": "map", + "0x28": "trade_list", + "0x29": "rel_entity_move", + "0x2a": "entity_move_look", + "0x2b": "entity_look", + "0x2c": "entity", + "0x2d": "vehicle_move", + "0x2e": "open_book", + "0x2f": "open_window", + "0x30": "open_sign_entity", + "0x31": "craft_recipe_response", + "0x32": "abilities", + "0x33": "combat_event", + "0x34": "player_info", + "0x35": "face_player", + "0x36": "position", + "0x37": "unlock_recipes", + "0x38": "entity_destroy", + "0x39": "remove_entity_effect", + "0x3a": "resource_pack_send", + "0x3b": "respawn", + "0x3c": "entity_head_rotation", + "0x3d": "select_advancement_tab", + "0x3e": "world_border", + "0x3f": "camera", + "0x40": "held_item_slot", + "0x41": "update_view_position", + "0x42": "update_view_distance", + "0x43": "scoreboard_display_objective", + "0x44": "entity_metadata", + "0x45": "attach_entity", + "0x46": "entity_velocity", + "0x47": "entity_equipment", + "0x48": "experience", + "0x49": "update_health", + "0x4a": "scoreboard_objective", + "0x4b": "set_passengers", + "0x4c": "teams", + "0x4d": "scoreboard_score", + "0x4e": "spawn_position", + "0x4f": "update_time", + "0x50": "title", + "0x51": "entity_sound_effect", + "0x52": "sound_effect", + "0x53": "stop_sound", + "0x54": "playerlist_header", + "0x55": "nbt_query_response", + "0x56": "collect", + "0x57": "entity_teleport", + "0x58": "advancements", + "0x59": "entity_update_attributes", + "0x5a": "entity_effect", + "0x5b": "declare_recipes", + "0x5c": "tags" + }, + "type": "varint" + } + ] }, { - "name": "z", - "type": "f64" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "trade_list": "packet_trade_list", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_spawn_entity_living": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "flags", "type": "i8" }, { - "name": "headPitch", - "type": "i8" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "velocity", - "type": "vec3i16" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity_painting": [ + "packet_acknowledge_player_digging": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" - }, { "name": "location", "type": "position" }, { - "name": "direction", - "type": "u8" - } - ] - ], - "packet_named_entity_spawn": [ - "container", - [ - { - "name": "entityId", + "name": "block", "type": "varint" }, { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", + "name": "status", "type": "varint" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "successful", + "type": "bool" } ] ], @@ -1504,23 +1513,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1531,10 +1540,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1651,7 +1660,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1659,29 +1668,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -1706,6 +1707,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1736,11 +1754,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1750,11 +1768,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1764,11 +1782,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1778,11 +1796,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1792,180 +1810,193 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" - }, - { - "name": "difficultyLocked", - "type": "bool" + "name": "cameraId", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chat": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" + "name": "message", + "type": "string" }, { - "name": "length", - "type": "varint" - }, + "name": "position", + "type": "i8" + } + ] + ], + "packet_close_window": [ + "container", + [ { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "name": "windowId", + "type": "u8" } ] ], - "packet_declare_commands": [ + "packet_collect": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] + "name": "collectedEntityId", + "type": "varint" + }, + { + "name": "collectorEntityId", + "type": "varint" }, { - "name": "rootIndex", + "name": "pickupItemCount", "type": "varint" } ] ], - "packet_face_player": [ + "packet_combat_event": [ "container", [ { - "name": "feet_eyes", + "name": "event", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "isEntity", - "type": "bool" + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] }, { "name": "entityId", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "entity_feet_eyes", + "name": "message", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "string" - }, - "default": "void" + "2": "string" + } } ] } ] ], - "packet_nbt_query_response": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" } ] ], - "packet_chat": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "message", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "position", - "type": "i8" + "name": "recipe", + "type": "string" } ] ], - "packet_multi_block_change": [ + "packet_custom_payload": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "channel", + "type": "string" }, { - "name": "chunkZ", - "type": "i32" + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "records", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { @@ -1974,16 +2005,118 @@ "container", [ { - "name": "horizontalPos", - "type": "u8" + "name": "type", + "type": "string" }, { - "name": "y", - "type": "u8" + "name": "recipeId", + "type": "string" }, { - "name": "blockId", - "type": "varint" + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] } ] ] @@ -1992,95 +2125,78 @@ } ] ], - "packet_transaction": [ + "packet_difficulty": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "difficulty", + "type": "u8" }, { - "name": "accepted", + "name": "difficultyLocked", "type": "bool" } ] ], - "packet_close_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" - } - ] - ], - "packet_open_window": [ - "container", - [ - { - "name": "windowId", - "type": "varint" - }, + "packet_entity": [ + "container", + [ { - "name": "inventoryType", + "name": "entityId", "type": "varint" - }, - { - "name": "windowTitle", - "type": "string" } ] ], - "packet_window_items": [ + "packet_entity_destroy": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "items", + "name": "entityIds", "type": [ "array", { - "countType": "i16", - "type": "slot" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_craft_progress_bar": [ + "packet_entity_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", - "type": "i16" + "name": "effectId", + "type": "i8" }, { - "name": "value", - "type": "i16" + "name": "amplifier", + "type": "i8" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "i8" } ] ], - "packet_set_slot": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { "name": "slot", - "type": "i16" + "type": "varint" }, { "name": "item", @@ -2088,71 +2204,108 @@ } ] ], - "packet_set_cooldown": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "itemID", + "name": "entityId", "type": "varint" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "headYaw", + "type": "i8" } ] ], - "packet_custom_payload": [ + "packet_entity_look": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_named_sound_effect": [ + "packet_entity_metadata": [ "container", [ { - "name": "soundName", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "soundCategory", + "name": "metadata", + "type": "entityMetadata" + } + ] + ], + "packet_entity_move_look": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "dX", + "type": "i16" }, { - "name": "y", - "type": "i32" + "name": "dY", + "type": "i16" }, { - "name": "z", - "type": "i32" + "name": "dZ", + "type": "i16" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "reason", - "type": "string" + "name": "soundId", + "type": "varint" + }, + { + "name": "soundCategory", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], @@ -2169,27 +2322,48 @@ } ] ], - "packet_explosion": [ + "packet_entity_teleport": [ "container", [ + { + "name": "entityId", + "type": "varint" + }, { "name": "x", - "type": "f32" + "type": "f64" }, { "name": "y", - "type": "f32" + "type": "f64" }, { "name": "z", - "type": "f32" + "type": "f64" }, { - "name": "radius", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "affectedBlockOffsets", + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", "type": [ "array", { @@ -2198,182 +2372,141 @@ "container", [ { - "name": "x", - "type": "i8" + "name": "key", + "type": "string" }, { - "name": "y", - "type": "i8" + "name": "value", + "type": "f64" }, { - "name": "z", - "type": "i8" + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] } ] ] } ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, - { - "name": "playerMotionY", - "type": "f32" - }, - { - "name": "playerMotionZ", - "type": "f32" } ] ], - "packet_unload_chunk": [ + "packet_entity_velocity": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_game_state_change": [ + "packet_experience": [ "container", [ { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", + "name": "experienceBar", "type": "f32" - } - ] - ], - "packet_open_horse_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" }, { - "name": "nbSlots", + "name": "level", "type": "varint" }, { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" + "name": "totalExperience", + "type": "varint" } ] ], - "packet_map_chunk": [ + "packet_explosion": [ "container", [ { "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" + "type": "f32" }, { - "name": "groundUp", - "type": "bool" + "name": "y", + "type": "f32" }, { - "name": "bitMap", - "type": "varint" + "name": "z", + "type": "f32" }, { - "name": "heightmaps", - "type": "nbt" + "name": "radius", + "type": "f32" }, { - "name": "biomes", + "name": "affectedBlockOffsets", "type": [ - "switch", + "array", { - "compareTo": "groundUp", - "fields": { - "false": "void", - "true": [ - "array", + "countType": "i32", + "type": [ + "container", + [ { - "count": 1024, - "type": "i32" + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" } ] - } - } - ] - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" + ] } ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" }, { - "name": "location", - "type": "position" + "name": "playerMotionX", + "type": "f32" }, { - "name": "data", - "type": "i32" + "name": "playerMotionY", + "type": "f32" }, { - "name": "global", - "type": "bool" + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_world_particles": [ + "packet_face_player": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" + "name": "feet_eyes", + "type": "varint" }, { "name": "x", @@ -2388,66 +2521,74 @@ "type": "f64" }, { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" + "name": "isEntity", + "type": "bool" }, { - "name": "particles", - "type": "i32" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "data", + "name": "entity_feet_eyes", "type": [ - "particleData", + "switch", { - "compareTo": "particleId" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] } ] ], - "packet_update_light": [ + "packet_game_state_change": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - }, - { - "name": "skyLightMask", - "type": "varint" + "name": "reason", + "type": "u8" }, { - "name": "blockLightMask", - "type": "varint" - }, + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "emptySkyLightMask", - "type": "varint" - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "emptyBlockLightMask", - "type": "varint" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "data", - "type": "restBuffer" + "name": "reason", + "type": "string" } ] ], @@ -2558,142 +2699,162 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "i8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "i8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } } ] + } + ] + ], + "packet_map_chunk": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" + }, + { + "name": "bitMap", + "type": "varint" + }, + { + "name": "heightmaps", + "type": "nbt" }, { - "name": "x", + "name": "biomes", "type": [ "switch", { - "compareTo": "columns", + "compareTo": "groundUp", "fields": { - "0": "void" - }, - "default": "i8" + "false": "void", + "true": [ + "array", + { + "count": 1024, + "type": "i32" + } + ] + } } ] }, { - "name": "y", + "name": "chunkData", "type": [ - "switch", + "buffer", { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "i8" + "countType": "varint" } ] }, { - "name": "data", + "name": "blockEntities", "type": [ - "switch", + "array", { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] + "countType": "varint", + "type": "nbt" } ] } ] ], - "packet_trade_list": [ + "packet_multi_block_change": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "chunkX", + "type": "i32" }, { - "name": "trades", + "name": "chunkZ", + "type": "i32" + }, + { + "name": "records", "type": [ "array", { - "countType": "u8", + "countType": "varint", "type": [ "container", [ { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - "slot" - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" + "name": "horizontalPos", + "type": "u8" }, { - "name": "priceMultiplier", - "type": "f32" + "name": "y", + "type": "u8" }, { - "name": "demand", - "type": "i32" + "name": "blockId", + "type": "varint" } ] ] } ] - }, - { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" - }, - { - "name": "isRegularVillager", - "type": "bool" - }, - { - "name": "canRestock", - "type": "bool" } ] ], - "packet_rel_entity_move": [ + "packet_named_entity_spawn": [ "container", [ { @@ -2701,41 +2862,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_move_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dX", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dY", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -2744,60 +2884,34 @@ { "name": "pitch", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2806,113 +2920,68 @@ } ] ], - "packet_open_book": [ + "packet_nbt_query_response": [ "container", [ { - "name": "hand", + "name": "transactionId", "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_open_sign_entity": [ + "packet_open_book": [ "container", [ { - "name": "location", - "type": "position" + "name": "hand", + "type": "varint" } ] ], - "packet_craft_recipe_response": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "recipe", - "type": "string" + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", - [ - { - "name": "event", - "type": "varint" - }, - { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, + [ { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "windowId", + "type": "varint" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + "name": "inventoryType", + "type": "varint" }, { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "string" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" } ] ], @@ -2924,14 +2993,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -3008,37 +3077,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -3050,6 +3119,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -3083,72 +3165,28 @@ } ] ], - "packet_unlock_recipes": [ + "packet_rel_entity_move": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smeltingBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmeltable", + "name": "onGround", "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -3199,206 +3237,185 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ { - "name": "action", - "type": "varint" - }, - { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "name", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "i8" }, { - "name": "old_radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "new_radius", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] - }, + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] + "name": "itemName", + "type": "string" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "warning_blocks", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_camera": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "id", + "type": [ + "option", + "string" + ] } ] ], - "packet_held_item_slot": [ + "packet_set_cooldown": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "itemID", + "type": "varint" + }, + { + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_update_view_position": [ + "packet_set_passengers": [ "container", [ { - "name": "chunkX", + "name": "entityId", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_update_view_distance": [ + "packet_set_slot": [ "container", [ { - "name": "viewDistance", - "type": "varint" + "name": "windowId", + "type": "i8" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_scoreboard_display_objective": [ + "packet_sound_effect": [ "container", [ { - "name": "position", - "type": "i8" + "name": "soundId", + "type": "varint" }, { - "name": "name", - "type": "string" + "name": "soundCategory", + "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_entity_metadata": [ + "packet_spawn_entity": [ "container", [ { @@ -3406,38 +3423,114 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_attach_entity": [ + "packet_spawn_entity_experience_orb": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "vehicleId", - "type": "i32" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -3445,109 +3538,188 @@ "type": "varint" }, { - "name": "slot", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_experience": [ + "packet_spawn_entity_weather": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "totalExperience", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_update_health": [ + "packet_spawn_position": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ { - "name": "foodSaturation", - "type": "f32" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_scoreboard_objective": [ + "packet_stop_sound": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "action", + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "2": "string", + "3": "string" + } } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "passengers", + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], + "packet_tags": [ + "container", + [ + { + "name": "blockTags", + "type": "tags" + }, + { + "name": "itemTags", + "type": "tags" + }, + { + "name": "fluidTags", + "type": "tags" + }, + { + "name": "entityTags", + "type": "tags" + } + ] + ], "packet_teams": [ "container", [ @@ -3565,11 +3737,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3579,11 +3751,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3593,11 +3765,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3607,11 +3779,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3621,11 +3793,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3635,11 +3807,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3649,11 +3821,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3663,6 +3835,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3685,62 +3858,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3757,12 +3894,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3772,10 +3909,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3785,10 +3922,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3798,147 +3935,269 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } + } + ] + } + ] + ], + "packet_trade_list": [ + "container", + [ + { + "name": "windowId", + "type": "varint" + }, + { + "name": "trades", + "type": [ + "array", + { + "countType": "u8", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] } ] + }, + { + "name": "villagerLevel", + "type": "varint" + }, + { + "name": "experience", + "type": "varint" + }, + { + "name": "isRegularVillager", + "type": "bool" + }, + { + "name": "canRestock", + "type": "bool" + } + ] + ], + "packet_transaction": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" } ] ], - "packet_entity_sound_effect": [ + "packet_unlock_recipes": [ "container", [ { - "name": "soundId", + "name": "action", "type": "varint" }, { - "name": "soundCategory", - "type": "varint" + "name": "craftingBookOpen", + "type": "bool" }, { - "name": "entityId", - "type": "varint" + "name": "filteringCraftable", + "type": "bool" }, { - "name": "volume", - "type": "f32" + "name": "smeltingBookOpen", + "type": "bool" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_stop_sound": [ - "container", - [ - { - "name": "flags", - "type": "i8" + "name": "filteringSmeltable", + "type": "bool" }, { - "name": "source", + "name": "recipes1", "type": [ - "switch", + "array", { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" + "countType": "varint", + "type": "string" } ] }, { - "name": "sound", + "name": "recipes2", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "action", + "default": "void", "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" }, { - "name": "soundCategory", + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_light": [ + "container", + [ + { + "name": "chunkX", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "chunkZ", + "type": "varint" }, { - "name": "y", - "type": "i32" + "name": "skyLightMask", + "type": "varint" }, { - "name": "z", - "type": "i32" + "name": "blockLightMask", + "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "emptySkyLightMask", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "emptyBlockLightMask", + "type": "varint" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_playerlist_header": [ + "packet_update_time": [ "container", [ { - "name": "header", - "type": "string" + "name": "age", + "type": "i64" }, { - "name": "footer", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_collect": [ + "packet_update_view_distance": [ "container", [ { - "name": "collectedEntityId", + "name": "viewDistance", "type": "varint" - }, + } + ] + ], + "packet_update_view_position": [ + "container", + [ { - "name": "collectorEntityId", + "name": "chunkX", "type": "varint" }, { - "name": "pickupItemCount", + "name": "chunkZ", "type": "varint" } ] ], - "packet_entity_teleport": [ + "packet_vehicle_move": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "x", "type": "f64" @@ -3953,287 +4212,245 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "type": "f32" } ] ], - "packet_entity_update_attributes": [ + "packet_window_items": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "properties", + "name": "items", "type": [ "array", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "countType": "i16", + "type": "slot" } ] } ] ], - "packet_entity_effect": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "effectId", - "type": "i8" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "amplifier", - "type": "i8" + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] }, { - "name": "duration", - "type": "varint" + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] }, { - "name": "hideParticles", - "type": "i8" - } - ] - ], - "packet_select_advancement_tab": [ - "container", - [ - { - "name": "id", + "name": "warning_time", "type": [ - "option", - "string" + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + }, { - "name": "recipes", + "name": "warning_blocks", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_tags": [ + "packet_world_event": [ "container", [ { - "name": "blockTags", - "type": "tags" + "name": "effectId", + "type": "i32" }, { - "name": "itemTags", - "type": "tags" + "name": "location", + "type": "position" }, { - "name": "fluidTags", - "type": "tags" + "name": "data", + "type": "i32" }, { - "name": "entityTags", - "type": "tags" + "name": "global", + "type": "bool" } ] ], - "packet_acknowledge_player_digging": [ + "packet_world_particles": [ "container", [ { - "name": "location", - "type": "position" + "name": "particleId", + "type": "i32" }, { - "name": "block", - "type": "varint" + "name": "longDistance", + "type": "bool" }, { - "name": "status", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "successful", - "type": "bool" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -4242,102 +4459,55 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "tab_complete", - "0x12": "declare_commands", - "0x13": "transaction", - "0x14": "close_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "open_horse_window", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "update_light", - "0x26": "login", - "0x27": "map", - "0x28": "trade_list", - "0x29": "rel_entity_move", - "0x2a": "entity_move_look", - "0x2b": "entity_look", - "0x2c": "entity", - "0x2d": "vehicle_move", - "0x2e": "open_book", - "0x2f": "open_window", - "0x30": "open_sign_entity", - "0x31": "craft_recipe_response", - "0x32": "abilities", - "0x33": "combat_event", - "0x34": "player_info", - "0x35": "face_player", - "0x36": "position", - "0x37": "unlock_recipes", - "0x38": "entity_destroy", - "0x39": "remove_entity_effect", - "0x3a": "resource_pack_send", - "0x3b": "respawn", - "0x3c": "entity_head_rotation", - "0x3d": "select_advancement_tab", - "0x3e": "world_border", - "0x3f": "camera", - "0x40": "held_item_slot", - "0x41": "update_view_position", - "0x42": "update_view_distance", - "0x43": "scoreboard_display_objective", - "0x44": "entity_metadata", - "0x45": "attach_entity", - "0x46": "entity_velocity", - "0x47": "entity_equipment", - "0x48": "experience", - "0x49": "update_health", - "0x4a": "scoreboard_objective", - "0x4b": "set_passengers", - "0x4c": "teams", - "0x4d": "scoreboard_score", - "0x4e": "spawn_position", - "0x4f": "update_time", - "0x50": "title", - "0x51": "entity_sound_effect", - "0x52": "sound_effect", - "0x53": "stop_sound", - "0x54": "playerlist_header", - "0x55": "nbt_query_response", - "0x56": "collect", - "0x57": "entity_teleport", - "0x58": "advancements", - "0x59": "entity_update_attributes", - "0x5a": "entity_effect", - "0x5b": "declare_recipes", - "0x5c": "tags" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "crafting_book_data", + "0x1e": "name_item", + "0x1f": "resource_pack_receive", + "0x20": "advancement_tab", + "0x21": "select_trade", + "0x22": "set_beacon_effect", + "0x23": "held_item_slot", + "0x24": "update_command_block", + "0x25": "update_command_block_minecart", + "0x26": "set_creative_slot", + "0x27": "update_jigsaw_block", + "0x28": "update_structure_block", + "0x29": "update_sign", + "0x2a": "arm_animation", + "0x2b": "spectate", + "0x2c": "block_place", + "0x2d": "use_item" + }, + "type": "varint" } ] }, @@ -4348,539 +4518,394 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "entity_sound_effect": "packet_entity_sound_effect", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "acknowledge_player_digging": "packet_acknowledge_player_digging" + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_set_difficulty": [ + "packet_arm_animation": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "hand", + "type": "varint" } ] ], - "packet_edit_book": [ + "packet_block_dig": [ "container", [ { - "name": "new_book", - "type": "slot" + "name": "status", + "type": "varint" }, { - "name": "signing", - "type": "bool" + "name": "location", + "type": "position" }, { - "name": "hand", - "type": "varint" + "name": "face", + "type": "i8" } ] ], - "packet_query_entity_nbt": [ + "packet_block_place": [ "container", [ { - "name": "transactionId", + "name": "hand", "type": "varint" }, { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_pick_item": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "slot", + "name": "direction", "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ + }, { - "name": "name", - "type": "string" + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" } ] ], - "packet_select_trade": [ + "packet_chat": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "message", + "type": "string" } ] ], - "packet_set_beacon_effect": [ + "packet_client_command": [ "container", [ { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", + "name": "actionId", "type": "varint" } ] ], - "packet_update_command_block": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", + "name": "windowId", "type": "u8" } ] ], - "packet_update_command_block_minecart": [ + "packet_craft_recipe_request": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "command", + "name": "recipe", "type": "string" }, { - "name": "track_output", + "name": "makeAll", "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_crafting_book_data": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", + "name": "type", "type": "varint" }, { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", - "type": "f32" - }, - { - "name": "seed", - "type": "varlong" - }, - { - "name": "flags", - "type": "u8" + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "smeltingFilter", + "type": "bool" + }, + { + "name": "blastingBookOpen", + "type": "bool" + }, + { + "name": "blastingFilter", + "type": "bool" + }, + { + "name": "smokingBookOpen", + "type": "bool" + }, + { + "name": "smokingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], - "packet_tab_complete": [ + "packet_custom_payload": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "text", - "type": "string" + "name": "data", + "type": "restBuffer" } ] ], - "packet_chat": [ + "packet_edit_book": [ "container", [ { - "name": "message", - "type": "string" - } - ] - ], - "packet_client_command": [ - "container", - [ + "name": "new_book", + "type": "slot" + }, { - "name": "actionId", + "name": "signing", + "type": "bool" + }, + { + "name": "hand", "type": "varint" } ] ], - "packet_settings": [ + "packet_enchant_item": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", + "name": "windowId", "type": "i8" }, { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" + "name": "enchantment", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "actionId", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_enchant_item": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "onGround", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_held_item_slot": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", + "name": "slotId", "type": "i16" - }, - { - "name": "mode", - "type": "i8" - }, - { - "name": "item", - "type": "slot" } ] ], - "packet_close_window": [ + "packet_keep_alive": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_custom_payload": [ + "packet_lock_difficulty": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "locked", + "type": "bool" } ] ], - "packet_use_entity": [ + "packet_look": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "f32" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "f32" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_name_item": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "name", + "type": "string" } ] ], - "packet_lock_difficulty": [ + "packet_pick_item": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], @@ -4934,135 +4959,133 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "location", + "type": "position" + } + ] + ], + "packet_query_entity_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_flying": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_select_trade": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + "name": "slot", + "type": "varint" + } + ] + ], + "packet_set_beacon_effect": [ + "container", + [ { - "name": "yaw", - "type": "f32" + "name": "primary_effect", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "secondary_effect", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_creative_slot": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "slot", + "type": "i16" }, { - "name": "rightPaddle", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_craft_recipe_request": [ + "packet_set_difficulty": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" - }, - { - "name": "makeAll", - "type": "bool" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_abilities": [ + "packet_settings": [ "container", [ { - "name": "flags", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "chatFlags", + "type": "varint" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5083,100 +5106,80 @@ } ] ], - "packet_crafting_book_data": [ + "packet_tab_complete": [ "container", [ { - "name": "type", + "name": "transactionId", "type": "varint" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "smeltingFilter", - "type": "bool" - }, - { - "name": "blastingBookOpen", - "type": "bool" - }, - { - "name": "blastingFilter", - "type": "bool" - }, - { - "name": "smokingBookOpen", - "type": "bool" - }, - { - "name": "smokingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_transaction": [ "container", [ { - "name": "slotId", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" + }, + { + "name": "accepted", + "type": "bool" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "location", + "type": "position" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] + ], + "packet_update_command_block_minecart": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5205,75 +5208,159 @@ "container", [ { - "name": "location", - "type": "position" + "name": "location", + "type": "position" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" }, { - "name": "text1", - "type": "string" + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "hand", "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "cursorX", - "type": "f32" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "insideBlock", - "type": "bool" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -5286,144 +5373,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "crafting_book_data", - "0x1e": "name_item", - "0x1f": "resource_pack_receive", - "0x20": "advancement_tab", - "0x21": "select_trade", - "0x22": "set_beacon_effect", - "0x23": "held_item_slot", - "0x24": "update_command_block", - "0x25": "update_command_block_minecart", - "0x26": "set_creative_slot", - "0x27": "update_jigsaw_block", - "0x28": "update_structure_block", - "0x29": "update_sign", - "0x2a": "arm_animation", - "0x2b": "spectate", - "0x2c": "block_place", - "0x2d": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.15.2/protocol.json b/data/pc/1.15.2/protocol.json index 3d4acadaa..e8118b28c 100644 --- a/data/pc/1.15.2/protocol.json +++ b/data/pc/1.15.2/protocol.json @@ -1,412 +1,75 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "23": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "32": [ - "container", - [ + "name": "has_command", + "signed": false, + "size": 1 + }, { - "name": "item", - "type": "slot" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { "name": "extraNodeData", @@ -444,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -454,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -476,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -489,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -508,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -530,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -543,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -562,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -584,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -597,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -616,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -638,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -651,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -663,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -743,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -759,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -768,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -779,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -793,173 +456,348 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": {} - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ "container", [ { - "name": "name", + "anon": true, "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" } - } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + "compareTo": "type" } ] } ] ] } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } - } - ] - }, + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } - } - ] + "compareTo": "particleId" } ] - ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "23": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "32": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ] + } } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "time", - "type": "i64" + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] - ], + ] + } + ], + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { "packet": [ "container", [ @@ -968,11 +806,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "mappings": {}, + "type": "varint" } ] }, @@ -982,96 +817,186 @@ "switch", { "compareTo": "name", - "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" - } + "fields": {} } ] } ] ] } - } - }, - "login": { - "toClient": { + }, + "toServer": { "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_encryption_begin": [ + "packet": [ "container", [ { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } } ] } ] ], - "packet_success": [ - "container", - [ - { - "name": "uuid", - "type": "string" - }, - { - "name": "username", - "type": "string" - } - ] - ], - "packet_compress": [ + "packet_legacy_server_list_ping": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "payload", + "type": "u8" } ] ], - "packet_login_plugin_request": [ + "packet_set_protocol": [ "container", [ { - "name": "messageId", + "name": "protocolVersion", "type": "varint" }, { - "name": "channel", + "name": "serverHost", "type": "string" }, { - "name": "data", - "type": "restBuffer" + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" + } + ] + ] + } + } + }, + "status": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "server_info": "packet_server_info" + } + } + ] } ] ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } + } + ] + } + ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1080,14 +1005,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "disconnect", "0x01": "encryption_begin", "0x02": "success", "0x03": "compress", "0x04": "login_plugin_request" - } + }, + "type": "varint" } ] }, @@ -1098,26 +1023,31 @@ { "compareTo": "name", "fields": { + "compress": "packet_compress", "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_compress": [ "container", [ { - "name": "username", + "name": "threshold", + "type": "varint" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", "type": "string" } ] @@ -1126,7 +1056,11 @@ "container", [ { - "name": "sharedSecret", + "name": "serverId", + "type": "string" + }, + { + "name": "publicKey", "type": [ "buffer", { @@ -1145,22 +1079,40 @@ } ] ], - "packet_login_plugin_response": [ + "packet_login_plugin_request": [ "container", [ { "name": "messageId", "type": "varint" }, + { + "name": "channel", + "type": "string" + }, { "name": "data", - "type": [ - "option", - "restBuffer" - ] + "type": "restBuffer" } ] ], + "packet_success": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1169,12 +1121,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "login_start", "0x01": "encryption_begin", "0x02": "login_plugin_response" - } + }, + "type": "varint" } ] }, @@ -1185,260 +1137,317 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "velocity", - "type": "vec3i16" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_login_plugin_response": [ "container", [ { - "name": "entityId", + "name": "messageId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_spawn_entity_weather": [ + "packet_login_start": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "packet": [ + "container", + [ { - "name": "y", - "type": "f64" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "tab_complete", + "0x12": "declare_commands", + "0x13": "transaction", + "0x14": "close_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "open_horse_window", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "update_light", + "0x26": "login", + "0x27": "map", + "0x28": "trade_list", + "0x29": "rel_entity_move", + "0x2a": "entity_move_look", + "0x2b": "entity_look", + "0x2c": "entity", + "0x2d": "vehicle_move", + "0x2e": "open_book", + "0x2f": "open_window", + "0x30": "open_sign_entity", + "0x31": "craft_recipe_response", + "0x32": "abilities", + "0x33": "combat_event", + "0x34": "player_info", + "0x35": "face_player", + "0x36": "position", + "0x37": "unlock_recipes", + "0x38": "entity_destroy", + "0x39": "remove_entity_effect", + "0x3a": "resource_pack_send", + "0x3b": "respawn", + "0x3c": "entity_head_rotation", + "0x3d": "select_advancement_tab", + "0x3e": "world_border", + "0x3f": "camera", + "0x40": "held_item_slot", + "0x41": "update_view_position", + "0x42": "update_view_distance", + "0x43": "scoreboard_display_objective", + "0x44": "entity_metadata", + "0x45": "attach_entity", + "0x46": "entity_velocity", + "0x47": "entity_equipment", + "0x48": "experience", + "0x49": "update_health", + "0x4a": "scoreboard_objective", + "0x4b": "set_passengers", + "0x4c": "teams", + "0x4d": "scoreboard_score", + "0x4e": "spawn_position", + "0x4f": "update_time", + "0x50": "title", + "0x51": "entity_sound_effect", + "0x52": "sound_effect", + "0x53": "stop_sound", + "0x54": "playerlist_header", + "0x55": "nbt_query_response", + "0x56": "collect", + "0x57": "entity_teleport", + "0x58": "advancements", + "0x59": "entity_update_attributes", + "0x5a": "entity_effect", + "0x5b": "declare_recipes", + "0x5c": "tags" + }, + "type": "varint" + } + ] }, { - "name": "z", - "type": "f64" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "trade_list": "packet_trade_list", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_spawn_entity_living": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "flags", "type": "i8" }, { - "name": "headPitch", - "type": "i8" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "velocity", - "type": "vec3i16" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity_painting": [ + "packet_acknowledge_player_digging": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" - }, { "name": "location", "type": "position" }, { - "name": "direction", - "type": "u8" - } - ] - ], - "packet_named_entity_spawn": [ - "container", - [ - { - "name": "entityId", + "name": "block", "type": "varint" }, { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", + "name": "status", "type": "varint" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "successful", + "type": "bool" } ] ], @@ -1504,23 +1513,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1531,10 +1540,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1651,7 +1660,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1659,29 +1668,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -1706,6 +1707,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1736,11 +1754,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1750,11 +1768,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1764,11 +1782,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1778,11 +1796,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1792,180 +1810,193 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" - }, - { - "name": "difficultyLocked", - "type": "bool" + "name": "cameraId", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chat": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" + "name": "message", + "type": "string" }, { - "name": "length", - "type": "varint" - }, + "name": "position", + "type": "i8" + } + ] + ], + "packet_close_window": [ + "container", + [ { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "name": "windowId", + "type": "u8" } ] ], - "packet_declare_commands": [ + "packet_collect": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] + "name": "collectedEntityId", + "type": "varint" + }, + { + "name": "collectorEntityId", + "type": "varint" }, { - "name": "rootIndex", + "name": "pickupItemCount", "type": "varint" } ] ], - "packet_face_player": [ + "packet_combat_event": [ "container", [ { - "name": "feet_eyes", + "name": "event", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "isEntity", - "type": "bool" + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] }, { "name": "entityId", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "entity_feet_eyes", + "name": "message", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "string" - }, - "default": "void" + "2": "string" + } } ] } ] ], - "packet_nbt_query_response": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" } ] ], - "packet_chat": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "message", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "position", - "type": "i8" + "name": "recipe", + "type": "string" } ] ], - "packet_multi_block_change": [ + "packet_custom_payload": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "channel", + "type": "string" }, { - "name": "chunkZ", - "type": "i32" + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "records", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { @@ -1974,16 +2005,118 @@ "container", [ { - "name": "horizontalPos", - "type": "u8" + "name": "type", + "type": "string" }, { - "name": "y", - "type": "u8" + "name": "recipeId", + "type": "string" }, { - "name": "blockId", - "type": "varint" + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] } ] ] @@ -1992,95 +2125,78 @@ } ] ], - "packet_transaction": [ + "packet_difficulty": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "difficulty", + "type": "u8" }, { - "name": "accepted", + "name": "difficultyLocked", "type": "bool" } ] ], - "packet_close_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" - } - ] - ], - "packet_open_window": [ - "container", - [ - { - "name": "windowId", - "type": "varint" - }, + "packet_entity": [ + "container", + [ { - "name": "inventoryType", + "name": "entityId", "type": "varint" - }, - { - "name": "windowTitle", - "type": "string" } ] ], - "packet_window_items": [ + "packet_entity_destroy": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "items", + "name": "entityIds", "type": [ "array", { - "countType": "i16", - "type": "slot" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_craft_progress_bar": [ + "packet_entity_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", - "type": "i16" + "name": "effectId", + "type": "i8" }, { - "name": "value", - "type": "i16" + "name": "amplifier", + "type": "i8" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "i8" } ] ], - "packet_set_slot": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { "name": "slot", - "type": "i16" + "type": "varint" }, { "name": "item", @@ -2088,71 +2204,108 @@ } ] ], - "packet_set_cooldown": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "itemID", + "name": "entityId", "type": "varint" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "headYaw", + "type": "i8" } ] ], - "packet_custom_payload": [ + "packet_entity_look": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_named_sound_effect": [ + "packet_entity_metadata": [ "container", [ { - "name": "soundName", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "soundCategory", + "name": "metadata", + "type": "entityMetadata" + } + ] + ], + "packet_entity_move_look": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "dX", + "type": "i16" }, { - "name": "y", - "type": "i32" + "name": "dY", + "type": "i16" }, { - "name": "z", - "type": "i32" + "name": "dZ", + "type": "i16" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "reason", - "type": "string" + "name": "soundId", + "type": "varint" + }, + { + "name": "soundCategory", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], @@ -2169,27 +2322,48 @@ } ] ], - "packet_explosion": [ + "packet_entity_teleport": [ "container", [ + { + "name": "entityId", + "type": "varint" + }, { "name": "x", - "type": "f32" + "type": "f64" }, { "name": "y", - "type": "f32" + "type": "f64" }, { "name": "z", - "type": "f32" + "type": "f64" }, { - "name": "radius", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "affectedBlockOffsets", + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", "type": [ "array", { @@ -2198,182 +2372,141 @@ "container", [ { - "name": "x", - "type": "i8" + "name": "key", + "type": "string" }, { - "name": "y", - "type": "i8" + "name": "value", + "type": "f64" }, { - "name": "z", - "type": "i8" + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] } ] ] } ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, - { - "name": "playerMotionY", - "type": "f32" - }, - { - "name": "playerMotionZ", - "type": "f32" } ] ], - "packet_unload_chunk": [ + "packet_entity_velocity": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_game_state_change": [ + "packet_experience": [ "container", [ { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", + "name": "experienceBar", "type": "f32" - } - ] - ], - "packet_open_horse_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" }, { - "name": "nbSlots", + "name": "level", "type": "varint" }, { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" + "name": "totalExperience", + "type": "varint" } ] ], - "packet_map_chunk": [ + "packet_explosion": [ "container", [ { "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" + "type": "f32" }, { - "name": "groundUp", - "type": "bool" + "name": "y", + "type": "f32" }, { - "name": "bitMap", - "type": "varint" + "name": "z", + "type": "f32" }, { - "name": "heightmaps", - "type": "nbt" + "name": "radius", + "type": "f32" }, { - "name": "biomes", + "name": "affectedBlockOffsets", "type": [ - "switch", + "array", { - "compareTo": "groundUp", - "fields": { - "false": "void", - "true": [ - "array", + "countType": "i32", + "type": [ + "container", + [ { - "count": 1024, - "type": "i32" + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" } ] - } - } - ] - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" + ] } ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" }, { - "name": "location", - "type": "position" + "name": "playerMotionX", + "type": "f32" }, { - "name": "data", - "type": "i32" + "name": "playerMotionY", + "type": "f32" }, { - "name": "global", - "type": "bool" + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_world_particles": [ + "packet_face_player": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" + "name": "feet_eyes", + "type": "varint" }, { "name": "x", @@ -2388,66 +2521,74 @@ "type": "f64" }, { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" + "name": "isEntity", + "type": "bool" }, { - "name": "particles", - "type": "i32" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "data", + "name": "entity_feet_eyes", "type": [ - "particleData", + "switch", { - "compareTo": "particleId" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] } ] ], - "packet_update_light": [ + "packet_game_state_change": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - }, - { - "name": "skyLightMask", - "type": "varint" + "name": "reason", + "type": "u8" }, { - "name": "blockLightMask", - "type": "varint" - }, + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "emptySkyLightMask", - "type": "varint" - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "emptyBlockLightMask", - "type": "varint" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "data", - "type": "restBuffer" + "name": "reason", + "type": "string" } ] ], @@ -2558,142 +2699,162 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "i8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "i8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } } ] + } + ] + ], + "packet_map_chunk": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" + }, + { + "name": "bitMap", + "type": "varint" + }, + { + "name": "heightmaps", + "type": "nbt" }, { - "name": "x", + "name": "biomes", "type": [ "switch", { - "compareTo": "columns", + "compareTo": "groundUp", "fields": { - "0": "void" - }, - "default": "i8" + "false": "void", + "true": [ + "array", + { + "count": 1024, + "type": "i32" + } + ] + } } ] }, { - "name": "y", + "name": "chunkData", "type": [ - "switch", + "buffer", { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "i8" + "countType": "varint" } ] }, { - "name": "data", + "name": "blockEntities", "type": [ - "switch", + "array", { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] + "countType": "varint", + "type": "nbt" } ] } ] ], - "packet_trade_list": [ + "packet_multi_block_change": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "chunkX", + "type": "i32" }, { - "name": "trades", + "name": "chunkZ", + "type": "i32" + }, + { + "name": "records", "type": [ "array", { - "countType": "u8", + "countType": "varint", "type": [ "container", [ { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - "slot" - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" + "name": "horizontalPos", + "type": "u8" }, { - "name": "priceMultiplier", - "type": "f32" + "name": "y", + "type": "u8" }, { - "name": "demand", - "type": "i32" + "name": "blockId", + "type": "varint" } ] ] } ] - }, - { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" - }, - { - "name": "isRegularVillager", - "type": "bool" - }, - { - "name": "canRestock", - "type": "bool" } ] ], - "packet_rel_entity_move": [ + "packet_named_entity_spawn": [ "container", [ { @@ -2701,41 +2862,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_move_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dX", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dY", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -2744,60 +2884,34 @@ { "name": "pitch", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2806,113 +2920,68 @@ } ] ], - "packet_open_book": [ + "packet_nbt_query_response": [ "container", [ { - "name": "hand", + "name": "transactionId", "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_open_sign_entity": [ + "packet_open_book": [ "container", [ { - "name": "location", - "type": "position" + "name": "hand", + "type": "varint" } ] ], - "packet_craft_recipe_response": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "recipe", - "type": "string" + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", - [ - { - "name": "event", - "type": "varint" - }, - { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, + [ { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "windowId", + "type": "varint" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + "name": "inventoryType", + "type": "varint" }, { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "string" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" } ] ], @@ -2924,14 +2993,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -3008,37 +3077,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -3050,6 +3119,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -3083,72 +3165,28 @@ } ] ], - "packet_unlock_recipes": [ + "packet_rel_entity_move": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smeltingBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmeltable", + "name": "onGround", "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -3199,206 +3237,185 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ { - "name": "action", - "type": "varint" - }, - { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "name", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "i8" }, { - "name": "old_radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "new_radius", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] - }, + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] + "name": "itemName", + "type": "string" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "warning_blocks", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_camera": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "id", + "type": [ + "option", + "string" + ] } ] ], - "packet_held_item_slot": [ + "packet_set_cooldown": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "itemID", + "type": "varint" + }, + { + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_update_view_position": [ + "packet_set_passengers": [ "container", [ { - "name": "chunkX", + "name": "entityId", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_update_view_distance": [ + "packet_set_slot": [ "container", [ { - "name": "viewDistance", - "type": "varint" + "name": "windowId", + "type": "i8" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_scoreboard_display_objective": [ + "packet_sound_effect": [ "container", [ { - "name": "position", - "type": "i8" + "name": "soundId", + "type": "varint" }, { - "name": "name", - "type": "string" + "name": "soundCategory", + "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_entity_metadata": [ + "packet_spawn_entity": [ "container", [ { @@ -3406,38 +3423,114 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_attach_entity": [ + "packet_spawn_entity_experience_orb": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "vehicleId", - "type": "i32" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -3445,109 +3538,188 @@ "type": "varint" }, { - "name": "slot", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_experience": [ + "packet_spawn_entity_weather": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "totalExperience", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_update_health": [ + "packet_spawn_position": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ { - "name": "foodSaturation", - "type": "f32" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_scoreboard_objective": [ + "packet_stop_sound": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "action", + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "2": "string", + "3": "string" + } } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "passengers", + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], + "packet_tags": [ + "container", + [ + { + "name": "blockTags", + "type": "tags" + }, + { + "name": "itemTags", + "type": "tags" + }, + { + "name": "fluidTags", + "type": "tags" + }, + { + "name": "entityTags", + "type": "tags" + } + ] + ], "packet_teams": [ "container", [ @@ -3565,11 +3737,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3579,11 +3751,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3593,11 +3765,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3607,11 +3779,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3621,11 +3793,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3635,11 +3807,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3649,11 +3821,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3663,6 +3835,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3685,62 +3858,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3757,12 +3894,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3772,10 +3909,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3785,10 +3922,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3798,147 +3935,269 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } + } + ] + } + ] + ], + "packet_trade_list": [ + "container", + [ + { + "name": "windowId", + "type": "varint" + }, + { + "name": "trades", + "type": [ + "array", + { + "countType": "u8", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] } ] + }, + { + "name": "villagerLevel", + "type": "varint" + }, + { + "name": "experience", + "type": "varint" + }, + { + "name": "isRegularVillager", + "type": "bool" + }, + { + "name": "canRestock", + "type": "bool" + } + ] + ], + "packet_transaction": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" } ] ], - "packet_entity_sound_effect": [ + "packet_unlock_recipes": [ "container", [ { - "name": "soundId", + "name": "action", "type": "varint" }, { - "name": "soundCategory", - "type": "varint" + "name": "craftingBookOpen", + "type": "bool" }, { - "name": "entityId", - "type": "varint" + "name": "filteringCraftable", + "type": "bool" }, { - "name": "volume", - "type": "f32" + "name": "smeltingBookOpen", + "type": "bool" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_stop_sound": [ - "container", - [ - { - "name": "flags", - "type": "i8" + "name": "filteringSmeltable", + "type": "bool" }, { - "name": "source", + "name": "recipes1", "type": [ - "switch", + "array", { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" + "countType": "varint", + "type": "string" } ] }, { - "name": "sound", + "name": "recipes2", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "action", + "default": "void", "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" }, { - "name": "soundCategory", + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_light": [ + "container", + [ + { + "name": "chunkX", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "chunkZ", + "type": "varint" }, { - "name": "y", - "type": "i32" + "name": "skyLightMask", + "type": "varint" }, { - "name": "z", - "type": "i32" + "name": "blockLightMask", + "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "emptySkyLightMask", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "emptyBlockLightMask", + "type": "varint" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_playerlist_header": [ + "packet_update_time": [ "container", [ { - "name": "header", - "type": "string" + "name": "age", + "type": "i64" }, { - "name": "footer", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_collect": [ + "packet_update_view_distance": [ "container", [ { - "name": "collectedEntityId", + "name": "viewDistance", "type": "varint" - }, + } + ] + ], + "packet_update_view_position": [ + "container", + [ { - "name": "collectorEntityId", + "name": "chunkX", "type": "varint" }, { - "name": "pickupItemCount", + "name": "chunkZ", "type": "varint" } ] ], - "packet_entity_teleport": [ + "packet_vehicle_move": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "x", "type": "f64" @@ -3953,287 +4212,245 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "type": "f32" } ] ], - "packet_entity_update_attributes": [ + "packet_window_items": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "properties", + "name": "items", "type": [ "array", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "countType": "i16", + "type": "slot" } ] } ] ], - "packet_entity_effect": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "effectId", - "type": "i8" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "amplifier", - "type": "i8" + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] }, { - "name": "duration", - "type": "varint" + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] }, { - "name": "hideParticles", - "type": "i8" - } - ] - ], - "packet_select_advancement_tab": [ - "container", - [ - { - "name": "id", + "name": "warning_time", "type": [ - "option", - "string" + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + }, { - "name": "recipes", + "name": "warning_blocks", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_tags": [ + "packet_world_event": [ "container", [ { - "name": "blockTags", - "type": "tags" + "name": "effectId", + "type": "i32" }, { - "name": "itemTags", - "type": "tags" + "name": "location", + "type": "position" }, { - "name": "fluidTags", - "type": "tags" + "name": "data", + "type": "i32" }, { - "name": "entityTags", - "type": "tags" + "name": "global", + "type": "bool" } ] ], - "packet_acknowledge_player_digging": [ + "packet_world_particles": [ "container", [ { - "name": "location", - "type": "position" + "name": "particleId", + "type": "i32" }, { - "name": "block", - "type": "varint" + "name": "longDistance", + "type": "bool" }, { - "name": "status", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "successful", - "type": "bool" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -4242,102 +4459,55 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "tab_complete", - "0x12": "declare_commands", - "0x13": "transaction", - "0x14": "close_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "open_horse_window", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "update_light", - "0x26": "login", - "0x27": "map", - "0x28": "trade_list", - "0x29": "rel_entity_move", - "0x2a": "entity_move_look", - "0x2b": "entity_look", - "0x2c": "entity", - "0x2d": "vehicle_move", - "0x2e": "open_book", - "0x2f": "open_window", - "0x30": "open_sign_entity", - "0x31": "craft_recipe_response", - "0x32": "abilities", - "0x33": "combat_event", - "0x34": "player_info", - "0x35": "face_player", - "0x36": "position", - "0x37": "unlock_recipes", - "0x38": "entity_destroy", - "0x39": "remove_entity_effect", - "0x3a": "resource_pack_send", - "0x3b": "respawn", - "0x3c": "entity_head_rotation", - "0x3d": "select_advancement_tab", - "0x3e": "world_border", - "0x3f": "camera", - "0x40": "held_item_slot", - "0x41": "update_view_position", - "0x42": "update_view_distance", - "0x43": "scoreboard_display_objective", - "0x44": "entity_metadata", - "0x45": "attach_entity", - "0x46": "entity_velocity", - "0x47": "entity_equipment", - "0x48": "experience", - "0x49": "update_health", - "0x4a": "scoreboard_objective", - "0x4b": "set_passengers", - "0x4c": "teams", - "0x4d": "scoreboard_score", - "0x4e": "spawn_position", - "0x4f": "update_time", - "0x50": "title", - "0x51": "entity_sound_effect", - "0x52": "sound_effect", - "0x53": "stop_sound", - "0x54": "playerlist_header", - "0x55": "nbt_query_response", - "0x56": "collect", - "0x57": "entity_teleport", - "0x58": "advancements", - "0x59": "entity_update_attributes", - "0x5a": "entity_effect", - "0x5b": "declare_recipes", - "0x5c": "tags" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "crafting_book_data", + "0x1e": "name_item", + "0x1f": "resource_pack_receive", + "0x20": "advancement_tab", + "0x21": "select_trade", + "0x22": "set_beacon_effect", + "0x23": "held_item_slot", + "0x24": "update_command_block", + "0x25": "update_command_block_minecart", + "0x26": "set_creative_slot", + "0x27": "update_jigsaw_block", + "0x28": "update_structure_block", + "0x29": "update_sign", + "0x2a": "arm_animation", + "0x2b": "spectate", + "0x2c": "block_place", + "0x2d": "use_item" + }, + "type": "varint" } ] }, @@ -4348,539 +4518,394 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "entity_sound_effect": "packet_entity_sound_effect", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "acknowledge_player_digging": "packet_acknowledge_player_digging" + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_set_difficulty": [ + "packet_arm_animation": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "hand", + "type": "varint" } ] ], - "packet_edit_book": [ + "packet_block_dig": [ "container", [ { - "name": "new_book", - "type": "slot" + "name": "status", + "type": "varint" }, { - "name": "signing", - "type": "bool" + "name": "location", + "type": "position" }, { - "name": "hand", - "type": "varint" + "name": "face", + "type": "i8" } ] ], - "packet_query_entity_nbt": [ + "packet_block_place": [ "container", [ { - "name": "transactionId", + "name": "hand", "type": "varint" }, { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_pick_item": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "slot", + "name": "direction", "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ + }, { - "name": "name", - "type": "string" + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" } ] ], - "packet_select_trade": [ + "packet_chat": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "message", + "type": "string" } ] ], - "packet_set_beacon_effect": [ + "packet_client_command": [ "container", [ { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", + "name": "actionId", "type": "varint" } ] ], - "packet_update_command_block": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", + "name": "windowId", "type": "u8" } ] ], - "packet_update_command_block_minecart": [ + "packet_craft_recipe_request": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "command", + "name": "recipe", "type": "string" }, { - "name": "track_output", + "name": "makeAll", "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_crafting_book_data": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", + "name": "type", "type": "varint" }, { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", - "type": "f32" - }, - { - "name": "seed", - "type": "varlong" - }, - { - "name": "flags", - "type": "u8" + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "smeltingFilter", + "type": "bool" + }, + { + "name": "blastingBookOpen", + "type": "bool" + }, + { + "name": "blastingFilter", + "type": "bool" + }, + { + "name": "smokingBookOpen", + "type": "bool" + }, + { + "name": "smokingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], - "packet_tab_complete": [ + "packet_custom_payload": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "text", - "type": "string" + "name": "data", + "type": "restBuffer" } ] ], - "packet_chat": [ + "packet_edit_book": [ "container", [ { - "name": "message", - "type": "string" - } - ] - ], - "packet_client_command": [ - "container", - [ + "name": "new_book", + "type": "slot" + }, { - "name": "actionId", + "name": "signing", + "type": "bool" + }, + { + "name": "hand", "type": "varint" } ] ], - "packet_settings": [ + "packet_enchant_item": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", + "name": "windowId", "type": "i8" }, { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" + "name": "enchantment", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "actionId", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_enchant_item": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "onGround", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_held_item_slot": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", + "name": "slotId", "type": "i16" - }, - { - "name": "mode", - "type": "i8" - }, - { - "name": "item", - "type": "slot" } ] ], - "packet_close_window": [ + "packet_keep_alive": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_custom_payload": [ + "packet_lock_difficulty": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "locked", + "type": "bool" } ] ], - "packet_use_entity": [ + "packet_look": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "f32" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "f32" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_name_item": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "name", + "type": "string" } ] ], - "packet_lock_difficulty": [ + "packet_pick_item": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], @@ -4934,135 +4959,133 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "location", + "type": "position" + } + ] + ], + "packet_query_entity_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_flying": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_select_trade": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + "name": "slot", + "type": "varint" + } + ] + ], + "packet_set_beacon_effect": [ + "container", + [ { - "name": "yaw", - "type": "f32" + "name": "primary_effect", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "secondary_effect", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_creative_slot": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "slot", + "type": "i16" }, { - "name": "rightPaddle", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_craft_recipe_request": [ + "packet_set_difficulty": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" - }, - { - "name": "makeAll", - "type": "bool" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_abilities": [ + "packet_settings": [ "container", [ { - "name": "flags", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "chatFlags", + "type": "varint" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5083,100 +5106,80 @@ } ] ], - "packet_crafting_book_data": [ + "packet_tab_complete": [ "container", [ { - "name": "type", + "name": "transactionId", "type": "varint" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "smeltingFilter", - "type": "bool" - }, - { - "name": "blastingBookOpen", - "type": "bool" - }, - { - "name": "blastingFilter", - "type": "bool" - }, - { - "name": "smokingBookOpen", - "type": "bool" - }, - { - "name": "smokingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_transaction": [ "container", [ { - "name": "slotId", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" + }, + { + "name": "accepted", + "type": "bool" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "location", + "type": "position" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] + ], + "packet_update_command_block_minecart": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5205,75 +5208,159 @@ "container", [ { - "name": "location", - "type": "position" + "name": "location", + "type": "position" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" }, { - "name": "text1", - "type": "string" + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "hand", "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "cursorX", - "type": "f32" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "insideBlock", - "type": "bool" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -5286,144 +5373,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "crafting_book_data", - "0x1e": "name_item", - "0x1f": "resource_pack_receive", - "0x20": "advancement_tab", - "0x21": "select_trade", - "0x22": "set_beacon_effect", - "0x23": "held_item_slot", - "0x24": "update_command_block", - "0x25": "update_command_block_minecart", - "0x26": "set_creative_slot", - "0x27": "update_jigsaw_block", - "0x28": "update_structure_block", - "0x29": "update_sign", - "0x2a": "arm_animation", - "0x2b": "spectate", - "0x2c": "block_place", - "0x2d": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.15/protocol.json b/data/pc/1.15/protocol.json index 3d4acadaa..e8118b28c 100644 --- a/data/pc/1.15/protocol.json +++ b/data/pc/1.15/protocol.json @@ -1,412 +1,75 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "23": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "32": [ - "container", - [ + "name": "has_command", + "signed": false, + "size": 1 + }, { - "name": "item", - "type": "slot" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { "name": "extraNodeData", @@ -444,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -454,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -476,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -489,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -508,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -530,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -543,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -562,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -584,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -597,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -616,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -638,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -651,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -663,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -743,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -759,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -768,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -779,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -793,173 +456,348 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": {} - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ "container", [ { - "name": "name", + "anon": true, "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" } - } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + "compareTo": "type" } ] } ] ] } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } - } - ] - }, + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } - } - ] + "compareTo": "particleId" } ] - ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "23": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "32": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ] + } } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "time", - "type": "i64" + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] - ], + ] + } + ], + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { "packet": [ "container", [ @@ -968,11 +806,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "mappings": {}, + "type": "varint" } ] }, @@ -982,96 +817,186 @@ "switch", { "compareTo": "name", - "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" - } + "fields": {} } ] } ] ] } - } - }, - "login": { - "toClient": { + }, + "toServer": { "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_encryption_begin": [ + "packet": [ "container", [ { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } } ] } ] ], - "packet_success": [ - "container", - [ - { - "name": "uuid", - "type": "string" - }, - { - "name": "username", - "type": "string" - } - ] - ], - "packet_compress": [ + "packet_legacy_server_list_ping": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "payload", + "type": "u8" } ] ], - "packet_login_plugin_request": [ + "packet_set_protocol": [ "container", [ { - "name": "messageId", + "name": "protocolVersion", "type": "varint" }, { - "name": "channel", + "name": "serverHost", "type": "string" }, { - "name": "data", - "type": "restBuffer" + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" + } + ] + ] + } + } + }, + "status": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "server_info": "packet_server_info" + } + } + ] } ] ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } + } + ] + } + ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1080,14 +1005,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "disconnect", "0x01": "encryption_begin", "0x02": "success", "0x03": "compress", "0x04": "login_plugin_request" - } + }, + "type": "varint" } ] }, @@ -1098,26 +1023,31 @@ { "compareTo": "name", "fields": { + "compress": "packet_compress", "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_compress": [ "container", [ { - "name": "username", + "name": "threshold", + "type": "varint" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", "type": "string" } ] @@ -1126,7 +1056,11 @@ "container", [ { - "name": "sharedSecret", + "name": "serverId", + "type": "string" + }, + { + "name": "publicKey", "type": [ "buffer", { @@ -1145,22 +1079,40 @@ } ] ], - "packet_login_plugin_response": [ + "packet_login_plugin_request": [ "container", [ { "name": "messageId", "type": "varint" }, + { + "name": "channel", + "type": "string" + }, { "name": "data", - "type": [ - "option", - "restBuffer" - ] + "type": "restBuffer" } ] ], + "packet_success": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1169,12 +1121,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "login_start", "0x01": "encryption_begin", "0x02": "login_plugin_response" - } + }, + "type": "varint" } ] }, @@ -1185,260 +1137,317 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "velocity", - "type": "vec3i16" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_login_plugin_response": [ "container", [ { - "name": "entityId", + "name": "messageId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_spawn_entity_weather": [ + "packet_login_start": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "packet": [ + "container", + [ { - "name": "y", - "type": "f64" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "tab_complete", + "0x12": "declare_commands", + "0x13": "transaction", + "0x14": "close_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "open_horse_window", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "update_light", + "0x26": "login", + "0x27": "map", + "0x28": "trade_list", + "0x29": "rel_entity_move", + "0x2a": "entity_move_look", + "0x2b": "entity_look", + "0x2c": "entity", + "0x2d": "vehicle_move", + "0x2e": "open_book", + "0x2f": "open_window", + "0x30": "open_sign_entity", + "0x31": "craft_recipe_response", + "0x32": "abilities", + "0x33": "combat_event", + "0x34": "player_info", + "0x35": "face_player", + "0x36": "position", + "0x37": "unlock_recipes", + "0x38": "entity_destroy", + "0x39": "remove_entity_effect", + "0x3a": "resource_pack_send", + "0x3b": "respawn", + "0x3c": "entity_head_rotation", + "0x3d": "select_advancement_tab", + "0x3e": "world_border", + "0x3f": "camera", + "0x40": "held_item_slot", + "0x41": "update_view_position", + "0x42": "update_view_distance", + "0x43": "scoreboard_display_objective", + "0x44": "entity_metadata", + "0x45": "attach_entity", + "0x46": "entity_velocity", + "0x47": "entity_equipment", + "0x48": "experience", + "0x49": "update_health", + "0x4a": "scoreboard_objective", + "0x4b": "set_passengers", + "0x4c": "teams", + "0x4d": "scoreboard_score", + "0x4e": "spawn_position", + "0x4f": "update_time", + "0x50": "title", + "0x51": "entity_sound_effect", + "0x52": "sound_effect", + "0x53": "stop_sound", + "0x54": "playerlist_header", + "0x55": "nbt_query_response", + "0x56": "collect", + "0x57": "entity_teleport", + "0x58": "advancements", + "0x59": "entity_update_attributes", + "0x5a": "entity_effect", + "0x5b": "declare_recipes", + "0x5c": "tags" + }, + "type": "varint" + } + ] }, { - "name": "z", - "type": "f64" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "trade_list": "packet_trade_list", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_spawn_entity_living": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "flags", "type": "i8" }, { - "name": "headPitch", - "type": "i8" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "velocity", - "type": "vec3i16" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity_painting": [ + "packet_acknowledge_player_digging": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" - }, { "name": "location", "type": "position" }, { - "name": "direction", - "type": "u8" - } - ] - ], - "packet_named_entity_spawn": [ - "container", - [ - { - "name": "entityId", + "name": "block", "type": "varint" }, { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", + "name": "status", "type": "varint" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "successful", + "type": "bool" } ] ], @@ -1504,23 +1513,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1531,10 +1540,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1651,7 +1660,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1659,29 +1668,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -1706,6 +1707,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1736,11 +1754,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1750,11 +1768,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1764,11 +1782,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1778,11 +1796,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1792,180 +1810,193 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" - }, - { - "name": "difficultyLocked", - "type": "bool" + "name": "cameraId", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chat": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" + "name": "message", + "type": "string" }, { - "name": "length", - "type": "varint" - }, + "name": "position", + "type": "i8" + } + ] + ], + "packet_close_window": [ + "container", + [ { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "name": "windowId", + "type": "u8" } ] ], - "packet_declare_commands": [ + "packet_collect": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] + "name": "collectedEntityId", + "type": "varint" + }, + { + "name": "collectorEntityId", + "type": "varint" }, { - "name": "rootIndex", + "name": "pickupItemCount", "type": "varint" } ] ], - "packet_face_player": [ + "packet_combat_event": [ "container", [ { - "name": "feet_eyes", + "name": "event", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "isEntity", - "type": "bool" + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] }, { "name": "entityId", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "entity_feet_eyes", + "name": "message", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "string" - }, - "default": "void" + "2": "string" + } } ] } ] ], - "packet_nbt_query_response": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" } ] ], - "packet_chat": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "message", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "position", - "type": "i8" + "name": "recipe", + "type": "string" } ] ], - "packet_multi_block_change": [ + "packet_custom_payload": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "channel", + "type": "string" }, { - "name": "chunkZ", - "type": "i32" + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "records", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { @@ -1974,16 +2005,118 @@ "container", [ { - "name": "horizontalPos", - "type": "u8" + "name": "type", + "type": "string" }, { - "name": "y", - "type": "u8" + "name": "recipeId", + "type": "string" }, { - "name": "blockId", - "type": "varint" + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] } ] ] @@ -1992,95 +2125,78 @@ } ] ], - "packet_transaction": [ + "packet_difficulty": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "difficulty", + "type": "u8" }, { - "name": "accepted", + "name": "difficultyLocked", "type": "bool" } ] ], - "packet_close_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" - } - ] - ], - "packet_open_window": [ - "container", - [ - { - "name": "windowId", - "type": "varint" - }, + "packet_entity": [ + "container", + [ { - "name": "inventoryType", + "name": "entityId", "type": "varint" - }, - { - "name": "windowTitle", - "type": "string" } ] ], - "packet_window_items": [ + "packet_entity_destroy": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "items", + "name": "entityIds", "type": [ "array", { - "countType": "i16", - "type": "slot" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_craft_progress_bar": [ + "packet_entity_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", - "type": "i16" + "name": "effectId", + "type": "i8" }, { - "name": "value", - "type": "i16" + "name": "amplifier", + "type": "i8" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "i8" } ] ], - "packet_set_slot": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { "name": "slot", - "type": "i16" + "type": "varint" }, { "name": "item", @@ -2088,71 +2204,108 @@ } ] ], - "packet_set_cooldown": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "itemID", + "name": "entityId", "type": "varint" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "headYaw", + "type": "i8" } ] ], - "packet_custom_payload": [ + "packet_entity_look": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_named_sound_effect": [ + "packet_entity_metadata": [ "container", [ { - "name": "soundName", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "soundCategory", + "name": "metadata", + "type": "entityMetadata" + } + ] + ], + "packet_entity_move_look": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "dX", + "type": "i16" }, { - "name": "y", - "type": "i32" + "name": "dY", + "type": "i16" }, { - "name": "z", - "type": "i32" + "name": "dZ", + "type": "i16" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "reason", - "type": "string" + "name": "soundId", + "type": "varint" + }, + { + "name": "soundCategory", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], @@ -2169,27 +2322,48 @@ } ] ], - "packet_explosion": [ + "packet_entity_teleport": [ "container", [ + { + "name": "entityId", + "type": "varint" + }, { "name": "x", - "type": "f32" + "type": "f64" }, { "name": "y", - "type": "f32" + "type": "f64" }, { "name": "z", - "type": "f32" + "type": "f64" }, { - "name": "radius", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "affectedBlockOffsets", + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", "type": [ "array", { @@ -2198,182 +2372,141 @@ "container", [ { - "name": "x", - "type": "i8" + "name": "key", + "type": "string" }, { - "name": "y", - "type": "i8" + "name": "value", + "type": "f64" }, { - "name": "z", - "type": "i8" + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] } ] ] } ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, - { - "name": "playerMotionY", - "type": "f32" - }, - { - "name": "playerMotionZ", - "type": "f32" } ] ], - "packet_unload_chunk": [ + "packet_entity_velocity": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_game_state_change": [ + "packet_experience": [ "container", [ { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", + "name": "experienceBar", "type": "f32" - } - ] - ], - "packet_open_horse_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" }, { - "name": "nbSlots", + "name": "level", "type": "varint" }, { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" + "name": "totalExperience", + "type": "varint" } ] ], - "packet_map_chunk": [ + "packet_explosion": [ "container", [ { "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" + "type": "f32" }, { - "name": "groundUp", - "type": "bool" + "name": "y", + "type": "f32" }, { - "name": "bitMap", - "type": "varint" + "name": "z", + "type": "f32" }, { - "name": "heightmaps", - "type": "nbt" + "name": "radius", + "type": "f32" }, { - "name": "biomes", + "name": "affectedBlockOffsets", "type": [ - "switch", + "array", { - "compareTo": "groundUp", - "fields": { - "false": "void", - "true": [ - "array", + "countType": "i32", + "type": [ + "container", + [ { - "count": 1024, - "type": "i32" + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" } ] - } - } - ] - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" + ] } ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" }, { - "name": "location", - "type": "position" + "name": "playerMotionX", + "type": "f32" }, { - "name": "data", - "type": "i32" + "name": "playerMotionY", + "type": "f32" }, { - "name": "global", - "type": "bool" + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_world_particles": [ + "packet_face_player": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" + "name": "feet_eyes", + "type": "varint" }, { "name": "x", @@ -2388,66 +2521,74 @@ "type": "f64" }, { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" + "name": "isEntity", + "type": "bool" }, { - "name": "particles", - "type": "i32" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "data", + "name": "entity_feet_eyes", "type": [ - "particleData", + "switch", { - "compareTo": "particleId" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] } ] ], - "packet_update_light": [ + "packet_game_state_change": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - }, - { - "name": "skyLightMask", - "type": "varint" + "name": "reason", + "type": "u8" }, { - "name": "blockLightMask", - "type": "varint" - }, + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "emptySkyLightMask", - "type": "varint" - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "emptyBlockLightMask", - "type": "varint" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "data", - "type": "restBuffer" + "name": "reason", + "type": "string" } ] ], @@ -2558,142 +2699,162 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "i8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "i8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } } ] + } + ] + ], + "packet_map_chunk": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" + }, + { + "name": "bitMap", + "type": "varint" + }, + { + "name": "heightmaps", + "type": "nbt" }, { - "name": "x", + "name": "biomes", "type": [ "switch", { - "compareTo": "columns", + "compareTo": "groundUp", "fields": { - "0": "void" - }, - "default": "i8" + "false": "void", + "true": [ + "array", + { + "count": 1024, + "type": "i32" + } + ] + } } ] }, { - "name": "y", + "name": "chunkData", "type": [ - "switch", + "buffer", { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "i8" + "countType": "varint" } ] }, { - "name": "data", + "name": "blockEntities", "type": [ - "switch", + "array", { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] + "countType": "varint", + "type": "nbt" } ] } ] ], - "packet_trade_list": [ + "packet_multi_block_change": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "chunkX", + "type": "i32" }, { - "name": "trades", + "name": "chunkZ", + "type": "i32" + }, + { + "name": "records", "type": [ "array", { - "countType": "u8", + "countType": "varint", "type": [ "container", [ { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - "slot" - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" + "name": "horizontalPos", + "type": "u8" }, { - "name": "priceMultiplier", - "type": "f32" + "name": "y", + "type": "u8" }, { - "name": "demand", - "type": "i32" + "name": "blockId", + "type": "varint" } ] ] } ] - }, - { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" - }, - { - "name": "isRegularVillager", - "type": "bool" - }, - { - "name": "canRestock", - "type": "bool" } ] ], - "packet_rel_entity_move": [ + "packet_named_entity_spawn": [ "container", [ { @@ -2701,41 +2862,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_move_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dX", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dY", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -2744,60 +2884,34 @@ { "name": "pitch", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2806,113 +2920,68 @@ } ] ], - "packet_open_book": [ + "packet_nbt_query_response": [ "container", [ { - "name": "hand", + "name": "transactionId", "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_open_sign_entity": [ + "packet_open_book": [ "container", [ { - "name": "location", - "type": "position" + "name": "hand", + "type": "varint" } ] ], - "packet_craft_recipe_response": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "recipe", - "type": "string" + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", - [ - { - "name": "event", - "type": "varint" - }, - { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, + [ { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "windowId", + "type": "varint" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + "name": "inventoryType", + "type": "varint" }, { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "string" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" } ] ], @@ -2924,14 +2993,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -3008,37 +3077,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -3050,6 +3119,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -3083,72 +3165,28 @@ } ] ], - "packet_unlock_recipes": [ + "packet_rel_entity_move": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smeltingBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmeltable", + "name": "onGround", "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -3199,206 +3237,185 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ { - "name": "action", - "type": "varint" - }, - { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "name", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "i8" }, { - "name": "old_radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "new_radius", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] - }, + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] + "name": "itemName", + "type": "string" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "warning_blocks", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_camera": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "id", + "type": [ + "option", + "string" + ] } ] ], - "packet_held_item_slot": [ + "packet_set_cooldown": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "itemID", + "type": "varint" + }, + { + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_update_view_position": [ + "packet_set_passengers": [ "container", [ { - "name": "chunkX", + "name": "entityId", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_update_view_distance": [ + "packet_set_slot": [ "container", [ { - "name": "viewDistance", - "type": "varint" + "name": "windowId", + "type": "i8" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_scoreboard_display_objective": [ + "packet_sound_effect": [ "container", [ { - "name": "position", - "type": "i8" + "name": "soundId", + "type": "varint" }, { - "name": "name", - "type": "string" + "name": "soundCategory", + "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_entity_metadata": [ + "packet_spawn_entity": [ "container", [ { @@ -3406,38 +3423,114 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_attach_entity": [ + "packet_spawn_entity_experience_orb": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "vehicleId", - "type": "i32" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -3445,109 +3538,188 @@ "type": "varint" }, { - "name": "slot", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_experience": [ + "packet_spawn_entity_weather": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "totalExperience", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_update_health": [ + "packet_spawn_position": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ { - "name": "foodSaturation", - "type": "f32" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_scoreboard_objective": [ + "packet_stop_sound": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "action", + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "2": "string", + "3": "string" + } } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "passengers", + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], + "packet_tags": [ + "container", + [ + { + "name": "blockTags", + "type": "tags" + }, + { + "name": "itemTags", + "type": "tags" + }, + { + "name": "fluidTags", + "type": "tags" + }, + { + "name": "entityTags", + "type": "tags" + } + ] + ], "packet_teams": [ "container", [ @@ -3565,11 +3737,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3579,11 +3751,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3593,11 +3765,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3607,11 +3779,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3621,11 +3793,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3635,11 +3807,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3649,11 +3821,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3663,6 +3835,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3685,62 +3858,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3757,12 +3894,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3772,10 +3909,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3785,10 +3922,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3798,147 +3935,269 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } + } + ] + } + ] + ], + "packet_trade_list": [ + "container", + [ + { + "name": "windowId", + "type": "varint" + }, + { + "name": "trades", + "type": [ + "array", + { + "countType": "u8", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] } ] + }, + { + "name": "villagerLevel", + "type": "varint" + }, + { + "name": "experience", + "type": "varint" + }, + { + "name": "isRegularVillager", + "type": "bool" + }, + { + "name": "canRestock", + "type": "bool" + } + ] + ], + "packet_transaction": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" } ] ], - "packet_entity_sound_effect": [ + "packet_unlock_recipes": [ "container", [ { - "name": "soundId", + "name": "action", "type": "varint" }, { - "name": "soundCategory", - "type": "varint" + "name": "craftingBookOpen", + "type": "bool" }, { - "name": "entityId", - "type": "varint" + "name": "filteringCraftable", + "type": "bool" }, { - "name": "volume", - "type": "f32" + "name": "smeltingBookOpen", + "type": "bool" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_stop_sound": [ - "container", - [ - { - "name": "flags", - "type": "i8" + "name": "filteringSmeltable", + "type": "bool" }, { - "name": "source", + "name": "recipes1", "type": [ - "switch", + "array", { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" + "countType": "varint", + "type": "string" } ] }, { - "name": "sound", + "name": "recipes2", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "action", + "default": "void", "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" }, { - "name": "soundCategory", + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_light": [ + "container", + [ + { + "name": "chunkX", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "chunkZ", + "type": "varint" }, { - "name": "y", - "type": "i32" + "name": "skyLightMask", + "type": "varint" }, { - "name": "z", - "type": "i32" + "name": "blockLightMask", + "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "emptySkyLightMask", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "emptyBlockLightMask", + "type": "varint" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_playerlist_header": [ + "packet_update_time": [ "container", [ { - "name": "header", - "type": "string" + "name": "age", + "type": "i64" }, { - "name": "footer", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_collect": [ + "packet_update_view_distance": [ "container", [ { - "name": "collectedEntityId", + "name": "viewDistance", "type": "varint" - }, + } + ] + ], + "packet_update_view_position": [ + "container", + [ { - "name": "collectorEntityId", + "name": "chunkX", "type": "varint" }, { - "name": "pickupItemCount", + "name": "chunkZ", "type": "varint" } ] ], - "packet_entity_teleport": [ + "packet_vehicle_move": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "x", "type": "f64" @@ -3953,287 +4212,245 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "type": "f32" } ] ], - "packet_entity_update_attributes": [ + "packet_window_items": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "properties", + "name": "items", "type": [ "array", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "countType": "i16", + "type": "slot" } ] } ] ], - "packet_entity_effect": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "effectId", - "type": "i8" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "amplifier", - "type": "i8" + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] }, { - "name": "duration", - "type": "varint" + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] }, { - "name": "hideParticles", - "type": "i8" - } - ] - ], - "packet_select_advancement_tab": [ - "container", - [ - { - "name": "id", + "name": "warning_time", "type": [ - "option", - "string" + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + }, { - "name": "recipes", + "name": "warning_blocks", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_tags": [ + "packet_world_event": [ "container", [ { - "name": "blockTags", - "type": "tags" + "name": "effectId", + "type": "i32" }, { - "name": "itemTags", - "type": "tags" + "name": "location", + "type": "position" }, { - "name": "fluidTags", - "type": "tags" + "name": "data", + "type": "i32" }, { - "name": "entityTags", - "type": "tags" + "name": "global", + "type": "bool" } ] ], - "packet_acknowledge_player_digging": [ + "packet_world_particles": [ "container", [ { - "name": "location", - "type": "position" + "name": "particleId", + "type": "i32" }, { - "name": "block", - "type": "varint" + "name": "longDistance", + "type": "bool" }, { - "name": "status", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "successful", - "type": "bool" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -4242,102 +4459,55 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "tab_complete", - "0x12": "declare_commands", - "0x13": "transaction", - "0x14": "close_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "open_horse_window", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "update_light", - "0x26": "login", - "0x27": "map", - "0x28": "trade_list", - "0x29": "rel_entity_move", - "0x2a": "entity_move_look", - "0x2b": "entity_look", - "0x2c": "entity", - "0x2d": "vehicle_move", - "0x2e": "open_book", - "0x2f": "open_window", - "0x30": "open_sign_entity", - "0x31": "craft_recipe_response", - "0x32": "abilities", - "0x33": "combat_event", - "0x34": "player_info", - "0x35": "face_player", - "0x36": "position", - "0x37": "unlock_recipes", - "0x38": "entity_destroy", - "0x39": "remove_entity_effect", - "0x3a": "resource_pack_send", - "0x3b": "respawn", - "0x3c": "entity_head_rotation", - "0x3d": "select_advancement_tab", - "0x3e": "world_border", - "0x3f": "camera", - "0x40": "held_item_slot", - "0x41": "update_view_position", - "0x42": "update_view_distance", - "0x43": "scoreboard_display_objective", - "0x44": "entity_metadata", - "0x45": "attach_entity", - "0x46": "entity_velocity", - "0x47": "entity_equipment", - "0x48": "experience", - "0x49": "update_health", - "0x4a": "scoreboard_objective", - "0x4b": "set_passengers", - "0x4c": "teams", - "0x4d": "scoreboard_score", - "0x4e": "spawn_position", - "0x4f": "update_time", - "0x50": "title", - "0x51": "entity_sound_effect", - "0x52": "sound_effect", - "0x53": "stop_sound", - "0x54": "playerlist_header", - "0x55": "nbt_query_response", - "0x56": "collect", - "0x57": "entity_teleport", - "0x58": "advancements", - "0x59": "entity_update_attributes", - "0x5a": "entity_effect", - "0x5b": "declare_recipes", - "0x5c": "tags" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "crafting_book_data", + "0x1e": "name_item", + "0x1f": "resource_pack_receive", + "0x20": "advancement_tab", + "0x21": "select_trade", + "0x22": "set_beacon_effect", + "0x23": "held_item_slot", + "0x24": "update_command_block", + "0x25": "update_command_block_minecart", + "0x26": "set_creative_slot", + "0x27": "update_jigsaw_block", + "0x28": "update_structure_block", + "0x29": "update_sign", + "0x2a": "arm_animation", + "0x2b": "spectate", + "0x2c": "block_place", + "0x2d": "use_item" + }, + "type": "varint" } ] }, @@ -4348,539 +4518,394 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "entity_sound_effect": "packet_entity_sound_effect", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "acknowledge_player_digging": "packet_acknowledge_player_digging" + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_set_difficulty": [ + "packet_arm_animation": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "hand", + "type": "varint" } ] ], - "packet_edit_book": [ + "packet_block_dig": [ "container", [ { - "name": "new_book", - "type": "slot" + "name": "status", + "type": "varint" }, { - "name": "signing", - "type": "bool" + "name": "location", + "type": "position" }, { - "name": "hand", - "type": "varint" + "name": "face", + "type": "i8" } ] ], - "packet_query_entity_nbt": [ + "packet_block_place": [ "container", [ { - "name": "transactionId", + "name": "hand", "type": "varint" }, { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_pick_item": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "slot", + "name": "direction", "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ + }, { - "name": "name", - "type": "string" + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" } ] ], - "packet_select_trade": [ + "packet_chat": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "message", + "type": "string" } ] ], - "packet_set_beacon_effect": [ + "packet_client_command": [ "container", [ { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", + "name": "actionId", "type": "varint" } ] ], - "packet_update_command_block": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", + "name": "windowId", "type": "u8" } ] ], - "packet_update_command_block_minecart": [ + "packet_craft_recipe_request": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "command", + "name": "recipe", "type": "string" }, { - "name": "track_output", + "name": "makeAll", "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_crafting_book_data": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", + "name": "type", "type": "varint" }, { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", - "type": "f32" - }, - { - "name": "seed", - "type": "varlong" - }, - { - "name": "flags", - "type": "u8" + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "smeltingFilter", + "type": "bool" + }, + { + "name": "blastingBookOpen", + "type": "bool" + }, + { + "name": "blastingFilter", + "type": "bool" + }, + { + "name": "smokingBookOpen", + "type": "bool" + }, + { + "name": "smokingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], - "packet_tab_complete": [ + "packet_custom_payload": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "text", - "type": "string" + "name": "data", + "type": "restBuffer" } ] ], - "packet_chat": [ + "packet_edit_book": [ "container", [ { - "name": "message", - "type": "string" - } - ] - ], - "packet_client_command": [ - "container", - [ + "name": "new_book", + "type": "slot" + }, { - "name": "actionId", + "name": "signing", + "type": "bool" + }, + { + "name": "hand", "type": "varint" } ] ], - "packet_settings": [ + "packet_enchant_item": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", + "name": "windowId", "type": "i8" }, { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" + "name": "enchantment", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "actionId", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_enchant_item": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "onGround", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_held_item_slot": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", + "name": "slotId", "type": "i16" - }, - { - "name": "mode", - "type": "i8" - }, - { - "name": "item", - "type": "slot" } ] ], - "packet_close_window": [ + "packet_keep_alive": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_custom_payload": [ + "packet_lock_difficulty": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "locked", + "type": "bool" } ] ], - "packet_use_entity": [ + "packet_look": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "f32" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "f32" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_name_item": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "name", + "type": "string" } ] ], - "packet_lock_difficulty": [ + "packet_pick_item": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], @@ -4934,135 +4959,133 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "location", + "type": "position" + } + ] + ], + "packet_query_entity_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_flying": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_select_trade": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + "name": "slot", + "type": "varint" + } + ] + ], + "packet_set_beacon_effect": [ + "container", + [ { - "name": "yaw", - "type": "f32" + "name": "primary_effect", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "secondary_effect", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_creative_slot": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "slot", + "type": "i16" }, { - "name": "rightPaddle", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_craft_recipe_request": [ + "packet_set_difficulty": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" - }, - { - "name": "makeAll", - "type": "bool" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_abilities": [ + "packet_settings": [ "container", [ { - "name": "flags", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "chatFlags", + "type": "varint" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5083,100 +5106,80 @@ } ] ], - "packet_crafting_book_data": [ + "packet_tab_complete": [ "container", [ { - "name": "type", + "name": "transactionId", "type": "varint" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "smeltingFilter", - "type": "bool" - }, - { - "name": "blastingBookOpen", - "type": "bool" - }, - { - "name": "blastingFilter", - "type": "bool" - }, - { - "name": "smokingBookOpen", - "type": "bool" - }, - { - "name": "smokingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_transaction": [ "container", [ { - "name": "slotId", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" + }, + { + "name": "accepted", + "type": "bool" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "location", + "type": "position" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] + ], + "packet_update_command_block_minecart": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5205,75 +5208,159 @@ "container", [ { - "name": "location", - "type": "position" + "name": "location", + "type": "position" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" }, { - "name": "text1", - "type": "string" + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "hand", "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "cursorX", - "type": "f32" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "insideBlock", - "type": "bool" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -5286,144 +5373,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "crafting_book_data", - "0x1e": "name_item", - "0x1f": "resource_pack_receive", - "0x20": "advancement_tab", - "0x21": "select_trade", - "0x22": "set_beacon_effect", - "0x23": "held_item_slot", - "0x24": "update_command_block", - "0x25": "update_command_block_minecart", - "0x26": "set_creative_slot", - "0x27": "update_jigsaw_block", - "0x28": "update_structure_block", - "0x29": "update_sign", - "0x2a": "arm_animation", - "0x2b": "spectate", - "0x2c": "block_place", - "0x2d": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.16-rc1/protocol.json b/data/pc/1.16-rc1/protocol.json index 8ed97db39..1b057176f 100644 --- a/data/pc/1.16-rc1/protocol.json +++ b/data/pc/1.16-rc1/protocol.json @@ -1,413 +1,75 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "23": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "34": [ - "container", - [ + "name": "has_command", + "signed": false, + "size": 1 + }, { - "name": "item", - "type": "slot" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { "name": "extraNodeData", @@ -445,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -455,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -477,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -490,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -509,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -531,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -544,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -563,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -585,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -598,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -617,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -639,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -652,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -664,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -744,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -760,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -769,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -780,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -794,21 +456,359 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "23": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "34": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -828,6 +828,46 @@ }, "toServer": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", + [ + { + "name": "payload", + "type": "u8" + } + ] + ], "packet_set_protocol": [ "container", [ @@ -848,16 +888,13 @@ "type": "varint" } ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -866,11 +903,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -881,38 +918,36 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_ping": [ + "packet_server_info": [ "container", [ { - "name": "time", - "type": "i64" + "name": "response", + "type": "string" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -921,11 +956,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "server_info", + "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -936,21 +971,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -961,6 +988,16 @@ } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -969,11 +1006,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" + }, + "type": "varint" } ] }, @@ -984,20 +1024,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -1034,45 +1080,40 @@ } ] ], - "packet_success": [ + "packet_login_plugin_request": [ "container", [ { - "name": "uuid", - "type": "UUID" + "name": "messageId", + "type": "varint" }, { - "name": "username", + "name": "channel", "type": "string" - } - ] - ], - "packet_compress": [ - "container", - [ + }, { - "name": "threshold", - "type": "varint" + "name": "data", + "type": "restBuffer" } ] ], - "packet_login_plugin_request": [ + "packet_success": [ "container", [ { - "name": "messageId", - "type": "varint" + "name": "uuid", + "type": "UUID" }, { - "name": "channel", + "name": "username", "type": "string" - }, - { - "name": "data", - "type": "restBuffer" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1081,14 +1122,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", + "0x00": "login_start", "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" - } + "0x02": "login_plugin_response" + }, + "type": "varint" } ] }, @@ -1099,29 +1138,14 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -1162,6 +1186,21 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1170,12 +1209,101 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "animation", + "0x06": "statistics", + "0x07": "acknowledge_player_digging", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "entity", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "combat_event", + "0x33": "player_info", + "0x34": "face_player", + "0x35": "position", + "0x36": "unlock_recipes", + "0x37": "entity_destroy", + "0x38": "remove_entity_effect", + "0x39": "resource_pack_send", + "0x3a": "respawn", + "0x3b": "entity_head_rotation", + "0x3c": "select_advancement_tab", + "0x3d": "world_border", + "0x3e": "camera", + "0x3f": "held_item_slot", + "0x40": "update_view_position", + "0x41": "update_view_distance", + "0x42": "spawn_position", + "0x43": "scoreboard_display_objective", + "0x44": "entity_metadata", + "0x45": "attach_entity", + "0x46": "entity_velocity", + "0x47": "entity_equipment", + "0x48": "experience", + "0x49": "update_health", + "0x4a": "scoreboard_objective", + "0x4b": "set_passengers", + "0x4c": "teams", + "0x4d": "scoreboard_score", + "0x4e": "update_time", + "0x4f": "title", + "0x50": "entity_sound_effect", + "0x51": "sound_effect", + "0x52": "stop_sound", + "0x53": "playerlist_header", + "0x54": "nbt_query_response", + "0x55": "collect", + "0x56": "entity_teleport", + "0x57": "advancements", + "0x58": "entity_update_attributes", + "0x59": "entity_effect", + "0x5a": "declare_recipes", + "0x5b": "tags" + }, + "type": "varint" } ] }, @@ -1186,235 +1314,139 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "trade_list": "packet_trade_list", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] ], - "packet_spawn_entity_living": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "flags", "type": "i8" }, { - "name": "headPitch", - "type": "i8" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "velocity", - "type": "vec3i16" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity_painting": [ + "packet_acknowledge_player_digging": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" - }, { "name": "location", "type": "position" }, { - "name": "direction", - "type": "u8" - } - ] - ], - "packet_named_entity_spawn": [ - "container", - [ - { - "name": "entityId", + "name": "block", "type": "varint" }, { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", + "name": "status", "type": "varint" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "successful", + "type": "bool" } ] ], @@ -1480,23 +1512,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1507,10 +1539,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1627,7 +1659,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1635,29 +1667,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -1682,6 +1706,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1712,11 +1753,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1726,11 +1767,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1740,11 +1781,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1754,11 +1795,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1768,151 +1809,22 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" - } - ] - } - ] - ], - "packet_difficulty": [ - "container", - [ - { - "name": "difficulty", - "type": "u8" - }, - { - "name": "difficultyLocked", - "type": "bool" - } - ] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", - "type": "varint" - }, - { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "packet_declare_commands": [ - "container", - [ - { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] - }, - { - "name": "rootIndex", - "type": "varint" - } - ] - ], - "packet_face_player": [ - "container", - [ - { - "name": "feet_eyes", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entity_feet_eyes", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "string" - }, - "default": "void" + } } ] } ] ], - "packet_nbt_query_response": [ + "packet_camera": [ "container", [ { - "name": "transactionId", + "name": "cameraId", "type": "varint" - }, - { - "name": "nbt", - "type": "optionalNbt" } ] ], @@ -1933,102 +1845,89 @@ } ] ], - "packet_multi_block_change": [ + "packet_close_window": [ "container", [ { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - }, - { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] - } - ] + "name": "windowId", + "type": "u8" } ] ], - "packet_transaction": [ + "packet_collect": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "collectedEntityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "collectorEntityId", + "type": "varint" }, { - "name": "accepted", - "type": "bool" - } - ] - ], - "packet_close_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" + "name": "pickupItemCount", + "type": "varint" } ] ], - "packet_open_window": [ + "packet_combat_event": [ "container", [ { - "name": "windowId", + "name": "event", "type": "varint" }, { - "name": "inventoryType", - "type": "varint" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "windowTitle", - "type": "string" - } - ] - ], - "packet_window_items": [ - "container", - [ + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] + }, { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "i32", + "2": "i32" + } + } + ] }, { - "name": "items", + "name": "message", "type": [ - "array", + "switch", { - "countType": "i16", - "type": "slot" + "compareTo": "event", + "default": "void", + "fields": { + "2": "string" + } } ] } @@ -2051,7 +1950,7 @@ } ] ], - "packet_set_slot": [ + "packet_craft_recipe_response": [ "container", [ { @@ -2059,25 +1958,8 @@ "type": "i8" }, { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ - { - "name": "itemID", - "type": "varint" - }, - { - "name": "cooldownTicks", - "type": "varint" + "name": "recipe", + "type": "string" } ] ], @@ -2094,348 +1976,652 @@ } ] ], - "packet_named_sound_effect": [ + "packet_declare_commands": [ "container", [ { - "name": "soundName", - "type": "string" + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "soundCategory", + "name": "rootIndex", "type": "varint" - }, - { - "name": "x", - "type": "i32" - }, + } + ] + ], + "packet_declare_recipes": [ + "container", + [ { - "name": "y", - "type": "i32" - }, + "name": "recipes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] + } + ] + ] + } + ] + } + ] + ], + "packet_difficulty": [ + "container", + [ { - "name": "z", - "type": "i32" + "name": "difficulty", + "type": "u8" }, { - "name": "volume", - "type": "f32" - }, + "name": "difficultyLocked", + "type": "bool" + } + ] + ], + "packet_entity": [ + "container", + [ { - "name": "pitch", - "type": "f32" + "name": "entityId", + "type": "varint" } ] ], - "packet_kick_disconnect": [ + "packet_entity_destroy": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_effect": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", + "name": "effectId", "type": "i8" - } - ] - ], - "packet_explosion": [ - "container", - [ - { - "name": "x", - "type": "f32" }, { - "name": "y", - "type": "f32" + "name": "amplifier", + "type": "i8" }, { - "name": "z", - "type": "f32" + "name": "duration", + "type": "varint" }, { - "name": "radius", - "type": "f32" + "name": "hideParticles", + "type": "i8" + } + ] + ], + "packet_entity_equipment": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "affectedBlockOffsets", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "i32", "type": [ "container", [ { - "name": "x", - "type": "i8" - }, - { - "name": "y", + "name": "slot", "type": "i8" }, { - "name": "z", - "type": "i8" + "name": "item", + "type": "slot" } ] ] } ] + } + ] + ], + "packet_entity_head_rotation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "playerMotionX", - "type": "f32" + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "playerMotionY", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "playerMotionZ", - "type": "f32" + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_unload_chunk": [ + "packet_entity_metadata": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_game_state_change": [ + "packet_entity_move_look": [ "container", [ { - "name": "reason", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "gameMode", - "type": "f32" + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_open_horse_window": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "soundId", + "type": "varint" }, { - "name": "nbSlots", + "name": "soundCategory", "type": "varint" }, { "name": "entityId", - "type": "i32" + "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_keep_alive": [ + "packet_entity_status": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "entityId", + "type": "i32" + }, + { + "name": "entityStatus", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_entity_teleport": [ "container", [ { - "name": "x", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "z", - "type": "i32" + "name": "x", + "type": "f64" }, { - "name": "groundUp", - "type": "bool" + "name": "y", + "type": "f64" }, { - "name": "ignoreOldData", - "type": "bool" + "name": "z", + "type": "f64" }, { - "name": "bitMap", - "type": "varint" + "name": "yaw", + "type": "i8" }, { - "name": "heightmaps", - "type": "nbt" + "name": "pitch", + "type": "i8" }, { - "name": "biomes", - "type": [ - "switch", - { - "compareTo": "groundUp", - "fields": { - "false": "void", - "true": [ - "array", - { - "count": 1024, - "type": "i32" - } - ] - } - } - ] - }, + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "blockEntities", + "name": "properties", "type": [ "array", { - "countType": "varint", - "type": "nbt" + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] } ] } ] ], - "packet_world_event": [ + "packet_entity_velocity": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "global", - "type": "bool" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_world_particles": [ + "packet_experience": [ "container", [ { - "name": "particleId", - "type": "i32" + "name": "experienceBar", + "type": "f32" }, { - "name": "longDistance", - "type": "bool" + "name": "level", + "type": "varint" }, + { + "name": "totalExperience", + "type": "varint" + } + ] + ], + "packet_explosion": [ + "container", + [ { "name": "x", - "type": "f64" + "type": "f32" }, { "name": "y", - "type": "f64" + "type": "f32" }, { "name": "z", - "type": "f64" - }, - { - "name": "offsetX", "type": "f32" }, { - "name": "offsetY", + "name": "radius", "type": "f32" }, { - "name": "offsetZ", - "type": "f32" + "name": "affectedBlockOffsets", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + } + ] + ] + } + ] }, { - "name": "particleData", + "name": "playerMotionX", "type": "f32" }, { - "name": "particles", - "type": "i32" + "name": "playerMotionY", + "type": "f32" }, { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_update_light": [ + "packet_face_player": [ "container", [ { - "name": "chunkX", + "name": "feet_eyes", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "trustEdges", - "type": "bool" + "name": "y", + "type": "f64" }, { - "name": "skyLightMask", - "type": "varint" + "name": "z", + "type": "f64" }, { - "name": "blockLightMask", - "type": "varint" + "name": "isEntity", + "type": "bool" }, { - "name": "emptySkyLightMask", - "type": "varint" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "emptyBlockLightMask", - "type": "varint" + "name": "entity_feet_eyes", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } + } + ] + } + ] + ], + "packet_game_state_change": [ + "container", + [ + { + "name": "reason", + "type": "u8" }, { - "name": "data", - "type": "restBuffer" + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "string" } ] ], @@ -2572,10 +2758,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2585,10 +2771,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2598,116 +2784,140 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } + } + ] + } + ] + ], + "packet_map_chunk": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" + }, + { + "name": "ignoreOldData", + "type": "bool" + }, + { + "name": "bitMap", + "type": "varint" + }, + { + "name": "heightmaps", + "type": "nbt" + }, + { + "name": "biomes", + "type": [ + "switch", + { + "compareTo": "groundUp", + "fields": { + "false": "void", + "true": [ + "array", + { + "count": 1024, + "type": "i32" + } + ] + } + } + ] + }, + { + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" } ] }, { - "name": "data", + "name": "blockEntities", "type": [ - "switch", + "array", { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] + "countType": "varint", + "type": "nbt" } ] } ] ], - "packet_trade_list": [ + "packet_multi_block_change": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "chunkX", + "type": "i32" }, { - "name": "trades", + "name": "chunkZ", + "type": "i32" + }, + { + "name": "records", "type": [ "array", { - "countType": "u8", + "countType": "varint", "type": [ "container", [ { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - "slot" - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" + "name": "horizontalPos", + "type": "u8" }, { - "name": "priceMultiplier", - "type": "f32" + "name": "y", + "type": "u8" }, { - "name": "demand", - "type": "i32" + "name": "blockId", + "type": "varint" } ] ] } ] - }, - { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" - }, - { - "name": "isRegularVillager", - "type": "bool" - }, - { - "name": "canRestock", - "type": "bool" } ] ], - "packet_rel_entity_move": [ + "packet_named_entity_spawn": [ "container", [ { @@ -2715,41 +2925,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_move_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dX", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dY", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -2758,60 +2947,34 @@ { "name": "pitch", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2820,113 +2983,68 @@ } ] ], - "packet_open_book": [ + "packet_nbt_query_response": [ "container", [ { - "name": "hand", + "name": "transactionId", "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_open_sign_entity": [ + "packet_open_book": [ "container", [ { - "name": "location", - "type": "position" + "name": "hand", + "type": "varint" } ] ], - "packet_craft_recipe_response": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "recipe", - "type": "string" + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "event", + "name": "windowId", "type": "varint" }, - { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + { + "name": "inventoryType", + "type": "varint" }, { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "string" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" } ] ], @@ -2938,14 +3056,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -3022,37 +3140,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -3064,6 +3182,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -3097,72 +3228,28 @@ } ] ], - "packet_unlock_recipes": [ + "packet_rel_entity_move": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smeltingBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmeltable", + "name": "onGround", "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -3229,245 +3316,230 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ { - "name": "action", - "type": "varint" - }, - { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "name", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "i8" }, { - "name": "old_radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "new_radius", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] - }, + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] + "name": "itemName", + "type": "string" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "warning_blocks", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_camera": [ - "container", - [ - { - "name": "cameraId", - "type": "varint" - } - ] - ], - "packet_held_item_slot": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "id", + "type": [ + "option", + "string" + ] } ] ], - "packet_update_view_position": [ + "packet_set_cooldown": [ "container", [ { - "name": "chunkX", + "name": "itemID", "type": "varint" }, { - "name": "chunkZ", + "name": "cooldownTicks", "type": "varint" } ] ], - "packet_update_view_distance": [ + "packet_set_passengers": [ "container", [ { - "name": "viewDistance", + "name": "entityId", "type": "varint" + }, + { + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_scoreboard_display_objective": [ + "packet_set_slot": [ "container", [ { - "name": "position", + "name": "windowId", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_entity_metadata": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "soundCategory", + "type": "varint" + }, { - "name": "entityId", + "name": "x", "type": "i32" }, { - "name": "vehicleId", + "name": "y", + "type": "i32" + }, + { + "name": "z", "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -3475,122 +3547,233 @@ "type": "varint" }, { - "name": "equipments", - "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_experience": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "totalExperience", + "name": "type", "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_update_health": [ + "packet_spawn_entity_painting": [ "container", [ { - "name": "health", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "food", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_scoreboard_objective": [ + "packet_spawn_position": [ "container", [ { - "name": "name", - "type": "string" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ { - "name": "action", + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_stop_sound": [ + "container", + [ + { + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "2": "string", + "3": "string" + } } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "passengers", + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], + "packet_tags": [ + "container", + [ + { + "name": "blockTags", + "type": "tags" + }, + { + "name": "itemTags", + "type": "tags" + }, + { + "name": "fluidTags", + "type": "tags" + }, + { + "name": "entityTags", + "type": "tags" + } + ] + ], "packet_teams": [ "container", [ @@ -3608,11 +3791,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3622,11 +3805,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3636,11 +3819,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3650,11 +3833,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3664,11 +3847,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3678,11 +3861,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3692,11 +3875,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3706,6 +3889,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3728,62 +3912,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3800,12 +3948,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3815,10 +3963,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3828,10 +3976,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3841,147 +3989,273 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_entity_sound_effect": [ + "packet_trade_list": [ "container", [ { - "name": "soundId", + "name": "windowId", "type": "varint" }, { - "name": "soundCategory", + "name": "trades", + "type": [ + "array", + { + "countType": "u8", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] + } + ] + }, + { + "name": "villagerLevel", "type": "varint" }, { - "name": "entityId", + "name": "experience", "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "isRegularVillager", + "type": "bool" }, { - "name": "pitch", - "type": "f32" + "name": "canRestock", + "type": "bool" } ] ], - "packet_stop_sound": [ + "packet_transaction": [ "container", [ { - "name": "flags", + "name": "windowId", "type": "i8" }, { - "name": "source", + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + } + ] + ], + "packet_unlock_recipes": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "filteringSmeltable", + "type": "bool" + }, + { + "name": "recipes1", "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" + "array", + { + "countType": "varint", + "type": "string" } ] }, { - "name": "sound", + "name": "recipes2", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "action", + "default": "void", "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" }, { - "name": "soundCategory", + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_light": [ + "container", + [ + { + "name": "chunkX", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "chunkZ", + "type": "varint" }, { - "name": "y", - "type": "i32" + "name": "trustEdges", + "type": "bool" }, { - "name": "z", - "type": "i32" + "name": "skyLightMask", + "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "blockLightMask", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "emptySkyLightMask", + "type": "varint" + }, + { + "name": "emptyBlockLightMask", + "type": "varint" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_playerlist_header": [ + "packet_update_time": [ "container", [ { - "name": "header", - "type": "string" + "name": "age", + "type": "i64" }, { - "name": "footer", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_collect": [ + "packet_update_view_distance": [ "container", [ { - "name": "collectedEntityId", + "name": "viewDistance", "type": "varint" - }, + } + ] + ], + "packet_update_view_position": [ + "container", + [ { - "name": "collectorEntityId", + "name": "chunkX", "type": "varint" }, { - "name": "pickupItemCount", + "name": "chunkZ", "type": "varint" } ] ], - "packet_entity_teleport": [ + "packet_vehicle_move": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "x", "type": "f64" @@ -3996,304 +4270,245 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "onGround", - "type": "bool" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_entity_update_attributes": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "properties", + "name": "radius", "type": [ - "array", + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], - "packet_select_advancement_tab": [ + "packet_world_particles": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + "name": "particleId", + "type": "i32" + }, { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing": [ - "container", - [ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] - } - ] - ] - } - ] - } - ] - ], - "packet_tags": [ - "container", - [ + "name": "longDistance", + "type": "bool" + }, { - "name": "blockTags", - "type": "tags" + "name": "x", + "type": "f64" }, { - "name": "itemTags", - "type": "tags" + "name": "y", + "type": "f64" }, { - "name": "fluidTags", - "type": "tags" + "name": "z", + "type": "f64" }, { - "name": "entityTags", - "type": "tags" - } - ] - ], - "packet_acknowledge_player_digging": [ - "container", - [ + "name": "offsetX", + "type": "f32" + }, { - "name": "location", - "type": "position" + "name": "offsetY", + "type": "f32" }, { - "name": "block", - "type": "varint" + "name": "offsetZ", + "type": "f32" }, { - "name": "status", - "type": "varint" + "name": "particleData", + "type": "f32" }, { - "name": "successful", - "type": "bool" + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -4302,101 +4517,56 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "animation", - "0x06": "statistics", - "0x07": "acknowledge_player_digging", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "entity", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "combat_event", - "0x33": "player_info", - "0x34": "face_player", - "0x35": "position", - "0x36": "unlock_recipes", - "0x37": "entity_destroy", - "0x38": "remove_entity_effect", - "0x39": "resource_pack_send", - "0x3a": "respawn", - "0x3b": "entity_head_rotation", - "0x3c": "select_advancement_tab", - "0x3d": "world_border", - "0x3e": "camera", - "0x3f": "held_item_slot", - "0x40": "update_view_position", - "0x41": "update_view_distance", - "0x42": "spawn_position", - "0x43": "scoreboard_display_objective", - "0x44": "entity_metadata", - "0x45": "attach_entity", - "0x46": "entity_velocity", - "0x47": "entity_equipment", - "0x48": "experience", - "0x49": "update_health", - "0x4a": "scoreboard_objective", - "0x4b": "set_passengers", - "0x4c": "teams", - "0x4d": "scoreboard_score", - "0x4e": "update_time", - "0x4f": "title", - "0x50": "entity_sound_effect", - "0x51": "sound_effect", - "0x52": "stop_sound", - "0x53": "playerlist_header", - "0x54": "nbt_query_response", - "0x55": "collect", - "0x56": "entity_teleport", - "0x57": "advancements", - "0x58": "entity_update_attributes", - "0x59": "entity_effect", - "0x5a": "declare_recipes", - "0x5b": "tags" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "generate_structure", + "0x10": "keep_alive", + "0x11": "lock_difficulty", + "0x12": "position", + "0x13": "position_look", + "0x14": "look", + "0x15": "flying", + "0x16": "vehicle_move", + "0x17": "steer_boat", + "0x18": "pick_item", + "0x19": "craft_recipe_request", + "0x1a": "abilities", + "0x1b": "block_dig", + "0x1c": "entity_action", + "0x1d": "steer_vehicle", + "0x1e": "crafting_book_data", + "0x1f": "name_item", + "0x20": "resource_pack_receive", + "0x21": "advancement_tab", + "0x22": "select_trade", + "0x23": "set_beacon_effect", + "0x24": "held_item_slot", + "0x25": "update_command_block", + "0x26": "update_command_block_minecart", + "0x27": "set_creative_slot", + "0x28": "update_jigsaw_block", + "0x29": "update_structure_block", + "0x2a": "update_sign", + "0x2b": "arm_animation", + "0x2c": "spectate", + "0x2d": "block_place", + "0x2e": "use_item" + }, + "type": "varint" } ] }, @@ -4407,559 +4577,404 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "entity_sound_effect": "packet_entity_sound_effect", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "acknowledge_player_digging": "packet_acknowledge_player_digging" + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_set_difficulty": [ + "packet_arm_animation": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "hand", + "type": "varint" } ] ], - "packet_edit_book": [ + "packet_block_dig": [ "container", [ { - "name": "new_book", - "type": "slot" + "name": "status", + "type": "varint" }, { - "name": "signing", - "type": "bool" + "name": "location", + "type": "position" }, { - "name": "hand", - "type": "varint" + "name": "face", + "type": "i8" } ] ], - "packet_query_entity_nbt": [ + "packet_block_place": [ "container", [ { - "name": "transactionId", + "name": "hand", "type": "varint" }, { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_pick_item": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "slot", + "name": "direction", "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ + }, { - "name": "name", - "type": "string" + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" } ] ], - "packet_select_trade": [ + "packet_chat": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "message", + "type": "string" } ] ], - "packet_set_beacon_effect": [ + "packet_client_command": [ "container", [ { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", + "name": "actionId", "type": "varint" } ] ], - "packet_update_command_block": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", + "name": "windowId", "type": "u8" } ] ], - "packet_update_command_block_minecart": [ + "packet_craft_recipe_request": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "command", + "name": "recipe", "type": "string" }, { - "name": "track_output", + "name": "makeAll", "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_crafting_book_data": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", + "name": "type", "type": "varint" }, { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", - "type": "f32" - }, - { - "name": "seed", - "type": "varlong" - }, - { - "name": "flags", - "type": "u8" + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "smeltingFilter", + "type": "bool" + }, + { + "name": "blastingBookOpen", + "type": "bool" + }, + { + "name": "blastingFilter", + "type": "bool" + }, + { + "name": "smokingBookOpen", + "type": "bool" + }, + { + "name": "smokingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], - "packet_tab_complete": [ + "packet_custom_payload": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "text", - "type": "string" + "name": "data", + "type": "restBuffer" } ] ], - "packet_chat": [ + "packet_edit_book": [ "container", [ { - "name": "message", - "type": "string" - } - ] - ], - "packet_client_command": [ - "container", - [ + "name": "new_book", + "type": "slot" + }, { - "name": "actionId", + "name": "signing", + "type": "bool" + }, + { + "name": "hand", "type": "varint" } ] ], - "packet_settings": [ + "packet_enchant_item": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", + "name": "windowId", "type": "i8" }, { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" + "name": "enchantment", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "actionId", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_enchant_item": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "onGround", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_generate_structure": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "location", + "type": "position" }, { - "name": "mode", - "type": "i8" + "name": "levels", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "keepJigsaws", + "type": "bool" } ] ], - "packet_close_window": [ + "packet_held_item_slot": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "slotId", + "type": "i16" } ] ], - "packet_custom_payload": [ + "packet_keep_alive": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_use_entity": [ + "packet_lock_difficulty": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "sneaking", + "name": "locked", "type": "bool" } ] ], - "packet_generate_structure": [ + "packet_look": [ "container", [ { - "name": "location", - "type": "position" + "name": "yaw", + "type": "f32" }, { - "name": "levels", - "type": "varint" + "name": "pitch", + "type": "f32" }, { - "name": "keepJigsaws", + "name": "onGround", "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_name_item": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "name", + "type": "string" } ] ], - "packet_lock_difficulty": [ + "packet_pick_item": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], @@ -5013,127 +5028,133 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "location", + "type": "position" } ] ], - "packet_flying": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "transactionId", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, + "name": "result", + "type": "varint" + } + ] + ], + "packet_select_trade": [ + "container", + [ { - "name": "pitch", - "type": "f32" + "name": "slot", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "primary_effect", + "type": "varint" }, { - "name": "rightPaddle", - "type": "bool" + "name": "secondary_effect", + "type": "varint" } ] ], - "packet_craft_recipe_request": [ + "packet_set_creative_slot": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" + "name": "slot", + "type": "i16" }, { - "name": "makeAll", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_abilities": [ + "packet_set_difficulty": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_block_dig": [ + "packet_settings": [ "container", [ { - "name": "status", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "chatColors", + "type": "bool" }, { - "name": "face", - "type": "i8" + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" } ] ], - "packet_entity_action": [ + "packet_spectate": [ "container", [ { - "name": "entityId", - "type": "varint" - }, + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5154,100 +5175,80 @@ } ] ], - "packet_crafting_book_data": [ + "packet_tab_complete": [ "container", [ { - "name": "type", + "name": "transactionId", "type": "varint" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "smeltingFilter", - "type": "bool" - }, - { - "name": "blastingBookOpen", - "type": "bool" - }, - { - "name": "blastingFilter", - "type": "bool" - }, - { - "name": "smokingBookOpen", - "type": "bool" - }, - { - "name": "smokingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_transaction": [ "container", [ { - "name": "slotId", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" + }, + { + "name": "accepted", + "type": "bool" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "location", + "type": "position" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] + ], + "packet_update_command_block_minecart": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5288,70 +5289,158 @@ "type": "position" }, { - "name": "text1", - "type": "string" + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "hand", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "mouse", + "type": "varint" }, { - "name": "direction", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "insideBlock", + "name": "sneaking", "type": "bool" } ] @@ -5365,146 +5454,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "generate_structure", - "0x10": "keep_alive", - "0x11": "lock_difficulty", - "0x12": "position", - "0x13": "position_look", - "0x14": "look", - "0x15": "flying", - "0x16": "vehicle_move", - "0x17": "steer_boat", - "0x18": "pick_item", - "0x19": "craft_recipe_request", - "0x1a": "abilities", - "0x1b": "block_dig", - "0x1c": "entity_action", - "0x1d": "steer_vehicle", - "0x1e": "crafting_book_data", - "0x1f": "name_item", - "0x20": "resource_pack_receive", - "0x21": "advancement_tab", - "0x22": "select_trade", - "0x23": "set_beacon_effect", - "0x24": "held_item_slot", - "0x25": "update_command_block", - "0x26": "update_command_block_minecart", - "0x27": "set_creative_slot", - "0x28": "update_jigsaw_block", - "0x29": "update_structure_block", - "0x2a": "update_sign", - "0x2b": "arm_animation", - "0x2c": "spectate", - "0x2d": "block_place", - "0x2e": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.16.1/protocol.json b/data/pc/1.16.1/protocol.json index 8ed97db39..1b057176f 100644 --- a/data/pc/1.16.1/protocol.json +++ b/data/pc/1.16.1/protocol.json @@ -1,413 +1,75 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "23": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "34": [ - "container", - [ + "name": "has_command", + "signed": false, + "size": 1 + }, { - "name": "item", - "type": "slot" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { "name": "extraNodeData", @@ -445,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -455,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -477,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -490,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -509,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -531,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -544,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -563,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -585,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -598,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -617,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -639,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -652,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -664,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -744,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -760,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -769,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -780,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -794,21 +456,359 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "23": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "34": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -828,6 +828,46 @@ }, "toServer": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", + [ + { + "name": "payload", + "type": "u8" + } + ] + ], "packet_set_protocol": [ "container", [ @@ -848,16 +888,13 @@ "type": "varint" } ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -866,11 +903,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -881,38 +918,36 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_ping": [ + "packet_server_info": [ "container", [ { - "name": "time", - "type": "i64" + "name": "response", + "type": "string" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -921,11 +956,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "server_info", + "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -936,21 +971,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -961,6 +988,16 @@ } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -969,11 +1006,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" + }, + "type": "varint" } ] }, @@ -984,20 +1024,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -1034,45 +1080,40 @@ } ] ], - "packet_success": [ + "packet_login_plugin_request": [ "container", [ { - "name": "uuid", - "type": "UUID" + "name": "messageId", + "type": "varint" }, { - "name": "username", + "name": "channel", "type": "string" - } - ] - ], - "packet_compress": [ - "container", - [ + }, { - "name": "threshold", - "type": "varint" + "name": "data", + "type": "restBuffer" } ] ], - "packet_login_plugin_request": [ + "packet_success": [ "container", [ { - "name": "messageId", - "type": "varint" + "name": "uuid", + "type": "UUID" }, { - "name": "channel", + "name": "username", "type": "string" - }, - { - "name": "data", - "type": "restBuffer" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1081,14 +1122,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", + "0x00": "login_start", "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" - } + "0x02": "login_plugin_response" + }, + "type": "varint" } ] }, @@ -1099,29 +1138,14 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -1162,6 +1186,21 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1170,12 +1209,101 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "animation", + "0x06": "statistics", + "0x07": "acknowledge_player_digging", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "entity", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "combat_event", + "0x33": "player_info", + "0x34": "face_player", + "0x35": "position", + "0x36": "unlock_recipes", + "0x37": "entity_destroy", + "0x38": "remove_entity_effect", + "0x39": "resource_pack_send", + "0x3a": "respawn", + "0x3b": "entity_head_rotation", + "0x3c": "select_advancement_tab", + "0x3d": "world_border", + "0x3e": "camera", + "0x3f": "held_item_slot", + "0x40": "update_view_position", + "0x41": "update_view_distance", + "0x42": "spawn_position", + "0x43": "scoreboard_display_objective", + "0x44": "entity_metadata", + "0x45": "attach_entity", + "0x46": "entity_velocity", + "0x47": "entity_equipment", + "0x48": "experience", + "0x49": "update_health", + "0x4a": "scoreboard_objective", + "0x4b": "set_passengers", + "0x4c": "teams", + "0x4d": "scoreboard_score", + "0x4e": "update_time", + "0x4f": "title", + "0x50": "entity_sound_effect", + "0x51": "sound_effect", + "0x52": "stop_sound", + "0x53": "playerlist_header", + "0x54": "nbt_query_response", + "0x55": "collect", + "0x56": "entity_teleport", + "0x57": "advancements", + "0x58": "entity_update_attributes", + "0x59": "entity_effect", + "0x5a": "declare_recipes", + "0x5b": "tags" + }, + "type": "varint" } ] }, @@ -1186,235 +1314,139 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "trade_list": "packet_trade_list", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] ], - "packet_spawn_entity_living": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "flags", "type": "i8" }, { - "name": "headPitch", - "type": "i8" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "velocity", - "type": "vec3i16" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity_painting": [ + "packet_acknowledge_player_digging": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" - }, { "name": "location", "type": "position" }, { - "name": "direction", - "type": "u8" - } - ] - ], - "packet_named_entity_spawn": [ - "container", - [ - { - "name": "entityId", + "name": "block", "type": "varint" }, { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", + "name": "status", "type": "varint" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "successful", + "type": "bool" } ] ], @@ -1480,23 +1512,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1507,10 +1539,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1627,7 +1659,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1635,29 +1667,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -1682,6 +1706,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1712,11 +1753,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1726,11 +1767,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1740,11 +1781,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1754,11 +1795,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1768,151 +1809,22 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" - } - ] - } - ] - ], - "packet_difficulty": [ - "container", - [ - { - "name": "difficulty", - "type": "u8" - }, - { - "name": "difficultyLocked", - "type": "bool" - } - ] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", - "type": "varint" - }, - { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "packet_declare_commands": [ - "container", - [ - { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] - }, - { - "name": "rootIndex", - "type": "varint" - } - ] - ], - "packet_face_player": [ - "container", - [ - { - "name": "feet_eyes", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entity_feet_eyes", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "string" - }, - "default": "void" + } } ] } ] ], - "packet_nbt_query_response": [ + "packet_camera": [ "container", [ { - "name": "transactionId", + "name": "cameraId", "type": "varint" - }, - { - "name": "nbt", - "type": "optionalNbt" } ] ], @@ -1933,102 +1845,89 @@ } ] ], - "packet_multi_block_change": [ + "packet_close_window": [ "container", [ { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - }, - { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] - } - ] + "name": "windowId", + "type": "u8" } ] ], - "packet_transaction": [ + "packet_collect": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "collectedEntityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "collectorEntityId", + "type": "varint" }, { - "name": "accepted", - "type": "bool" - } - ] - ], - "packet_close_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" + "name": "pickupItemCount", + "type": "varint" } ] ], - "packet_open_window": [ + "packet_combat_event": [ "container", [ { - "name": "windowId", + "name": "event", "type": "varint" }, { - "name": "inventoryType", - "type": "varint" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "windowTitle", - "type": "string" - } - ] - ], - "packet_window_items": [ - "container", - [ + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] + }, { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "i32", + "2": "i32" + } + } + ] }, { - "name": "items", + "name": "message", "type": [ - "array", + "switch", { - "countType": "i16", - "type": "slot" + "compareTo": "event", + "default": "void", + "fields": { + "2": "string" + } } ] } @@ -2051,7 +1950,7 @@ } ] ], - "packet_set_slot": [ + "packet_craft_recipe_response": [ "container", [ { @@ -2059,25 +1958,8 @@ "type": "i8" }, { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ - { - "name": "itemID", - "type": "varint" - }, - { - "name": "cooldownTicks", - "type": "varint" + "name": "recipe", + "type": "string" } ] ], @@ -2094,348 +1976,652 @@ } ] ], - "packet_named_sound_effect": [ + "packet_declare_commands": [ "container", [ { - "name": "soundName", - "type": "string" + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "soundCategory", + "name": "rootIndex", "type": "varint" - }, - { - "name": "x", - "type": "i32" - }, + } + ] + ], + "packet_declare_recipes": [ + "container", + [ { - "name": "y", - "type": "i32" - }, + "name": "recipes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] + } + ] + ] + } + ] + } + ] + ], + "packet_difficulty": [ + "container", + [ { - "name": "z", - "type": "i32" + "name": "difficulty", + "type": "u8" }, { - "name": "volume", - "type": "f32" - }, + "name": "difficultyLocked", + "type": "bool" + } + ] + ], + "packet_entity": [ + "container", + [ { - "name": "pitch", - "type": "f32" + "name": "entityId", + "type": "varint" } ] ], - "packet_kick_disconnect": [ + "packet_entity_destroy": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_effect": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", + "name": "effectId", "type": "i8" - } - ] - ], - "packet_explosion": [ - "container", - [ - { - "name": "x", - "type": "f32" }, { - "name": "y", - "type": "f32" + "name": "amplifier", + "type": "i8" }, { - "name": "z", - "type": "f32" + "name": "duration", + "type": "varint" }, { - "name": "radius", - "type": "f32" + "name": "hideParticles", + "type": "i8" + } + ] + ], + "packet_entity_equipment": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "affectedBlockOffsets", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "i32", "type": [ "container", [ { - "name": "x", - "type": "i8" - }, - { - "name": "y", + "name": "slot", "type": "i8" }, { - "name": "z", - "type": "i8" + "name": "item", + "type": "slot" } ] ] } ] + } + ] + ], + "packet_entity_head_rotation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "playerMotionX", - "type": "f32" + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "playerMotionY", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "playerMotionZ", - "type": "f32" + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_unload_chunk": [ + "packet_entity_metadata": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_game_state_change": [ + "packet_entity_move_look": [ "container", [ { - "name": "reason", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "gameMode", - "type": "f32" + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_open_horse_window": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "soundId", + "type": "varint" }, { - "name": "nbSlots", + "name": "soundCategory", "type": "varint" }, { "name": "entityId", - "type": "i32" + "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_keep_alive": [ + "packet_entity_status": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "entityId", + "type": "i32" + }, + { + "name": "entityStatus", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_entity_teleport": [ "container", [ { - "name": "x", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "z", - "type": "i32" + "name": "x", + "type": "f64" }, { - "name": "groundUp", - "type": "bool" + "name": "y", + "type": "f64" }, { - "name": "ignoreOldData", - "type": "bool" + "name": "z", + "type": "f64" }, { - "name": "bitMap", - "type": "varint" + "name": "yaw", + "type": "i8" }, { - "name": "heightmaps", - "type": "nbt" + "name": "pitch", + "type": "i8" }, { - "name": "biomes", - "type": [ - "switch", - { - "compareTo": "groundUp", - "fields": { - "false": "void", - "true": [ - "array", - { - "count": 1024, - "type": "i32" - } - ] - } - } - ] - }, + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "blockEntities", + "name": "properties", "type": [ "array", { - "countType": "varint", - "type": "nbt" + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] } ] } ] ], - "packet_world_event": [ + "packet_entity_velocity": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "global", - "type": "bool" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_world_particles": [ + "packet_experience": [ "container", [ { - "name": "particleId", - "type": "i32" + "name": "experienceBar", + "type": "f32" }, { - "name": "longDistance", - "type": "bool" + "name": "level", + "type": "varint" }, + { + "name": "totalExperience", + "type": "varint" + } + ] + ], + "packet_explosion": [ + "container", + [ { "name": "x", - "type": "f64" + "type": "f32" }, { "name": "y", - "type": "f64" + "type": "f32" }, { "name": "z", - "type": "f64" - }, - { - "name": "offsetX", "type": "f32" }, { - "name": "offsetY", + "name": "radius", "type": "f32" }, { - "name": "offsetZ", - "type": "f32" + "name": "affectedBlockOffsets", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + } + ] + ] + } + ] }, { - "name": "particleData", + "name": "playerMotionX", "type": "f32" }, { - "name": "particles", - "type": "i32" + "name": "playerMotionY", + "type": "f32" }, { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_update_light": [ + "packet_face_player": [ "container", [ { - "name": "chunkX", + "name": "feet_eyes", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "trustEdges", - "type": "bool" + "name": "y", + "type": "f64" }, { - "name": "skyLightMask", - "type": "varint" + "name": "z", + "type": "f64" }, { - "name": "blockLightMask", - "type": "varint" + "name": "isEntity", + "type": "bool" }, { - "name": "emptySkyLightMask", - "type": "varint" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "emptyBlockLightMask", - "type": "varint" + "name": "entity_feet_eyes", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } + } + ] + } + ] + ], + "packet_game_state_change": [ + "container", + [ + { + "name": "reason", + "type": "u8" }, { - "name": "data", - "type": "restBuffer" + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "string" } ] ], @@ -2572,10 +2758,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2585,10 +2771,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2598,116 +2784,140 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } + } + ] + } + ] + ], + "packet_map_chunk": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" + }, + { + "name": "ignoreOldData", + "type": "bool" + }, + { + "name": "bitMap", + "type": "varint" + }, + { + "name": "heightmaps", + "type": "nbt" + }, + { + "name": "biomes", + "type": [ + "switch", + { + "compareTo": "groundUp", + "fields": { + "false": "void", + "true": [ + "array", + { + "count": 1024, + "type": "i32" + } + ] + } + } + ] + }, + { + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" } ] }, { - "name": "data", + "name": "blockEntities", "type": [ - "switch", + "array", { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] + "countType": "varint", + "type": "nbt" } ] } ] ], - "packet_trade_list": [ + "packet_multi_block_change": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "chunkX", + "type": "i32" }, { - "name": "trades", + "name": "chunkZ", + "type": "i32" + }, + { + "name": "records", "type": [ "array", { - "countType": "u8", + "countType": "varint", "type": [ "container", [ { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - "slot" - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" + "name": "horizontalPos", + "type": "u8" }, { - "name": "priceMultiplier", - "type": "f32" + "name": "y", + "type": "u8" }, { - "name": "demand", - "type": "i32" + "name": "blockId", + "type": "varint" } ] ] } ] - }, - { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" - }, - { - "name": "isRegularVillager", - "type": "bool" - }, - { - "name": "canRestock", - "type": "bool" } ] ], - "packet_rel_entity_move": [ + "packet_named_entity_spawn": [ "container", [ { @@ -2715,41 +2925,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_move_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dX", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dY", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -2758,60 +2947,34 @@ { "name": "pitch", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2820,113 +2983,68 @@ } ] ], - "packet_open_book": [ + "packet_nbt_query_response": [ "container", [ { - "name": "hand", + "name": "transactionId", "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_open_sign_entity": [ + "packet_open_book": [ "container", [ { - "name": "location", - "type": "position" + "name": "hand", + "type": "varint" } ] ], - "packet_craft_recipe_response": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "recipe", - "type": "string" + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "event", + "name": "windowId", "type": "varint" }, - { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + { + "name": "inventoryType", + "type": "varint" }, { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "string" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" } ] ], @@ -2938,14 +3056,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -3022,37 +3140,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -3064,6 +3182,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -3097,72 +3228,28 @@ } ] ], - "packet_unlock_recipes": [ + "packet_rel_entity_move": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smeltingBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmeltable", + "name": "onGround", "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -3229,245 +3316,230 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ { - "name": "action", - "type": "varint" - }, - { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "name", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "i8" }, { - "name": "old_radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "new_radius", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] - }, + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] + "name": "itemName", + "type": "string" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "warning_blocks", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_camera": [ - "container", - [ - { - "name": "cameraId", - "type": "varint" - } - ] - ], - "packet_held_item_slot": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "id", + "type": [ + "option", + "string" + ] } ] ], - "packet_update_view_position": [ + "packet_set_cooldown": [ "container", [ { - "name": "chunkX", + "name": "itemID", "type": "varint" }, { - "name": "chunkZ", + "name": "cooldownTicks", "type": "varint" } ] ], - "packet_update_view_distance": [ + "packet_set_passengers": [ "container", [ { - "name": "viewDistance", + "name": "entityId", "type": "varint" + }, + { + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_scoreboard_display_objective": [ + "packet_set_slot": [ "container", [ { - "name": "position", + "name": "windowId", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_entity_metadata": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "soundCategory", + "type": "varint" + }, { - "name": "entityId", + "name": "x", "type": "i32" }, { - "name": "vehicleId", + "name": "y", + "type": "i32" + }, + { + "name": "z", "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -3475,122 +3547,233 @@ "type": "varint" }, { - "name": "equipments", - "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_experience": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "totalExperience", + "name": "type", "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_update_health": [ + "packet_spawn_entity_painting": [ "container", [ { - "name": "health", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "food", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_scoreboard_objective": [ + "packet_spawn_position": [ "container", [ { - "name": "name", - "type": "string" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ { - "name": "action", + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_stop_sound": [ + "container", + [ + { + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "2": "string", + "3": "string" + } } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "passengers", + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], + "packet_tags": [ + "container", + [ + { + "name": "blockTags", + "type": "tags" + }, + { + "name": "itemTags", + "type": "tags" + }, + { + "name": "fluidTags", + "type": "tags" + }, + { + "name": "entityTags", + "type": "tags" + } + ] + ], "packet_teams": [ "container", [ @@ -3608,11 +3791,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3622,11 +3805,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3636,11 +3819,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3650,11 +3833,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3664,11 +3847,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3678,11 +3861,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3692,11 +3875,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3706,6 +3889,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3728,62 +3912,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3800,12 +3948,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3815,10 +3963,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3828,10 +3976,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3841,147 +3989,273 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_entity_sound_effect": [ + "packet_trade_list": [ "container", [ { - "name": "soundId", + "name": "windowId", "type": "varint" }, { - "name": "soundCategory", + "name": "trades", + "type": [ + "array", + { + "countType": "u8", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] + } + ] + }, + { + "name": "villagerLevel", "type": "varint" }, { - "name": "entityId", + "name": "experience", "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "isRegularVillager", + "type": "bool" }, { - "name": "pitch", - "type": "f32" + "name": "canRestock", + "type": "bool" } ] ], - "packet_stop_sound": [ + "packet_transaction": [ "container", [ { - "name": "flags", + "name": "windowId", "type": "i8" }, { - "name": "source", + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + } + ] + ], + "packet_unlock_recipes": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "filteringSmeltable", + "type": "bool" + }, + { + "name": "recipes1", "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" + "array", + { + "countType": "varint", + "type": "string" } ] }, { - "name": "sound", + "name": "recipes2", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "action", + "default": "void", "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" }, { - "name": "soundCategory", + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_light": [ + "container", + [ + { + "name": "chunkX", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "chunkZ", + "type": "varint" }, { - "name": "y", - "type": "i32" + "name": "trustEdges", + "type": "bool" }, { - "name": "z", - "type": "i32" + "name": "skyLightMask", + "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "blockLightMask", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "emptySkyLightMask", + "type": "varint" + }, + { + "name": "emptyBlockLightMask", + "type": "varint" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_playerlist_header": [ + "packet_update_time": [ "container", [ { - "name": "header", - "type": "string" + "name": "age", + "type": "i64" }, { - "name": "footer", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_collect": [ + "packet_update_view_distance": [ "container", [ { - "name": "collectedEntityId", + "name": "viewDistance", "type": "varint" - }, + } + ] + ], + "packet_update_view_position": [ + "container", + [ { - "name": "collectorEntityId", + "name": "chunkX", "type": "varint" }, { - "name": "pickupItemCount", + "name": "chunkZ", "type": "varint" } ] ], - "packet_entity_teleport": [ + "packet_vehicle_move": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "x", "type": "f64" @@ -3996,304 +4270,245 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "onGround", - "type": "bool" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_entity_update_attributes": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "properties", + "name": "radius", "type": [ - "array", + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], - "packet_select_advancement_tab": [ + "packet_world_particles": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + "name": "particleId", + "type": "i32" + }, { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing": [ - "container", - [ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] - } - ] - ] - } - ] - } - ] - ], - "packet_tags": [ - "container", - [ + "name": "longDistance", + "type": "bool" + }, { - "name": "blockTags", - "type": "tags" + "name": "x", + "type": "f64" }, { - "name": "itemTags", - "type": "tags" + "name": "y", + "type": "f64" }, { - "name": "fluidTags", - "type": "tags" + "name": "z", + "type": "f64" }, { - "name": "entityTags", - "type": "tags" - } - ] - ], - "packet_acknowledge_player_digging": [ - "container", - [ + "name": "offsetX", + "type": "f32" + }, { - "name": "location", - "type": "position" + "name": "offsetY", + "type": "f32" }, { - "name": "block", - "type": "varint" + "name": "offsetZ", + "type": "f32" }, { - "name": "status", - "type": "varint" + "name": "particleData", + "type": "f32" }, { - "name": "successful", - "type": "bool" + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -4302,101 +4517,56 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "animation", - "0x06": "statistics", - "0x07": "acknowledge_player_digging", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "entity", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "combat_event", - "0x33": "player_info", - "0x34": "face_player", - "0x35": "position", - "0x36": "unlock_recipes", - "0x37": "entity_destroy", - "0x38": "remove_entity_effect", - "0x39": "resource_pack_send", - "0x3a": "respawn", - "0x3b": "entity_head_rotation", - "0x3c": "select_advancement_tab", - "0x3d": "world_border", - "0x3e": "camera", - "0x3f": "held_item_slot", - "0x40": "update_view_position", - "0x41": "update_view_distance", - "0x42": "spawn_position", - "0x43": "scoreboard_display_objective", - "0x44": "entity_metadata", - "0x45": "attach_entity", - "0x46": "entity_velocity", - "0x47": "entity_equipment", - "0x48": "experience", - "0x49": "update_health", - "0x4a": "scoreboard_objective", - "0x4b": "set_passengers", - "0x4c": "teams", - "0x4d": "scoreboard_score", - "0x4e": "update_time", - "0x4f": "title", - "0x50": "entity_sound_effect", - "0x51": "sound_effect", - "0x52": "stop_sound", - "0x53": "playerlist_header", - "0x54": "nbt_query_response", - "0x55": "collect", - "0x56": "entity_teleport", - "0x57": "advancements", - "0x58": "entity_update_attributes", - "0x59": "entity_effect", - "0x5a": "declare_recipes", - "0x5b": "tags" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "generate_structure", + "0x10": "keep_alive", + "0x11": "lock_difficulty", + "0x12": "position", + "0x13": "position_look", + "0x14": "look", + "0x15": "flying", + "0x16": "vehicle_move", + "0x17": "steer_boat", + "0x18": "pick_item", + "0x19": "craft_recipe_request", + "0x1a": "abilities", + "0x1b": "block_dig", + "0x1c": "entity_action", + "0x1d": "steer_vehicle", + "0x1e": "crafting_book_data", + "0x1f": "name_item", + "0x20": "resource_pack_receive", + "0x21": "advancement_tab", + "0x22": "select_trade", + "0x23": "set_beacon_effect", + "0x24": "held_item_slot", + "0x25": "update_command_block", + "0x26": "update_command_block_minecart", + "0x27": "set_creative_slot", + "0x28": "update_jigsaw_block", + "0x29": "update_structure_block", + "0x2a": "update_sign", + "0x2b": "arm_animation", + "0x2c": "spectate", + "0x2d": "block_place", + "0x2e": "use_item" + }, + "type": "varint" } ] }, @@ -4407,559 +4577,404 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "entity_sound_effect": "packet_entity_sound_effect", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "acknowledge_player_digging": "packet_acknowledge_player_digging" + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_set_difficulty": [ + "packet_arm_animation": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "hand", + "type": "varint" } ] ], - "packet_edit_book": [ + "packet_block_dig": [ "container", [ { - "name": "new_book", - "type": "slot" + "name": "status", + "type": "varint" }, { - "name": "signing", - "type": "bool" + "name": "location", + "type": "position" }, { - "name": "hand", - "type": "varint" + "name": "face", + "type": "i8" } ] ], - "packet_query_entity_nbt": [ + "packet_block_place": [ "container", [ { - "name": "transactionId", + "name": "hand", "type": "varint" }, { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_pick_item": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "slot", + "name": "direction", "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ + }, { - "name": "name", - "type": "string" + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" } ] ], - "packet_select_trade": [ + "packet_chat": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "message", + "type": "string" } ] ], - "packet_set_beacon_effect": [ + "packet_client_command": [ "container", [ { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", + "name": "actionId", "type": "varint" } ] ], - "packet_update_command_block": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", + "name": "windowId", "type": "u8" } ] ], - "packet_update_command_block_minecart": [ + "packet_craft_recipe_request": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "command", + "name": "recipe", "type": "string" }, { - "name": "track_output", + "name": "makeAll", "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_crafting_book_data": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", + "name": "type", "type": "varint" }, { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", - "type": "f32" - }, - { - "name": "seed", - "type": "varlong" - }, - { - "name": "flags", - "type": "u8" + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "smeltingFilter", + "type": "bool" + }, + { + "name": "blastingBookOpen", + "type": "bool" + }, + { + "name": "blastingFilter", + "type": "bool" + }, + { + "name": "smokingBookOpen", + "type": "bool" + }, + { + "name": "smokingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], - "packet_tab_complete": [ + "packet_custom_payload": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "text", - "type": "string" + "name": "data", + "type": "restBuffer" } ] ], - "packet_chat": [ + "packet_edit_book": [ "container", [ { - "name": "message", - "type": "string" - } - ] - ], - "packet_client_command": [ - "container", - [ + "name": "new_book", + "type": "slot" + }, { - "name": "actionId", + "name": "signing", + "type": "bool" + }, + { + "name": "hand", "type": "varint" } ] ], - "packet_settings": [ + "packet_enchant_item": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", + "name": "windowId", "type": "i8" }, { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" + "name": "enchantment", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "actionId", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_enchant_item": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "onGround", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_generate_structure": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "location", + "type": "position" }, { - "name": "mode", - "type": "i8" + "name": "levels", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "keepJigsaws", + "type": "bool" } ] ], - "packet_close_window": [ + "packet_held_item_slot": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "slotId", + "type": "i16" } ] ], - "packet_custom_payload": [ + "packet_keep_alive": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_use_entity": [ + "packet_lock_difficulty": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "sneaking", + "name": "locked", "type": "bool" } ] ], - "packet_generate_structure": [ + "packet_look": [ "container", [ { - "name": "location", - "type": "position" + "name": "yaw", + "type": "f32" }, { - "name": "levels", - "type": "varint" + "name": "pitch", + "type": "f32" }, { - "name": "keepJigsaws", + "name": "onGround", "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_name_item": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "name", + "type": "string" } ] ], - "packet_lock_difficulty": [ + "packet_pick_item": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], @@ -5013,127 +5028,133 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "location", + "type": "position" } ] ], - "packet_flying": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "transactionId", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, + "name": "result", + "type": "varint" + } + ] + ], + "packet_select_trade": [ + "container", + [ { - "name": "pitch", - "type": "f32" + "name": "slot", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "primary_effect", + "type": "varint" }, { - "name": "rightPaddle", - "type": "bool" + "name": "secondary_effect", + "type": "varint" } ] ], - "packet_craft_recipe_request": [ + "packet_set_creative_slot": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" + "name": "slot", + "type": "i16" }, { - "name": "makeAll", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_abilities": [ + "packet_set_difficulty": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_block_dig": [ + "packet_settings": [ "container", [ { - "name": "status", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "chatColors", + "type": "bool" }, { - "name": "face", - "type": "i8" + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" } ] ], - "packet_entity_action": [ + "packet_spectate": [ "container", [ { - "name": "entityId", - "type": "varint" - }, + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5154,100 +5175,80 @@ } ] ], - "packet_crafting_book_data": [ + "packet_tab_complete": [ "container", [ { - "name": "type", + "name": "transactionId", "type": "varint" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "smeltingFilter", - "type": "bool" - }, - { - "name": "blastingBookOpen", - "type": "bool" - }, - { - "name": "blastingFilter", - "type": "bool" - }, - { - "name": "smokingBookOpen", - "type": "bool" - }, - { - "name": "smokingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_transaction": [ "container", [ { - "name": "slotId", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" + }, + { + "name": "accepted", + "type": "bool" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "location", + "type": "position" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] + ], + "packet_update_command_block_minecart": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5288,70 +5289,158 @@ "type": "position" }, { - "name": "text1", - "type": "string" + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "hand", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "mouse", + "type": "varint" }, { - "name": "direction", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "insideBlock", + "name": "sneaking", "type": "bool" } ] @@ -5365,146 +5454,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "generate_structure", - "0x10": "keep_alive", - "0x11": "lock_difficulty", - "0x12": "position", - "0x13": "position_look", - "0x14": "look", - "0x15": "flying", - "0x16": "vehicle_move", - "0x17": "steer_boat", - "0x18": "pick_item", - "0x19": "craft_recipe_request", - "0x1a": "abilities", - "0x1b": "block_dig", - "0x1c": "entity_action", - "0x1d": "steer_vehicle", - "0x1e": "crafting_book_data", - "0x1f": "name_item", - "0x20": "resource_pack_receive", - "0x21": "advancement_tab", - "0x22": "select_trade", - "0x23": "set_beacon_effect", - "0x24": "held_item_slot", - "0x25": "update_command_block", - "0x26": "update_command_block_minecart", - "0x27": "set_creative_slot", - "0x28": "update_jigsaw_block", - "0x29": "update_structure_block", - "0x2a": "update_sign", - "0x2b": "arm_animation", - "0x2c": "spectate", - "0x2d": "block_place", - "0x2e": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.16.2/protocol.json b/data/pc/1.16.2/protocol.json index 80106885a..b5c9925dc 100644 --- a/data/pc/1.16.2/protocol.json +++ b/data/pc/1.16.2/protocol.json @@ -1,413 +1,75 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "23": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "34": [ - "container", - [ + "name": "has_command", + "signed": false, + "size": 1 + }, { - "name": "item", - "type": "slot" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { "name": "extraNodeData", @@ -445,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -455,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -477,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -490,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -509,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -531,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -544,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -563,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -585,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -598,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -617,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -639,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -652,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -664,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -744,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -760,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -769,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -780,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -794,173 +456,349 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": {} - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ "container", [ { - "name": "name", + "anon": true, "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" } - } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + "compareTo": "type" } ] } ] ] } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", { - "name": "time", - "type": "i64" + "compareTo": "particleId" } ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } - } - ] - } + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "23": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "34": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] ] - ] + } } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "time", - "type": "i64" + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] - ], + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { "packet": [ "container", [ @@ -969,11 +807,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "mappings": {}, + "type": "varint" } ] }, @@ -983,96 +818,83 @@ "switch", { "compareTo": "name", - "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" - } + "fields": {} } ] } ] ] } - } - }, - "login": { - "toClient": { + }, + "toServer": { "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_encryption_begin": [ + "packet": [ "container", [ { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } } ] } ] ], - "packet_success": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "username", - "type": "string" - } - ] - ], - "packet_compress": [ + "packet_legacy_server_list_ping": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "payload", + "type": "u8" } ] ], - "packet_login_plugin_request": [ + "packet_set_protocol": [ "container", [ { - "name": "messageId", + "name": "protocolVersion", "type": "varint" }, { - "name": "channel", + "name": "serverHost", "type": "string" }, { - "name": "data", - "type": "restBuffer" + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1081,14 +903,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -1099,69 +918,86 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", - "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_ping": [ "container", [ { - "name": "username", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_encryption_begin": [ + "packet_server_info": [ "container", [ { - "name": "sharedSecret", + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } } ] } ] ], - "packet_login_plugin_response": [ + "packet_ping": [ "container", [ { - "name": "messageId", - "type": "varint" - }, - { - "name": "data", - "type": [ - "option", - "restBuffer" - ] + "name": "time", + "type": "i64" } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1170,12 +1006,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", + "0x00": "disconnect", "0x01": "encryption_begin", - "0x02": "login_plugin_response" - } + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" + }, + "type": "varint" } ] }, @@ -1186,235 +1024,429 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", + "compress": "packet_compress", + "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_compress": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", + "name": "threshold", "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + } + ] + ], + "packet_disconnect": [ + "container", + [ { - "name": "pitch", - "type": "i8" - }, + "name": "reason", + "type": "string" + } + ] + ], + "packet_encryption_begin": [ + "container", + [ { - "name": "yaw", - "type": "i8" + "name": "serverId", + "type": "string" }, { - "name": "objectData", - "type": "i32" + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "velocity", - "type": "vec3i16" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_login_plugin_request": [ "container", [ { - "name": "entityId", + "name": "messageId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "channel", + "type": "string" }, { - "name": "count", - "type": "i16" + "name": "data", + "type": "restBuffer" } ] ], - "packet_spawn_entity_living": [ + "packet_success": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", + "name": "uuid", "type": "UUID" }, { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "yaw", - "type": "i8" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" + }, + "type": "varint" + } + ] }, { - "name": "pitch", - "type": "i8" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "encryption_begin": "packet_encryption_begin", + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" + } + } + ] + } + ] + ], + "packet_encryption_begin": [ + "container", + [ { - "name": "headPitch", - "type": "i8" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "velocity", - "type": "vec3i16" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_spawn_entity_painting": [ + "packet_login_plugin_response": [ "container", [ { - "name": "entityId", + "name": "messageId", "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" - }, + "name": "data", + "type": [ + "option", + "restBuffer" + ] + } + ] + ], + "packet_login_start": [ + "container", + [ { - "name": "title", - "type": "varint" - }, + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "packet": [ + "container", + [ { - "name": "location", - "type": "position" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "animation", + "0x06": "statistics", + "0x07": "acknowledge_player_digging", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "tab_complete", + "0x10": "declare_commands", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "window_items", + "0x14": "craft_progress_bar", + "0x15": "set_slot", + "0x16": "set_cooldown", + "0x17": "custom_payload", + "0x18": "named_sound_effect", + "0x19": "kick_disconnect", + "0x1a": "entity_status", + "0x1b": "explosion", + "0x1c": "unload_chunk", + "0x1d": "game_state_change", + "0x1e": "open_horse_window", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "update_light", + "0x24": "login", + "0x25": "map", + "0x26": "trade_list", + "0x27": "rel_entity_move", + "0x28": "entity_move_look", + "0x29": "entity_look", + "0x2a": "entity", + "0x2b": "vehicle_move", + "0x2c": "open_book", + "0x2d": "open_window", + "0x2e": "open_sign_entity", + "0x2f": "craft_recipe_response", + "0x30": "abilities", + "0x31": "combat_event", + "0x32": "player_info", + "0x33": "face_player", + "0x34": "position", + "0x35": "unlock_recipes", + "0x36": "entity_destroy", + "0x37": "remove_entity_effect", + "0x38": "resource_pack_send", + "0x39": "respawn", + "0x3a": "entity_head_rotation", + "0x3b": "multi_block_change", + "0x3c": "select_advancement_tab", + "0x3d": "world_border", + "0x3e": "camera", + "0x3f": "held_item_slot", + "0x40": "update_view_position", + "0x41": "update_view_distance", + "0x42": "spawn_position", + "0x43": "scoreboard_display_objective", + "0x44": "entity_metadata", + "0x45": "attach_entity", + "0x46": "entity_velocity", + "0x47": "entity_equipment", + "0x48": "experience", + "0x49": "update_health", + "0x4a": "scoreboard_objective", + "0x4b": "set_passengers", + "0x4c": "teams", + "0x4d": "scoreboard_score", + "0x4e": "update_time", + "0x4f": "title", + "0x50": "entity_sound_effect", + "0x51": "sound_effect", + "0x52": "stop_sound", + "0x53": "playerlist_header", + "0x54": "nbt_query_response", + "0x55": "collect", + "0x56": "entity_teleport", + "0x57": "advancements", + "0x58": "entity_update_attributes", + "0x59": "entity_effect", + "0x5a": "declare_recipes", + "0x5b": "tags" + }, + "type": "varint" + } + ] }, { - "name": "direction", - "type": "u8" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "trade_list": "packet_trade_list", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_named_entity_spawn": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "flags", + "type": "i8" }, { - "name": "yaw", - "type": "i8" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "pitch", - "type": "i8" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_animation": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "entityId", + "name": "location", + "type": "position" + }, + { + "name": "block", "type": "varint" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ + "name": "status", + "type": "varint" + }, { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "successful", + "type": "bool" } ] ], @@ -1480,23 +1512,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1507,10 +1539,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1627,6 +1659,53 @@ } ] ], + "packet_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "animation", + "type": "u8" + } + ] + ], + "packet_attach_entity": [ + "container", + [ + { + "name": "entityId", + "type": "i32" + }, + { + "name": "vehicleId", + "type": "i32" + } + ] + ], + "packet_block_action": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "byte1", + "type": "u8" + }, + { + "name": "byte2", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ], "packet_block_break_animation": [ "container", [ @@ -1644,170 +1723,283 @@ } ] ], - "packet_tile_entity_data": [ + "packet_block_change": [ "container", [ { "name": "location", "type": "position" }, + { + "name": "type", + "type": "varint" + } + ] + ], + "packet_boss_bar": [ + "container", + [ + { + "name": "entityUUID", + "type": "UUID" + }, { "name": "action", - "type": "u8" + "type": "varint" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "title", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "3": "string" + } + } + ] + }, + { + "name": "health", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } + } + ] + }, + { + "name": "color", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "dividers", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "flags", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } + } + ] } ] ], - "packet_block_action": [ + "packet_camera": [ "container", [ { - "name": "location", - "type": "position" - }, + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat": [ + "container", + [ { - "name": "byte1", - "type": "u8" + "name": "message", + "type": "string" }, { - "name": "byte2", - "type": "u8" + "name": "position", + "type": "i8" }, { - "name": "blockId", - "type": "varint" + "name": "sender", + "type": "UUID" } ] ], - "packet_block_change": [ + "packet_close_window": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_collect": [ "container", [ { - "name": "location", - "type": "position" + "name": "collectedEntityId", + "type": "varint" }, { - "name": "type", + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", "type": "varint" } ] ], - "packet_boss_bar": [ + "packet_combat_event": [ "container", [ { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", + "name": "event", "type": "varint" }, { - "name": "title", + "name": "duration", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "string", - "3": "string" - }, - "default": "void" + "1": "varint" + } } ] }, { - "name": "health", + "name": "playerId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" + "2": "varint" + } } ] }, { - "name": "color", + "name": "entityId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "dividers", + "name": "message", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "2": "string" + } } ] + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" } ] ], - "packet_difficulty": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "difficulty", - "type": "u8" + "name": "windowId", + "type": "i8" }, { - "name": "difficultyLocked", - "type": "bool" + "name": "recipe", + "type": "string" } ] ], - "packet_tab_complete": [ + "packet_custom_payload": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "start", - "type": "varint" + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "length", + "name": "rootIndex", "type": "varint" - }, + } + ] + ], + "packet_declare_recipes": [ + "container", + [ { - "name": "matches", + "name": "recipes", "type": [ "array", { @@ -1816,14 +2008,134 @@ "container", [ { - "name": "match", + "name": "type", "type": "string" }, { - "name": "tooltip", + "name": "recipeId", + "type": "string" + }, + { + "name": "data", "type": [ - "option", - "string" + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "height", + "type": [ + "array", + { + "count": "width", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } ] } ] @@ -1833,292 +2145,192 @@ } ] ], - "packet_declare_commands": [ + "packet_difficulty": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] + "name": "difficulty", + "type": "u8" }, { - "name": "rootIndex", - "type": "varint" + "name": "difficultyLocked", + "type": "bool" } ] ], - "packet_face_player": [ + "packet_entity": [ "container", [ - { - "name": "feet_eyes", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, { "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, + "type": "varint" + } + ] + ], + "packet_entity_destroy": [ + "container", + [ { - "name": "entity_feet_eyes", + "name": "entityIds", "type": [ - "switch", + "array", { - "compareTo": "isEntity", - "fields": { - "true": "string" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_nbt_query_response": [ + "packet_entity_effect": [ "container", [ { - "name": "transactionId", + "name": "entityId", "type": "varint" }, { - "name": "nbt", - "type": "optionalNbt" - } - ] - ], - "packet_chat": [ - "container", - [ - { - "name": "message", - "type": "string" + "name": "effectId", + "type": "i8" }, { - "name": "position", + "name": "amplifier", "type": "i8" }, { - "name": "sender", - "type": "UUID" + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "i8" } ] ], - "packet_multi_block_change": [ + "packet_entity_equipment": [ "container", [ { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": false - } - ] - ] - }, - { - "name": "notTrustEdges", - "type": "bool" + "name": "entityId", + "type": "varint" }, { - "name": "records", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "varint", - "type": "varlong" + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] } ] } ] ], - "packet_transaction": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "accepted", - "type": "bool" - } - ] - ], - "packet_close_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", + "name": "entityId", "type": "varint" }, { - "name": "inventoryType", - "type": "varint" + "name": "yaw", + "type": "i8" }, { - "name": "windowTitle", - "type": "string" + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ - { - "name": "windowId", - "type": "i8" }, { - "name": "slot", + "name": "dZ", "type": "i16" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ - { - "name": "itemID", - "type": "varint" + "name": "yaw", + "type": "i8" }, { - "name": "cooldownTicks", - "type": "varint" - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" + "name": "pitch", + "type": "i8" }, { - "name": "data", - "type": "restBuffer" + "name": "onGround", + "type": "bool" } ] ], - "packet_named_sound_effect": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "soundName", - "type": "string" + "name": "soundId", + "type": "varint" }, { "name": "soundCategory", "type": "varint" }, { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" + "name": "entityId", + "type": "varint" }, { "name": "volume", @@ -2130,15 +2342,6 @@ } ] ], - "packet_kick_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], "packet_entity_status": [ "container", [ @@ -2152,27 +2355,48 @@ } ] ], - "packet_explosion": [ + "packet_entity_teleport": [ "container", [ + { + "name": "entityId", + "type": "varint" + }, { "name": "x", - "type": "f32" + "type": "f64" }, { "name": "y", - "type": "f32" + "type": "f64" }, { "name": "z", - "type": "f32" + "type": "f64" }, { - "name": "radius", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "affectedBlockOffsets", + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", "type": [ "array", { @@ -2181,182 +2405,141 @@ "container", [ { - "name": "x", - "type": "i8" + "name": "key", + "type": "string" }, { - "name": "y", - "type": "i8" + "name": "value", + "type": "f64" }, { - "name": "z", - "type": "i8" + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] } ] ] } ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, - { - "name": "playerMotionY", - "type": "f32" - }, - { - "name": "playerMotionZ", - "type": "f32" } ] ], - "packet_unload_chunk": [ + "packet_entity_velocity": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_game_state_change": [ + "packet_experience": [ "container", [ { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", + "name": "experienceBar", "type": "f32" - } - ] - ], - "packet_open_horse_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" }, { - "name": "nbSlots", + "name": "level", "type": "varint" }, { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" + "name": "totalExperience", + "type": "varint" } ] ], - "packet_map_chunk": [ + "packet_explosion": [ "container", [ { "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" + "type": "f32" }, { - "name": "groundUp", - "type": "bool" + "name": "y", + "type": "f32" }, { - "name": "bitMap", - "type": "varint" + "name": "z", + "type": "f32" }, { - "name": "heightmaps", - "type": "nbt" + "name": "radius", + "type": "f32" }, { - "name": "biomes", + "name": "affectedBlockOffsets", "type": [ - "switch", + "array", { - "compareTo": "groundUp", - "fields": { - "false": "void", - "true": [ - "array", + "countType": "i32", + "type": [ + "container", + [ { - "countType": "varint", - "type": "varint" + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" } ] - } - } - ] - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" + ] } ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" }, { - "name": "location", - "type": "position" + "name": "playerMotionX", + "type": "f32" }, { - "name": "data", - "type": "i32" + "name": "playerMotionY", + "type": "f32" }, { - "name": "global", - "type": "bool" + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_world_particles": [ + "packet_face_player": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" + "name": "feet_eyes", + "type": "varint" }, { "name": "x", @@ -2371,70 +2554,74 @@ "type": "f64" }, { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" + "name": "isEntity", + "type": "bool" }, { - "name": "particles", - "type": "i32" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "data", + "name": "entity_feet_eyes", "type": [ - "particleData", + "switch", { - "compareTo": "particleId" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] } ] ], - "packet_update_light": [ + "packet_game_state_change": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - }, - { - "name": "trustEdges", - "type": "bool" - }, - { - "name": "skyLightMask", - "type": "varint" + "name": "reason", + "type": "u8" }, { - "name": "blockLightMask", - "type": "varint" - }, + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "emptySkyLightMask", - "type": "varint" - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "emptyBlockLightMask", - "type": "varint" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "data", - "type": "restBuffer" + "name": "reason", + "type": "string" } ] ], @@ -2575,10 +2762,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2588,10 +2775,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2601,10 +2788,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2614,167 +2801,148 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_trade_list": [ + "packet_map_chunk": [ "container", [ { - "name": "windowId", - "type": "varint" - }, - { - "name": "trades", - "type": [ - "array", - { - "countType": "u8", - "type": [ - "container", - [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - "slot" - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ] - ] - } - ] - }, - { - "name": "villagerLevel", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "experience", - "type": "varint" + "name": "z", + "type": "i32" }, { - "name": "isRegularVillager", + "name": "groundUp", "type": "bool" }, { - "name": "canRestock", - "type": "bool" - } - ] - ], - "packet_rel_entity_move": [ - "container", - [ - { - "name": "entityId", + "name": "bitMap", "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "heightmaps", + "type": "nbt" }, { - "name": "dY", - "type": "i16" + "name": "biomes", + "type": [ + "switch", + { + "compareTo": "groundUp", + "fields": { + "false": "void", + "true": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + } + ] }, { - "name": "dZ", - "type": "i16" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "yaw", - "type": "i8" + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": false, + "size": 20 + } + ] + ] }, { - "name": "pitch", - "type": "i8" + "name": "notTrustEdges", + "type": "bool" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": "varlong" + } + ] } ] ], - "packet_entity_look": [ + "packet_named_entity_spawn": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "playerUUID", + "type": "UUID" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "yaw", "type": "i8" @@ -2782,39 +2950,34 @@ { "name": "pitch", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2823,113 +2986,68 @@ } ] ], - "packet_open_book": [ + "packet_nbt_query_response": [ "container", [ { - "name": "hand", + "name": "transactionId", "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_open_sign_entity": [ + "packet_open_book": [ "container", [ { - "name": "location", - "type": "position" + "name": "hand", + "type": "varint" } ] ], - "packet_craft_recipe_response": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "recipe", - "type": "string" + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "event", + "name": "windowId", "type": "varint" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + "name": "inventoryType", + "type": "varint" }, { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "string" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" } ] ], @@ -2941,14 +3059,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -3025,37 +3143,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -3067,6 +3185,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -3087,101 +3218,41 @@ "type": "f32" }, { - "name": "pitch", - "type": "f32" - }, - { - "name": "flags", - "type": "i8" - }, - { - "name": "teleportId", - "type": "varint" - } - ] - ], - "packet_unlock_recipes": [ - "container", - [ - { - "name": "action", - "type": "varint" - }, - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "filteringCraftable", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "filteringSmeltable", - "type": "bool" - }, - { - "name": "blastFurnaceOpen", - "type": "bool" - }, - { - "name": "filteringBlastFurnace", - "type": "bool" - }, - { - "name": "smokerBookOpen", - "type": "bool" - }, - { - "name": "filteringSmoker", - "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] + "name": "pitch", + "type": "f32" + }, + { + "name": "flags", + "type": "i8" + }, + { + "name": "teleportId", + "type": "varint" } ] ], - "packet_entity_destroy": [ + "packet_rel_entity_move": [ "container", [ { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "entityId", + "type": "varint" + }, + { + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -3248,206 +3319,300 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ + { + "name": "name", + "type": "string" + }, { "name": "action", - "type": "varint" + "type": "i8" }, { - "name": "radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "0": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "x", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "new_radius", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "1": "void" + } } ] - }, + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ { - "name": "speed", + "name": "id", "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } + "option", + "string" ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "itemID", + "type": "varint" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_passengers": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "warning_time", + "name": "passengers", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] + } + ] + ], + "packet_set_slot": [ + "container", + [ + { + "name": "windowId", + "type": "i8" }, { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_camera": [ + "packet_sound_effect": [ "container", [ { - "name": "cameraId", + "name": "soundId", + "type": "varint" + }, + { + "name": "soundCategory", "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_held_item_slot": [ + "packet_spawn_entity": [ "container", [ { - "name": "slot", + "name": "entityId", + "type": "varint" + }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_update_view_position": [ + "packet_spawn_entity_experience_orb": [ "container", [ { - "name": "chunkX", + "name": "entityId", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_update_view_distance": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "viewDistance", + "name": "entityId", "type": "varint" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + }, { - "name": "position", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_metadata": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -3455,59 +3620,55 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "entityUUID", + "type": "UUID" + }, { - "name": "entityId", - "type": "i32" + "name": "title", + "type": "varint" }, { - "name": "vehicleId", - "type": "i32" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_entity_velocity": [ + "packet_spawn_position": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" + "name": "location", + "type": "position" } ] ], - "packet_entity_equipment": [ + "packet_statistics": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "equipments", + "name": "entries", "type": [ - "topBitSetTerminatedArray", + "array", { + "countType": "varint", "type": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "categoryId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" } ] ] @@ -3516,100 +3677,106 @@ } ] ], - "packet_experience": [ - "container", - [ - { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" - }, - { - "name": "totalExperience", - "type": "varint" - } - ] - ], - "packet_update_health": [ - "container", - [ - { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_scoreboard_objective": [ + "packet_stop_sound": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "action", + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "2": "string", + "3": "string" + } } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "passengers", + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], + "packet_tags": [ + "container", + [ + { + "name": "blockTags", + "type": "tags" + }, + { + "name": "itemTags", + "type": "tags" + }, + { + "name": "fluidTags", + "type": "tags" + }, + { + "name": "entityTags", + "type": "tags" + } + ] + ], "packet_teams": [ "container", [ @@ -3627,11 +3794,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3641,11 +3808,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3655,11 +3822,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3669,11 +3836,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3683,11 +3850,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3697,11 +3864,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3711,11 +3878,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3725,6 +3892,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3747,62 +3915,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3819,12 +3951,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3834,10 +3966,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3847,10 +3979,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3860,892 +3992,752 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_sound_effect": [ - "container", - [ - { - "name": "soundId", - "type": "varint" - }, - { - "name": "soundCategory", - "type": "varint" - }, - { - "name": "entityId", - "type": "varint" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_stop_sound": [ - "container", - [ - { - "name": "flags", - "type": "i8" - }, - { - "name": "source", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "sound", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + } } ] } ] ], - "packet_sound_effect": [ - "container", - [ - { - "name": "soundId", - "type": "varint" - }, - { - "name": "soundCategory", - "type": "varint" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_playerlist_header": [ - "container", - [ - { - "name": "header", - "type": "string" - }, - { - "name": "footer", - "type": "string" - } - ] - ], - "packet_collect": [ - "container", - [ - { - "name": "collectedEntityId", - "type": "varint" - }, - { - "name": "collectorEntityId", - "type": "varint" - }, - { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_update_attributes": [ + "packet_trade_list": [ "container", [ { - "name": "entityId", + "name": "windowId", "type": "varint" }, { - "name": "properties", + "name": "trades", "type": [ "array", { - "countType": "i32", + "countType": "u8", "type": [ "container", [ { - "name": "key", - "type": "string" + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" }, { - "name": "value", - "type": "f64" + "name": "priceMultiplier", + "type": "f32" }, { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] + "name": "demand", + "type": "i32" } ] ] } ] - } - ] - ], - "packet_entity_effect": [ - "container", - [ + }, { - "name": "entityId", + "name": "villagerLevel", "type": "varint" }, { - "name": "effectId", - "type": "i8" + "name": "experience", + "type": "varint" }, { - "name": "amplifier", + "name": "isRegularVillager", + "type": "bool" + }, + { + "name": "canRestock", + "type": "bool" + } + ] + ], + "packet_transaction": [ + "container", + [ + { + "name": "windowId", "type": "i8" }, { - "name": "duration", - "type": "varint" + "name": "action", + "type": "i16" }, { - "name": "hideParticles", - "type": "i8" + "name": "accepted", + "type": "bool" } ] ], - "packet_select_advancement_tab": [ + "packet_unload_chunk": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" } ] ], - "packet_declare_recipes": [ + "packet_unlock_recipes": [ "container", [ { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "height", - "type": [ - "array", - { - "count": "width", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing": [ - "container", - [ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] + "name": "action", + "type": "varint" + }, + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "filteringSmeltable", + "type": "bool" + }, + { + "name": "blastFurnaceOpen", + "type": "bool" + }, + { + "name": "filteringBlastFurnace", + "type": "bool" + }, + { + "name": "smokerBookOpen", + "type": "bool" + }, + { + "name": "filteringSmoker", + "type": "bool" + }, + { + "name": "recipes1", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "recipes2", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" } ] - ] + } } ] } ] ], - "packet_tags": [ + "packet_update_health": [ "container", [ { - "name": "blockTags", - "type": "tags" + "name": "health", + "type": "f32" }, { - "name": "itemTags", - "type": "tags" + "name": "food", + "type": "varint" }, { - "name": "fluidTags", - "type": "tags" + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_light": [ + "container", + [ + { + "name": "chunkX", + "type": "varint" }, { - "name": "entityTags", - "type": "tags" + "name": "chunkZ", + "type": "varint" + }, + { + "name": "trustEdges", + "type": "bool" + }, + { + "name": "skyLightMask", + "type": "varint" + }, + { + "name": "blockLightMask", + "type": "varint" + }, + { + "name": "emptySkyLightMask", + "type": "varint" + }, + { + "name": "emptyBlockLightMask", + "type": "varint" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_acknowledge_player_digging": [ + "packet_update_time": [ "container", [ { - "name": "location", - "type": "position" + "name": "age", + "type": "i64" }, { - "name": "block", + "name": "time", + "type": "i64" + } + ] + ], + "packet_update_view_distance": [ + "container", + [ + { + "name": "viewDistance", + "type": "varint" + } + ] + ], + "packet_update_view_position": [ + "container", + [ + { + "name": "chunkX", "type": "varint" }, { - "name": "status", + "name": "chunkZ", "type": "varint" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "successful", - "type": "bool" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_items": [ "container", [ { - "name": "name", + "name": "windowId", + "type": "u8" + }, + { + "name": "items", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "animation", - "0x06": "statistics", - "0x07": "acknowledge_player_digging", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "tab_complete", - "0x10": "declare_commands", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "window_items", - "0x14": "craft_progress_bar", - "0x15": "set_slot", - "0x16": "set_cooldown", - "0x17": "custom_payload", - "0x18": "named_sound_effect", - "0x19": "kick_disconnect", - "0x1a": "entity_status", - "0x1b": "explosion", - "0x1c": "unload_chunk", - "0x1d": "game_state_change", - "0x1e": "open_horse_window", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "update_light", - "0x24": "login", - "0x25": "map", - "0x26": "trade_list", - "0x27": "rel_entity_move", - "0x28": "entity_move_look", - "0x29": "entity_look", - "0x2a": "entity", - "0x2b": "vehicle_move", - "0x2c": "open_book", - "0x2d": "open_window", - "0x2e": "open_sign_entity", - "0x2f": "craft_recipe_response", - "0x30": "abilities", - "0x31": "combat_event", - "0x32": "player_info", - "0x33": "face_player", - "0x34": "position", - "0x35": "unlock_recipes", - "0x36": "entity_destroy", - "0x37": "remove_entity_effect", - "0x38": "resource_pack_send", - "0x39": "respawn", - "0x3a": "entity_head_rotation", - "0x3b": "multi_block_change", - "0x3c": "select_advancement_tab", - "0x3d": "world_border", - "0x3e": "camera", - "0x3f": "held_item_slot", - "0x40": "update_view_position", - "0x41": "update_view_distance", - "0x42": "spawn_position", - "0x43": "scoreboard_display_objective", - "0x44": "entity_metadata", - "0x45": "attach_entity", - "0x46": "entity_velocity", - "0x47": "entity_equipment", - "0x48": "experience", - "0x49": "update_health", - "0x4a": "scoreboard_objective", - "0x4b": "set_passengers", - "0x4c": "teams", - "0x4d": "scoreboard_score", - "0x4e": "update_time", - "0x4f": "title", - "0x50": "entity_sound_effect", - "0x51": "sound_effect", - "0x52": "stop_sound", - "0x53": "playerlist_header", - "0x54": "nbt_query_response", - "0x55": "collect", - "0x56": "entity_teleport", - "0x57": "advancements", - "0x58": "entity_update_attributes", - "0x59": "entity_effect", - "0x5a": "declare_recipes", - "0x5b": "tags" + "countType": "i16", + "type": "slot" + } + ] + } + ] + ], + "packet_world_border": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" } } ] }, { - "name": "params", + "name": "x", "type": [ "switch", { - "compareTo": "name", + "compareTo": "action", + "default": "void", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", - "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", - "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", - "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "entity_sound_effect": "packet_entity_sound_effect", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "acknowledge_player_digging": "packet_acknowledge_player_digging" + "2": "f64", + "3": "f64" } } ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ - "container", - [ + }, { - "name": "teleportId", - "type": "varint" + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } + } + ] } ] ], - "packet_query_block_nbt": [ + "packet_world_event": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "effectId", + "type": "i32" }, { "name": "location", "type": "position" - } - ] - ], - "packet_set_difficulty": [ - "container", - [ + }, { - "name": "newDifficulty", - "type": "u8" + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" } ] ], - "packet_edit_book": [ + "packet_world_particles": [ "container", [ { - "name": "new_book", - "type": "slot" + "name": "particleId", + "type": "i32" + }, + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" }, { - "name": "signing", - "type": "bool" + "name": "particles", + "type": "i32" }, { - "name": "hand", - "type": "varint" + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] } ] - ], - "packet_query_entity_nbt": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "generate_structure", + "0x10": "keep_alive", + "0x11": "lock_difficulty", + "0x12": "position", + "0x13": "position_look", + "0x14": "look", + "0x15": "flying", + "0x16": "vehicle_move", + "0x17": "steer_boat", + "0x18": "pick_item", + "0x19": "craft_recipe_request", + "0x1a": "abilities", + "0x1b": "block_dig", + "0x1c": "entity_action", + "0x1d": "steer_vehicle", + "0x1e": "recipe_book", + "0x1f": "displayed_recipe", + "0x20": "name_item", + "0x21": "resource_pack_receive", + "0x22": "advancement_tab", + "0x23": "select_trade", + "0x24": "set_beacon_effect", + "0x25": "held_item_slot", + "0x26": "update_command_block", + "0x27": "update_command_block_minecart", + "0x28": "set_creative_slot", + "0x29": "update_jigsaw_block", + "0x2a": "update_structure_block", + "0x2b": "update_sign", + "0x2c": "arm_animation", + "0x2d": "spectate", + "0x2e": "block_place", + "0x2f": "use_item" + }, + "type": "varint" + } + ] }, { - "name": "entityId", - "type": "varint" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat": "packet_chat", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_payload": "packet_custom_payload", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" + } + } + ] } ] ], - "packet_pick_item": [ + "packet_abilities": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "flags", + "type": "i8" } ] ], - "packet_name_item": [ + "packet_advancement_tab": [ "container", [ { - "name": "name", - "type": "string" + "name": "action", + "type": "varint" + }, + { + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_select_trade": [ + "packet_arm_animation": [ "container", [ { - "name": "slot", + "name": "hand", "type": "varint" } ] ], - "packet_set_beacon_effect": [ + "packet_block_dig": [ "container", [ { - "name": "primary_effect", + "name": "status", "type": "varint" }, - { - "name": "secondary_effect", - "type": "varint" - } - ] - ], - "packet_update_command_block": [ - "container", - [ { "name": "location", "type": "position" }, { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", - "type": "u8" + "name": "face", + "type": "i8" } ] ], - "packet_update_command_block_minecart": [ + "packet_block_place": [ "container", [ { - "name": "entityId", + "name": "hand", "type": "varint" }, - { - "name": "command", - "type": "string" - }, - { - "name": "track_output", - "type": "bool" - } - ] - ], - "packet_update_structure_block": [ - "container", - [ { "name": "location", "type": "position" }, { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", + "name": "direction", "type": "varint" }, { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", + "name": "cursorX", "type": "f32" }, { - "name": "seed", - "type": "varlong" + "name": "cursorY", + "type": "f32" }, { - "name": "flags", - "type": "u8" - } - ] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" + "name": "cursorZ", + "type": "f32" }, { - "name": "text", - "type": "string" + "name": "insideBlock", + "type": "bool" } ] ], @@ -4767,36 +4759,16 @@ } ] ], - "packet_settings": [ + "packet_close_window": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", + "name": "windowId", "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" } ] ], - "packet_transaction": [ + "packet_craft_recipe_request": [ "container", [ { @@ -4804,145 +4776,89 @@ "type": "i8" }, { - "name": "action", - "type": "i16" + "name": "recipe", + "type": "string" }, { - "name": "accepted", + "name": "makeAll", "type": "bool" } ] ], - "packet_enchant_item": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "channel", + "type": "string" }, { - "name": "enchantment", - "type": "i8" + "name": "data", + "type": "restBuffer" } ] ], - "packet_window_click": [ + "packet_displayed_recipe": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, - { - "name": "mode", - "type": "i8" - }, - { - "name": "item", - "type": "slot" + "name": "recipeId", + "type": "string" } ] ], - "packet_close_window": [ + "packet_edit_book": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "new_book", + "type": "slot" + }, + { + "name": "signing", + "type": "bool" + }, + { + "name": "hand", + "type": "varint" } ] ], - "packet_custom_payload": [ + "packet_enchant_item": [ "container", [ { - "name": "channel", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "data", - "type": "restBuffer" + "name": "enchantment", + "type": "i8" } ] ], - "packet_use_entity": [ + "packet_entity_action": [ "container", [ { - "name": "target", + "name": "entityId", "type": "varint" }, { - "name": "mouse", + "name": "actionId", "type": "varint" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { - "name": "sneaking", + "name": "onGround", "type": "bool" } ] @@ -4964,60 +4880,36 @@ } ] ], - "packet_keep_alive": [ + "packet_held_item_slot": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "slotId", + "type": "i16" } ] ], - "packet_lock_difficulty": [ + "packet_keep_alive": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_position": [ + "packet_lock_difficulty": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "onGround", + "name": "locked", "type": "bool" } ] ], - "packet_position_look": [ + "packet_look": [ "container", [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, { "name": "yaw", "type": "f32" @@ -5032,33 +4924,46 @@ } ] ], - "packet_look": [ + "packet_name_item": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ { - "name": "onGround", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], - "packet_flying": [ + "packet_position": [ "container", [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "onGround", "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_position_look": [ "container", [ { @@ -5080,82 +4985,160 @@ { "name": "pitch", "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_steer_boat": [ + "packet_query_block_nbt": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "transactionId", + "type": "varint" }, { - "name": "rightPaddle", - "type": "bool" + "name": "location", + "type": "position" } ] ], - "packet_craft_recipe_request": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "transactionId", + "type": "varint" }, { - "name": "recipe", - "type": "string" + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_recipe_book": [ + "container", + [ + { + "name": "bookId", + "type": "varint" }, { - "name": "makeAll", + "name": "bookOpen", + "type": "bool" + }, + { + "name": "filterActive", "type": "bool" } ] ], - "packet_abilities": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "result", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_select_trade": [ "container", [ { - "name": "status", + "name": "slot", + "type": "varint" + } + ] + ], + "packet_set_beacon_effect": [ + "container", + [ + { + "name": "primary_effect", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "secondary_effect", + "type": "varint" + } + ] + ], + "packet_set_creative_slot": [ + "container", + [ + { + "name": "slot", + "type": "i16" }, { - "name": "face", - "type": "i8" + "name": "item", + "type": "slot" } ] ], - "packet_entity_action": [ + "packet_set_difficulty": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "newDifficulty", + "type": "u8" + } + ] + ], + "packet_settings": [ + "container", + [ + { + "name": "locale", + "type": "string" }, { - "name": "actionId", + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "jumpBoost", + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", "type": "varint" } ] ], + "packet_spectate": [ + "container", + [ + { + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ + { + "name": "leftPaddle", + "type": "bool" + }, + { + "name": "rightPaddle", + "type": "bool" + } + ] + ], "packet_steer_vehicle": [ "container", [ @@ -5173,60 +5156,80 @@ } ] ], - "packet_displayed_recipe": [ + "packet_tab_complete": [ "container", [ { - "name": "recipeId", + "name": "transactionId", + "type": "varint" + }, + { + "name": "text", "type": "string" } ] ], - "packet_recipe_book": [ + "packet_teleport_confirm": [ "container", [ { - "name": "bookId", + "name": "teleportId", "type": "varint" + } + ] + ], + "packet_transaction": [ + "container", + [ + { + "name": "windowId", + "type": "i8" }, { - "name": "bookOpen", - "type": "bool" + "name": "action", + "type": "i16" }, { - "name": "filterActive", + "name": "accepted", "type": "bool" } ] ], - "packet_resource_pack_receive": [ + "packet_update_command_block": [ "container", [ { - "name": "result", + "name": "location", + "type": "position" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "mode", "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + }, { - "name": "slotId", - "type": "i16" + "name": "flags", + "type": "u8" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block_minecart": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5267,70 +5270,158 @@ "type": "position" }, { - "name": "text1", - "type": "string" + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "hand", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "mouse", + "type": "varint" }, { - "name": "direction", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "insideBlock", + "name": "sneaking", "type": "bool" } ] @@ -5344,148 +5435,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "generate_structure", - "0x10": "keep_alive", - "0x11": "lock_difficulty", - "0x12": "position", - "0x13": "position_look", - "0x14": "look", - "0x15": "flying", - "0x16": "vehicle_move", - "0x17": "steer_boat", - "0x18": "pick_item", - "0x19": "craft_recipe_request", - "0x1a": "abilities", - "0x1b": "block_dig", - "0x1c": "entity_action", - "0x1d": "steer_vehicle", - "0x1e": "recipe_book", - "0x1f": "displayed_recipe", - "0x20": "name_item", - "0x21": "resource_pack_receive", - "0x22": "advancement_tab", - "0x23": "select_trade", - "0x24": "set_beacon_effect", - "0x25": "held_item_slot", - "0x26": "update_command_block", - "0x27": "update_command_block_minecart", - "0x28": "set_creative_slot", - "0x29": "update_jigsaw_block", - "0x2a": "update_structure_block", - "0x2b": "update_sign", - "0x2c": "arm_animation", - "0x2d": "spectate", - "0x2e": "block_place", - "0x2f": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "displayed_recipe": "packet_displayed_recipe", - "recipe_book": "packet_recipe_book", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.16/protocol.json b/data/pc/1.16/protocol.json index 8ed97db39..1b057176f 100644 --- a/data/pc/1.16/protocol.json +++ b/data/pc/1.16/protocol.json @@ -1,413 +1,75 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "23": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "34": [ - "container", - [ + "name": "has_command", + "signed": false, + "size": 1 + }, { - "name": "item", - "type": "slot" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { "name": "extraNodeData", @@ -445,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -455,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -477,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -490,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -509,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -531,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -544,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -563,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -585,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -598,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -617,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -639,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -652,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -664,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -744,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -760,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -769,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -780,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -794,21 +456,359 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "23": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "34": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -828,6 +828,46 @@ }, "toServer": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", + [ + { + "name": "payload", + "type": "u8" + } + ] + ], "packet_set_protocol": [ "container", [ @@ -848,16 +888,13 @@ "type": "varint" } ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -866,11 +903,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -881,38 +918,36 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_ping": [ + "packet_server_info": [ "container", [ { - "name": "time", - "type": "i64" + "name": "response", + "type": "string" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -921,11 +956,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "server_info", + "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -936,21 +971,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -961,6 +988,16 @@ } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -969,11 +1006,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" + }, + "type": "varint" } ] }, @@ -984,20 +1024,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -1034,45 +1080,40 @@ } ] ], - "packet_success": [ + "packet_login_plugin_request": [ "container", [ { - "name": "uuid", - "type": "UUID" + "name": "messageId", + "type": "varint" }, { - "name": "username", + "name": "channel", "type": "string" - } - ] - ], - "packet_compress": [ - "container", - [ + }, { - "name": "threshold", - "type": "varint" + "name": "data", + "type": "restBuffer" } ] ], - "packet_login_plugin_request": [ + "packet_success": [ "container", [ { - "name": "messageId", - "type": "varint" + "name": "uuid", + "type": "UUID" }, { - "name": "channel", + "name": "username", "type": "string" - }, - { - "name": "data", - "type": "restBuffer" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1081,14 +1122,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", + "0x00": "login_start", "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" - } + "0x02": "login_plugin_response" + }, + "type": "varint" } ] }, @@ -1099,29 +1138,14 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -1162,6 +1186,21 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1170,12 +1209,101 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "animation", + "0x06": "statistics", + "0x07": "acknowledge_player_digging", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "entity", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "combat_event", + "0x33": "player_info", + "0x34": "face_player", + "0x35": "position", + "0x36": "unlock_recipes", + "0x37": "entity_destroy", + "0x38": "remove_entity_effect", + "0x39": "resource_pack_send", + "0x3a": "respawn", + "0x3b": "entity_head_rotation", + "0x3c": "select_advancement_tab", + "0x3d": "world_border", + "0x3e": "camera", + "0x3f": "held_item_slot", + "0x40": "update_view_position", + "0x41": "update_view_distance", + "0x42": "spawn_position", + "0x43": "scoreboard_display_objective", + "0x44": "entity_metadata", + "0x45": "attach_entity", + "0x46": "entity_velocity", + "0x47": "entity_equipment", + "0x48": "experience", + "0x49": "update_health", + "0x4a": "scoreboard_objective", + "0x4b": "set_passengers", + "0x4c": "teams", + "0x4d": "scoreboard_score", + "0x4e": "update_time", + "0x4f": "title", + "0x50": "entity_sound_effect", + "0x51": "sound_effect", + "0x52": "stop_sound", + "0x53": "playerlist_header", + "0x54": "nbt_query_response", + "0x55": "collect", + "0x56": "entity_teleport", + "0x57": "advancements", + "0x58": "entity_update_attributes", + "0x59": "entity_effect", + "0x5a": "declare_recipes", + "0x5b": "tags" + }, + "type": "varint" } ] }, @@ -1186,235 +1314,139 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "trade_list": "packet_trade_list", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] ], - "packet_spawn_entity_living": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "flags", "type": "i8" }, { - "name": "headPitch", - "type": "i8" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "velocity", - "type": "vec3i16" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity_painting": [ + "packet_acknowledge_player_digging": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" - }, { "name": "location", "type": "position" }, { - "name": "direction", - "type": "u8" - } - ] - ], - "packet_named_entity_spawn": [ - "container", - [ - { - "name": "entityId", + "name": "block", "type": "varint" }, { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", + "name": "status", "type": "varint" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "successful", + "type": "bool" } ] ], @@ -1480,23 +1512,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1507,10 +1539,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1627,7 +1659,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1635,29 +1667,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -1682,6 +1706,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1712,11 +1753,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1726,11 +1767,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1740,11 +1781,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1754,11 +1795,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1768,151 +1809,22 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" - } - ] - } - ] - ], - "packet_difficulty": [ - "container", - [ - { - "name": "difficulty", - "type": "u8" - }, - { - "name": "difficultyLocked", - "type": "bool" - } - ] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", - "type": "varint" - }, - { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "packet_declare_commands": [ - "container", - [ - { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] - }, - { - "name": "rootIndex", - "type": "varint" - } - ] - ], - "packet_face_player": [ - "container", - [ - { - "name": "feet_eyes", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entity_feet_eyes", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "string" - }, - "default": "void" + } } ] } ] ], - "packet_nbt_query_response": [ + "packet_camera": [ "container", [ { - "name": "transactionId", + "name": "cameraId", "type": "varint" - }, - { - "name": "nbt", - "type": "optionalNbt" } ] ], @@ -1933,102 +1845,89 @@ } ] ], - "packet_multi_block_change": [ + "packet_close_window": [ "container", [ { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - }, - { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] - } - ] + "name": "windowId", + "type": "u8" } ] ], - "packet_transaction": [ + "packet_collect": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "collectedEntityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "collectorEntityId", + "type": "varint" }, { - "name": "accepted", - "type": "bool" - } - ] - ], - "packet_close_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" + "name": "pickupItemCount", + "type": "varint" } ] ], - "packet_open_window": [ + "packet_combat_event": [ "container", [ { - "name": "windowId", + "name": "event", "type": "varint" }, { - "name": "inventoryType", - "type": "varint" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "windowTitle", - "type": "string" - } - ] - ], - "packet_window_items": [ - "container", - [ + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] + }, { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "i32", + "2": "i32" + } + } + ] }, { - "name": "items", + "name": "message", "type": [ - "array", + "switch", { - "countType": "i16", - "type": "slot" + "compareTo": "event", + "default": "void", + "fields": { + "2": "string" + } } ] } @@ -2051,7 +1950,7 @@ } ] ], - "packet_set_slot": [ + "packet_craft_recipe_response": [ "container", [ { @@ -2059,25 +1958,8 @@ "type": "i8" }, { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ - { - "name": "itemID", - "type": "varint" - }, - { - "name": "cooldownTicks", - "type": "varint" + "name": "recipe", + "type": "string" } ] ], @@ -2094,348 +1976,652 @@ } ] ], - "packet_named_sound_effect": [ + "packet_declare_commands": [ "container", [ { - "name": "soundName", - "type": "string" + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "soundCategory", + "name": "rootIndex", "type": "varint" - }, - { - "name": "x", - "type": "i32" - }, + } + ] + ], + "packet_declare_recipes": [ + "container", + [ { - "name": "y", - "type": "i32" - }, + "name": "recipes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] + } + ] + ] + } + ] + } + ] + ], + "packet_difficulty": [ + "container", + [ { - "name": "z", - "type": "i32" + "name": "difficulty", + "type": "u8" }, { - "name": "volume", - "type": "f32" - }, + "name": "difficultyLocked", + "type": "bool" + } + ] + ], + "packet_entity": [ + "container", + [ { - "name": "pitch", - "type": "f32" + "name": "entityId", + "type": "varint" } ] ], - "packet_kick_disconnect": [ + "packet_entity_destroy": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_effect": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", + "name": "effectId", "type": "i8" - } - ] - ], - "packet_explosion": [ - "container", - [ - { - "name": "x", - "type": "f32" }, { - "name": "y", - "type": "f32" + "name": "amplifier", + "type": "i8" }, { - "name": "z", - "type": "f32" + "name": "duration", + "type": "varint" }, { - "name": "radius", - "type": "f32" + "name": "hideParticles", + "type": "i8" + } + ] + ], + "packet_entity_equipment": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "affectedBlockOffsets", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "i32", "type": [ "container", [ { - "name": "x", - "type": "i8" - }, - { - "name": "y", + "name": "slot", "type": "i8" }, { - "name": "z", - "type": "i8" + "name": "item", + "type": "slot" } ] ] } ] + } + ] + ], + "packet_entity_head_rotation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "playerMotionX", - "type": "f32" + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "playerMotionY", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "playerMotionZ", - "type": "f32" + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_unload_chunk": [ + "packet_entity_metadata": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_game_state_change": [ + "packet_entity_move_look": [ "container", [ { - "name": "reason", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "gameMode", - "type": "f32" + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_open_horse_window": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "soundId", + "type": "varint" }, { - "name": "nbSlots", + "name": "soundCategory", "type": "varint" }, { "name": "entityId", - "type": "i32" + "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_keep_alive": [ + "packet_entity_status": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "entityId", + "type": "i32" + }, + { + "name": "entityStatus", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_entity_teleport": [ "container", [ { - "name": "x", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "z", - "type": "i32" + "name": "x", + "type": "f64" }, { - "name": "groundUp", - "type": "bool" + "name": "y", + "type": "f64" }, { - "name": "ignoreOldData", - "type": "bool" + "name": "z", + "type": "f64" }, { - "name": "bitMap", - "type": "varint" + "name": "yaw", + "type": "i8" }, { - "name": "heightmaps", - "type": "nbt" + "name": "pitch", + "type": "i8" }, { - "name": "biomes", - "type": [ - "switch", - { - "compareTo": "groundUp", - "fields": { - "false": "void", - "true": [ - "array", - { - "count": 1024, - "type": "i32" - } - ] - } - } - ] - }, + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "blockEntities", + "name": "properties", "type": [ "array", { - "countType": "varint", - "type": "nbt" + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] } ] } ] ], - "packet_world_event": [ + "packet_entity_velocity": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "global", - "type": "bool" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_world_particles": [ + "packet_experience": [ "container", [ { - "name": "particleId", - "type": "i32" + "name": "experienceBar", + "type": "f32" }, { - "name": "longDistance", - "type": "bool" + "name": "level", + "type": "varint" }, + { + "name": "totalExperience", + "type": "varint" + } + ] + ], + "packet_explosion": [ + "container", + [ { "name": "x", - "type": "f64" + "type": "f32" }, { "name": "y", - "type": "f64" + "type": "f32" }, { "name": "z", - "type": "f64" - }, - { - "name": "offsetX", "type": "f32" }, { - "name": "offsetY", + "name": "radius", "type": "f32" }, { - "name": "offsetZ", - "type": "f32" + "name": "affectedBlockOffsets", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + } + ] + ] + } + ] }, { - "name": "particleData", + "name": "playerMotionX", "type": "f32" }, { - "name": "particles", - "type": "i32" + "name": "playerMotionY", + "type": "f32" }, { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_update_light": [ + "packet_face_player": [ "container", [ { - "name": "chunkX", + "name": "feet_eyes", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "trustEdges", - "type": "bool" + "name": "y", + "type": "f64" }, { - "name": "skyLightMask", - "type": "varint" + "name": "z", + "type": "f64" }, { - "name": "blockLightMask", - "type": "varint" + "name": "isEntity", + "type": "bool" }, { - "name": "emptySkyLightMask", - "type": "varint" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "emptyBlockLightMask", - "type": "varint" + "name": "entity_feet_eyes", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } + } + ] + } + ] + ], + "packet_game_state_change": [ + "container", + [ + { + "name": "reason", + "type": "u8" }, { - "name": "data", - "type": "restBuffer" + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "string" } ] ], @@ -2572,10 +2758,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2585,10 +2771,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2598,116 +2784,140 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } + } + ] + } + ] + ], + "packet_map_chunk": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" + }, + { + "name": "ignoreOldData", + "type": "bool" + }, + { + "name": "bitMap", + "type": "varint" + }, + { + "name": "heightmaps", + "type": "nbt" + }, + { + "name": "biomes", + "type": [ + "switch", + { + "compareTo": "groundUp", + "fields": { + "false": "void", + "true": [ + "array", + { + "count": 1024, + "type": "i32" + } + ] + } + } + ] + }, + { + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" } ] }, { - "name": "data", + "name": "blockEntities", "type": [ - "switch", + "array", { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] + "countType": "varint", + "type": "nbt" } ] } ] ], - "packet_trade_list": [ + "packet_multi_block_change": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "chunkX", + "type": "i32" }, { - "name": "trades", + "name": "chunkZ", + "type": "i32" + }, + { + "name": "records", "type": [ "array", { - "countType": "u8", + "countType": "varint", "type": [ "container", [ { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - "slot" - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" + "name": "horizontalPos", + "type": "u8" }, { - "name": "priceMultiplier", - "type": "f32" + "name": "y", + "type": "u8" }, { - "name": "demand", - "type": "i32" + "name": "blockId", + "type": "varint" } ] ] } ] - }, - { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" - }, - { - "name": "isRegularVillager", - "type": "bool" - }, - { - "name": "canRestock", - "type": "bool" } ] ], - "packet_rel_entity_move": [ + "packet_named_entity_spawn": [ "container", [ { @@ -2715,41 +2925,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_move_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dX", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dY", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -2758,60 +2947,34 @@ { "name": "pitch", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2820,113 +2983,68 @@ } ] ], - "packet_open_book": [ + "packet_nbt_query_response": [ "container", [ { - "name": "hand", + "name": "transactionId", "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_open_sign_entity": [ + "packet_open_book": [ "container", [ { - "name": "location", - "type": "position" + "name": "hand", + "type": "varint" } ] ], - "packet_craft_recipe_response": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "recipe", - "type": "string" + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "event", + "name": "windowId", "type": "varint" }, - { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + { + "name": "inventoryType", + "type": "varint" }, { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "string" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" } ] ], @@ -2938,14 +3056,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -3022,37 +3140,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -3064,6 +3182,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -3097,72 +3228,28 @@ } ] ], - "packet_unlock_recipes": [ + "packet_rel_entity_move": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smeltingBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmeltable", + "name": "onGround", "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -3229,245 +3316,230 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ { - "name": "action", - "type": "varint" - }, - { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "name", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "i8" }, { - "name": "old_radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "new_radius", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] - }, + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] + "name": "itemName", + "type": "string" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "warning_blocks", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_camera": [ - "container", - [ - { - "name": "cameraId", - "type": "varint" - } - ] - ], - "packet_held_item_slot": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "id", + "type": [ + "option", + "string" + ] } ] ], - "packet_update_view_position": [ + "packet_set_cooldown": [ "container", [ { - "name": "chunkX", + "name": "itemID", "type": "varint" }, { - "name": "chunkZ", + "name": "cooldownTicks", "type": "varint" } ] ], - "packet_update_view_distance": [ + "packet_set_passengers": [ "container", [ { - "name": "viewDistance", + "name": "entityId", "type": "varint" + }, + { + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_scoreboard_display_objective": [ + "packet_set_slot": [ "container", [ { - "name": "position", + "name": "windowId", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_entity_metadata": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "soundCategory", + "type": "varint" + }, { - "name": "entityId", + "name": "x", "type": "i32" }, { - "name": "vehicleId", + "name": "y", + "type": "i32" + }, + { + "name": "z", "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -3475,122 +3547,233 @@ "type": "varint" }, { - "name": "equipments", - "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_experience": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "totalExperience", + "name": "type", "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_update_health": [ + "packet_spawn_entity_painting": [ "container", [ { - "name": "health", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "food", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_scoreboard_objective": [ + "packet_spawn_position": [ "container", [ { - "name": "name", - "type": "string" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ { - "name": "action", + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_stop_sound": [ + "container", + [ + { + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "2": "string", + "3": "string" + } } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "passengers", + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], + "packet_tags": [ + "container", + [ + { + "name": "blockTags", + "type": "tags" + }, + { + "name": "itemTags", + "type": "tags" + }, + { + "name": "fluidTags", + "type": "tags" + }, + { + "name": "entityTags", + "type": "tags" + } + ] + ], "packet_teams": [ "container", [ @@ -3608,11 +3791,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3622,11 +3805,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3636,11 +3819,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3650,11 +3833,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3664,11 +3847,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3678,11 +3861,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3692,11 +3875,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3706,6 +3889,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3728,62 +3912,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3800,12 +3948,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3815,10 +3963,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3828,10 +3976,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3841,147 +3989,273 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_entity_sound_effect": [ + "packet_trade_list": [ "container", [ { - "name": "soundId", + "name": "windowId", "type": "varint" }, { - "name": "soundCategory", + "name": "trades", + "type": [ + "array", + { + "countType": "u8", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] + } + ] + }, + { + "name": "villagerLevel", "type": "varint" }, { - "name": "entityId", + "name": "experience", "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "isRegularVillager", + "type": "bool" }, { - "name": "pitch", - "type": "f32" + "name": "canRestock", + "type": "bool" } ] ], - "packet_stop_sound": [ + "packet_transaction": [ "container", [ { - "name": "flags", + "name": "windowId", "type": "i8" }, { - "name": "source", + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + } + ] + ], + "packet_unlock_recipes": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "filteringSmeltable", + "type": "bool" + }, + { + "name": "recipes1", "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" + "array", + { + "countType": "varint", + "type": "string" } ] }, { - "name": "sound", + "name": "recipes2", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "action", + "default": "void", "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" }, { - "name": "soundCategory", + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_light": [ + "container", + [ + { + "name": "chunkX", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "chunkZ", + "type": "varint" }, { - "name": "y", - "type": "i32" + "name": "trustEdges", + "type": "bool" }, { - "name": "z", - "type": "i32" + "name": "skyLightMask", + "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "blockLightMask", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "emptySkyLightMask", + "type": "varint" + }, + { + "name": "emptyBlockLightMask", + "type": "varint" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_playerlist_header": [ + "packet_update_time": [ "container", [ { - "name": "header", - "type": "string" + "name": "age", + "type": "i64" }, { - "name": "footer", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_collect": [ + "packet_update_view_distance": [ "container", [ { - "name": "collectedEntityId", + "name": "viewDistance", "type": "varint" - }, + } + ] + ], + "packet_update_view_position": [ + "container", + [ { - "name": "collectorEntityId", + "name": "chunkX", "type": "varint" }, { - "name": "pickupItemCount", + "name": "chunkZ", "type": "varint" } ] ], - "packet_entity_teleport": [ + "packet_vehicle_move": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "x", "type": "f64" @@ -3996,304 +4270,245 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "onGround", - "type": "bool" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_entity_update_attributes": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "properties", + "name": "radius", "type": [ - "array", + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], - "packet_select_advancement_tab": [ + "packet_world_particles": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + "name": "particleId", + "type": "i32" + }, { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing": [ - "container", - [ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] - } - ] - ] - } - ] - } - ] - ], - "packet_tags": [ - "container", - [ + "name": "longDistance", + "type": "bool" + }, { - "name": "blockTags", - "type": "tags" + "name": "x", + "type": "f64" }, { - "name": "itemTags", - "type": "tags" + "name": "y", + "type": "f64" }, { - "name": "fluidTags", - "type": "tags" + "name": "z", + "type": "f64" }, { - "name": "entityTags", - "type": "tags" - } - ] - ], - "packet_acknowledge_player_digging": [ - "container", - [ + "name": "offsetX", + "type": "f32" + }, { - "name": "location", - "type": "position" + "name": "offsetY", + "type": "f32" }, { - "name": "block", - "type": "varint" + "name": "offsetZ", + "type": "f32" }, { - "name": "status", - "type": "varint" + "name": "particleData", + "type": "f32" }, { - "name": "successful", - "type": "bool" + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -4302,101 +4517,56 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "animation", - "0x06": "statistics", - "0x07": "acknowledge_player_digging", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "entity", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "combat_event", - "0x33": "player_info", - "0x34": "face_player", - "0x35": "position", - "0x36": "unlock_recipes", - "0x37": "entity_destroy", - "0x38": "remove_entity_effect", - "0x39": "resource_pack_send", - "0x3a": "respawn", - "0x3b": "entity_head_rotation", - "0x3c": "select_advancement_tab", - "0x3d": "world_border", - "0x3e": "camera", - "0x3f": "held_item_slot", - "0x40": "update_view_position", - "0x41": "update_view_distance", - "0x42": "spawn_position", - "0x43": "scoreboard_display_objective", - "0x44": "entity_metadata", - "0x45": "attach_entity", - "0x46": "entity_velocity", - "0x47": "entity_equipment", - "0x48": "experience", - "0x49": "update_health", - "0x4a": "scoreboard_objective", - "0x4b": "set_passengers", - "0x4c": "teams", - "0x4d": "scoreboard_score", - "0x4e": "update_time", - "0x4f": "title", - "0x50": "entity_sound_effect", - "0x51": "sound_effect", - "0x52": "stop_sound", - "0x53": "playerlist_header", - "0x54": "nbt_query_response", - "0x55": "collect", - "0x56": "entity_teleport", - "0x57": "advancements", - "0x58": "entity_update_attributes", - "0x59": "entity_effect", - "0x5a": "declare_recipes", - "0x5b": "tags" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "generate_structure", + "0x10": "keep_alive", + "0x11": "lock_difficulty", + "0x12": "position", + "0x13": "position_look", + "0x14": "look", + "0x15": "flying", + "0x16": "vehicle_move", + "0x17": "steer_boat", + "0x18": "pick_item", + "0x19": "craft_recipe_request", + "0x1a": "abilities", + "0x1b": "block_dig", + "0x1c": "entity_action", + "0x1d": "steer_vehicle", + "0x1e": "crafting_book_data", + "0x1f": "name_item", + "0x20": "resource_pack_receive", + "0x21": "advancement_tab", + "0x22": "select_trade", + "0x23": "set_beacon_effect", + "0x24": "held_item_slot", + "0x25": "update_command_block", + "0x26": "update_command_block_minecart", + "0x27": "set_creative_slot", + "0x28": "update_jigsaw_block", + "0x29": "update_structure_block", + "0x2a": "update_sign", + "0x2b": "arm_animation", + "0x2c": "spectate", + "0x2d": "block_place", + "0x2e": "use_item" + }, + "type": "varint" } ] }, @@ -4407,559 +4577,404 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "entity_sound_effect": "packet_entity_sound_effect", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "acknowledge_player_digging": "packet_acknowledge_player_digging" + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_set_difficulty": [ + "packet_arm_animation": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "hand", + "type": "varint" } ] ], - "packet_edit_book": [ + "packet_block_dig": [ "container", [ { - "name": "new_book", - "type": "slot" + "name": "status", + "type": "varint" }, { - "name": "signing", - "type": "bool" + "name": "location", + "type": "position" }, { - "name": "hand", - "type": "varint" + "name": "face", + "type": "i8" } ] ], - "packet_query_entity_nbt": [ + "packet_block_place": [ "container", [ { - "name": "transactionId", + "name": "hand", "type": "varint" }, { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_pick_item": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "slot", + "name": "direction", "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ + }, { - "name": "name", - "type": "string" + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" } ] ], - "packet_select_trade": [ + "packet_chat": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "message", + "type": "string" } ] ], - "packet_set_beacon_effect": [ + "packet_client_command": [ "container", [ { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", + "name": "actionId", "type": "varint" } ] ], - "packet_update_command_block": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", + "name": "windowId", "type": "u8" } ] ], - "packet_update_command_block_minecart": [ + "packet_craft_recipe_request": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "command", + "name": "recipe", "type": "string" }, { - "name": "track_output", + "name": "makeAll", "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_crafting_book_data": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", + "name": "type", "type": "varint" }, { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", - "type": "f32" - }, - { - "name": "seed", - "type": "varlong" - }, - { - "name": "flags", - "type": "u8" + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "smeltingFilter", + "type": "bool" + }, + { + "name": "blastingBookOpen", + "type": "bool" + }, + { + "name": "blastingFilter", + "type": "bool" + }, + { + "name": "smokingBookOpen", + "type": "bool" + }, + { + "name": "smokingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], - "packet_tab_complete": [ + "packet_custom_payload": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "text", - "type": "string" + "name": "data", + "type": "restBuffer" } ] ], - "packet_chat": [ + "packet_edit_book": [ "container", [ { - "name": "message", - "type": "string" - } - ] - ], - "packet_client_command": [ - "container", - [ + "name": "new_book", + "type": "slot" + }, { - "name": "actionId", + "name": "signing", + "type": "bool" + }, + { + "name": "hand", "type": "varint" } ] ], - "packet_settings": [ + "packet_enchant_item": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", + "name": "windowId", "type": "i8" }, { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" + "name": "enchantment", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "actionId", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_enchant_item": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "onGround", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_generate_structure": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "location", + "type": "position" }, { - "name": "mode", - "type": "i8" + "name": "levels", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "keepJigsaws", + "type": "bool" } ] ], - "packet_close_window": [ + "packet_held_item_slot": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "slotId", + "type": "i16" } ] ], - "packet_custom_payload": [ + "packet_keep_alive": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_use_entity": [ + "packet_lock_difficulty": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "sneaking", + "name": "locked", "type": "bool" } ] ], - "packet_generate_structure": [ + "packet_look": [ "container", [ { - "name": "location", - "type": "position" + "name": "yaw", + "type": "f32" }, { - "name": "levels", - "type": "varint" + "name": "pitch", + "type": "f32" }, { - "name": "keepJigsaws", + "name": "onGround", "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_name_item": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "name", + "type": "string" } ] ], - "packet_lock_difficulty": [ + "packet_pick_item": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], @@ -5013,127 +5028,133 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "location", + "type": "position" } ] ], - "packet_flying": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "transactionId", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, + "name": "result", + "type": "varint" + } + ] + ], + "packet_select_trade": [ + "container", + [ { - "name": "pitch", - "type": "f32" + "name": "slot", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "primary_effect", + "type": "varint" }, { - "name": "rightPaddle", - "type": "bool" + "name": "secondary_effect", + "type": "varint" } ] ], - "packet_craft_recipe_request": [ + "packet_set_creative_slot": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" + "name": "slot", + "type": "i16" }, { - "name": "makeAll", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_abilities": [ + "packet_set_difficulty": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_block_dig": [ + "packet_settings": [ "container", [ { - "name": "status", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "chatColors", + "type": "bool" }, { - "name": "face", - "type": "i8" + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" } ] ], - "packet_entity_action": [ + "packet_spectate": [ "container", [ { - "name": "entityId", - "type": "varint" - }, + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5154,100 +5175,80 @@ } ] ], - "packet_crafting_book_data": [ + "packet_tab_complete": [ "container", [ { - "name": "type", + "name": "transactionId", "type": "varint" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "smeltingFilter", - "type": "bool" - }, - { - "name": "blastingBookOpen", - "type": "bool" - }, - { - "name": "blastingFilter", - "type": "bool" - }, - { - "name": "smokingBookOpen", - "type": "bool" - }, - { - "name": "smokingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_transaction": [ "container", [ { - "name": "slotId", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" + }, + { + "name": "accepted", + "type": "bool" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "location", + "type": "position" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] + ], + "packet_update_command_block_minecart": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5288,70 +5289,158 @@ "type": "position" }, { - "name": "text1", - "type": "string" + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "hand", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "mouse", + "type": "varint" }, { - "name": "direction", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "insideBlock", + "name": "sneaking", "type": "bool" } ] @@ -5365,146 +5454,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "generate_structure", - "0x10": "keep_alive", - "0x11": "lock_difficulty", - "0x12": "position", - "0x13": "position_look", - "0x14": "look", - "0x15": "flying", - "0x16": "vehicle_move", - "0x17": "steer_boat", - "0x18": "pick_item", - "0x19": "craft_recipe_request", - "0x1a": "abilities", - "0x1b": "block_dig", - "0x1c": "entity_action", - "0x1d": "steer_vehicle", - "0x1e": "crafting_book_data", - "0x1f": "name_item", - "0x20": "resource_pack_receive", - "0x21": "advancement_tab", - "0x22": "select_trade", - "0x23": "set_beacon_effect", - "0x24": "held_item_slot", - "0x25": "update_command_block", - "0x26": "update_command_block_minecart", - "0x27": "set_creative_slot", - "0x28": "update_jigsaw_block", - "0x29": "update_structure_block", - "0x2a": "update_sign", - "0x2b": "arm_animation", - "0x2c": "spectate", - "0x2d": "block_place", - "0x2e": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.17.1/protocol.json b/data/pc/1.17.1/protocol.json index 4c969b284..d57ccb57d 100644 --- a/data/pc/1.17.1/protocol.json +++ b/data/pc/1.17.1/protocol.json @@ -1,476 +1,75 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "4": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "15": [ - "container", - [ - { - "name": "red", - "type": "f32" - }, - { - "name": "green", - "type": "f32" - }, - { - "name": "blue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - } - ] - ], - "16": [ - "container", + "bitfield", [ { - "name": "fromRed", - "type": "f32" - }, - { - "name": "fromGreen", - "type": "f32" - }, - { - "name": "fromBlue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - }, - { - "name": "toRed", - "type": "f32" - }, - { - "name": "toGreen", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "toBlue", - "type": "f32" - } - ] - ], - "25": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "36": [ - "container", - [ - { - "name": "item", - "type": "slot" - } - ] - ], - "37": [ - "container", - [ - { - "name": "origin", - "type": "position" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "positionType", - "type": "string" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "destination", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:block": "position", - "minecraft:entity": "varint" - } - } - ] + "name": "has_command", + "signed": false, + "size": 1 }, { - "name": "ticks", - "type": "varint" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { "name": "extraNodeData", @@ -508,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -518,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -540,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -553,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -572,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -594,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -607,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -626,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -648,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -661,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -680,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -702,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -715,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -727,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -807,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -823,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -832,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -843,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -857,125 +456,412 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ "container", [ { - "name": "name", + "anon": true, "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": {} + "compareTo": "type" } ] } ] ] } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", { - "name": "payload", - "type": "u8" + "compareTo": "particleId" } ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } - } - ] - }, + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "4": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "15": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "16": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "25": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "36": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ], + "37": [ + "container", + [ + { + "name": "origin", + "type": "position" + }, + { + "name": "positionType", + "type": "string" + }, + { + "name": "destination", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "minecraft:block": "position", + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", { - "name": "params", + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + "countType": "varint", + "type": "varint" } ] } ] ] } - } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, - "status": { + "handshaking": { "toClient": { "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], "packet": [ "container", [ @@ -984,11 +870,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } + "mappings": {}, + "type": "varint" } ] }, @@ -998,10 +881,7 @@ "switch", { "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } + "fields": {} } ] } @@ -1011,19 +891,6 @@ }, "toServer": { "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], "packet": [ "container", [ @@ -1032,11 +899,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" } ] }, @@ -1047,95 +914,153 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { - "packet_disconnect": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "reason", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_encryption_begin": [ + "packet_set_protocol": [ "container", [ { - "name": "serverId", + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", "type": "string" }, { - "name": "publicKey", + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" + } + ] + ] + } + } + }, + "status": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": { + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "server_info": "packet_server_info" + } } ] } ] ], - "packet_success": [ + "packet_ping": [ "container", [ { - "name": "uuid", - "type": "UUID" - }, - { - "name": "username", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_compress": [ + "packet_server_info": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "response", + "type": "string" } ] - ], - "packet_login_plugin_request": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "messageId", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" + } + ] }, { - "name": "channel", - "type": "string" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } + } + ] + } + ] + ], + "packet_ping": [ + "container", + [ { - "name": "data", - "type": "restBuffer" + "name": "time", + "type": "i64" } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1144,14 +1069,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "disconnect", "0x01": "encryption_begin", "0x02": "success", "0x03": "compress", "0x04": "login_plugin_request" - } + }, + "type": "varint" } ] }, @@ -1162,26 +1087,31 @@ { "compareTo": "name", "fields": { + "compress": "packet_compress", "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_compress": [ "container", [ { - "name": "username", + "name": "threshold", + "type": "varint" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", "type": "string" } ] @@ -1190,7 +1120,11 @@ "container", [ { - "name": "sharedSecret", + "name": "serverId", + "type": "string" + }, + { + "name": "publicKey", "type": [ "buffer", { @@ -1209,22 +1143,40 @@ } ] ], - "packet_login_plugin_response": [ + "packet_login_plugin_request": [ "container", [ { "name": "messageId", "type": "varint" }, + { + "name": "channel", + "type": "string" + }, { "name": "data", - "type": [ - "option", - "restBuffer" - ] + "type": "restBuffer" } ] ], + "packet_success": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1233,12 +1185,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "login_start", "0x01": "encryption_begin", "0x02": "login_plugin_response" - } + }, + "type": "varint" } ] }, @@ -1249,503 +1201,320 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "objectUUID", - "type": "UUID" - }, + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ], + "packet_login_plugin_response": [ + "container", + [ { - "name": "type", + "name": "messageId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] - ], - "packet_spawn_entity_living": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_painting": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "u8" - } - ] - ], - "packet_named_entity_spawn": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "animation", - "type": "u8" + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_statistics": [ + "packet_login_start": [ "container", [ { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "username", + "type": "string" } ] - ], - "packet_advancements": [ + ] + } + } + }, + "play": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "reset", - "type": "bool" - }, - { - "name": "advancementMapping", + "name": "name", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "container", - [ - { - "name": "parentId", - "type": [ - "option", - "string" - ] - }, - { - "name": "displayData", - "type": [ - "option", - [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "description", - "type": "string" - }, - { - "name": "icon", - "type": "slot" - }, - { - "name": "frameType", - "type": "varint" - }, - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "backgroundTexture", - "type": [ - "switch", - { - "compareTo": "flags/has_background_texture", - "fields": { - "1": "string" - }, - "default": "void" - } - ] - }, - { - "name": "xCord", - "type": "f32" - }, - { - "name": "yCord", - "type": "f32" - } - ] - ] - ] - }, - { - "name": "criteria", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "void" - } - ] - ] - } - ] - }, - { - "name": "requirements", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - } - ] - ] - } - ] - ] - } - ] - }, - { - "name": "identifiers", - "type": [ - "array", - { - "countType": "varint", - "type": "string" + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "sculk_vibration_signal", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "clear_titles", + "0x11": "tab_complete", + "0x12": "declare_commands", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "initialize_world_border", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "update_light", + "0x26": "login", + "0x27": "map", + "0x28": "trade_list", + "0x29": "rel_entity_move", + "0x2a": "entity_move_look", + "0x2b": "entity_look", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "ping", + "0x31": "craft_recipe_response", + "0x32": "abilities", + "0x33": "end_combat_event", + "0x34": "enter_combat_event", + "0x35": "death_combat_event", + "0x36": "player_info", + "0x37": "face_player", + "0x38": "position", + "0x39": "unlock_recipes", + "0x3a": "entity_destroy", + "0x3b": "remove_entity_effect", + "0x3c": "resource_pack_send", + "0x3d": "respawn", + "0x3e": "entity_head_rotation", + "0x3f": "multi_block_change", + "0x40": "select_advancement_tab", + "0x41": "action_bar", + "0x42": "world_border_center", + "0x43": "world_border_lerp_size", + "0x44": "world_border_size", + "0x45": "world_border_warning_delay", + "0x46": "world_border_warning_reach", + "0x47": "camera", + "0x48": "held_item_slot", + "0x49": "update_view_position", + "0x4a": "update_view_distance", + "0x4b": "spawn_position", + "0x4c": "scoreboard_display_objective", + "0x4d": "entity_metadata", + "0x4e": "attach_entity", + "0x4f": "entity_velocity", + "0x50": "entity_equipment", + "0x51": "experience", + "0x52": "update_health", + "0x53": "scoreboard_objective", + "0x54": "set_passengers", + "0x55": "teams", + "0x56": "scoreboard_score", + "0x57": "set_title_subtitle", + "0x58": "update_time", + "0x59": "set_title_text", + "0x5a": "set_title_time", + "0x5b": "entity_sound_effect", + "0x5c": "sound_effect", + "0x5d": "stop_sound", + "0x5e": "playerlist_header", + "0x5f": "nbt_query_response", + "0x60": "collect", + "0x61": "entity_teleport", + "0x62": "advancements", + "0x63": "entity_update_attributes", + "0x64": "entity_effect", + "0x65": "declare_recipes", + "0x66": "tags" + }, + "type": "varint" } ] }, { - "name": "progressMapping", + "name": "params", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "criterionIdentifier", - "type": "string" - }, - { - "name": "criterionProgress", - "type": [ - "option", - "i64" - ] - } - ] - ] - } - ] - } - ] - ] - } - ] - } - ] - ], - "packet_block_break_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" - } - ] - ], - "packet_tile_entity_data": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" - }, - { - "name": "nbtData", - "type": "optionalNbt" + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "death_combat_event": "packet_death_combat_event", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "sculk_vibration_signal": "packet_sculk_vibration_signal", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "trade_list": "packet_trade_list", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_block_action": [ + "packet_abilities": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "byte1", - "type": "u8" + "name": "flags", + "type": "i8" }, { - "name": "byte2", - "type": "u8" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "blockId", - "type": "varint" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_block_change": [ + "packet_acknowledge_player_digging": [ "container", [ { @@ -1753,124 +1522,37 @@ "type": "position" }, { - "name": "type", + "name": "block", "type": "varint" - } - ] - ], - "packet_boss_bar": [ - "container", - [ - { - "name": "entityUUID", - "type": "UUID" }, { - "name": "action", + "name": "status", "type": "varint" }, { - "name": "title", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "3": "string" - }, - "default": "void" - } - ] - }, - { - "name": "health", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "color", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "dividers", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] + "name": "successful", + "type": "bool" } ] ], - "packet_difficulty": [ + "packet_action_bar": [ "container", [ { - "name": "difficulty", - "type": "u8" - }, - { - "name": "difficultyLocked", - "type": "bool" + "name": "text", + "type": "string" } ] ], - "packet_tab_complete": [ + "packet_advancements": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", - "type": "varint" + "name": "reset", + "type": "bool" }, { - "name": "matches", + "name": "advancementMapping", "type": [ "array", { @@ -1879,215 +1561,416 @@ "container", [ { - "name": "match", + "name": "key", "type": "string" }, { - "name": "tooltip", + "name": "value", "type": [ - "option", - "string" - ] - } + "container", + [ + { + "name": "parentId", + "type": [ + "option", + "string" + ] + }, + { + "name": "displayData", + "type": [ + "option", + [ + "container", + [ + { + "name": "title", + "type": "string" + }, + { + "name": "description", + "type": "string" + }, + { + "name": "icon", + "type": "slot" + }, + { + "name": "frameType", + "type": "varint" + }, + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "_unused", + "signed": false, + "size": 29 + }, + { + "name": "hidden", + "signed": false, + "size": 1 + }, + { + "name": "show_toast", + "signed": false, + "size": 1 + }, + { + "name": "has_background_texture", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "backgroundTexture", + "type": [ + "switch", + { + "compareTo": "flags/has_background_texture", + "default": "void", + "fields": { + "1": "string" + } + } + ] + }, + { + "name": "xCord", + "type": "f32" + }, + { + "name": "yCord", + "type": "f32" + } + ] + ] + ] + }, + { + "name": "criteria", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "void" + } + ] + ] + } + ] + }, + { + "name": "requirements", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + } + ] + ] + } ] ] } ] - } - ] - ], - "packet_declare_commands": [ - "container", - [ + }, { - "name": "nodes", + "name": "identifiers", "type": [ "array", { "countType": "varint", - "type": "command_node" + "type": "string" } ] }, { - "name": "rootIndex", - "type": "varint" + "name": "progressMapping", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "criterionIdentifier", + "type": "string" + }, + { + "name": "criterionProgress", + "type": [ + "option", + "i64" + ] + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_face_player": [ + "packet_animation": [ "container", [ { - "name": "feet_eyes", + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, + "name": "animation", + "type": "u8" + } + ] + ], + "packet_attach_entity": [ + "container", + [ { "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] + "type": "i32" }, { - "name": "entity_feet_eyes", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "string" - }, - "default": "void" - } - ] + "name": "vehicleId", + "type": "i32" } ] ], - "packet_nbt_query_response": [ + "packet_block_action": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "location", + "type": "position" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "byte1", + "type": "u8" + }, + { + "name": "byte2", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" } ] ], - "packet_chat": [ + "packet_block_break_animation": [ "container", [ { - "name": "message", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "position", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "sender", - "type": "UUID" + "name": "destroyStage", + "type": "i8" } ] ], - "packet_multi_block_change": [ + "packet_block_change": [ "container", [ { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": false + "name": "location", + "type": "position" + }, + { + "name": "type", + "type": "varint" + } + ] + ], + "packet_boss_bar": [ + "container", + [ + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "title", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "3": "string" } - ] + } ] }, { - "name": "notTrustEdges", - "type": "bool" + "name": "health", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } + } + ] }, { - "name": "records", + "name": "color", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "varlong" + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "dividers", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "flags", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } } ] } ] ], - "packet_close_window": [ + "packet_camera": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "cameraId", + "type": "varint" } ] ], - "packet_open_window": [ + "packet_chat": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "message", + "type": "string" }, { - "name": "inventoryType", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "windowTitle", - "type": "string" + "name": "sender", + "type": "UUID" } ] ], - "packet_window_items": [ + "packet_clear_titles": [ + "container", + [ + { + "name": "reset", + "type": "bool" + } + ] + ], + "packet_close_window": [ "container", [ { "name": "windowId", "type": "u8" - }, + } + ] + ], + "packet_collect": [ + "container", + [ { - "name": "stateId", + "name": "collectedEntityId", "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ] + "name": "collectorEntityId", + "type": "varint" }, { - "name": "carriedItem", - "type": "slot" + "name": "pickupItemCount", + "type": "varint" } ] ], @@ -2108,7 +1991,7 @@ } ] ], - "packet_set_slot": [ + "packet_craft_recipe_response": [ "container", [ { @@ -2116,29 +1999,8 @@ "type": "i8" }, { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ - { - "name": "itemID", - "type": "varint" - }, - { - "name": "cooldownTicks", - "type": "varint" + "name": "recipe", + "type": "string" } ] ], @@ -2155,82 +2017,47 @@ } ] ], - "packet_named_sound_effect": [ + "packet_death_combat_event": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "playerId", "type": "varint" }, { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", + "name": "entityId", "type": "i32" }, { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ - { - "name": "reason", + "name": "message", "type": "string" } ] ], - "packet_entity_status": [ + "packet_declare_commands": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "entityStatus", - "type": "i8" + "name": "rootIndex", + "type": "varint" } ] ], - "packet_explosion": [ + "packet_declare_recipes": [ "container", [ { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "radius", - "type": "f32" - }, - { - "name": "affectedBlockOffsets", + "name": "recipes", "type": [ "array", { @@ -2239,71 +2066,161 @@ "container", [ { - "name": "x", - "type": "i8" + "name": "type", + "type": "string" }, { - "name": "y", - "type": "i8" + "name": "recipeId", + "type": "string" }, { - "name": "z", - "type": "i8" - } - ] - ] - } - ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, - { - "name": "playerMotionY", - "type": "f32" - }, - { - "name": "playerMotionZ", - "type": "f32" - } - ] - ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] + } + ] + ] + } + ] } ] ], - "packet_game_state_change": [ + "packet_difficulty": [ "container", [ { - "name": "reason", + "name": "difficulty", "type": "u8" }, { - "name": "gameMode", - "type": "f32" + "name": "difficultyLocked", + "type": "bool" } ] ], - "packet_open_horse_window": [ + "packet_end_combat_event": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "nbSlots", + "name": "duration", "type": "varint" }, { @@ -2312,42 +2229,15 @@ } ] ], - "packet_keep_alive": [ + "packet_enter_combat_event": [ "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] + [] ], - "packet_map_chunk": [ + "packet_entity_destroy": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "bitMap", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "heightmaps", - "type": "nbt" - }, - { - "name": "biomes", + "name": "entityIds", "type": [ "array", { @@ -2355,439 +2245,341 @@ "type": "varint" } ] - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" - } - ] } ] ], - "packet_world_event": [ + "packet_entity_effect": [ "container", [ + { + "name": "entityId", + "type": "varint" + }, { "name": "effectId", - "type": "i32" + "type": "i8" }, { - "name": "location", - "type": "position" + "name": "amplifier", + "type": "i8" }, { - "name": "data", - "type": "i32" + "name": "duration", + "type": "varint" }, { - "name": "global", - "type": "bool" + "name": "hideParticles", + "type": "i8" } ] ], - "packet_world_particles": [ + "packet_entity_equipment": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f64" + "name": "entityId", + "type": "varint" }, { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + "name": "equipments", + "type": [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] + } + ] + ], + "packet_entity_head_rotation": [ + "container", + [ { - "name": "offsetX", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "offsetY", - "type": "f32" - }, + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ + "container", + [ { - "name": "offsetZ", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "particleData", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "particles", - "type": "i32" + "name": "pitch", + "type": "i8" }, { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_update_light": [ + "packet_entity_metadata": [ "container", [ { - "name": "chunkX", + "name": "entityId", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" - }, + "name": "metadata", + "type": "entityMetadata" + } + ] + ], + "packet_entity_move_look": [ + "container", + [ { - "name": "trustEdges", - "type": "bool" + "name": "entityId", + "type": "varint" }, { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "dX", + "type": "i16" }, { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "dY", + "type": "i16" }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "dZ", + "type": "i16" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_login": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "entityId", - "type": "i32" - }, - { - "name": "isHardcore", - "type": "bool" + "name": "soundId", + "type": "varint" }, { - "name": "gameMode", - "type": "u8" + "name": "soundCategory", + "type": "varint" }, { - "name": "previousGameMode", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "worldNames", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "volume", + "type": "f32" }, { - "name": "dimensionCodec", - "type": "nbt" - }, + "name": "pitch", + "type": "f32" + } + ] + ], + "packet_entity_status": [ + "container", + [ { - "name": "dimension", - "type": "nbt" + "name": "entityId", + "type": "i32" }, { - "name": "worldName", - "type": "string" - }, + "name": "entityStatus", + "type": "i8" + } + ] + ], + "packet_entity_teleport": [ + "container", + [ { - "name": "hashedSeed", - "type": "i64" + "name": "entityId", + "type": "varint" }, { - "name": "maxPlayers", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "viewDistance", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "reducedDebugInfo", - "type": "bool" + "name": "z", + "type": "f64" }, { - "name": "enableRespawnScreen", - "type": "bool" + "name": "yaw", + "type": "i8" }, { - "name": "isDebug", - "type": "bool" + "name": "pitch", + "type": "i8" }, { - "name": "isFlat", + "name": "onGround", "type": "bool" } ] ], - "packet_map": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "itemDamage", + "name": "entityId", "type": "varint" }, { - "name": "scale", - "type": "i8" - }, - { - "name": "locked", - "type": "bool" - }, - { - "name": "icons", + "name": "properties", "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "i8" - }, - { - "name": "z", - "type": "i8" - }, - { - "name": "direction", - "type": "u8" - }, - { - "name": "displayName", - "type": [ - "option", - "string" - ] - } - ] + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } ] - } - ] + ] + } ] - }, + } + ] + ], + "packet_entity_velocity": [ + "container", + [ { - "name": "columns", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "rows", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] - }, + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ { - "name": "x", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "name": "experienceBar", + "type": "f32" }, { - "name": "y", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "name": "level", + "type": "varint" }, { - "name": "data", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] + "name": "totalExperience", + "type": "varint" } ] ], - "packet_trade_list": [ + "packet_explosion": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "x", + "type": "f32" }, { - "name": "trades", + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "radius", + "type": "f32" + }, + { + "name": "affectedBlockOffsets", "type": [ "array", { - "countType": "u8", + "countType": "varint", "type": [ "container", [ { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - "slot" - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" + "name": "x", + "type": "i8" }, { - "name": "priceMultiplier", - "type": "f32" + "name": "y", + "type": "i8" }, { - "name": "demand", - "type": "i32" + "name": "z", + "type": "i8" } ] ] @@ -2795,103 +2587,93 @@ ] }, { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" + "name": "playerMotionX", + "type": "f32" }, { - "name": "isRegularVillager", - "type": "bool" + "name": "playerMotionY", + "type": "f32" }, { - "name": "canRestock", - "type": "bool" + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_rel_entity_move": [ + "packet_face_player": [ "container", [ { - "name": "entityId", + "name": "feet_eyes", "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dY", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "z", + "type": "f64" }, { - "name": "onGround", + "name": "isEntity", "type": "bool" - } - ] - ], - "packet_entity_move_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" }, { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "entity_feet_eyes", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } + } + ] } ] ], - "packet_entity_look": [ + "packet_game_state_change": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "reason", + "type": "u8" }, { - "name": "yaw", - "type": "i8" - }, + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "pitch", + "name": "slot", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_initialize_world_border": [ "container", [ { @@ -2899,990 +2681,904 @@ "type": "f64" }, { - "name": "y", + "name": "z", "type": "f64" }, { - "name": "z", + "name": "oldDiameter", "type": "f64" }, { - "name": "yaw", - "type": "f32" + "name": "newDiameter", + "type": "f64" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_open_book": [ - "container", - [ + "name": "speed", + "type": "varlong" + }, { - "name": "hand", + "name": "portalTeleportBoundary", + "type": "varint" + }, + { + "name": "warningBlocks", + "type": "varint" + }, + { + "name": "warningTime", "type": "varint" } ] ], - "packet_open_sign_entity": [ + "packet_keep_alive": [ "container", [ { - "name": "location", - "type": "position" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_craft_recipe_response": [ + "packet_kick_disconnect": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", + "name": "reason", "type": "string" } ] ], - "packet_abilities": [ + "packet_login": [ "container", [ { - "name": "flags", + "name": "entityId", + "type": "i32" + }, + { + "name": "isHardcore", + "type": "bool" + }, + { + "name": "gameMode", + "type": "u8" + }, + { + "name": "previousGameMode", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "worldNames", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] }, { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_end_combat_event": [ - "container", - [ + "name": "dimensionCodec", + "type": "nbt" + }, { - "name": "duration", + "name": "dimension", + "type": "nbt" + }, + { + "name": "worldName", + "type": "string" + }, + { + "name": "hashedSeed", + "type": "i64" + }, + { + "name": "maxPlayers", "type": "varint" }, { - "name": "entityId", - "type": "i32" + "name": "viewDistance", + "type": "varint" + }, + { + "name": "reducedDebugInfo", + "type": "bool" + }, + { + "name": "enableRespawnScreen", + "type": "bool" + }, + { + "name": "isDebug", + "type": "bool" + }, + { + "name": "isFlat", + "type": "bool" } ] ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ + "packet_map": [ "container", [ { - "name": "playerId", + "name": "itemDamage", "type": "varint" }, { - "name": "entityId", - "type": "i32" + "name": "scale", + "type": "i8" }, { - "name": "message", - "type": "string" - } - ] - ], - "packet_player_info": [ - "container", - [ + "name": "locked", + "type": "bool" + }, { - "name": "action", + "name": "icons", "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "add_player", - "1": "update_game_mode", - "2": "update_latency", - "3": "update_display_name", - "4": "remove_player" + "option", + [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + }, + { + "name": "direction", + "type": "u8" + }, + { + "name": "displayName", + "type": [ + "option", + "string" + ] + } + ] + ] } - } + ] ] }, { - "name": "data", + "name": "columns", + "type": "u8" + }, + { + "name": "rows", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "../action", - "fields": { - "add_player": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - }, - { - "name": "gamemode", - "type": "varint" - }, - { - "name": "ping", - "type": "varint" - }, - { - "name": "displayName", - "type": [ - "option", - "string" - ] - } - ] - ], - "update_game_mode": [ - "container", - [ - { - "name": "gamemode", - "type": "varint" - } - ] - ], - "update_latency": [ - "container", - [ - { - "name": "ping", - "type": "varint" - } - ] - ], - "update_display_name": [ - "container", - [ - { - "name": "displayName", - "type": [ - "option", - "string" - ] - } - ] - ], - "remove_player": "void" - } - } - ] - } - ] - ] + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } } ] - } - ] - ], - "packet_position": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": [ + "switch", + { + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } + } + ] }, { "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "flags", - "type": "i8" - }, - { - "name": "teleportId", - "type": "varint" + "type": [ + "switch", + { + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } + } + ] }, { - "name": "dismountVehicle", - "type": "bool" + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } + } + ] } ] ], - "packet_unlock_recipes": [ + "packet_map_chunk": [ "container", [ { - "name": "action", - "type": "varint" - }, - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "filteringCraftable", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "filteringSmeltable", - "type": "bool" - }, - { - "name": "blastFurnaceOpen", - "type": "bool" + "name": "x", + "type": "i32" }, { - "name": "filteringBlastFurnace", - "type": "bool" + "name": "z", + "type": "i32" }, { - "name": "smokerBookOpen", - "type": "bool" + "name": "bitMap", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "filteringSmoker", - "type": "bool" + "name": "heightmaps", + "type": "nbt" }, { - "name": "recipes1", + "name": "biomes", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "varint" } ] }, { - "name": "recipes2", + "name": "chunkData", "type": [ - "switch", + "buffer", { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" + "countType": "varint" } ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ + }, { - "name": "entityIds", + "name": "blockEntities", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": "nbt" } ] } ] ], - "packet_remove_entity_effect": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "effectId", - "type": "i8" - } - ] - ], - "packet_resource_pack_send": [ + "packet_multi_block_change": [ "container", [ { - "name": "url", - "type": "string" - }, - { - "name": "hash", - "type": "string" + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": false, + "size": 20 + } + ] + ] }, { - "name": "forced", + "name": "notTrustEdges", "type": "bool" }, { - "name": "promptMessage", + "name": "records", "type": [ - "option", - "string" + "array", + { + "countType": "varint", + "type": "varlong" + } ] } ] ], - "packet_respawn": [ + "packet_named_entity_spawn": [ "container", [ { - "name": "dimension", - "type": "nbt" - }, - { - "name": "worldName", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "hashedSeed", - "type": "i64" + "name": "playerUUID", + "type": "UUID" }, { - "name": "gamemode", - "type": "u8" + "name": "x", + "type": "f64" }, { - "name": "previousGamemode", - "type": "u8" + "name": "y", + "type": "f64" }, { - "name": "isDebug", - "type": "bool" + "name": "z", + "type": "f64" }, { - "name": "isFlat", - "type": "bool" + "name": "yaw", + "type": "i8" }, { - "name": "copyMetadata", - "type": "bool" + "name": "pitch", + "type": "i8" } ] ], - "packet_entity_head_rotation": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" }, { - "name": "headYaw", - "type": "i8" - } - ] - ], - "packet_camera": [ - "container", - [ + "name": "x", + "type": "i32" + }, { - "name": "cameraId", - "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + "name": "y", + "type": "i32" + }, { - "name": "slot", - "type": "i8" - } - ] - ], - "packet_update_view_position": [ - "container", - [ + "name": "z", + "type": "i32" + }, { - "name": "chunkX", - "type": "varint" + "name": "volume", + "type": "f32" }, { - "name": "chunkZ", - "type": "varint" + "name": "pitch", + "type": "f32" } ] ], - "packet_update_view_distance": [ + "packet_nbt_query_response": [ "container", [ { - "name": "viewDistance", + "name": "transactionId", "type": "varint" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ - { - "name": "position", - "type": "i8" }, { - "name": "name", - "type": "string" + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_entity_metadata": [ + "packet_open_book": [ "container", [ { - "name": "entityId", + "name": "hand", "type": "varint" - }, - { - "name": "metadata", - "type": "entityMetadata" } ] ], - "packet_attach_entity": [ + "packet_open_horse_window": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "windowId", + "type": "u8" }, { - "name": "vehicleId", - "type": "i32" - } - ] - ], - "packet_entity_velocity": [ - "container", - [ - { - "name": "entityId", + "name": "nbSlots", "type": "varint" }, { - "name": "velocity", - "type": "vec3i16" + "name": "entityId", + "type": "i32" } ] ], - "packet_entity_equipment": [ + "packet_open_sign_entity": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "equipments", - "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] + "name": "location", + "type": "position" } ] ], - "packet_experience": [ + "packet_open_window": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "windowId", + "type": "varint" }, { - "name": "level", + "name": "inventoryType", "type": "varint" }, { - "name": "totalExperience", - "type": "varint" + "name": "windowTitle", + "type": "string" } ] ], - "packet_update_health": [ + "packet_ping": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" + "name": "id", + "type": "i32" } ] ], - "packet_scoreboard_objective": [ + "packet_player_info": [ "container", [ - { - "name": "name", - "type": "string" - }, { "name": "action", - "type": "i8" - }, - { - "name": "displayText", "type": [ - "switch", + "mapper", { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" + "mappings": { + "0": "add_player", + "1": "update_game_mode", + "2": "update_latency", + "3": "update_display_name", + "4": "remove_player" }, - "default": "void" + "type": "varint" } ] }, { - "name": "type", + "name": "data", "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - } - ] - ], - "packet_set_passengers": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", - "type": [ - "array", + "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "../action", + "fields": { + "add_player": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + }, + { + "name": "gamemode", + "type": "varint" + }, + { + "name": "ping", + "type": "varint" + }, + { + "name": "displayName", + "type": [ + "option", + "string" + ] + } + ] + ], + "remove_player": "void", + "update_display_name": [ + "container", + [ + { + "name": "displayName", + "type": [ + "option", + "string" + ] + } + ] + ], + "update_game_mode": [ + "container", + [ + { + "name": "gamemode", + "type": "varint" + } + ] + ], + "update_latency": [ + "container", + [ + { + "name": "ping", + "type": "varint" + } + ] + ] + } + } + ] + } + ] + ] } ] } ] ], - "packet_teams": [ + "packet_playerlist_header": [ "container", [ { - "name": "team", + "name": "header", "type": "string" }, { - "name": "mode", - "type": "i8" - }, + "name": "footer", + "type": "string" + } + ] + ], + "packet_position": [ + "container", + [ { - "name": "name", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "x", + "type": "f64" }, { - "name": "friendlyFire", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" - } - ] + "name": "y", + "type": "f64" }, { - "name": "nameTagVisibility", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "z", + "type": "f64" }, { - "name": "collisionRule", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "f32" }, { - "name": "formatting", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "f32" }, { - "name": "prefix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "flags", + "type": "i8" }, { - "name": "suffix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "teleportId", + "type": "varint" }, { - "name": "players", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] + "name": "dismountVehicle", + "type": "bool" } ] ], - "packet_scoreboard_score": [ + "packet_rel_entity_move": [ "container", [ { - "name": "itemName", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "varint" + "name": "dX", + "type": "i16" }, { - "name": "scoreName", - "type": "string" + "name": "dY", + "type": "i16" }, { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" - } - ] + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_spawn_position": [ + "packet_remove_entity_effect": [ "container", [ { - "name": "location", - "type": "position" + "name": "entityId", + "type": "varint" }, { - "name": "angle", - "type": "f32" + "name": "effectId", + "type": "i8" } ] ], - "packet_update_time": [ + "packet_resource_pack_send": [ "container", [ { - "name": "age", - "type": "i64" + "name": "url", + "type": "string" }, { - "name": "time", - "type": "i64" + "name": "hash", + "type": "string" + }, + { + "name": "forced", + "type": "bool" + }, + { + "name": "promptMessage", + "type": [ + "option", + "string" + ] } ] ], - "packet_entity_sound_effect": [ + "packet_respawn": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "dimension", + "type": "nbt" }, { - "name": "soundCategory", - "type": "varint" + "name": "worldName", + "type": "string" }, { - "name": "entityId", - "type": "varint" + "name": "hashedSeed", + "type": "i64" }, { - "name": "volume", - "type": "f32" + "name": "gamemode", + "type": "u8" }, { - "name": "pitch", - "type": "f32" + "name": "previousGamemode", + "type": "u8" + }, + { + "name": "isDebug", + "type": "bool" + }, + { + "name": "isFlat", + "type": "bool" + }, + { + "name": "copyMetadata", + "type": "bool" } ] ], - "packet_stop_sound": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "flags", + "name": "position", "type": "i8" }, { - "name": "source", + "name": "name", + "type": "string" + } + ] + ], + "packet_scoreboard_objective": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "action", + "type": "i8" + }, + { + "name": "displayText", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "action", + "default": "void", "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "sound", + "name": "type", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "action", + "default": "void", "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] } ] ], - "packet_sound_effect": [ + "packet_scoreboard_score": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "itemName", + "type": "string" }, { - "name": "soundCategory", + "name": "action", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "scoreName", + "type": "string" }, { - "name": "y", - "type": "i32" + "name": "value", + "type": [ + "switch", + { + "compareTo": "action", + "default": "varint", + "fields": { + "1": "void" + } + } + ] + } + ] + ], + "packet_sculk_vibration_signal": [ + "container", + [ + { + "name": "sourcePosition", + "type": "position" }, { - "name": "z", - "type": "i32" + "name": "destinationIdentifier", + "type": "string" }, { - "name": "volume", - "type": "f32" + "name": "destination", + "type": [ + "switch", + { + "compareTo": "destinationIdentifier", + "default": "void", + "fields": { + "block": "position", + "entityId": "varint" + } + } + ] }, { - "name": "pitch", - "type": "f32" + "name": "arrivalTicks", + "type": "varint" } ] ], - "packet_playerlist_header": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "header", - "type": "string" - }, - { - "name": "footer", - "type": "string" + "name": "id", + "type": [ + "option", + "string" + ] } ] ], - "packet_collect": [ + "packet_set_cooldown": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" - }, - { - "name": "collectorEntityId", + "name": "itemID", "type": "varint" }, { - "name": "pickupItemCount", + "name": "cooldownTicks", "type": "varint" } ] ], - "packet_entity_teleport": [ + "packet_set_passengers": [ "container", [ { @@ -3890,89 +3586,107 @@ "type": "varint" }, { - "name": "x", - "type": "f64" - }, + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "packet_set_slot": [ + "container", + [ { - "name": "y", - "type": "f64" + "name": "windowId", + "type": "i8" }, { - "name": "z", - "type": "f64" + "name": "stateId", + "type": "varint" }, { - "name": "yaw", - "type": "i8" + "name": "slot", + "type": "i16" }, { - "name": "pitch", - "type": "i8" - }, + "name": "item", + "type": "slot" + } + ] + ], + "packet_set_title_subtitle": [ + "container", + [ { - "name": "onGround", - "type": "bool" + "name": "text", + "type": "string" } ] ], - "packet_entity_update_attributes": [ + "packet_set_title_text": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "text", + "type": "string" + } + ] + ], + "packet_set_title_time": [ + "container", + [ + { + "name": "fadeIn", + "type": "i32" }, { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] - } - ] + "name": "stay", + "type": "i32" + }, + { + "name": "fadeOut", + "type": "i32" } ] ], - "packet_entity_effect": [ + "packet_sound_effect": [ + "container", + [ + { + "name": "soundId", + "type": "varint" + }, + { + "name": "soundCategory", + "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + } + ] + ], + "packet_spawn_entity": [ "container", [ { @@ -3980,40 +3694,156 @@ "type": "varint" }, { - "name": "effectId", + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", "type": "i8" }, { - "name": "amplifier", + "name": "yaw", "type": "i8" }, { - "name": "duration", + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_spawn_entity_experience_orb": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "hideParticles", + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" + } + ] + ], + "packet_spawn_entity_living": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", "type": "i8" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_select_advancement_tab": [ + "packet_spawn_entity_painting": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] + "name": "entityId", + "type": "varint" + }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_declare_recipes": [ + "packet_spawn_position": [ "container", [ { - "name": "recipes", + "name": "location", + "type": "position" + }, + { + "name": "angle", + "type": "f32" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", "type": [ "array", { @@ -4022,134 +3852,94 @@ "container", [ { - "name": "type", - "type": "string" + "name": "categoryId", + "type": "varint" }, { - "name": "recipeId", - "type": "string" + "name": "statisticId", + "type": "varint" }, { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing": [ - "container", - [ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_stop_sound": [ + "container", + [ + { + "name": "flags", + "type": "i8" + }, + { + "name": "source", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "1": "varint", + "3": "varint" + } + } + ] + }, + { + "name": "sound", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "2": "string", + "3": "string" + } + } + ] + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" ] } ] @@ -4186,678 +3976,871 @@ } ] ], - "packet_acknowledge_player_digging": [ + "packet_teams": [ "container", [ { - "name": "location", - "type": "position" + "name": "team", + "type": "string" }, { - "name": "block", - "type": "varint" + "name": "mode", + "type": "i8" }, { - "name": "status", - "type": "varint" + "name": "name", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] }, { - "name": "successful", - "type": "bool" - } - ] - ], - "packet_sculk_vibration_signal": [ - "container", - [ - { - "name": "sourcePosition", - "type": "position" + "name": "friendlyFire", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "i8", + "2": "i8" + } + } + ] }, { - "name": "destinationIdentifier", - "type": "string" + "name": "nameTagVisibility", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] }, { - "name": "destination", + "name": "collisionRule", "type": [ "switch", { - "compareTo": "destinationIdentifier", + "compareTo": "mode", + "default": "void", "fields": { - "block": "position", - "entityId": "varint" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "arrivalTicks", - "type": "varint" + "name": "formatting", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + }, + { + "name": "prefix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "suffix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "players", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "3": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + } + ] } ] ], - "packet_clear_titles": [ + "packet_tile_entity_data": [ "container", [ { - "name": "reset", - "type": "bool" + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "u8" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] ], - "packet_initialize_world_border": [ + "packet_trade_list": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "oldDiameter", - "type": "f64" + "name": "windowId", + "type": "varint" }, { - "name": "newDiameter", - "type": "f64" + "name": "trades", + "type": [ + "array", + { + "countType": "u8", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] + } + ] }, { - "name": "speed", - "type": "varlong" + "name": "villagerLevel", + "type": "varint" }, { - "name": "portalTeleportBoundary", + "name": "experience", "type": "varint" }, { - "name": "warningBlocks", - "type": "varint" + "name": "isRegularVillager", + "type": "bool" }, { - "name": "warningTime", - "type": "varint" + "name": "canRestock", + "type": "bool" } ] ], - "packet_action_bar": [ + "packet_unload_chunk": [ "container", [ { - "name": "text", - "type": "string" + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" } ] ], - "packet_world_border_center": [ + "packet_unlock_recipes": [ "container", [ { - "name": "x", - "type": "f64" + "name": "action", + "type": "varint" }, { - "name": "z", - "type": "f64" - } - ] - ], - "packet_world_border_lerp_size": [ - "container", - [ + "name": "craftingBookOpen", + "type": "bool" + }, { - "name": "oldDiameter", - "type": "f64" + "name": "filteringCraftable", + "type": "bool" }, { - "name": "newDiameter", - "type": "f64" + "name": "smeltingBookOpen", + "type": "bool" }, { - "name": "speed", - "type": "varlong" + "name": "filteringSmeltable", + "type": "bool" + }, + { + "name": "blastFurnaceOpen", + "type": "bool" + }, + { + "name": "filteringBlastFurnace", + "type": "bool" + }, + { + "name": "smokerBookOpen", + "type": "bool" + }, + { + "name": "filteringSmoker", + "type": "bool" + }, + { + "name": "recipes1", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "recipes2", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + } + ] } ] ], - "packet_world_border_size": [ + "packet_update_health": [ "container", [ { - "name": "diameter", - "type": "f64" + "name": "health", + "type": "f32" + }, + { + "name": "food", + "type": "varint" + }, + { + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_world_border_warning_delay": [ + "packet_update_light": [ "container", [ { - "name": "warningTime", + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", "type": "varint" + }, + { + "name": "trustEdges", + "type": "bool" + }, + { + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] + }, + { + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], - "packet_world_border_warning_reach": [ + "packet_update_time": [ "container", [ { - "name": "warningBlocks", + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_update_view_distance": [ + "container", + [ + { + "name": "viewDistance", "type": "varint" } ] ], - "packet_ping": [ + "packet_update_view_position": [ "container", [ { - "name": "id", - "type": "i32" + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" } ] ], - "packet_set_title_subtitle": [ + "packet_vehicle_move": [ "container", [ { - "name": "text", - "type": "string" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_set_title_text": [ + "packet_window_items": [ "container", [ { - "name": "text", - "type": "string" + "name": "windowId", + "type": "u8" + }, + { + "name": "stateId", + "type": "varint" + }, + { + "name": "items", + "type": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ] + }, + { + "name": "carriedItem", + "type": "slot" } ] ], - "packet_set_title_time": [ + "packet_world_border_center": [ "container", [ { - "name": "fadeIn", - "type": "i32" + "name": "x", + "type": "f64" }, { - "name": "stay", + "name": "z", + "type": "f64" + } + ] + ], + "packet_world_border_lerp_size": [ + "container", + [ + { + "name": "oldDiameter", + "type": "f64" + }, + { + "name": "newDiameter", + "type": "f64" + }, + { + "name": "speed", + "type": "varlong" + } + ] + ], + "packet_world_border_size": [ + "container", + [ + { + "name": "diameter", + "type": "f64" + } + ] + ], + "packet_world_border_warning_delay": [ + "container", + [ + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_world_border_warning_reach": [ + "container", + [ + { + "name": "warningBlocks", + "type": "varint" + } + ] + ], + "packet_world_event": [ + "container", + [ + { + "name": "effectId", "type": "i32" }, { - "name": "fadeOut", + "name": "location", + "type": "position" + }, + { + "name": "data", "type": "i32" + }, + { + "name": "global", + "type": "bool" } ] ], - "packet": [ + "packet_world_particles": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "sculk_vibration_signal", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "clear_titles", - "0x11": "tab_complete", - "0x12": "declare_commands", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "initialize_world_border", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "update_light", - "0x26": "login", - "0x27": "map", - "0x28": "trade_list", - "0x29": "rel_entity_move", - "0x2a": "entity_move_look", - "0x2b": "entity_look", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "ping", - "0x31": "craft_recipe_response", - "0x32": "abilities", - "0x33": "end_combat_event", - "0x34": "enter_combat_event", - "0x35": "death_combat_event", - "0x36": "player_info", - "0x37": "face_player", - "0x38": "position", - "0x39": "unlock_recipes", - "0x3a": "entity_destroy", - "0x3b": "remove_entity_effect", - "0x3c": "resource_pack_send", - "0x3d": "respawn", - "0x3e": "entity_head_rotation", - "0x3f": "multi_block_change", - "0x40": "select_advancement_tab", - "0x41": "action_bar", - "0x42": "world_border_center", - "0x43": "world_border_lerp_size", - "0x44": "world_border_size", - "0x45": "world_border_warning_delay", - "0x46": "world_border_warning_reach", - "0x47": "camera", - "0x48": "held_item_slot", - "0x49": "update_view_position", - "0x4a": "update_view_distance", - "0x4b": "spawn_position", - "0x4c": "scoreboard_display_objective", - "0x4d": "entity_metadata", - "0x4e": "attach_entity", - "0x4f": "entity_velocity", - "0x50": "entity_equipment", - "0x51": "experience", - "0x52": "update_health", - "0x53": "scoreboard_objective", - "0x54": "set_passengers", - "0x55": "teams", - "0x56": "scoreboard_score", - "0x57": "set_title_subtitle", - "0x58": "update_time", - "0x59": "set_title_text", - "0x5a": "set_title_time", - "0x5b": "entity_sound_effect", - "0x5c": "sound_effect", - "0x5d": "stop_sound", - "0x5e": "playerlist_header", - "0x5f": "nbt_query_response", - "0x60": "collect", - "0x61": "entity_teleport", - "0x62": "advancements", - "0x63": "entity_update_attributes", - "0x64": "entity_effect", - "0x65": "declare_recipes", - "0x66": "tags" - } + "name": "particleId", + "type": "i32" + }, + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" } ] - }, + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "params", + "name": "name", "type": [ - "switch", + "mapper", { - "compareTo": "name", - "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", - "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_info": "packet_player_info", - "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "entity_sound_effect": "packet_entity_sound_effect", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "sculk_vibration_signal": "packet_sculk_vibration_signal", - "clear_titles": "packet_clear_titles", - "initialize_world_border": "packet_initialize_world_border", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "ping": "packet_ping", - "set_title_subtitle": "packet_set_title_subtitle", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time" - } + "mappings": { + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "generate_structure", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "pong", + "0x1e": "recipe_book", + "0x1f": "displayed_recipe", + "0x20": "name_item", + "0x21": "resource_pack_receive", + "0x22": "advancement_tab", + "0x23": "select_trade", + "0x24": "set_beacon_effect", + "0x25": "held_item_slot", + "0x26": "update_command_block", + "0x27": "update_command_block_minecart", + "0x28": "set_creative_slot", + "0x29": "update_jigsaw_block", + "0x2a": "update_structure_block", + "0x2b": "update_sign", + "0x2c": "arm_animation", + "0x2d": "spectate", + "0x2e": "block_place", + "0x2f": "use_item" + }, + "type": "varint" } ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ - "container", - [ - { - "name": "teleportId", - "type": "varint" - } - ] - ], - "packet_query_block_nbt": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" }, { - "name": "location", - "type": "position" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat": "packet_chat", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_payload": "packet_custom_payload", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" + } + } + ] } ] ], - "packet_set_difficulty": [ + "packet_abilities": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "flags", + "type": "i8" } ] ], - "packet_edit_book": [ + "packet_advancement_tab": [ "container", [ { - "name": "hand", + "name": "action", "type": "varint" }, { - "name": "pages", + "name": "tabId", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } } ] - }, - { - "name": "title", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_query_entity_nbt": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_pick_item": [ - "container", - [ - { - "name": "slot", - "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ - { - "name": "name", - "type": "string" } ] ], - "packet_select_trade": [ + "packet_arm_animation": [ "container", [ { - "name": "slot", + "name": "hand", "type": "varint" } ] ], - "packet_set_beacon_effect": [ + "packet_block_dig": [ "container", [ { - "name": "primary_effect", + "name": "status", "type": "varint" }, - { - "name": "secondary_effect", - "type": "varint" - } - ] - ], - "packet_update_command_block": [ - "container", - [ { "name": "location", "type": "position" }, { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", - "type": "u8" + "name": "face", + "type": "i8" } ] ], - "packet_update_command_block_minecart": [ + "packet_block_place": [ "container", [ { - "name": "entityId", + "name": "hand", "type": "varint" }, - { - "name": "command", - "type": "string" - }, - { - "name": "track_output", - "type": "bool" - } - ] - ], - "packet_update_structure_block": [ - "container", - [ { "name": "location", "type": "position" }, { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", + "name": "direction", "type": "varint" }, { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", + "name": "cursorX", "type": "f32" }, { - "name": "seed", - "type": "varlong" + "name": "cursorY", + "type": "f32" }, { - "name": "flags", - "type": "u8" - } - ] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" + "name": "cursorZ", + "type": "f32" }, { - "name": "text", - "type": "string" + "name": "insideBlock", + "type": "bool" } ] ], @@ -4879,191 +4862,115 @@ } ] ], - "packet_settings": [ + "packet_close_window": [ "container", [ { - "name": "locale", - "type": "string" - }, + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_craft_recipe_request": [ + "container", + [ { - "name": "viewDistance", + "name": "windowId", "type": "i8" }, { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" + "name": "recipe", + "type": "string" }, { - "name": "disableTextFiltering", + "name": "makeAll", "type": "bool" } ] ], - "packet_enchant_item": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "channel", + "type": "string" }, { - "name": "enchantment", - "type": "i8" + "name": "data", + "type": "restBuffer" } ] ], - "packet_window_click": [ + "packet_displayed_recipe": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, + "name": "recipeId", + "type": "string" + } + ] + ], + "packet_edit_book": [ + "container", + [ { - "name": "mode", + "name": "hand", "type": "varint" }, { - "name": "changedSlots", + "name": "pages", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ] + "type": "string" } ] }, { - "name": "cursorItem", - "type": "slot" + "name": "title", + "type": [ + "option", + "string" + ] } ] ], - "packet_close_window": [ + "packet_enchant_item": [ "container", [ { "name": "windowId", - "type": "u8" - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" + "type": "i8" }, { - "name": "data", - "type": "restBuffer" + "name": "enchantment", + "type": "i8" } ] ], - "packet_use_entity": [ + "packet_entity_action": [ "container", [ { - "name": "target", + "name": "entityId", "type": "varint" }, { - "name": "mouse", + "name": "actionId", "type": "varint" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { - "name": "sneaking", + "name": "onGround", "type": "bool" } ] @@ -5085,60 +4992,36 @@ } ] ], - "packet_keep_alive": [ + "packet_held_item_slot": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "slotId", + "type": "i16" } ] ], - "packet_lock_difficulty": [ + "packet_keep_alive": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_position": [ + "packet_lock_difficulty": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "onGround", + "name": "locked", "type": "bool" } ] ], - "packet_position_look": [ + "packet_look": [ "container", [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, { "name": "yaw", "type": "f32" @@ -5153,33 +5036,55 @@ } ] ], - "packet_look": [ + "packet_name_item": [ "container", [ { - "name": "yaw", - "type": "f32" - }, + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ { - "name": "pitch", - "type": "f32" - }, + "name": "slot", + "type": "varint" + } + ] + ], + "packet_pong": [ + "container", + [ { - "name": "onGround", - "type": "bool" + "name": "id", + "type": "i32" } ] ], - "packet_flying": [ + "packet_position": [ "container", [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "onGround", "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_position_look": [ "container", [ { @@ -5201,79 +5106,161 @@ { "name": "pitch", "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_steer_boat": [ + "packet_query_block_nbt": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "transactionId", + "type": "varint" }, { - "name": "rightPaddle", - "type": "bool" + "name": "location", + "type": "position" } ] ], - "packet_craft_recipe_request": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "transactionId", + "type": "varint" }, { - "name": "recipe", - "type": "string" + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_recipe_book": [ + "container", + [ + { + "name": "bookId", + "type": "varint" }, { - "name": "makeAll", + "name": "bookOpen", + "type": "bool" + }, + { + "name": "filterActive", "type": "bool" } ] ], - "packet_abilities": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "result", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_select_trade": [ "container", [ { - "name": "status", + "name": "slot", + "type": "varint" + } + ] + ], + "packet_set_beacon_effect": [ + "container", + [ + { + "name": "primary_effect", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "secondary_effect", + "type": "varint" + } + ] + ], + "packet_set_creative_slot": [ + "container", + [ + { + "name": "slot", + "type": "i16" }, { - "name": "face", - "type": "i8" + "name": "item", + "type": "slot" } ] ], - "packet_entity_action": [ + "packet_set_difficulty": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "newDifficulty", + "type": "u8" + } + ] + ], + "packet_settings": [ + "container", + [ + { + "name": "locale", + "type": "string" }, { - "name": "actionId", + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "jumpBoost", + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", "type": "varint" + }, + { + "name": "disableTextFiltering", + "type": "bool" + } + ] + ], + "packet_spectate": [ + "container", + [ + { + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ + { + "name": "leftPaddle", + "type": "bool" + }, + { + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5294,60 +5281,63 @@ } ] ], - "packet_displayed_recipe": [ - "container", - [ - { - "name": "recipeId", - "type": "string" - } - ] - ], - "packet_recipe_book": [ + "packet_tab_complete": [ "container", [ { - "name": "bookId", + "name": "transactionId", "type": "varint" }, { - "name": "bookOpen", - "type": "bool" - }, - { - "name": "filterActive", - "type": "bool" + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "location", + "type": "position" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block_minecart": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5405,53 +5395,141 @@ } ] ], - "packet_arm_animation": [ + "packet_update_structure_block": [ "container", [ { - "name": "hand", - "type": "varint" + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "metadata", + "type": "string" + }, + { + "name": "integrity", + "type": "f32" + }, + { + "name": "seed", + "type": "varlong" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "hand", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "mouse", + "type": "varint" }, { - "name": "direction", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "insideBlock", + "name": "sneaking", "type": "bool" } ] @@ -5465,157 +5543,79 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] - } - ] - ], - "packet_pong": [ - "container", - [ + "name": "y", + "type": "f64" + }, { - "name": "id", - "type": "i32" + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "generate_structure", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "pong", - "0x1e": "recipe_book", - "0x1f": "displayed_recipe", - "0x20": "name_item", - "0x21": "resource_pack_receive", - "0x22": "advancement_tab", - "0x23": "select_trade", - "0x24": "set_beacon_effect", - "0x25": "held_item_slot", - "0x26": "update_command_block", - "0x27": "update_command_block_minecart", - "0x28": "set_creative_slot", - "0x29": "update_jigsaw_block", - "0x2a": "update_structure_block", - "0x2b": "update_sign", - "0x2c": "arm_animation", - "0x2d": "spectate", - "0x2e": "block_place", - "0x2f": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", + "name": "stateId", + "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "displayed_recipe": "packet_displayed_recipe", - "recipe_book": "packet_recipe_book", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab", - "pong": "packet_pong" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "slot" + } + ] + ] } ] + }, + { + "name": "cursorItem", + "type": "slot" } ] ] diff --git a/data/pc/1.17/protocol.json b/data/pc/1.17/protocol.json index 24b10f09d..1e69d216c 100644 --- a/data/pc/1.17/protocol.json +++ b/data/pc/1.17/protocol.json @@ -1,476 +1,75 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "4": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "15": [ - "container", - [ - { - "name": "red", - "type": "f32" - }, - { - "name": "green", - "type": "f32" - }, - { - "name": "blue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - } - ] - ], - "16": [ - "container", + "bitfield", [ { - "name": "fromRed", - "type": "f32" - }, - { - "name": "fromGreen", - "type": "f32" - }, - { - "name": "fromBlue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - }, - { - "name": "toRed", - "type": "f32" - }, - { - "name": "toGreen", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "toBlue", - "type": "f32" - } - ] - ], - "25": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "36": [ - "container", - [ - { - "name": "item", - "type": "slot" - } - ] - ], - "37": [ - "container", - [ - { - "name": "origin", - "type": "position" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "positionType", - "type": "string" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "destination", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:block": "position", - "minecraft:entity": "varint" - } - } - ] + "name": "has_command", + "signed": false, + "size": 1 }, { - "name": "ticks", - "type": "varint" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { "name": "extraNodeData", @@ -508,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -518,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -540,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -553,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -572,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -594,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -607,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -626,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -648,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -661,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -680,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -702,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -715,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -727,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -807,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -823,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -832,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -843,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -857,125 +456,412 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ "container", [ { - "name": "name", + "anon": true, "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": {} + "compareTo": "type" } ] } ] ] } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", { - "name": "payload", - "type": "u8" + "compareTo": "particleId" } ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } - } - ] - }, + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "4": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "15": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "16": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "25": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "36": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ], + "37": [ + "container", + [ + { + "name": "origin", + "type": "position" + }, + { + "name": "positionType", + "type": "string" + }, + { + "name": "destination", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "minecraft:block": "position", + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", { - "name": "params", + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + "countType": "varint", + "type": "varint" } ] } ] ] } - } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, - "status": { + "handshaking": { "toClient": { "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], "packet": [ "container", [ @@ -984,11 +870,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } + "mappings": {}, + "type": "varint" } ] }, @@ -998,10 +881,7 @@ "switch", { "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } + "fields": {} } ] } @@ -1011,19 +891,6 @@ }, "toServer": { "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], "packet": [ "container", [ @@ -1032,11 +899,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" } ] }, @@ -1047,95 +914,153 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { - "packet_disconnect": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "reason", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_encryption_begin": [ + "packet_set_protocol": [ "container", [ { - "name": "serverId", + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", "type": "string" }, { - "name": "publicKey", + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" + } + ] + ] + } + } + }, + "status": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": { + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "server_info": "packet_server_info" + } } ] } ] ], - "packet_success": [ + "packet_ping": [ "container", [ { - "name": "uuid", - "type": "UUID" - }, - { - "name": "username", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_compress": [ + "packet_server_info": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "response", + "type": "string" } ] - ], - "packet_login_plugin_request": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "messageId", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" + } + ] }, { - "name": "channel", - "type": "string" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } + } + ] + } + ] + ], + "packet_ping": [ + "container", + [ { - "name": "data", - "type": "restBuffer" + "name": "time", + "type": "i64" } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1144,14 +1069,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "disconnect", "0x01": "encryption_begin", "0x02": "success", "0x03": "compress", "0x04": "login_plugin_request" - } + }, + "type": "varint" } ] }, @@ -1162,26 +1087,31 @@ { "compareTo": "name", "fields": { + "compress": "packet_compress", "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_compress": [ "container", [ { - "name": "username", + "name": "threshold", + "type": "varint" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", "type": "string" } ] @@ -1190,7 +1120,11 @@ "container", [ { - "name": "sharedSecret", + "name": "serverId", + "type": "string" + }, + { + "name": "publicKey", "type": [ "buffer", { @@ -1209,22 +1143,40 @@ } ] ], - "packet_login_plugin_response": [ + "packet_login_plugin_request": [ "container", [ { "name": "messageId", "type": "varint" }, + { + "name": "channel", + "type": "string" + }, { "name": "data", - "type": [ - "option", - "restBuffer" - ] + "type": "restBuffer" } ] ], + "packet_success": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1233,12 +1185,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "login_start", "0x01": "encryption_begin", "0x02": "login_plugin_response" - } + }, + "type": "varint" } ] }, @@ -1249,235 +1201,346 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "objectUUID", - "type": "UUID" - }, + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ], + "packet_login_plugin_response": [ + "container", + [ { - "name": "type", + "name": "messageId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_login_start": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "username", + "type": "string" } ] - ], - "packet_spawn_entity_living": [ + ] + } + } + }, + "play": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "sculk_vibration_signal", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "clear_titles", + "0x11": "tab_complete", + "0x12": "declare_commands", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "initialize_world_border", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "update_light", + "0x26": "login", + "0x27": "map", + "0x28": "trade_list", + "0x29": "rel_entity_move", + "0x2a": "entity_move_look", + "0x2b": "entity_look", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "ping", + "0x31": "craft_recipe_response", + "0x32": "abilities", + "0x33": "end_combat_event", + "0x34": "enter_combat_event", + "0x35": "death_combat_event", + "0x36": "player_info", + "0x37": "face_player", + "0x38": "position", + "0x39": "unlock_recipes", + "0x3a": "destroy_entity", + "0x3b": "remove_entity_effect", + "0x3c": "resource_pack_send", + "0x3d": "respawn", + "0x3e": "entity_head_rotation", + "0x3f": "multi_block_change", + "0x40": "select_advancement_tab", + "0x41": "action_bar", + "0x42": "world_border_center", + "0x43": "world_border_lerp_size", + "0x44": "world_border_size", + "0x45": "world_border_warning_delay", + "0x46": "world_border_warning_reach", + "0x47": "camera", + "0x48": "held_item_slot", + "0x49": "update_view_position", + "0x4a": "update_view_distance", + "0x4b": "spawn_position", + "0x4c": "scoreboard_display_objective", + "0x4d": "entity_metadata", + "0x4e": "attach_entity", + "0x4f": "entity_velocity", + "0x50": "entity_equipment", + "0x51": "experience", + "0x52": "update_health", + "0x53": "scoreboard_objective", + "0x54": "set_passengers", + "0x55": "teams", + "0x56": "scoreboard_score", + "0x57": "set_title_subtitle", + "0x58": "update_time", + "0x59": "set_title_text", + "0x5a": "set_title_time", + "0x5b": "entity_sound_effect", + "0x5c": "sound_effect", + "0x5d": "stop_sound", + "0x5e": "playerlist_header", + "0x5f": "nbt_query_response", + "0x60": "collect", + "0x61": "entity_teleport", + "0x62": "advancements", + "0x63": "entity_update_attributes", + "0x64": "entity_effect", + "0x65": "declare_recipes", + "0x66": "tags" + }, + "type": "varint" + } + ] }, { - "name": "velocity", - "type": "vec3i16" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "death_combat_event": "packet_death_combat_event", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "destroy_entity": "packet_destroy_entity", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "sculk_vibration_signal": "packet_sculk_vibration_signal", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "trade_list": "packet_trade_list", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_spawn_entity_painting": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" + "name": "flags", + "type": "i8" }, { - "name": "location", - "type": "position" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "direction", - "type": "u8" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_named_entity_spawn": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "location", + "type": "position" }, { - "name": "yaw", - "type": "i8" + "name": "block", + "type": "varint" }, { - "name": "pitch", - "type": "i8" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", + "name": "status", "type": "varint" }, { - "name": "animation", - "type": "u8" + "name": "successful", + "type": "bool" } ] ], - "packet_statistics": [ + "packet_action_bar": [ "container", [ { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "text", + "type": "string" } ] ], @@ -1543,23 +1606,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1570,10 +1633,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1690,154 +1753,462 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "animation", + "type": "u8" + } + ] + ], + "packet_attach_entity": [ + "container", + [ + { + "name": "entityId", + "type": "i32" + }, + { + "name": "vehicleId", + "type": "i32" + } + ] + ], + "packet_block_action": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "byte1", + "type": "u8" + }, + { + "name": "byte2", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], + "packet_block_change": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "type", + "type": "varint" + } + ] + ], + "packet_boss_bar": [ + "container", + [ + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "title", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "3": "string" + } + } + ] + }, + { + "name": "health", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } + } + ] + }, + { + "name": "color", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "dividers", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "flags", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } + } + ] + } + ] + ], + "packet_camera": [ + "container", + [ + { + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "message", + "type": "string" }, { - "name": "location", - "type": "position" + "name": "position", + "type": "i8" }, { - "name": "destroyStage", - "type": "i8" + "name": "sender", + "type": "UUID" } ] ], - "packet_tile_entity_data": [ + "packet_clear_titles": [ "container", [ { - "name": "location", - "type": "position" - }, + "name": "reset", + "type": "bool" + } + ] + ], + "packet_close_window": [ + "container", + [ { - "name": "action", + "name": "windowId", "type": "u8" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", + "type": "varint" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" } ] ], - "packet_block_action": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "location", - "type": "position" + "name": "windowId", + "type": "u8" }, { - "name": "byte1", - "type": "u8" + "name": "property", + "type": "i16" }, { - "name": "byte2", - "type": "u8" + "name": "value", + "type": "i16" + } + ] + ], + "packet_craft_recipe_response": [ + "container", + [ + { + "name": "windowId", + "type": "i8" }, { - "name": "blockId", + "name": "recipe", + "type": "string" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_death_combat_event": [ + "container", + [ + { + "name": "playerId", "type": "varint" + }, + { + "name": "entityId", + "type": "i32" + }, + { + "name": "message", + "type": "string" } ] ], - "packet_block_change": [ + "packet_declare_commands": [ "container", [ { - "name": "location", - "type": "position" + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "type", + "name": "rootIndex", "type": "varint" } ] ], - "packet_boss_bar": [ + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] + } + ] + ] + } + ] + } + ] + ], + "packet_destroy_entity": [ "container", [ { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", + "name": "entityId", "type": "varint" - }, - { - "name": "title", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "3": "string" - }, - "default": "void" - } - ] - }, - { - "name": "health", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "color", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "dividers", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] } ] ], @@ -1854,347 +2225,313 @@ } ] ], - "packet_tab_complete": [ + "packet_end_combat_event": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", + "name": "duration", "type": "varint" }, { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "name": "entityId", + "type": "i32" } ] ], - "packet_declare_commands": [ + "packet_enter_combat_event": [ "container", - [ - { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] - }, - { - "name": "rootIndex", - "type": "varint" - } - ] + [] ], - "packet_face_player": [ + "packet_entity_effect": [ "container", [ { - "name": "feet_eyes", + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" + "name": "effectId", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] + "name": "amplifier", + "type": "i8" }, { - "name": "entity_feet_eyes", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "string" - }, - "default": "void" - } - ] - } - ] - ], - "packet_nbt_query_response": [ - "container", - [ - { - "name": "transactionId", + "name": "duration", "type": "varint" }, { - "name": "nbt", - "type": "optionalNbt" - } - ] - ], - "packet_chat": [ - "container", - [ - { - "name": "message", - "type": "string" - }, - { - "name": "position", + "name": "hideParticles", "type": "i8" - }, - { - "name": "sender", - "type": "UUID" } ] ], - "packet_multi_block_change": [ + "packet_entity_equipment": [ "container", [ { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": false - } - ] - ] - }, - { - "name": "notTrustEdges", - "type": "bool" + "name": "entityId", + "type": "varint" }, { - "name": "records", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "varint", - "type": "varlong" + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] } ] } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", + "name": "entityId", "type": "varint" }, { - "name": "inventoryType", - "type": "varint" + "name": "yaw", + "type": "i8" }, { - "name": "windowTitle", - "type": "string" + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ + }, { - "name": "windowId", + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", "type": "i8" }, { - "name": "slot", - "type": "i16" + "name": "pitch", + "type": "i8" }, { - "name": "item", - "type": "slot" + "name": "onGround", + "type": "bool" } ] ], - "packet_set_cooldown": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "itemID", + "name": "soundId", "type": "varint" }, { - "name": "cooldownTicks", + "name": "soundCategory", + "type": "varint" + }, + { + "name": "entityId", "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_custom_payload": [ + "packet_entity_status": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "data", - "type": "restBuffer" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_named_sound_effect": [ + "packet_entity_teleport": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_velocity": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -2248,284 +2585,140 @@ "type": "f32" }, { - "name": "playerMotionY", - "type": "f32" - }, - { - "name": "playerMotionZ", - "type": "f32" - } - ] - ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ - "container", - [ - { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", - "type": "f32" - } - ] - ], - "packet_open_horse_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" - }, - { - "name": "nbSlots", - "type": "varint" - }, - { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ + "name": "playerMotionY", + "type": "f32" + }, { - "name": "keepAliveId", - "type": "i64" + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_map_chunk": [ + "packet_face_player": [ "container", [ { - "name": "x", - "type": "i32" + "name": "feet_eyes", + "type": "varint" }, { - "name": "z", - "type": "i32" + "name": "x", + "type": "f64" }, { - "name": "bitMap", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "y", + "type": "f64" }, { - "name": "heightmaps", - "type": "nbt" + "name": "z", + "type": "f64" }, { - "name": "biomes", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "isEntity", + "type": "bool" }, { - "name": "chunkData", + "name": "entityId", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } } ] }, { - "name": "blockEntities", + "name": "entity_feet_eyes", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "nbt" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] } ] ], - "packet_world_event": [ + "packet_game_state_change": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "reason", + "type": "u8" }, { - "name": "global", - "type": "bool" + "name": "gameMode", + "type": "f32" } ] ], - "packet_world_particles": [ + "packet_held_item_slot": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_initialize_world_border": [ + "container", + [ { "name": "x", "type": "f64" }, - { - "name": "y", - "type": "f64" - }, { "name": "z", "type": "f64" }, { - "name": "offsetX", - "type": "f32" + "name": "oldDiameter", + "type": "f64" }, { - "name": "offsetY", - "type": "f32" + "name": "newDiameter", + "type": "f64" }, { - "name": "offsetZ", - "type": "f32" + "name": "speed", + "type": "varlong" }, { - "name": "particleData", - "type": "f32" + "name": "portalTeleportBoundary", + "type": "varint" }, { - "name": "particles", - "type": "i32" + "name": "warningBlocks", + "type": "varint" }, { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "warningTime", + "type": "varint" } ] ], - "packet_update_light": [ + "packet_keep_alive": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - }, - { - "name": "trustEdges", - "type": "bool" - }, - { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "reason", + "type": "string" } ] ], @@ -2665,10 +2858,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -2678,10 +2871,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -2691,10 +2884,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -2704,128 +2897,119 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_trade_list": [ + "packet_map_chunk": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "bitMap", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "heightmaps", + "type": "nbt" }, { - "name": "trades", + "name": "biomes", "type": [ "array", { - "countType": "u8", - "type": [ - "container", - [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - "slot" - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ] - ] + "countType": "varint", + "type": "varint" } ] }, { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" - }, - { - "name": "isRegularVillager", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "canRestock", - "type": "bool" + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] } ] ], - "packet_rel_entity_move": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": false, + "size": 20 + } + ] + ] }, { - "name": "dZ", - "type": "i16" + "name": "notTrustEdges", + "type": "bool" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": "varlong" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -2833,16 +3017,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dY", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -2851,51 +3039,34 @@ { "name": "pitch", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "pitch", - "type": "i8" + "name": "soundCategory", + "type": "varint" }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2904,85 +3075,77 @@ } ] ], - "packet_open_book": [ + "packet_nbt_query_response": [ "container", [ { - "name": "hand", + "name": "transactionId", "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_open_sign_entity": [ + "packet_open_book": [ "container", [ { - "name": "location", - "type": "position" + "name": "hand", + "type": "varint" } ] ], - "packet_craft_recipe_response": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "recipe", - "type": "string" + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_end_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "duration", + "name": "windowId", "type": "varint" }, { - "name": "entityId", - "type": "i32" + "name": "inventoryType", + "type": "varint" + }, + { + "name": "windowTitle", + "type": "string" } ] ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ + "packet_ping": [ "container", [ { - "name": "playerId", - "type": "varint" - }, - { - "name": "entityId", + "name": "id", "type": "i32" - }, - { - "name": "message", - "type": "string" } ] ], @@ -2994,14 +3157,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -3078,6 +3241,19 @@ } ] ], + "remove_player": "void", + "update_display_name": [ + "container", + [ + { + "name": "displayName", + "type": [ + "option", + "string" + ] + } + ] + ], "update_game_mode": [ "container", [ @@ -3095,20 +3271,7 @@ "type": "varint" } ] - ], - "update_display_name": [ - "container", - [ - { - "name": "displayName", - "type": [ - "option", - "string" - ] - } - ] - ], - "remove_player": "void" + ] } } ] @@ -3120,6 +3283,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -3157,82 +3333,28 @@ } ] ], - "packet_unlock_recipes": [ + "packet_rel_entity_move": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "filteringCraftable", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "filteringSmeltable", - "type": "bool" - }, - { - "name": "blastFurnaceOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringBlastFurnace", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smokerBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmoker", + "name": "onGround", "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_destroy_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" } ] ], @@ -3300,182 +3422,26 @@ "name": "isDebug", "type": "bool" }, - { - "name": "isFlat", - "type": "bool" - }, - { - "name": "copyMetadata", - "type": "bool" - } - ] - ], - "packet_entity_head_rotation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "headYaw", - "type": "i8" - } - ] - ], - "packet_camera": [ - "container", - [ - { - "name": "cameraId", - "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ - { - "name": "slot", - "type": "i8" - } - ] - ], - "packet_update_view_position": [ - "container", - [ - { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - } - ] - ], - "packet_update_view_distance": [ - "container", - [ - { - "name": "viewDistance", - "type": "varint" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ - { - "name": "position", - "type": "i8" - }, - { - "name": "name", - "type": "string" - } - ] - ], - "packet_entity_metadata": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ - { - "name": "entityId", - "type": "i32" - }, - { - "name": "vehicleId", - "type": "i32" - } - ] - ], - "packet_entity_velocity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_entity_equipment": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "equipments", - "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - } - ] - ], - "packet_experience": [ - "container", - [ - { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" + { + "name": "isFlat", + "type": "bool" }, { - "name": "totalExperience", - "type": "varint" + "name": "copyMetadata", + "type": "bool" } ] ], - "packet_update_health": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "foodSaturation", - "type": "f32" + "name": "name", + "type": "string" } ] ], @@ -3496,11 +3462,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3510,294 +3476,170 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" - } - ] - } - ] - ], - "packet_set_passengers": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" + } } ] } ] ], - "packet_teams": [ + "packet_scoreboard_score": [ "container", [ { - "name": "team", + "name": "itemName", "type": "string" }, { - "name": "mode", - "type": "i8" - }, - { - "name": "name", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "friendlyFire", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "nameTagVisibility", + "name": "value", "type": [ "switch", { - "compareTo": "mode", + "compareTo": "action", + "default": "varint", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "void" + } } ] - }, + } + ] + ], + "packet_sculk_vibration_signal": [ + "container", + [ { - "name": "collisionRule", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "sourcePosition", + "type": "position" }, { - "name": "formatting", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "destinationIdentifier", + "type": "string" }, { - "name": "prefix", + "name": "destination", "type": [ "switch", { - "compareTo": "mode", + "compareTo": "destinationIdentifier", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "block": "position", + "entityId": "varint" + } } ] }, { - "name": "suffix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - }, + "name": "arrivalTicks", + "type": "varint" + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ { - "name": "players", + "name": "id", "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } + "option", + "string" ] } ] ], - "packet_scoreboard_score": [ + "packet_set_cooldown": [ "container", [ { - "name": "itemName", - "type": "string" + "name": "itemID", + "type": "varint" }, { - "name": "action", + "name": "cooldownTicks", "type": "varint" - }, + } + ] + ], + "packet_set_passengers": [ + "container", + [ { - "name": "scoreName", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "value", + "name": "passengers", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_spawn_position": [ + "packet_set_slot": [ "container", [ { - "name": "location", - "type": "position" + "name": "windowId", + "type": "i8" }, { - "name": "angle", - "type": "f32" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_update_time": [ + "packet_set_title_subtitle": [ "container", [ { - "name": "age", - "type": "i64" - }, - { - "name": "time", - "type": "i64" + "name": "text", + "type": "string" } ] ], - "packet_entity_sound_effect": [ + "packet_set_title_text": [ "container", [ { - "name": "soundId", - "type": "varint" - }, - { - "name": "soundCategory", - "type": "varint" - }, - { - "name": "entityId", - "type": "varint" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "text", + "type": "string" } ] ], - "packet_stop_sound": [ + "packet_set_title_time": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "fadeIn", + "type": "i32" }, { - "name": "source", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" - } - ] + "name": "stay", + "type": "i32" }, { - "name": "sound", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "2": "string", - "3": "string" - }, - "default": "void" - } - ] + "name": "fadeOut", + "type": "i32" } ] ], @@ -3834,43 +3676,91 @@ } ] ], - "packet_playerlist_header": [ + "packet_spawn_entity": [ "container", [ { - "name": "header", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "footer", - "type": "string" + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_collect": [ + "packet_spawn_entity_experience_orb": [ "container", [ { - "name": "collectedEntityId", + "name": "entityId", "type": "varint" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "pickupItemCount", - "type": "varint" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_teleport": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, { "name": "x", "type": "f64" @@ -3892,12 +3782,16 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "headPitch", + "type": "i8" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_update_attributes": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -3905,7 +3799,41 @@ "type": "varint" }, { - "name": "properties", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "angle", + "type": "f32" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", "type": [ "array", { @@ -3914,38 +3842,122 @@ "container", [ { - "name": "name", + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_stop_sound": [ + "container", + [ + { + "name": "flags", + "type": "i8" + }, + { + "name": "source", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "1": "varint", + "3": "varint" + } + } + ] + }, + { + "name": "sound", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "2": "string", + "3": "string" + } + } + ] + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", "type": "string" }, { - "name": "value", - "type": "f64" + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + } + ] + ], + "packet_tags": [ + "container", + [ + { + "name": "tags", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" }, { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] + "name": "tags", + "type": "tags" } ] ] @@ -3954,221 +3966,151 @@ } ] ], - "packet_entity_effect": [ + "packet_teams": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "team", + "type": "string" }, { - "name": "effectId", + "name": "mode", "type": "i8" }, { - "name": "amplifier", - "type": "i8" + "name": "name", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] }, { - "name": "duration", - "type": "varint" + "name": "friendlyFire", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "i8", + "2": "i8" + } + } + ] }, { - "name": "hideParticles", - "type": "i8" - } - ] - ], - "packet_select_advancement_tab": [ - "container", - [ + "name": "nameTagVisibility", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, { - "name": "id", + "name": "collisionRule", "type": [ - "option", - "string" + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + }, { - "name": "recipes", + "name": "formatting", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing": [ - "container", - [ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] - } - ] - ] + "compareTo": "mode", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + }, + { + "name": "prefix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } } ] - } - ] - ], - "packet_tags": [ - "container", - [ + }, { - "name": "tags", + "name": "suffix", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "players", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": [ + "array", { - "name": "tagType", + "countType": "varint", "type": "string" - }, + } + ], + "3": [ + "array", { - "name": "tags", - "type": "tags" + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" } ] - ] + } } ] } ] ], - "packet_acknowledge_player_digging": [ + "packet_tile_entity_data": [ "container", [ { @@ -4176,661 +4118,711 @@ "type": "position" }, { - "name": "block", - "type": "varint" - }, - { - "name": "status", - "type": "varint" + "name": "action", + "type": "u8" }, { - "name": "successful", - "type": "bool" + "name": "nbtData", + "type": "optionalNbt" } ] ], - "packet_sculk_vibration_signal": [ + "packet_trade_list": [ "container", [ { - "name": "sourcePosition", - "type": "position" - }, - { - "name": "destinationIdentifier", - "type": "string" + "name": "windowId", + "type": "varint" }, { - "name": "destination", + "name": "trades", "type": [ - "switch", + "array", { - "compareTo": "destinationIdentifier", - "fields": { - "block": "position", - "entityId": "varint" - }, - "default": "void" + "countType": "u8", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] } ] }, { - "name": "arrivalTicks", + "name": "villagerLevel", + "type": "varint" + }, + { + "name": "experience", "type": "varint" + }, + { + "name": "isRegularVillager", + "type": "bool" + }, + { + "name": "canRestock", + "type": "bool" } ] ], - "packet_clear_titles": [ + "packet_unload_chunk": [ "container", [ { - "name": "reset", - "type": "bool" + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" } ] ], - "packet_initialize_world_border": [ + "packet_unlock_recipes": [ "container", [ { - "name": "x", - "type": "f64" + "name": "action", + "type": "varint" }, { - "name": "z", - "type": "f64" + "name": "craftingBookOpen", + "type": "bool" }, { - "name": "oldDiameter", - "type": "f64" + "name": "filteringCraftable", + "type": "bool" }, { - "name": "newDiameter", - "type": "f64" + "name": "smeltingBookOpen", + "type": "bool" }, { - "name": "speed", - "type": "varlong" + "name": "filteringSmeltable", + "type": "bool" }, { - "name": "portalTeleportBoundary", - "type": "varint" + "name": "blastFurnaceOpen", + "type": "bool" }, { - "name": "warningBlocks", - "type": "varint" + "name": "filteringBlastFurnace", + "type": "bool" }, { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_action_bar": [ - "container", - [ - { - "name": "text", - "type": "string" - } - ] - ], - "packet_world_border_center": [ - "container", - [ - { - "name": "x", - "type": "f64" + "name": "smokerBookOpen", + "type": "bool" }, { - "name": "z", - "type": "f64" - } - ] - ], - "packet_world_border_lerp_size": [ - "container", - [ - { - "name": "oldDiameter", - "type": "f64" + "name": "filteringSmoker", + "type": "bool" }, { - "name": "newDiameter", - "type": "f64" + "name": "recipes1", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] }, { - "name": "speed", - "type": "varlong" + "name": "recipes2", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + } + ] } ] ], - "packet_world_border_size": [ + "packet_update_health": [ "container", [ { - "name": "diameter", - "type": "f64" - } - ] - ], - "packet_world_border_warning_delay": [ - "container", - [ + "name": "health", + "type": "f32" + }, { - "name": "warningTime", + "name": "food", "type": "varint" + }, + { + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_world_border_warning_reach": [ + "packet_update_light": [ "container", [ { - "name": "warningBlocks", + "name": "chunkX", "type": "varint" - } - ] - ], - "packet_ping": [ - "container", - [ + }, { - "name": "id", - "type": "i32" - } - ] - ], - "packet_set_title_subtitle": [ - "container", - [ + "name": "chunkZ", + "type": "varint" + }, { - "name": "text", - "type": "string" - } - ] - ], - "packet_set_title_text": [ - "container", - [ + "name": "trustEdges", + "type": "bool" + }, { - "name": "text", - "type": "string" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] + }, + { + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], - "packet_set_title_time": [ + "packet_update_time": [ "container", [ { - "name": "fadeIn", - "type": "i32" - }, - { - "name": "stay", - "type": "i32" + "name": "age", + "type": "i64" }, { - "name": "fadeOut", - "type": "i32" + "name": "time", + "type": "i64" } ] ], - "packet": [ + "packet_update_view_distance": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "sculk_vibration_signal", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "clear_titles", - "0x11": "tab_complete", - "0x12": "declare_commands", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "initialize_world_border", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "update_light", - "0x26": "login", - "0x27": "map", - "0x28": "trade_list", - "0x29": "rel_entity_move", - "0x2a": "entity_move_look", - "0x2b": "entity_look", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "ping", - "0x31": "craft_recipe_response", - "0x32": "abilities", - "0x33": "end_combat_event", - "0x34": "enter_combat_event", - "0x35": "death_combat_event", - "0x36": "player_info", - "0x37": "face_player", - "0x38": "position", - "0x39": "unlock_recipes", - "0x3a": "destroy_entity", - "0x3b": "remove_entity_effect", - "0x3c": "resource_pack_send", - "0x3d": "respawn", - "0x3e": "entity_head_rotation", - "0x3f": "multi_block_change", - "0x40": "select_advancement_tab", - "0x41": "action_bar", - "0x42": "world_border_center", - "0x43": "world_border_lerp_size", - "0x44": "world_border_size", - "0x45": "world_border_warning_delay", - "0x46": "world_border_warning_reach", - "0x47": "camera", - "0x48": "held_item_slot", - "0x49": "update_view_position", - "0x4a": "update_view_distance", - "0x4b": "spawn_position", - "0x4c": "scoreboard_display_objective", - "0x4d": "entity_metadata", - "0x4e": "attach_entity", - "0x4f": "entity_velocity", - "0x50": "entity_equipment", - "0x51": "experience", - "0x52": "update_health", - "0x53": "scoreboard_objective", - "0x54": "set_passengers", - "0x55": "teams", - "0x56": "scoreboard_score", - "0x57": "set_title_subtitle", - "0x58": "update_time", - "0x59": "set_title_text", - "0x5a": "set_title_time", - "0x5b": "entity_sound_effect", - "0x5c": "sound_effect", - "0x5d": "stop_sound", - "0x5e": "playerlist_header", - "0x5f": "nbt_query_response", - "0x60": "collect", - "0x61": "entity_teleport", - "0x62": "advancements", - "0x63": "entity_update_attributes", - "0x64": "entity_effect", - "0x65": "declare_recipes", - "0x66": "tags" - } - } - ] + "name": "viewDistance", + "type": "varint" + } + ] + ], + "packet_update_view_position": [ + "container", + [ + { + "name": "chunkX", + "type": "varint" }, { - "name": "params", + "name": "chunkZ", + "type": "varint" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "items", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", - "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_info": "packet_player_info", - "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "destroy_entity": "packet_destroy_entity", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "entity_sound_effect": "packet_entity_sound_effect", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "sculk_vibration_signal": "packet_sculk_vibration_signal", - "clear_titles": "packet_clear_titles", - "initialize_world_border": "packet_initialize_world_border", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "ping": "packet_ping", - "set_title_subtitle": "packet_set_title_subtitle", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time" - } + "countType": "i16", + "type": "slot" } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_world_border_center": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_query_block_nbt": [ + "packet_world_border_lerp_size": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "oldDiameter", + "type": "f64" }, { - "name": "location", - "type": "position" + "name": "newDiameter", + "type": "f64" + }, + { + "name": "speed", + "type": "varlong" } ] ], - "packet_set_difficulty": [ + "packet_world_border_size": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "diameter", + "type": "f64" } ] ], - "packet_edit_book": [ + "packet_world_border_warning_delay": [ "container", [ { - "name": "new_book", - "type": "slot" + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_world_border_warning_reach": [ + "container", + [ + { + "name": "warningBlocks", + "type": "varint" + } + ] + ], + "packet_world_event": [ + "container", + [ + { + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" + } + ] + ], + "packet_world_particles": [ + "container", + [ + { + "name": "particleId", + "type": "i32" + }, + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" }, { - "name": "signing", - "type": "bool" + "name": "offsetY", + "type": "f32" }, { - "name": "hand", - "type": "varint" - } - ] - ], - "packet_query_entity_nbt": [ - "container", - [ + "name": "offsetZ", + "type": "f32" + }, { - "name": "transactionId", - "type": "varint" + "name": "particleData", + "type": "f32" }, { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_pick_item": [ - "container", - [ + "name": "particles", + "type": "i32" + }, { - "name": "slot", - "type": "varint" + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] } ] - ], - "packet_name_item": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { "name": "name", - "type": "string" + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "generate_structure", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "pong", + "0x1e": "recipe_book", + "0x1f": "displayed_recipe", + "0x20": "name_item", + "0x21": "resource_pack_receive", + "0x22": "advancement_tab", + "0x23": "select_trade", + "0x24": "set_beacon_effect", + "0x25": "held_item_slot", + "0x26": "update_command_block", + "0x27": "update_command_block_minecart", + "0x28": "set_creative_slot", + "0x29": "update_jigsaw_block", + "0x2a": "update_structure_block", + "0x2b": "update_sign", + "0x2c": "arm_animation", + "0x2d": "spectate", + "0x2e": "block_place", + "0x2f": "use_item" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat": "packet_chat", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_payload": "packet_custom_payload", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" + } + } + ] } ] ], - "packet_select_trade": [ + "packet_abilities": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "flags", + "type": "i8" } ] ], - "packet_set_beacon_effect": [ + "packet_advancement_tab": [ "container", [ { - "name": "primary_effect", + "name": "action", "type": "varint" }, { - "name": "secondary_effect", - "type": "varint" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_update_command_block": [ + "packet_arm_animation": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", + "name": "hand", "type": "varint" - }, - { - "name": "flags", - "type": "u8" } ] ], - "packet_update_command_block_minecart": [ + "packet_block_dig": [ "container", [ { - "name": "entityId", + "name": "status", "type": "varint" }, { - "name": "command", - "type": "string" + "name": "location", + "type": "position" }, { - "name": "track_output", - "type": "bool" + "name": "face", + "type": "i8" } ] ], - "packet_update_structure_block": [ + "packet_block_place": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", + "name": "hand", "type": "varint" }, { - "name": "rotation", - "type": "varint" + "name": "location", + "type": "position" }, { - "name": "metadata", - "type": "string" + "name": "direction", + "type": "varint" }, { - "name": "integrity", + "name": "cursorX", "type": "f32" }, { - "name": "seed", - "type": "varlong" + "name": "cursorY", + "type": "f32" }, { - "name": "flags", - "type": "u8" - } - ] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" + "name": "cursorZ", + "type": "f32" }, { - "name": "text", - "type": "string" + "name": "insideBlock", + "type": "bool" } ] ], @@ -4852,187 +4844,106 @@ } ] ], - "packet_settings": [ + "packet_close_window": [ "container", [ { - "name": "locale", - "type": "string" - }, + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_craft_recipe_request": [ + "container", + [ { - "name": "viewDistance", + "name": "windowId", "type": "i8" }, { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" + "name": "recipe", + "type": "string" }, { - "name": "disableTextFiltering", + "name": "makeAll", "type": "bool" } ] ], - "packet_enchant_item": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "channel", + "type": "string" }, { - "name": "enchantment", - "type": "i8" + "name": "data", + "type": "restBuffer" } ] ], - "packet_window_click": [ + "packet_displayed_recipe": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "mode", - "type": "i8" - }, - { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - }, - { - "name": "cursorItem", - "type": "slot" + "name": "recipeId", + "type": "string" } ] ], - "packet_close_window": [ + "packet_edit_book": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "new_book", + "type": "slot" + }, + { + "name": "signing", + "type": "bool" + }, + { + "name": "hand", + "type": "varint" } ] ], - "packet_custom_payload": [ + "packet_enchant_item": [ "container", [ { - "name": "channel", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "data", - "type": "restBuffer" + "name": "enchantment", + "type": "i8" } ] ], - "packet_use_entity": [ + "packet_entity_action": [ "container", [ { - "name": "target", + "name": "entityId", "type": "varint" }, { - "name": "mouse", + "name": "actionId", "type": "varint" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { - "name": "sneaking", + "name": "onGround", "type": "bool" } ] @@ -5054,6 +4965,15 @@ } ] ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slotId", + "type": "i16" + } + ] + ], "packet_keep_alive": [ "container", [ @@ -5072,6 +4992,50 @@ } ] ], + "packet_look": [ + "container", + [ + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_name_item": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] + ], + "packet_pong": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], "packet_position": [ "container", [ @@ -5122,127 +5086,154 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "location", + "type": "position" } ] ], - "packet_flying": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "transactionId", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_recipe_book": [ "container", [ { - "name": "x", - "type": "f64" + "name": "bookId", + "type": "varint" }, { - "name": "y", - "type": "f64" + "name": "bookOpen", + "type": "bool" }, { - "name": "z", - "type": "f64" - }, + "name": "filterActive", + "type": "bool" + } + ] + ], + "packet_resource_pack_receive": [ + "container", + [ { - "name": "yaw", - "type": "f32" - }, + "name": "result", + "type": "varint" + } + ] + ], + "packet_select_trade": [ + "container", + [ { - "name": "pitch", - "type": "f32" + "name": "slot", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "primary_effect", + "type": "varint" }, { - "name": "rightPaddle", - "type": "bool" + "name": "secondary_effect", + "type": "varint" } ] ], - "packet_craft_recipe_request": [ + "packet_set_creative_slot": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" + "name": "slot", + "type": "i16" }, { - "name": "makeAll", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_abilities": [ + "packet_set_difficulty": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_block_dig": [ + "packet_settings": [ "container", [ { - "name": "status", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "chatColors", + "type": "bool" }, { - "name": "face", - "type": "i8" + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" + }, + { + "name": "disableTextFiltering", + "type": "bool" } ] ], - "packet_entity_action": [ + "packet_spectate": [ "container", [ { - "name": "entityId", - "type": "varint" - }, + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5263,60 +5254,63 @@ } ] ], - "packet_displayed_recipe": [ - "container", - [ - { - "name": "recipeId", - "type": "string" - } - ] - ], - "packet_recipe_book": [ + "packet_tab_complete": [ "container", [ { - "name": "bookId", + "name": "transactionId", "type": "varint" }, { - "name": "bookOpen", - "type": "bool" - }, - { - "name": "filterActive", - "type": "bool" + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "location", + "type": "position" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block_minecart": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5374,53 +5368,141 @@ } ] ], - "packet_arm_animation": [ + "packet_update_structure_block": [ "container", [ { - "name": "hand", - "type": "varint" - } - ] - ], - "packet_spectate": [ - "container", - [ + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "metadata", + "type": "string" + }, + { + "name": "integrity", + "type": "f32" + }, + { + "name": "seed", + "type": "varlong" + }, { - "name": "target", - "type": "UUID" + "name": "flags", + "type": "u8" } ] ], - "packet_block_place": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "mouse", + "type": "varint" }, { - "name": "direction", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "insideBlock", + "name": "sneaking", "type": "bool" } ] @@ -5434,157 +5516,75 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] - } - ] - ], - "packet_pong": [ - "container", - [ + "name": "y", + "type": "f64" + }, { - "name": "id", - "type": "i32" + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "generate_structure", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "pong", - "0x1e": "recipe_book", - "0x1f": "displayed_recipe", - "0x20": "name_item", - "0x21": "resource_pack_receive", - "0x22": "advancement_tab", - "0x23": "select_trade", - "0x24": "set_beacon_effect", - "0x25": "held_item_slot", - "0x26": "update_command_block", - "0x27": "update_command_block_minecart", - "0x28": "set_creative_slot", - "0x29": "update_jigsaw_block", - "0x2a": "update_structure_block", - "0x2b": "update_sign", - "0x2c": "arm_animation", - "0x2d": "spectate", - "0x2e": "block_place", - "0x2f": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "changedSlots", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "displayed_recipe": "packet_displayed_recipe", - "recipe_book": "packet_recipe_book", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab", - "pong": "packet_pong" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "slot" + } + ] + ] } ] + }, + { + "name": "cursorItem", + "type": "slot" } ] ] diff --git a/data/pc/1.18.2/protocol.json b/data/pc/1.18.2/protocol.json index 80e52f078..ae1bb6438 100644 --- a/data/pc/1.18.2/protocol.json +++ b/data/pc/1.18.2/protocol.json @@ -1,509 +1,97 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "chunkBlockEntity": [ "container", [ { - "name": "x", - "type": "i16" + "anon": true, + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 + } + ] + ] }, { "name": "y", "type": "i16" }, { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" + "name": "type", + "type": "varint" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] + "name": "nbtData", + "type": "optionalNbt" } ] ], - "particle": [ + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "2": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", - [ - { - "name": "red", - "type": "f32" - }, - { - "name": "green", - "type": "f32" - }, - { - "name": "blue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - } - ] - ], - "15": [ - "container", + "bitfield", [ { - "name": "fromRed", - "type": "f32" - }, - { - "name": "fromGreen", - "type": "f32" - }, - { - "name": "fromBlue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - }, - { - "name": "toRed", - "type": "f32" - }, - { - "name": "toGreen", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "toBlue", - "type": "f32" - } - ] - ], - "24": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "35": [ - "container", - [ - { - "name": "item", - "type": "slot" - } - ] - ], - "36": [ - "container", - [ - { - "name": "origin", - "type": "position" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "positionType", - "type": "string" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "destination", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:block": "position", - "minecraft:entity": "varint" - } - } - ] + "name": "has_command", + "signed": false, + "size": 1 }, { - "name": "ticks", - "type": "varint" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "chunkBlockEntity": [ - "container", - [ - { - "anon": true, - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { "name": "redirectNode", @@ -511,10 +99,10 @@ "switch", { "compareTo": "flags/has_redirect_node", + "default": "void", "fields": { "1": "varint" - }, - "default": "void" + } } ] }, @@ -554,7 +142,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -564,18 +152,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -586,10 +174,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -599,16 +187,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -618,18 +206,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -640,10 +228,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -653,10 +241,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -672,18 +260,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -694,10 +282,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -707,10 +295,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -726,18 +314,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -748,10 +336,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -761,10 +349,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -773,77 +361,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -853,14 +425,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -869,7 +434,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -878,7 +444,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -889,10 +477,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -903,285 +491,622 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": {} - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } - } - ] - } - ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ "container", [ { - "name": "name", + "anon": true, "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" } - } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } + "compareTo": "type" } ] } ] ] } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } - } - ] + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "2": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "15": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "24": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "35": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ], + "36": [ + "container", + [ + { + "name": "origin", + "type": "position" + }, + { + "name": "positionType", + "type": "string" + }, + { + "name": "destination", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "minecraft:block": "position", + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": {}, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": {} + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", + [ + { + "name": "payload", + "type": "u8" + } + ] + ], + "packet_set_protocol": [ + "container", + [ + { + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" - } - } - ] + "name": "nextState", + "type": "varint" } ] ] } } }, - "login": { + "status": { "toClient": { "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_encryption_begin": [ + "packet": [ "container", [ { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": { + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "server_info": "packet_server_info" + } } ] } ] ], - "packet_success": [ + "packet_ping": [ "container", [ { - "name": "uuid", - "type": "UUID" - }, - { - "name": "username", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_compress": [ + "packet_server_info": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "response", + "type": "string" } ] - ], - "packet_login_plugin_request": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "messageId", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" + } + ] }, { - "name": "channel", - "type": "string" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } + } + ] + } + ] + ], + "packet_ping": [ + "container", + [ { - "name": "data", - "type": "restBuffer" + "name": "time", + "type": "i64" } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1190,14 +1115,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "disconnect", "0x01": "encryption_begin", "0x02": "success", "0x03": "compress", "0x04": "login_plugin_request" - } + }, + "type": "varint" } ] }, @@ -1208,26 +1133,31 @@ { "compareTo": "name", "fields": { + "compress": "packet_compress", "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_compress": [ "container", [ { - "name": "username", + "name": "threshold", + "type": "varint" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", "type": "string" } ] @@ -1236,7 +1166,11 @@ "container", [ { - "name": "sharedSecret", + "name": "serverId", + "type": "string" + }, + { + "name": "publicKey", "type": [ "buffer", { @@ -1255,22 +1189,40 @@ } ] ], - "packet_login_plugin_response": [ + "packet_login_plugin_request": [ "container", [ { "name": "messageId", "type": "varint" }, + { + "name": "channel", + "type": "string" + }, { "name": "data", - "type": [ - "option", - "restBuffer" - ] + "type": "restBuffer" } ] ], + "packet_success": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1279,12 +1231,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "login_start", "0x01": "encryption_begin", "0x02": "login_plugin_response" - } + }, + "type": "varint" } ] }, @@ -1295,235 +1247,348 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "velocity", - "type": "vec3i16" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_login_plugin_response": [ "container", [ { - "name": "entityId", + "name": "messageId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_spawn_entity_living": [ + "packet_login_start": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "packet": [ + "container", + [ { - "name": "headPitch", - "type": "i8" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "sculk_vibration_signal", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "clear_titles", + "0x11": "tab_complete", + "0x12": "declare_commands", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "initialize_world_border", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "update_light", + "0x26": "login", + "0x27": "map", + "0x28": "trade_list", + "0x29": "rel_entity_move", + "0x2a": "entity_move_look", + "0x2b": "entity_look", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "ping", + "0x31": "craft_recipe_response", + "0x32": "abilities", + "0x33": "end_combat_event", + "0x34": "enter_combat_event", + "0x35": "death_combat_event", + "0x36": "player_info", + "0x37": "face_player", + "0x38": "position", + "0x39": "unlock_recipes", + "0x3a": "entity_destroy", + "0x3b": "remove_entity_effect", + "0x3c": "resource_pack_send", + "0x3d": "respawn", + "0x3e": "entity_head_rotation", + "0x3f": "multi_block_change", + "0x40": "select_advancement_tab", + "0x41": "action_bar", + "0x42": "world_border_center", + "0x43": "world_border_lerp_size", + "0x44": "world_border_size", + "0x45": "world_border_warning_delay", + "0x46": "world_border_warning_reach", + "0x47": "camera", + "0x48": "held_item_slot", + "0x49": "update_view_position", + "0x4a": "update_view_distance", + "0x4b": "spawn_position", + "0x4c": "scoreboard_display_objective", + "0x4d": "entity_metadata", + "0x4e": "attach_entity", + "0x4f": "entity_velocity", + "0x50": "entity_equipment", + "0x51": "experience", + "0x52": "update_health", + "0x53": "scoreboard_objective", + "0x54": "set_passengers", + "0x55": "teams", + "0x56": "scoreboard_score", + "0x57": "simulation_distance", + "0x58": "set_title_subtitle", + "0x59": "update_time", + "0x5a": "set_title_text", + "0x5b": "set_title_time", + "0x5c": "entity_sound_effect", + "0x5d": "sound_effect", + "0x5e": "stop_sound", + "0x5f": "playerlist_header", + "0x60": "nbt_query_response", + "0x61": "collect", + "0x62": "entity_teleport", + "0x63": "advancements", + "0x64": "entity_update_attributes", + "0x65": "entity_effect", + "0x66": "declare_recipes", + "0x67": "tags" + }, + "type": "varint" + } + ] }, { - "name": "velocity", - "type": "vec3i16" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "death_combat_event": "packet_death_combat_event", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "sculk_vibration_signal": "packet_sculk_vibration_signal", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "trade_list": "packet_trade_list", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_spawn_entity_painting": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" + "name": "flags", + "type": "i8" }, { - "name": "location", - "type": "position" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "direction", - "type": "u8" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_named_entity_spawn": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "location", + "type": "position" }, { - "name": "yaw", - "type": "i8" + "name": "block", + "type": "varint" }, { - "name": "pitch", - "type": "i8" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", + "name": "status", "type": "varint" }, { - "name": "animation", - "type": "u8" + "name": "successful", + "type": "bool" } ] ], - "packet_statistics": [ + "packet_action_bar": [ "container", [ { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "text", + "type": "string" } ] ], @@ -1589,23 +1654,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1616,10 +1681,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1736,7 +1801,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1744,29 +1809,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -1791,6 +1848,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1821,11 +1895,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1835,11 +1909,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1849,11 +1923,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1863,60 +1937,175 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } + } + ] + }, + { + "name": "flags", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } } ] + } + ] + ], + "packet_camera": [ + "container", + [ + { + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat": [ + "container", + [ + { + "name": "message", + "type": "string" + }, + { + "name": "position", + "type": "i8" + }, + { + "name": "sender", + "type": "UUID" + } + ] + ], + "packet_clear_titles": [ + "container", + [ + { + "name": "reset", + "type": "bool" + } + ] + ], + "packet_close_window": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", + "type": "varint" + }, + { + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_craft_recipe_response": [ + "container", + [ + { + "name": "windowId", + "type": "i8" }, { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] + "name": "recipe", + "type": "string" } ] ], - "packet_difficulty": [ + "packet_custom_payload": [ "container", [ { - "name": "difficulty", - "type": "u8" + "name": "channel", + "type": "string" }, { - "name": "difficultyLocked", - "type": "bool" + "name": "data", + "type": "restBuffer" } ] ], - "packet_tab_complete": [ + "packet_death_combat_event": [ "container", [ { - "name": "transactionId", + "name": "playerId", "type": "varint" }, { - "name": "start", - "type": "varint" + "name": "entityId", + "type": "i32" }, { - "name": "length", - "type": "varint" + "name": "message", + "type": "string" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "matches", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { @@ -1925,14 +2114,134 @@ "container", [ { - "name": "match", + "name": "type", "type": "string" }, { - "name": "tooltip", + "name": "recipeId", + "type": "string" + }, + { + "name": "data", "type": [ - "option", - "string" + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } ] } ] @@ -1942,317 +2251,341 @@ } ] ], - "packet_declare_commands": [ + "packet_difficulty": [ "container", [ { - "name": "nodes", + "name": "difficulty", + "type": "u8" + }, + { + "name": "difficultyLocked", + "type": "bool" + } + ] + ], + "packet_end_combat_event": [ + "container", + [ + { + "name": "duration", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" + } + ] + ], + "packet_enter_combat_event": [ + "container", + [] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "command_node" + "type": "varint" } ] - }, - { - "name": "rootIndex", - "type": "varint" } ] ], - "packet_face_player": [ + "packet_entity_effect": [ "container", [ { - "name": "feet_eyes", + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "effectId", + "type": "varint" }, { - "name": "z", - "type": "f64" + "name": "amplifier", + "type": "i8" }, { - "name": "isEntity", - "type": "bool" + "name": "duration", + "type": "varint" }, + { + "name": "hideParticles", + "type": "i8" + } + ] + ], + "packet_entity_equipment": [ + "container", + [ { "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] + "type": "varint" }, { - "name": "entity_feet_eyes", + "name": "equipments", "type": [ - "switch", + "topBitSetTerminatedArray", { - "compareTo": "isEntity", - "fields": { - "true": "string" - }, - "default": "void" + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] } ] } ] ], - "packet_nbt_query_response": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "transactionId", + "name": "entityId", "type": "varint" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "headYaw", + "type": "i8" } ] ], - "packet_chat": [ + "packet_entity_look": [ "container", [ { - "name": "message", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "position", + "name": "yaw", "type": "i8" }, { - "name": "sender", - "type": "UUID" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ - { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] + "name": "pitch", + "type": "i8" }, { - "name": "notTrustEdges", + "name": "onGround", "type": "bool" - }, - { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": "varlong" - } - ] } ] ], - "packet_close_window": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_open_window": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", + "name": "entityId", "type": "varint" }, { - "name": "inventoryType", - "type": "varint" + "name": "dX", + "type": "i16" }, { - "name": "windowTitle", - "type": "string" + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "soundId", + "type": "varint" }, { - "name": "stateId", + "name": "soundCategory", "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "carriedItem", - "type": "slot" + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_status": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "property", - "type": "i16" + "name": "entityId", + "type": "i32" }, { - "name": "value", - "type": "i16" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_set_slot": [ + "packet_entity_teleport": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "stateId", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "slot", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "item", - "type": "slot" + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_set_cooldown": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "itemID", + "name": "entityId", "type": "varint" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_custom_payload": [ + "packet_entity_velocity": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_named_sound_effect": [ + "packet_experience": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", - "type": "varint" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "volume", + "name": "experienceBar", "type": "f32" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_entity_status": [ - "container", - [ - { - "name": "entityId", - "type": "i32" + "name": "level", + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "totalExperience", + "type": "varint" } ] ], @@ -2315,201 +2648,12 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ - "container", - [ - { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", - "type": "f32" - } - ] - ], - "packet_open_horse_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" - }, - { - "name": "nbSlots", - "type": "varint" - }, - { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_map_chunk": [ - "container", - [ - { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "heightmaps", - "type": "nbt" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "chunkBlockEntity" - } - ] - }, - { - "name": "trustEdges", - "type": "bool" - }, - { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] - }, - { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" - } - ] - ], - "packet_world_particles": [ + "packet_face_player": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" + "name": "feet_eyes", + "type": "varint" }, { "name": "x", @@ -2524,122 +2668,111 @@ "type": "f64" }, { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" + "name": "isEntity", + "type": "bool" }, { - "name": "particles", - "type": "i32" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "data", + "name": "entity_feet_eyes", "type": [ - "particleData", + "switch", { - "compareTo": "particleId" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] } ] ], - "packet_update_light": [ + "packet_game_state_change": [ "container", [ { - "name": "chunkX", - "type": "varint" + "name": "reason", + "type": "u8" }, { - "name": "chunkZ", - "type": "varint" + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slot", + "type": "i8" + } + ] + ], + "packet_initialize_world_border": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "trustEdges", - "type": "bool" + "name": "z", + "type": "f64" }, { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "oldDiameter", + "type": "f64" }, { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "newDiameter", + "type": "f64" }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "speed", + "type": "varlong" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "portalTeleportBoundary", + "type": "varint" }, { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "warningBlocks", + "type": "varint" }, { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "string" } ] ], @@ -2783,10 +2916,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -2796,10 +2929,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -2809,10 +2942,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -2822,128 +2955,175 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_trade_list": [ + "packet_map_chunk": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "trades", + "name": "z", + "type": "i32" + }, + { + "name": "heightmaps", + "type": "nbt" + }, + { + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", "type": [ "array", { - "countType": "u8", - "type": [ - "container", - [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - "slot" - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ] - ] + "countType": "varint", + "type": "chunkBlockEntity" + } + ] + }, + { + "name": "trustEdges", + "type": "bool" + }, + { + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" } ] }, { - "name": "villagerLevel", - "type": "varint" + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "experience", - "type": "varint" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "isRegularVillager", - "type": "bool" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "canRestock", - "type": "bool" + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] + }, + { + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], - "packet_rel_entity_move": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] + ] }, { - "name": "dZ", - "type": "i16" + "name": "notTrustEdges", + "type": "bool" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": "varlong" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -2951,16 +3131,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dY", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -2969,51 +3153,34 @@ { "name": "pitch", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "pitch", - "type": "i8" + "name": "soundCategory", + "type": "varint" }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -3022,85 +3189,77 @@ } ] ], - "packet_open_book": [ + "packet_nbt_query_response": [ "container", [ { - "name": "hand", + "name": "transactionId", "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_open_sign_entity": [ + "packet_open_book": [ "container", [ { - "name": "location", - "type": "position" + "name": "hand", + "type": "varint" } ] ], - "packet_craft_recipe_response": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "recipe", - "type": "string" + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_end_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "duration", + "name": "windowId", "type": "varint" }, { - "name": "entityId", - "type": "i32" + "name": "inventoryType", + "type": "varint" + }, + { + "name": "windowTitle", + "type": "string" } ] ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ + "packet_ping": [ "container", [ { - "name": "playerId", - "type": "varint" - }, - { - "name": "entityId", + "name": "id", "type": "i32" - }, - { - "name": "message", - "type": "string" } ] ], @@ -3112,14 +3271,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -3196,37 +3355,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -3238,6 +3397,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -3275,88 +3447,28 @@ } ] ], - "packet_unlock_recipes": [ + "packet_rel_entity_move": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "filteringCraftable", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "filteringSmeltable", - "type": "bool" - }, - { - "name": "blastFurnaceOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringBlastFurnace", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smokerBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmoker", + "name": "onGround", "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -3409,197 +3521,41 @@ "type": "string" }, { - "name": "hashedSeed", - "type": "i64" - }, - { - "name": "gamemode", - "type": "u8" - }, - { - "name": "previousGamemode", - "type": "u8" - }, - { - "name": "isDebug", - "type": "bool" - }, - { - "name": "isFlat", - "type": "bool" - }, - { - "name": "copyMetadata", - "type": "bool" - } - ] - ], - "packet_entity_head_rotation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "headYaw", - "type": "i8" - } - ] - ], - "packet_camera": [ - "container", - [ - { - "name": "cameraId", - "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ - { - "name": "slot", - "type": "i8" - } - ] - ], - "packet_update_view_position": [ - "container", - [ - { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - } - ] - ], - "packet_update_view_distance": [ - "container", - [ - { - "name": "viewDistance", - "type": "varint" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ - { - "name": "position", - "type": "i8" - }, - { - "name": "name", - "type": "string" - } - ] - ], - "packet_entity_metadata": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ - { - "name": "entityId", - "type": "i32" - }, - { - "name": "vehicleId", - "type": "i32" - } - ] - ], - "packet_entity_velocity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_entity_equipment": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "equipments", - "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - } - ] - ], - "packet_experience": [ - "container", - [ + "name": "hashedSeed", + "type": "i64" + }, { - "name": "experienceBar", - "type": "f32" + "name": "gamemode", + "type": "u8" }, { - "name": "level", - "type": "varint" + "name": "previousGamemode", + "type": "u8" }, { - "name": "totalExperience", - "type": "varint" + "name": "isDebug", + "type": "bool" + }, + { + "name": "isFlat", + "type": "bool" + }, + { + "name": "copyMetadata", + "type": "bool" } ] ], - "packet_update_health": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "foodSaturation", - "type": "f32" + "name": "name", + "type": "string" } ] ], @@ -3620,11 +3576,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3634,294 +3590,183 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] } ] ], - "packet_set_passengers": [ + "packet_scoreboard_score": [ "container", [ { - "name": "entityId", + "name": "itemName", + "type": "string" + }, + { + "name": "action", "type": "varint" }, { - "name": "passengers", + "name": "scoreName", + "type": "string" + }, + { + "name": "value", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "varint" + "compareTo": "action", + "default": "varint", + "fields": { + "1": "void" + } } ] } ] ], - "packet_teams": [ + "packet_sculk_vibration_signal": [ "container", [ { - "name": "team", - "type": "string" - }, - { - "name": "mode", - "type": "i8" + "name": "sourcePosition", + "type": "position" }, { - "name": "name", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "destinationIdentifier", + "type": "string" }, { - "name": "friendlyFire", + "name": "destination", "type": [ "switch", { - "compareTo": "mode", + "compareTo": "destinationIdentifier", + "default": "void", "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" + "block": "position", + "entityId": "varint" + } } ] }, { - "name": "nameTagVisibility", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - }, + "name": "arrivalTicks", + "type": "varint" + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ { - "name": "collisionRule", + "name": "id", "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } + "option", + "string" ] - }, + } + ] + ], + "packet_set_cooldown": [ + "container", + [ { - "name": "formatting", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "itemID", + "type": "varint" }, { - "name": "prefix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - }, + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_passengers": [ + "container", + [ { - "name": "suffix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "players", + "name": "passengers", "type": [ - "switch", + "array", { - "compareTo": "mode", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_scoreboard_score": [ + "packet_set_slot": [ "container", [ { - "name": "itemName", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "action", + "name": "stateId", "type": "varint" }, { - "name": "scoreName", - "type": "string" + "name": "slot", + "type": "i16" }, { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" - } - ] + "name": "item", + "type": "slot" } ] ], - "packet_spawn_position": [ + "packet_set_title_subtitle": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "angle", - "type": "f32" + "name": "text", + "type": "string" } ] ], - "packet_update_time": [ + "packet_set_title_text": [ "container", [ { - "name": "age", - "type": "i64" - }, - { - "name": "time", - "type": "i64" + "name": "text", + "type": "string" } ] ], - "packet_entity_sound_effect": [ + "packet_set_title_time": [ "container", [ { - "name": "soundId", - "type": "varint" - }, - { - "name": "soundCategory", - "type": "varint" - }, - { - "name": "entityId", - "type": "varint" + "name": "fadeIn", + "type": "i32" }, { - "name": "volume", - "type": "f32" + "name": "stay", + "type": "i32" }, { - "name": "pitch", - "type": "f32" + "name": "fadeOut", + "type": "i32" } ] ], - "packet_stop_sound": [ + "packet_simulation_distance": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "source", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "sound", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "2": "string", - "3": "string" - }, - "default": "void" - } - ] + "name": "distance", + "type": "varint" } ] ], @@ -3958,43 +3803,91 @@ } ] ], - "packet_playerlist_header": [ + "packet_spawn_entity": [ "container", [ { - "name": "header", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "footer", - "type": "string" + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_collect": [ + "packet_spawn_entity_experience_orb": [ "container", [ { - "name": "collectedEntityId", + "name": "entityId", "type": "varint" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "pickupItemCount", - "type": "varint" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_teleport": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, { "name": "x", "type": "f64" @@ -4016,12 +3909,16 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "headPitch", + "type": "i8" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_update_attributes": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -4029,7 +3926,41 @@ "type": "varint" }, { - "name": "properties", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "angle", + "type": "f32" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", "type": [ "array", { @@ -4038,38 +3969,16 @@ "container", [ { - "name": "name", - "type": "string" + "name": "categoryId", + "type": "varint" }, { - "name": "value", - "type": "f64" + "name": "statisticId", + "type": "varint" }, { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] + "name": "value", + "type": "varint" } ] ] @@ -4078,48 +3987,90 @@ } ] ], - "packet_entity_effect": [ + "packet_stop_sound": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "effectId", - "type": "varint" - }, - { - "name": "amplifier", + "name": "flags", "type": "i8" }, { - "name": "duration", - "type": "varint" + "name": "source", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "1": "varint", + "3": "varint" + } + } + ] }, { - "name": "hideParticles", - "type": "i8" + "name": "sound", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "2": "string", + "3": "string" + } + } + ] } ] ], - "packet_select_advancement_tab": [ + "packet_tab_complete": [ "container", [ { - "name": "id", + "name": "transactionId", + "type": "varint" + }, + { + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ - "option", - "string" + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] + } ] } ] ], - "packet_declare_recipes": [ + "packet_tags": [ "container", [ { - "name": "recipes", + "name": "tags", "type": [ "array", { @@ -4128,135 +4079,12 @@ "container", [ { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", + "name": "tagType", "type": "string" }, { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing": [ - "container", - [ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] + "name": "tags", + "type": "tags" } ] ] @@ -4265,34 +4093,151 @@ } ] ], - "packet_tags": [ + "packet_teams": [ "container", [ { - "name": "tags", + "name": "team", + "type": "string" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "name", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "friendlyFire", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "i8", + "2": "i8" + } + } + ] + }, + { + "name": "nameTagVisibility", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "collisionRule", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "formatting", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + }, + { + "name": "prefix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "suffix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "players", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ + "compareTo": "mode", + "default": "void", + "fields": { + "0": [ + "array", { - "name": "tagType", + "countType": "varint", "type": "string" - }, + } + ], + "3": [ + "array", { - "name": "tags", - "type": "tags" + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" } ] - ] + } } ] } ] ], - "packet_acknowledge_player_digging": [ + "packet_tile_entity_data": [ "container", [ { @@ -4300,800 +4245,737 @@ "type": "position" }, { - "name": "block", - "type": "varint" - }, - { - "name": "status", + "name": "action", "type": "varint" }, { - "name": "successful", - "type": "bool" + "name": "nbtData", + "type": "optionalNbt" } ] ], - "packet_sculk_vibration_signal": [ + "packet_trade_list": [ "container", [ { - "name": "sourcePosition", - "type": "position" - }, - { - "name": "destinationIdentifier", - "type": "string" + "name": "windowId", + "type": "varint" }, { - "name": "destination", + "name": "trades", "type": [ - "switch", + "array", { - "compareTo": "destinationIdentifier", - "fields": { - "block": "position", - "entityId": "varint" - }, - "default": "void" + "countType": "u8", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] } ] }, { - "name": "arrivalTicks", + "name": "villagerLevel", "type": "varint" - } - ] - ], - "packet_clear_titles": [ - "container", - [ - { - "name": "reset", - "type": "bool" - } - ] - ], - "packet_initialize_world_border": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "oldDiameter", - "type": "f64" - }, - { - "name": "newDiameter", - "type": "f64" - }, - { - "name": "speed", - "type": "varlong" }, { - "name": "portalTeleportBoundary", + "name": "experience", "type": "varint" }, { - "name": "warningBlocks", - "type": "varint" + "name": "isRegularVillager", + "type": "bool" }, { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_action_bar": [ - "container", - [ - { - "name": "text", - "type": "string" + "name": "canRestock", + "type": "bool" } ] ], - "packet_world_border_center": [ + "packet_unload_chunk": [ "container", [ { - "name": "x", - "type": "f64" + "name": "chunkX", + "type": "i32" }, { - "name": "z", - "type": "f64" + "name": "chunkZ", + "type": "i32" } ] ], - "packet_world_border_lerp_size": [ + "packet_unlock_recipes": [ "container", [ { - "name": "oldDiameter", - "type": "f64" + "name": "action", + "type": "varint" }, { - "name": "newDiameter", - "type": "f64" + "name": "craftingBookOpen", + "type": "bool" }, { - "name": "speed", - "type": "varlong" - } - ] - ], - "packet_world_border_size": [ - "container", - [ - { - "name": "diameter", - "type": "f64" - } - ] - ], - "packet_world_border_warning_delay": [ - "container", - [ - { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_world_border_warning_reach": [ - "container", - [ - { - "name": "warningBlocks", - "type": "varint" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_set_title_subtitle": [ - "container", - [ - { - "name": "text", - "type": "string" - } - ] - ], - "packet_set_title_text": [ - "container", - [ + "name": "filteringCraftable", + "type": "bool" + }, { - "name": "text", - "type": "string" - } - ] - ], - "packet_set_title_time": [ - "container", - [ + "name": "smeltingBookOpen", + "type": "bool" + }, { - "name": "fadeIn", - "type": "i32" + "name": "filteringSmeltable", + "type": "bool" }, { - "name": "stay", - "type": "i32" + "name": "blastFurnaceOpen", + "type": "bool" }, { - "name": "fadeOut", - "type": "i32" - } - ] - ], - "packet_simulation_distance": [ - "container", - [ + "name": "filteringBlastFurnace", + "type": "bool" + }, { - "name": "distance", - "type": "varint" - } - ] - ], - "packet": [ - "container", - [ + "name": "smokerBookOpen", + "type": "bool" + }, { - "name": "name", + "name": "filteringSmoker", + "type": "bool" + }, + { + "name": "recipes1", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "sculk_vibration_signal", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "clear_titles", - "0x11": "tab_complete", - "0x12": "declare_commands", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "initialize_world_border", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "update_light", - "0x26": "login", - "0x27": "map", - "0x28": "trade_list", - "0x29": "rel_entity_move", - "0x2a": "entity_move_look", - "0x2b": "entity_look", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "ping", - "0x31": "craft_recipe_response", - "0x32": "abilities", - "0x33": "end_combat_event", - "0x34": "enter_combat_event", - "0x35": "death_combat_event", - "0x36": "player_info", - "0x37": "face_player", - "0x38": "position", - "0x39": "unlock_recipes", - "0x3a": "entity_destroy", - "0x3b": "remove_entity_effect", - "0x3c": "resource_pack_send", - "0x3d": "respawn", - "0x3e": "entity_head_rotation", - "0x3f": "multi_block_change", - "0x40": "select_advancement_tab", - "0x41": "action_bar", - "0x42": "world_border_center", - "0x43": "world_border_lerp_size", - "0x44": "world_border_size", - "0x45": "world_border_warning_delay", - "0x46": "world_border_warning_reach", - "0x47": "camera", - "0x48": "held_item_slot", - "0x49": "update_view_position", - "0x4a": "update_view_distance", - "0x4b": "spawn_position", - "0x4c": "scoreboard_display_objective", - "0x4d": "entity_metadata", - "0x4e": "attach_entity", - "0x4f": "entity_velocity", - "0x50": "entity_equipment", - "0x51": "experience", - "0x52": "update_health", - "0x53": "scoreboard_objective", - "0x54": "set_passengers", - "0x55": "teams", - "0x56": "scoreboard_score", - "0x57": "simulation_distance", - "0x58": "set_title_subtitle", - "0x59": "update_time", - "0x5a": "set_title_text", - "0x5b": "set_title_time", - "0x5c": "entity_sound_effect", - "0x5d": "sound_effect", - "0x5e": "stop_sound", - "0x5f": "playerlist_header", - "0x60": "nbt_query_response", - "0x61": "collect", - "0x62": "entity_teleport", - "0x63": "advancements", - "0x64": "entity_update_attributes", - "0x65": "entity_effect", - "0x66": "declare_recipes", - "0x67": "tags" - } + "countType": "varint", + "type": "string" } ] }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", - "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_info": "packet_player_info", - "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "entity_sound_effect": "packet_entity_sound_effect", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "sculk_vibration_signal": "packet_sculk_vibration_signal", - "clear_titles": "packet_clear_titles", - "initialize_world_border": "packet_initialize_world_border", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "ping": "packet_ping", - "set_title_subtitle": "packet_set_title_subtitle", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time" + { + "name": "recipes2", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ - "container", - [ - { - "name": "teleportId", - "type": "varint" - } - ] ], - "packet_query_block_nbt": [ + "packet_update_health": [ "container", [ { - "name": "transactionId", + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_set_difficulty": [ + "packet_update_light": [ "container", [ { - "name": "newDifficulty", - "type": "u8" - } - ] - ], - "packet_edit_book": [ - "container", - [ + "name": "chunkX", + "type": "varint" + }, { - "name": "hand", + "name": "chunkZ", "type": "varint" }, { - "name": "pages", + "name": "trustEdges", + "type": "bool" + }, + { + "name": "skyLightMask", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "i64" } ] }, { - "name": "title", + "name": "blockLightMask", "type": [ - "option", - "string" + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] + }, + { + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } ] } ] ], - "packet_query_entity_nbt": [ + "packet_update_time": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "age", + "type": "i64" }, { - "name": "entityId", - "type": "varint" + "name": "time", + "type": "i64" } ] ], - "packet_pick_item": [ + "packet_update_view_distance": [ "container", [ { - "name": "slot", + "name": "viewDistance", "type": "varint" } ] ], - "packet_name_item": [ + "packet_update_view_position": [ "container", [ { - "name": "name", - "type": "string" + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" } ] ], - "packet_select_trade": [ + "packet_vehicle_move": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_set_beacon_effect": [ + "packet_window_items": [ "container", [ { - "name": "primary_effect", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "secondary_effect", + "name": "stateId", "type": "varint" + }, + { + "name": "items", + "type": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ] + }, + { + "name": "carriedItem", + "type": "slot" } ] ], - "packet_update_command_block": [ + "packet_world_border_center": [ "container", [ { - "name": "location", - "type": "position" + "name": "x", + "type": "f64" }, { - "name": "command", - "type": "string" + "name": "z", + "type": "f64" + } + ] + ], + "packet_world_border_lerp_size": [ + "container", + [ + { + "name": "oldDiameter", + "type": "f64" }, { - "name": "mode", - "type": "varint" + "name": "newDiameter", + "type": "f64" }, { - "name": "flags", - "type": "u8" + "name": "speed", + "type": "varlong" } ] ], - "packet_update_command_block_minecart": [ + "packet_world_border_size": [ "container", [ { - "name": "entityId", + "name": "diameter", + "type": "f64" + } + ] + ], + "packet_world_border_warning_delay": [ + "container", + [ + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_world_border_warning_reach": [ + "container", + [ + { + "name": "warningBlocks", "type": "varint" + } + ] + ], + "packet_world_event": [ + "container", + [ + { + "name": "effectId", + "type": "i32" }, { - "name": "command", - "type": "string" + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" }, { - "name": "track_output", + "name": "global", "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_world_particles": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" + "name": "particleId", + "type": "i32" }, { - "name": "name", - "type": "string" + "name": "longDistance", + "type": "bool" }, { - "name": "offset_x", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "offset_y", - "type": "i8" + "name": "y", + "type": "f64" }, { - "name": "offset_z", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "size_x", - "type": "i8" + "name": "offsetX", + "type": "f32" }, { - "name": "size_y", - "type": "i8" + "name": "offsetY", + "type": "f32" }, { - "name": "size_z", - "type": "i8" + "name": "offsetZ", + "type": "f32" }, { - "name": "mirror", - "type": "varint" + "name": "particleData", + "type": "f32" }, { - "name": "rotation", - "type": "varint" + "name": "particles", + "type": "i32" }, { - "name": "metadata", - "type": "string" - }, + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "integrity", - "type": "f32" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "generate_structure", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "pong", + "0x1e": "recipe_book", + "0x1f": "displayed_recipe", + "0x20": "name_item", + "0x21": "resource_pack_receive", + "0x22": "advancement_tab", + "0x23": "select_trade", + "0x24": "set_beacon_effect", + "0x25": "held_item_slot", + "0x26": "update_command_block", + "0x27": "update_command_block_minecart", + "0x28": "set_creative_slot", + "0x29": "update_jigsaw_block", + "0x2a": "update_structure_block", + "0x2b": "update_sign", + "0x2c": "arm_animation", + "0x2d": "spectate", + "0x2e": "block_place", + "0x2f": "use_item" + }, + "type": "varint" + } + ] }, { - "name": "seed", - "type": "varlong" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat": "packet_chat", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_payload": "packet_custom_payload", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" + } + } + ] + } + ] + ], + "packet_abilities": [ + "container", + [ { "name": "flags", - "type": "u8" + "type": "i8" } ] ], - "packet_tab_complete": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "text", - "type": "string" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_chat": [ + "packet_arm_animation": [ "container", [ { - "name": "message", - "type": "string" + "name": "hand", + "type": "varint" } ] ], - "packet_client_command": [ + "packet_block_dig": [ "container", [ { - "name": "actionId", + "name": "status", "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_settings": [ + "packet_block_place": [ "container", [ { - "name": "locale", - "type": "string" + "name": "hand", + "type": "varint" }, { - "name": "viewDistance", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "chatFlags", + "name": "direction", "type": "varint" }, { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" + "name": "cursorX", + "type": "f32" }, - { - "name": "mainHand", - "type": "varint" + { + "name": "cursorY", + "type": "f32" }, { - "name": "enableTextFiltering", - "type": "bool" + "name": "cursorZ", + "type": "f32" }, { - "name": "enableServerListing", + "name": "insideBlock", "type": "bool" } ] ], - "packet_enchant_item": [ + "packet_chat": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "message", + "type": "string" } ] ], - "packet_window_click": [ + "packet_client_command": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "mode", + "name": "actionId", "type": "varint" - }, - { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - }, - { - "name": "cursorItem", - "type": "slot" } ] ], @@ -5106,6 +4988,23 @@ } ] ], + "packet_craft_recipe_request": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "recipe", + "type": "string" + }, + { + "name": "makeAll", + "type": "bool" + } + ] + ], "packet_custom_payload": [ "container", [ @@ -5119,72 +5018,76 @@ } ] ], - "packet_use_entity": [ + "packet_displayed_recipe": [ "container", [ { - "name": "target", - "type": "varint" - }, + "name": "recipeId", + "type": "string" + } + ] + ], + "packet_edit_book": [ + "container", + [ { - "name": "mouse", + "name": "hand", "type": "varint" }, { - "name": "x", + "name": "pages", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" + "countType": "varint", + "type": "string" } ] }, { - "name": "y", + "name": "title", "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } + "option", + "string" ] + } + ] + ], + "packet_enchant_item": [ + "container", + [ + { + "name": "windowId", + "type": "i8" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "enchantment", + "type": "i8" + } + ] + ], + "packet_entity_action": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "actionId", + "type": "varint" }, { - "name": "sneaking", + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ + { + "name": "onGround", "type": "bool" } ] @@ -5206,60 +5109,36 @@ } ] ], - "packet_keep_alive": [ + "packet_held_item_slot": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "slotId", + "type": "i16" } ] ], - "packet_lock_difficulty": [ + "packet_keep_alive": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_position": [ + "packet_lock_difficulty": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "onGround", + "name": "locked", "type": "bool" } ] ], - "packet_position_look": [ + "packet_look": [ "container", [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, { "name": "yaw", "type": "f32" @@ -5274,33 +5153,55 @@ } ] ], - "packet_look": [ + "packet_name_item": [ "container", [ { - "name": "yaw", - "type": "f32" - }, + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ { - "name": "pitch", - "type": "f32" - }, + "name": "slot", + "type": "varint" + } + ] + ], + "packet_pong": [ + "container", + [ { - "name": "onGround", - "type": "bool" + "name": "id", + "type": "i32" } ] ], - "packet_flying": [ + "packet_position": [ "container", [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "onGround", "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_position_look": [ "container", [ { @@ -5322,79 +5223,165 @@ { "name": "pitch", "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_steer_boat": [ + "packet_query_block_nbt": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "transactionId", + "type": "varint" }, { - "name": "rightPaddle", - "type": "bool" + "name": "location", + "type": "position" } ] ], - "packet_craft_recipe_request": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "transactionId", + "type": "varint" }, { - "name": "recipe", - "type": "string" + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_recipe_book": [ + "container", + [ + { + "name": "bookId", + "type": "varint" }, { - "name": "makeAll", + "name": "bookOpen", + "type": "bool" + }, + { + "name": "filterActive", "type": "bool" } ] ], - "packet_abilities": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "result", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_select_trade": [ "container", [ { - "name": "status", + "name": "slot", + "type": "varint" + } + ] + ], + "packet_set_beacon_effect": [ + "container", + [ + { + "name": "primary_effect", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "secondary_effect", + "type": "varint" + } + ] + ], + "packet_set_creative_slot": [ + "container", + [ + { + "name": "slot", + "type": "i16" }, { - "name": "face", - "type": "i8" + "name": "item", + "type": "slot" } ] ], - "packet_entity_action": [ + "packet_set_difficulty": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "newDifficulty", + "type": "u8" + } + ] + ], + "packet_settings": [ + "container", + [ + { + "name": "locale", + "type": "string" }, { - "name": "actionId", + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "jumpBoost", + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", "type": "varint" + }, + { + "name": "enableTextFiltering", + "type": "bool" + }, + { + "name": "enableServerListing", + "type": "bool" + } + ] + ], + "packet_spectate": [ + "container", + [ + { + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ + { + "name": "leftPaddle", + "type": "bool" + }, + { + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5415,60 +5402,63 @@ } ] ], - "packet_displayed_recipe": [ - "container", - [ - { - "name": "recipeId", - "type": "string" - } - ] - ], - "packet_recipe_book": [ + "packet_tab_complete": [ "container", [ { - "name": "bookId", + "name": "transactionId", "type": "varint" }, { - "name": "bookOpen", - "type": "bool" - }, - { - "name": "filterActive", - "type": "bool" + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "location", + "type": "position" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block_minecart": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5526,53 +5516,141 @@ } ] ], - "packet_arm_animation": [ + "packet_update_structure_block": [ "container", [ { - "name": "hand", - "type": "varint" + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "metadata", + "type": "string" + }, + { + "name": "integrity", + "type": "f32" + }, + { + "name": "seed", + "type": "varlong" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "hand", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "mouse", + "type": "varint" }, { - "name": "direction", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "insideBlock", + "name": "sneaking", "type": "bool" } ] @@ -5586,157 +5664,79 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] - } - ] - ], - "packet_pong": [ - "container", - [ + "name": "y", + "type": "f64" + }, { - "name": "id", - "type": "i32" + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "generate_structure", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "pong", - "0x1e": "recipe_book", - "0x1f": "displayed_recipe", - "0x20": "name_item", - "0x21": "resource_pack_receive", - "0x22": "advancement_tab", - "0x23": "select_trade", - "0x24": "set_beacon_effect", - "0x25": "held_item_slot", - "0x26": "update_command_block", - "0x27": "update_command_block_minecart", - "0x28": "set_creative_slot", - "0x29": "update_jigsaw_block", - "0x2a": "update_structure_block", - "0x2b": "update_sign", - "0x2c": "arm_animation", - "0x2d": "spectate", - "0x2e": "block_place", - "0x2f": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", + "name": "stateId", + "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "displayed_recipe": "packet_displayed_recipe", - "recipe_book": "packet_recipe_book", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab", - "pong": "packet_pong" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "slot" + } + ] + ] } ] + }, + { + "name": "cursorItem", + "type": "slot" } ] ] diff --git a/data/pc/1.18/protocol.json b/data/pc/1.18/protocol.json index ac4905db8..c64207107 100644 --- a/data/pc/1.18/protocol.json +++ b/data/pc/1.18/protocol.json @@ -1,509 +1,97 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "chunkBlockEntity": [ "container", [ { - "name": "x", - "type": "i16" + "anon": true, + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 + } + ] + ] }, { "name": "y", "type": "i16" }, { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" + "name": "type", + "type": "varint" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] + "name": "nbtData", + "type": "optionalNbt" } ] ], - "particle": [ + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "2": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", - [ - { - "name": "red", - "type": "f32" - }, - { - "name": "green", - "type": "f32" - }, - { - "name": "blue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - } - ] - ], - "15": [ - "container", + "bitfield", [ { - "name": "fromRed", - "type": "f32" - }, - { - "name": "fromGreen", - "type": "f32" - }, - { - "name": "fromBlue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - }, - { - "name": "toRed", - "type": "f32" - }, - { - "name": "toGreen", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "toBlue", - "type": "f32" - } - ] - ], - "24": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "35": [ - "container", - [ - { - "name": "item", - "type": "slot" - } - ] - ], - "36": [ - "container", - [ - { - "name": "origin", - "type": "position" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "positionType", - "type": "string" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "destination", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:block": "position", - "minecraft:entity": "varint" - } - } - ] + "name": "has_command", + "signed": false, + "size": 1 }, { - "name": "ticks", - "type": "varint" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "chunkBlockEntity": [ - "container", - [ - { - "anon": true, - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { "name": "redirectNode", @@ -511,10 +99,10 @@ "switch", { "compareTo": "flags/has_redirect_node", + "default": "void", "fields": { "1": "varint" - }, - "default": "void" + } } ] }, @@ -554,7 +142,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -564,18 +152,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -586,10 +174,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -599,16 +187,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -618,18 +206,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -640,10 +228,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -653,10 +241,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -672,18 +260,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -694,10 +282,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -707,10 +295,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -726,18 +314,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -748,10 +336,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -761,10 +349,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -773,77 +361,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -853,14 +425,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -869,7 +434,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -878,7 +444,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -889,10 +477,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -903,285 +491,622 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": {} - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } - } - ] - } - ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ "container", [ { - "name": "name", + "anon": true, "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" } - } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } + "compareTo": "type" } ] } ] ] } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } - } - ] + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "2": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "15": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "24": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "35": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ], + "36": [ + "container", + [ + { + "name": "origin", + "type": "position" + }, + { + "name": "positionType", + "type": "string" + }, + { + "name": "destination", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "minecraft:block": "position", + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": {}, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": {} + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", + [ + { + "name": "payload", + "type": "u8" + } + ] + ], + "packet_set_protocol": [ + "container", + [ + { + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" - } - } - ] + "name": "nextState", + "type": "varint" } ] ] } } }, - "login": { + "status": { "toClient": { "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_encryption_begin": [ + "packet": [ "container", [ { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": { + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "server_info": "packet_server_info" + } } ] } ] ], - "packet_success": [ + "packet_ping": [ "container", [ { - "name": "uuid", - "type": "UUID" - }, - { - "name": "username", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_compress": [ + "packet_server_info": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "response", + "type": "string" } ] - ], - "packet_login_plugin_request": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "messageId", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" + } + ] }, { - "name": "channel", - "type": "string" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } + } + ] + } + ] + ], + "packet_ping": [ + "container", + [ { - "name": "data", - "type": "restBuffer" + "name": "time", + "type": "i64" } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1190,14 +1115,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "disconnect", "0x01": "encryption_begin", "0x02": "success", "0x03": "compress", "0x04": "login_plugin_request" - } + }, + "type": "varint" } ] }, @@ -1208,26 +1133,31 @@ { "compareTo": "name", "fields": { + "compress": "packet_compress", "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_compress": [ "container", [ { - "name": "username", + "name": "threshold", + "type": "varint" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", "type": "string" } ] @@ -1236,7 +1166,11 @@ "container", [ { - "name": "sharedSecret", + "name": "serverId", + "type": "string" + }, + { + "name": "publicKey", "type": [ "buffer", { @@ -1255,22 +1189,40 @@ } ] ], - "packet_login_plugin_response": [ + "packet_login_plugin_request": [ "container", [ { "name": "messageId", "type": "varint" }, + { + "name": "channel", + "type": "string" + }, { "name": "data", - "type": [ - "option", - "restBuffer" - ] + "type": "restBuffer" } ] ], + "packet_success": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1279,12 +1231,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "login_start", "0x01": "encryption_begin", "0x02": "login_plugin_response" - } + }, + "type": "varint" } ] }, @@ -1295,235 +1247,348 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "velocity", - "type": "vec3i16" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_login_plugin_response": [ "container", [ { - "name": "entityId", + "name": "messageId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_spawn_entity_living": [ + "packet_login_start": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "packet": [ + "container", + [ { - "name": "headPitch", - "type": "i8" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "sculk_vibration_signal", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "clear_titles", + "0x11": "tab_complete", + "0x12": "declare_commands", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "initialize_world_border", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "update_light", + "0x26": "login", + "0x27": "map", + "0x28": "trade_list", + "0x29": "rel_entity_move", + "0x2a": "entity_move_look", + "0x2b": "entity_look", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "ping", + "0x31": "craft_recipe_response", + "0x32": "abilities", + "0x33": "end_combat_event", + "0x34": "enter_combat_event", + "0x35": "death_combat_event", + "0x36": "player_info", + "0x37": "face_player", + "0x38": "position", + "0x39": "unlock_recipes", + "0x3a": "entity_destroy", + "0x3b": "remove_entity_effect", + "0x3c": "resource_pack_send", + "0x3d": "respawn", + "0x3e": "entity_head_rotation", + "0x3f": "multi_block_change", + "0x40": "select_advancement_tab", + "0x41": "action_bar", + "0x42": "world_border_center", + "0x43": "world_border_lerp_size", + "0x44": "world_border_size", + "0x45": "world_border_warning_delay", + "0x46": "world_border_warning_reach", + "0x47": "camera", + "0x48": "held_item_slot", + "0x49": "update_view_position", + "0x4a": "update_view_distance", + "0x4b": "spawn_position", + "0x4c": "scoreboard_display_objective", + "0x4d": "entity_metadata", + "0x4e": "attach_entity", + "0x4f": "entity_velocity", + "0x50": "entity_equipment", + "0x51": "experience", + "0x52": "update_health", + "0x53": "scoreboard_objective", + "0x54": "set_passengers", + "0x55": "teams", + "0x56": "scoreboard_score", + "0x57": "simulation_distance", + "0x58": "set_title_subtitle", + "0x59": "update_time", + "0x5a": "set_title_text", + "0x5b": "set_title_time", + "0x5c": "entity_sound_effect", + "0x5d": "sound_effect", + "0x5e": "stop_sound", + "0x5f": "playerlist_header", + "0x60": "nbt_query_response", + "0x61": "collect", + "0x62": "entity_teleport", + "0x63": "advancements", + "0x64": "entity_update_attributes", + "0x65": "entity_effect", + "0x66": "declare_recipes", + "0x67": "tags" + }, + "type": "varint" + } + ] }, { - "name": "velocity", - "type": "vec3i16" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "death_combat_event": "packet_death_combat_event", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "sculk_vibration_signal": "packet_sculk_vibration_signal", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "trade_list": "packet_trade_list", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_spawn_entity_painting": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" + "name": "flags", + "type": "i8" }, { - "name": "location", - "type": "position" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "direction", - "type": "u8" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_named_entity_spawn": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "location", + "type": "position" }, { - "name": "yaw", - "type": "i8" + "name": "block", + "type": "varint" }, { - "name": "pitch", - "type": "i8" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", + "name": "status", "type": "varint" }, { - "name": "animation", - "type": "u8" + "name": "successful", + "type": "bool" } ] ], - "packet_statistics": [ + "packet_action_bar": [ "container", [ { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "text", + "type": "string" } ] ], @@ -1589,23 +1654,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1616,10 +1681,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1736,7 +1801,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1744,29 +1809,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -1791,6 +1848,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1821,11 +1895,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1835,11 +1909,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1849,11 +1923,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1863,60 +1937,175 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } + } + ] + }, + { + "name": "flags", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } } ] + } + ] + ], + "packet_camera": [ + "container", + [ + { + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat": [ + "container", + [ + { + "name": "message", + "type": "string" + }, + { + "name": "position", + "type": "i8" + }, + { + "name": "sender", + "type": "UUID" + } + ] + ], + "packet_clear_titles": [ + "container", + [ + { + "name": "reset", + "type": "bool" + } + ] + ], + "packet_close_window": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", + "type": "varint" + }, + { + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_craft_recipe_response": [ + "container", + [ + { + "name": "windowId", + "type": "i8" }, { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] + "name": "recipe", + "type": "string" } ] ], - "packet_difficulty": [ + "packet_custom_payload": [ "container", [ { - "name": "difficulty", - "type": "u8" + "name": "channel", + "type": "string" }, { - "name": "difficultyLocked", - "type": "bool" + "name": "data", + "type": "restBuffer" } ] ], - "packet_tab_complete": [ + "packet_death_combat_event": [ "container", [ { - "name": "transactionId", + "name": "playerId", "type": "varint" }, { - "name": "start", - "type": "varint" + "name": "entityId", + "type": "i32" }, { - "name": "length", - "type": "varint" + "name": "message", + "type": "string" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "matches", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { @@ -1925,14 +2114,134 @@ "container", [ { - "name": "match", + "name": "type", "type": "string" }, { - "name": "tooltip", + "name": "recipeId", + "type": "string" + }, + { + "name": "data", "type": [ - "option", - "string" + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } ] } ] @@ -1942,317 +2251,341 @@ } ] ], - "packet_declare_commands": [ + "packet_difficulty": [ "container", [ { - "name": "nodes", + "name": "difficulty", + "type": "u8" + }, + { + "name": "difficultyLocked", + "type": "bool" + } + ] + ], + "packet_end_combat_event": [ + "container", + [ + { + "name": "duration", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" + } + ] + ], + "packet_enter_combat_event": [ + "container", + [] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "command_node" + "type": "varint" } ] - }, - { - "name": "rootIndex", - "type": "varint" } ] ], - "packet_face_player": [ + "packet_entity_effect": [ "container", [ { - "name": "feet_eyes", + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "effectId", + "type": "i8" }, { - "name": "z", - "type": "f64" + "name": "amplifier", + "type": "i8" }, { - "name": "isEntity", - "type": "bool" + "name": "duration", + "type": "varint" }, + { + "name": "hideParticles", + "type": "i8" + } + ] + ], + "packet_entity_equipment": [ + "container", + [ { "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] + "type": "varint" }, { - "name": "entity_feet_eyes", + "name": "equipments", "type": [ - "switch", + "topBitSetTerminatedArray", { - "compareTo": "isEntity", - "fields": { - "true": "string" - }, - "default": "void" + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] } ] } ] ], - "packet_nbt_query_response": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "transactionId", + "name": "entityId", "type": "varint" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "headYaw", + "type": "i8" } ] ], - "packet_chat": [ + "packet_entity_look": [ "container", [ { - "name": "message", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "position", + "name": "yaw", "type": "i8" }, { - "name": "sender", - "type": "UUID" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ - { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] + "name": "pitch", + "type": "i8" }, { - "name": "notTrustEdges", + "name": "onGround", "type": "bool" - }, - { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": "varlong" - } - ] } ] ], - "packet_close_window": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_open_window": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", + "name": "entityId", "type": "varint" }, { - "name": "inventoryType", - "type": "varint" + "name": "dX", + "type": "i16" }, { - "name": "windowTitle", - "type": "string" + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "soundId", + "type": "varint" }, { - "name": "stateId", + "name": "soundCategory", "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "carriedItem", - "type": "slot" + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_status": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "property", - "type": "i16" + "name": "entityId", + "type": "i32" }, { - "name": "value", - "type": "i16" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_set_slot": [ + "packet_entity_teleport": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "stateId", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "slot", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "item", - "type": "slot" + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_set_cooldown": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "itemID", + "name": "entityId", "type": "varint" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_custom_payload": [ + "packet_entity_velocity": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_named_sound_effect": [ + "packet_experience": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", - "type": "varint" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "volume", + "name": "experienceBar", "type": "f32" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_entity_status": [ - "container", - [ - { - "name": "entityId", - "type": "i32" + "name": "level", + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "totalExperience", + "type": "varint" } ] ], @@ -2315,201 +2648,12 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ - "container", - [ - { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", - "type": "f32" - } - ] - ], - "packet_open_horse_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" - }, - { - "name": "nbSlots", - "type": "varint" - }, - { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_map_chunk": [ - "container", - [ - { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "heightmaps", - "type": "nbt" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "chunkBlockEntity" - } - ] - }, - { - "name": "trustEdges", - "type": "bool" - }, - { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] - }, - { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" - } - ] - ], - "packet_world_particles": [ + "packet_face_player": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" + "name": "feet_eyes", + "type": "varint" }, { "name": "x", @@ -2524,122 +2668,111 @@ "type": "f64" }, { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" + "name": "isEntity", + "type": "bool" }, { - "name": "particles", - "type": "i32" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "data", + "name": "entity_feet_eyes", "type": [ - "particleData", + "switch", { - "compareTo": "particleId" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] } ] ], - "packet_update_light": [ + "packet_game_state_change": [ "container", [ { - "name": "chunkX", - "type": "varint" + "name": "reason", + "type": "u8" }, { - "name": "chunkZ", - "type": "varint" + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slot", + "type": "i8" + } + ] + ], + "packet_initialize_world_border": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "trustEdges", - "type": "bool" + "name": "z", + "type": "f64" }, { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "oldDiameter", + "type": "f64" }, { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "newDiameter", + "type": "f64" }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "speed", + "type": "varlong" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "portalTeleportBoundary", + "type": "varint" }, { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "warningBlocks", + "type": "varint" }, { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "string" } ] ], @@ -2783,10 +2916,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -2796,10 +2929,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -2809,10 +2942,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -2822,128 +2955,175 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_trade_list": [ + "packet_map_chunk": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "trades", + "name": "z", + "type": "i32" + }, + { + "name": "heightmaps", + "type": "nbt" + }, + { + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", "type": [ "array", { - "countType": "u8", - "type": [ - "container", - [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - "slot" - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ] - ] + "countType": "varint", + "type": "chunkBlockEntity" + } + ] + }, + { + "name": "trustEdges", + "type": "bool" + }, + { + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" } ] }, { - "name": "villagerLevel", - "type": "varint" + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "experience", - "type": "varint" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "isRegularVillager", - "type": "bool" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "canRestock", - "type": "bool" + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] + }, + { + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], - "packet_rel_entity_move": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] + ] }, { - "name": "dZ", - "type": "i16" + "name": "notTrustEdges", + "type": "bool" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": "varlong" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -2951,16 +3131,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dY", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -2969,51 +3153,34 @@ { "name": "pitch", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "pitch", - "type": "i8" + "name": "soundCategory", + "type": "varint" }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -3022,85 +3189,77 @@ } ] ], - "packet_open_book": [ + "packet_nbt_query_response": [ "container", [ { - "name": "hand", + "name": "transactionId", "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_open_sign_entity": [ + "packet_open_book": [ "container", [ { - "name": "location", - "type": "position" + "name": "hand", + "type": "varint" } ] ], - "packet_craft_recipe_response": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "recipe", - "type": "string" + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_end_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "duration", + "name": "windowId", "type": "varint" }, { - "name": "entityId", - "type": "i32" + "name": "inventoryType", + "type": "varint" + }, + { + "name": "windowTitle", + "type": "string" } ] ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ + "packet_ping": [ "container", [ { - "name": "playerId", - "type": "varint" - }, - { - "name": "entityId", + "name": "id", "type": "i32" - }, - { - "name": "message", - "type": "string" } ] ], @@ -3112,14 +3271,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -3196,37 +3355,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -3238,6 +3397,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -3275,88 +3447,28 @@ } ] ], - "packet_unlock_recipes": [ + "packet_rel_entity_move": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "filteringCraftable", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "filteringSmeltable", - "type": "bool" - }, - { - "name": "blastFurnaceOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringBlastFurnace", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smokerBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmoker", + "name": "onGround", "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -3409,197 +3521,41 @@ "type": "string" }, { - "name": "hashedSeed", - "type": "i64" - }, - { - "name": "gamemode", - "type": "u8" - }, - { - "name": "previousGamemode", - "type": "u8" - }, - { - "name": "isDebug", - "type": "bool" - }, - { - "name": "isFlat", - "type": "bool" - }, - { - "name": "copyMetadata", - "type": "bool" - } - ] - ], - "packet_entity_head_rotation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "headYaw", - "type": "i8" - } - ] - ], - "packet_camera": [ - "container", - [ - { - "name": "cameraId", - "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ - { - "name": "slot", - "type": "i8" - } - ] - ], - "packet_update_view_position": [ - "container", - [ - { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - } - ] - ], - "packet_update_view_distance": [ - "container", - [ - { - "name": "viewDistance", - "type": "varint" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ - { - "name": "position", - "type": "i8" - }, - { - "name": "name", - "type": "string" - } - ] - ], - "packet_entity_metadata": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ - { - "name": "entityId", - "type": "i32" - }, - { - "name": "vehicleId", - "type": "i32" - } - ] - ], - "packet_entity_velocity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_entity_equipment": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "equipments", - "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - } - ] - ], - "packet_experience": [ - "container", - [ + "name": "hashedSeed", + "type": "i64" + }, { - "name": "experienceBar", - "type": "f32" + "name": "gamemode", + "type": "u8" }, { - "name": "level", - "type": "varint" + "name": "previousGamemode", + "type": "u8" }, { - "name": "totalExperience", - "type": "varint" + "name": "isDebug", + "type": "bool" + }, + { + "name": "isFlat", + "type": "bool" + }, + { + "name": "copyMetadata", + "type": "bool" } ] ], - "packet_update_health": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "foodSaturation", - "type": "f32" + "name": "name", + "type": "string" } ] ], @@ -3620,11 +3576,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3634,294 +3590,183 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] } ] ], - "packet_set_passengers": [ + "packet_scoreboard_score": [ "container", [ { - "name": "entityId", + "name": "itemName", + "type": "string" + }, + { + "name": "action", "type": "varint" }, { - "name": "passengers", + "name": "scoreName", + "type": "string" + }, + { + "name": "value", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "varint" + "compareTo": "action", + "default": "varint", + "fields": { + "1": "void" + } } ] } ] ], - "packet_teams": [ + "packet_sculk_vibration_signal": [ "container", [ { - "name": "team", - "type": "string" - }, - { - "name": "mode", - "type": "i8" + "name": "sourcePosition", + "type": "position" }, { - "name": "name", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "destinationIdentifier", + "type": "string" }, { - "name": "friendlyFire", + "name": "destination", "type": [ "switch", { - "compareTo": "mode", + "compareTo": "destinationIdentifier", + "default": "void", "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" + "block": "position", + "entityId": "varint" + } } ] }, { - "name": "nameTagVisibility", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - }, + "name": "arrivalTicks", + "type": "varint" + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ { - "name": "collisionRule", + "name": "id", "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } + "option", + "string" ] - }, + } + ] + ], + "packet_set_cooldown": [ + "container", + [ { - "name": "formatting", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "itemID", + "type": "varint" }, { - "name": "prefix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - }, + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_passengers": [ + "container", + [ { - "name": "suffix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "players", + "name": "passengers", "type": [ - "switch", + "array", { - "compareTo": "mode", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_scoreboard_score": [ + "packet_set_slot": [ "container", [ { - "name": "itemName", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "action", + "name": "stateId", "type": "varint" }, { - "name": "scoreName", - "type": "string" + "name": "slot", + "type": "i16" }, { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" - } - ] + "name": "item", + "type": "slot" } ] ], - "packet_spawn_position": [ + "packet_set_title_subtitle": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "angle", - "type": "f32" + "name": "text", + "type": "string" } ] ], - "packet_update_time": [ + "packet_set_title_text": [ "container", [ { - "name": "age", - "type": "i64" - }, - { - "name": "time", - "type": "i64" + "name": "text", + "type": "string" } ] ], - "packet_entity_sound_effect": [ + "packet_set_title_time": [ "container", [ { - "name": "soundId", - "type": "varint" - }, - { - "name": "soundCategory", - "type": "varint" - }, - { - "name": "entityId", - "type": "varint" + "name": "fadeIn", + "type": "i32" }, { - "name": "volume", - "type": "f32" + "name": "stay", + "type": "i32" }, { - "name": "pitch", - "type": "f32" + "name": "fadeOut", + "type": "i32" } ] ], - "packet_stop_sound": [ + "packet_simulation_distance": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "source", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "sound", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "2": "string", - "3": "string" - }, - "default": "void" - } - ] + "name": "distance", + "type": "varint" } ] ], @@ -3958,43 +3803,91 @@ } ] ], - "packet_playerlist_header": [ + "packet_spawn_entity": [ "container", [ { - "name": "header", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "footer", - "type": "string" + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_collect": [ + "packet_spawn_entity_experience_orb": [ "container", [ { - "name": "collectedEntityId", + "name": "entityId", "type": "varint" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "pickupItemCount", - "type": "varint" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_teleport": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, { "name": "x", "type": "f64" @@ -4016,12 +3909,16 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "headPitch", + "type": "i8" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_update_attributes": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -4029,7 +3926,41 @@ "type": "varint" }, { - "name": "properties", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "angle", + "type": "f32" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", "type": [ "array", { @@ -4038,38 +3969,16 @@ "container", [ { - "name": "name", - "type": "string" + "name": "categoryId", + "type": "varint" }, { - "name": "value", - "type": "f64" + "name": "statisticId", + "type": "varint" }, { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] + "name": "value", + "type": "varint" } ] ] @@ -4078,48 +3987,90 @@ } ] ], - "packet_entity_effect": [ + "packet_stop_sound": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "effectId", - "type": "i8" - }, - { - "name": "amplifier", + "name": "flags", "type": "i8" }, { - "name": "duration", - "type": "varint" + "name": "source", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "1": "varint", + "3": "varint" + } + } + ] }, { - "name": "hideParticles", - "type": "i8" + "name": "sound", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "2": "string", + "3": "string" + } + } + ] } ] ], - "packet_select_advancement_tab": [ + "packet_tab_complete": [ "container", [ { - "name": "id", + "name": "transactionId", + "type": "varint" + }, + { + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ - "option", - "string" + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] + } ] } ] ], - "packet_declare_recipes": [ + "packet_tags": [ "container", [ { - "name": "recipes", + "name": "tags", "type": [ "array", { @@ -4128,135 +4079,12 @@ "container", [ { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", + "name": "tagType", "type": "string" }, { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing": [ - "container", - [ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] + "name": "tags", + "type": "tags" } ] ] @@ -4265,34 +4093,151 @@ } ] ], - "packet_tags": [ + "packet_teams": [ "container", [ { - "name": "tags", + "name": "team", + "type": "string" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "name", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "friendlyFire", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "i8", + "2": "i8" + } + } + ] + }, + { + "name": "nameTagVisibility", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "collisionRule", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "formatting", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + }, + { + "name": "prefix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "suffix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "players", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ + "compareTo": "mode", + "default": "void", + "fields": { + "0": [ + "array", { - "name": "tagType", + "countType": "varint", "type": "string" - }, + } + ], + "3": [ + "array", { - "name": "tags", - "type": "tags" + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" } ] - ] + } } ] } ] ], - "packet_acknowledge_player_digging": [ + "packet_tile_entity_data": [ "container", [ { @@ -4300,800 +4245,737 @@ "type": "position" }, { - "name": "block", - "type": "varint" - }, - { - "name": "status", + "name": "action", "type": "varint" }, { - "name": "successful", - "type": "bool" + "name": "nbtData", + "type": "optionalNbt" } ] ], - "packet_sculk_vibration_signal": [ + "packet_trade_list": [ "container", [ { - "name": "sourcePosition", - "type": "position" - }, - { - "name": "destinationIdentifier", - "type": "string" + "name": "windowId", + "type": "varint" }, { - "name": "destination", + "name": "trades", "type": [ - "switch", + "array", { - "compareTo": "destinationIdentifier", - "fields": { - "block": "position", - "entityId": "varint" - }, - "default": "void" + "countType": "u8", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] } ] }, { - "name": "arrivalTicks", + "name": "villagerLevel", "type": "varint" - } - ] - ], - "packet_clear_titles": [ - "container", - [ - { - "name": "reset", - "type": "bool" - } - ] - ], - "packet_initialize_world_border": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "oldDiameter", - "type": "f64" - }, - { - "name": "newDiameter", - "type": "f64" - }, - { - "name": "speed", - "type": "varlong" }, { - "name": "portalTeleportBoundary", + "name": "experience", "type": "varint" }, { - "name": "warningBlocks", - "type": "varint" + "name": "isRegularVillager", + "type": "bool" }, { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_action_bar": [ - "container", - [ - { - "name": "text", - "type": "string" + "name": "canRestock", + "type": "bool" } ] ], - "packet_world_border_center": [ + "packet_unload_chunk": [ "container", [ { - "name": "x", - "type": "f64" + "name": "chunkX", + "type": "i32" }, { - "name": "z", - "type": "f64" + "name": "chunkZ", + "type": "i32" } ] ], - "packet_world_border_lerp_size": [ + "packet_unlock_recipes": [ "container", [ { - "name": "oldDiameter", - "type": "f64" + "name": "action", + "type": "varint" }, { - "name": "newDiameter", - "type": "f64" + "name": "craftingBookOpen", + "type": "bool" }, { - "name": "speed", - "type": "varlong" - } - ] - ], - "packet_world_border_size": [ - "container", - [ - { - "name": "diameter", - "type": "f64" - } - ] - ], - "packet_world_border_warning_delay": [ - "container", - [ - { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_world_border_warning_reach": [ - "container", - [ - { - "name": "warningBlocks", - "type": "varint" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_set_title_subtitle": [ - "container", - [ - { - "name": "text", - "type": "string" - } - ] - ], - "packet_set_title_text": [ - "container", - [ + "name": "filteringCraftable", + "type": "bool" + }, { - "name": "text", - "type": "string" - } - ] - ], - "packet_set_title_time": [ - "container", - [ + "name": "smeltingBookOpen", + "type": "bool" + }, { - "name": "fadeIn", - "type": "i32" + "name": "filteringSmeltable", + "type": "bool" }, { - "name": "stay", - "type": "i32" + "name": "blastFurnaceOpen", + "type": "bool" }, { - "name": "fadeOut", - "type": "i32" - } - ] - ], - "packet_simulation_distance": [ - "container", - [ + "name": "filteringBlastFurnace", + "type": "bool" + }, { - "name": "distance", - "type": "varint" - } - ] - ], - "packet": [ - "container", - [ + "name": "smokerBookOpen", + "type": "bool" + }, { - "name": "name", + "name": "filteringSmoker", + "type": "bool" + }, + { + "name": "recipes1", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "sculk_vibration_signal", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "clear_titles", - "0x11": "tab_complete", - "0x12": "declare_commands", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "initialize_world_border", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "update_light", - "0x26": "login", - "0x27": "map", - "0x28": "trade_list", - "0x29": "rel_entity_move", - "0x2a": "entity_move_look", - "0x2b": "entity_look", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "ping", - "0x31": "craft_recipe_response", - "0x32": "abilities", - "0x33": "end_combat_event", - "0x34": "enter_combat_event", - "0x35": "death_combat_event", - "0x36": "player_info", - "0x37": "face_player", - "0x38": "position", - "0x39": "unlock_recipes", - "0x3a": "entity_destroy", - "0x3b": "remove_entity_effect", - "0x3c": "resource_pack_send", - "0x3d": "respawn", - "0x3e": "entity_head_rotation", - "0x3f": "multi_block_change", - "0x40": "select_advancement_tab", - "0x41": "action_bar", - "0x42": "world_border_center", - "0x43": "world_border_lerp_size", - "0x44": "world_border_size", - "0x45": "world_border_warning_delay", - "0x46": "world_border_warning_reach", - "0x47": "camera", - "0x48": "held_item_slot", - "0x49": "update_view_position", - "0x4a": "update_view_distance", - "0x4b": "spawn_position", - "0x4c": "scoreboard_display_objective", - "0x4d": "entity_metadata", - "0x4e": "attach_entity", - "0x4f": "entity_velocity", - "0x50": "entity_equipment", - "0x51": "experience", - "0x52": "update_health", - "0x53": "scoreboard_objective", - "0x54": "set_passengers", - "0x55": "teams", - "0x56": "scoreboard_score", - "0x57": "simulation_distance", - "0x58": "set_title_subtitle", - "0x59": "update_time", - "0x5a": "set_title_text", - "0x5b": "set_title_time", - "0x5c": "entity_sound_effect", - "0x5d": "sound_effect", - "0x5e": "stop_sound", - "0x5f": "playerlist_header", - "0x60": "nbt_query_response", - "0x61": "collect", - "0x62": "entity_teleport", - "0x63": "advancements", - "0x64": "entity_update_attributes", - "0x65": "entity_effect", - "0x66": "declare_recipes", - "0x67": "tags" - } + "countType": "varint", + "type": "string" } ] }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", - "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_info": "packet_player_info", - "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "entity_sound_effect": "packet_entity_sound_effect", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "sculk_vibration_signal": "packet_sculk_vibration_signal", - "clear_titles": "packet_clear_titles", - "initialize_world_border": "packet_initialize_world_border", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "ping": "packet_ping", - "set_title_subtitle": "packet_set_title_subtitle", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time" + { + "name": "recipes2", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ - "container", - [ - { - "name": "teleportId", - "type": "varint" - } - ] ], - "packet_query_block_nbt": [ + "packet_update_health": [ "container", [ { - "name": "transactionId", + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_set_difficulty": [ + "packet_update_light": [ "container", [ { - "name": "newDifficulty", - "type": "u8" - } - ] - ], - "packet_edit_book": [ - "container", - [ + "name": "chunkX", + "type": "varint" + }, { - "name": "hand", + "name": "chunkZ", "type": "varint" }, { - "name": "pages", + "name": "trustEdges", + "type": "bool" + }, + { + "name": "skyLightMask", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "i64" } ] }, { - "name": "title", + "name": "blockLightMask", "type": [ - "option", - "string" + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] + }, + { + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } ] } ] ], - "packet_query_entity_nbt": [ + "packet_update_time": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "age", + "type": "i64" }, { - "name": "entityId", - "type": "varint" + "name": "time", + "type": "i64" } ] ], - "packet_pick_item": [ + "packet_update_view_distance": [ "container", [ { - "name": "slot", + "name": "viewDistance", "type": "varint" } ] ], - "packet_name_item": [ + "packet_update_view_position": [ "container", [ { - "name": "name", - "type": "string" + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" } ] ], - "packet_select_trade": [ + "packet_vehicle_move": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_set_beacon_effect": [ + "packet_window_items": [ "container", [ { - "name": "primary_effect", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "secondary_effect", + "name": "stateId", "type": "varint" + }, + { + "name": "items", + "type": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ] + }, + { + "name": "carriedItem", + "type": "slot" } ] ], - "packet_update_command_block": [ + "packet_world_border_center": [ "container", [ { - "name": "location", - "type": "position" + "name": "x", + "type": "f64" }, { - "name": "command", - "type": "string" + "name": "z", + "type": "f64" + } + ] + ], + "packet_world_border_lerp_size": [ + "container", + [ + { + "name": "oldDiameter", + "type": "f64" }, { - "name": "mode", - "type": "varint" + "name": "newDiameter", + "type": "f64" }, { - "name": "flags", - "type": "u8" + "name": "speed", + "type": "varlong" } ] ], - "packet_update_command_block_minecart": [ + "packet_world_border_size": [ "container", [ { - "name": "entityId", + "name": "diameter", + "type": "f64" + } + ] + ], + "packet_world_border_warning_delay": [ + "container", + [ + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_world_border_warning_reach": [ + "container", + [ + { + "name": "warningBlocks", "type": "varint" + } + ] + ], + "packet_world_event": [ + "container", + [ + { + "name": "effectId", + "type": "i32" }, { - "name": "command", - "type": "string" + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" }, { - "name": "track_output", + "name": "global", "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_world_particles": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" + "name": "particleId", + "type": "i32" }, { - "name": "name", - "type": "string" + "name": "longDistance", + "type": "bool" }, { - "name": "offset_x", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "offset_y", - "type": "i8" + "name": "y", + "type": "f64" }, { - "name": "offset_z", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "size_x", - "type": "i8" + "name": "offsetX", + "type": "f32" }, { - "name": "size_y", - "type": "i8" + "name": "offsetY", + "type": "f32" }, { - "name": "size_z", - "type": "i8" + "name": "offsetZ", + "type": "f32" }, { - "name": "mirror", - "type": "varint" + "name": "particleData", + "type": "f32" }, { - "name": "rotation", - "type": "varint" + "name": "particles", + "type": "i32" }, { - "name": "metadata", - "type": "string" - }, + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "integrity", - "type": "f32" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "generate_structure", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "pong", + "0x1e": "recipe_book", + "0x1f": "displayed_recipe", + "0x20": "name_item", + "0x21": "resource_pack_receive", + "0x22": "advancement_tab", + "0x23": "select_trade", + "0x24": "set_beacon_effect", + "0x25": "held_item_slot", + "0x26": "update_command_block", + "0x27": "update_command_block_minecart", + "0x28": "set_creative_slot", + "0x29": "update_jigsaw_block", + "0x2a": "update_structure_block", + "0x2b": "update_sign", + "0x2c": "arm_animation", + "0x2d": "spectate", + "0x2e": "block_place", + "0x2f": "use_item" + }, + "type": "varint" + } + ] }, { - "name": "seed", - "type": "varlong" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat": "packet_chat", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_payload": "packet_custom_payload", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" + } + } + ] + } + ] + ], + "packet_abilities": [ + "container", + [ { "name": "flags", - "type": "u8" + "type": "i8" } ] ], - "packet_tab_complete": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "text", - "type": "string" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_chat": [ + "packet_arm_animation": [ "container", [ { - "name": "message", - "type": "string" + "name": "hand", + "type": "varint" } ] ], - "packet_client_command": [ + "packet_block_dig": [ "container", [ { - "name": "actionId", + "name": "status", "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_settings": [ + "packet_block_place": [ "container", [ { - "name": "locale", - "type": "string" + "name": "hand", + "type": "varint" }, { - "name": "viewDistance", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "chatFlags", + "name": "direction", "type": "varint" }, { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" + "name": "cursorX", + "type": "f32" }, - { - "name": "mainHand", - "type": "varint" + { + "name": "cursorY", + "type": "f32" }, { - "name": "enableTextFiltering", - "type": "bool" + "name": "cursorZ", + "type": "f32" }, { - "name": "enableServerListing", + "name": "insideBlock", "type": "bool" } ] ], - "packet_enchant_item": [ + "packet_chat": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "message", + "type": "string" } ] ], - "packet_window_click": [ + "packet_client_command": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "mode", + "name": "actionId", "type": "varint" - }, - { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - }, - { - "name": "cursorItem", - "type": "slot" } ] ], @@ -5106,6 +4988,23 @@ } ] ], + "packet_craft_recipe_request": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "recipe", + "type": "string" + }, + { + "name": "makeAll", + "type": "bool" + } + ] + ], "packet_custom_payload": [ "container", [ @@ -5119,72 +5018,76 @@ } ] ], - "packet_use_entity": [ + "packet_displayed_recipe": [ "container", [ { - "name": "target", - "type": "varint" - }, + "name": "recipeId", + "type": "string" + } + ] + ], + "packet_edit_book": [ + "container", + [ { - "name": "mouse", + "name": "hand", "type": "varint" }, { - "name": "x", + "name": "pages", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" + "countType": "varint", + "type": "string" } ] }, { - "name": "y", + "name": "title", "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } + "option", + "string" ] + } + ] + ], + "packet_enchant_item": [ + "container", + [ + { + "name": "windowId", + "type": "i8" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "enchantment", + "type": "i8" + } + ] + ], + "packet_entity_action": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "actionId", + "type": "varint" }, { - "name": "sneaking", + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ + { + "name": "onGround", "type": "bool" } ] @@ -5206,60 +5109,36 @@ } ] ], - "packet_keep_alive": [ + "packet_held_item_slot": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "slotId", + "type": "i16" } ] ], - "packet_lock_difficulty": [ + "packet_keep_alive": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_position": [ + "packet_lock_difficulty": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "onGround", + "name": "locked", "type": "bool" } ] ], - "packet_position_look": [ + "packet_look": [ "container", [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, { "name": "yaw", "type": "f32" @@ -5274,33 +5153,55 @@ } ] ], - "packet_look": [ + "packet_name_item": [ "container", [ { - "name": "yaw", - "type": "f32" - }, + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ { - "name": "pitch", - "type": "f32" - }, + "name": "slot", + "type": "varint" + } + ] + ], + "packet_pong": [ + "container", + [ { - "name": "onGround", - "type": "bool" + "name": "id", + "type": "i32" } ] ], - "packet_flying": [ + "packet_position": [ "container", [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "onGround", "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_position_look": [ "container", [ { @@ -5322,79 +5223,165 @@ { "name": "pitch", "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_steer_boat": [ + "packet_query_block_nbt": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "transactionId", + "type": "varint" }, { - "name": "rightPaddle", - "type": "bool" + "name": "location", + "type": "position" } ] ], - "packet_craft_recipe_request": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "transactionId", + "type": "varint" }, { - "name": "recipe", - "type": "string" + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_recipe_book": [ + "container", + [ + { + "name": "bookId", + "type": "varint" }, { - "name": "makeAll", + "name": "bookOpen", + "type": "bool" + }, + { + "name": "filterActive", "type": "bool" } ] ], - "packet_abilities": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "result", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_select_trade": [ "container", [ { - "name": "status", + "name": "slot", + "type": "varint" + } + ] + ], + "packet_set_beacon_effect": [ + "container", + [ + { + "name": "primary_effect", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "secondary_effect", + "type": "varint" + } + ] + ], + "packet_set_creative_slot": [ + "container", + [ + { + "name": "slot", + "type": "i16" }, { - "name": "face", - "type": "i8" + "name": "item", + "type": "slot" } ] ], - "packet_entity_action": [ + "packet_set_difficulty": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "newDifficulty", + "type": "u8" + } + ] + ], + "packet_settings": [ + "container", + [ + { + "name": "locale", + "type": "string" }, { - "name": "actionId", + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "jumpBoost", + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", "type": "varint" + }, + { + "name": "enableTextFiltering", + "type": "bool" + }, + { + "name": "enableServerListing", + "type": "bool" + } + ] + ], + "packet_spectate": [ + "container", + [ + { + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ + { + "name": "leftPaddle", + "type": "bool" + }, + { + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5415,60 +5402,63 @@ } ] ], - "packet_displayed_recipe": [ - "container", - [ - { - "name": "recipeId", - "type": "string" - } - ] - ], - "packet_recipe_book": [ + "packet_tab_complete": [ "container", [ { - "name": "bookId", + "name": "transactionId", "type": "varint" }, { - "name": "bookOpen", - "type": "bool" - }, - { - "name": "filterActive", - "type": "bool" + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "location", + "type": "position" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block_minecart": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5526,53 +5516,141 @@ } ] ], - "packet_arm_animation": [ + "packet_update_structure_block": [ "container", [ { - "name": "hand", - "type": "varint" + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "metadata", + "type": "string" + }, + { + "name": "integrity", + "type": "f32" + }, + { + "name": "seed", + "type": "varlong" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "hand", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "mouse", + "type": "varint" }, { - "name": "direction", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "insideBlock", + "name": "sneaking", "type": "bool" } ] @@ -5586,157 +5664,79 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] - } - ] - ], - "packet_pong": [ - "container", - [ + "name": "y", + "type": "f64" + }, { - "name": "id", - "type": "i32" + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "generate_structure", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "pong", - "0x1e": "recipe_book", - "0x1f": "displayed_recipe", - "0x20": "name_item", - "0x21": "resource_pack_receive", - "0x22": "advancement_tab", - "0x23": "select_trade", - "0x24": "set_beacon_effect", - "0x25": "held_item_slot", - "0x26": "update_command_block", - "0x27": "update_command_block_minecart", - "0x28": "set_creative_slot", - "0x29": "update_jigsaw_block", - "0x2a": "update_structure_block", - "0x2b": "update_sign", - "0x2c": "arm_animation", - "0x2d": "spectate", - "0x2e": "block_place", - "0x2f": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", + "name": "stateId", + "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "displayed_recipe": "packet_displayed_recipe", - "recipe_book": "packet_recipe_book", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab", - "pong": "packet_pong" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "slot" + } + ] + ] } ] + }, + { + "name": "cursorItem", + "type": "slot" } ] ] diff --git a/data/pc/1.19.2/protocol.json b/data/pc/1.19.2/protocol.json index 0a7d5e1e5..819c017fa 100644 --- a/data/pc/1.19.2/protocol.json +++ b/data/pc/1.19.2/protocol.json @@ -1,595 +1,113 @@ { "types": { - "varint": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "chunkBlockEntity": [ "container", [ { - "name": "x", - "type": "i16" + "anon": true, + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 + } + ] + ] }, { "name": "y", "type": "i16" }, { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" + "name": "type", + "type": "varint" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] + "name": "nbtData", + "type": "optionalNbt" } ] ], - "particle": [ + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "2": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", - [ - { - "name": "red", - "type": "f32" - }, - { - "name": "green", - "type": "f32" - }, - { - "name": "blue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - } - ] - ], - "15": [ - "container", + "bitfield", [ { - "name": "fromRed", - "type": "f32" - }, - { - "name": "fromGreen", - "type": "f32" - }, - { - "name": "fromBlue", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "scale", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "toRed", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "toGreen", - "type": "f32" + "name": "has_command", + "signed": false, + "size": 1 }, { - "name": "toBlue", - "type": "f32" - } - ] - ], - "25": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "30": [ - "container", - [ - { - "name": "rotation", - "type": "f32" + "name": "command_node_type", + "signed": false, + "size": 2 } ] - ], - "39": [ - "container", - [ - { - "name": "item", - "type": "slot" + ] + }, + { + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + }, + { + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" } - ] - ], - "40": [ - "container", - [ - { - "name": "positionType", - "type": "string" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:entity": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entityEyeHeight", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:entity": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "destination", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:block": "position", - "minecraft:entity": "varint" - } - } - ] - }, - { - "name": "ticks", - "type": "varint" - } - ] - ], - "92": [ - "container", - [ - { - "name": "delayInTicksBeforeShown", - "type": "varint" - } - ] - ] - }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "previousMessages": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "messageSender", - "type": "UUID" - }, - { - "name": "messageSignature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] - } - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint", - "19": "varint", - "20": "varint", - "21": [ - "option", - "string" - ], - "22": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] } ] - ] - } - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" }, { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "chunkBlockEntity": [ - "container", - [ - { - "anon": true, - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "extraNodeData", + "name": "extraNodeData", "type": [ "switch", { @@ -617,7 +135,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "brigadier:bool", "1": "brigadier:float", @@ -667,7 +184,8 @@ "45": "minecraft:template_mirror", "46": "minecraft:template_rotation", "47": "minecraft:uuid" - } + }, + "type": "varint" } ] }, @@ -679,7 +197,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -689,18 +207,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -711,10 +229,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -724,16 +242,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -743,18 +261,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -765,10 +283,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -778,10 +296,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -797,18 +315,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -819,10 +337,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -832,10 +350,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -851,18 +369,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -873,10 +391,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -886,10 +404,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -898,83 +416,70 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", + "minecraft:resource": [ + "container", [ { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false + "name": "registry", + "type": "string" } ] ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:time": "void", "minecraft:resource_or_tag": [ "container", [ @@ -984,34 +489,473 @@ } ] ], - "minecraft:resource": [ - "container", + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", [ { - "name": "registry", - "type": "string" + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 } ] ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", "minecraft:template_mirror": "void", "minecraft:template_rotation": "void", - "minecraft:uuid": "void" + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" + } + } + ] + }, + { + "name": "suggestionType", + "type": [ + "switch", + { + "compareTo": "../flags/has_custom_suggestions", + "default": "void", + "fields": { + "1": "string" } } ] + } + ] + ] + } + } + ] + } + ] + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint", + "19": "varint", + "20": "varint", + "21": [ + "option", + "string" + ], + "22": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "2": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "15": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "25": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "30": [ + "container", + [ + { + "name": "rotation", + "type": "f32" + } + ] + ], + "39": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ], + "40": [ + "container", + [ + { + "name": "positionType", + "type": "string" + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "positionType", + "default": "void", + "fields": { + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "entityEyeHeight", + "type": [ + "switch", + { + "compareTo": "positionType", + "default": "void", + "fields": { + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "destination", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "minecraft:block": "position", + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] + ], + "92": [ + "container", + [ + { + "name": "delayInTicksBeforeShown", + "type": "varint" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "previousMessages": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "messageSender", + "type": "UUID" + }, + { + "name": "messageSignature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ] + } + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" }, { - "name": "suggestionType", - "type": [ - "switch", - { - "compareTo": "../flags/has_custom_suggestions", - "fields": { - "1": "string" - }, - "default": "void" - } - ] + "name": "nbtData", + "type": "optionalNbt" } ] ] @@ -1020,7 +964,63 @@ ] } ] - ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -1033,8 +1033,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -1054,6 +1054,46 @@ }, "toServer": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", + [ + { + "name": "payload", + "type": "u8" + } + ] + ], "packet_set_protocol": [ "container", [ @@ -1074,16 +1114,13 @@ "type": "varint" } ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1092,11 +1129,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -1107,38 +1144,36 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_ping": [ + "packet_server_info": [ "container", [ { - "name": "time", - "type": "i64" + "name": "response", + "type": "string" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1147,11 +1182,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "server_info", + "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -1162,21 +1197,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -1187,6 +1214,16 @@ } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1195,11 +1232,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" + }, + "type": "varint" } ] }, @@ -1210,20 +1250,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -1260,6 +1306,23 @@ } ] ], + "packet_login_plugin_request": [ + "container", + [ + { + "name": "messageId", + "type": "varint" + }, + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], "packet_success": [ "container", [ @@ -1298,36 +1361,14 @@ ] ] } - ] - } - ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], - "packet_login_plugin_request": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1336,14 +1377,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", + "0x00": "login_start", "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" - } + "0x02": "login_plugin_response" + }, + "type": "varint" } ] }, @@ -1354,69 +1393,14 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - [ - "container", - [ - { - "name": "timestamp", - "type": "i64" - }, - { - "name": "publicKey", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "signature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] - ] - }, - { - "name": "playerUUID", - "type": [ - "option", - "UUID" - ] - } - ] ], "packet_encryption_begin": [ "container", @@ -1441,11 +1425,15 @@ { "compareTo": "hasVerifyToken", "fields": { - "true": [ + "false": [ "container", [ { - "name": "verifyToken", + "name": "salt", + "type": "i64" + }, + { + "name": "messageSignature", "type": [ "buffer", { @@ -1455,15 +1443,11 @@ } ] ], - "false": [ + "true": [ "container", [ { - "name": "salt", - "type": "i64" - }, - { - "name": "messageSignature", + "name": "verifyToken", "type": [ "buffer", { @@ -1495,6 +1479,61 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + [ + "container", + [ + { + "name": "timestamp", + "type": "i64" + }, + { + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "signature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ] + ] + }, + { + "name": "playerUUID", + "type": [ + "option", + "UUID" + ] + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1503,12 +1542,117 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "named_entity_spawn", + "0x03": "animation", + "0x04": "statistics", + "0x05": "acknowledge_player_digging", + "0x06": "block_break_animation", + "0x07": "tile_entity_data", + "0x08": "block_action", + "0x09": "block_change", + "0x0a": "boss_bar", + "0x0b": "difficulty", + "0x0c": "chat_preview", + "0x0d": "clear_titles", + "0x0e": "tab_complete", + "0x0f": "declare_commands", + "0x10": "close_window", + "0x11": "window_items", + "0x12": "craft_progress_bar", + "0x13": "set_slot", + "0x14": "set_cooldown", + "0x15": "chat_suggestions", + "0x16": "custom_payload", + "0x17": "named_sound_effect", + "0x18": "hide_message", + "0x19": "kick_disconnect", + "0x1a": "entity_status", + "0x1b": "explosion", + "0x1c": "unload_chunk", + "0x1d": "game_state_change", + "0x1e": "open_horse_window", + "0x1f": "initialize_world_border", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "vehicle_move", + "0x2c": "open_book", + "0x2d": "open_window", + "0x2e": "open_sign_entity", + "0x2f": "ping", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "message_header", + "0x33": "player_chat", + "0x34": "end_combat_event", + "0x35": "enter_combat_event", + "0x36": "death_combat_event", + "0x37": "player_info", + "0x38": "face_player", + "0x39": "position", + "0x3a": "unlock_recipes", + "0x3b": "entity_destroy", + "0x3c": "remove_entity_effect", + "0x3d": "resource_pack_send", + "0x3e": "respawn", + "0x3f": "entity_head_rotation", + "0x40": "multi_block_change", + "0x41": "select_advancement_tab", + "0x42": "server_data", + "0x43": "action_bar", + "0x44": "world_border_center", + "0x45": "world_border_lerp_size", + "0x46": "world_border_size", + "0x47": "world_border_warning_delay", + "0x48": "world_border_warning_reach", + "0x49": "camera", + "0x4a": "held_item_slot", + "0x4b": "update_view_position", + "0x4c": "update_view_distance", + "0x4d": "spawn_position", + "0x4e": "should_display_chat_preview", + "0x4f": "scoreboard_display_objective", + "0x50": "entity_metadata", + "0x51": "attach_entity", + "0x52": "entity_velocity", + "0x53": "entity_equipment", + "0x54": "experience", + "0x55": "update_health", + "0x56": "scoreboard_objective", + "0x57": "set_passengers", + "0x58": "teams", + "0x59": "scoreboard_score", + "0x5a": "simulation_distance", + "0x5b": "set_title_subtitle", + "0x5c": "update_time", + "0x5d": "set_title_text", + "0x5e": "set_title_time", + "0x5f": "entity_sound_effect", + "0x60": "sound_effect", + "0x61": "stop_sound", + "0x62": "system_chat", + "0x63": "playerlist_header", + "0x64": "nbt_query_response", + "0x65": "collect", + "0x66": "entity_teleport", + "0x67": "advancements", + "0x68": "entity_update_attributes", + "0x69": "entity_effect", + "0x6a": "declare_recipes", + "0x6b": "tags" + }, + "type": "varint" } ] }, @@ -1519,169 +1663,152 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat_preview": "packet_chat_preview", + "chat_suggestions": "packet_chat_suggestions", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "death_combat_event": "packet_death_combat_event", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "hide_message": "packet_hide_message", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "message_header": "packet_message_header", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "player_chat": "packet_player_chat", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "server_data": "packet_server_data", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "should_display_chat_preview": "packet_should_display_chat_preview", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "system_chat": "packet_system_chat", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "trade_list": "packet_trade_list", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "objectData", - "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] ], - "packet_named_entity_spawn": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", + "name": "flags", "type": "i8" }, { - "name": "pitch", - "type": "i8" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "animation", - "type": "u8" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "packet_acknowledge_player_digging": [ + "container", + [ + { + "name": "sequenceId", + "type": "varint" + } + ] + ], + "packet_action_bar": [ + "container", + [ + { + "name": "text", + "type": "string" } ] ], @@ -1747,23 +1874,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1774,10 +1901,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1894,7 +2021,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1902,29 +2029,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -1949,6 +2068,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1979,11 +2115,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1993,11 +2129,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -2007,11 +2143,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -2021,11 +2157,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -2035,26 +2171,22 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" - }, - { - "name": "difficultyLocked", - "type": "bool" + "name": "cameraId", + "type": "varint" } ] ], @@ -2074,170 +2206,31 @@ } ] ], - "packet_tab_complete": [ + "packet_chat_suggestions": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", + "name": "action", "type": "varint" }, { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "packet_declare_commands": [ - "container", - [ - { - "name": "nodes", + "name": "entries", "type": [ "array", { "countType": "varint", - "type": "command_node" - } - ] - }, - { - "name": "rootIndex", - "type": "varint" - } - ] - ], - "packet_face_player": [ - "container", - [ - { - "name": "feet_eyes", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entity_feet_eyes", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "string" - }, - "default": "void" + "type": "string" } ] } ] ], - "packet_nbt_query_response": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "nbt", - "type": "optionalNbt" - } - ] - ], - "packet_multi_block_change": [ + "packet_clear_titles": [ "container", [ { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] - }, - { - "name": "suppressLightUpdates", + "name": "reset", "type": "bool" - }, - { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -2250,47 +2243,20 @@ } ] ], - "packet_open_window": [ + "packet_collect": [ "container", [ { - "name": "windowId", + "name": "collectedEntityId", "type": "varint" }, { - "name": "inventoryType", + "name": "collectorEntityId", "type": "varint" }, { - "name": "windowTitle", - "type": "string" - } - ] - ], - "packet_window_items": [ - "container", - [ - { - "name": "windowId", - "type": "u8" - }, - { - "name": "stateId", + "name": "pickupItemCount", "type": "varint" - }, - { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ] - }, - { - "name": "carriedItem", - "type": "slot" } ] ], @@ -2311,7 +2277,7 @@ } ] ], - "packet_set_slot": [ + "packet_craft_recipe_response": [ "container", [ { @@ -2319,521 +2285,757 @@ "type": "i8" }, { - "name": "stateId", - "type": "varint" - }, + "name": "recipe", + "type": "string" + } + ] + ], + "packet_custom_payload": [ + "container", + [ { - "name": "slot", - "type": "i16" + "name": "channel", + "type": "string" }, { - "name": "item", - "type": "slot" + "name": "data", + "type": "restBuffer" } ] ], - "packet_set_cooldown": [ + "packet_death_combat_event": [ "container", [ { - "name": "itemID", + "name": "playerId", "type": "varint" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "entityId", + "type": "i32" + }, + { + "name": "message", + "type": "string" } ] ], - "packet_chat_suggestions": [ + "packet_declare_commands": [ "container", [ { - "name": "action", - "type": "varint" + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "entries", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { "countType": "varint", - "type": "string" + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] + } + ] + ] } ] } ] ], - "packet_custom_payload": [ + "packet_difficulty": [ "container", [ { - "name": "channel", - "type": "string" + "name": "difficulty", + "type": "u8" }, { - "name": "data", - "type": "restBuffer" + "name": "difficultyLocked", + "type": "bool" } ] ], - "packet_named_sound_effect": [ + "packet_end_combat_event": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "duration", "type": "varint" }, { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", + "name": "entityId", "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "seed", - "type": "i64" } ] ], - "packet_hide_message": [ + "packet_enter_combat_event": [ + "container", + [] + ], + "packet_entity_destroy": [ "container", [ { - "name": "signature", + "name": "entityIds", "type": [ - "buffer", + "array", { - "countType": "varint" + "countType": "varint", + "type": "varint" } - ] - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" + ] } ] ], - "packet_entity_status": [ + "packet_entity_effect": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" - } - ] - ], - "packet_explosion": [ - "container", - [ + "name": "effectId", + "type": "varint" + }, { - "name": "x", - "type": "f32" + "name": "amplifier", + "type": "i8" }, { - "name": "y", - "type": "f32" + "name": "duration", + "type": "varint" }, { - "name": "z", - "type": "f32" + "name": "hideParticles", + "type": "i8" }, { - "name": "radius", - "type": "f32" + "name": "factorCodec", + "type": [ + "option", + "nbt" + ] + } + ] + ], + "packet_entity_equipment": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "affectedBlockOffsets", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "varint", "type": [ "container", [ { - "name": "x", - "type": "i8" - }, - { - "name": "y", + "name": "slot", "type": "i8" }, { - "name": "z", - "type": "i8" + "name": "item", + "type": "slot" } ] ] } ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, - { - "name": "playerMotionY", - "type": "f32" - }, - { - "name": "playerMotionZ", - "type": "f32" } ] ], - "packet_unload_chunk": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "headYaw", + "type": "i8" } ] ], - "packet_game_state_change": [ + "packet_entity_look": [ "container", [ { - "name": "reason", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "gameMode", - "type": "f32" + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_open_horse_window": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "nbSlots", + "name": "entityId", "type": "varint" }, { - "name": "entityId", - "type": "i32" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_keep_alive": [ + "packet_entity_move_look": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "entityId", + "type": "varint" + }, + { + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_map_chunk": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "x", - "type": "i32" + "name": "soundId", + "type": "varint" }, { - "name": "z", - "type": "i32" + "name": "soundCategory", + "type": "varint" }, { - "name": "heightmaps", - "type": "nbt" + "name": "entityId", + "type": "varint" }, { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "volume", + "type": "f32" }, { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "chunkBlockEntity" - } - ] + "name": "pitch", + "type": "f32" }, { - "name": "trustEdges", - "type": "bool" + "name": "seed", + "type": "i64" + } + ] + ], + "packet_entity_status": [ + "container", + [ + { + "name": "entityId", + "type": "i32" }, { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "entityStatus", + "type": "i8" + } + ] + ], + "packet_entity_teleport": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "x", + "type": "f64" }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "y", + "type": "f64" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "z", + "type": "f64" }, { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" }, { - "name": "blockLight", + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", "type": [ "array", { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] ] } ] } ] ], - "packet_world_event": [ + "packet_entity_velocity": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "global", - "type": "bool" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_world_particles": [ + "packet_experience": [ "container", [ { - "name": "particleId", - "type": "varint" + "name": "experienceBar", + "type": "f32" }, { - "name": "longDistance", - "type": "bool" + "name": "level", + "type": "varint" }, + { + "name": "totalExperience", + "type": "varint" + } + ] + ], + "packet_explosion": [ + "container", + [ { "name": "x", - "type": "f64" + "type": "f32" }, { "name": "y", - "type": "f64" + "type": "f32" }, { "name": "z", - "type": "f64" - }, - { - "name": "offsetX", "type": "f32" }, { - "name": "offsetY", + "name": "radius", "type": "f32" }, { - "name": "offsetZ", - "type": "f32" + "name": "affectedBlockOffsets", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + } + ] + ] + } + ] }, { - "name": "particleData", + "name": "playerMotionX", "type": "f32" }, { - "name": "particles", - "type": "i32" + "name": "playerMotionY", + "type": "f32" }, { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_update_light": [ + "packet_face_player": [ "container", [ { - "name": "chunkX", + "name": "feet_eyes", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "trustEdges", + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "isEntity", "type": "bool" }, { - "name": "skyLightMask", + "name": "entityId", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } } ] }, { - "name": "blockLightMask", + "name": "entity_feet_eyes", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] + } + ] + ], + "packet_game_state_change": [ + "container", + [ + { + "name": "reason", + "type": "u8" }, { - "name": "emptySkyLightMask", + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slot", + "type": "i8" + } + ] + ], + "packet_hide_message": [ + "container", + [ + { + "name": "signature", "type": [ - "array", + "buffer", { - "countType": "varint", - "type": "i64" + "countType": "varint" } ] + } + ] + ], + "packet_initialize_world_border": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "z", + "type": "f64" }, { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "oldDiameter", + "type": "f64" + }, + { + "name": "newDiameter", + "type": "f64" }, { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "speed", + "type": "varint" + }, + { + "name": "portalTeleportBoundary", + "type": "varint" + }, + { + "name": "warningBlocks", + "type": "varint" + }, + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "string" } ] ], @@ -2996,10 +3198,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -3009,10 +3211,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -3022,10 +3224,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -3035,125 +3237,214 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_trade_list": [ + "packet_map_chunk": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "trades", + "name": "z", + "type": "i32" + }, + { + "name": "heightmaps", + "type": "nbt" + }, + { + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": "slot" - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ] - ] + "type": "chunkBlockEntity" } ] }, { - "name": "villagerLevel", - "type": "varint" + "name": "trustEdges", + "type": "bool" }, { - "name": "experience", - "type": "varint" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "isRegularVillager", - "type": "bool" + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "canRestock", - "type": "bool" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] + }, + { + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], - "packet_rel_entity_move": [ + "packet_message_header": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "previousSignature", + "type": [ + "option", + [ + "buffer", + { + "countType": "varint" + } + ] + ] }, { - "name": "dX", - "type": "i16" + "name": "senderUuid", + "type": "UUID" }, { - "name": "dY", - "type": "i16" + "name": "signature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "messageHash", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ], + "packet_multi_block_change": [ + "container", + [ + { + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] + ] }, { - "name": "dZ", - "type": "i16" + "name": "suppressLightUpdates", + "type": "bool" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -3161,16 +3452,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dY", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -3179,56 +3474,56 @@ { "name": "pitch", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "pitch", - "type": "i8" + "name": "soundCategory", + "type": "varint" }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { "name": "pitch", "type": "f32" + }, + { + "name": "seed", + "type": "i64" + } + ] + ], + "packet_nbt_query_response": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" } ] ], @@ -3241,6 +3536,23 @@ } ] ], + "packet_open_horse_window": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" + } + ] + ], "packet_open_sign_entity": [ "container", [ @@ -3250,33 +3562,29 @@ } ] ], - "packet_craft_recipe_response": [ + "packet_open_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "varint" }, { - "name": "recipe", + "name": "inventoryType", + "type": "varint" + }, + { + "name": "windowTitle", "type": "string" } ] ], - "packet_abilities": [ + "packet_ping": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "id", + "type": "i32" } ] ], @@ -3348,6 +3656,7 @@ "switch", { "compareTo": "filterType", + "default": "void", "fields": { "2": [ "array", @@ -3356,8 +3665,7 @@ "type": "i64" } ] - }, - "default": "void" + } } ] }, @@ -3378,40 +3686,6 @@ } ] ], - "packet_end_combat_event": [ - "container", - [ - { - "name": "duration", - "type": "varint" - }, - { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ - "container", - [ - { - "name": "playerId", - "type": "varint" - }, - { - "name": "entityId", - "type": "i32" - }, - { - "name": "message", - "type": "string" - } - ] - ], "packet_player_info": [ "container", [ @@ -3420,14 +3694,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -3527,37 +3801,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -3569,125 +3843,78 @@ } ] ], - "packet_position": [ + "packet_playerlist_header": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "flags", - "type": "i8" - }, - { - "name": "teleportId", - "type": "varint" + "name": "header", + "type": "string" }, { - "name": "dismountVehicle", - "type": "bool" + "name": "footer", + "type": "string" } ] ], - "packet_unlock_recipes": [ + "packet_position": [ "container", [ { - "name": "action", - "type": "varint" - }, - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "filteringCraftable", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" + "name": "x", + "type": "f64" }, { - "name": "filteringSmeltable", - "type": "bool" + "name": "y", + "type": "f64" }, { - "name": "blastFurnaceOpen", - "type": "bool" + "name": "z", + "type": "f64" }, { - "name": "filteringBlastFurnace", - "type": "bool" + "name": "yaw", + "type": "f32" }, { - "name": "smokerBookOpen", - "type": "bool" + "name": "pitch", + "type": "f32" }, { - "name": "filteringSmoker", - "type": "bool" + "name": "flags", + "type": "i8" }, { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "teleportId", + "type": "varint" }, { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] + "name": "dismountVehicle", + "type": "bool" } ] ], - "packet_entity_destroy": [ + "packet_rel_entity_move": [ "container", [ { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "entityId", + "type": "varint" + }, + { + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -3784,82 +4011,143 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_camera": [ + "packet_scoreboard_objective": [ "container", [ { - "name": "cameraId", - "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + "name": "name", + "type": "string" + }, { - "name": "slot", + "name": "action", "type": "i8" + }, + { + "name": "displayText", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "type", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], - "packet_update_view_position": [ + "packet_scoreboard_score": [ "container", [ { - "name": "chunkX", - "type": "varint" + "name": "itemName", + "type": "string" }, { - "name": "chunkZ", + "name": "action", "type": "varint" + }, + { + "name": "scoreName", + "type": "string" + }, + { + "name": "value", + "type": [ + "switch", + { + "compareTo": "action", + "default": "varint", + "fields": { + "1": "void" + } + } + ] } ] ], - "packet_update_view_distance": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "viewDistance", - "type": "varint" + "name": "id", + "type": [ + "option", + "string" + ] } ] ], - "packet_should_display_chat_preview": [ + "packet_server_data": [ "container", [ { - "name": "should_display_chat_preview", + "name": "motd", + "type": [ + "option", + "string" + ] + }, + { + "name": "icon", + "type": [ + "option", + "string" + ] + }, + { + "name": "previewsChat", + "type": "bool" + }, + { + "name": "enforcesSecureChat", "type": "bool" } ] ], - "packet_scoreboard_display_objective": [ + "packet_set_cooldown": [ "container", [ { - "name": "position", - "type": "i8" + "name": "itemID", + "type": "varint" }, { - "name": "name", - "type": "string" + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_entity_metadata": [ + "packet_set_passengers": [ "container", [ { @@ -3867,143 +4155,129 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_attach_entity": [ + "packet_set_slot": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "windowId", + "type": "i8" }, { - "name": "vehicleId", - "type": "i32" + "name": "stateId", + "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_entity_velocity": [ + "packet_set_title_subtitle": [ "container", [ { - "name": "entityId", - "type": "varint" - }, + "name": "text", + "type": "string" + } + ] + ], + "packet_set_title_text": [ + "container", + [ { - "name": "velocity", - "type": "vec3i16" + "name": "text", + "type": "string" } ] ], - "packet_entity_equipment": [ + "packet_set_title_time": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "fadeIn", + "type": "i32" }, { - "name": "equipments", - "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] + "name": "stay", + "type": "i32" + }, + { + "name": "fadeOut", + "type": "i32" } ] ], - "packet_experience": [ + "packet_should_display_chat_preview": [ "container", [ { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" - }, + "name": "should_display_chat_preview", + "type": "bool" + } + ] + ], + "packet_simulation_distance": [ + "container", + [ { - "name": "totalExperience", + "name": "distance", "type": "varint" } ] ], - "packet_update_health": [ + "packet_sound_effect": [ "container", [ { - "name": "health", - "type": "f32" + "name": "soundId", + "type": "varint" }, { - "name": "food", + "name": "soundCategory", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_scoreboard_objective": [ - "container", - [ + "name": "x", + "type": "i32" + }, { - "name": "name", - "type": "string" + "name": "y", + "type": "i32" }, { - "name": "action", - "type": "i8" + "name": "z", + "type": "i32" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "volume", + "type": "f32" }, { - "name": "type", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], - "packet_set_passengers": [ + "packet_spawn_entity": [ "container", [ { @@ -4011,188 +4285,69 @@ "type": "varint" }, { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_teams": [ - "container", - [ - { - "name": "team", - "type": "string" + "name": "objectUUID", + "type": "UUID" }, { - "name": "mode", - "type": "i8" + "name": "type", + "type": "varint" }, { - "name": "name", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "x", + "type": "f64" }, { - "name": "friendlyFire", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" - } - ] + "name": "y", + "type": "f64" }, { - "name": "nameTagVisibility", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "z", + "type": "f64" }, { - "name": "collisionRule", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "formatting", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "prefix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "headPitch", + "type": "i8" }, { - "name": "suffix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "objectData", + "type": "varint" }, { - "name": "players", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_scoreboard_score": [ + "packet_spawn_entity_experience_orb": [ "container", [ { - "name": "itemName", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "scoreName", - "type": "string" + "name": "y", + "type": "f64" }, { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" - } - ] + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], @@ -4209,45 +4364,34 @@ } ] ], - "packet_update_time": [ - "container", - [ - { - "name": "age", - "type": "i64" - }, - { - "name": "time", - "type": "i64" - } - ] - ], - "packet_entity_sound_effect": [ + "packet_statistics": [ "container", [ { - "name": "soundId", - "type": "varint" - }, - { - "name": "soundCategory", - "type": "varint" - }, - { - "name": "entityId", - "type": "varint" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "seed", - "type": "i64" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] } ] ], @@ -4264,11 +4408,11 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "1": "varint", "3": "varint" - }, - "default": "void" + } } ] }, @@ -4278,53 +4422,16 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "2": "string", "3": "string" - }, - "default": "void" + } } ] } ] ], - "packet_sound_effect": [ - "container", - [ - { - "name": "soundId", - "type": "varint" - }, - { - "name": "soundCategory", - "type": "varint" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "seed", - "type": "i64" - } - ] - ], "packet_system_chat": [ "container", [ @@ -4338,78 +4445,53 @@ } ] ], - "packet_playerlist_header": [ - "container", - [ - { - "name": "header", - "type": "string" - }, - { - "name": "footer", - "type": "string" - } - ] - ], - "packet_collect": [ + "packet_tab_complete": [ "container", [ { - "name": "collectedEntityId", + "name": "transactionId", "type": "varint" }, { - "name": "collectorEntityId", + "name": "start", "type": "varint" }, { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ - { - "name": "entityId", + "name": "length", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] } ] ], - "packet_entity_update_attributes": [ + "packet_tags": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "properties", + "name": "tags", "type": [ "array", { @@ -4418,38 +4500,12 @@ "container", [ { - "name": "name", + "name": "tagType", "type": "string" }, { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] + "name": "tags", + "type": "tags" } ] ] @@ -4458,232 +4514,176 @@ } ] ], - "packet_entity_effect": [ + "packet_teams": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "effectId", - "type": "varint" + "name": "team", + "type": "string" }, { - "name": "amplifier", + "name": "mode", "type": "i8" }, { - "name": "duration", - "type": "varint" + "name": "name", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] }, { - "name": "hideParticles", - "type": "i8" + "name": "friendlyFire", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "i8", + "2": "i8" + } + } + ] }, { - "name": "factorCodec", + "name": "nameTagVisibility", "type": [ - "option", - "nbt" + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } ] - } - ] - ], - "packet_select_advancement_tab": [ - "container", - [ + }, { - "name": "id", + "name": "collisionRule", "type": [ - "option", - "string" + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } ] - } - ] - ], - "packet_server_data": [ - "container", - [ + }, { - "name": "motd", + "name": "formatting", "type": [ - "option", - "string" + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } ] }, { - "name": "icon", + "name": "prefix", "type": [ - "option", - "string" + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } ] }, { - "name": "previewsChat", - "type": "bool" + "name": "suffix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] }, { - "name": "enforcesSecureChat", - "type": "bool" - } - ] - ], - "packet_declare_recipes": [ - "container", - [ - { - "name": "recipes", + "name": "players", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ + "compareTo": "mode", + "default": "void", + "fields": { + "0": [ + "array", { - "name": "type", + "countType": "varint", "type": "string" - }, + } + ], + "3": [ + "array", { - "name": "recipeId", + "countType": "varint", "type": "string" - }, + } + ], + "4": [ + "array", { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing": [ - "container", - [ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] + "countType": "varint", + "type": "string" } ] - ] + } } ] } ] ], - "packet_tags": [ + "packet_tile_entity_data": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ], + "packet_trade_list": [ "container", [ { - "name": "tags", + "name": "windowId", + "type": "varint" + }, + { + "name": "trades", "type": [ "array", { @@ -4692,892 +4692,850 @@ "container", [ { - "name": "tagType", - "type": "string" + "name": "inputItem1", + "type": "slot" }, { - "name": "tags", - "type": "tags" + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": "slot" + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" } ] ] } ] - } - ] - ], - "packet_acknowledge_player_digging": [ - "container", - [ - { - "name": "sequenceId", - "type": "varint" - } - ] - ], - "packet_clear_titles": [ - "container", - [ - { - "name": "reset", - "type": "bool" - } - ] - ], - "packet_initialize_world_border": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "oldDiameter", - "type": "f64" - }, - { - "name": "newDiameter", - "type": "f64" - }, - { - "name": "speed", - "type": "varint" }, { - "name": "portalTeleportBoundary", + "name": "villagerLevel", "type": "varint" }, { - "name": "warningBlocks", + "name": "experience", "type": "varint" }, { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_action_bar": [ - "container", - [ - { - "name": "text", - "type": "string" - } - ] - ], - "packet_world_border_center": [ - "container", - [ - { - "name": "x", - "type": "f64" + "name": "isRegularVillager", + "type": "bool" }, { - "name": "z", - "type": "f64" + "name": "canRestock", + "type": "bool" } ] ], - "packet_world_border_lerp_size": [ + "packet_unload_chunk": [ "container", [ { - "name": "oldDiameter", - "type": "f64" - }, - { - "name": "newDiameter", - "type": "f64" + "name": "chunkX", + "type": "i32" }, { - "name": "speed", - "type": "varint" - } - ] - ], - "packet_world_border_size": [ - "container", - [ - { - "name": "diameter", - "type": "f64" - } - ] - ], - "packet_world_border_warning_delay": [ - "container", - [ - { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_world_border_warning_reach": [ - "container", - [ - { - "name": "warningBlocks", - "type": "varint" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "id", + "name": "chunkZ", "type": "i32" } ] ], - "packet_set_title_subtitle": [ - "container", - [ - { - "name": "text", - "type": "string" - } - ] - ], - "packet_set_title_text": [ - "container", - [ - { - "name": "text", - "type": "string" - } - ] - ], - "packet_set_title_time": [ + "packet_unlock_recipes": [ "container", [ { - "name": "fadeIn", - "type": "i32" + "name": "action", + "type": "varint" }, { - "name": "stay", - "type": "i32" + "name": "craftingBookOpen", + "type": "bool" }, { - "name": "fadeOut", - "type": "i32" - } - ] - ], - "packet_simulation_distance": [ - "container", - [ - { - "name": "distance", - "type": "varint" - } - ] - ], - "packet_message_header": [ - "container", - [ + "name": "filteringCraftable", + "type": "bool" + }, { - "name": "previousSignature", - "type": [ - "option", - [ - "buffer", - { - "countType": "varint" - } - ] - ] + "name": "smeltingBookOpen", + "type": "bool" }, { - "name": "senderUuid", - "type": "UUID" + "name": "filteringSmeltable", + "type": "bool" }, { - "name": "signature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "blastFurnaceOpen", + "type": "bool" }, { - "name": "messageHash", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ], - "packet": [ - "container", - [ + "name": "filteringBlastFurnace", + "type": "bool" + }, { - "name": "name", + "name": "smokerBookOpen", + "type": "bool" + }, + { + "name": "filteringSmoker", + "type": "bool" + }, + { + "name": "recipes1", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "named_entity_spawn", - "0x03": "animation", - "0x04": "statistics", - "0x05": "acknowledge_player_digging", - "0x06": "block_break_animation", - "0x07": "tile_entity_data", - "0x08": "block_action", - "0x09": "block_change", - "0x0a": "boss_bar", - "0x0b": "difficulty", - "0x0c": "chat_preview", - "0x0d": "clear_titles", - "0x0e": "tab_complete", - "0x0f": "declare_commands", - "0x10": "close_window", - "0x11": "window_items", - "0x12": "craft_progress_bar", - "0x13": "set_slot", - "0x14": "set_cooldown", - "0x15": "chat_suggestions", - "0x16": "custom_payload", - "0x17": "named_sound_effect", - "0x18": "hide_message", - "0x19": "kick_disconnect", - "0x1a": "entity_status", - "0x1b": "explosion", - "0x1c": "unload_chunk", - "0x1d": "game_state_change", - "0x1e": "open_horse_window", - "0x1f": "initialize_world_border", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "vehicle_move", - "0x2c": "open_book", - "0x2d": "open_window", - "0x2e": "open_sign_entity", - "0x2f": "ping", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "message_header", - "0x33": "player_chat", - "0x34": "end_combat_event", - "0x35": "enter_combat_event", - "0x36": "death_combat_event", - "0x37": "player_info", - "0x38": "face_player", - "0x39": "position", - "0x3a": "unlock_recipes", - "0x3b": "entity_destroy", - "0x3c": "remove_entity_effect", - "0x3d": "resource_pack_send", - "0x3e": "respawn", - "0x3f": "entity_head_rotation", - "0x40": "multi_block_change", - "0x41": "select_advancement_tab", - "0x42": "server_data", - "0x43": "action_bar", - "0x44": "world_border_center", - "0x45": "world_border_lerp_size", - "0x46": "world_border_size", - "0x47": "world_border_warning_delay", - "0x48": "world_border_warning_reach", - "0x49": "camera", - "0x4a": "held_item_slot", - "0x4b": "update_view_position", - "0x4c": "update_view_distance", - "0x4d": "spawn_position", - "0x4e": "should_display_chat_preview", - "0x4f": "scoreboard_display_objective", - "0x50": "entity_metadata", - "0x51": "attach_entity", - "0x52": "entity_velocity", - "0x53": "entity_equipment", - "0x54": "experience", - "0x55": "update_health", - "0x56": "scoreboard_objective", - "0x57": "set_passengers", - "0x58": "teams", - "0x59": "scoreboard_score", - "0x5a": "simulation_distance", - "0x5b": "set_title_subtitle", - "0x5c": "update_time", - "0x5d": "set_title_text", - "0x5e": "set_title_time", - "0x5f": "entity_sound_effect", - "0x60": "sound_effect", - "0x61": "stop_sound", - "0x62": "system_chat", - "0x63": "playerlist_header", - "0x64": "nbt_query_response", - "0x65": "collect", - "0x66": "entity_teleport", - "0x67": "advancements", - "0x68": "entity_update_attributes", - "0x69": "entity_effect", - "0x6a": "declare_recipes", - "0x6b": "tags" - } + "countType": "varint", + "type": "string" } ] }, { - "name": "params", + "name": "recipes2", "type": [ "switch", { - "compareTo": "name", + "compareTo": "action", + "default": "void", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "chat_preview": "packet_chat_preview", - "clear_titles": "packet_clear_titles", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "close_window": "packet_close_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "chat_suggestions": "packet_chat_suggestions", - "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "hide_message": "packet_hide_message", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "initialize_world_border": "packet_initialize_world_border", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_window": "packet_open_window", - "open_sign_entity": "packet_open_sign_entity", - "ping": "packet_ping", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "message_header": "packet_message_header", - "player_chat": "packet_player_chat", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_info": "packet_player_info", - "face_player": "packet_face_player", - "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_head_rotation": "packet_entity_head_rotation", - "multi_block_change": "packet_multi_block_change", - "select_advancement_tab": "packet_select_advancement_tab", - "server_data": "packet_server_data", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "spawn_position": "packet_spawn_position", - "should_display_chat_preview": "packet_should_display_chat_preview", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "set_title_subtitle": "packet_set_title_subtitle", - "update_time": "packet_update_time", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time", - "entity_sound_effect": "packet_entity_sound_effect", - "sound_effect": "packet_sound_effect", - "stop_sound": "packet_stop_sound", - "system_chat": "packet_system_chat", - "playerlist_header": "packet_playerlist_header", - "nbt_query_response": "packet_nbt_query_response", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "advancements": "packet_advancements", - "entity_update_attributes": "packet_entity_update_attributes", - "entity_effect": "packet_entity_effect", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ - "container", - [ - { - "name": "teleportId", - "type": "varint" + ] } ] ], - "packet_query_block_nbt": [ + "packet_update_health": [ "container", [ { - "name": "transactionId", + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_chat_command": [ + "packet_update_light": [ "container", [ { - "name": "command", - "type": "string" + "name": "chunkX", + "type": "varint" }, { - "name": "timestamp", - "type": "i64" + "name": "chunkZ", + "type": "varint" }, { - "name": "salt", - "type": "i64" + "name": "trustEdges", + "type": "bool" }, { - "name": "argumentSignatures", + "name": "skyLightMask", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "argumentName", - "type": "string" - }, - { - "name": "signature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] + "type": "i64" } ] }, { - "name": "signedPreview", - "type": "bool" + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "previousMessages", - "type": "previousMessages" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "lastRejectedMessage", + "name": "emptyBlockLightMask", "type": [ - "option", - [ - "container", - [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", { - "name": "sender", - "type": "UUID" - }, + "countType": "varint", + "type": "u8" + } + ] + } + ] + }, + { + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", { - "name": "signature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "countType": "varint", + "type": "u8" } ] - ] + } ] } ] ], - "packet_chat_message": [ + "packet_update_time": [ "container", [ { - "name": "message", - "type": "string" + "name": "age", + "type": "i64" }, { - "name": "timestamp", + "name": "time", "type": "i64" + } + ] + ], + "packet_update_view_distance": [ + "container", + [ + { + "name": "viewDistance", + "type": "varint" + } + ] + ], + "packet_update_view_position": [ + "container", + [ + { + "name": "chunkX", + "type": "varint" }, { - "name": "salt", - "type": "i64" + "name": "chunkZ", + "type": "varint" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "signature", + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "stateId", + "type": "varint" + }, + { + "name": "items", "type": [ - "buffer", + "array", { - "countType": "varint" + "countType": "varint", + "type": "slot" } ] }, { - "name": "signedPreview", - "type": "bool" + "name": "carriedItem", + "type": "slot" + } + ] + ], + "packet_world_border_center": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "previousMessages", - "type": "previousMessages" + "name": "z", + "type": "f64" + } + ] + ], + "packet_world_border_lerp_size": [ + "container", + [ + { + "name": "oldDiameter", + "type": "f64" }, { - "name": "lastRejectedMessage", - "type": [ - "option", - [ - "container", - [ - { - "name": "sender", - "type": "UUID" - }, - { - "name": "signature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] - ] + "name": "newDiameter", + "type": "f64" + }, + { + "name": "speed", + "type": "varint" + } + ] + ], + "packet_world_border_size": [ + "container", + [ + { + "name": "diameter", + "type": "f64" } ] ], - "packet_chat_preview": [ + "packet_world_border_warning_delay": [ "container", [ { - "name": "query", - "type": "i32" - }, - { - "name": "message", - "type": "string" + "name": "warningTime", + "type": "varint" } ] ], - "packet_set_difficulty": [ + "packet_world_border_warning_reach": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "warningBlocks", + "type": "varint" } ] ], - "packet_message_acknowledgement": [ + "packet_world_event": [ "container", [ { - "name": "previousMessages", - "type": "previousMessages" + "name": "effectId", + "type": "i32" }, { - "name": "lastRejectedMessage", - "type": [ - "option", - [ - "container", - [ - { - "name": "sender", - "type": "UUID" - }, - { - "name": "signature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] - ] + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" } ] ], - "packet_edit_book": [ + "packet_world_particles": [ "container", [ { - "name": "hand", + "name": "particleId", "type": "varint" }, { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "longDistance", + "type": "bool" }, { - "name": "title", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_query_entity_nbt": [ - "container", - [ + "name": "x", + "type": "f64" + }, { - "name": "transactionId", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_pick_item": [ - "container", - [ + "name": "z", + "type": "f64" + }, { - "name": "slot", - "type": "varint" + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] } ] - ], - "packet_name_item": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { "name": "name", - "type": "string" + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "message_acknowledgement", + "0x04": "chat_command", + "0x05": "chat_message", + "0x06": "chat_preview", + "0x07": "client_command", + "0x08": "settings", + "0x09": "tab_complete", + "0x0a": "enchant_item", + "0x0b": "window_click", + "0x0c": "close_window", + "0x0d": "custom_payload", + "0x0e": "edit_book", + "0x0f": "query_entity_nbt", + "0x10": "use_entity", + "0x11": "generate_structure", + "0x12": "keep_alive", + "0x13": "lock_difficulty", + "0x14": "position", + "0x15": "position_look", + "0x16": "look", + "0x17": "flying", + "0x18": "vehicle_move", + "0x19": "steer_boat", + "0x1a": "pick_item", + "0x1b": "craft_recipe_request", + "0x1c": "abilities", + "0x1d": "block_dig", + "0x1e": "entity_action", + "0x1f": "steer_vehicle", + "0x20": "pong", + "0x21": "recipe_book", + "0x22": "displayed_recipe", + "0x23": "name_item", + "0x24": "resource_pack_receive", + "0x25": "advancement_tab", + "0x26": "select_trade", + "0x27": "set_beacon_effect", + "0x28": "held_item_slot", + "0x29": "update_command_block", + "0x2a": "update_command_block_minecart", + "0x2b": "set_creative_slot", + "0x2c": "update_jigsaw_block", + "0x2d": "update_structure_block", + "0x2e": "update_sign", + "0x2f": "arm_animation", + "0x30": "spectate", + "0x31": "block_place", + "0x32": "use_item" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat_command": "packet_chat_command", + "chat_message": "packet_chat_message", + "chat_preview": "packet_chat_preview", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_payload": "packet_custom_payload", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "message_acknowledgement": "packet_message_acknowledgement", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" + } + } + ] } ] ], - "packet_select_trade": [ + "packet_abilities": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "flags", + "type": "i8" } ] ], - "packet_set_beacon_effect": [ + "packet_advancement_tab": [ "container", [ { - "name": "primary_effect", - "type": [ - "option", - "varint" - ] + "name": "action", + "type": "varint" }, { - "name": "secondary_effect", + "name": "tabId", "type": [ - "option", - "varint" + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } ] } ] ], - "packet_update_command_block": [ + "packet_arm_animation": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", + "name": "hand", "type": "varint" - }, - { - "name": "flags", - "type": "u8" } ] ], - "packet_update_command_block_minecart": [ + "packet_block_dig": [ "container", [ { - "name": "entityId", + "name": "status", "type": "varint" }, { - "name": "command", - "type": "string" + "name": "location", + "type": "position" }, { - "name": "track_output", - "type": "bool" + "name": "face", + "type": "i8" + }, + { + "name": "sequence", + "type": "varint" } ] ], - "packet_update_structure_block": [ + "packet_block_place": [ "container", [ + { + "name": "hand", + "type": "varint" + }, { "name": "location", "type": "position" }, { - "name": "action", + "name": "direction", "type": "varint" }, { - "name": "mode", - "type": "varint" + "name": "cursorX", + "type": "f32" }, { - "name": "name", - "type": "string" + "name": "cursorY", + "type": "f32" }, { - "name": "offset_x", - "type": "i8" + "name": "cursorZ", + "type": "f32" }, { - "name": "offset_y", - "type": "i8" + "name": "insideBlock", + "type": "bool" }, { - "name": "offset_z", - "type": "i8" + "name": "sequence", + "type": "varint" + } + ] + ], + "packet_chat_command": [ + "container", + [ + { + "name": "command", + "type": "string" }, { - "name": "size_x", - "type": "i8" + "name": "timestamp", + "type": "i64" }, { - "name": "size_y", - "type": "i8" + "name": "salt", + "type": "i64" }, { - "name": "size_z", - "type": "i8" + "name": "argumentSignatures", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "argumentName", + "type": "string" + }, + { + "name": "signature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ] + } + ] }, { - "name": "mirror", - "type": "varint" + "name": "signedPreview", + "type": "bool" }, { - "name": "rotation", - "type": "varint" + "name": "previousMessages", + "type": "previousMessages" }, { - "name": "metadata", + "name": "lastRejectedMessage", + "type": [ + "option", + [ + "container", + [ + { + "name": "sender", + "type": "UUID" + }, + { + "name": "signature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ] + ] + } + ] + ], + "packet_chat_message": [ + "container", + [ + { + "name": "message", "type": "string" }, { - "name": "integrity", - "type": "f32" + "name": "timestamp", + "type": "i64" }, { - "name": "seed", - "type": "varint" + "name": "salt", + "type": "i64" }, { - "name": "flags", - "type": "u8" + "name": "signature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "signedPreview", + "type": "bool" + }, + { + "name": "previousMessages", + "type": "previousMessages" + }, + { + "name": "lastRejectedMessage", + "type": [ + "option", + [ + "container", + [ + { + "name": "sender", + "type": "UUID" + }, + { + "name": "signature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ] + ] } ] ], - "packet_tab_complete": [ + "packet_chat_preview": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "query", + "type": "i32" }, { - "name": "text", + "name": "message", "type": "string" } ] @@ -5591,195 +5549,115 @@ } ] ], - "packet_settings": [ + "packet_close_window": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", + "name": "windowId", "type": "u8" - }, + } + ] + ], + "packet_craft_recipe_request": [ + "container", + [ { - "name": "mainHand", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "enableTextFiltering", - "type": "bool" + "name": "recipe", + "type": "string" }, { - "name": "enableServerListing", + "name": "makeAll", "type": "bool" } ] ], - "packet_enchant_item": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "channel", + "type": "string" }, { - "name": "enchantment", - "type": "i8" + "name": "data", + "type": "restBuffer" } ] ], - "packet_window_click": [ + "packet_displayed_recipe": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, + "name": "recipeId", + "type": "string" + } + ] + ], + "packet_edit_book": [ + "container", + [ { - "name": "mode", + "name": "hand", "type": "varint" }, { - "name": "changedSlots", + "name": "pages", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ] + "type": "string" } ] }, { - "name": "cursorItem", - "type": "slot" + "name": "title", + "type": [ + "option", + "string" + ] } ] ], - "packet_close_window": [ + "packet_enchant_item": [ "container", [ { "name": "windowId", - "type": "u8" - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" + "type": "i8" }, { - "name": "data", - "type": "restBuffer" + "name": "enchantment", + "type": "i8" } ] ], - "packet_use_entity": [ + "packet_entity_action": [ "container", [ { - "name": "target", + "name": "entityId", "type": "varint" }, { - "name": "mouse", + "name": "actionId", "type": "varint" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { - "name": "sneaking", + "name": "onGround", "type": "bool" } ] @@ -5801,6 +5679,15 @@ } ] ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slotId", + "type": "i16" + } + ] + ], "packet_keep_alive": [ "container", [ @@ -5819,6 +5706,83 @@ } ] ], + "packet_look": [ + "container", + [ + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_message_acknowledgement": [ + "container", + [ + { + "name": "previousMessages", + "type": "previousMessages" + }, + { + "name": "lastRejectedMessage", + "type": [ + "option", + [ + "container", + [ + { + "name": "sender", + "type": "UUID" + }, + { + "name": "signature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ] + ] + } + ] + ], + "packet_name_item": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] + ], + "packet_pong": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], "packet_position": [ "container", [ @@ -5869,131 +5833,164 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + } + ] + ], + "packet_query_entity_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_recipe_book": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "bookId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "bookOpen", + "type": "bool" }, { - "name": "onGround", + "name": "filterActive", "type": "bool" } ] ], - "packet_flying": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_select_trade": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "slot", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "primary_effect", + "type": [ + "option", + "varint" + ] }, { - "name": "rightPaddle", - "type": "bool" + "name": "secondary_effect", + "type": [ + "option", + "varint" + ] } ] ], - "packet_craft_recipe_request": [ + "packet_set_creative_slot": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" + "name": "slot", + "type": "i16" }, { - "name": "makeAll", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_abilities": [ + "packet_set_difficulty": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_block_dig": [ + "packet_settings": [ "container", [ { - "name": "status", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "chatColors", + "type": "bool" }, { - "name": "face", - "type": "i8" + "name": "skinParts", + "type": "u8" }, { - "name": "sequence", + "name": "mainHand", "type": "varint" + }, + { + "name": "enableTextFiltering", + "type": "bool" + }, + { + "name": "enableServerListing", + "type": "bool" } ] ], - "packet_entity_action": [ + "packet_spectate": [ "container", [ { - "name": "entityId", - "type": "varint" - }, + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -6014,60 +6011,63 @@ } ] ], - "packet_displayed_recipe": [ - "container", - [ - { - "name": "recipeId", - "type": "string" - } - ] - ], - "packet_recipe_book": [ + "packet_tab_complete": [ "container", [ { - "name": "bookId", + "name": "transactionId", "type": "varint" }, { - "name": "bookOpen", - "type": "bool" - }, - { - "name": "filterActive", - "type": "bool" + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "location", + "type": "position" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block_minecart": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -6125,58 +6125,142 @@ } ] ], - "packet_arm_animation": [ + "packet_update_structure_block": [ "container", [ { - "name": "hand", + "name": "location", + "type": "position" + }, + { + "name": "action", "type": "varint" - } - ] - ], - "packet_spectate": [ - "container", - [ + }, { - "name": "target", - "type": "UUID" + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "metadata", + "type": "string" + }, + { + "name": "integrity", + "type": "f32" + }, + { + "name": "seed", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_block_place": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "cursorX", - "type": "f32" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "insideBlock", - "type": "bool" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "sequence", - "type": "varint" + "name": "sneaking", + "type": "bool" } ] ], @@ -6193,163 +6277,79 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] - } - ] - ], - "packet_pong": [ - "container", - [ + "name": "y", + "type": "f64" + }, { - "name": "id", - "type": "i32" + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "message_acknowledgement", - "0x04": "chat_command", - "0x05": "chat_message", - "0x06": "chat_preview", - "0x07": "client_command", - "0x08": "settings", - "0x09": "tab_complete", - "0x0a": "enchant_item", - "0x0b": "window_click", - "0x0c": "close_window", - "0x0d": "custom_payload", - "0x0e": "edit_book", - "0x0f": "query_entity_nbt", - "0x10": "use_entity", - "0x11": "generate_structure", - "0x12": "keep_alive", - "0x13": "lock_difficulty", - "0x14": "position", - "0x15": "position_look", - "0x16": "look", - "0x17": "flying", - "0x18": "vehicle_move", - "0x19": "steer_boat", - "0x1a": "pick_item", - "0x1b": "craft_recipe_request", - "0x1c": "abilities", - "0x1d": "block_dig", - "0x1e": "entity_action", - "0x1f": "steer_vehicle", - "0x20": "pong", - "0x21": "recipe_book", - "0x22": "displayed_recipe", - "0x23": "name_item", - "0x24": "resource_pack_receive", - "0x25": "advancement_tab", - "0x26": "select_trade", - "0x27": "set_beacon_effect", - "0x28": "held_item_slot", - "0x29": "update_command_block", - "0x2a": "update_command_block_minecart", - "0x2b": "set_creative_slot", - "0x2c": "update_jigsaw_block", - "0x2d": "update_structure_block", - "0x2e": "update_sign", - "0x2f": "arm_animation", - "0x30": "spectate", - "0x31": "block_place", - "0x32": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", + "name": "stateId", + "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "message_acknowledgement": "packet_message_acknowledgement", - "chat_command": "packet_chat_command", - "chat_message": "packet_chat_message", - "chat_preview": "packet_chat_preview", - "client_command": "packet_client_command", - "settings": "packet_settings", - "tab_complete": "packet_tab_complete", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "pick_item": "packet_pick_item", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "pong": "packet_pong", - "recipe_book": "packet_recipe_book", - "displayed_recipe": "packet_displayed_recipe", - "name_item": "packet_name_item", - "resource_pack_receive": "packet_resource_pack_receive", - "advancement_tab": "packet_advancement_tab", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "held_item_slot": "packet_held_item_slot", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_structure_block": "packet_update_structure_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "slot" + } + ] + ] } ] + }, + { + "name": "cursorItem", + "type": "slot" } ] ] diff --git a/data/pc/1.19.3/protocol.json b/data/pc/1.19.3/protocol.json index 8c42ed922..f612e968e 100644 --- a/data/pc/1.19.3/protocol.json +++ b/data/pc/1.19.3/protocol.json @@ -1,103 +1,11 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", - "registryEntryHolder": "native", - "registryEntryHolderSet": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], "ItemSoundEvent": [ "container", [ @@ -124,624 +32,152 @@ } } ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "chat_session": [ + "option", + [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "publicKey", + "type": [ + "container", + [ + { + "name": "expireTime", + "type": "i64" + }, + { + "name": "keyBytes", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "keySignature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ] + } + ] + ] + ], + "chunkBlockEntity": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "anon": true, "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "2": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" - }, - { - "name": "green", - "type": "f32" - }, - { - "name": "blue", - "type": "f32" + "name": "x", + "signed": false, + "size": 4 }, { - "name": "scale", - "type": "f32" + "name": "z", + "signed": false, + "size": 4 } ] - ], - "15": [ - "container", + ] + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ], + "command_node": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", [ { - "name": "fromRed", - "type": "f32" - }, - { - "name": "fromGreen", - "type": "f32" - }, - { - "name": "fromBlue", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "scale", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "toRed", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "toGreen", - "type": "f32" + "name": "has_command", + "signed": false, + "size": 1 }, { - "name": "toBlue", - "type": "f32" - } - ] - ], - "25": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "30": [ - "container", - [ - { - "name": "rotation", - "type": "f32" - } - ] - ], - "39": [ - "container", - [ - { - "name": "item", - "type": "slot" - } - ] - ], - "40": [ - "container", - [ - { - "name": "positionType", - "type": "string" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:entity": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entityEyeHeight", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:entity": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "destination", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:block": "position", - "minecraft:entity": "varint" - } - } - ] - }, - { - "name": "ticks", - "type": "varint" - } - ] - ], - "92": [ - "container", - [ - { - "name": "delayInTicksBeforeShown", - "type": "varint" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "soundSource": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "master", - "1": "music", - "2": "record", - "3": "weather", - "4": "block", - "5": "hostile", - "6": "neutral", - "7": "player", - "8": "ambient", - "9": "voice" - } - } - ], - "previousMessages": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ + "name": "children", + "type": [ + "array", { - "name": "id", + "countType": "varint", "type": "varint" - }, - { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] } ] - ] - } - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "varlong", - "3": "f32", - "4": "string", - "5": "string", - "6": [ - "option", - "string" - ], - "7": "slot", - "8": "bool", - "9": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "10": "position", - "11": [ - "option", - "position" - ], - "12": "varint", - "13": [ - "option", - "UUID" - ], - "14": "varint", - "15": "nbt", - "16": "particle", - "17": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" + }, + { + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" } - ] - ], - "18": "optvarint", - "19": "varint", - "20": "varint", - "21": "varint", - "22": [ - "option", - "string" - ], - "23": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "minecraft_simple_recipe_format": [ - "container", - [ - { - "name": "category", - "type": "varint" - } - ] - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "chunkBlockEntity": [ - "container", - [ - { - "anon": true, - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ], - "chat_session": [ - "option", - [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "publicKey", - "type": [ - "container", - [ - { - "name": "expireTime", - "type": "i64" - }, - { - "name": "keyBytes", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "keySignature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] - } - ] - ] - ], - "game_profile": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "extraNodeData", - "type": [ - "switch", + } + ] + }, + { + "name": "extraNodeData", + "type": [ + "switch", { "compareTo": "flags/command_node_type", "fields": { @@ -767,7 +203,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "brigadier:bool", "1": "brigadier:float", @@ -817,7 +252,8 @@ "45": "minecraft:template_mirror", "46": "minecraft:template_rotation", "47": "minecraft:uuid" - } + }, + "type": "varint" } ] }, @@ -829,7 +265,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -839,18 +275,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -861,10 +297,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -874,16 +310,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -893,18 +329,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -915,10 +351,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -928,10 +364,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -947,18 +383,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -969,10 +405,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -982,10 +418,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -1001,18 +437,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1023,10 +459,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -1036,10 +472,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -1048,45 +484,51 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:gamemode": "void", + "minecraft:int_range": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", "minecraft:nbt": "void", "minecraft:nbt_path": "void", @@ -1094,36 +536,16 @@ "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", + "minecraft:resource": [ + "container", [ { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false + "name": "registry", + "type": "string" } ] ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:dimension": "void", - "minecraft:gamemode": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource_key": [ "container", [ { @@ -1132,7 +554,8 @@ } ] ], - "minecraft:resource_or_tag_key": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -1141,7 +564,7 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_or_tag_key": [ "container", [ { @@ -1150,34 +573,536 @@ } ] ], - "minecraft:resource_key": [ - "container", + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", [ { - "name": "registry", - "type": "string" + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 } ] ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", "minecraft:template_mirror": "void", "minecraft:template_rotation": "void", - "minecraft:uuid": "void" + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] }, { - "name": "suggestionType", - "type": [ - "switch", - { - "compareTo": "../flags/has_custom_suggestions", - "fields": { - "1": "string" - }, - "default": "void" - } - ] + "name": "suggestionType", + "type": [ + "switch", + { + "compareTo": "../flags/has_custom_suggestions", + "default": "void", + "fields": { + "1": "string" + } + } + ] + } + ] + ] + } + } + ] + } + ] + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "varlong", + "3": "f32", + "4": "string", + "5": "string", + "6": [ + "option", + "string" + ], + "7": "slot", + "8": "bool", + "9": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "10": "position", + "11": [ + "option", + "position" + ], + "12": "varint", + "13": [ + "option", + "UUID" + ], + "14": "varint", + "15": "nbt", + "16": "particle", + "17": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "18": "optvarint", + "19": "varint", + "20": "varint", + "21": "varint", + "22": [ + "option", + "string" + ], + "23": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "game_profile": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + } + ] + ], + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_simple_recipe_format": [ + "container", + [ + { + "name": "category", + "type": "varint" + } + ] + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "2": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "15": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "25": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "30": [ + "container", + [ + { + "name": "rotation", + "type": "f32" + } + ] + ], + "39": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ], + "40": [ + "container", + [ + { + "name": "positionType", + "type": "string" + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "positionType", + "default": "void", + "fields": { + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "entityEyeHeight", + "type": [ + "switch", + { + "compareTo": "positionType", + "default": "void", + "fields": { + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "destination", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "minecraft:block": "position", + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] + ], + "92": [ + "container", + [ + { + "name": "delayInTicksBeforeShown", + "type": "varint" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "previousMessages": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "signature", + "type": [ + "switch", + { + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] + } + } + ] + } + ] + ] + } + ], + "pstring": "native", + "registryEntryHolder": "native", + "registryEntryHolderSet": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] ] @@ -1186,7 +1111,82 @@ ] } ] - ] + ], + "soundSource": [ + "mapper", + { + "mappings": { + "0": "master", + "1": "music", + "2": "record", + "3": "weather", + "4": "block", + "5": "hostile", + "6": "neutral", + "7": "player", + "8": "ambient", + "9": "voice" + }, + "type": "varint" + } + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -1199,8 +1199,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -1220,6 +1220,46 @@ }, "toServer": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", + [ + { + "name": "payload", + "type": "u8" + } + ] + ], "packet_set_protocol": [ "container", [ @@ -1240,16 +1280,13 @@ "type": "varint" } ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1258,11 +1295,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -1273,38 +1310,36 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_ping": [ + "packet_server_info": [ "container", [ { - "name": "time", - "type": "i64" + "name": "response", + "type": "string" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1313,11 +1348,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "server_info", + "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -1328,21 +1363,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -1353,6 +1380,16 @@ } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1361,11 +1398,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" + }, + "type": "varint" } ] }, @@ -1376,20 +1416,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -1426,6 +1472,23 @@ } ] ], + "packet_login_plugin_request": [ + "container", + [ + { + "name": "messageId", + "type": "varint" + }, + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], "packet_success": [ "container", [ @@ -1467,33 +1530,11 @@ ] } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], - "packet_login_plugin_request": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1502,14 +1543,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", + "0x00": "login_start", "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" - } + "0x02": "login_plugin_response" + }, + "type": "varint" } ] }, @@ -1520,36 +1559,14 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - }, - { - "name": "playerUUID", - "type": [ - "option", - "UUID" - ] - } - ] ], "packet_encryption_begin": [ "container", @@ -1590,6 +1607,28 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + }, + { + "name": "playerUUID", + "type": [ + "option", + "UUID" + ] + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1598,12 +1637,116 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "named_entity_spawn", + "0x03": "animation", + "0x04": "statistics", + "0x05": "acknowledge_player_digging", + "0x06": "block_break_animation", + "0x07": "tile_entity_data", + "0x08": "block_action", + "0x09": "block_change", + "0x0a": "boss_bar", + "0x0b": "difficulty", + "0x0c": "clear_titles", + "0x0d": "tab_complete", + "0x0e": "declare_commands", + "0x0f": "close_window", + "0x10": "window_items", + "0x11": "craft_progress_bar", + "0x12": "set_slot", + "0x13": "set_cooldown", + "0x14": "chat_suggestions", + "0x15": "custom_payload", + "0x16": "hide_message", + "0x17": "kick_disconnect", + "0x18": "profileless_chat", + "0x19": "entity_status", + "0x1a": "explosion", + "0x1b": "unload_chunk", + "0x1c": "game_state_change", + "0x1d": "open_horse_window", + "0x1e": "initialize_world_border", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "update_light", + "0x24": "login", + "0x25": "map", + "0x26": "trade_list", + "0x27": "rel_entity_move", + "0x28": "entity_move_look", + "0x29": "entity_look", + "0x2a": "vehicle_move", + "0x2b": "open_book", + "0x2c": "open_window", + "0x2d": "open_sign_entity", + "0x2e": "ping", + "0x2f": "craft_recipe_response", + "0x30": "abilities", + "0x31": "player_chat", + "0x32": "end_combat_event", + "0x33": "enter_combat_event", + "0x34": "death_combat_event", + "0x35": "player_remove", + "0x36": "player_info", + "0x37": "face_player", + "0x38": "position", + "0x39": "unlock_recipes", + "0x3a": "entity_destroy", + "0x3b": "remove_entity_effect", + "0x3c": "resource_pack_send", + "0x3d": "respawn", + "0x3e": "entity_head_rotation", + "0x3f": "multi_block_change", + "0x40": "select_advancement_tab", + "0x41": "server_data", + "0x42": "action_bar", + "0x43": "world_border_center", + "0x44": "world_border_lerp_size", + "0x45": "world_border_size", + "0x46": "world_border_warning_delay", + "0x47": "world_border_warning_reach", + "0x48": "camera", + "0x49": "held_item_slot", + "0x4a": "update_view_position", + "0x4b": "update_view_distance", + "0x4c": "spawn_position", + "0x4d": "scoreboard_display_objective", + "0x4e": "entity_metadata", + "0x4f": "attach_entity", + "0x50": "entity_velocity", + "0x51": "entity_equipment", + "0x52": "experience", + "0x53": "update_health", + "0x54": "scoreboard_objective", + "0x55": "set_passengers", + "0x56": "teams", + "0x57": "scoreboard_score", + "0x58": "simulation_distance", + "0x59": "set_title_subtitle", + "0x5a": "update_time", + "0x5b": "set_title_text", + "0x5c": "set_title_time", + "0x5d": "entity_sound_effect", + "0x5e": "sound_effect", + "0x5f": "stop_sound", + "0x60": "system_chat", + "0x61": "playerlist_header", + "0x62": "nbt_query_response", + "0x63": "collect", + "0x64": "entity_teleport", + "0x65": "advancements", + "0x66": "entity_update_attributes", + "0x67": "feature_flags", + "0x68": "entity_effect", + "0x69": "declare_recipes", + "0x6a": "tags" + }, + "type": "varint" } ] }, @@ -1614,169 +1757,151 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" - } - } - ] - } - ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "objectData", - "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat_suggestions": "packet_chat_suggestions", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "death_combat_event": "packet_death_combat_event", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "feature_flags": "packet_feature_flags", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "hide_message": "packet_hide_message", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "player_chat": "packet_player_chat", + "player_info": "packet_player_info", + "player_remove": "packet_player_remove", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "profileless_chat": "packet_profileless_chat", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "server_data": "packet_server_data", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "system_chat": "packet_system_chat", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "trade_list": "packet_trade_list", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_named_entity_spawn": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "flags", + "type": "i8" }, { - "name": "yaw", - "type": "i8" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "pitch", - "type": "i8" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_animation": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "entityId", + "name": "sequenceId", "type": "varint" - }, - { - "name": "animation", - "type": "u8" } ] ], - "packet_statistics": [ + "packet_action_bar": [ "container", [ { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "text", + "type": "string" } ] ], @@ -1842,23 +1967,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1869,10 +1994,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1989,7 +2114,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1997,29 +2122,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -2044,282 +2161,156 @@ } ] ], - "packet_block_change": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "type", - "type": "varint" - } - ] - ], - "packet_boss_bar": [ - "container", - [ - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "title", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "3": "string" - }, - "default": "void" - } - ] - }, - { - "name": "health", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "color", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "dividers", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] - } - ] - ], - "packet_difficulty": [ - "container", - [ - { - "name": "difficulty", - "type": "u8" - }, - { - "name": "difficultyLocked", - "type": "bool" - } - ] - ], - "packet_tab_complete": [ + "packet_block_break_animation": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", + "name": "entityId", "type": "varint" }, { - "name": "length", - "type": "varint" + "name": "location", + "type": "position" }, { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "name": "destroyStage", + "type": "i8" } ] ], - "packet_declare_commands": [ + "packet_block_change": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] + "name": "location", + "type": "position" }, { - "name": "rootIndex", + "name": "type", "type": "varint" } ] ], - "packet_face_player": [ + "packet_boss_bar": [ "container", [ { - "name": "feet_eyes", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "x", - "type": "f64" + "name": "action", + "type": "varint" }, { - "name": "y", - "type": "f64" + "name": "title", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "3": "string" + } + } + ] }, { - "name": "z", - "type": "f64" + "name": "health", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } + } + ] }, { - "name": "isEntity", - "type": "bool" + "name": "color", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "entityId", + "name": "dividers", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "action", + "default": "void", "fields": { - "true": "varint" - }, - "default": "void" + "0": "varint", + "4": "varint" + } } ] }, { - "name": "entity_feet_eyes", + "name": "flags", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "action", + "default": "void", "fields": { - "true": "string" - }, - "default": "void" + "0": "u8", + "5": "u8" + } } ] } ] ], - "packet_nbt_query_response": [ + "packet_camera": [ "container", [ { - "name": "transactionId", + "name": "cameraId", "type": "varint" - }, - { - "name": "nbt", - "type": "optionalNbt" } ] ], - "packet_multi_block_change": [ + "packet_chat_suggestions": [ "container", [ { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] - }, - { - "name": "suppressLightUpdates", - "type": "bool" + "name": "action", + "type": "varint" }, { - "name": "records", + "name": "entries", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": "string" } ] } ] ], + "packet_clear_titles": [ + "container", + [ + { + "name": "reset", + "type": "bool" + } + ] + ], "packet_close_window": [ "container", [ @@ -2329,24 +2320,24 @@ } ] ], - "packet_open_window": [ + "packet_collect": [ "container", [ { - "name": "windowId", + "name": "collectedEntityId", "type": "varint" }, { - "name": "inventoryType", + "name": "collectorEntityId", "type": "varint" }, { - "name": "windowTitle", - "type": "string" + "name": "pickupItemCount", + "type": "varint" } ] ], - "packet_window_items": [ + "packet_craft_progress_bar": [ "container", [ { @@ -2354,436 +2345,615 @@ "type": "u8" }, { - "name": "stateId", + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_craft_recipe_response": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "recipe", + "type": "string" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_death_combat_event": [ + "container", + [ + { + "name": "playerId", "type": "varint" }, { - "name": "items", + "name": "entityId", + "type": "i32" + }, + { + "name": "message", + "type": "string" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", "type": [ "array", { "countType": "varint", - "type": "slot" + "type": "command_node" + } + ] + }, + { + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "minecraft_simple_recipe_format", + "minecraft:crafting_special_banneraddpattern": "minecraft_simple_recipe_format", + "minecraft:crafting_special_bannerduplicate": "minecraft_simple_recipe_format", + "minecraft:crafting_special_bookcloning": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_rocket": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_star": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_star_fade": "minecraft_simple_recipe_format", + "minecraft:crafting_special_mapcloning": "minecraft_simple_recipe_format", + "minecraft:crafting_special_mapextending": "minecraft_simple_recipe_format", + "minecraft:crafting_special_repairitem": "minecraft_simple_recipe_format", + "minecraft:crafting_special_shielddecoration": "minecraft_simple_recipe_format", + "minecraft:crafting_special_shulkerboxcoloring": "minecraft_simple_recipe_format", + "minecraft:crafting_special_suspiciousstew": "minecraft_simple_recipe_format", + "minecraft:crafting_special_tippedarrow": "minecraft_simple_recipe_format", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] + } + ] + ] } ] - }, - { - "name": "carriedItem", - "type": "slot" } ] ], - "packet_craft_progress_bar": [ + "packet_difficulty": [ "container", [ { - "name": "windowId", + "name": "difficulty", "type": "u8" }, { - "name": "property", - "type": "i16" - }, - { - "name": "value", - "type": "i16" + "name": "difficultyLocked", + "type": "bool" } ] ], - "packet_set_slot": [ + "packet_end_combat_event": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "stateId", + "name": "duration", "type": "varint" }, { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "slot" + "name": "entityId", + "type": "i32" } ] ], - "packet_set_cooldown": [ + "packet_enter_combat_event": [ "container", - [ - { - "name": "itemID", - "type": "varint" - }, - { - "name": "cooldownTicks", - "type": "varint" - } - ] + [] ], - "packet_chat_suggestions": [ + "packet_entity_destroy": [ "container", [ { - "name": "action", - "type": "varint" - }, - { - "name": "entries", + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "varint" } ] } ] ], - "packet_custom_payload": [ + "packet_entity_effect": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_hide_message": [ - "container", - [ - { - "name": "id", + "name": "effectId", "type": "varint" }, { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_profileless_chat": [ - "container", - [ - { - "name": "message", - "type": "string" + "name": "amplifier", + "type": "i8" }, { - "name": "type", + "name": "duration", "type": "varint" }, { - "name": "name", - "type": "string" + "name": "hideParticles", + "type": "i8" }, { - "name": "target", + "name": "factorCodec", "type": [ "option", - "string" + "nbt" ] } ] ], - "packet_entity_status": [ + "packet_entity_equipment": [ "container", [ { "name": "entityId", - "type": "i32" - }, - { - "name": "entityStatus", - "type": "i8" - } - ] - ], - "packet_explosion": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "radius", - "type": "f32" + "type": "varint" }, { - "name": "affectedBlockOffsets", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "varint", "type": [ "container", [ { - "name": "x", - "type": "i8" - }, - { - "name": "y", + "name": "slot", "type": "i8" }, { - "name": "z", - "type": "i8" + "name": "item", + "type": "slot" } ] ] } ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, + } + ] + ], + "packet_entity_head_rotation": [ + "container", + [ { - "name": "playerMotionY", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "playerMotionZ", - "type": "f32" + "name": "headYaw", + "type": "i8" } ] ], - "packet_unload_chunk": [ + "packet_entity_look": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_game_state_change": [ + "packet_entity_metadata": [ "container", [ { - "name": "reason", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "gameMode", - "type": "f32" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_open_horse_window": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "nbSlots", - "type": "varint" + "name": "dX", + "type": "i16" }, { - "name": "entityId", - "type": "i32" + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "keepAliveId", + "name": "soundId", + "type": "varint" + }, + { + "name": "soundEvent", + "type": [ + "switch", + { + "compareTo": "soundId", + "default": "void", + "fields": { + "0": [ + "container", + [ + { + "name": "resource", + "type": "string" + }, + { + "name": "range", + "type": [ + "option", + "f32" + ] + } + ] + ] + } + } + ] + }, + { + "name": "soundCategory", + "type": "soundSource" + }, + { + "name": "entityId", + "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", "type": "i64" } ] ], - "packet_map_chunk": [ + "packet_entity_status": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", + "name": "entityId", "type": "i32" }, { - "name": "heightmaps", - "type": "nbt" - }, + "name": "entityStatus", + "type": "i8" + } + ] + ], + "packet_entity_teleport": [ + "container", + [ { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "chunkBlockEntity" - } - ] + "name": "x", + "type": "f64" }, { - "name": "trustEdges", - "type": "bool" + "name": "y", + "type": "f64" }, { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "z", + "type": "f64" }, { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "blockLight", + "name": "properties", "type": [ "array", { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] ] } ] } ] ], - "packet_world_event": [ + "packet_entity_velocity": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "global", - "type": "bool" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_world_particles": [ + "packet_experience": [ "container", [ { - "name": "particleId", - "type": "varint" + "name": "experienceBar", + "type": "f32" }, { - "name": "longDistance", - "type": "bool" + "name": "level", + "type": "varint" }, + { + "name": "totalExperience", + "type": "varint" + } + ] + ], + "packet_explosion": [ + "container", + [ { "name": "x", "type": "f64" @@ -2797,122 +2967,216 @@ "type": "f64" }, { - "name": "offsetX", + "name": "radius", "type": "f32" }, { - "name": "offsetY", - "type": "f32" + "name": "affectedBlockOffsets", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + } + ] + ] + } + ] }, { - "name": "offsetZ", + "name": "playerMotionX", "type": "f32" }, { - "name": "particleData", + "name": "playerMotionY", "type": "f32" }, { - "name": "particles", - "type": "i32" - }, - { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_update_light": [ + "packet_face_player": [ "container", [ { - "name": "chunkX", + "name": "feet_eyes", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "trustEdges", + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "isEntity", "type": "bool" }, { - "name": "skyLightMask", + "name": "entityId", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } } ] }, { - "name": "blockLightMask", + "name": "entity_feet_eyes", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] - }, + } + ] + ], + "packet_feature_flags": [ + "container", + [ { - "name": "emptySkyLightMask", + "name": "features", "type": [ "array", { "countType": "varint", - "type": "i64" + "type": "string" } ] + } + ] + ], + "packet_game_state_change": [ + "container", + [ + { + "name": "reason", + "type": "u8" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slot", + "type": "i8" + } + ] + ], + "packet_hide_message": [ + "container", + [ + { + "name": "id", + "type": "varint" }, { - "name": "skyLight", + "name": "signature", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] + } } ] + } + ] + ], + "packet_initialize_world_border": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "z", + "type": "f64" + }, + { + "name": "oldDiameter", + "type": "f64" + }, + { + "name": "newDiameter", + "type": "f64" + }, + { + "name": "speed", + "type": "varint" + }, + { + "name": "portalTeleportBoundary", + "type": "varint" + }, + { + "name": "warningBlocks", + "type": "varint" + }, + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "string" } ] ], @@ -3075,10 +3339,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -3088,10 +3352,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -3101,10 +3365,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -3114,158 +3378,175 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_trade_list": [ + "packet_map_chunk": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "trades", + "name": "z", + "type": "i32" + }, + { + "name": "heightmaps", + "type": "nbt" + }, + { + "name": "chunkData", "type": [ - "array", + "buffer", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": "slot" - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ] - ] + "countType": "varint" } ] }, { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "chunkBlockEntity" + } + ] }, { - "name": "isRegularVillager", + "name": "trustEdges", "type": "bool" }, { - "name": "canRestock", - "type": "bool" - } - ] - ], - "packet_rel_entity_move": [ - "container", - [ + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, { - "name": "entityId", - "type": "varint" + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "dX", - "type": "i16" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "dY", - "type": "i16" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "dZ", - "type": "i16" + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], - "packet_entity_move_look": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "yaw", - "type": "i8" + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] + ] }, { - "name": "pitch", - "type": "i8" + "name": "suppressLightUpdates", + "type": "bool" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_entity_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -3273,22 +3554,9 @@ "type": "varint" }, { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "playerUUID", + "type": "UUID" }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ { "name": "x", "type": "f64" @@ -3302,12 +3570,25 @@ "type": "f64" }, { - "name": "yaw", - "type": "f32" + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + } + ] + ], + "packet_nbt_query_response": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "nbt", + "type": "optionalNbt" } ] ], @@ -3320,6 +3601,23 @@ } ] ], + "packet_open_horse_window": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" + } + ] + ], "packet_open_sign_entity": [ "container", [ @@ -3329,33 +3627,29 @@ } ] ], - "packet_craft_recipe_response": [ + "packet_open_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "varint" }, { - "name": "recipe", + "name": "inventoryType", + "type": "varint" + }, + { + "name": "windowTitle", "type": "string" } ] ], - "packet_abilities": [ + "packet_ping": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "id", + "type": "i32" } ] ], @@ -3415,6 +3709,7 @@ "switch", { "compareTo": "filterType", + "default": "void", "fields": { "2": [ "array", @@ -3423,8 +3718,7 @@ "type": "i64" } ] - }, - "default": "void" + } } ] }, @@ -3445,55 +3739,6 @@ } ] ], - "packet_end_combat_event": [ - "container", - [ - { - "name": "duration", - "type": "varint" - }, - { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ - "container", - [ - { - "name": "playerId", - "type": "varint" - }, - { - "name": "entityId", - "type": "i32" - }, - { - "name": "message", - "type": "string" - } - ] - ], - "packet_player_remove": [ - "container", - [ - { - "name": "players", - "type": [ - "array", - { - "countType": "varint", - "type": "UUID" - } - ] - } - ] - ], "packet_player_info": [ "container", [ @@ -3502,7 +3747,6 @@ "type": [ "bitflags", { - "type": "u8", "flags": [ "add_player", "initialize_chat", @@ -3510,7 +3754,8 @@ "update_listed", "update_latency", "update_display_name" - ] + ], + "type": "u8" } ] }, @@ -3533,10 +3778,10 @@ "switch", { "compareTo": "../action/add_player", + "default": "void", "fields": { "true": "game_profile" - }, - "default": "void" + } } ] }, @@ -3546,10 +3791,10 @@ "switch", { "compareTo": "../action/initialize_chat", + "default": "void", "fields": { "true": "chat_session" - }, - "default": "void" + } } ] }, @@ -3559,645 +3804,318 @@ "switch", { "compareTo": "../action/update_game_mode", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "listed", - "type": [ - "switch", - { - "compareTo": "../action/update_listed", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "latency", - "type": [ - "switch", - { - "compareTo": "../action/update_latency", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "displayName", - "type": [ - "switch", - { - "compareTo": "../action/update_display_name", - "fields": { - "true": [ - "option", - "string" - ] - }, - "default": "void" - } - ] - } - ] - ] - } - ] - } - ] - ], - "packet_position": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "flags", - "type": "i8" - }, - { - "name": "teleportId", - "type": "varint" - }, - { - "name": "dismountVehicle", - "type": "bool" - } - ] - ], - "packet_unlock_recipes": [ - "container", - [ - { - "name": "action", - "type": "varint" - }, - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "filteringCraftable", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "filteringSmeltable", - "type": "bool" - }, - { - "name": "blastFurnaceOpen", - "type": "bool" - }, - { - "name": "filteringBlastFurnace", - "type": "bool" - }, - { - "name": "smokerBookOpen", - "type": "bool" - }, - { - "name": "filteringSmoker", - "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", + } + } + ] + }, { - "countType": "varint", - "type": "string" + "name": "listed", + "type": [ + "switch", + { + "compareTo": "../action/update_listed", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "latency", + "type": [ + "switch", + { + "compareTo": "../action/update_latency", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "displayName", + "type": [ + "switch", + { + "compareTo": "../action/update_display_name", + "default": "void", + "fields": { + "true": [ + "option", + "string" + ] + } + } + ] } ] - }, - "default": "void" + ] } ] } ] ], - "packet_entity_destroy": [ + "packet_player_remove": [ "container", [ { - "name": "entityIds", + "name": "players", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": "UUID" } ] } ] ], - "packet_remove_entity_effect": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "effectId", - "type": "varint" - } - ] - ], - "packet_resource_pack_send": [ + "packet_playerlist_header": [ "container", [ { - "name": "url", + "name": "header", "type": "string" }, { - "name": "hash", + "name": "footer", "type": "string" - }, - { - "name": "forced", - "type": "bool" - }, - { - "name": "promptMessage", - "type": [ - "option", - "string" - ] } ] ], - "packet_respawn": [ + "packet_position": [ "container", [ { - "name": "dimension", - "type": "string" - }, - { - "name": "worldName", - "type": "string" - }, - { - "name": "hashedSeed", - "type": "i64" + "name": "x", + "type": "f64" }, { - "name": "gamemode", - "type": "i8" + "name": "y", + "type": "f64" }, { - "name": "previousGamemode", - "type": "u8" + "name": "z", + "type": "f64" }, { - "name": "isDebug", - "type": "bool" + "name": "yaw", + "type": "f32" }, { - "name": "isFlat", - "type": "bool" + "name": "pitch", + "type": "f32" }, { - "name": "copyMetadata", - "type": "bool" + "name": "flags", + "type": "i8" }, { - "name": "death", - "type": [ - "option", - [ - "container", - [ - { - "name": "dimensionName", - "type": "string" - }, - { - "name": "location", - "type": "position" - } - ] - ] - ] - } - ] - ], - "packet_entity_head_rotation": [ - "container", - [ - { - "name": "entityId", + "name": "teleportId", "type": "varint" }, { - "name": "headYaw", - "type": "i8" - } - ] - ], - "packet_camera": [ - "container", - [ - { - "name": "cameraId", - "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ - { - "name": "slot", - "type": "i8" + "name": "dismountVehicle", + "type": "bool" } ] ], - "packet_update_view_position": [ + "packet_profileless_chat": [ "container", [ { - "name": "chunkX", - "type": "varint" + "name": "message", + "type": "string" }, { - "name": "chunkZ", - "type": "varint" - } - ] - ], - "packet_update_view_distance": [ - "container", - [ - { - "name": "viewDistance", + "name": "type", "type": "varint" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ - { - "name": "position", - "type": "i8" }, { "name": "name", "type": "string" - } - ] - ], - "packet_entity_metadata": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ - { - "name": "entityId", - "type": "i32" - }, - { - "name": "vehicleId", - "type": "i32" - } - ] - ], - "packet_entity_velocity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_entity_equipment": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "equipments", - "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } + }, + { + "name": "target", + "type": [ + "option", + "string" ] } ] ], - "packet_experience": [ + "packet_rel_entity_move": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "dX", + "type": "i16" }, { - "name": "totalExperience", - "type": "varint" + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_update_health": [ + "packet_remove_entity_effect": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", + "name": "entityId", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" + "name": "effectId", + "type": "varint" } ] ], - "packet_scoreboard_objective": [ + "packet_resource_pack_send": [ "container", [ { - "name": "name", + "name": "url", "type": "string" }, { - "name": "action", - "type": "i8" + "name": "hash", + "type": "string" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "forced", + "type": "bool" }, { - "name": "type", + "name": "promptMessage", "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } + "option", + "string" ] } ] ], - "packet_set_passengers": [ + "packet_respawn": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "dimension", + "type": "string" }, { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_teams": [ - "container", - [ - { - "name": "team", + "name": "worldName", "type": "string" }, { - "name": "mode", + "name": "hashedSeed", + "type": "i64" + }, + { + "name": "gamemode", "type": "i8" }, { - "name": "name", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "previousGamemode", + "type": "u8" }, { - "name": "friendlyFire", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" - } - ] + "name": "isDebug", + "type": "bool" }, { - "name": "nameTagVisibility", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "isFlat", + "type": "bool" }, { - "name": "collisionRule", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "copyMetadata", + "type": "bool" }, { - "name": "formatting", + "name": "death", "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } + "option", + [ + "container", + [ + { + "name": "dimensionName", + "type": "string" + }, + { + "name": "location", + "type": "position" + } + ] + ] ] + } + ] + ], + "packet_scoreboard_display_objective": [ + "container", + [ + { + "name": "position", + "type": "i8" }, { - "name": "prefix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "name", + "type": "string" + } + ] + ], + "packet_scoreboard_objective": [ + "container", + [ + { + "name": "name", + "type": "string" }, { - "name": "suffix", + "name": "action", + "type": "i8" + }, + { + "name": "displayText", "type": [ "switch", { - "compareTo": "mode", + "compareTo": "action", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, { - "name": "players", + "name": "type", "type": [ "switch", { - "compareTo": "mode", + "compareTo": "action", + "default": "void", "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] } @@ -4224,132 +4142,144 @@ "switch", { "compareTo": "action", + "default": "varint", "fields": { "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_select_advancement_tab": [ + "container", + [ + { + "name": "id", + "type": [ + "option", + "string" + ] + } + ] + ], + "packet_server_data": [ "container", [ { - "name": "location", - "type": "position" + "name": "motd", + "type": [ + "option", + "string" + ] }, { - "name": "angle", - "type": "f32" + "name": "icon", + "type": [ + "option", + "string" + ] + }, + { + "name": "enforcesSecureChat", + "type": "bool" } ] ], - "packet_update_time": [ + "packet_set_cooldown": [ "container", [ { - "name": "age", - "type": "i64" + "name": "itemID", + "type": "varint" }, { - "name": "time", - "type": "i64" + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_entity_sound_effect": [ + "packet_set_passengers": [ "container", [ { - "name": "soundId", + "name": "entityId", "type": "varint" }, { - "name": "soundEvent", + "name": "passengers", "type": [ - "switch", + "array", { - "compareTo": "soundId", - "fields": { - "0": [ - "container", - [ - { - "name": "resource", - "type": "string" - }, - { - "name": "range", - "type": [ - "option", - "f32" - ] - } - ] - ] - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] - }, + } + ] + ], + "packet_set_slot": [ + "container", + [ { - "name": "soundCategory", - "type": "soundSource" + "name": "windowId", + "type": "i8" }, { - "name": "entityId", + "name": "stateId", "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "slot", + "type": "i16" }, { - "name": "pitch", - "type": "f32" - }, + "name": "item", + "type": "slot" + } + ] + ], + "packet_set_title_subtitle": [ + "container", + [ { - "name": "seed", - "type": "i64" + "name": "text", + "type": "string" } ] ], - "packet_stop_sound": [ + "packet_set_title_text": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "text", + "type": "string" + } + ] + ], + "packet_set_title_time": [ + "container", + [ + { + "name": "fadeIn", + "type": "i32" }, { - "name": "source", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" - } - ] + "name": "stay", + "type": "i32" }, { - "name": "sound", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "2": "string", - "3": "string" - }, - "default": "void" - } - ] + "name": "fadeOut", + "type": "i32" + } + ] + ], + "packet_simulation_distance": [ + "container", + [ + { + "name": "distance", + "type": "varint" } ] ], @@ -4390,91 +4320,191 @@ } ] ], - "packet_system_chat": [ + "packet_spawn_entity": [ "container", [ { - "name": "content", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "isActionBar", - "type": "bool" + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "objectData", + "type": "varint" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_playerlist_header": [ + "packet_spawn_entity_experience_orb": [ "container", [ { - "name": "header", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "footer", - "type": "string" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "angle", + "type": "f32" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_collect": [ + "packet_stop_sound": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" + "name": "flags", + "type": "i8" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "source", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "1": "varint", + "3": "varint" + } + } + ] }, { - "name": "pickupItemCount", - "type": "varint" + "name": "sound", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "2": "string", + "3": "string" + } + } + ] } ] ], - "packet_entity_teleport": [ + "packet_system_chat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "content", + "type": "string" }, { - "name": "onGround", + "name": "isActionBar", "type": "bool" } ] ], - "packet_entity_update_attributes": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "properties", + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ "array", { @@ -4483,37 +4513,14 @@ "container", [ { - "name": "name", + "name": "match", "type": "string" }, { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", + "name": "tooltip", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } + "option", + "string" ] } ] @@ -4523,93 +4530,203 @@ } ] ], - "packet_feature_flags": [ + "packet_tags": [ "container", [ { - "name": "features", + "name": "tags", "type": [ "array", { "countType": "varint", - "type": "string" + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] } ] ], - "packet_entity_effect": [ + "packet_teams": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "team", + "type": "string" }, { - "name": "effectId", - "type": "varint" + "name": "mode", + "type": "i8" }, { - "name": "amplifier", - "type": "i8" + "name": "name", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] }, { - "name": "duration", - "type": "varint" + "name": "friendlyFire", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "i8", + "2": "i8" + } + } + ] }, { - "name": "hideParticles", - "type": "i8" + "name": "nameTagVisibility", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] }, { - "name": "factorCodec", + "name": "collisionRule", "type": [ - "option", - "nbt" + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } ] - } - ] - ], - "packet_select_advancement_tab": [ - "container", - [ + }, { - "name": "id", + "name": "formatting", "type": [ - "option", - "string" + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + }, + { + "name": "prefix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "suffix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "players", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "3": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + } ] } ] ], - "packet_server_data": [ + "packet_tile_entity_data": [ "container", [ { - "name": "motd", - "type": [ - "option", - "string" - ] + "name": "location", + "type": "position" }, { - "name": "icon", - "type": [ - "option", - "string" - ] + "name": "action", + "type": "varint" }, { - "name": "enforcesSecureChat", - "type": "bool" + "name": "nbtData", + "type": "optionalNbt" } ] ], - "packet_declare_recipes": [ + "packet_trade_list": [ "container", [ { - "name": "recipes", + "name": "windowId", + "type": "varint" + }, + { + "name": "trades", "type": [ "array", { @@ -4618,1048 +4735,843 @@ "container", [ { - "name": "type", - "type": "string" + "name": "inputItem1", + "type": "slot" }, { - "name": "recipeId", - "type": "string" + "name": "outputItem", + "type": "slot" }, { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "minecraft_simple_recipe_format", - "minecraft:crafting_special_bookcloning": "minecraft_simple_recipe_format", - "minecraft:crafting_special_mapcloning": "minecraft_simple_recipe_format", - "minecraft:crafting_special_mapextending": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_rocket": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_star": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_star_fade": "minecraft_simple_recipe_format", - "minecraft:crafting_special_repairitem": "minecraft_simple_recipe_format", - "minecraft:crafting_special_tippedarrow": "minecraft_simple_recipe_format", - "minecraft:crafting_special_bannerduplicate": "minecraft_simple_recipe_format", - "minecraft:crafting_special_banneraddpattern": "minecraft_simple_recipe_format", - "minecraft:crafting_special_shielddecoration": "minecraft_simple_recipe_format", - "minecraft:crafting_special_shulkerboxcoloring": "minecraft_simple_recipe_format", - "minecraft:crafting_special_suspiciousstew": "minecraft_simple_recipe_format", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing": [ - "container", - [ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] + "name": "inputItem2", + "type": "slot" + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" } ] ] } ] + }, + { + "name": "villagerLevel", + "type": "varint" + }, + { + "name": "experience", + "type": "varint" + }, + { + "name": "isRegularVillager", + "type": "bool" + }, + { + "name": "canRestock", + "type": "bool" } ] ], - "packet_tags": [ + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + } + ] + ], + "packet_unlock_recipes": [ "container", [ { - "name": "tags", + "name": "action", + "type": "varint" + }, + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "filteringSmeltable", + "type": "bool" + }, + { + "name": "blastFurnaceOpen", + "type": "bool" + }, + { + "name": "filteringBlastFurnace", + "type": "bool" + }, + { + "name": "smokerBookOpen", + "type": "bool" + }, + { + "name": "filteringSmoker", + "type": "bool" + }, + { + "name": "recipes1", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ + "type": "string" + } + ] + }, + { + "name": "recipes2", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "array", { - "name": "tagType", + "countType": "varint", "type": "string" - }, - { - "name": "tags", - "type": "tags" } ] - ] + } } ] } ] ], - "packet_acknowledge_player_digging": [ + "packet_update_health": [ "container", [ { - "name": "sequenceId", + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" - } - ] - ], - "packet_clear_titles": [ - "container", - [ + }, { - "name": "reset", - "type": "bool" + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_initialize_world_border": [ + "packet_update_light": [ "container", [ { - "name": "x", - "type": "f64" + "name": "chunkX", + "type": "varint" }, { - "name": "z", - "type": "f64" + "name": "chunkZ", + "type": "varint" }, { - "name": "oldDiameter", - "type": "f64" + "name": "trustEdges", + "type": "bool" }, { - "name": "newDiameter", - "type": "f64" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "speed", - "type": "varint" + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "portalTeleportBoundary", - "type": "varint" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "warningBlocks", - "type": "varint" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "warningTime", - "type": "varint" + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] + }, + { + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], - "packet_action_bar": [ + "packet_update_time": [ "container", [ { - "name": "text", - "type": "string" + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" } ] ], - "packet_world_border_center": [ + "packet_update_view_distance": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "viewDistance", + "type": "varint" } ] ], - "packet_world_border_lerp_size": [ + "packet_update_view_position": [ "container", [ { - "name": "oldDiameter", - "type": "f64" - }, - { - "name": "newDiameter", - "type": "f64" + "name": "chunkX", + "type": "varint" }, { - "name": "speed", + "name": "chunkZ", "type": "varint" } ] ], - "packet_world_border_size": [ + "packet_vehicle_move": [ "container", [ { - "name": "diameter", + "name": "x", "type": "f64" - } - ] - ], - "packet_world_border_warning_delay": [ - "container", - [ + }, { - "name": "warningTime", - "type": "varint" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_world_border_warning_reach": [ + "packet_window_items": [ "container", [ { - "name": "warningBlocks", + "name": "windowId", + "type": "u8" + }, + { + "name": "stateId", "type": "varint" - } - ] - ], - "packet_ping": [ - "container", - [ + }, { - "name": "id", - "type": "i32" - } - ] - ], - "packet_set_title_subtitle": [ - "container", - [ + "name": "items", + "type": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ] + }, { - "name": "text", - "type": "string" + "name": "carriedItem", + "type": "slot" } ] ], - "packet_set_title_text": [ + "packet_world_border_center": [ "container", [ { - "name": "text", - "type": "string" + "name": "x", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_set_title_time": [ + "packet_world_border_lerp_size": [ "container", [ { - "name": "fadeIn", - "type": "i32" + "name": "oldDiameter", + "type": "f64" }, { - "name": "stay", - "type": "i32" + "name": "newDiameter", + "type": "f64" }, { - "name": "fadeOut", - "type": "i32" + "name": "speed", + "type": "varint" } ] ], - "packet_simulation_distance": [ + "packet_world_border_size": [ "container", [ { - "name": "distance", - "type": "varint" + "name": "diameter", + "type": "f64" } ] ], - "packet": [ + "packet_world_border_warning_delay": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "named_entity_spawn", - "0x03": "animation", - "0x04": "statistics", - "0x05": "acknowledge_player_digging", - "0x06": "block_break_animation", - "0x07": "tile_entity_data", - "0x08": "block_action", - "0x09": "block_change", - "0x0a": "boss_bar", - "0x0b": "difficulty", - "0x0c": "clear_titles", - "0x0d": "tab_complete", - "0x0e": "declare_commands", - "0x0f": "close_window", - "0x10": "window_items", - "0x11": "craft_progress_bar", - "0x12": "set_slot", - "0x13": "set_cooldown", - "0x14": "chat_suggestions", - "0x15": "custom_payload", - "0x16": "hide_message", - "0x17": "kick_disconnect", - "0x18": "profileless_chat", - "0x19": "entity_status", - "0x1a": "explosion", - "0x1b": "unload_chunk", - "0x1c": "game_state_change", - "0x1d": "open_horse_window", - "0x1e": "initialize_world_border", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "update_light", - "0x24": "login", - "0x25": "map", - "0x26": "trade_list", - "0x27": "rel_entity_move", - "0x28": "entity_move_look", - "0x29": "entity_look", - "0x2a": "vehicle_move", - "0x2b": "open_book", - "0x2c": "open_window", - "0x2d": "open_sign_entity", - "0x2e": "ping", - "0x2f": "craft_recipe_response", - "0x30": "abilities", - "0x31": "player_chat", - "0x32": "end_combat_event", - "0x33": "enter_combat_event", - "0x34": "death_combat_event", - "0x35": "player_remove", - "0x36": "player_info", - "0x37": "face_player", - "0x38": "position", - "0x39": "unlock_recipes", - "0x3a": "entity_destroy", - "0x3b": "remove_entity_effect", - "0x3c": "resource_pack_send", - "0x3d": "respawn", - "0x3e": "entity_head_rotation", - "0x3f": "multi_block_change", - "0x40": "select_advancement_tab", - "0x41": "server_data", - "0x42": "action_bar", - "0x43": "world_border_center", - "0x44": "world_border_lerp_size", - "0x45": "world_border_size", - "0x46": "world_border_warning_delay", - "0x47": "world_border_warning_reach", - "0x48": "camera", - "0x49": "held_item_slot", - "0x4a": "update_view_position", - "0x4b": "update_view_distance", - "0x4c": "spawn_position", - "0x4d": "scoreboard_display_objective", - "0x4e": "entity_metadata", - "0x4f": "attach_entity", - "0x50": "entity_velocity", - "0x51": "entity_equipment", - "0x52": "experience", - "0x53": "update_health", - "0x54": "scoreboard_objective", - "0x55": "set_passengers", - "0x56": "teams", - "0x57": "scoreboard_score", - "0x58": "simulation_distance", - "0x59": "set_title_subtitle", - "0x5a": "update_time", - "0x5b": "set_title_text", - "0x5c": "set_title_time", - "0x5d": "entity_sound_effect", - "0x5e": "sound_effect", - "0x5f": "stop_sound", - "0x60": "system_chat", - "0x61": "playerlist_header", - "0x62": "nbt_query_response", - "0x63": "collect", - "0x64": "entity_teleport", - "0x65": "advancements", - "0x66": "entity_update_attributes", - "0x67": "feature_flags", - "0x68": "entity_effect", - "0x69": "declare_recipes", - "0x6a": "tags" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "clear_titles": "packet_clear_titles", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "close_window": "packet_close_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "chat_suggestions": "packet_chat_suggestions", - "custom_payload": "packet_custom_payload", - "hide_message": "packet_hide_message", - "kick_disconnect": "packet_kick_disconnect", - "profileless_chat": "packet_profileless_chat", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "initialize_world_border": "packet_initialize_world_border", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_window": "packet_open_window", - "open_sign_entity": "packet_open_sign_entity", - "ping": "packet_ping", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "player_chat": "packet_player_chat", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_remove": "packet_player_remove", - "player_info": "packet_player_info", - "face_player": "packet_face_player", - "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_head_rotation": "packet_entity_head_rotation", - "multi_block_change": "packet_multi_block_change", - "select_advancement_tab": "packet_select_advancement_tab", - "server_data": "packet_server_data", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "spawn_position": "packet_spawn_position", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "set_title_subtitle": "packet_set_title_subtitle", - "update_time": "packet_update_time", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time", - "entity_sound_effect": "packet_entity_sound_effect", - "sound_effect": "packet_sound_effect", - "stop_sound": "packet_stop_sound", - "system_chat": "packet_system_chat", - "playerlist_header": "packet_playerlist_header", - "nbt_query_response": "packet_nbt_query_response", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "advancements": "packet_advancements", - "entity_update_attributes": "packet_entity_update_attributes", - "feature_flags": "packet_feature_flags", - "entity_effect": "packet_entity_effect", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags" - } - } - ] + "name": "warningTime", + "type": "varint" } - ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ] + ], + "packet_world_border_warning_reach": [ "container", [ { - "name": "teleportId", + "name": "warningBlocks", "type": "varint" } ] ], - "packet_query_block_nbt": [ + "packet_world_event": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "effectId", + "type": "i32" }, { "name": "location", "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" } ] ], - "packet_chat_command": [ + "packet_world_particles": [ "container", [ { - "name": "command", - "type": "string" + "name": "particleId", + "type": "varint" }, { - "name": "timestamp", - "type": "i64" + "name": "longDistance", + "type": "bool" }, { - "name": "salt", - "type": "i64" + "name": "x", + "type": "f64" }, { - "name": "argumentSignatures", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "argumentName", - "type": "string" - }, - { - "name": "signature", - "type": [ - "buffer", - { - "count": 256 - } - ] - } - ] - ] - } - ] + "name": "y", + "type": "f64" }, { - "name": "messageCount", - "type": "varint" + "name": "z", + "type": "f64" }, { - "name": "acknowledged", - "type": [ - "buffer", - { - "count": 3 - } - ] - } - ] - ], - "packet_chat_message": [ - "container", - [ - { - "name": "message", - "type": "string" + "name": "offsetX", + "type": "f32" }, { - "name": "timestamp", - "type": "i64" + "name": "offsetY", + "type": "f32" }, { - "name": "salt", - "type": "i64" + "name": "offsetZ", + "type": "f32" }, { - "name": "signature", - "type": [ - "option", - [ - "buffer", - { - "count": 256 - } - ] - ] + "name": "particleData", + "type": "f32" }, { - "name": "offset", - "type": "varint" + "name": "particles", + "type": "i32" }, { - "name": "acknowledged", + "name": "data", "type": [ - "buffer", + "particleData", { - "count": 3 + "compareTo": "particleId" } ] } ] - ], - "packet_set_difficulty": [ - "container", - [ - { - "name": "newDifficulty", - "type": "u8" - } - ] - ], - "packet_message_acknowledgement": [ - "container", - [ - { - "name": "count", - "type": "varint" - } - ] - ], - "packet_edit_book": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "hand", - "type": "varint" - }, - { - "name": "pages", + "name": "name", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": "string" + "mappings": { + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "message_acknowledgement", + "0x04": "chat_command", + "0x05": "chat_message", + "0x06": "client_command", + "0x07": "settings", + "0x08": "tab_complete", + "0x09": "enchant_item", + "0x0a": "window_click", + "0x0b": "close_window", + "0x0c": "custom_payload", + "0x0d": "edit_book", + "0x0e": "query_entity_nbt", + "0x0f": "use_entity", + "0x10": "generate_structure", + "0x11": "keep_alive", + "0x12": "lock_difficulty", + "0x13": "position", + "0x14": "position_look", + "0x15": "look", + "0x16": "flying", + "0x17": "vehicle_move", + "0x18": "steer_boat", + "0x19": "pick_item", + "0x1a": "craft_recipe_request", + "0x1b": "abilities", + "0x1c": "block_dig", + "0x1d": "entity_action", + "0x1e": "steer_vehicle", + "0x1f": "pong", + "0x20": "chat_session_update", + "0x21": "recipe_book", + "0x22": "displayed_recipe", + "0x23": "name_item", + "0x24": "resource_pack_receive", + "0x25": "advancement_tab", + "0x26": "select_trade", + "0x27": "set_beacon_effect", + "0x28": "held_item_slot", + "0x29": "update_command_block", + "0x2a": "update_command_block_minecart", + "0x2b": "set_creative_slot", + "0x2c": "update_jigsaw_block", + "0x2d": "update_structure_block", + "0x2e": "update_sign", + "0x2f": "arm_animation", + "0x30": "spectate", + "0x31": "block_place", + "0x32": "use_item" + }, + "type": "varint" } ] }, { - "name": "title", + "name": "params", "type": [ - "option", - "string" + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat_command": "packet_chat_command", + "chat_message": "packet_chat_message", + "chat_session_update": "packet_chat_session_update", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_payload": "packet_custom_payload", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "message_acknowledgement": "packet_message_acknowledgement", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" + } + } ] } ] ], - "packet_query_entity_nbt": [ + "packet_abilities": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "entityId", - "type": "varint" + "name": "flags", + "type": "i8" } ] ], - "packet_pick_item": [ + "packet_advancement_tab": [ "container", [ { - "name": "slot", + "name": "action", "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ + }, { - "name": "name", - "type": "string" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_select_trade": [ + "packet_arm_animation": [ "container", [ { - "name": "slot", + "name": "hand", "type": "varint" } ] ], - "packet_set_beacon_effect": [ + "packet_block_dig": [ "container", [ { - "name": "primary_effect", - "type": [ - "option", - "varint" - ] + "name": "status", + "type": "varint" }, - { - "name": "secondary_effect", - "type": [ - "option", - "varint" - ] - } - ] - ], - "packet_update_command_block": [ - "container", - [ { "name": "location", "type": "position" }, { - "name": "command", - "type": "string" + "name": "face", + "type": "i8" }, { - "name": "mode", + "name": "sequence", "type": "varint" - }, - { - "name": "flags", - "type": "u8" } ] ], - "packet_update_command_block_minecart": [ + "packet_block_place": [ "container", [ { - "name": "entityId", + "name": "hand", "type": "varint" }, - { - "name": "command", - "type": "string" - }, - { - "name": "track_output", - "type": "bool" - } - ] - ], - "packet_update_structure_block": [ - "container", - [ { "name": "location", "type": "position" }, { - "name": "action", - "type": "varint" - }, - { - "name": "mode", + "name": "direction", "type": "varint" }, { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" + "name": "cursorX", + "type": "f32" }, { - "name": "size_y", - "type": "i8" + "name": "cursorY", + "type": "f32" }, { - "name": "size_z", - "type": "i8" + "name": "cursorZ", + "type": "f32" }, { - "name": "mirror", - "type": "varint" + "name": "insideBlock", + "type": "bool" }, { - "name": "rotation", + "name": "sequence", "type": "varint" - }, + } + ] + ], + "packet_chat_command": [ + "container", + [ { - "name": "metadata", + "name": "command", "type": "string" }, { - "name": "integrity", - "type": "f32" + "name": "timestamp", + "type": "i64" }, { - "name": "seed", - "type": "varint" + "name": "salt", + "type": "i64" }, { - "name": "flags", - "type": "u8" - } - ] - ], - "packet_tab_complete": [ - "container", - [ + "name": "argumentSignatures", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "argumentName", + "type": "string" + }, + { + "name": "signature", + "type": [ + "buffer", + { + "count": 256 + } + ] + } + ] + ] + } + ] + }, { - "name": "transactionId", + "name": "messageCount", "type": "varint" }, { - "name": "text", - "type": "string" - } - ] - ], - "packet_client_command": [ - "container", - [ - { - "name": "actionId", - "type": "varint" + "name": "acknowledged", + "type": [ + "buffer", + { + "count": 3 + } + ] } ] ], - "packet_settings": [ + "packet_chat_message": [ "container", [ { - "name": "locale", + "name": "message", "type": "string" }, { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" + "name": "timestamp", + "type": "i64" }, { - "name": "chatColors", - "type": "bool" + "name": "salt", + "type": "i64" }, { - "name": "skinParts", - "type": "u8" + "name": "signature", + "type": [ + "option", + [ + "buffer", + { + "count": 256 + } + ] + ] }, { - "name": "mainHand", + "name": "offset", "type": "varint" }, { - "name": "enableTextFiltering", - "type": "bool" - }, - { - "name": "enableServerListing", - "type": "bool" - } - ] - ], - "packet_enchant_item": [ - "container", - [ - { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "acknowledged", + "type": [ + "buffer", + { + "count": 3 + } + ] } ] ], - "packet_window_click": [ + "packet_chat_session_update": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" + "name": "sessionUUID", + "type": "UUID" }, { - "name": "mouseButton", - "type": "i8" + "name": "expireTime", + "type": "i64" }, { - "name": "mode", - "type": "varint" + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "changedSlots", + "name": "signature", "type": [ - "array", + "buffer", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ] + "countType": "varint" } ] - }, + } + ] + ], + "packet_client_command": [ + "container", + [ { - "name": "cursorItem", - "type": "slot" + "name": "actionId", + "type": "varint" } ] ], @@ -5672,6 +5584,23 @@ } ] ], + "packet_craft_recipe_request": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "recipe", + "type": "string" + }, + { + "name": "makeAll", + "type": "bool" + } + ] + ], "packet_custom_payload": [ "container", [ @@ -5685,72 +5614,76 @@ } ] ], - "packet_use_entity": [ + "packet_displayed_recipe": [ "container", [ { - "name": "target", - "type": "varint" - }, + "name": "recipeId", + "type": "string" + } + ] + ], + "packet_edit_book": [ + "container", + [ { - "name": "mouse", + "name": "hand", "type": "varint" }, { - "name": "x", + "name": "pages", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" + "countType": "varint", + "type": "string" } ] }, { - "name": "y", + "name": "title", "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } + "option", + "string" ] + } + ] + ], + "packet_enchant_item": [ + "container", + [ + { + "name": "windowId", + "type": "i8" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "enchantment", + "type": "i8" + } + ] + ], + "packet_entity_action": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "actionId", + "type": "varint" }, { - "name": "sneaking", + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ + { + "name": "onGround", "type": "bool" } ] @@ -5772,6 +5705,15 @@ } ] ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slotId", + "type": "i16" + } + ] + ], "packet_keep_alive": [ "container", [ @@ -5790,6 +5732,59 @@ } ] ], + "packet_look": [ + "container", + [ + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_message_acknowledgement": [ + "container", + [ + { + "name": "count", + "type": "varint" + } + ] + ], + "packet_name_item": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] + ], + "packet_pong": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], "packet_position": [ "container", [ @@ -5840,131 +5835,164 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + } + ] + ], + "packet_query_entity_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_recipe_book": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "bookId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "bookOpen", + "type": "bool" }, { - "name": "onGround", + "name": "filterActive", "type": "bool" } ] ], - "packet_flying": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_select_trade": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "slot", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "primary_effect", + "type": [ + "option", + "varint" + ] }, { - "name": "rightPaddle", - "type": "bool" + "name": "secondary_effect", + "type": [ + "option", + "varint" + ] } ] ], - "packet_craft_recipe_request": [ + "packet_set_creative_slot": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" + "name": "slot", + "type": "i16" }, { - "name": "makeAll", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_abilities": [ + "packet_set_difficulty": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_block_dig": [ + "packet_settings": [ "container", [ { - "name": "status", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "chatColors", + "type": "bool" }, { - "name": "face", - "type": "i8" + "name": "skinParts", + "type": "u8" }, { - "name": "sequence", + "name": "mainHand", "type": "varint" + }, + { + "name": "enableTextFiltering", + "type": "bool" + }, + { + "name": "enableServerListing", + "type": "bool" } ] ], - "packet_entity_action": [ + "packet_spectate": [ "container", [ { - "name": "entityId", - "type": "varint" - }, + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5985,60 +6013,63 @@ } ] ], - "packet_displayed_recipe": [ - "container", - [ - { - "name": "recipeId", - "type": "string" - } - ] - ], - "packet_recipe_book": [ + "packet_tab_complete": [ "container", [ { - "name": "bookId", + "name": "transactionId", "type": "varint" }, { - "name": "bookOpen", - "type": "bool" - }, - { - "name": "filterActive", - "type": "bool" + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "location", + "type": "position" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block_minecart": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -6096,262 +6127,231 @@ } ] ], - "packet_arm_animation": [ + "packet_update_structure_block": [ "container", [ { - "name": "hand", - "type": "varint" - } - ] - ], - "packet_spectate": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ + "name": "action", + "type": "varint" + }, { - "name": "hand", + "name": "mode", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "name", + "type": "string" }, { - "name": "direction", + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", "type": "varint" }, { - "name": "cursorX", - "type": "f32" + "name": "rotation", + "type": "varint" }, { - "name": "cursorY", - "type": "f32" + "name": "metadata", + "type": "string" }, { - "name": "cursorZ", + "name": "integrity", "type": "f32" }, { - "name": "insideBlock", - "type": "bool" + "name": "seed", + "type": "varint" }, { - "name": "sequence", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_use_item": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", "type": "varint" }, { - "name": "sequence", + "name": "mouse", "type": "varint" - } - ] - ], - "packet_advancement_tab": [ - "container", - [ + }, { - "name": "action", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "tabId", + "name": "y", "type": [ "switch", { - "compareTo": "action", + "compareTo": "mouse", + "default": "void", "fields": { - "0": "string", - "1": "void" + "2": "f32" } } ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + }, + { + "name": "sneaking", + "type": "bool" } ] ], - "packet_pong": [ + "packet_use_item": [ "container", [ { - "name": "id", - "type": "i32" + "name": "hand", + "type": "varint" + }, + { + "name": "sequence", + "type": "varint" } ] ], - "packet_chat_session_update": [ + "packet_vehicle_move": [ "container", [ { - "name": "sessionUUID", - "type": "UUID" + "name": "x", + "type": "f64" }, { - "name": "expireTime", - "type": "i64" + "name": "y", + "type": "f64" }, { - "name": "publicKey", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "z", + "type": "f64" }, { - "name": "signature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "message_acknowledgement", - "0x04": "chat_command", - "0x05": "chat_message", - "0x06": "client_command", - "0x07": "settings", - "0x08": "tab_complete", - "0x09": "enchant_item", - "0x0a": "window_click", - "0x0b": "close_window", - "0x0c": "custom_payload", - "0x0d": "edit_book", - "0x0e": "query_entity_nbt", - "0x0f": "use_entity", - "0x10": "generate_structure", - "0x11": "keep_alive", - "0x12": "lock_difficulty", - "0x13": "position", - "0x14": "position_look", - "0x15": "look", - "0x16": "flying", - "0x17": "vehicle_move", - "0x18": "steer_boat", - "0x19": "pick_item", - "0x1a": "craft_recipe_request", - "0x1b": "abilities", - "0x1c": "block_dig", - "0x1d": "entity_action", - "0x1e": "steer_vehicle", - "0x1f": "pong", - "0x20": "chat_session_update", - "0x21": "recipe_book", - "0x22": "displayed_recipe", - "0x23": "name_item", - "0x24": "resource_pack_receive", - "0x25": "advancement_tab", - "0x26": "select_trade", - "0x27": "set_beacon_effect", - "0x28": "held_item_slot", - "0x29": "update_command_block", - "0x2a": "update_command_block_minecart", - "0x2b": "set_creative_slot", - "0x2c": "update_jigsaw_block", - "0x2d": "update_structure_block", - "0x2e": "update_sign", - "0x2f": "arm_animation", - "0x30": "spectate", - "0x31": "block_place", - "0x32": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", + "name": "stateId", + "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "message_acknowledgement": "packet_message_acknowledgement", - "chat_command": "packet_chat_command", - "chat_message": "packet_chat_message", - "client_command": "packet_client_command", - "settings": "packet_settings", - "tab_complete": "packet_tab_complete", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "pick_item": "packet_pick_item", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "pong": "packet_pong", - "chat_session_update": "packet_chat_session_update", - "recipe_book": "packet_recipe_book", - "displayed_recipe": "packet_displayed_recipe", - "name_item": "packet_name_item", - "resource_pack_receive": "packet_resource_pack_receive", - "advancement_tab": "packet_advancement_tab", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "held_item_slot": "packet_held_item_slot", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_structure_block": "packet_update_structure_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "slot" + } + ] + ] } ] + }, + { + "name": "cursorItem", + "type": "slot" } ] ] diff --git a/data/pc/1.19.4/protocol.json b/data/pc/1.19.4/protocol.json index ec3186576..ad88d1bba 100644 --- a/data/pc/1.19.4/protocol.json +++ b/data/pc/1.19.4/protocol.json @@ -1,120 +1,11 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", - "registryEntryHolder": "native", - "registryEntryHolderSet": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3f": [ - "container", - [ - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - } - ] - ], - "vec4f": [ - "container", - [ - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "w", - "type": "f32" - } - ] - ], - "vec3f64": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - } - ] - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], "ItemSoundEvent": [ "container", [ @@ -141,722 +32,168 @@ } } ], - "slot": [ - "container", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "chat_session": [ + "option", [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "publicKey", + "type": [ + "container", + [ + { + "name": "expireTime", + "type": "i64" + }, + { + "name": "keyBytes", + "type": [ + "buffer", { - "name": "itemCount", - "type": "i8" - }, + "countType": "varint" + } + ] + }, + { + "name": "keySignature", + "type": [ + "buffer", { - "name": "nbtData", - "type": "optionalNbt" + "countType": "varint" } ] - ] - } - } - ] - } + } + ] + ] + } + ] ] ], - "particle": [ + "chunkBlockEntity": [ "container", [ { - "name": "particleId", + "anon": true, + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 + } + ] + ] + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "type", "type": "varint" }, { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "nbtData", + "type": "optionalNbt" } ] ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "2": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "3": [ - "container", + "command_node": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", [ { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", - [ + "name": "unused", + "signed": false, + "size": 3 + }, { - "name": "red", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "green", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_command", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "15": [ - "container", - [ - { - "name": "fromRed", - "type": "f32" - }, - { - "name": "fromGreen", - "type": "f32" - }, - { - "name": "fromBlue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - }, - { - "name": "toRed", - "type": "f32" - }, - { - "name": "toGreen", - "type": "f32" - }, - { - "name": "toBlue", - "type": "f32" - } - ] - ], - "25": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "33": [ - "container", - [ - { - "name": "rotation", - "type": "f32" - } - ] - ], - "42": [ - "container", - [ - { - "name": "item", - "type": "slot" - } - ] - ], - "43": [ - "container", - [ - { - "name": "positionType", - "type": "string" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:entity": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entityEyeHeight", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:entity": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "destination", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:block": "position", - "minecraft:entity": "varint" - } - } - ] - }, - { - "name": "ticks", - "type": "varint" - } - ] - ], - "95": [ - "container", - [ - { - "name": "delayInTicksBeforeShown", - "type": "varint" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "packedChunkPos": [ - "container", - [ - { - "name": "z", - "type": "i32" - }, { - "name": "x", - "type": "i32" - } - ] - ], - "soundSource": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "master", - "1": "music", - "2": "record", - "3": "weather", - "4": "block", - "5": "hostile", - "6": "neutral", - "7": "player", - "8": "ambient", - "9": "voice" - } - } - ], - "previousMessages": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ + "name": "children", + "type": [ + "array", { - "name": "id", + "countType": "varint", "type": "varint" - }, - { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] } ] - ] - } - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "byte": "i8", - "int": "varint", - "long": "varlong", - "float": "f32", - "string": "string", - "component": "string", - "optional_component": [ - "option", - "string" - ], - "item_stack": "slot", - "boolean": "bool", - "rotations": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" + }, + { + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" } - ] - ], - "block_pos": "position", - "optional_block_pos": [ - "option", - "position" - ], - "direction": "varint", - "optional_uuid": [ - "option", - "UUID" - ], - "block_state": "varint", - "optional_block_state": "optvarint", - "compound_tag": "nbt", - "particle": "particle", - "villager_data": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "optional_unsigned_int": "optvarint", - "pose": "varint", - "cat_variant": "varint", - "frog_variant": "varint", - "optional_global_pos": [ - "option", - "string" - ], - "painting_variant": "varint", - "sniffer_state": "varint", - "vector3": "vec3f", - "quaternion": "vec4f" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "byte", - "1": "int", - "2": "long", - "3": "float", - "4": "string", - "5": "component", - "6": "optional_component", - "7": "item_stack", - "8": "boolean", - "9": "rotations", - "10": "block_pos", - "11": "optional_block_pos", - "12": "direction", - "13": "optional_uuid", - "14": "block_state", - "15": "optional_block_state", - "16": "compound_tag", - "17": "particle", - "18": "villager_data", - "19": "optional_unsigned_int", - "20": "pose", - "21": "cat_variant", - "22": "frog_variant", - "23": "optional_global_pos", - "24": "painting_variant", - "25": "sniffer_state", - "26": "vector3", - "27": "quaternion" - } - } - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] } ] - ] - } - ], - "minecraft_simple_recipe_format": [ - "container", - [ - { - "name": "category", - "type": "varint" - } - ] - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" }, { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "chunkBlockEntity": [ - "container", - [ - { - "anon": true, + "name": "extraNodeData", "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ], - "chat_session": [ - "option", - [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "publicKey", - "type": [ - "container", - [ - { - "name": "expireTime", - "type": "i64" - }, - { - "name": "keyBytes", - "type": [ - "buffer", + "switch", + { + "compareTo": "flags/command_node_type", + "fields": { + "0": "void", + "1": [ + "container", + [ { - "countType": "varint" + "name": "name", + "type": "string" } ] - }, - { - "name": "keySignature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] - } - ] - ] - ], - "game_profile": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "extraNodeData", - "type": [ - "switch", - { - "compareTo": "flags/command_node_type", - "fields": { - "0": "void", - "1": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] - ], - "2": [ - "container", - [ + ], + "2": [ + "container", + [ { "name": "name", "type": "string" @@ -866,7 +203,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "brigadier:bool", "1": "brigadier:float", @@ -917,7 +253,8 @@ "46": "minecraft:template_rotation", "47": "minecraft:heightmap", "48": "minecraft:uuid" - } + }, + "type": "varint" } ] }, @@ -929,7 +266,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -939,18 +276,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -961,10 +298,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -974,16 +311,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -993,18 +330,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1015,10 +352,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -1028,10 +365,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -1047,18 +384,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1069,10 +406,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -1082,10 +419,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -1101,18 +438,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1123,10 +460,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -1136,10 +473,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -1148,45 +485,52 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:gamemode": "void", + "minecraft:heightmap": "void", + "minecraft:int_range": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", "minecraft:nbt": "void", "minecraft:nbt_path": "void", @@ -1194,43 +538,25 @@ "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", + "minecraft:resource": [ + "container", [ { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false + "name": "registry", + "type": "string" } ] ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:dimension": "void", - "minecraft:gamemode": "void", - "minecraft:time": [ + "minecraft:resource_key": [ "container", [ { - "name": "min", - "type": "i32" + "name": "registry", + "type": "string" } ] ], + "minecraft:resource_location": "void", "minecraft:resource_or_tag": [ "container", [ @@ -1249,44 +575,588 @@ } ] ], - "minecraft:resource": [ - "container", + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", [ { - "name": "registry", - "type": "string" + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 } ] ], - "minecraft:resource_key": [ + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:template_mirror": "void", + "minecraft:template_rotation": "void", + "minecraft:time": [ "container", [ { - "name": "registry", - "type": "string" + "name": "min", + "type": "i32" } ] ], - "minecraft:template_mirror": "void", - "minecraft:template_rotation": "void", - "minecraft:heightmap": "void", - "minecraft:uuid": "void" + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" + } + } + ] + }, + { + "name": "suggestionType", + "type": [ + "switch", + { + "compareTo": "../flags/has_custom_suggestions", + "default": "void", + "fields": { + "1": "string" } } ] + } + ] + ] + } + } + ] + } + ] + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "compound_tag", + "17": "particle", + "18": "villager_data", + "19": "optional_unsigned_int", + "20": "pose", + "21": "cat_variant", + "22": "frog_variant", + "23": "optional_global_pos", + "24": "painting_variant", + "25": "sniffer_state", + "26": "vector3", + "27": "quaternion" + }, + "type": "varint" + } + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "block_pos": "position", + "block_state": "varint", + "boolean": "bool", + "byte": "i8", + "cat_variant": "varint", + "component": "string", + "compound_tag": "nbt", + "direction": "varint", + "float": "f32", + "frog_variant": "varint", + "int": "varint", + "item_stack": "slot", + "long": "varlong", + "optional_block_pos": [ + "option", + "position" + ], + "optional_block_state": "optvarint", + "optional_component": [ + "option", + "string" + ], + "optional_global_pos": [ + "option", + "string" + ], + "optional_unsigned_int": "optvarint", + "optional_uuid": [ + "option", + "UUID" + ], + "painting_variant": "varint", + "particle": "particle", + "pose": "varint", + "quaternion": "vec4f", + "rotations": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "sniffer_state": "varint", + "string": "string", + "vector3": "vec3f", + "villager_data": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "game_profile": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + } + ] + ], + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_simple_recipe_format": [ + "container", + [ + { + "name": "category", + "type": "varint" + } + ] + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "packedChunkPos": [ + "container", + [ + { + "name": "z", + "type": "i32" + }, + { + "name": "x", + "type": "i32" + } + ] + ], + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "2": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "15": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "25": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "33": [ + "container", + [ + { + "name": "rotation", + "type": "f32" + } + ] + ], + "42": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ], + "43": [ + "container", + [ + { + "name": "positionType", + "type": "string" + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "positionType", + "default": "void", + "fields": { + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "entityEyeHeight", + "type": [ + "switch", + { + "compareTo": "positionType", + "default": "void", + "fields": { + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "destination", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "minecraft:block": "position", + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] + ], + "95": [ + "container", + [ + { + "name": "delayInTicksBeforeShown", + "type": "varint" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "previousMessages": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "signature", + "type": [ + "switch", + { + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] + } + } + ] + } + ] + ] + } + ], + "pstring": "native", + "registryEntryHolder": "native", + "registryEntryHolderSet": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" }, { - "name": "suggestionType", - "type": [ - "switch", - { - "compareTo": "../flags/has_custom_suggestions", - "fields": { - "1": "string" - }, - "default": "void" - } - ] + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] ] @@ -1295,7 +1165,137 @@ ] } ] - ] + ], + "soundSource": [ + "mapper", + { + "mappings": { + "0": "master", + "1": "music", + "2": "record", + "3": "weather", + "4": "block", + "5": "hostile", + "6": "neutral", + "7": "player", + "8": "ambient", + "9": "voice" + }, + "type": "varint" + } + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + } + ] + ], + "vec3f64": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "vec4f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "w", + "type": "f32" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -1308,8 +1308,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -1329,6 +1329,46 @@ }, "toServer": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", + [ + { + "name": "payload", + "type": "u8" + } + ] + ], "packet_set_protocol": [ "container", [ @@ -1349,16 +1389,13 @@ "type": "varint" } ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1367,11 +1404,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -1382,38 +1419,36 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_ping": [ + "packet_server_info": [ "container", [ { - "name": "time", - "type": "i64" + "name": "response", + "type": "string" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1422,11 +1457,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "server_info", + "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -1437,21 +1472,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -1462,6 +1489,16 @@ } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1470,11 +1507,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" + }, + "type": "varint" } ] }, @@ -1485,20 +1525,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -1535,6 +1581,23 @@ } ] ], + "packet_login_plugin_request": [ + "container", + [ + { + "name": "messageId", + "type": "varint" + }, + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], "packet_success": [ "container", [ @@ -1576,33 +1639,105 @@ ] } ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "encryption_begin": "packet_encryption_begin", + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" + } + } + ] + } + ] ], - "packet_compress": [ + "packet_encryption_begin": [ "container", [ { - "name": "threshold", + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ], + "packet_login_plugin_response": [ + "container", + [ + { + "name": "messageId", "type": "varint" + }, + { + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_login_plugin_request": [ + "packet_login_start": [ "container", [ { - "name": "messageId", - "type": "varint" - }, - { - "name": "channel", + "name": "username", "type": "string" }, { - "name": "data", - "type": "restBuffer" + "name": "playerUUID", + "type": [ + "option", + "UUID" + ] } ] - ], + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1611,14 +1746,120 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" - } + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "spawn_entity_experience_orb", + "0x03": "named_entity_spawn", + "0x04": "animation", + "0x05": "statistics", + "0x06": "acknowledge_player_digging", + "0x07": "block_break_animation", + "0x08": "tile_entity_data", + "0x09": "block_action", + "0x0a": "block_change", + "0x0b": "boss_bar", + "0x0c": "difficulty", + "0x0d": "chunk_biomes", + "0x0e": "clear_titles", + "0x0f": "tab_complete", + "0x10": "declare_commands", + "0x11": "close_window", + "0x12": "window_items", + "0x13": "craft_progress_bar", + "0x14": "set_slot", + "0x15": "set_cooldown", + "0x16": "chat_suggestions", + "0x17": "custom_payload", + "0x18": "damage_event", + "0x19": "hide_message", + "0x1a": "kick_disconnect", + "0x1b": "profileless_chat", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "open_horse_window", + "0x21": "hurt_animation", + "0x22": "initialize_world_border", + "0x23": "keep_alive", + "0x24": "map_chunk", + "0x25": "world_event", + "0x26": "world_particles", + "0x27": "update_light", + "0x28": "login", + "0x29": "map", + "0x2a": "trade_list", + "0x2b": "rel_entity_move", + "0x2c": "entity_move_look", + "0x2d": "entity_look", + "0x2e": "vehicle_move", + "0x2f": "open_book", + "0x30": "open_window", + "0x31": "open_sign_entity", + "0x32": "ping", + "0x33": "craft_recipe_response", + "0x34": "abilities", + "0x35": "player_chat", + "0x36": "end_combat_event", + "0x37": "enter_combat_event", + "0x38": "death_combat_event", + "0x39": "player_remove", + "0x3a": "player_info", + "0x3b": "face_player", + "0x3c": "position", + "0x3d": "unlock_recipes", + "0x3e": "entity_destroy", + "0x3f": "remove_entity_effect", + "0x40": "resource_pack_send", + "0x41": "respawn", + "0x42": "entity_head_rotation", + "0x43": "multi_block_change", + "0x44": "select_advancement_tab", + "0x45": "server_data", + "0x46": "action_bar", + "0x47": "world_border_center", + "0x48": "world_border_lerp_size", + "0x49": "world_border_size", + "0x4a": "world_border_warning_delay", + "0x4b": "world_border_warning_reach", + "0x4c": "camera", + "0x4d": "held_item_slot", + "0x4e": "update_view_position", + "0x4f": "update_view_distance", + "0x50": "spawn_position", + "0x51": "scoreboard_display_objective", + "0x52": "entity_metadata", + "0x53": "attach_entity", + "0x54": "entity_velocity", + "0x55": "entity_equipment", + "0x56": "experience", + "0x57": "update_health", + "0x58": "scoreboard_objective", + "0x59": "set_passengers", + "0x5a": "teams", + "0x5b": "scoreboard_score", + "0x5c": "simulation_distance", + "0x5d": "set_title_subtitle", + "0x5e": "update_time", + "0x5f": "set_title_text", + "0x60": "set_title_time", + "0x61": "entity_sound_effect", + "0x62": "sound_effect", + "0x63": "stop_sound", + "0x64": "system_chat", + "0x65": "playerlist_header", + "0x66": "nbt_query_response", + "0x67": "collect", + "0x68": "entity_teleport", + "0x69": "advancements", + "0x6a": "entity_update_attributes", + "0x6b": "feature_flags", + "0x6c": "entity_effect", + "0x6d": "declare_recipes", + "0x6e": "tags" + }, + "type": "varint" } ] }, @@ -1629,263 +1870,155 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", - "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "bundle_delimiter": "void", + "camera": "packet_camera", + "chat_suggestions": "packet_chat_suggestions", + "chunk_biomes": "packet_chunk_biomes", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "damage_event": "packet_damage_event", + "death_combat_event": "packet_death_combat_event", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "feature_flags": "packet_feature_flags", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "hide_message": "packet_hide_message", + "hurt_animation": "packet_hurt_animation", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "player_chat": "packet_player_chat", + "player_info": "packet_player_info", + "player_remove": "packet_player_remove", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "profileless_chat": "packet_profileless_chat", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "server_data": "packet_server_data", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "system_chat": "packet_system_chat", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "trade_list": "packet_trade_list", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - }, - { - "name": "playerUUID", - "type": [ - "option", - "UUID" - ] - } - ] - ], - "packet_encryption_begin": [ - "container", - [ - { - "name": "sharedSecret", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "verifyToken", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ], - "packet_login_plugin_response": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "data", - "type": [ - "option", - "restBuffer" - ] - } - ] ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" - } - } - ] - } - ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "headPitch", + "name": "flags", "type": "i8" }, { - "name": "objectData", - "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] - ], - "packet_named_entity_spawn": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "pitch", - "type": "i8" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_animation": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "entityId", + "name": "sequenceId", "type": "varint" - }, - { - "name": "animation", - "type": "u8" } ] ], - "packet_statistics": [ + "packet_action_bar": [ "container", [ { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "text", + "type": "string" } ] ], @@ -1951,23 +2084,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1978,10 +2111,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -2098,7 +2231,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -2106,29 +2239,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ - { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + { + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -2153,6 +2278,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -2183,11 +2325,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -2197,11 +2339,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -2211,11 +2353,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -2225,11 +2367,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -2239,193 +2381,82 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" - }, - { - "name": "difficultyLocked", - "type": "bool" + "name": "cameraId", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chat_suggestions": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", + "name": "action", "type": "varint" }, { - "name": "matches", + "name": "entries", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] + "type": "string" } ] } ] ], - "packet_declare_commands": [ + "packet_chunk_biomes": [ "container", [ { - "name": "nodes", + "name": "biomes", "type": [ "array", { "countType": "varint", - "type": "command_node" - } - ] - }, - { - "name": "rootIndex", - "type": "varint" - } - ] - ], - "packet_face_player": [ - "container", - [ - { - "name": "feet_eyes", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entity_feet_eyes", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "string" - }, - "default": "void" + "type": [ + "container", + [ + { + "name": "position", + "type": "packedChunkPos" + }, + { + "name": "data", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ] } ] } ] ], - "packet_nbt_query_response": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "nbt", - "type": "optionalNbt" - } - ] - ], - "packet_multi_block_change": [ + "packet_clear_titles": [ "container", [ { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] - }, - { - "name": "suppressLightUpdates", + "name": "reset", "type": "bool" - }, - { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -2438,117 +2469,50 @@ } ] ], - "packet_open_window": [ - "container", - [ - { - "name": "windowId", - "type": "varint" - }, - { - "name": "inventoryType", - "type": "varint" - }, - { - "name": "windowTitle", - "type": "string" - } - ] - ], - "packet_window_items": [ - "container", - [ - { - "name": "windowId", - "type": "u8" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ] - }, - { - "name": "carriedItem", - "type": "slot" - } - ] - ], - "packet_craft_progress_bar": [ - "container", - [ - { - "name": "windowId", - "type": "u8" - }, - { - "name": "property", - "type": "i16" - }, - { - "name": "value", - "type": "i16" - } - ] - ], - "packet_set_slot": [ + "packet_collect": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "stateId", + "name": "collectedEntityId", "type": "varint" }, { - "name": "slot", - "type": "i16" + "name": "collectorEntityId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "pickupItemCount", + "type": "varint" } ] ], - "packet_set_cooldown": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "itemID", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" } ] ], - "packet_chat_suggestions": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "action", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "recipe", + "type": "string" } ] ], @@ -2565,100 +2529,75 @@ } ] ], - "packet_hide_message": [ + "packet_damage_event": [ "container", [ { - "name": "id", + "name": "entityId", "type": "varint" }, { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_profileless_chat": [ - "container", - [ - { - "name": "message", - "type": "string" + "name": "sourceTypeId", + "type": "varint" }, { - "name": "type", + "name": "sourceCauseId", "type": "varint" }, { - "name": "name", - "type": "string" + "name": "sourceDirectId", + "type": "varint" }, { - "name": "target", + "name": "sourcePosition", "type": [ "option", - "string" + "vec3f64" ] } ] ], - "packet_entity_status": [ + "packet_death_combat_event": [ "container", [ + { + "name": "playerId", + "type": "varint" + }, { "name": "entityId", "type": "i32" }, { - "name": "entityStatus", - "type": "i8" + "name": "message", + "type": "string" } ] ], - "packet_explosion": [ + "packet_declare_commands": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "radius", - "type": "f32" - }, + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ { - "name": "affectedBlockOffsets", + "name": "recipes", "type": [ "array", { @@ -2667,71 +2606,212 @@ "container", [ { - "name": "x", - "type": "i8" + "name": "type", + "type": "string" }, { - "name": "y", - "type": "i8" + "name": "recipeId", + "type": "string" }, { - "name": "z", - "type": "i8" + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "showNotification", + "type": "bool" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "minecraft_simple_recipe_format", + "minecraft:crafting_special_banneraddpattern": "minecraft_simple_recipe_format", + "minecraft:crafting_special_bannerduplicate": "minecraft_simple_recipe_format", + "minecraft:crafting_special_bookcloning": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_rocket": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_star": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_star_fade": "minecraft_simple_recipe_format", + "minecraft:crafting_special_mapcloning": "minecraft_simple_recipe_format", + "minecraft:crafting_special_mapextending": "minecraft_simple_recipe_format", + "minecraft:crafting_special_repairitem": "minecraft_simple_recipe_format", + "minecraft:crafting_special_shielddecoration": "minecraft_simple_recipe_format", + "minecraft:crafting_special_shulkerboxcoloring": "minecraft_simple_recipe_format", + "minecraft:crafting_special_suspiciousstew": "minecraft_simple_recipe_format", + "minecraft:crafting_special_tippedarrow": "minecraft_simple_recipe_format", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smithing_transform": [ + "container", + [ + { + "name": "template", + "type": "ingredient" + }, + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smithing_trim": [ + "container", + [ + { + "name": "template", + "type": "ingredient" + }, + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] } ] ] } ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, - { - "name": "playerMotionY", - "type": "f32" - }, - { - "name": "playerMotionZ", - "type": "f32" - } - ] - ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" } ] ], - "packet_game_state_change": [ + "packet_difficulty": [ "container", [ { - "name": "reason", + "name": "difficulty", "type": "u8" }, { - "name": "gameMode", - "type": "f32" + "name": "difficultyLocked", + "type": "bool" } ] ], - "packet_open_horse_window": [ + "packet_end_combat_event": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "nbSlots", + "name": "duration", "type": "varint" }, { @@ -2740,292 +2820,225 @@ } ] ], - "packet_keep_alive": [ + "packet_enter_combat_event": [ "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] + [] ], - "packet_map_chunk": [ + "packet_entity_destroy": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "heightmaps", - "type": "nbt" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "chunkBlockEntity" + "type": "varint" } ] + } + ] + ], + "packet_entity_effect": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "trustEdges", - "type": "bool" + "name": "effectId", + "type": "varint" }, { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "amplifier", + "type": "i8" }, { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "duration", + "type": "varint" }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "hideParticles", + "type": "i8" }, { - "name": "emptyBlockLightMask", + "name": "factorCodec", "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } + "option", + "nbt" ] + } + ] + ], + "packet_entity_equipment": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "skyLight", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] ] } ] + } + ] + ], + "packet_entity_head_rotation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "headYaw", + "type": "i8" } ] ], - "packet_world_event": [ + "packet_entity_look": [ "container", [ { - "name": "effectId", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "location", - "type": "position" + "name": "yaw", + "type": "i8" }, { - "name": "data", - "type": "i32" + "name": "pitch", + "type": "i8" }, { - "name": "global", + "name": "onGround", "type": "bool" } ] ], - "packet_world_particles": [ + "packet_entity_metadata": [ "container", [ { - "name": "particleId", + "name": "entityId", "type": "varint" }, { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, + "name": "metadata", + "type": "entityMetadata" + } + ] + ], + "packet_entity_move_look": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "entityId", + "type": "varint" }, { - "name": "offsetX", - "type": "f32" + "name": "dX", + "type": "i16" }, { - "name": "offsetY", - "type": "f32" + "name": "dY", + "type": "i16" }, { - "name": "offsetZ", - "type": "f32" + "name": "dZ", + "type": "i16" }, { - "name": "particleData", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "particles", - "type": "i32" + "name": "pitch", + "type": "i8" }, { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_update_light": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", + "name": "soundId", "type": "varint" }, { - "name": "trustEdges", - "type": "bool" - }, - { - "name": "skyLightMask", + "name": "soundEvent", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "soundId", + "default": "void", + "fields": { + "0": [ + "container", + [ + { + "name": "resource", + "type": "string" + }, + { + "name": "range", + "type": [ + "option", + "f32" + ] + } + ] + ] + } } ] }, { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "soundCategory", + "type": "soundSource" }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "volume", + "type": "f32" }, { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "pitch", + "type": "f32" }, { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "seed", + "type": "i64" } ] ], - "packet_login": [ + "packet_entity_status": [ "container", [ { @@ -3033,219 +3046,152 @@ "type": "i32" }, { - "name": "isHardcore", - "type": "bool" - }, - { - "name": "gameMode", - "type": "u8" - }, - { - "name": "previousGameMode", + "name": "entityStatus", "type": "i8" - }, - { - "name": "worldNames", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "dimensionCodec", - "type": "nbt" - }, - { - "name": "worldType", - "type": "string" - }, - { - "name": "worldName", - "type": "string" - }, - { - "name": "hashedSeed", - "type": "i64" - }, + } + ] + ], + "packet_entity_teleport": [ + "container", + [ { - "name": "maxPlayers", + "name": "entityId", "type": "varint" }, { - "name": "viewDistance", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "simulationDistance", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "reducedDebugInfo", - "type": "bool" + "name": "z", + "type": "f64" }, { - "name": "enableRespawnScreen", - "type": "bool" + "name": "yaw", + "type": "i8" }, { - "name": "isDebug", - "type": "bool" + "name": "pitch", + "type": "i8" }, { - "name": "isFlat", + "name": "onGround", "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "death", + "name": "properties", "type": [ - "option", - [ - "container", - [ - { - "name": "dimensionName", - "type": "string" - }, - { - "name": "location", - "type": "position" - } + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] ] - ] + } ] } ] ], - "packet_map": [ + "packet_entity_velocity": [ "container", [ { - "name": "itemDamage", + "name": "entityId", "type": "varint" }, { - "name": "scale", - "type": "i8" - }, - { - "name": "locked", - "type": "bool" - }, + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ { - "name": "icons", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "i8" - }, - { - "name": "z", - "type": "i8" - }, - { - "name": "direction", - "type": "u8" - }, - { - "name": "displayName", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - ] + "name": "experienceBar", + "type": "f32" }, { - "name": "columns", - "type": "u8" + "name": "level", + "type": "varint" }, { - "name": "rows", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] - }, + "name": "totalExperience", + "type": "varint" + } + ] + ], + "packet_explosion": [ + "container", + [ { "name": "x", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "type": "f64" }, { "name": "y", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "type": "f64" }, { - "name": "data", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - } - ] - ], - "packet_trade_list": [ - "container", - [ + "name": "z", + "type": "f64" + }, { - "name": "windowId", - "type": "varint" + "name": "radius", + "type": "f32" }, { - "name": "trades", + "name": "affectedBlockOffsets", "type": [ "array", { @@ -3254,44 +3200,16 @@ "container", [ { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": "slot" - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" + "name": "x", + "type": "i8" }, { - "name": "priceMultiplier", - "type": "f32" + "name": "y", + "type": "i8" }, { - "name": "demand", - "type": "i32" + "name": "z", + "type": "i8" } ] ] @@ -3299,82 +3217,135 @@ ] }, { - "name": "villagerLevel", - "type": "varint" + "name": "playerMotionX", + "type": "f32" }, { - "name": "experience", + "name": "playerMotionY", + "type": "f32" + }, + { + "name": "playerMotionZ", + "type": "f32" + } + ] + ], + "packet_face_player": [ + "container", + [ + { + "name": "feet_eyes", "type": "varint" }, { - "name": "isRegularVillager", + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "isEntity", "type": "bool" }, { - "name": "canRestock", - "type": "bool" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "entity_feet_eyes", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } + } + ] } ] ], - "packet_rel_entity_move": [ + "packet_feature_flags": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "onGround", - "type": "bool" + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_game_state_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" + "name": "reason", + "type": "u8" }, { - "name": "dZ", - "type": "i16" - }, + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "yaw", + "name": "slot", "type": "i8" - }, + } + ] + ], + "packet_hide_message": [ + "container", + [ { - "name": "pitch", - "type": "i8" + "name": "id", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "signature", + "type": [ + "switch", + { + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] + } + } + ] } ] ], - "packet_entity_look": [ + "packet_hurt_animation": [ "container", [ { @@ -3383,19 +3354,11 @@ }, { "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "type": "f32" } ] ], - "packet_vehicle_move": [ + "packet_initialize_world_border": [ "container", [ { @@ -3403,665 +3366,725 @@ "type": "f64" }, { - "name": "y", + "name": "z", "type": "f64" }, { - "name": "z", + "name": "oldDiameter", "type": "f64" }, { - "name": "yaw", - "type": "f32" + "name": "newDiameter", + "type": "f64" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_open_book": [ - "container", - [ + "name": "speed", + "type": "varint" + }, { - "name": "hand", + "name": "portalTeleportBoundary", + "type": "varint" + }, + { + "name": "warningBlocks", + "type": "varint" + }, + { + "name": "warningTime", "type": "varint" } ] ], - "packet_open_sign_entity": [ + "packet_keep_alive": [ "container", [ { - "name": "location", - "type": "position" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_craft_recipe_response": [ + "packet_kick_disconnect": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", + "name": "reason", "type": "string" } ] ], - "packet_abilities": [ + "packet_login": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "entityId", + "type": "i32" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "isHardcore", + "type": "bool" }, { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_player_chat": [ - "container", - [ - { - "name": "senderUuid", - "type": "UUID" + "name": "gameMode", + "type": "u8" }, { - "name": "index", - "type": "varint" + "name": "previousGameMode", + "type": "i8" }, { - "name": "signature", + "name": "worldNames", "type": [ - "option", - [ - "buffer", - { - "count": 256 - } - ] + "array", + { + "countType": "varint", + "type": "string" + } ] }, { - "name": "plainMessage", + "name": "dimensionCodec", + "type": "nbt" + }, + { + "name": "worldType", "type": "string" }, { - "name": "timestamp", - "type": "i64" + "name": "worldName", + "type": "string" }, { - "name": "salt", + "name": "hashedSeed", "type": "i64" }, { - "name": "previousMessages", - "type": "previousMessages" + "name": "maxPlayers", + "type": "varint" }, { - "name": "unsignedChatContent", - "type": [ - "option", - "string" - ] + "name": "viewDistance", + "type": "varint" }, { - "name": "filterType", + "name": "simulationDistance", "type": "varint" }, { - "name": "filterTypeMask", - "type": [ - "switch", - { - "compareTo": "filterType", - "fields": { - "2": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - "default": "void" - } - ] + "name": "reducedDebugInfo", + "type": "bool" }, { - "name": "type", - "type": "varint" + "name": "enableRespawnScreen", + "type": "bool" }, { - "name": "networkName", - "type": "string" + "name": "isDebug", + "type": "bool" }, { - "name": "networkTargetName", + "name": "isFlat", + "type": "bool" + }, + { + "name": "death", "type": [ "option", - "string" + [ + "container", + [ + { + "name": "dimensionName", + "type": "string" + }, + { + "name": "location", + "type": "position" + } + ] + ] ] } ] ], - "packet_end_combat_event": [ + "packet_map": [ "container", [ { - "name": "duration", + "name": "itemDamage", "type": "varint" }, { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ - "container", - [ + "name": "scale", + "type": "i8" + }, { - "name": "playerId", - "type": "varint" + "name": "locked", + "type": "bool" }, { - "name": "entityId", - "type": "i32" + "name": "icons", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + }, + { + "name": "direction", + "type": "u8" + }, + { + "name": "displayName", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + ] }, { - "name": "message", - "type": "string" - } - ] - ], - "packet_player_remove": [ - "container", - [ + "name": "columns", + "type": "u8" + }, { - "name": "players", + "name": "rows", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "UUID" + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } } ] - } - ] - ], - "packet_player_info": [ - "container", - [ + }, { - "name": "action", + "name": "x", "type": [ - "bitflags", + "switch", { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name" - ] + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } } ] }, { - "name": "data", + "name": "y", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "player", - "type": [ - "switch", - { - "compareTo": "../action/add_player", - "fields": { - "true": "game_profile" - }, - "default": "void" - } - ] - }, - { - "name": "chatSession", - "type": [ - "switch", - { - "compareTo": "../action/initialize_chat", - "fields": { - "true": "chat_session" - }, - "default": "void" - } - ] - }, - { - "name": "gamemode", - "type": [ - "switch", - { - "compareTo": "../action/update_game_mode", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "listed", - "type": [ - "switch", - { - "compareTo": "../action/update_listed", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "latency", - "type": [ - "switch", - { - "compareTo": "../action/update_latency", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "displayName", - "type": [ - "switch", - { - "compareTo": "../action/update_display_name", - "fields": { - "true": [ - "option", - "string" - ] - }, - "default": "void" - } - ] - } - ] - ] + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } } ] - } - ] - ], - "packet_position": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" }, { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "flags", - "type": "i8" - }, - { - "name": "teleportId", - "type": "varint" + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } + } + ] } ] ], - "packet_unlock_recipes": [ + "packet_map_chunk": [ "container", [ { - "name": "action", - "type": "varint" - }, - { - "name": "craftingBookOpen", - "type": "bool" + "name": "x", + "type": "i32" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "z", + "type": "i32" }, { - "name": "smeltingBookOpen", - "type": "bool" + "name": "heightmaps", + "type": "nbt" }, { - "name": "filteringSmeltable", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "blastFurnaceOpen", - "type": "bool" + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "chunkBlockEntity" + } + ] }, { - "name": "filteringBlastFurnace", + "name": "trustEdges", "type": "bool" }, { - "name": "smokerBookOpen", - "type": "bool" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "filteringSmoker", - "type": "bool" + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "recipes1", + "name": "emptySkyLightMask", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "i64" } ] }, { - "name": "recipes2", + "name": "emptyBlockLightMask", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" + "countType": "varint", + "type": "i64" } ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ + }, { - "name": "entityIds", + "name": "skyLight", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] } ] - } - ] - ], - "packet_remove_entity_effect": [ - "container", - [ - { - "name": "entityId", - "type": "varint" }, { - "name": "effectId", - "type": "varint" + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], - "packet_resource_pack_send": [ + "packet_multi_block_change": [ "container", [ { - "name": "url", - "type": "string" - }, - { - "name": "hash", - "type": "string" + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] + ] }, { - "name": "forced", + "name": "suppressLightUpdates", "type": "bool" }, { - "name": "promptMessage", + "name": "records", "type": [ - "option", - "string" + "array", + { + "countType": "varint", + "type": "varint" + } ] } ] ], - "packet_respawn": [ + "packet_named_entity_spawn": [ "container", [ { - "name": "dimension", - "type": "string" - }, - { - "name": "worldName", - "type": "string" - }, - { - "name": "hashedSeed", - "type": "i64" + "name": "entityId", + "type": "varint" }, { - "name": "gamemode", - "type": "i8" + "name": "playerUUID", + "type": "UUID" }, { - "name": "previousGamemode", - "type": "u8" + "name": "x", + "type": "f64" }, { - "name": "isDebug", - "type": "bool" + "name": "y", + "type": "f64" }, { - "name": "isFlat", - "type": "bool" + "name": "z", + "type": "f64" }, { - "name": "copyMetadata", - "type": "bool" + "name": "yaw", + "type": "i8" }, { - "name": "death", - "type": [ - "option", - [ - "container", - [ - { - "name": "dimensionName", - "type": "string" - }, - { - "name": "location", - "type": "position" - } - ] - ] - ] + "name": "pitch", + "type": "i8" } ] ], - "packet_entity_head_rotation": [ + "packet_nbt_query_response": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "headYaw", - "type": "i8" + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_camera": [ + "packet_open_book": [ "container", [ { - "name": "cameraId", + "name": "hand", "type": "varint" } ] ], - "packet_held_item_slot": [ - "container", - [ - { - "name": "slot", - "type": "i8" - } - ] - ], - "packet_update_view_position": [ + "packet_open_horse_window": [ "container", [ { - "name": "chunkX", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "chunkZ", + "name": "nbSlots", "type": "varint" - } - ] - ], - "packet_update_view_distance": [ - "container", - [ + }, { - "name": "viewDistance", - "type": "varint" + "name": "entityId", + "type": "i32" } ] ], - "packet_scoreboard_display_objective": [ + "packet_open_sign_entity": [ "container", - [ - { - "name": "position", - "type": "i8" - }, + [ { - "name": "name", - "type": "string" + "name": "location", + "type": "position" } ] ], - "packet_entity_metadata": [ + "packet_open_window": [ "container", [ { - "name": "entityId", + "name": "windowId", "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "inventoryType", + "type": "varint" + }, + { + "name": "windowTitle", + "type": "string" } ] ], - "packet_attach_entity": [ + "packet_ping": [ "container", [ { - "name": "entityId", - "type": "i32" - }, - { - "name": "vehicleId", + "name": "id", "type": "i32" } ] ], - "packet_entity_velocity": [ + "packet_player_chat": [ "container", [ { - "name": "entityId", + "name": "senderUuid", + "type": "UUID" + }, + { + "name": "index", "type": "varint" }, { - "name": "velocity", - "type": "vec3i16" + "name": "signature", + "type": [ + "option", + [ + "buffer", + { + "count": 256 + } + ] + ] + }, + { + "name": "plainMessage", + "type": "string" + }, + { + "name": "timestamp", + "type": "i64" + }, + { + "name": "salt", + "type": "i64" + }, + { + "name": "previousMessages", + "type": "previousMessages" + }, + { + "name": "unsignedChatContent", + "type": [ + "option", + "string" + ] + }, + { + "name": "filterType", + "type": "varint" + }, + { + "name": "filterTypeMask", + "type": [ + "switch", + { + "compareTo": "filterType", + "default": "void", + "fields": { + "2": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + } + } + ] + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "networkName", + "type": "string" + }, + { + "name": "networkTargetName", + "type": [ + "option", + "string" + ] } ] ], - "packet_entity_equipment": [ + "packet_player_info": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "action", + "type": [ + "bitflags", + { + "flags": [ + "add_player", + "initialize_chat", + "update_game_mode", + "update_listed", + "update_latency", + "update_display_name" + ], + "type": "u8" + } + ] }, { - "name": "equipments", + "name": "data", "type": [ - "topBitSetTerminatedArray", + "array", { + "countType": "varint", "type": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "uuid", + "type": "UUID" }, { - "name": "item", - "type": "slot" + "name": "player", + "type": [ + "switch", + { + "compareTo": "../action/add_player", + "default": "void", + "fields": { + "true": "game_profile" + } + } + ] + }, + { + "name": "chatSession", + "type": [ + "switch", + { + "compareTo": "../action/initialize_chat", + "default": "void", + "fields": { + "true": "chat_session" + } + } + ] + }, + { + "name": "gamemode", + "type": [ + "switch", + { + "compareTo": "../action/update_game_mode", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "listed", + "type": [ + "switch", + { + "compareTo": "../action/update_listed", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "latency", + "type": [ + "switch", + { + "compareTo": "../action/update_latency", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "displayName", + "type": [ + "switch", + { + "compareTo": "../action/update_display_name", + "default": "void", + "fields": { + "true": [ + "option", + "string" + ] + } + } + ] } ] ] @@ -4070,82 +4093,117 @@ } ] ], - "packet_experience": [ + "packet_player_remove": [ "container", [ { - "name": "experienceBar", + "name": "players", + "type": [ + "array", + { + "countType": "varint", + "type": "UUID" + } + ] + } + ] + ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], + "packet_position": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", "type": "f32" }, { - "name": "level", - "type": "varint" + "name": "pitch", + "type": "f32" + }, + { + "name": "flags", + "type": "i8" }, { - "name": "totalExperience", + "name": "teleportId", "type": "varint" } ] ], - "packet_update_health": [ + "packet_profileless_chat": [ "container", [ { - "name": "health", - "type": "f32" + "name": "message", + "type": "string" }, { - "name": "food", + "name": "type", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" + "name": "name", + "type": "string" + }, + { + "name": "target", + "type": [ + "option", + "string" + ] } ] ], - "packet_scoreboard_objective": [ + "packet_rel_entity_move": [ "container", [ { - "name": "name", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i8" + "name": "dX", + "type": "i16" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "dY", + "type": "i16" }, { - "name": "type", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_set_passengers": [ + "packet_remove_entity_effect": [ "container", [ { @@ -4153,156 +4211,140 @@ "type": "varint" }, { - "name": "passengers", + "name": "effectId", + "type": "varint" + } + ] + ], + "packet_resource_pack_send": [ + "container", + [ + { + "name": "url", + "type": "string" + }, + { + "name": "hash", + "type": "string" + }, + { + "name": "forced", + "type": "bool" + }, + { + "name": "promptMessage", "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } + "option", + "string" ] } ] ], - "packet_teams": [ + "packet_respawn": [ "container", [ { - "name": "team", + "name": "dimension", "type": "string" }, { - "name": "mode", + "name": "worldName", + "type": "string" + }, + { + "name": "hashedSeed", + "type": "i64" + }, + { + "name": "gamemode", "type": "i8" }, { - "name": "name", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "previousGamemode", + "type": "u8" }, { - "name": "friendlyFire", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" - } - ] + "name": "isDebug", + "type": "bool" }, { - "name": "nameTagVisibility", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "isFlat", + "type": "bool" }, { - "name": "collisionRule", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "copyMetadata", + "type": "bool" }, { - "name": "formatting", + "name": "death", "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } + "option", + [ + "container", + [ + { + "name": "dimensionName", + "type": "string" + }, + { + "name": "location", + "type": "position" + } + ] + ] ] + } + ] + ], + "packet_scoreboard_display_objective": [ + "container", + [ + { + "name": "position", + "type": "i8" }, { - "name": "prefix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "name", + "type": "string" + } + ] + ], + "packet_scoreboard_objective": [ + "container", + [ + { + "name": "name", + "type": "string" }, { - "name": "suffix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "action", + "type": "i8" }, { - "name": "players", + "name": "displayText", "type": [ "switch", { - "compareTo": "mode", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "type", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } } ] } @@ -4329,95 +4371,301 @@ "switch", { "compareTo": "action", + "default": "varint", "fields": { "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "location", - "type": "position" + "name": "id", + "type": [ + "option", + "string" + ] + } + ] + ], + "packet_server_data": [ + "container", + [ + { + "name": "motd", + "type": "string" }, { - "name": "angle", - "type": "f32" + "name": "iconBytes", + "type": [ + "option", + [ + "buffer", + { + "countType": "varint" + } + ] + ] + }, + { + "name": "enforcesSecureChat", + "type": "bool" } ] ], - "packet_update_time": [ + "packet_set_cooldown": [ "container", [ { - "name": "age", - "type": "i64" + "name": "itemID", + "type": "varint" }, { - "name": "time", - "type": "i64" + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_entity_sound_effect": [ + "packet_set_passengers": [ "container", [ { - "name": "soundId", + "name": "entityId", "type": "varint" }, { - "name": "soundEvent", + "name": "passengers", "type": [ - "switch", + "array", { - "compareTo": "soundId", - "fields": { - "0": [ - "container", - [ - { - "name": "resource", - "type": "string" - }, - { - "name": "range", - "type": [ - "option", - "f32" - ] - } - ] - ] - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] + } + ] + ], + "packet_set_slot": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "stateId", + "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" + } + ] + ], + "packet_set_title_subtitle": [ + "container", + [ + { + "name": "text", + "type": "string" + } + ] + ], + "packet_set_title_text": [ + "container", + [ + { + "name": "text", + "type": "string" + } + ] + ], + "packet_set_title_time": [ + "container", + [ + { + "name": "fadeIn", + "type": "i32" + }, + { + "name": "stay", + "type": "i32" + }, + { + "name": "fadeOut", + "type": "i32" + } + ] + ], + "packet_simulation_distance": [ + "container", + [ + { + "name": "distance", + "type": "varint" + } + ] + ], + "packet_sound_effect": [ + "container", + [ + { + "name": "sound", + "type": "ItemSoundHolder" }, { "name": "soundCategory", "type": "soundSource" }, { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", + "type": "i64" + } + ] + ], + "packet_spawn_entity": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "objectData", + "type": "varint" + }, + { + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_spawn_entity_experience_orb": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "count", + "type": "i16" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" }, { - "name": "pitch", + "name": "angle", "type": "f32" - }, + } + ] + ], + "packet_statistics": [ + "container", + [ { - "name": "seed", - "type": "i64" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] } ] ], @@ -4434,11 +4682,11 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "1": "varint", "3": "varint" - }, - "default": "void" + } } ] }, @@ -4448,53 +4696,16 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "2": "string", "3": "string" - }, - "default": "void" + } } ] } ] ], - "packet_sound_effect": [ - "container", - [ - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "soundCategory", - "type": "soundSource" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "seed", - "type": "i64" - } - ] - ], "packet_system_chat": [ "container", [ @@ -4508,78 +4719,23 @@ } ] ], - "packet_playerlist_header": [ - "container", - [ - { - "name": "header", - "type": "string" - }, - { - "name": "footer", - "type": "string" - } - ] - ], - "packet_collect": [ + "packet_tab_complete": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" - }, - { - "name": "collectorEntityId", + "name": "transactionId", "type": "varint" }, { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ - { - "name": "entityId", + "name": "start", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_update_attributes": [ - "container", - [ - { - "name": "entityId", + "name": "length", "type": "varint" }, { - "name": "properties", + "name": "matches", "type": [ "array", { @@ -4588,37 +4744,14 @@ "container", [ { - "name": "name", + "name": "match", "type": "string" }, { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", + "name": "tooltip", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } + "option", + "string" ] } ] @@ -4628,1269 +4761,1048 @@ } ] ], - "packet_feature_flags": [ + "packet_tags": [ "container", [ { - "name": "features", + "name": "tags", "type": [ "array", { "countType": "varint", - "type": "string" + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] } ] ], - "packet_entity_effect": [ + "packet_teams": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "team", + "type": "string" }, { - "name": "effectId", - "type": "varint" + "name": "mode", + "type": "i8" }, { - "name": "amplifier", - "type": "i8" + "name": "name", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] }, { - "name": "duration", - "type": "varint" + "name": "friendlyFire", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "i8", + "2": "i8" + } + } + ] }, { - "name": "hideParticles", - "type": "i8" + "name": "nameTagVisibility", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] }, { - "name": "factorCodec", + "name": "collisionRule", "type": [ - "option", - "nbt" + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } ] - } - ] - ], - "packet_select_advancement_tab": [ - "container", - [ + }, { - "name": "id", + "name": "formatting", "type": [ - "option", - "string" + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } ] - } - ] - ], - "packet_server_data": [ - "container", - [ - { - "name": "motd", - "type": "string" }, { - "name": "iconBytes", + "name": "prefix", "type": [ - "option", - [ - "buffer", - { - "countType": "varint" + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" } - ] + } ] }, { - "name": "enforcesSecureChat", - "type": "bool" - } - ] - ], - "packet_declare_recipes": [ - "container", - [ - { - "name": "recipes", + "name": "suffix", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "showNotification", - "type": "bool" - } - ] - ], - "minecraft:crafting_special_armordye": "minecraft_simple_recipe_format", - "minecraft:crafting_special_bookcloning": "minecraft_simple_recipe_format", - "minecraft:crafting_special_mapcloning": "minecraft_simple_recipe_format", - "minecraft:crafting_special_mapextending": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_rocket": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_star": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_star_fade": "minecraft_simple_recipe_format", - "minecraft:crafting_special_repairitem": "minecraft_simple_recipe_format", - "minecraft:crafting_special_tippedarrow": "minecraft_simple_recipe_format", - "minecraft:crafting_special_bannerduplicate": "minecraft_simple_recipe_format", - "minecraft:crafting_special_banneraddpattern": "minecraft_simple_recipe_format", - "minecraft:crafting_special_shielddecoration": "minecraft_simple_recipe_format", - "minecraft:crafting_special_shulkerboxcoloring": "minecraft_simple_recipe_format", - "minecraft:crafting_special_suspiciousstew": "minecraft_simple_recipe_format", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing": [ - "container", - [ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing_transform": [ - "container", - [ - { - "name": "template", - "type": "ingredient" - }, - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing_trim": [ - "container", - [ - { - "name": "template", - "type": "ingredient" - }, - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - } - ] - ], - "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format" - } - } - ] - } - ] - ] + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } } ] - } - ] - ], - "packet_tags": [ - "container", - [ + }, { - "name": "tags", + "name": "players", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ + "compareTo": "mode", + "default": "void", + "fields": { + "0": [ + "array", { - "name": "tagType", + "countType": "varint", "type": "string" - }, + } + ], + "3": [ + "array", { - "name": "tags", - "type": "tags" + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" } ] - ] + } } ] } ] ], - "packet_acknowledge_player_digging": [ + "packet_tile_entity_data": [ "container", [ { - "name": "sequenceId", + "name": "location", + "type": "position" + }, + { + "name": "action", "type": "varint" - } - ] - ], - "packet_clear_titles": [ - "container", - [ + }, { - "name": "reset", - "type": "bool" + "name": "nbtData", + "type": "optionalNbt" } ] ], - "packet_initialize_world_border": [ + "packet_trade_list": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "oldDiameter", - "type": "f64" + "name": "windowId", + "type": "varint" }, { - "name": "newDiameter", - "type": "f64" + "name": "trades", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": "slot" + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] + } + ] }, { - "name": "speed", + "name": "villagerLevel", "type": "varint" }, { - "name": "portalTeleportBoundary", + "name": "experience", "type": "varint" }, { - "name": "warningBlocks", - "type": "varint" + "name": "isRegularVillager", + "type": "bool" }, { - "name": "warningTime", - "type": "varint" + "name": "canRestock", + "type": "bool" } ] ], - "packet_action_bar": [ + "packet_unload_chunk": [ "container", [ { - "name": "text", - "type": "string" + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" } ] ], - "packet_world_border_center": [ + "packet_unlock_recipes": [ "container", [ { - "name": "x", - "type": "f64" + "name": "action", + "type": "varint" }, { - "name": "z", - "type": "f64" - } - ] - ], - "packet_world_border_lerp_size": [ - "container", - [ + "name": "craftingBookOpen", + "type": "bool" + }, { - "name": "oldDiameter", - "type": "f64" + "name": "filteringCraftable", + "type": "bool" }, { - "name": "newDiameter", - "type": "f64" + "name": "smeltingBookOpen", + "type": "bool" }, { - "name": "speed", - "type": "varint" - } - ] - ], - "packet_world_border_size": [ - "container", - [ + "name": "filteringSmeltable", + "type": "bool" + }, { - "name": "diameter", - "type": "f64" - } - ] - ], - "packet_world_border_warning_delay": [ - "container", - [ + "name": "blastFurnaceOpen", + "type": "bool" + }, { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_world_border_warning_reach": [ - "container", - [ + "name": "filteringBlastFurnace", + "type": "bool" + }, { - "name": "warningBlocks", - "type": "varint" - } - ] - ], - "packet_ping": [ - "container", - [ + "name": "smokerBookOpen", + "type": "bool" + }, { - "name": "id", - "type": "i32" - } - ] - ], - "packet_set_title_subtitle": [ - "container", - [ + "name": "filteringSmoker", + "type": "bool" + }, { - "name": "text", - "type": "string" - } - ] - ], - "packet_set_title_text": [ - "container", - [ + "name": "recipes1", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, { - "name": "text", - "type": "string" + "name": "recipes2", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + } + ] } ] ], - "packet_set_title_time": [ + "packet_update_health": [ "container", [ { - "name": "fadeIn", - "type": "i32" + "name": "health", + "type": "f32" }, { - "name": "stay", - "type": "i32" + "name": "food", + "type": "varint" }, { - "name": "fadeOut", - "type": "i32" + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_simulation_distance": [ + "packet_update_light": [ "container", [ { - "name": "distance", + "name": "chunkX", "type": "varint" - } - ] - ], - "packet_chunk_biomes": [ - "container", - [ + }, { - "name": "biomes", + "name": "chunkZ", + "type": "varint" + }, + { + "name": "trustEdges", + "type": "bool" + }, + { + "name": "skyLightMask", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "position", - "type": "packedChunkPos" - }, - { - "name": "data", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] + "type": "i64" } ] - } - ] - ], - "packet_damage_event": [ - "container", - [ - { - "name": "entityId", - "type": "varint" }, { - "name": "sourceTypeId", - "type": "varint" + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "sourceCauseId", - "type": "varint" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "sourceDirectId", - "type": "varint" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "sourcePosition", + "name": "skyLight", "type": [ - "option", - "vec3f64" + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } ] - } - ] - ], - "packet_hurt_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" }, { - "name": "yaw", - "type": "f32" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", + "name": "blockLight", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "spawn_entity_experience_orb", - "0x03": "named_entity_spawn", - "0x04": "animation", - "0x05": "statistics", - "0x06": "acknowledge_player_digging", - "0x07": "block_break_animation", - "0x08": "tile_entity_data", - "0x09": "block_action", - "0x0a": "block_change", - "0x0b": "boss_bar", - "0x0c": "difficulty", - "0x0d": "chunk_biomes", - "0x0e": "clear_titles", - "0x0f": "tab_complete", - "0x10": "declare_commands", - "0x11": "close_window", - "0x12": "window_items", - "0x13": "craft_progress_bar", - "0x14": "set_slot", - "0x15": "set_cooldown", - "0x16": "chat_suggestions", - "0x17": "custom_payload", - "0x18": "damage_event", - "0x19": "hide_message", - "0x1a": "kick_disconnect", - "0x1b": "profileless_chat", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "open_horse_window", - "0x21": "hurt_animation", - "0x22": "initialize_world_border", - "0x23": "keep_alive", - "0x24": "map_chunk", - "0x25": "world_event", - "0x26": "world_particles", - "0x27": "update_light", - "0x28": "login", - "0x29": "map", - "0x2a": "trade_list", - "0x2b": "rel_entity_move", - "0x2c": "entity_move_look", - "0x2d": "entity_look", - "0x2e": "vehicle_move", - "0x2f": "open_book", - "0x30": "open_window", - "0x31": "open_sign_entity", - "0x32": "ping", - "0x33": "craft_recipe_response", - "0x34": "abilities", - "0x35": "player_chat", - "0x36": "end_combat_event", - "0x37": "enter_combat_event", - "0x38": "death_combat_event", - "0x39": "player_remove", - "0x3a": "player_info", - "0x3b": "face_player", - "0x3c": "position", - "0x3d": "unlock_recipes", - "0x3e": "entity_destroy", - "0x3f": "remove_entity_effect", - "0x40": "resource_pack_send", - "0x41": "respawn", - "0x42": "entity_head_rotation", - "0x43": "multi_block_change", - "0x44": "select_advancement_tab", - "0x45": "server_data", - "0x46": "action_bar", - "0x47": "world_border_center", - "0x48": "world_border_lerp_size", - "0x49": "world_border_size", - "0x4a": "world_border_warning_delay", - "0x4b": "world_border_warning_reach", - "0x4c": "camera", - "0x4d": "held_item_slot", - "0x4e": "update_view_position", - "0x4f": "update_view_distance", - "0x50": "spawn_position", - "0x51": "scoreboard_display_objective", - "0x52": "entity_metadata", - "0x53": "attach_entity", - "0x54": "entity_velocity", - "0x55": "entity_equipment", - "0x56": "experience", - "0x57": "update_health", - "0x58": "scoreboard_objective", - "0x59": "set_passengers", - "0x5a": "teams", - "0x5b": "scoreboard_score", - "0x5c": "simulation_distance", - "0x5d": "set_title_subtitle", - "0x5e": "update_time", - "0x5f": "set_title_text", - "0x60": "set_title_time", - "0x61": "entity_sound_effect", - "0x62": "sound_effect", - "0x63": "stop_sound", - "0x64": "system_chat", - "0x65": "playerlist_header", - "0x66": "nbt_query_response", - "0x67": "collect", - "0x68": "entity_teleport", - "0x69": "advancements", - "0x6a": "entity_update_attributes", - "0x6b": "feature_flags", - "0x6c": "entity_effect", - "0x6d": "declare_recipes", - "0x6e": "tags" - } + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] } ] + } + ] + ], + "packet_update_time": [ + "container", + [ + { + "name": "age", + "type": "i64" }, { - "name": "params", + "name": "time", + "type": "i64" + } + ] + ], + "packet_update_view_distance": [ + "container", + [ + { + "name": "viewDistance", + "type": "varint" + } + ] + ], + "packet_update_view_position": [ + "container", + [ + { + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "stateId", + "type": "varint" + }, + { + "name": "items", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "bundle_delimiter": "void", - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "chunk_biomes": "packet_chunk_biomes", - "clear_titles": "packet_clear_titles", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "close_window": "packet_close_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "chat_suggestions": "packet_chat_suggestions", - "custom_payload": "packet_custom_payload", - "damage_event": "packet_damage_event", - "hide_message": "packet_hide_message", - "kick_disconnect": "packet_kick_disconnect", - "profileless_chat": "packet_profileless_chat", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "hurt_animation": "packet_hurt_animation", - "initialize_world_border": "packet_initialize_world_border", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_window": "packet_open_window", - "open_sign_entity": "packet_open_sign_entity", - "ping": "packet_ping", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "player_chat": "packet_player_chat", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_remove": "packet_player_remove", - "player_info": "packet_player_info", - "face_player": "packet_face_player", - "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_head_rotation": "packet_entity_head_rotation", - "multi_block_change": "packet_multi_block_change", - "select_advancement_tab": "packet_select_advancement_tab", - "server_data": "packet_server_data", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "spawn_position": "packet_spawn_position", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "set_title_subtitle": "packet_set_title_subtitle", - "update_time": "packet_update_time", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time", - "entity_sound_effect": "packet_entity_sound_effect", - "sound_effect": "packet_sound_effect", - "stop_sound": "packet_stop_sound", - "system_chat": "packet_system_chat", - "playerlist_header": "packet_playerlist_header", - "nbt_query_response": "packet_nbt_query_response", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "advancements": "packet_advancements", - "entity_update_attributes": "packet_entity_update_attributes", - "feature_flags": "packet_feature_flags", - "entity_effect": "packet_entity_effect", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags" - } + "countType": "varint", + "type": "slot" } ] + }, + { + "name": "carriedItem", + "type": "slot" } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_world_border_center": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_world_border_lerp_size": [ + "container", + [ + { + "name": "oldDiameter", + "type": "f64" + }, + { + "name": "newDiameter", + "type": "f64" + }, + { + "name": "speed", + "type": "varint" + } + ] + ], + "packet_world_border_size": [ + "container", + [ + { + "name": "diameter", + "type": "f64" + } + ] + ], + "packet_world_border_warning_delay": [ + "container", + [ + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_world_border_warning_reach": [ "container", [ { - "name": "teleportId", + "name": "warningBlocks", "type": "varint" } ] ], - "packet_query_block_nbt": [ + "packet_world_event": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "effectId", + "type": "i32" }, { "name": "location", "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" } ] ], - "packet_chat_command": [ + "packet_world_particles": [ "container", [ { - "name": "command", - "type": "string" + "name": "particleId", + "type": "varint" }, { - "name": "timestamp", - "type": "i64" + "name": "longDistance", + "type": "bool" }, { - "name": "salt", - "type": "i64" + "name": "x", + "type": "f64" }, { - "name": "argumentSignatures", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "argumentName", - "type": "string" - }, - { - "name": "signature", - "type": [ - "buffer", - { - "count": 256 - } - ] - } - ] - ] - } - ] + "name": "y", + "type": "f64" }, { - "name": "messageCount", - "type": "varint" + "name": "z", + "type": "f64" }, { - "name": "acknowledged", - "type": [ - "buffer", - { - "count": 3 - } - ] - } - ] - ], - "packet_chat_message": [ - "container", - [ - { - "name": "message", - "type": "string" + "name": "offsetX", + "type": "f32" }, { - "name": "timestamp", - "type": "i64" + "name": "offsetY", + "type": "f32" }, { - "name": "salt", - "type": "i64" + "name": "offsetZ", + "type": "f32" }, { - "name": "signature", - "type": [ - "option", - [ - "buffer", - { - "count": 256 - } - ] - ] + "name": "particleData", + "type": "f32" }, { - "name": "offset", - "type": "varint" + "name": "particles", + "type": "i32" }, { - "name": "acknowledged", + "name": "data", "type": [ - "buffer", + "particleData", { - "count": 3 + "compareTo": "particleId" } ] } ] - ], - "packet_set_difficulty": [ - "container", - [ - { - "name": "newDifficulty", - "type": "u8" - } - ] - ], - "packet_message_acknowledgement": [ - "container", - [ - { - "name": "count", - "type": "varint" - } - ] - ], - "packet_edit_book": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "hand", - "type": "varint" - }, - { - "name": "pages", + "name": "name", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": "string" + "mappings": { + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "message_acknowledgement", + "0x04": "chat_command", + "0x05": "chat_message", + "0x06": "chat_session_update", + "0x07": "client_command", + "0x08": "settings", + "0x09": "tab_complete", + "0x0a": "enchant_item", + "0x0b": "window_click", + "0x0c": "close_window", + "0x0d": "custom_payload", + "0x0e": "edit_book", + "0x0f": "query_entity_nbt", + "0x10": "use_entity", + "0x11": "generate_structure", + "0x12": "keep_alive", + "0x13": "lock_difficulty", + "0x14": "position", + "0x15": "position_look", + "0x16": "look", + "0x17": "flying", + "0x18": "vehicle_move", + "0x19": "steer_boat", + "0x1a": "pick_item", + "0x1b": "craft_recipe_request", + "0x1c": "abilities", + "0x1d": "block_dig", + "0x1e": "entity_action", + "0x1f": "steer_vehicle", + "0x20": "pong", + "0x21": "recipe_book", + "0x22": "displayed_recipe", + "0x23": "name_item", + "0x24": "resource_pack_receive", + "0x25": "advancement_tab", + "0x26": "select_trade", + "0x27": "set_beacon_effect", + "0x28": "held_item_slot", + "0x29": "update_command_block", + "0x2a": "update_command_block_minecart", + "0x2b": "set_creative_slot", + "0x2c": "update_jigsaw_block", + "0x2d": "update_structure_block", + "0x2e": "update_sign", + "0x2f": "arm_animation", + "0x30": "spectate", + "0x31": "block_place", + "0x32": "use_item" + }, + "type": "varint" } ] }, { - "name": "title", + "name": "params", "type": [ - "option", - "string" + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat_command": "packet_chat_command", + "chat_message": "packet_chat_message", + "chat_session_update": "packet_chat_session_update", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_payload": "packet_custom_payload", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "message_acknowledgement": "packet_message_acknowledgement", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" + } + } ] } ] ], - "packet_query_entity_nbt": [ + "packet_abilities": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "entityId", - "type": "varint" + "name": "flags", + "type": "i8" } ] ], - "packet_pick_item": [ + "packet_advancement_tab": [ "container", [ { - "name": "slot", + "name": "action", "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ + }, { - "name": "name", - "type": "string" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_select_trade": [ + "packet_arm_animation": [ "container", [ { - "name": "slot", + "name": "hand", "type": "varint" } ] ], - "packet_set_beacon_effect": [ + "packet_block_dig": [ "container", [ { - "name": "primary_effect", - "type": [ - "option", - "varint" - ] + "name": "status", + "type": "varint" }, - { - "name": "secondary_effect", - "type": [ - "option", - "varint" - ] - } - ] - ], - "packet_update_command_block": [ - "container", - [ { "name": "location", "type": "position" }, { - "name": "command", - "type": "string" + "name": "face", + "type": "i8" }, { - "name": "mode", + "name": "sequence", "type": "varint" - }, - { - "name": "flags", - "type": "u8" } ] ], - "packet_update_command_block_minecart": [ + "packet_block_place": [ "container", [ { - "name": "entityId", + "name": "hand", "type": "varint" }, - { - "name": "command", - "type": "string" - }, - { - "name": "track_output", - "type": "bool" - } - ] - ], - "packet_update_structure_block": [ - "container", - [ { "name": "location", "type": "position" }, { - "name": "action", - "type": "varint" - }, - { - "name": "mode", + "name": "direction", "type": "varint" }, { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" + "name": "cursorX", + "type": "f32" }, { - "name": "size_y", - "type": "i8" + "name": "cursorY", + "type": "f32" }, { - "name": "size_z", - "type": "i8" + "name": "cursorZ", + "type": "f32" }, { - "name": "mirror", - "type": "varint" + "name": "insideBlock", + "type": "bool" }, { - "name": "rotation", + "name": "sequence", "type": "varint" - }, + } + ] + ], + "packet_chat_command": [ + "container", + [ { - "name": "metadata", + "name": "command", "type": "string" }, { - "name": "integrity", - "type": "f32" + "name": "timestamp", + "type": "i64" }, { - "name": "seed", - "type": "varint" + "name": "salt", + "type": "i64" }, { - "name": "flags", - "type": "u8" - } - ] - ], - "packet_tab_complete": [ - "container", - [ + "name": "argumentSignatures", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "argumentName", + "type": "string" + }, + { + "name": "signature", + "type": [ + "buffer", + { + "count": 256 + } + ] + } + ] + ] + } + ] + }, { - "name": "transactionId", + "name": "messageCount", "type": "varint" }, { - "name": "text", - "type": "string" - } - ] - ], - "packet_client_command": [ - "container", - [ - { - "name": "actionId", - "type": "varint" + "name": "acknowledged", + "type": [ + "buffer", + { + "count": 3 + } + ] } ] ], - "packet_settings": [ + "packet_chat_message": [ "container", [ { - "name": "locale", + "name": "message", "type": "string" }, { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" + "name": "timestamp", + "type": "i64" }, { - "name": "chatColors", - "type": "bool" + "name": "salt", + "type": "i64" }, { - "name": "skinParts", - "type": "u8" + "name": "signature", + "type": [ + "option", + [ + "buffer", + { + "count": 256 + } + ] + ] }, { - "name": "mainHand", + "name": "offset", "type": "varint" }, { - "name": "enableTextFiltering", - "type": "bool" - }, - { - "name": "enableServerListing", - "type": "bool" - } - ] - ], - "packet_enchant_item": [ - "container", - [ - { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "acknowledged", + "type": [ + "buffer", + { + "count": 3 + } + ] } ] ], - "packet_window_click": [ + "packet_chat_session_update": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" + "name": "sessionUUID", + "type": "UUID" }, { - "name": "mouseButton", - "type": "i8" + "name": "expireTime", + "type": "i64" }, { - "name": "mode", - "type": "varint" + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "changedSlots", + "name": "signature", "type": [ - "array", + "buffer", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ] + "countType": "varint" } ] - }, + } + ] + ], + "packet_client_command": [ + "container", + [ { - "name": "cursorItem", - "type": "slot" + "name": "actionId", + "type": "varint" } ] ], @@ -5903,6 +5815,23 @@ } ] ], + "packet_craft_recipe_request": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "recipe", + "type": "string" + }, + { + "name": "makeAll", + "type": "bool" + } + ] + ], "packet_custom_payload": [ "container", [ @@ -5916,72 +5845,76 @@ } ] ], - "packet_use_entity": [ + "packet_displayed_recipe": [ "container", [ { - "name": "target", - "type": "varint" - }, + "name": "recipeId", + "type": "string" + } + ] + ], + "packet_edit_book": [ + "container", + [ { - "name": "mouse", + "name": "hand", "type": "varint" }, { - "name": "x", + "name": "pages", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" + "countType": "varint", + "type": "string" } ] }, { - "name": "y", + "name": "title", "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } + "option", + "string" ] + } + ] + ], + "packet_enchant_item": [ + "container", + [ + { + "name": "windowId", + "type": "i8" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "enchantment", + "type": "i8" + } + ] + ], + "packet_entity_action": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "actionId", + "type": "varint" }, { - "name": "sneaking", + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ + { + "name": "onGround", "type": "bool" } ] @@ -6003,6 +5936,15 @@ } ] ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slotId", + "type": "i16" + } + ] + ], "packet_keep_alive": [ "container", [ @@ -6021,6 +5963,59 @@ } ] ], + "packet_look": [ + "container", + [ + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_message_acknowledgement": [ + "container", + [ + { + "name": "count", + "type": "varint" + } + ] + ], + "packet_name_item": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] + ], + "packet_pong": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], "packet_position": [ "container", [ @@ -6071,131 +6066,164 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + } + ] + ], + "packet_query_entity_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_recipe_book": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "bookId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "bookOpen", + "type": "bool" }, { - "name": "onGround", + "name": "filterActive", "type": "bool" } ] ], - "packet_flying": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_select_trade": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "slot", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "primary_effect", + "type": [ + "option", + "varint" + ] }, { - "name": "rightPaddle", - "type": "bool" + "name": "secondary_effect", + "type": [ + "option", + "varint" + ] } ] ], - "packet_craft_recipe_request": [ + "packet_set_creative_slot": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" + "name": "slot", + "type": "i16" }, { - "name": "makeAll", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_abilities": [ + "packet_set_difficulty": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_block_dig": [ + "packet_settings": [ "container", [ { - "name": "status", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "chatColors", + "type": "bool" }, { - "name": "face", - "type": "i8" + "name": "skinParts", + "type": "u8" }, { - "name": "sequence", + "name": "mainHand", "type": "varint" + }, + { + "name": "enableTextFiltering", + "type": "bool" + }, + { + "name": "enableServerListing", + "type": "bool" } ] ], - "packet_entity_action": [ + "packet_spectate": [ "container", [ { - "name": "entityId", - "type": "varint" - }, + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -6216,60 +6244,63 @@ } ] ], - "packet_displayed_recipe": [ - "container", - [ - { - "name": "recipeId", - "type": "string" - } - ] - ], - "packet_recipe_book": [ + "packet_tab_complete": [ "container", [ { - "name": "bookId", + "name": "transactionId", "type": "varint" }, { - "name": "bookOpen", - "type": "bool" - }, - { - "name": "filterActive", - "type": "bool" + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "location", + "type": "position" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block_minecart": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -6327,262 +6358,231 @@ } ] ], - "packet_arm_animation": [ + "packet_update_structure_block": [ "container", [ { - "name": "hand", - "type": "varint" - } - ] - ], - "packet_spectate": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ + "name": "action", + "type": "varint" + }, { - "name": "hand", + "name": "mode", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "name", + "type": "string" }, { - "name": "direction", + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", "type": "varint" }, { - "name": "cursorX", - "type": "f32" + "name": "rotation", + "type": "varint" }, { - "name": "cursorY", - "type": "f32" + "name": "metadata", + "type": "string" }, { - "name": "cursorZ", + "name": "integrity", "type": "f32" }, { - "name": "insideBlock", - "type": "bool" + "name": "seed", + "type": "varint" }, { - "name": "sequence", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_use_item": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", "type": "varint" }, { - "name": "sequence", + "name": "mouse", "type": "varint" - } - ] - ], - "packet_advancement_tab": [ - "container", - [ + }, { - "name": "action", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "tabId", + "name": "y", "type": [ "switch", { - "compareTo": "action", + "compareTo": "mouse", + "default": "void", "fields": { - "0": "string", - "1": "void" + "2": "f32" } } ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + }, + { + "name": "sneaking", + "type": "bool" } ] ], - "packet_pong": [ + "packet_use_item": [ "container", [ { - "name": "id", - "type": "i32" + "name": "hand", + "type": "varint" + }, + { + "name": "sequence", + "type": "varint" } ] ], - "packet_chat_session_update": [ + "packet_vehicle_move": [ "container", [ { - "name": "sessionUUID", - "type": "UUID" + "name": "x", + "type": "f64" }, { - "name": "expireTime", - "type": "i64" + "name": "y", + "type": "f64" }, { - "name": "publicKey", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "z", + "type": "f64" }, { - "name": "signature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "message_acknowledgement", - "0x04": "chat_command", - "0x05": "chat_message", - "0x06": "chat_session_update", - "0x07": "client_command", - "0x08": "settings", - "0x09": "tab_complete", - "0x0a": "enchant_item", - "0x0b": "window_click", - "0x0c": "close_window", - "0x0d": "custom_payload", - "0x0e": "edit_book", - "0x0f": "query_entity_nbt", - "0x10": "use_entity", - "0x11": "generate_structure", - "0x12": "keep_alive", - "0x13": "lock_difficulty", - "0x14": "position", - "0x15": "position_look", - "0x16": "look", - "0x17": "flying", - "0x18": "vehicle_move", - "0x19": "steer_boat", - "0x1a": "pick_item", - "0x1b": "craft_recipe_request", - "0x1c": "abilities", - "0x1d": "block_dig", - "0x1e": "entity_action", - "0x1f": "steer_vehicle", - "0x20": "pong", - "0x21": "recipe_book", - "0x22": "displayed_recipe", - "0x23": "name_item", - "0x24": "resource_pack_receive", - "0x25": "advancement_tab", - "0x26": "select_trade", - "0x27": "set_beacon_effect", - "0x28": "held_item_slot", - "0x29": "update_command_block", - "0x2a": "update_command_block_minecart", - "0x2b": "set_creative_slot", - "0x2c": "update_jigsaw_block", - "0x2d": "update_structure_block", - "0x2e": "update_sign", - "0x2f": "arm_animation", - "0x30": "spectate", - "0x31": "block_place", - "0x32": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", + "name": "stateId", + "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "message_acknowledgement": "packet_message_acknowledgement", - "chat_command": "packet_chat_command", - "chat_message": "packet_chat_message", - "client_command": "packet_client_command", - "settings": "packet_settings", - "tab_complete": "packet_tab_complete", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "pick_item": "packet_pick_item", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "pong": "packet_pong", - "chat_session_update": "packet_chat_session_update", - "recipe_book": "packet_recipe_book", - "displayed_recipe": "packet_displayed_recipe", - "name_item": "packet_name_item", - "resource_pack_receive": "packet_resource_pack_receive", - "advancement_tab": "packet_advancement_tab", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "held_item_slot": "packet_held_item_slot", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_structure_block": "packet_update_structure_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "slot" + } + ] + ] } ] + }, + { + "name": "cursorItem", + "type": "slot" } ] ] diff --git a/data/pc/1.19/protocol.json b/data/pc/1.19/protocol.json index 4f3384ebe..8f6262f5e 100644 --- a/data/pc/1.19/protocol.json +++ b/data/pc/1.19/protocol.json @@ -1,564 +1,113 @@ { "types": { - "varint": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "chunkBlockEntity": [ "container", [ { - "name": "x", - "type": "i16" + "anon": true, + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 + } + ] + ] }, { "name": "y", "type": "i16" }, { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" + "name": "type", + "type": "varint" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] + "name": "nbtData", + "type": "optionalNbt" } ] ], - "particle": [ + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "2": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", - [ - { - "name": "red", - "type": "f32" - }, - { - "name": "green", - "type": "f32" - }, - { - "name": "blue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - } - ] - ], - "15": [ - "container", + "bitfield", [ { - "name": "fromRed", - "type": "f32" - }, - { - "name": "fromGreen", - "type": "f32" - }, - { - "name": "fromBlue", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "scale", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "toRed", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "toGreen", - "type": "f32" + "name": "has_command", + "signed": false, + "size": 1 }, { - "name": "toBlue", - "type": "f32" - } - ] - ], - "25": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "30": [ - "container", - [ - { - "name": "rotation", - "type": "f32" + "name": "command_node_type", + "signed": false, + "size": 2 } ] - ], - "39": [ - "container", - [ - { - "name": "item", - "type": "slot" + ] + }, + { + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + }, + { + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" } - ] - ], - "40": [ - "container", - [ - { - "name": "positionType", - "type": "string" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:entity": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entityEyeHeight", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:entity": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "destination", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:block": "position", - "minecraft:entity": "varint" - } - } - ] - }, - { - "name": "ticks", - "type": "varint" - } - ] - ], - "92": [ - "container", - [ - { - "name": "delayInTicksBeforeShown", - "type": "varint" - } - ] - ] - }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] - ] - } - ], - "chunkBlockEntity": [ - "container", - [ - { - "anon": true, - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "type", - "type": "varint" }, { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "extraNodeData", + "name": "extraNodeData", "type": [ "switch", { @@ -586,7 +135,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "brigadier:bool", "1": "brigadier:float", @@ -636,7 +184,8 @@ "45": "minecraft:template_mirror", "46": "minecraft:template_rotation", "47": "minecraft:uuid" - } + }, + "type": "varint" } ] }, @@ -648,7 +197,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -658,18 +207,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -680,10 +229,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -693,16 +242,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -712,18 +261,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -734,10 +283,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -747,10 +296,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -766,18 +315,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -788,10 +337,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -801,10 +350,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -820,18 +369,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -842,10 +391,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -855,10 +404,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -867,83 +416,70 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", + "minecraft:resource": [ + "container", [ { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false + "name": "registry", + "type": "string" } ] ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:time": "void", "minecraft:resource_or_tag": [ "container", [ @@ -953,18 +489,31 @@ } ] ], - "minecraft:resource": [ - "container", + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", [ { - "name": "registry", - "type": "string" + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 } ] ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", "minecraft:template_mirror": "void", "minecraft:template_rotation": "void", - "minecraft:uuid": "void" + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -975,24 +524,819 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } ] - ] - } + ] + } + } + ] + } + ] + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "2": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "15": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "25": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "30": [ + "container", + [ + { + "name": "rotation", + "type": "f32" + } + ] + ], + "39": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ], + "40": [ + "container", + [ + { + "name": "positionType", + "type": "string" + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "positionType", + "default": "void", + "fields": { + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "entityEyeHeight", + "type": [ + "switch", + { + "compareTo": "positionType", + "default": "void", + "fields": { + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "destination", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "minecraft:block": "position", + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] + ], + "92": [ + "container", + [ + { + "name": "delayInTicksBeforeShown", + "type": "varint" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": {}, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": {} + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", + [ + { + "name": "payload", + "type": "u8" + } + ] + ], + "packet_set_protocol": [ + "container", + [ + { + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" + } + ] + ] + } + } + }, + "status": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "server_info": "packet_server_info" + } + } + ] + } + ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } + } + ] + } + ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "string" + } + ] + ], + "packet_encryption_begin": [ + "container", + [ + { + "name": "serverId", + "type": "string" + }, + { + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ], + "packet_login_plugin_request": [ + "container", + [ + { + "name": "messageId", + "type": "varint" + }, + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_success": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "username", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] } ] - } - ] - ] - }, - "handshaking": { - "toClient": { + ] + } + }, + "toServer": { "types": { "packet": [ "container", @@ -1002,8 +1346,12 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": { + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" + }, + "type": "varint" } ] }, @@ -1013,46 +1361,141 @@ "switch", { "compareTo": "name", - "fields": {} + "fields": { + "encryption_begin": "packet_encryption_begin", + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" + } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_set_protocol": [ + ], + "packet_encryption_begin": [ "container", [ { - "name": "protocolVersion", - "type": "varint" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "serverHost", - "type": "string" + "name": "hasVerifyToken", + "type": "bool" }, { - "name": "serverPort", - "type": "u16" - }, + "name": "crypto", + "type": [ + "switch", + { + "compareTo": "hasVerifyToken", + "fields": { + "false": [ + "container", + [ + { + "name": "salt", + "type": "i64" + }, + { + "name": "messageSignature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ], + "true": [ + "container", + [ + { + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ] + } + } + ] + } + ] + ], + "packet_login_plugin_response": [ + "container", + [ { - "name": "nextState", + "name": "messageId", "type": "varint" + }, + { + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_legacy_server_list_ping": [ + "packet_login_start": [ "container", [ { - "name": "payload", - "type": "u8" + "name": "username", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + [ + "container", + [ + { + "name": "timestamp", + "type": "i64" + }, + { + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "signature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ] + ] } ] - ], + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1061,11 +1504,114 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "named_entity_spawn", + "0x03": "animation", + "0x04": "statistics", + "0x05": "acknowledge_player_digging", + "0x06": "block_break_animation", + "0x07": "tile_entity_data", + "0x08": "block_action", + "0x09": "block_change", + "0x0a": "boss_bar", + "0x0b": "difficulty", + "0x0c": "chat_preview", + "0x0d": "clear_titles", + "0x0e": "tab_complete", + "0x0f": "declare_commands", + "0x10": "close_window", + "0x11": "window_items", + "0x12": "craft_progress_bar", + "0x13": "set_slot", + "0x14": "set_cooldown", + "0x15": "custom_payload", + "0x16": "named_sound_effect", + "0x17": "kick_disconnect", + "0x18": "entity_status", + "0x19": "explosion", + "0x1a": "unload_chunk", + "0x1b": "game_state_change", + "0x1c": "open_horse_window", + "0x1d": "initialize_world_border", + "0x1e": "keep_alive", + "0x1f": "map_chunk", + "0x20": "world_event", + "0x21": "world_particles", + "0x22": "update_light", + "0x23": "login", + "0x24": "map", + "0x25": "trade_list", + "0x26": "rel_entity_move", + "0x27": "entity_move_look", + "0x28": "entity_look", + "0x29": "vehicle_move", + "0x2a": "open_book", + "0x2b": "open_window", + "0x2c": "open_sign_entity", + "0x2d": "ping", + "0x2e": "craft_recipe_response", + "0x2f": "abilities", + "0x30": "player_chat", + "0x31": "end_combat_event", + "0x32": "enter_combat_event", + "0x33": "death_combat_event", + "0x34": "player_info", + "0x35": "face_player", + "0x36": "position", + "0x37": "unlock_recipes", + "0x38": "entity_destroy", + "0x39": "remove_entity_effect", + "0x3a": "resource_pack_send", + "0x3b": "respawn", + "0x3c": "entity_head_rotation", + "0x3d": "multi_block_change", + "0x3e": "select_advancement_tab", + "0x3f": "server_data", + "0x40": "action_bar", + "0x41": "world_border_center", + "0x42": "world_border_lerp_size", + "0x43": "world_border_size", + "0x44": "world_border_warning_delay", + "0x45": "world_border_warning_reach", + "0x46": "camera", + "0x47": "held_item_slot", + "0x48": "update_view_position", + "0x49": "update_view_distance", + "0x4a": "spawn_position", + "0x4b": "should_display_chat_preview", + "0x4c": "scoreboard_display_objective", + "0x4d": "entity_metadata", + "0x4e": "attach_entity", + "0x4f": "entity_velocity", + "0x50": "entity_equipment", + "0x51": "experience", + "0x52": "update_health", + "0x53": "scoreboard_objective", + "0x54": "set_passengers", + "0x55": "teams", + "0x56": "scoreboard_score", + "0x57": "simulation_distance", + "0x58": "set_title_subtitle", + "0x59": "update_time", + "0x5a": "set_title_text", + "0x5b": "set_title_time", + "0x5c": "entity_sound_effect", + "0x5d": "sound_effect", + "0x5e": "stop_sound", + "0x5f": "system_chat", + "0x60": "playerlist_header", + "0x61": "nbt_query_response", + "0x62": "collect", + "0x63": "entity_teleport", + "0x64": "advancements", + "0x65": "entity_update_attributes", + "0x66": "entity_effect", + "0x67": "declare_recipes", + "0x68": "tags" + }, + "type": "varint" } ] }, @@ -1076,172 +1622,318 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat_preview": "packet_chat_preview", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "death_combat_event": "packet_death_combat_event", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "player_chat": "packet_player_chat", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "server_data": "packet_server_data", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "should_display_chat_preview": "packet_should_display_chat_preview", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "system_chat": "packet_system_chat", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "trade_list": "packet_trade_list", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] ], - "packet_ping": [ + "packet_abilities": [ "container", [ { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ + "name": "flags", + "type": "i8" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } - } - ] + "name": "flyingSpeed", + "type": "f32" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } - } - ] + "name": "walkingSpeed", + "type": "f32" } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], - "packet_ping": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "time", - "type": "i64" + "name": "sequenceId", + "type": "varint" } ] ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" - } - } - ] - } - ] - ] - } - } - }, - "login": { - "toClient": { - "types": { - "packet_disconnect": [ + "packet_action_bar": [ "container", [ { - "name": "reason", + "name": "text", "type": "string" } ] ], - "packet_encryption_begin": [ + "packet_advancements": [ "container", [ { - "name": "serverId", - "type": "string" + "name": "reset", + "type": "bool" }, { - "name": "publicKey", + "name": "advancementMapping", "type": [ - "buffer", + "array", { - "countType": "varint" + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "container", + [ + { + "name": "parentId", + "type": [ + "option", + "string" + ] + }, + { + "name": "displayData", + "type": [ + "option", + [ + "container", + [ + { + "name": "title", + "type": "string" + }, + { + "name": "description", + "type": "string" + }, + { + "name": "icon", + "type": "slot" + }, + { + "name": "frameType", + "type": "varint" + }, + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "_unused", + "signed": false, + "size": 29 + }, + { + "name": "hidden", + "signed": false, + "size": 1 + }, + { + "name": "show_toast", + "signed": false, + "size": 1 + }, + { + "name": "has_background_texture", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "backgroundTexture", + "type": [ + "switch", + { + "compareTo": "flags/has_background_texture", + "default": "void", + "fields": { + "1": "string" + } + } + ] + }, + { + "name": "xCord", + "type": "f32" + }, + { + "name": "yCord", + "type": "f32" + } + ] + ] + ] + }, + { + "name": "criteria", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "void" + } + ] + ] + } + ] + }, + { + "name": "requirements", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + } + ] + ] + } + ] + ] } ] }, { - "name": "verifyToken", + "name": "identifiers", "type": [ - "buffer", + "array", { - "countType": "varint" + "countType": "varint", + "type": "string" } ] - } - ] - ], - "packet_success": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "username", - "type": "string" }, { - "name": "properties", + "name": "progressMapping", "type": [ "array", { @@ -1250,18 +1942,32 @@ "container", [ { - "name": "name", + "name": "key", "type": "string" }, { "name": "value", - "type": "string" - }, - { - "name": "signature", "type": [ - "option", - "string" + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "criterionIdentifier", + "type": "string" + }, + { + "name": "criterionProgress", + "type": [ + "option", + "i64" + ] + } + ] + ] + } ] } ] @@ -1271,391 +1977,310 @@ } ] ], - "packet_compress": [ + "packet_animation": [ "container", [ { - "name": "threshold", + "name": "entityId", "type": "varint" + }, + { + "name": "animation", + "type": "u8" } ] ], - "packet_login_plugin_request": [ + "packet_attach_entity": [ "container", [ { - "name": "messageId", - "type": "varint" - }, - { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "data", - "type": "restBuffer" + "name": "vehicleId", + "type": "i32" } ] ], - "packet": [ + "packet_block_action": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" - } - } - ] + "name": "location", + "type": "position" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "disconnect": "packet_disconnect", - "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" - } - } - ] + "name": "byte1", + "type": "u8" + }, + { + "name": "byte2", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_block_break_animation": [ "container", [ { - "name": "username", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "signature", - "type": [ - "option", - [ - "container", - [ - { - "name": "timestamp", - "type": "i64" - }, - { - "name": "publicKey", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "signature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] - ] + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" } ] ], - "packet_encryption_begin": [ + "packet_block_change": [ "container", [ { - "name": "sharedSecret", + "name": "location", + "type": "position" + }, + { + "name": "type", + "type": "varint" + } + ] + ], + "packet_boss_bar": [ + "container", + [ + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "title", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "3": "string" + } } ] }, { - "name": "hasVerifyToken", - "type": "bool" - }, - { - "name": "crypto", + "name": "health", "type": [ "switch", { - "compareTo": "hasVerifyToken", + "compareTo": "action", + "default": "void", "fields": { - "true": [ - "container", - [ - { - "name": "verifyToken", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ], - "false": [ - "container", - [ - { - "name": "salt", - "type": "i64" - }, - { - "name": "messageSignature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] + "0": "f32", + "2": "f32" } } ] - } - ] - ], - "packet_login_plugin_response": [ - "container", - [ - { - "name": "messageId", - "type": "varint" }, { - "name": "data", + "name": "color", "type": [ - "option", - "restBuffer" + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } ] - } - ] - ], - "packet": [ - "container", - [ + }, { - "name": "name", + "name": "dividers", "type": [ - "mapper", + "switch", { - "type": "varint", - "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" } } ] }, { - "name": "params", + "name": "flags", "type": [ "switch", { - "compareTo": "name", + "compareTo": "action", + "default": "void", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "0": "u8", + "5": "u8" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_camera": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", + "name": "cameraId", "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, + } + ] + ], + "packet_chat_preview": [ + "container", + [ { - "name": "y", - "type": "f64" + "name": "queryId", + "type": "i32" }, { - "name": "z", - "type": "f64" - }, + "name": "message", + "type": [ + "option", + "string" + ] + } + ] + ], + "packet_clear_titles": [ + "container", + [ { - "name": "pitch", - "type": "i8" - }, + "name": "reset", + "type": "bool" + } + ] + ], + "packet_close_window": [ + "container", + [ { - "name": "yaw", - "type": "i8" - }, + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_collect": [ + "container", + [ { - "name": "headPitch", - "type": "i8" + "name": "collectedEntityId", + "type": "varint" }, { - "name": "objectData", + "name": "collectorEntityId", "type": "varint" }, { - "name": "velocity", - "type": "vec3i16" + "name": "pickupItemCount", + "type": "varint" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "windowId", + "type": "u8" }, { - "name": "z", - "type": "f64" + "name": "property", + "type": "i16" }, { - "name": "count", + "name": "value", "type": "i16" } ] ], - "packet_named_entity_spawn": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "windowId", + "type": "i8" }, { - "name": "z", - "type": "f64" - }, + "name": "recipe", + "type": "string" + } + ] + ], + "packet_custom_payload": [ + "container", + [ { - "name": "yaw", - "type": "i8" + "name": "channel", + "type": "string" }, { - "name": "pitch", - "type": "i8" + "name": "data", + "type": "restBuffer" } ] ], - "packet_animation": [ + "packet_death_combat_event": [ "container", [ { - "name": "entityId", + "name": "playerId", "type": "varint" }, { - "name": "animation", - "type": "u8" + "name": "entityId", + "type": "i32" + }, + { + "name": "message", + "type": "string" } ] ], - "packet_statistics": [ + "packet_declare_commands": [ "container", [ { - "name": "entries", + "name": "nodes", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] + "type": "command_node" } ] + }, + { + "name": "rootIndex", + "type": "varint" } ] ], - "packet_advancements": [ + "packet_declare_recipes": [ "container", [ { - "name": "reset", - "type": "bool" - }, - { - "name": "advancementMapping", + "name": "recipes", "type": [ "array", { @@ -1664,188 +2289,133 @@ "container", [ { - "name": "key", + "name": "type", "type": "string" }, { - "name": "value", + "name": "recipeId", + "type": "string" + }, + { + "name": "data", "type": [ - "container", - [ - { - "name": "parentId", - "type": [ - "option", - "string" - ] - }, - { - "name": "displayData", - "type": [ - "option", + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "description", - "type": "string" - }, - { - "name": "icon", - "type": "slot" - }, - { - "name": "frameType", - "type": "varint" - }, - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", { - "name": "has_background_texture", - "size": 1, - "signed": false + "count": "height", + "type": "ingredient" } ] - ] - }, - { - "name": "backgroundTexture", - "type": [ - "switch", - { - "compareTo": "flags/has_background_texture", - "fields": { - "1": "string" - }, - "default": "void" - } - ] - }, - { - "name": "xCord", - "type": "f32" - }, - { - "name": "yCord", - "type": "f32" - } - ] + } + ] + }, + { + "name": "result", + "type": "slot" + } ] - ] - }, - { - "name": "criteria", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", { - "name": "value", - "type": "void" + "countType": "varint", + "type": "ingredient" } ] - ] - } - ] - }, - { - "name": "requirements", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] ] } - ] - ] - } - ] - ] - } - ] - }, - { - "name": "identifiers", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "progressMapping", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "criterionIdentifier", - "type": "string" - }, - { - "name": "criterionProgress", - "type": [ - "option", - "i64" - ] - } - ] - ] } ] } @@ -1856,220 +2426,105 @@ } ] ], - "packet_block_break_animation": [ + "packet_difficulty": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "location", - "type": "position" + "name": "difficulty", + "type": "u8" }, { - "name": "destroyStage", - "type": "i8" + "name": "difficultyLocked", + "type": "bool" } ] ], - "packet_tile_entity_data": [ + "packet_end_combat_event": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", + "name": "duration", "type": "varint" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "entityId", + "type": "i32" } ] ], - "packet_block_action": [ + "packet_enter_combat_event": [ "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "byte1", - "type": "u8" - }, - { - "name": "byte2", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] + [] ], - "packet_block_change": [ + "packet_entity_destroy": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "type", - "type": "varint" + "name": "entityIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_boss_bar": [ + "packet_entity_effect": [ "container", [ { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "title", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "3": "string" - }, - "default": "void" - } - ] - }, - { - "name": "health", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "color", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "effectId", + "type": "varint" }, { - "name": "dividers", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "amplifier", + "type": "i8" }, { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] - } - ] - ], - "packet_difficulty": [ - "container", - [ - { - "name": "difficulty", - "type": "u8" + "name": "duration", + "type": "varint" }, { - "name": "difficultyLocked", - "type": "bool" - } - ] - ], - "packet_chat_preview": [ - "container", - [ - { - "name": "queryId", - "type": "i32" + "name": "hideParticles", + "type": "i8" }, { - "name": "message", + "name": "factorCodec", "type": [ "option", - "string" + "nbt" ] } ] ], - "packet_tab_complete": [ + "packet_entity_equipment": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", + "name": "entityId", "type": "varint" }, { - "name": "matches", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "varint", "type": [ "container", [ { - "name": "match", - "type": "string" + "name": "slot", + "type": "i8" }, { - "name": "tooltip", - "type": [ - "option", - "string" - ] + "name": "item", + "type": "slot" } ] ] @@ -2078,304 +2533,245 @@ } ] ], - "packet_declare_commands": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "rootIndex", - "type": "varint" + "name": "headYaw", + "type": "i8" } ] ], - "packet_face_player": [ + "packet_entity_look": [ "container", [ { - "name": "feet_eyes", + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "yaw", + "type": "i8" }, { - "name": "z", - "type": "f64" + "name": "pitch", + "type": "i8" }, { - "name": "isEntity", + "name": "onGround", "type": "bool" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entity_feet_eyes", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "string" - }, - "default": "void" - } - ] } ] ], - "packet_nbt_query_response": [ + "packet_entity_metadata": [ "container", [ { - "name": "transactionId", + "name": "entityId", "type": "varint" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_multi_block_change": [ + "packet_entity_move_look": [ "container", [ { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] + "name": "entityId", + "type": "varint" }, { - "name": "notTrustEdges", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_close_window": [ - "container", - [ + "name": "dY", + "type": "i16" + }, { - "name": "windowId", - "type": "u8" - } - ] - ], - "packet_open_window": [ - "container", - [ + "name": "dZ", + "type": "i16" + }, { - "name": "windowId", - "type": "varint" + "name": "yaw", + "type": "i8" }, { - "name": "inventoryType", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "windowTitle", - "type": "string" + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "soundId", + "type": "varint" }, { - "name": "stateId", + "name": "soundCategory", "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "carriedItem", - "type": "slot" + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_status": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "property", - "type": "i16" + "name": "entityId", + "type": "i32" }, { - "name": "value", - "type": "i16" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_set_slot": [ + "packet_entity_teleport": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "stateId", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "slot", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ + "name": "z", + "type": "f64" + }, { - "name": "itemID", - "type": "varint" + "name": "yaw", + "type": "i8" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_named_sound_effect": [ + "packet_entity_velocity": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "seed", - "type": "i64" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_kick_disconnect": [ + "packet_experience": [ "container", [ { - "name": "reason", - "type": "string" - } - ] - ], - "packet_entity_status": [ - "container", - [ + "name": "experienceBar", + "type": "f32" + }, { - "name": "entityId", - "type": "i32" + "name": "level", + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "totalExperience", + "type": "varint" } ] ], @@ -2438,201 +2834,12 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ - "container", - [ - { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", - "type": "f32" - } - ] - ], - "packet_open_horse_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" - }, - { - "name": "nbSlots", - "type": "varint" - }, - { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_map_chunk": [ - "container", - [ - { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "heightmaps", - "type": "nbt" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "chunkBlockEntity" - } - ] - }, - { - "name": "trustEdges", - "type": "bool" - }, - { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] - }, - { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" - } - ] - ], - "packet_world_particles": [ + "packet_face_player": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "longDistance", - "type": "bool" + "name": "feet_eyes", + "type": "varint" }, { "name": "x", @@ -2647,122 +2854,111 @@ "type": "f64" }, { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" + "name": "isEntity", + "type": "bool" }, { - "name": "particles", - "type": "i32" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "data", + "name": "entity_feet_eyes", "type": [ - "particleData", + "switch", { - "compareTo": "particleId" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] } ] ], - "packet_update_light": [ + "packet_game_state_change": [ "container", [ { - "name": "chunkX", - "type": "varint" + "name": "reason", + "type": "u8" }, { - "name": "chunkZ", - "type": "varint" + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slot", + "type": "i8" + } + ] + ], + "packet_initialize_world_border": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "trustEdges", - "type": "bool" + "name": "z", + "type": "f64" }, { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "oldDiameter", + "type": "f64" }, { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "newDiameter", + "type": "f64" }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "speed", + "type": "varint" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "portalTeleportBoundary", + "type": "varint" }, { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "warningBlocks", + "type": "varint" }, { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "string" } ] ], @@ -2925,10 +3121,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -2938,10 +3134,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -2951,10 +3147,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -2964,125 +3160,175 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_trade_list": [ + "packet_map_chunk": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "trades", + "name": "z", + "type": "i32" + }, + { + "name": "heightmaps", + "type": "nbt" + }, + { + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", "type": [ "array", { - "countType": "u8", - "type": [ - "container", - [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": "slot" - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ] - ] + "countType": "varint", + "type": "chunkBlockEntity" + } + ] + }, + { + "name": "trustEdges", + "type": "bool" + }, + { + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" } ] }, { - "name": "villagerLevel", - "type": "varint" + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "experience", - "type": "varint" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "isRegularVillager", - "type": "bool" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "canRestock", - "type": "bool" + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] + }, + { + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], - "packet_rel_entity_move": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] + ] }, { - "name": "dZ", - "type": "i16" + "name": "notTrustEdges", + "type": "bool" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -3090,16 +3336,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dY", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -3108,56 +3358,56 @@ { "name": "pitch", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "pitch", - "type": "i8" + "name": "soundCategory", + "type": "varint" }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { "name": "pitch", "type": "f32" + }, + { + "name": "seed", + "type": "i64" + } + ] + ], + "packet_nbt_query_response": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" } ] ], @@ -3170,6 +3420,23 @@ } ] ], + "packet_open_horse_window": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" + } + ] + ], "packet_open_sign_entity": [ "container", [ @@ -3179,33 +3446,29 @@ } ] ], - "packet_craft_recipe_response": [ + "packet_open_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "varint" }, { - "name": "recipe", + "name": "inventoryType", + "type": "varint" + }, + { + "name": "windowTitle", "type": "string" } ] ], - "packet_abilities": [ + "packet_ping": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "id", + "type": "i32" } ] ], @@ -3254,44 +3517,10 @@ "name": "signature", "type": [ "buffer", - { - "countType": "varint" - } - ] - } - ] - ], - "packet_end_combat_event": [ - "container", - [ - { - "name": "duration", - "type": "varint" - }, - { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ - "container", - [ - { - "name": "playerId", - "type": "varint" - }, - { - "name": "entityId", - "type": "i32" - }, - { - "name": "message", - "type": "string" + { + "countType": "varint" + } + ] } ] ], @@ -3303,14 +3532,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -3410,37 +3639,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -3452,6 +3681,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -3489,88 +3731,28 @@ } ] ], - "packet_unlock_recipes": [ + "packet_rel_entity_move": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "filteringCraftable", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "filteringSmeltable", - "type": "bool" - }, - { - "name": "blastFurnaceOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringBlastFurnace", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smokerBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmoker", + "name": "onGround", "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -3647,27 +3829,159 @@ "type": "bool" }, { - "name": "death", - "type": [ - "option", - [ - "container", - [ - { - "name": "dimensionName", - "type": "string" - }, - { - "name": "location", - "type": "position" - } - ] - ] - ] + "name": "death", + "type": [ + "option", + [ + "container", + [ + { + "name": "dimensionName", + "type": "string" + }, + { + "name": "location", + "type": "position" + } + ] + ] + ] + } + ] + ], + "packet_scoreboard_display_objective": [ + "container", + [ + { + "name": "position", + "type": "i8" + }, + { + "name": "name", + "type": "string" + } + ] + ], + "packet_scoreboard_objective": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "action", + "type": "i8" + }, + { + "name": "displayText", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "type", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "scoreName", + "type": "string" + }, + { + "name": "value", + "type": [ + "switch", + { + "compareTo": "action", + "default": "varint", + "fields": { + "1": "void" + } + } + ] + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ + { + "name": "id", + "type": [ + "option", + "string" + ] + } + ] + ], + "packet_server_data": [ + "container", + [ + { + "name": "motd", + "type": [ + "option", + "string" + ] + }, + { + "name": "icon", + "type": [ + "option", + "string" + ] + }, + { + "name": "previewsChat", + "type": "bool" + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "itemID", + "type": "varint" + }, + { + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_entity_head_rotation": [ + "packet_set_passengers": [ "container", [ { @@ -3675,48 +3989,70 @@ "type": "varint" }, { - "name": "headYaw", - "type": "i8" + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_camera": [ + "packet_set_slot": [ "container", [ { - "name": "cameraId", + "name": "windowId", + "type": "i8" + }, + { + "name": "stateId", "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_held_item_slot": [ + "packet_set_title_subtitle": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "text", + "type": "string" } ] ], - "packet_update_view_position": [ + "packet_set_title_text": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" + "name": "text", + "type": "string" } ] ], - "packet_update_view_distance": [ + "packet_set_title_time": [ "container", [ { - "name": "viewDistance", - "type": "varint" + "name": "fadeIn", + "type": "i32" + }, + { + "name": "stay", + "type": "i32" + }, + { + "name": "fadeOut", + "type": "i32" } ] ], @@ -3729,59 +4065,102 @@ } ] ], - "packet_scoreboard_display_objective": [ + "packet_simulation_distance": [ "container", [ { - "name": "position", - "type": "i8" - }, - { - "name": "name", - "type": "string" + "name": "distance", + "type": "varint" } ] ], - "packet_entity_metadata": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "soundCategory", + "type": "varint" + }, { - "name": "entityId", + "name": "x", "type": "i32" }, { - "name": "vehicleId", + "name": "y", + "type": "i32" + }, + { + "name": "z", "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "objectData", + "type": "varint" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -3789,20 +4168,59 @@ "type": "varint" }, { - "name": "equipments", + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "angle", + "type": "f32" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", "type": [ - "topBitSetTerminatedArray", + "array", { + "countType": "varint", "type": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "categoryId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" } ] ] @@ -3811,95 +4229,120 @@ } ] ], - "packet_experience": [ + "packet_stop_sound": [ + "container", + [ + { + "name": "flags", + "type": "i8" + }, + { + "name": "source", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "1": "varint", + "3": "varint" + } + } + ] + }, + { + "name": "sound", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "2": "string", + "3": "string" + } + } + ] + } + ] + ], + "packet_system_chat": [ "container", [ { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" + "name": "content", + "type": "string" }, { - "name": "totalExperience", + "name": "type", "type": "varint" } ] ], - "packet_update_health": [ + "packet_tab_complete": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", + "name": "transactionId", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_scoreboard_objective": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "action", - "type": "i8" + "name": "start", + "type": "varint" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "length", + "type": "varint" }, { - "name": "type", + "name": "matches", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], - "packet_set_passengers": [ + "packet_tags": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", + "name": "tags", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] } @@ -3922,11 +4365,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3936,11 +4379,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3950,11 +4393,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3964,11 +4407,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3978,11 +4421,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3992,11 +4435,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -4006,11 +4449,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -4019,591 +4462,357 @@ "type": [ "switch", { - "compareTo": "mode", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" - } - ] - } - ] - ], - "packet_spawn_position": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "angle", - "type": "f32" - } - ] - ], - "packet_update_time": [ - "container", - [ - { - "name": "age", - "type": "i64" - }, - { - "name": "time", - "type": "i64" - } - ] - ], - "packet_entity_sound_effect": [ - "container", - [ - { - "name": "soundId", - "type": "varint" - }, - { - "name": "soundCategory", - "type": "varint" - }, - { - "name": "entityId", - "type": "varint" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "seed", - "type": "i64" - } - ] - ], - "packet_stop_sound": [ - "container", - [ - { - "name": "flags", - "type": "i8" - }, - { - "name": "source", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "sound", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "compareTo": "mode", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "3": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_sound_effect": [ + "packet_tile_entity_data": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "location", + "type": "position" }, { - "name": "soundCategory", + "name": "action", "type": "varint" }, { - "name": "x", - "type": "i32" - }, + "name": "nbtData", + "type": "optionalNbt" + } + ] + ], + "packet_trade_list": [ + "container", + [ { - "name": "y", - "type": "i32" + "name": "windowId", + "type": "varint" }, { - "name": "z", - "type": "i32" + "name": "trades", + "type": [ + "array", + { + "countType": "u8", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": "slot" + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] + } + ] }, { - "name": "volume", - "type": "f32" + "name": "villagerLevel", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "experience", + "type": "varint" }, { - "name": "seed", - "type": "i64" - } - ] - ], - "packet_system_chat": [ - "container", - [ - { - "name": "content", - "type": "string" + "name": "isRegularVillager", + "type": "bool" }, { - "name": "type", - "type": "varint" + "name": "canRestock", + "type": "bool" } ] ], - "packet_playerlist_header": [ + "packet_unload_chunk": [ "container", [ { - "name": "header", - "type": "string" + "name": "chunkX", + "type": "i32" }, { - "name": "footer", - "type": "string" + "name": "chunkZ", + "type": "i32" } ] ], - "packet_collect": [ + "packet_unlock_recipes": [ "container", [ { - "name": "collectedEntityId", + "name": "action", "type": "varint" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "craftingBookOpen", + "type": "bool" }, { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "filteringCraftable", + "type": "bool" }, { - "name": "x", - "type": "f64" + "name": "smeltingBookOpen", + "type": "bool" }, { - "name": "y", - "type": "f64" + "name": "filteringSmeltable", + "type": "bool" }, { - "name": "z", - "type": "f64" + "name": "blastFurnaceOpen", + "type": "bool" }, { - "name": "yaw", - "type": "i8" + "name": "filteringBlastFurnace", + "type": "bool" }, { - "name": "pitch", - "type": "i8" + "name": "smokerBookOpen", + "type": "bool" }, { - "name": "onGround", + "name": "filteringSmoker", "type": "bool" - } - ] - ], - "packet_entity_update_attributes": [ - "container", - [ - { - "name": "entityId", - "type": "varint" }, { - "name": "properties", + "name": "recipes1", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ + "type": "string" + } + ] + }, + { + "name": "recipes2", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "array", { - "name": "name", + "countType": "varint", "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] } ] - ] + } } ] } ] ], - "packet_entity_effect": [ + "packet_update_health": [ "container", [ { - "name": "entityId", + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" }, { - "name": "effectId", + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_light": [ + "container", + [ + { + "name": "chunkX", "type": "varint" }, { - "name": "amplifier", - "type": "i8" - }, - { - "name": "duration", + "name": "chunkZ", "type": "varint" }, { - "name": "hideParticles", - "type": "i8" + "name": "trustEdges", + "type": "bool" }, { - "name": "factorCodec", + "name": "skyLightMask", "type": [ - "option", - "nbt" + "array", + { + "countType": "varint", + "type": "i64" + } ] - } - ] - ], - "packet_select_advancement_tab": [ - "container", - [ + }, { - "name": "id", + "name": "blockLightMask", "type": [ - "option", - "string" + "array", + { + "countType": "varint", + "type": "i64" + } ] - } - ] - ], - "packet_server_data": [ - "container", - [ + }, { - "name": "motd", + "name": "emptySkyLightMask", "type": [ - "option", - "string" + "array", + { + "countType": "varint", + "type": "i64" + } ] }, { - "name": "icon", + "name": "emptyBlockLightMask", "type": [ - "option", - "string" + "array", + { + "countType": "varint", + "type": "i64" + } ] }, { - "name": "previewsChat", - "type": "bool" - } - ] - ], - "packet_declare_recipes": [ - "container", - [ - { - "name": "recipes", + "name": "skyLight", "type": [ "array", { "countType": "varint", "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing": [ - "container", - [ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] - } - ] + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] - } - ] - ], - "packet_tags": [ - "container", - [ + }, { - "name": "tags", + "name": "blockLight", "type": [ "array", { "countType": "varint", "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] } ] ], - "packet_acknowledge_player_digging": [ + "packet_update_time": [ "container", [ { - "name": "sequenceId", + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_update_view_distance": [ + "container", + [ + { + "name": "viewDistance", "type": "varint" } ] ], - "packet_clear_titles": [ + "packet_update_view_position": [ "container", [ { - "name": "reset", - "type": "bool" + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" } ] ], - "packet_initialize_world_border": [ + "packet_vehicle_move": [ "container", [ { @@ -4611,41 +4820,47 @@ "type": "f64" }, { - "name": "z", + "name": "y", "type": "f64" }, { - "name": "oldDiameter", + "name": "z", "type": "f64" }, { - "name": "newDiameter", - "type": "f64" + "name": "yaw", + "type": "f32" }, { - "name": "speed", - "type": "varint" - }, + "name": "pitch", + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ { - "name": "portalTeleportBoundary", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "warningBlocks", + "name": "stateId", "type": "varint" }, { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_action_bar": [ - "container", - [ + "name": "items", + "type": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ] + }, { - "name": "text", - "type": "string" + "name": "carriedItem", + "type": "slot" } ] ], @@ -4706,319 +4921,307 @@ } ] ], - "packet_ping": [ + "packet_world_event": [ "container", [ { - "name": "id", + "name": "effectId", "type": "i32" - } - ] - ], - "packet_set_title_subtitle": [ - "container", - [ + }, { - "name": "text", - "type": "string" + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" } ] ], - "packet_set_title_text": [ + "packet_world_particles": [ "container", [ { - "name": "text", - "type": "string" + "name": "particleId", + "type": "varint" + }, + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] } ] - ], - "packet_set_title_time": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "fadeIn", - "type": "i32" - }, - { - "name": "stay", - "type": "i32" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat_command", + "0x04": "chat_message", + "0x05": "chat_preview", + "0x06": "client_command", + "0x07": "settings", + "0x08": "tab_complete", + "0x09": "enchant_item", + "0x0a": "window_click", + "0x0b": "close_window", + "0x0c": "custom_payload", + "0x0d": "edit_book", + "0x0e": "query_entity_nbt", + "0x0f": "use_entity", + "0x10": "generate_structure", + "0x11": "keep_alive", + "0x12": "lock_difficulty", + "0x13": "position", + "0x14": "position_look", + "0x15": "look", + "0x16": "flying", + "0x17": "vehicle_move", + "0x18": "steer_boat", + "0x19": "pick_item", + "0x1a": "craft_recipe_request", + "0x1b": "abilities", + "0x1c": "block_dig", + "0x1d": "entity_action", + "0x1e": "steer_vehicle", + "0x1f": "pong", + "0x20": "recipe_book", + "0x21": "displayed_recipe", + "0x22": "name_item", + "0x23": "resource_pack_receive", + "0x24": "advancement_tab", + "0x25": "select_trade", + "0x26": "set_beacon_effect", + "0x27": "held_item_slot", + "0x28": "update_command_block", + "0x29": "update_command_block_minecart", + "0x2a": "set_creative_slot", + "0x2b": "update_jigsaw_block", + "0x2c": "update_structure_block", + "0x2d": "update_sign", + "0x2e": "arm_animation", + "0x2f": "spectate", + "0x30": "block_place", + "0x31": "use_item" + }, + "type": "varint" + } + ] }, { - "name": "fadeOut", - "type": "i32" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat_command": "packet_chat_command", + "chat_message": "packet_chat_message", + "chat_preview": "packet_chat_preview", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_payload": "packet_custom_payload", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" + } + } + ] } ] ], - "packet_simulation_distance": [ + "packet_abilities": [ "container", [ { - "name": "distance", - "type": "varint" + "name": "flags", + "type": "i8" } ] ], - "packet": [ + "packet_advancement_tab": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "named_entity_spawn", - "0x03": "animation", - "0x04": "statistics", - "0x05": "acknowledge_player_digging", - "0x06": "block_break_animation", - "0x07": "tile_entity_data", - "0x08": "block_action", - "0x09": "block_change", - "0x0a": "boss_bar", - "0x0b": "difficulty", - "0x0c": "chat_preview", - "0x0d": "clear_titles", - "0x0e": "tab_complete", - "0x0f": "declare_commands", - "0x10": "close_window", - "0x11": "window_items", - "0x12": "craft_progress_bar", - "0x13": "set_slot", - "0x14": "set_cooldown", - "0x15": "custom_payload", - "0x16": "named_sound_effect", - "0x17": "kick_disconnect", - "0x18": "entity_status", - "0x19": "explosion", - "0x1a": "unload_chunk", - "0x1b": "game_state_change", - "0x1c": "open_horse_window", - "0x1d": "initialize_world_border", - "0x1e": "keep_alive", - "0x1f": "map_chunk", - "0x20": "world_event", - "0x21": "world_particles", - "0x22": "update_light", - "0x23": "login", - "0x24": "map", - "0x25": "trade_list", - "0x26": "rel_entity_move", - "0x27": "entity_move_look", - "0x28": "entity_look", - "0x29": "vehicle_move", - "0x2a": "open_book", - "0x2b": "open_window", - "0x2c": "open_sign_entity", - "0x2d": "ping", - "0x2e": "craft_recipe_response", - "0x2f": "abilities", - "0x30": "player_chat", - "0x31": "end_combat_event", - "0x32": "enter_combat_event", - "0x33": "death_combat_event", - "0x34": "player_info", - "0x35": "face_player", - "0x36": "position", - "0x37": "unlock_recipes", - "0x38": "entity_destroy", - "0x39": "remove_entity_effect", - "0x3a": "resource_pack_send", - "0x3b": "respawn", - "0x3c": "entity_head_rotation", - "0x3d": "multi_block_change", - "0x3e": "select_advancement_tab", - "0x3f": "server_data", - "0x40": "action_bar", - "0x41": "world_border_center", - "0x42": "world_border_lerp_size", - "0x43": "world_border_size", - "0x44": "world_border_warning_delay", - "0x45": "world_border_warning_reach", - "0x46": "camera", - "0x47": "held_item_slot", - "0x48": "update_view_position", - "0x49": "update_view_distance", - "0x4a": "spawn_position", - "0x4b": "should_display_chat_preview", - "0x4c": "scoreboard_display_objective", - "0x4d": "entity_metadata", - "0x4e": "attach_entity", - "0x4f": "entity_velocity", - "0x50": "entity_equipment", - "0x51": "experience", - "0x52": "update_health", - "0x53": "scoreboard_objective", - "0x54": "set_passengers", - "0x55": "teams", - "0x56": "scoreboard_score", - "0x57": "simulation_distance", - "0x58": "set_title_subtitle", - "0x59": "update_time", - "0x5a": "set_title_text", - "0x5b": "set_title_time", - "0x5c": "entity_sound_effect", - "0x5d": "sound_effect", - "0x5e": "stop_sound", - "0x5f": "system_chat", - "0x60": "playerlist_header", - "0x61": "nbt_query_response", - "0x62": "collect", - "0x63": "entity_teleport", - "0x64": "advancements", - "0x65": "entity_update_attributes", - "0x66": "entity_effect", - "0x67": "declare_recipes", - "0x68": "tags" - } - } - ] + "name": "action", + "type": "varint" }, { - "name": "params", + "name": "tabId", "type": [ "switch", { - "compareTo": "name", + "compareTo": "action", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "chat_preview": "packet_chat_preview", - "clear_titles": "packet_clear_titles", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "close_window": "packet_close_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "initialize_world_border": "packet_initialize_world_border", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_window": "packet_open_window", - "open_sign_entity": "packet_open_sign_entity", - "ping": "packet_ping", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "player_chat": "packet_player_chat", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_info": "packet_player_info", - "face_player": "packet_face_player", - "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_head_rotation": "packet_entity_head_rotation", - "multi_block_change": "packet_multi_block_change", - "select_advancement_tab": "packet_select_advancement_tab", - "server_data": "packet_server_data", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "spawn_position": "packet_spawn_position", - "should_display_chat_preview": "packet_should_display_chat_preview", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "set_title_subtitle": "packet_set_title_subtitle", - "update_time": "packet_update_time", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time", - "entity_sound_effect": "packet_entity_sound_effect", - "sound_effect": "packet_sound_effect", - "stop_sound": "packet_stop_sound", - "system_chat": "packet_system_chat", - "playerlist_header": "packet_playerlist_header", - "nbt_query_response": "packet_nbt_query_response", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "advancements": "packet_advancements", - "entity_update_attributes": "packet_entity_update_attributes", - "entity_effect": "packet_entity_effect", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags" + "0": "string", + "1": "void" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_arm_animation": [ + "container", + [ + { + "name": "hand", + "type": "varint" + } + ] + ], + "packet_block_dig": [ "container", [ { - "name": "teleportId", + "name": "status", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" + }, + { + "name": "sequence", "type": "varint" } ] ], - "packet_query_block_nbt": [ + "packet_block_place": [ "container", [ { - "name": "transactionId", + "name": "hand", "type": "varint" }, { "name": "location", "type": "position" + }, + { + "name": "direction", + "type": "varint" + }, + { + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" + }, + { + "name": "sequence", + "type": "varint" } ] ], @@ -5113,220 +5316,6 @@ } ] ], - "packet_set_difficulty": [ - "container", - [ - { - "name": "newDifficulty", - "type": "u8" - } - ] - ], - "packet_edit_book": [ - "container", - [ - { - "name": "hand", - "type": "varint" - }, - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "title", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_query_entity_nbt": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_pick_item": [ - "container", - [ - { - "name": "slot", - "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] - ], - "packet_select_trade": [ - "container", - [ - { - "name": "slot", - "type": "varint" - } - ] - ], - "packet_set_beacon_effect": [ - "container", - [ - { - "name": "primary_effect", - "type": [ - "option", - "varint" - ] - }, - { - "name": "secondary_effect", - "type": [ - "option", - "varint" - ] - } - ] - ], - "packet_update_command_block": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", - "type": "u8" - } - ] - ], - "packet_update_command_block_minecart": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "track_output", - "type": "bool" - } - ] - ], - "packet_update_structure_block": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", - "type": "varint" - }, - { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", - "type": "f32" - }, - { - "name": "seed", - "type": "varint" - }, - { - "name": "flags", - "type": "u8" - } - ] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "text", - "type": "string" - } - ] - ], "packet_client_command": [ "container", [ @@ -5336,195 +5325,115 @@ } ] ], - "packet_settings": [ + "packet_close_window": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", + "name": "windowId", "type": "u8" - }, + } + ] + ], + "packet_craft_recipe_request": [ + "container", + [ { - "name": "mainHand", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "enableTextFiltering", - "type": "bool" + "name": "recipe", + "type": "string" }, { - "name": "enableServerListing", + "name": "makeAll", "type": "bool" } ] ], - "packet_enchant_item": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "channel", + "type": "string" }, { - "name": "enchantment", - "type": "i8" + "name": "data", + "type": "restBuffer" } ] ], - "packet_window_click": [ + "packet_displayed_recipe": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, + "name": "recipeId", + "type": "string" + } + ] + ], + "packet_edit_book": [ + "container", + [ { - "name": "mode", + "name": "hand", "type": "varint" }, { - "name": "changedSlots", + "name": "pages", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ] + "type": "string" } ] }, { - "name": "cursorItem", - "type": "slot" + "name": "title", + "type": [ + "option", + "string" + ] } ] ], - "packet_close_window": [ + "packet_enchant_item": [ "container", [ { "name": "windowId", - "type": "u8" - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" + "type": "i8" }, { - "name": "data", - "type": "restBuffer" + "name": "enchantment", + "type": "i8" } ] ], - "packet_use_entity": [ + "packet_entity_action": [ "container", [ { - "name": "target", + "name": "entityId", "type": "varint" }, { - "name": "mouse", + "name": "actionId", "type": "varint" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { - "name": "sneaking", + "name": "onGround", "type": "bool" } ] @@ -5546,6 +5455,15 @@ } ] ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slotId", + "type": "i16" + } + ] + ], "packet_keep_alive": [ "container", [ @@ -5564,6 +5482,50 @@ } ] ], + "packet_look": [ + "container", + [ + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_name_item": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] + ], + "packet_pong": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], "packet_position": [ "container", [ @@ -5609,136 +5571,169 @@ "type": "f32" }, { - "name": "onGround", - "type": "bool" + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_query_block_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + } + ] + ], + "packet_query_entity_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" } ] ], - "packet_look": [ + "packet_recipe_book": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "bookId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "bookOpen", + "type": "bool" }, { - "name": "onGround", + "name": "filterActive", "type": "bool" } ] ], - "packet_flying": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_select_trade": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "slot", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "primary_effect", + "type": [ + "option", + "varint" + ] }, { - "name": "rightPaddle", - "type": "bool" + "name": "secondary_effect", + "type": [ + "option", + "varint" + ] } ] ], - "packet_craft_recipe_request": [ + "packet_set_creative_slot": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" + "name": "slot", + "type": "i16" }, { - "name": "makeAll", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_abilities": [ + "packet_set_difficulty": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_block_dig": [ + "packet_settings": [ "container", [ { - "name": "status", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "chatColors", + "type": "bool" }, { - "name": "face", - "type": "i8" + "name": "skinParts", + "type": "u8" }, { - "name": "sequence", + "name": "mainHand", "type": "varint" + }, + { + "name": "enableTextFiltering", + "type": "bool" + }, + { + "name": "enableServerListing", + "type": "bool" } ] ], - "packet_entity_action": [ + "packet_spectate": [ "container", [ { - "name": "entityId", - "type": "varint" - }, + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5759,60 +5754,63 @@ } ] ], - "packet_displayed_recipe": [ - "container", - [ - { - "name": "recipeId", - "type": "string" - } - ] - ], - "packet_recipe_book": [ + "packet_tab_complete": [ "container", [ { - "name": "bookId", + "name": "transactionId", "type": "varint" }, { - "name": "bookOpen", - "type": "bool" - }, - { - "name": "filterActive", - "type": "bool" + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "location", + "type": "position" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block_minecart": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5870,58 +5868,142 @@ } ] ], - "packet_arm_animation": [ + "packet_update_structure_block": [ "container", [ { - "name": "hand", + "name": "location", + "type": "position" + }, + { + "name": "action", "type": "varint" - } - ] - ], - "packet_spectate": [ - "container", - [ + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "metadata", + "type": "string" + }, + { + "name": "integrity", + "type": "f32" + }, + { + "name": "seed", + "type": "varint" + }, { - "name": "target", - "type": "UUID" + "name": "flags", + "type": "u8" } ] ], - "packet_block_place": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "cursorX", - "type": "f32" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "insideBlock", - "type": "bool" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "sequence", - "type": "varint" + "name": "sneaking", + "type": "bool" } ] ], @@ -5938,161 +6020,79 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] - } - ] - ], - "packet_pong": [ - "container", - [ + "name": "y", + "type": "f64" + }, { - "name": "id", - "type": "i32" + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat_command", - "0x04": "chat_message", - "0x05": "chat_preview", - "0x06": "client_command", - "0x07": "settings", - "0x08": "tab_complete", - "0x09": "enchant_item", - "0x0a": "window_click", - "0x0b": "close_window", - "0x0c": "custom_payload", - "0x0d": "edit_book", - "0x0e": "query_entity_nbt", - "0x0f": "use_entity", - "0x10": "generate_structure", - "0x11": "keep_alive", - "0x12": "lock_difficulty", - "0x13": "position", - "0x14": "position_look", - "0x15": "look", - "0x16": "flying", - "0x17": "vehicle_move", - "0x18": "steer_boat", - "0x19": "pick_item", - "0x1a": "craft_recipe_request", - "0x1b": "abilities", - "0x1c": "block_dig", - "0x1d": "entity_action", - "0x1e": "steer_vehicle", - "0x1f": "pong", - "0x20": "recipe_book", - "0x21": "displayed_recipe", - "0x22": "name_item", - "0x23": "resource_pack_receive", - "0x24": "advancement_tab", - "0x25": "select_trade", - "0x26": "set_beacon_effect", - "0x27": "held_item_slot", - "0x28": "update_command_block", - "0x29": "update_command_block_minecart", - "0x2a": "set_creative_slot", - "0x2b": "update_jigsaw_block", - "0x2c": "update_structure_block", - "0x2d": "update_sign", - "0x2e": "arm_animation", - "0x2f": "spectate", - "0x30": "block_place", - "0x31": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", + "name": "stateId", + "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "chat_command": "packet_chat_command", - "chat_message": "packet_chat_message", - "chat_preview": "packet_chat_preview", - "client_command": "packet_client_command", - "settings": "packet_settings", - "tab_complete": "packet_tab_complete", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "pick_item": "packet_pick_item", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "pong": "packet_pong", - "recipe_book": "packet_recipe_book", - "displayed_recipe": "packet_displayed_recipe", - "name_item": "packet_name_item", - "resource_pack_receive": "packet_resource_pack_receive", - "advancement_tab": "packet_advancement_tab", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "held_item_slot": "packet_held_item_slot", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_structure_block": "packet_update_structure_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "slot" + } + ] + ] } ] + }, + { + "name": "cursorItem", + "type": "slot" } ] ] diff --git a/data/pc/1.20.2/protocol.json b/data/pc/1.20.2/protocol.json index 3ffee3eb9..ca5144e62 100644 --- a/data/pc/1.20.2/protocol.json +++ b/data/pc/1.20.2/protocol.json @@ -1,120 +1,11 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "anonymousNbt": "native", - "anonOptionalNbt": "native", - "registryEntryHolder": "native", - "registryEntryHolderSet": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3f": [ - "container", - [ - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - } - ] - ], - "vec4f": [ - "container", - [ - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "w", - "type": "f32" - } - ] - ], - "vec3f64": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - } - ] - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], "ItemSoundEvent": [ "container", [ @@ -141,722 +32,170 @@ } } ], - "slot": [ - "container", + "UUID": "native", + "anonOptionalNbt": "native", + "anonymousNbt": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "chat_session": [ + "option", [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "publicKey", + "type": [ + "container", + [ + { + "name": "expireTime", + "type": "i64" + }, + { + "name": "keyBytes", + "type": [ + "buffer", { - "name": "itemCount", - "type": "i8" - }, + "countType": "varint" + } + ] + }, + { + "name": "keySignature", + "type": [ + "buffer", { - "name": "nbtData", - "type": "anonOptionalNbt" + "countType": "varint" } ] - ] - } - } - ] - } + } + ] + ] + } + ] ] ], - "particle": [ + "chunkBlockEntity": [ "container", [ { - "name": "particleId", + "anon": true, + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 + } + ] + ] + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "type", "type": "varint" }, { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "nbtData", + "type": "anonOptionalNbt" } ] ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "2": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "3": [ - "container", + "command_node": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", [ { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", - [ + "name": "unused", + "signed": false, + "size": 3 + }, { - "name": "red", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "green", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_command", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "15": [ - "container", - [ - { - "name": "fromRed", - "type": "f32" - }, - { - "name": "fromGreen", - "type": "f32" - }, - { - "name": "fromBlue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - }, - { - "name": "toRed", - "type": "f32" - }, - { - "name": "toGreen", - "type": "f32" - }, - { - "name": "toBlue", - "type": "f32" - } - ] - ], - "25": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "31": [ - "container", - [ - { - "name": "rotation", - "type": "f32" - } - ] - ], - "40": [ - "container", - [ - { - "name": "item", - "type": "slot" - } - ] - ], - "41": [ - "container", - [ - { - "name": "positionType", - "type": "string" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:entity": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entityEyeHeight", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:entity": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "destination", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:block": "position", - "minecraft:entity": "varint" - } - } - ] - }, - { - "name": "ticks", - "type": "varint" - } - ] - ], - "93": [ - "container", - [ - { - "name": "delayInTicksBeforeShown", - "type": "varint" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "soundSource": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "master", - "1": "music", - "2": "record", - "3": "weather", - "4": "block", - "5": "hostile", - "6": "neutral", - "7": "player", - "8": "ambient", - "9": "voice" - } - } - ], - "packedChunkPos": [ - "container", - [ - { - "name": "z", - "type": "i32" - }, { - "name": "x", - "type": "i32" - } - ] - ], - "previousMessages": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ + "name": "children", + "type": [ + "array", { - "name": "id", + "countType": "varint", "type": "varint" - }, - { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] } ] - ] - } - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "byte": "i8", - "int": "varint", - "long": "varlong", - "float": "f32", - "string": "string", - "component": "string", - "optional_component": [ - "option", - "string" - ], - "item_stack": "slot", - "boolean": "bool", - "rotations": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" + }, + { + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" } - ] - ], - "block_pos": "position", - "optional_block_pos": [ - "option", - "position" - ], - "direction": "varint", - "optional_uuid": [ - "option", - "UUID" - ], - "block_state": "varint", - "optional_block_state": "optvarint", - "compound_tag": "anonymousNbt", - "particle": "particle", - "villager_data": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "optional_unsigned_int": "optvarint", - "pose": "varint", - "cat_variant": "varint", - "frog_variant": "varint", - "optional_global_pos": [ - "option", - "string" - ], - "painting_variant": "varint", - "sniffer_state": "varint", - "vector3": "vec3f", - "quaternion": "vec4f" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "byte", - "1": "int", - "2": "long", - "3": "float", - "4": "string", - "5": "component", - "6": "optional_component", - "7": "item_stack", - "8": "boolean", - "9": "rotations", - "10": "block_pos", - "11": "optional_block_pos", - "12": "direction", - "13": "optional_uuid", - "14": "block_state", - "15": "optional_block_state", - "16": "compound_tag", - "17": "particle", - "18": "villager_data", - "19": "optional_unsigned_int", - "20": "pose", - "21": "cat_variant", - "22": "frog_variant", - "23": "optional_global_pos", - "24": "painting_variant", - "25": "sniffer_state", - "26": "vector3", - "27": "quaternion" - } - } - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] } ] - ] - } - ], - "minecraft_simple_recipe_format": [ - "container", - [ - { - "name": "category", - "type": "varint" - } - ] - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" }, { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "chunkBlockEntity": [ - "container", - [ - { - "anon": true, + "name": "extraNodeData", "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "nbtData", - "type": "anonOptionalNbt" - } - ] - ], - "chat_session": [ - "option", - [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "publicKey", - "type": [ - "container", - [ - { - "name": "expireTime", - "type": "i64" - }, - { - "name": "keyBytes", - "type": [ - "buffer", + "switch", + { + "compareTo": "flags/command_node_type", + "fields": { + "0": "void", + "1": [ + "container", + [ { - "countType": "varint" + "name": "name", + "type": "string" } ] - }, - { - "name": "keySignature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] - } - ] - ] - ], - "game_profile": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "extraNodeData", - "type": [ - "switch", - { - "compareTo": "flags/command_node_type", - "fields": { - "0": "void", - "1": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] - ], - "2": [ - "container", - [ + ], + "2": [ + "container", + [ { "name": "name", "type": "string" @@ -866,7 +205,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "brigadier:bool", "1": "brigadier:float", @@ -917,7 +255,8 @@ "46": "minecraft:template_rotation", "47": "minecraft:heightmap", "48": "minecraft:uuid" - } + }, + "type": "varint" } ] }, @@ -929,7 +268,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -939,18 +278,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -961,10 +300,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -974,16 +313,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -993,18 +332,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1015,10 +354,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -1028,10 +367,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -1047,18 +386,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1069,10 +408,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -1082,10 +421,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -1101,18 +440,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1123,10 +462,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -1136,10 +475,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -1148,45 +487,52 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:gamemode": "void", + "minecraft:heightmap": "void", + "minecraft:int_range": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", "minecraft:nbt": "void", "minecraft:nbt_path": "void", @@ -1194,43 +540,25 @@ "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", + "minecraft:resource": [ + "container", [ { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false + "name": "registry", + "type": "string" } ] ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:dimension": "void", - "minecraft:gamemode": "void", - "minecraft:time": [ + "minecraft:resource_key": [ "container", [ { - "name": "min", - "type": "i32" + "name": "registry", + "type": "string" } ] ], + "minecraft:resource_location": "void", "minecraft:resource_or_tag": [ "container", [ @@ -1249,28 +577,39 @@ } ] ], - "minecraft:resource": [ - "container", + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", [ { - "name": "registry", - "type": "string" + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 } ] ], - "minecraft:resource_key": [ + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:template_mirror": "void", + "minecraft:template_rotation": "void", + "minecraft:time": [ "container", [ { - "name": "registry", - "type": "string" + "name": "min", + "type": "i32" } ] ], - "minecraft:template_mirror": "void", - "minecraft:template_rotation": "void", - "minecraft:heightmap": "void", - "minecraft:uuid": "void" + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -1281,10 +620,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -1295,7 +634,668 @@ ] } ] - ] + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "compound_tag", + "17": "particle", + "18": "villager_data", + "19": "optional_unsigned_int", + "20": "pose", + "21": "cat_variant", + "22": "frog_variant", + "23": "optional_global_pos", + "24": "painting_variant", + "25": "sniffer_state", + "26": "vector3", + "27": "quaternion" + }, + "type": "varint" + } + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "block_pos": "position", + "block_state": "varint", + "boolean": "bool", + "byte": "i8", + "cat_variant": "varint", + "component": "string", + "compound_tag": "anonymousNbt", + "direction": "varint", + "float": "f32", + "frog_variant": "varint", + "int": "varint", + "item_stack": "slot", + "long": "varlong", + "optional_block_pos": [ + "option", + "position" + ], + "optional_block_state": "optvarint", + "optional_component": [ + "option", + "string" + ], + "optional_global_pos": [ + "option", + "string" + ], + "optional_unsigned_int": "optvarint", + "optional_uuid": [ + "option", + "UUID" + ], + "painting_variant": "varint", + "particle": "particle", + "pose": "varint", + "quaternion": "vec4f", + "rotations": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "sniffer_state": "varint", + "string": "string", + "vector3": "vec3f", + "villager_data": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "game_profile": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + } + ] + ], + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_simple_recipe_format": [ + "container", + [ + { + "name": "category", + "type": "varint" + } + ] + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "option": "native", + "optvarint": "varint", + "packedChunkPos": [ + "container", + [ + { + "name": "z", + "type": "i32" + }, + { + "name": "x", + "type": "i32" + } + ] + ], + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "2": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "15": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "25": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "31": [ + "container", + [ + { + "name": "rotation", + "type": "f32" + } + ] + ], + "40": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ], + "41": [ + "container", + [ + { + "name": "positionType", + "type": "string" + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "positionType", + "default": "void", + "fields": { + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "entityEyeHeight", + "type": [ + "switch", + { + "compareTo": "positionType", + "default": "void", + "fields": { + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "destination", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "minecraft:block": "position", + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] + ], + "93": [ + "container", + [ + { + "name": "delayInTicksBeforeShown", + "type": "varint" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "previousMessages": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "signature", + "type": [ + "switch", + { + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] + } + } + ] + } + ] + ] + } + ], + "pstring": "native", + "registryEntryHolder": "native", + "registryEntryHolderSet": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "soundSource": [ + "mapper", + { + "mappings": { + "0": "master", + "1": "music", + "2": "record", + "3": "weather", + "4": "block", + "5": "hostile", + "6": "neutral", + "7": "player", + "8": "ambient", + "9": "voice" + }, + "type": "varint" + } + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + } + ] + ], + "vec3f64": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "vec4f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "w", + "type": "f32" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -1308,8 +1308,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -1329,6 +1329,46 @@ }, "toServer": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", + [ + { + "name": "payload", + "type": "u8" + } + ] + ], "packet_set_protocol": [ "container", [ @@ -1349,16 +1389,13 @@ "type": "varint" } ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1367,11 +1404,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -1382,38 +1419,36 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_ping": [ + "packet_server_info": [ "container", [ { - "name": "time", - "type": "i64" + "name": "response", + "type": "string" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1422,11 +1457,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "server_info", + "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -1437,21 +1472,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -1462,6 +1489,16 @@ } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1470,11 +1507,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" + }, + "type": "varint" } ] }, @@ -1485,20 +1525,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -1535,6 +1581,23 @@ } ] ], + "packet_login_plugin_request": [ + "container", + [ + { + "name": "messageId", + "type": "varint" + }, + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], "packet_success": [ "container", [ @@ -1576,33 +1639,11 @@ ] } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], - "packet_login_plugin_request": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1611,14 +1652,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", + "0x00": "login_start", "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" - } + "0x02": "login_plugin_response", + "0x03": "login_acknowledged" + }, + "type": "varint" } ] }, @@ -1629,33 +1669,15 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_acknowledged": "packet_login_acknowledged", + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - }, - { - "name": "playerUUID", - "type": "UUID" - } - ] ], "packet_encryption_begin": [ "container", @@ -1680,6 +1702,10 @@ } ] ], + "packet_login_acknowledged": [ + "container", + [] + ], "packet_login_plugin_response": [ "container", [ @@ -1696,10 +1722,25 @@ } ] ], - "packet_login_acknowledged": [ + "packet_login_start": [ "container", - [] - ], + [ + { + "name": "username", + "type": "string" + }, + { + "name": "playerUUID", + "type": "UUID" + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1708,13 +1749,18 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response", - "0x03": "login_acknowledged" - } + "0x00": "custom_payload", + "0x01": "disconnect", + "0x02": "finish_configuration", + "0x03": "keep_alive", + "0x04": "ping", + "0x05": "registry_data", + "0x06": "resource_pack_send", + "0x07": "feature_flags", + "0x08": "tags" + }, + "type": "varint" } ] }, @@ -1725,22 +1771,21 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response", - "login_acknowledged": "packet_login_acknowledged" + "custom_payload": "packet_custom_payload", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "resource_pack_send": "packet_resource_pack_send", + "tags": "packet_tags" } } ] } ] - ] - } - } - }, - "configuration": { - "toClient": { - "types": { + ], "packet_custom_payload": [ "container", [ @@ -1763,6 +1808,21 @@ } ] ], + "packet_feature_flags": [ + "container", + [ + { + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], "packet_finish_configuration": [ "container", [] @@ -1818,21 +1878,6 @@ } ] ], - "packet_feature_flags": [ - "container", - [ - { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], "packet_tags": [ "container", [ @@ -1859,7 +1904,11 @@ ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1868,18 +1917,15 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "custom_payload", - "0x01": "disconnect", + "0x00": "settings", + "0x01": "custom_payload", "0x02": "finish_configuration", "0x03": "keep_alive", - "0x04": "ping", - "0x05": "registry_data", - "0x06": "resource_pack_send", - "0x07": "feature_flags", - "0x08": "tags" - } + "0x04": "pong", + "0x05": "resource_pack_receive" + }, + "type": "varint" } ] }, @@ -1891,60 +1937,16 @@ "compareTo": "name", "fields": { "custom_payload": "packet_custom_payload", - "disconnect": "packet_disconnect", "finish_configuration": "packet_finish_configuration", "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "registry_data": "packet_registry_data", - "resource_pack_send": "packet_resource_pack_send", - "feature_flags": "packet_feature_flags", - "tags": "packet_tags" + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "settings": "packet_settings" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_settings": [ - "container", - [ - { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" - }, - { - "name": "enableTextFiltering", - "type": "bool" - }, - { - "name": "enableServerListing", - "type": "bool" - } - ] ], "packet_custom_payload": [ "container", @@ -1990,6 +1992,49 @@ } ] ], + "packet_settings": [ + "container", + [ + { + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", + "type": "varint" + }, + { + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" + }, + { + "name": "enableTextFiltering", + "type": "bool" + }, + { + "name": "enableServerListing", + "type": "bool" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1998,15 +2043,122 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "settings", - "0x01": "custom_payload", - "0x02": "finish_configuration", - "0x03": "keep_alive", - "0x04": "pong", - "0x05": "resource_pack_receive" - } + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "spawn_entity_experience_orb", + "0x03": "animation", + "0x04": "statistics", + "0x05": "acknowledge_player_digging", + "0x06": "block_break_animation", + "0x07": "tile_entity_data", + "0x08": "block_action", + "0x09": "block_change", + "0x0a": "boss_bar", + "0x0b": "difficulty", + "0x0c": "chunk_batch_finished", + "0x0d": "chunk_batch_start", + "0x0e": "chunk_biomes", + "0x0f": "clear_titles", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "close_window", + "0x13": "window_items", + "0x14": "craft_progress_bar", + "0x15": "set_slot", + "0x16": "set_cooldown", + "0x17": "chat_suggestions", + "0x18": "custom_payload", + "0x19": "damage_event", + "0x1a": "hide_message", + "0x1b": "kick_disconnect", + "0x1c": "profileless_chat", + "0x1d": "entity_status", + "0x1e": "explosion", + "0x1f": "unload_chunk", + "0x20": "game_state_change", + "0x21": "open_horse_window", + "0x22": "hurt_animation", + "0x23": "initialize_world_border", + "0x24": "keep_alive", + "0x25": "map_chunk", + "0x26": "world_event", + "0x27": "world_particles", + "0x28": "update_light", + "0x29": "login", + "0x2a": "map", + "0x2b": "trade_list", + "0x2c": "rel_entity_move", + "0x2d": "entity_move_look", + "0x2e": "entity_look", + "0x2f": "vehicle_move", + "0x30": "open_book", + "0x31": "open_window", + "0x32": "open_sign_entity", + "0x33": "ping", + "0x34": "ping_response", + "0x35": "craft_recipe_response", + "0x36": "abilities", + "0x37": "player_chat", + "0x38": "end_combat_event", + "0x39": "enter_combat_event", + "0x3a": "death_combat_event", + "0x3b": "player_remove", + "0x3c": "player_info", + "0x3d": "face_player", + "0x3e": "position", + "0x3f": "unlock_recipes", + "0x40": "entity_destroy", + "0x41": "remove_entity_effect", + "0x42": "resource_pack_send", + "0x43": "respawn", + "0x44": "entity_head_rotation", + "0x45": "multi_block_change", + "0x46": "select_advancement_tab", + "0x47": "server_data", + "0x48": "action_bar", + "0x49": "world_border_center", + "0x4a": "world_border_lerp_size", + "0x4b": "world_border_size", + "0x4c": "world_border_warning_delay", + "0x4d": "world_border_warning_reach", + "0x4e": "camera", + "0x4f": "held_item_slot", + "0x50": "update_view_position", + "0x51": "update_view_distance", + "0x52": "spawn_position", + "0x53": "scoreboard_display_objective", + "0x54": "entity_metadata", + "0x55": "attach_entity", + "0x56": "entity_velocity", + "0x57": "entity_equipment", + "0x58": "experience", + "0x59": "update_health", + "0x5a": "scoreboard_objective", + "0x5b": "set_passengers", + "0x5c": "teams", + "0x5d": "scoreboard_score", + "0x5e": "simulation_distance", + "0x5f": "set_title_subtitle", + "0x60": "update_time", + "0x61": "set_title_text", + "0x62": "set_title_time", + "0x63": "entity_sound_effect", + "0x64": "sound_effect", + "0x65": "start_configuration", + "0x66": "stop_sound", + "0x67": "system_chat", + "0x68": "playerlist_header", + "0x69": "nbt_query_response", + "0x6a": "collect", + "0x6b": "entity_teleport", + "0x6c": "advancements", + "0x6d": "entity_update_attributes", + "0x6e": "entity_effect", + "0x6f": "declare_recipes", + "0x70": "tags" + }, + "type": "varint" } ] }, @@ -2017,139 +2169,157 @@ { "compareTo": "name", "fields": { - "settings": "packet_settings", + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "bundle_delimiter": "void", + "camera": "packet_camera", + "chat_suggestions": "packet_chat_suggestions", + "chunk_batch_finished": "packet_chunk_batch_finished", + "chunk_batch_start": "packet_chunk_batch_start", + "chunk_biomes": "packet_chunk_biomes", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", + "damage_event": "packet_damage_event", + "death_combat_event": "packet_death_combat_event", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "hide_message": "packet_hide_message", + "hurt_animation": "packet_hurt_animation", + "initialize_world_border": "packet_initialize_world_border", "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive" + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "ping_response": "packet_ping_response", + "player_chat": "packet_player_chat", + "player_info": "packet_player_info", + "player_remove": "packet_player_remove", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "profileless_chat": "packet_profileless_chat", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "server_data": "packet_server_data", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_position": "packet_spawn_position", + "start_configuration": "packet_start_configuration", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "system_chat": "packet_system_chat", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "trade_list": "packet_trade_list", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "objectData", - "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] ], - "packet_spawn_entity_experience_orb": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "flags", + "type": "i8" }, { - "name": "z", - "type": "f64" + "name": "flyingSpeed", + "type": "f32" }, - { - "name": "count", - "type": "i16" + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_animation": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "entityId", + "name": "sequenceId", "type": "varint" - }, - { - "name": "animation", - "type": "u8" } ] ], - "packet_statistics": [ + "packet_action_bar": [ "container", [ { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "text", + "type": "string" } ] ], @@ -2215,23 +2385,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -2242,10 +2412,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -2344,7 +2514,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -2352,29 +2522,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "anonOptionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -2399,6 +2561,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -2429,11 +2608,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -2443,11 +2622,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -2457,11 +2636,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -2471,11 +2650,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -2485,26 +2664,41 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat_suggestions": [ + "container", + [ + { + "name": "action", + "type": "varint" }, { - "name": "difficultyLocked", - "type": "bool" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], @@ -2521,23 +2715,181 @@ "container", [] ], - "packet_tab_complete": [ + "packet_chunk_biomes": [ + "container", + [ + { + "name": "biomes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "position", + "type": "packedChunkPos" + }, + { + "name": "data", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ] + } + ] + } + ] + ], + "packet_clear_titles": [ + "container", + [ + { + "name": "reset", + "type": "bool" + } + ] + ], + "packet_close_window": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", + "type": "varint" + }, + { + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_craft_recipe_response": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "recipe", + "type": "string" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_damage_event": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "sourceTypeId", + "type": "varint" + }, + { + "name": "sourceCauseId", + "type": "varint" + }, + { + "name": "sourceDirectId", + "type": "varint" + }, + { + "name": "sourcePosition", + "type": [ + "option", + "vec3f64" + ] + } + ] + ], + "packet_death_combat_event": [ "container", [ { - "name": "transactionId", + "name": "playerId", "type": "varint" }, { - "name": "start", - "type": "varint" + "name": "message", + "type": "string" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "length", + "name": "rootIndex", "type": "varint" - }, + } + ] + ], + "packet_declare_recipes": [ + "container", + [ { - "name": "matches", + "name": "recipes", "type": [ "array", { @@ -2546,14 +2898,168 @@ "container", [ { - "name": "match", + "name": "type", "type": "string" }, { - "name": "tooltip", + "name": "recipeId", + "type": "string" + }, + { + "name": "data", "type": [ - "option", - "string" + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "showNotification", + "type": "bool" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "minecraft_simple_recipe_format", + "minecraft:crafting_special_banneraddpattern": "minecraft_simple_recipe_format", + "minecraft:crafting_special_bannerduplicate": "minecraft_simple_recipe_format", + "minecraft:crafting_special_bookcloning": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_rocket": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_star": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_star_fade": "minecraft_simple_recipe_format", + "minecraft:crafting_special_mapcloning": "minecraft_simple_recipe_format", + "minecraft:crafting_special_mapextending": "minecraft_simple_recipe_format", + "minecraft:crafting_special_repairitem": "minecraft_simple_recipe_format", + "minecraft:crafting_special_shielddecoration": "minecraft_simple_recipe_format", + "minecraft:crafting_special_shulkerboxcoloring": "minecraft_simple_recipe_format", + "minecraft:crafting_special_suspiciousstew": "minecraft_simple_recipe_format", + "minecraft:crafting_special_tippedarrow": "minecraft_simple_recipe_format", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing_transform": [ + "container", + [ + { + "name": "template", + "type": "ingredient" + }, + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smithing_trim": [ + "container", + [ + { + "name": "template", + "type": "ingredient" + }, + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } ] } ] @@ -2563,333 +3069,376 @@ } ] ], - "packet_declare_commands": [ + "packet_difficulty": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] + "name": "difficulty", + "type": "u8" }, { - "name": "rootIndex", - "type": "varint" + "name": "difficultyLocked", + "type": "bool" } ] ], - "packet_face_player": [ + "packet_end_combat_event": [ "container", [ { - "name": "feet_eyes", + "name": "duration", "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, + } + ] + ], + "packet_enter_combat_event": [ + "container", + [] + ], + "packet_entity_destroy": [ + "container", + [ { - "name": "entity_feet_eyes", + "name": "entityIds", "type": [ - "switch", + "array", { - "compareTo": "isEntity", - "fields": { - "true": "string" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_nbt_query_response": [ + "packet_entity_effect": [ "container", [ { - "name": "transactionId", + "name": "entityId", "type": "varint" }, { - "name": "nbt", - "type": "anonOptionalNbt" + "name": "effectId", + "type": "varint" + }, + { + "name": "amplifier", + "type": "i8" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "i8" + }, + { + "name": "factorCodec", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "packet_multi_block_change": [ + "packet_entity_equipment": [ "container", [ { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] + "name": "entityId", + "type": "varint" }, { - "name": "records", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] } ] } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", + "name": "entityId", "type": "varint" }, { - "name": "inventoryType", - "type": "varint" + "name": "yaw", + "type": "i8" }, { - "name": "windowTitle", - "type": "string" + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "stateId", + "name": "entityId", "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ] - }, - { - "name": "carriedItem", - "type": "slot" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ + }, { - "name": "windowId", - "type": "i8" + "name": "dZ", + "type": "i16" }, { - "name": "stateId", - "type": "varint" + "name": "yaw", + "type": "i8" }, { - "name": "slot", - "type": "i16" + "name": "pitch", + "type": "i8" }, { - "name": "item", - "type": "slot" + "name": "onGround", + "type": "bool" } ] ], - "packet_set_cooldown": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "itemID", + "name": "soundId", "type": "varint" }, { - "name": "cooldownTicks", + "name": "soundEvent", + "type": [ + "switch", + { + "compareTo": "soundId", + "default": "void", + "fields": { + "0": [ + "container", + [ + { + "name": "resource", + "type": "string" + }, + { + "name": "range", + "type": [ + "option", + "f32" + ] + } + ] + ] + } + } + ] + }, + { + "name": "soundCategory", + "type": "soundSource" + }, + { + "name": "entityId", "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], - "packet_chat_suggestions": [ + "packet_entity_status": [ "container", [ { - "name": "action", - "type": "varint" + "name": "entityId", + "type": "i32" }, { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "entityStatus", + "type": "i8" } ] ], - "packet_custom_payload": [ + "packet_entity_teleport": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_hide_message": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "id", + "name": "entityId", "type": "varint" }, { - "name": "signature", + "name": "properties", "type": [ - "switch", + "array", { - "compareTo": "id", - "fields": { - "0": [ - "buffer", + "countType": "varint", + "type": [ + "container", + [ { - "count": 256 + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] } ] - }, - "default": "void" + ] } ] } ] ], - "packet_kick_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_profileless_chat": [ + "packet_entity_velocity": [ "container", [ { - "name": "message", - "type": "string" - }, - { - "name": "type", + "name": "entityId", "type": "varint" }, { - "name": "name", - "type": "string" - }, - { - "name": "target", - "type": [ - "option", - "string" - ] + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_status": [ + "packet_experience": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "experienceBar", + "type": "f32" }, { - "name": "entityStatus", - "type": "i8" + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -2952,323 +3501,171 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkZ", - "type": "i32" - }, - { - "name": "chunkX", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ - "container", - [ - { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", - "type": "f32" - } - ] - ], - "packet_open_horse_window": [ + "packet_face_player": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "nbSlots", + "name": "feet_eyes", "type": "varint" }, - { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_map_chunk": [ - "container", - [ { "name": "x", - "type": "i32" + "type": "f64" }, { - "name": "z", - "type": "i32" + "name": "y", + "type": "f64" }, { - "name": "heightmaps", - "type": "anonymousNbt" + "name": "z", + "type": "f64" }, { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "isEntity", + "type": "bool" }, { - "name": "blockEntities", + "name": "entityId", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "chunkBlockEntity" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } } ] }, { - "name": "skyLightMask", + "name": "entity_feet_eyes", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] - }, + } + ] + ], + "packet_game_state_change": [ + "container", + [ { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "reason", + "type": "u8" }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_hide_message": [ + "container", + [ { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "id", + "type": "varint" }, { - "name": "blockLight", + "name": "signature", "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] + "switch", + { + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] + } } ] } ] ], - "packet_world_event": [ + "packet_hurt_animation": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "global", - "type": "bool" + "name": "yaw", + "type": "f32" } ] ], - "packet_world_particles": [ + "packet_initialize_world_border": [ "container", [ - { - "name": "particleId", - "type": "varint" - }, - { - "name": "longDistance", - "type": "bool" - }, { "name": "x", "type": "f64" }, - { - "name": "y", - "type": "f64" - }, { "name": "z", "type": "f64" }, { - "name": "offsetX", - "type": "f32" + "name": "oldDiameter", + "type": "f64" }, { - "name": "offsetY", - "type": "f32" + "name": "newDiameter", + "type": "f64" }, { - "name": "offsetZ", - "type": "f32" + "name": "speed", + "type": "varint" }, { - "name": "particleData", - "type": "f32" + "name": "portalTeleportBoundary", + "type": "varint" }, { - "name": "particles", - "type": "i32" + "name": "warningBlocks", + "type": "varint" }, { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "warningTime", + "type": "varint" } ] ], - "packet_update_light": [ + "packet_keep_alive": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - }, - { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "reason", + "type": "string" } ] ], @@ -3435,10 +3832,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -3448,10 +3845,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -3461,10 +3858,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -3474,209 +3871,202 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_trade_list": [ + "packet_map_chunk": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "trades", + "name": "z", + "type": "i32" + }, + { + "name": "heightmaps", + "type": "anonymousNbt" + }, + { + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": "slot" - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ] - ] + "type": "chunkBlockEntity" + } + ] + }, + { + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" } ] }, { - "name": "villagerLevel", - "type": "varint" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "experience", - "type": "varint" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "isRegularVillager", - "type": "bool" + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] }, { - "name": "canRestock", - "type": "bool" + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], - "packet_rel_entity_move": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] + ] }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_nbt_query_response": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "name": "nbt", + "type": "anonOptionalNbt" } ] ], - "packet_entity_look": [ + "packet_open_book": [ "container", [ { - "name": "entityId", + "name": "hand", "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_open_horse_window": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "windowId", + "type": "u8" }, { - "name": "yaw", - "type": "f32" + "name": "nbSlots", + "type": "varint" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_open_book": [ - "container", - [ - { - "name": "hand", - "type": "varint" + "name": "entityId", + "type": "i32" } ] ], @@ -3693,33 +4083,38 @@ } ] ], - "packet_craft_recipe_response": [ + "packet_open_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "varint" }, { - "name": "recipe", + "name": "inventoryType", + "type": "varint" + }, + { + "name": "windowTitle", "type": "string" } ] ], - "packet_abilities": [ + "packet_ping": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_ping_response": [ + "container", + [ { - "name": "walkingSpeed", - "type": "f32" + "name": "id", + "type": "i64" } ] ], @@ -3779,6 +4174,7 @@ "switch", { "compareTo": "filterType", + "default": "void", "fields": { "2": [ "array", @@ -3787,8 +4183,7 @@ "type": "i64" } ] - }, - "default": "void" + } } ] }, @@ -3799,53 +4194,12 @@ { "name": "networkName", "type": "string" - }, - { - "name": "networkTargetName", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_end_combat_event": [ - "container", - [ - { - "name": "duration", - "type": "varint" - } - ] - ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ - "container", - [ - { - "name": "playerId", - "type": "varint" - }, - { - "name": "message", - "type": "string" - } - ] - ], - "packet_player_remove": [ - "container", - [ - { - "name": "players", - "type": [ - "array", - { - "countType": "varint", - "type": "UUID" - } + }, + { + "name": "networkTargetName", + "type": [ + "option", + "string" ] } ] @@ -3858,7 +4212,6 @@ "type": [ "bitflags", { - "type": "u8", "flags": [ "add_player", "initialize_chat", @@ -3866,7 +4219,8 @@ "update_listed", "update_latency", "update_display_name" - ] + ], + "type": "u8" } ] }, @@ -3889,10 +4243,10 @@ "switch", { "compareTo": "../action/add_player", + "default": "void", "fields": { "true": "game_profile" - }, - "default": "void" + } } ] }, @@ -3902,10 +4256,10 @@ "switch", { "compareTo": "../action/initialize_chat", + "default": "void", "fields": { "true": "chat_session" - }, - "default": "void" + } } ] }, @@ -3915,10 +4269,10 @@ "switch", { "compareTo": "../action/update_game_mode", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -3928,10 +4282,10 @@ "switch", { "compareTo": "../action/update_listed", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -3941,10 +4295,10 @@ "switch", { "compareTo": "../action/update_latency", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -3954,13 +4308,13 @@ "switch", { "compareTo": "../action/update_display_name", + "default": "void", "fields": { "true": [ "option", "string" ] - }, - "default": "void" + } } ] } @@ -3971,6 +4325,34 @@ } ] ], + "packet_player_remove": [ + "container", + [ + { + "name": "players", + "type": [ + "array", + { + "countType": "varint", + "type": "UUID" + } + ] + } + ] + ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -4004,88 +4386,52 @@ } ] ], - "packet_unlock_recipes": [ + "packet_profileless_chat": [ "container", [ { - "name": "action", - "type": "varint" + "name": "message", + "type": "string" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "type", + "type": "varint" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "name", + "type": "string" }, { - "name": "smeltingBookOpen", - "type": "bool" - }, + "name": "target", + "type": [ + "option", + "string" + ] + } + ] + ], + "packet_rel_entity_move": [ + "container", + [ { - "name": "filteringSmeltable", - "type": "bool" + "name": "entityId", + "type": "varint" }, { - "name": "blastFurnaceOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringBlastFurnace", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smokerBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmoker", + "name": "onGround", "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -4177,121 +4523,320 @@ ] }, { - "name": "portalCooldown", - "type": "varint" - }, - { - "name": "copyMetadata", + "name": "portalCooldown", + "type": "varint" + }, + { + "name": "copyMetadata", + "type": "bool" + } + ] + ], + "packet_scoreboard_display_objective": [ + "container", + [ + { + "name": "position", + "type": "varint" + }, + { + "name": "name", + "type": "string" + } + ] + ], + "packet_scoreboard_objective": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "action", + "type": "i8" + }, + { + "name": "displayText", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "type", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "scoreName", + "type": "string" + }, + { + "name": "value", + "type": [ + "switch", + { + "compareTo": "action", + "default": "varint", + "fields": { + "1": "void" + } + } + ] + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ + { + "name": "id", + "type": [ + "option", + "string" + ] + } + ] + ], + "packet_server_data": [ + "container", + [ + { + "name": "motd", + "type": "string" + }, + { + "name": "iconBytes", + "type": [ + "option", + [ + "buffer", + { + "countType": "varint" + } + ] + ] + }, + { + "name": "enforcesSecureChat", "type": "bool" } ] ], - "packet_entity_head_rotation": [ + "packet_set_cooldown": [ "container", [ { - "name": "entityId", + "name": "itemID", "type": "varint" }, { - "name": "headYaw", - "type": "i8" + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_camera": [ + "packet_set_passengers": [ "container", [ { - "name": "cameraId", + "name": "entityId", "type": "varint" + }, + { + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_held_item_slot": [ + "packet_set_slot": [ "container", [ { - "name": "slot", + "name": "windowId", "type": "i8" + }, + { + "name": "stateId", + "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_update_view_position": [ + "packet_set_title_subtitle": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" + "name": "text", + "type": "string" } ] ], - "packet_update_view_distance": [ + "packet_set_title_text": [ "container", [ { - "name": "viewDistance", - "type": "varint" + "name": "text", + "type": "string" } ] ], - "packet_scoreboard_display_objective": [ + "packet_set_title_time": [ "container", [ { - "name": "position", - "type": "varint" + "name": "fadeIn", + "type": "i32" }, { - "name": "name", - "type": "string" + "name": "stay", + "type": "i32" + }, + { + "name": "fadeOut", + "type": "i32" } ] ], - "packet_entity_metadata": [ + "packet_simulation_distance": [ "container", [ { - "name": "entityId", + "name": "distance", "type": "varint" - }, - { - "name": "metadata", - "type": "entityMetadata" } ] ], - "packet_attach_entity": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "soundCategory", + "type": "soundSource" + }, + { + "name": "x", "type": "i32" }, { - "name": "vehicleId", + "name": "y", + "type": "i32" + }, + { + "name": "z", "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "objectData", + "type": "varint" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -4299,20 +4844,63 @@ "type": "varint" }, { - "name": "equipments", + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "angle", + "type": "f32" + } + ] + ], + "packet_start_configuration": [ + "container", + [] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", "type": [ - "topBitSetTerminatedArray", + "array", { + "countType": "varint", "type": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "categoryId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" } ] ] @@ -4321,95 +4909,120 @@ } ] ], - "packet_experience": [ + "packet_stop_sound": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "flags", + "type": "i8" }, { - "name": "level", - "type": "varint" + "name": "source", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "1": "varint", + "3": "varint" + } + } + ] }, { - "name": "totalExperience", - "type": "varint" + "name": "sound", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "2": "string", + "3": "string" + } + } + ] } ] ], - "packet_update_health": [ + "packet_system_chat": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" + "name": "content", + "type": "string" }, { - "name": "foodSaturation", - "type": "f32" + "name": "isActionBar", + "type": "bool" } ] ], - "packet_scoreboard_objective": [ + "packet_tab_complete": [ "container", [ { - "name": "name", - "type": "string" + "name": "transactionId", + "type": "varint" }, { - "name": "action", - "type": "i8" + "name": "start", + "type": "varint" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "length", + "type": "varint" }, { - "name": "type", + "name": "matches", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], - "packet_set_passengers": [ + "packet_tags": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", + "name": "tags", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] } @@ -4432,11 +5045,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -4446,11 +5059,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -4460,11 +5073,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -4474,11 +5087,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -4488,696 +5101,394 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "prefix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - }, - { - "name": "suffix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - }, - { - "name": "players", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" - } - ] - } - ] - ], - "packet_spawn_position": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "angle", - "type": "f32" - } - ] - ], - "packet_update_time": [ - "container", - [ - { - "name": "age", - "type": "i64" - }, - { - "name": "time", - "type": "i64" - } - ] - ], - "packet_entity_sound_effect": [ - "container", - [ - { - "name": "soundId", - "type": "varint" - }, - { - "name": "soundEvent", - "type": [ - "switch", - { - "compareTo": "soundId", - "fields": { - "0": [ - "container", - [ - { - "name": "resource", - "type": "string" - }, - { - "name": "range", - "type": [ - "option", - "f32" - ] - } - ] - ] - }, - "default": "void" + } } ] }, { - "name": "soundCategory", - "type": "soundSource" - }, - { - "name": "entityId", - "type": "varint" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "seed", - "type": "i64" - } - ] - ], - "packet_stop_sound": [ - "container", - [ - { - "name": "flags", - "type": "i8" + "name": "prefix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] }, { - "name": "source", + "name": "suffix", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "mode", + "default": "void", "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "sound", + "name": "players", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "mode", + "default": "void", "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "3": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_sound_effect": [ + "packet_tile_entity_data": [ "container", [ { - "name": "sound", - "type": "ItemSoundHolder" + "name": "location", + "type": "position" }, { - "name": "soundCategory", - "type": "soundSource" + "name": "action", + "type": "varint" }, { - "name": "x", - "type": "i32" - }, + "name": "nbtData", + "type": "anonOptionalNbt" + } + ] + ], + "packet_trade_list": [ + "container", + [ { - "name": "y", - "type": "i32" + "name": "windowId", + "type": "varint" }, { - "name": "z", - "type": "i32" + "name": "trades", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": "slot" + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] + } + ] }, { - "name": "volume", - "type": "f32" + "name": "villagerLevel", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "experience", + "type": "varint" }, { - "name": "seed", - "type": "i64" - } - ] - ], - "packet_system_chat": [ - "container", - [ - { - "name": "content", - "type": "string" + "name": "isRegularVillager", + "type": "bool" }, { - "name": "isActionBar", + "name": "canRestock", "type": "bool" } ] ], - "packet_playerlist_header": [ + "packet_unload_chunk": [ "container", [ { - "name": "header", - "type": "string" + "name": "chunkZ", + "type": "i32" }, { - "name": "footer", - "type": "string" + "name": "chunkX", + "type": "i32" } ] ], - "packet_collect": [ + "packet_unlock_recipes": [ "container", [ { - "name": "collectedEntityId", + "name": "action", "type": "varint" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "craftingBookOpen", + "type": "bool" }, { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "filteringCraftable", + "type": "bool" }, { - "name": "x", - "type": "f64" + "name": "smeltingBookOpen", + "type": "bool" }, { - "name": "y", - "type": "f64" + "name": "filteringSmeltable", + "type": "bool" }, { - "name": "z", - "type": "f64" + "name": "blastFurnaceOpen", + "type": "bool" }, { - "name": "yaw", - "type": "i8" + "name": "filteringBlastFurnace", + "type": "bool" }, { - "name": "pitch", - "type": "i8" + "name": "smokerBookOpen", + "type": "bool" }, { - "name": "onGround", + "name": "filteringSmoker", "type": "bool" - } - ] - ], - "packet_entity_update_attributes": [ - "container", - [ - { - "name": "entityId", - "type": "varint" }, { - "name": "properties", + "name": "recipes1", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] + "type": "string" + } + ] + }, + { + "name": "recipes2", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" } ] - ] + } } ] } ] ], - "packet_entity_effect": [ + "packet_update_health": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "effectId", - "type": "varint" - }, - { - "name": "amplifier", - "type": "i8" + "name": "health", + "type": "f32" }, { - "name": "duration", + "name": "food", "type": "varint" }, { - "name": "hideParticles", - "type": "i8" - }, - { - "name": "factorCodec", - "type": [ - "option", - "anonymousNbt" - ] + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_select_advancement_tab": [ + "packet_update_light": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_server_data": [ - "container", - [ + "name": "chunkX", + "type": "varint" + }, { - "name": "motd", - "type": "string" + "name": "chunkZ", + "type": "varint" }, { - "name": "iconBytes", + "name": "skyLightMask", "type": [ - "option", - [ - "buffer", - { - "countType": "varint" - } - ] + "array", + { + "countType": "varint", + "type": "i64" + } ] }, { - "name": "enforcesSecureChat", - "type": "bool" - } - ] - ], - "packet_declare_recipes": [ - "container", - [ - { - "name": "recipes", + "name": "blockLightMask", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "showNotification", - "type": "bool" - } - ] - ], - "minecraft:crafting_special_armordye": "minecraft_simple_recipe_format", - "minecraft:crafting_special_bookcloning": "minecraft_simple_recipe_format", - "minecraft:crafting_special_mapcloning": "minecraft_simple_recipe_format", - "minecraft:crafting_special_mapextending": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_rocket": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_star": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_star_fade": "minecraft_simple_recipe_format", - "minecraft:crafting_special_repairitem": "minecraft_simple_recipe_format", - "minecraft:crafting_special_tippedarrow": "minecraft_simple_recipe_format", - "minecraft:crafting_special_bannerduplicate": "minecraft_simple_recipe_format", - "minecraft:crafting_special_banneraddpattern": "minecraft_simple_recipe_format", - "minecraft:crafting_special_shielddecoration": "minecraft_simple_recipe_format", - "minecraft:crafting_special_shulkerboxcoloring": "minecraft_simple_recipe_format", - "minecraft:crafting_special_suspiciousstew": "minecraft_simple_recipe_format", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing_transform": [ - "container", - [ - { - "name": "template", - "type": "ingredient" - }, - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing_trim": [ - "container", - [ - { - "name": "template", - "type": "ingredient" - }, - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - } - ] - ], - "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format" - } - } - ] - } - ] + "type": "i64" + } + ] + }, + { + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] - } - ] - ], - "packet_tags": [ - "container", - [ + }, { - "name": "tags", + "name": "blockLight", "type": [ "array", { "countType": "varint", "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] } ] ], - "packet_acknowledge_player_digging": [ + "packet_update_time": [ "container", [ { - "name": "sequenceId", + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_update_view_distance": [ + "container", + [ + { + "name": "viewDistance", "type": "varint" } ] ], - "packet_clear_titles": [ + "packet_update_view_position": [ "container", [ { - "name": "reset", - "type": "bool" + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" } ] ], - "packet_initialize_world_border": [ + "packet_vehicle_move": [ "container", [ { @@ -5185,41 +5496,47 @@ "type": "f64" }, { - "name": "z", + "name": "y", "type": "f64" }, { - "name": "oldDiameter", + "name": "z", "type": "f64" }, { - "name": "newDiameter", - "type": "f64" + "name": "yaw", + "type": "f32" }, { - "name": "speed", - "type": "varint" - }, + "name": "pitch", + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ { - "name": "portalTeleportBoundary", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "warningBlocks", + "name": "stateId", "type": "varint" }, { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_action_bar": [ - "container", - [ + "name": "items", + "type": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ] + }, { - "name": "text", - "type": "string" + "name": "carriedItem", + "type": "slot" } ] ], @@ -5249,176 +5566,116 @@ }, { "name": "speed", - "type": "varint" - } - ] - ], - "packet_world_border_size": [ - "container", - [ - { - "name": "diameter", - "type": "f64" - } - ] - ], - "packet_world_border_warning_delay": [ - "container", - [ - { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_world_border_warning_reach": [ - "container", - [ - { - "name": "warningBlocks", - "type": "varint" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_ping_response": [ - "container", - [ - { - "name": "id", - "type": "i64" - } - ] - ], - "packet_set_title_subtitle": [ - "container", - [ - { - "name": "text", - "type": "string" - } - ] - ], - "packet_set_title_text": [ - "container", - [ - { - "name": "text", - "type": "string" - } - ] - ], - "packet_set_title_time": [ - "container", - [ - { - "name": "fadeIn", - "type": "i32" - }, - { - "name": "stay", - "type": "i32" - }, - { - "name": "fadeOut", - "type": "i32" - } - ] - ], - "packet_simulation_distance": [ - "container", - [ - { - "name": "distance", - "type": "varint" - } - ] - ], - "packet_chunk_biomes": [ - "container", - [ - { - "name": "biomes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "position", - "type": "packedChunkPos" - }, - { - "name": "data", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] - } - ] + "type": "varint" } ] ], - "packet_damage_event": [ + "packet_world_border_size": [ "container", [ { - "name": "entityId", + "name": "diameter", + "type": "f64" + } + ] + ], + "packet_world_border_warning_delay": [ + "container", + [ + { + "name": "warningTime", "type": "varint" - }, + } + ] + ], + "packet_world_border_warning_reach": [ + "container", + [ { - "name": "sourceTypeId", + "name": "warningBlocks", "type": "varint" + } + ] + ], + "packet_world_event": [ + "container", + [ + { + "name": "effectId", + "type": "i32" }, { - "name": "sourceCauseId", - "type": "varint" + "name": "location", + "type": "position" }, { - "name": "sourceDirectId", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "sourcePosition", - "type": [ - "option", - "vec3f64" - ] + "name": "global", + "type": "bool" } ] ], - "packet_hurt_animation": [ + "packet_world_particles": [ "container", [ { - "name": "entityId", + "name": "particleId", "type": "varint" }, { - "name": "yaw", + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] } ] - ], - "packet_start_configuration": [ - "container", - [] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -5427,122 +5684,63 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "spawn_entity_experience_orb", - "0x03": "animation", - "0x04": "statistics", - "0x05": "acknowledge_player_digging", - "0x06": "block_break_animation", - "0x07": "tile_entity_data", - "0x08": "block_action", - "0x09": "block_change", - "0x0a": "boss_bar", - "0x0b": "difficulty", - "0x0c": "chunk_batch_finished", - "0x0d": "chunk_batch_start", - "0x0e": "chunk_biomes", - "0x0f": "clear_titles", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "close_window", - "0x13": "window_items", - "0x14": "craft_progress_bar", - "0x15": "set_slot", - "0x16": "set_cooldown", - "0x17": "chat_suggestions", - "0x18": "custom_payload", - "0x19": "damage_event", - "0x1a": "hide_message", - "0x1b": "kick_disconnect", - "0x1c": "profileless_chat", - "0x1d": "entity_status", - "0x1e": "explosion", - "0x1f": "unload_chunk", - "0x20": "game_state_change", - "0x21": "open_horse_window", - "0x22": "hurt_animation", - "0x23": "initialize_world_border", - "0x24": "keep_alive", - "0x25": "map_chunk", - "0x26": "world_event", - "0x27": "world_particles", - "0x28": "update_light", - "0x29": "login", - "0x2a": "map", - "0x2b": "trade_list", - "0x2c": "rel_entity_move", - "0x2d": "entity_move_look", - "0x2e": "entity_look", - "0x2f": "vehicle_move", - "0x30": "open_book", - "0x31": "open_window", - "0x32": "open_sign_entity", - "0x33": "ping", - "0x34": "ping_response", - "0x35": "craft_recipe_response", - "0x36": "abilities", - "0x37": "player_chat", - "0x38": "end_combat_event", - "0x39": "enter_combat_event", - "0x3a": "death_combat_event", - "0x3b": "player_remove", - "0x3c": "player_info", - "0x3d": "face_player", - "0x3e": "position", - "0x3f": "unlock_recipes", - "0x40": "entity_destroy", - "0x41": "remove_entity_effect", - "0x42": "resource_pack_send", - "0x43": "respawn", - "0x44": "entity_head_rotation", - "0x45": "multi_block_change", - "0x46": "select_advancement_tab", - "0x47": "server_data", - "0x48": "action_bar", - "0x49": "world_border_center", - "0x4a": "world_border_lerp_size", - "0x4b": "world_border_size", - "0x4c": "world_border_warning_delay", - "0x4d": "world_border_warning_reach", - "0x4e": "camera", - "0x4f": "held_item_slot", - "0x50": "update_view_position", - "0x51": "update_view_distance", - "0x52": "spawn_position", - "0x53": "scoreboard_display_objective", - "0x54": "entity_metadata", - "0x55": "attach_entity", - "0x56": "entity_velocity", - "0x57": "entity_equipment", - "0x58": "experience", - "0x59": "update_health", - "0x5a": "scoreboard_objective", - "0x5b": "set_passengers", - "0x5c": "teams", - "0x5d": "scoreboard_score", - "0x5e": "simulation_distance", - "0x5f": "set_title_subtitle", - "0x60": "update_time", - "0x61": "set_title_text", - "0x62": "set_title_time", - "0x63": "entity_sound_effect", - "0x64": "sound_effect", - "0x65": "start_configuration", - "0x66": "stop_sound", - "0x67": "system_chat", - "0x68": "playerlist_header", - "0x69": "nbt_query_response", - "0x6a": "collect", - "0x6b": "entity_teleport", - "0x6c": "advancements", - "0x6d": "entity_update_attributes", - "0x6e": "entity_effect", - "0x6f": "declare_recipes", - "0x70": "tags" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "message_acknowledgement", + "0x04": "chat_command", + "0x05": "chat_message", + "0x06": "chat_session_update", + "0x07": "chunk_batch_received", + "0x08": "client_command", + "0x09": "settings", + "0x0a": "tab_complete", + "0x0b": "configuration_acknowledged", + "0x0c": "enchant_item", + "0x0d": "window_click", + "0x0e": "close_window", + "0x0f": "custom_payload", + "0x10": "edit_book", + "0x11": "query_entity_nbt", + "0x12": "use_entity", + "0x13": "generate_structure", + "0x14": "keep_alive", + "0x15": "lock_difficulty", + "0x16": "position", + "0x17": "position_look", + "0x18": "look", + "0x19": "flying", + "0x1a": "vehicle_move", + "0x1b": "steer_boat", + "0x1c": "pick_item", + "0x1d": "ping_request", + "0x1e": "craft_recipe_request", + "0x1f": "abilities", + "0x20": "block_dig", + "0x21": "entity_action", + "0x22": "steer_vehicle", + "0x23": "pong", + "0x24": "recipe_book", + "0x25": "displayed_recipe", + "0x26": "name_item", + "0x27": "resource_pack_receive", + "0x28": "advancement_tab", + "0x29": "select_trade", + "0x2a": "set_beacon_effect", + "0x2b": "held_item_slot", + "0x2c": "update_command_block", + "0x2d": "update_command_block_minecart", + "0x2e": "set_creative_slot", + "0x2f": "update_jigsaw_block", + "0x30": "update_structure_block", + "0x31": "update_sign", + "0x32": "arm_animation", + "0x33": "spectate", + "0x34": "block_place", + "0x35": "use_item" + }, + "type": "varint" } ] }, @@ -5553,148 +5751,161 @@ { "compareTo": "name", "fields": { - "bundle_delimiter": "void", - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "animation": "packet_animation", - "statistics": "packet_statistics", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "chunk_batch_finished": "packet_chunk_batch_finished", - "chunk_batch_start": "packet_chunk_batch_start", - "chunk_biomes": "packet_chunk_biomes", - "clear_titles": "packet_clear_titles", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat_command": "packet_chat_command", + "chat_message": "packet_chat_message", + "chat_session_update": "packet_chat_session_update", + "chunk_batch_received": "packet_chunk_batch_received", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "chat_suggestions": "packet_chat_suggestions", + "configuration_acknowledged": "packet_configuration_acknowledged", + "craft_recipe_request": "packet_craft_recipe_request", "custom_payload": "packet_custom_payload", - "damage_event": "packet_damage_event", - "hide_message": "packet_hide_message", - "kick_disconnect": "packet_kick_disconnect", - "profileless_chat": "packet_profileless_chat", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "hurt_animation": "packet_hurt_animation", - "initialize_world_border": "packet_initialize_world_border", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_window": "packet_open_window", - "open_sign_entity": "packet_open_sign_entity", - "ping": "packet_ping", - "ping_response": "packet_ping_response", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "player_chat": "packet_player_chat", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_remove": "packet_player_remove", - "player_info": "packet_player_info", - "face_player": "packet_face_player", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "message_acknowledgement": "packet_message_acknowledgement", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "ping_request": "packet_ping_request", + "pong": "packet_pong", "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_head_rotation": "packet_entity_head_rotation", - "multi_block_change": "packet_multi_block_change", - "select_advancement_tab": "packet_select_advancement_tab", - "server_data": "packet_server_data", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "spawn_position": "packet_spawn_position", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "set_title_subtitle": "packet_set_title_subtitle", - "update_time": "packet_update_time", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time", - "entity_sound_effect": "packet_entity_sound_effect", - "sound_effect": "packet_sound_effect", - "start_configuration": "packet_start_configuration", - "stop_sound": "packet_stop_sound", - "system_chat": "packet_system_chat", - "playerlist_header": "packet_playerlist_header", - "nbt_query_response": "packet_nbt_query_response", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "advancements": "packet_advancements", - "entity_update_attributes": "packet_entity_update_attributes", - "entity_effect": "packet_entity_effect", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags" + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", + "name": "flags", + "type": "i8" + } + ] + ], + "packet_advancement_tab": [ + "container", + [ + { + "name": "action", "type": "varint" + }, + { + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_query_block_nbt": [ + "packet_arm_animation": [ + "container", + [ + { + "name": "hand", + "type": "varint" + } + ] + ], + "packet_block_dig": [ + "container", + [ + { + "name": "status", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" + }, + { + "name": "sequence", + "type": "varint" + } + ] + ], + "packet_block_place": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "hand", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "varint" + }, + { + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" }, { - "name": "location", - "type": "position" + "name": "insideBlock", + "type": "bool" + }, + { + "name": "sequence", + "type": "varint" } ] ], @@ -5797,427 +6008,168 @@ } ] ], - "packet_set_difficulty": [ - "container", - [ - { - "name": "newDifficulty", - "type": "u8" - } - ] - ], - "packet_message_acknowledgement": [ + "packet_chat_session_update": [ "container", [ { - "name": "count", - "type": "varint" - } - ] - ], - "packet_edit_book": [ - "container", - [ + "name": "sessionUUID", + "type": "UUID" + }, { - "name": "hand", - "type": "varint" + "name": "expireTime", + "type": "i64" }, { - "name": "pages", + "name": "publicKey", "type": [ - "array", + "buffer", { - "countType": "varint", - "type": "string" + "countType": "varint" } ] }, { - "name": "title", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_query_entity_nbt": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_pick_item": [ - "container", - [ - { - "name": "slot", - "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] - ], - "packet_select_trade": [ - "container", - [ - { - "name": "slot", - "type": "varint" - } - ] - ], - "packet_set_beacon_effect": [ - "container", - [ - { - "name": "primary_effect", - "type": [ - "option", - "varint" - ] - }, - { - "name": "secondary_effect", + "name": "signature", "type": [ - "option", - "varint" + "buffer", + { + "countType": "varint" + } ] } ] ], - "packet_update_command_block": [ + "packet_chunk_batch_received": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", - "type": "u8" + "name": "chunksPerTick", + "type": "f32" } ] ], - "packet_update_command_block_minecart": [ + "packet_client_command": [ "container", [ { - "name": "entityId", + "name": "actionId", "type": "varint" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "track_output", - "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", - "type": "varint" - }, - { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", - "type": "f32" - }, - { - "name": "seed", - "type": "varint" - }, - { - "name": "flags", + "name": "windowId", "type": "u8" } ] ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "text", - "type": "string" - } - ] - ], - "packet_client_command": [ + "packet_configuration_acknowledged": [ "container", - [ - { - "name": "actionId", - "type": "varint" - } - ] + [] ], - "packet_settings": [ + "packet_craft_recipe_request": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", + "name": "windowId", "type": "i8" }, { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" - }, - { - "name": "enableTextFiltering", - "type": "bool" + "name": "recipe", + "type": "string" }, { - "name": "enableServerListing", + "name": "makeAll", "type": "bool" } ] ], - "packet_enchant_item": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "channel", + "type": "string" }, { - "name": "enchantment", - "type": "i8" + "name": "data", + "type": "restBuffer" } ] ], - "packet_window_click": [ + "packet_displayed_recipe": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, + "name": "recipeId", + "type": "string" + } + ] + ], + "packet_edit_book": [ + "container", + [ { - "name": "mode", + "name": "hand", "type": "varint" }, { - "name": "changedSlots", + "name": "pages", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ] + "type": "string" } ] }, { - "name": "cursorItem", - "type": "slot" + "name": "title", + "type": [ + "option", + "string" + ] } ] ], - "packet_close_window": [ + "packet_enchant_item": [ "container", [ { "name": "windowId", - "type": "u8" - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" + "type": "i8" }, { - "name": "data", - "type": "restBuffer" + "name": "enchantment", + "type": "i8" } ] ], - "packet_use_entity": [ + "packet_entity_action": [ "container", [ { - "name": "target", + "name": "entityId", "type": "varint" }, { - "name": "mouse", + "name": "actionId", "type": "varint" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { - "name": "sneaking", + "name": "onGround", "type": "bool" } ] @@ -6239,6 +6191,15 @@ } ] ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slotId", + "type": "i16" + } + ] + ], "packet_keep_alive": [ "container", [ @@ -6257,6 +6218,68 @@ } ] ], + "packet_look": [ + "container", + [ + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_message_acknowledgement": [ + "container", + [ + { + "name": "count", + "type": "varint" + } + ] + ], + "packet_name_item": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] + ], + "packet_ping_request": [ + "container", + [ + { + "name": "id", + "type": "i64" + } + ] + ], + "packet_pong": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], "packet_position": [ "container", [ @@ -6307,131 +6330,164 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "location", + "type": "position" + } + ] + ], + "packet_query_entity_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_recipe_book": [ + "container", + [ + { + "name": "bookId", + "type": "varint" + }, + { + "name": "bookOpen", + "type": "bool" + }, + { + "name": "filterActive", "type": "bool" } ] ], - "packet_flying": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_select_trade": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "slot", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "primary_effect", + "type": [ + "option", + "varint" + ] }, { - "name": "rightPaddle", - "type": "bool" + "name": "secondary_effect", + "type": [ + "option", + "varint" + ] } ] ], - "packet_craft_recipe_request": [ + "packet_set_creative_slot": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" + "name": "slot", + "type": "i16" }, { - "name": "makeAll", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_abilities": [ + "packet_set_difficulty": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_block_dig": [ + "packet_settings": [ "container", [ { - "name": "status", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "chatColors", + "type": "bool" }, { - "name": "face", - "type": "i8" + "name": "skinParts", + "type": "u8" }, { - "name": "sequence", + "name": "mainHand", "type": "varint" + }, + { + "name": "enableTextFiltering", + "type": "bool" + }, + { + "name": "enableServerListing", + "type": "bool" } ] ], - "packet_entity_action": [ + "packet_spectate": [ "container", [ { - "name": "entityId", - "type": "varint" - }, + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -6452,60 +6508,63 @@ } ] ], - "packet_displayed_recipe": [ - "container", - [ - { - "name": "recipeId", - "type": "string" - } - ] - ], - "packet_recipe_book": [ + "packet_tab_complete": [ "container", [ { - "name": "bookId", + "name": "transactionId", "type": "varint" }, { - "name": "bookOpen", - "type": "bool" - }, - { - "name": "filterActive", - "type": "bool" + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "location", + "type": "position" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block_minecart": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -6567,290 +6626,231 @@ } ] ], - "packet_arm_animation": [ + "packet_update_structure_block": [ "container", [ { - "name": "hand", - "type": "varint" - } - ] - ], - "packet_spectate": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ + "name": "action", + "type": "varint" + }, { - "name": "hand", + "name": "mode", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "name", + "type": "string" }, { - "name": "direction", - "type": "varint" + "name": "offset_x", + "type": "i8" }, { - "name": "cursorX", - "type": "f32" + "name": "offset_y", + "type": "i8" }, { - "name": "cursorY", - "type": "f32" + "name": "offset_z", + "type": "i8" }, { - "name": "cursorZ", - "type": "f32" + "name": "size_x", + "type": "i8" }, { - "name": "insideBlock", - "type": "bool" + "name": "size_y", + "type": "i8" }, { - "name": "sequence", + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", "type": "varint" - } - ] - ], - "packet_use_item": [ - "container", - [ + }, { - "name": "hand", + "name": "rotation", "type": "varint" }, { - "name": "sequence", + "name": "metadata", + "type": "string" + }, + { + "name": "integrity", + "type": "f32" + }, + { + "name": "seed", "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_advancement_tab": [ + "packet_use_entity": [ "container", [ { - "name": "action", + "name": "target", + "type": "varint" + }, + { + "name": "mouse", "type": "varint" }, { - "name": "tabId", + "name": "x", "type": [ "switch", { - "compareTo": "action", + "compareTo": "mouse", + "default": "void", "fields": { - "0": "string", - "1": "void" + "2": "f32" } } ] - } - ] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_chat_session_update": [ - "container", - [ - { - "name": "sessionUUID", - "type": "UUID" }, { - "name": "expireTime", - "type": "i64" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "publicKey", + "name": "z", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } } ] }, { - "name": "signature", + "name": "hand", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } } ] + }, + { + "name": "sneaking", + "type": "bool" } ] ], - "packet_chunk_batch_received": [ + "packet_use_item": [ "container", [ { - "name": "chunksPerTick", - "type": "f32" + "name": "hand", + "type": "varint" + }, + { + "name": "sequence", + "type": "varint" } ] ], - "packet_configuration_acknowledged": [ - "container", - [] - ], - "packet_ping_request": [ + "packet_vehicle_move": [ "container", [ { - "name": "id", - "type": "i64" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "message_acknowledgement", - "0x04": "chat_command", - "0x05": "chat_message", - "0x06": "chat_session_update", - "0x07": "chunk_batch_received", - "0x08": "client_command", - "0x09": "settings", - "0x0a": "tab_complete", - "0x0b": "configuration_acknowledged", - "0x0c": "enchant_item", - "0x0d": "window_click", - "0x0e": "close_window", - "0x0f": "custom_payload", - "0x10": "edit_book", - "0x11": "query_entity_nbt", - "0x12": "use_entity", - "0x13": "generate_structure", - "0x14": "keep_alive", - "0x15": "lock_difficulty", - "0x16": "position", - "0x17": "position_look", - "0x18": "look", - "0x19": "flying", - "0x1a": "vehicle_move", - "0x1b": "steer_boat", - "0x1c": "pick_item", - "0x1d": "ping_request", - "0x1e": "craft_recipe_request", - "0x1f": "abilities", - "0x20": "block_dig", - "0x21": "entity_action", - "0x22": "steer_vehicle", - "0x23": "pong", - "0x24": "recipe_book", - "0x25": "displayed_recipe", - "0x26": "name_item", - "0x27": "resource_pack_receive", - "0x28": "advancement_tab", - "0x29": "select_trade", - "0x2a": "set_beacon_effect", - "0x2b": "held_item_slot", - "0x2c": "update_command_block", - "0x2d": "update_command_block_minecart", - "0x2e": "set_creative_slot", - "0x2f": "update_jigsaw_block", - "0x30": "update_structure_block", - "0x31": "update_sign", - "0x32": "arm_animation", - "0x33": "spectate", - "0x34": "block_place", - "0x35": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", + "name": "stateId", + "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "message_acknowledgement": "packet_message_acknowledgement", - "chat_command": "packet_chat_command", - "chat_message": "packet_chat_message", - "client_command": "packet_client_command", - "settings": "packet_settings", - "tab_complete": "packet_tab_complete", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "pick_item": "packet_pick_item", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "pong": "packet_pong", - "chat_session_update": "packet_chat_session_update", - "recipe_book": "packet_recipe_book", - "displayed_recipe": "packet_displayed_recipe", - "name_item": "packet_name_item", - "resource_pack_receive": "packet_resource_pack_receive", - "advancement_tab": "packet_advancement_tab", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "held_item_slot": "packet_held_item_slot", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_structure_block": "packet_update_structure_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "chunk_batch_received": "packet_chunk_batch_received", - "configuration_acknowledged": "packet_configuration_acknowledged", - "ping_request": "packet_ping_request" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "slot" + } + ] + ] } ] + }, + { + "name": "cursorItem", + "type": "slot" } ] ] diff --git a/data/pc/1.20.3/protocol.json b/data/pc/1.20.3/protocol.json index cb6240a81..2e1455550 100644 --- a/data/pc/1.20.3/protocol.json +++ b/data/pc/1.20.3/protocol.json @@ -1,120 +1,11 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "anonymousNbt": "native", - "anonOptionalNbt": "native", - "registryEntryHolder": "native", - "registryEntryHolderSet": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3f": [ - "container", - [ - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - } - ] - ], - "vec4f": [ - "container", - [ - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "w", - "type": "f32" - } - ] - ], - "vec3f64": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - } - ] - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], "ItemSoundEvent": [ "container", [ @@ -141,44 +32,6 @@ } } ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "anonOptionalNbt" - } - ] - ] - } - } - ] - } - ] - ], "Particle": [ "container", [ @@ -187,7 +40,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "angry_villager", "1": "block", @@ -298,672 +150,177 @@ "106": "ominous_spawning", "107": "raid_omen", "108": "trial_omen" - } + }, + "type": "varint" } ] } ] ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "2": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } + "UUID": "native", + "anonOptionalNbt": "native", + "anonymousNbt": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "chat_session": [ + "option", + [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "publicKey", + "type": [ + "container", + [ + { + "name": "expireTime", + "type": "i64" + }, + { + "name": "keyBytes", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "keySignature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] ] - ], - "3": [ - "container", + } + ] + ] + ], + "chunkBlockEntity": [ + "container", + [ + { + "anon": true, + "type": [ + "bitfield", [ { - "name": "blockState", - "type": "varint" + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 } ] - ], - "14": [ - "container", + ] + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" + } + ] + ], + "command_node": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" - }, - { - "name": "blue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - } - ] - ], - "15": [ - "container", - [ - { - "name": "fromRed", - "type": "f32" - }, - { - "name": "fromGreen", - "type": "f32" - }, - { - "name": "fromBlue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - }, - { - "name": "toRed", - "type": "f32" - }, - { - "name": "toGreen", - "type": "f32" - }, - { - "name": "toBlue", - "type": "f32" - } - ] - ], - "27": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "33": [ - "container", - [ - { - "name": "rotation", - "type": "f32" - } - ] - ], - "42": [ - "container", - [ - { - "name": "item", - "type": "slot" - } - ] - ], - "43": [ - "container", - [ - { - "name": "positionType", - "type": "string" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:entity": "varint" - }, - "default": "void" - } - ] + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "entityEyeHeight", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:entity": "varint" - }, - "default": "void" - } - ] + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "destination", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:block": "position", - "minecraft:entity": "varint" - } - } - ] + "name": "has_command", + "signed": false, + "size": 1 }, { - "name": "ticks", - "type": "varint" - } - ] - ], - "96": [ - "container", - [ - { - "name": "delayInTicksBeforeShown", - "type": "varint" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "soundSource": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "master", - "1": "music", - "2": "record", - "3": "weather", - "4": "block", - "5": "hostile", - "6": "neutral", - "7": "player", - "8": "ambient", - "9": "voice" - } - } - ], - "packedChunkPos": [ - "container", - [ - { - "name": "z", - "type": "i32" - }, { - "name": "x", - "type": "i32" - } - ] - ], - "previousMessages": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ + "name": "children", + "type": [ + "array", { - "name": "id", + "countType": "varint", "type": "varint" - }, - { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] } ] - ] - } - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "byte": "i8", - "int": "varint", - "long": "varlong", - "float": "f32", - "string": "string", - "component": "anonymousNbt", - "optional_component": [ - "option", - "anonymousNbt" - ], - "item_stack": "slot", - "boolean": "bool", - "rotations": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" + }, + { + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" } - ] - ], - "block_pos": "position", - "optional_block_pos": [ - "option", - "position" - ], - "direction": "varint", - "optional_uuid": [ - "option", - "UUID" - ], - "block_state": "varint", - "optional_block_state": "optvarint", - "compound_tag": "anonymousNbt", - "particle": "Particle", - "villager_data": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "optional_unsigned_int": "optvarint", - "pose": "varint", - "cat_variant": "varint", - "frog_variant": "varint", - "optional_global_pos": [ - "option", - "string" - ], - "painting_variant": "varint", - "sniffer_state": "varint", - "vector3": "vec3f", - "quaternion": "vec4f" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "byte", - "1": "int", - "2": "long", - "3": "float", - "4": "string", - "5": "component", - "6": "optional_component", - "7": "item_stack", - "8": "boolean", - "9": "rotations", - "10": "block_pos", - "11": "optional_block_pos", - "12": "direction", - "13": "optional_uuid", - "14": "block_state", - "15": "optional_block_state", - "16": "compound_tag", - "17": "particle", - "18": "villager_data", - "19": "optional_unsigned_int", - "20": "pose", - "21": "cat_variant", - "22": "frog_variant", - "23": "optional_global_pos", - "24": "painting_variant", - "25": "sniffer_state", - "26": "vector3", - "27": "quaternion" - } - } - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] } ] - ] - } - ], - "minecraft_simple_recipe_format": [ - "container", - [ - { - "name": "category", - "type": "varint" - } - ] - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" }, { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "chunkBlockEntity": [ - "container", - [ - { - "anon": true, + "name": "extraNodeData", "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "nbtData", - "type": "anonOptionalNbt" - } - ] - ], - "chat_session": [ - "option", - [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "publicKey", - "type": [ - "container", - [ - { - "name": "expireTime", - "type": "i64" - }, - { - "name": "keyBytes", - "type": [ - "buffer", + "switch", + { + "compareTo": "flags/command_node_type", + "fields": { + "0": "void", + "1": [ + "container", + [ { - "countType": "varint" + "name": "name", + "type": "string" } ] - }, - { - "name": "keySignature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] - } - ] - ] - ], - "game_profile": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "extraNodeData", - "type": [ - "switch", - { - "compareTo": "flags/command_node_type", - "fields": { - "0": "void", - "1": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] - ], - "2": [ - "container", - [ + ], + "2": [ + "container", + [ { "name": "name", "type": "string" @@ -973,7 +330,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "brigadier:bool", "1": "brigadier:float", @@ -1025,7 +381,8 @@ "47": "minecraft:template_rotation", "48": "minecraft:heightmap", "49": "minecraft:uuid" - } + }, + "type": "varint" } ] }, @@ -1037,7 +394,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -1047,18 +404,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1069,10 +426,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -1082,16 +439,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -1101,18 +458,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1123,10 +480,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -1136,10 +493,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -1155,18 +512,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1177,10 +534,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -1190,10 +547,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -1209,18 +566,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1231,10 +588,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -1244,10 +601,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -1256,45 +613,52 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:gamemode": "void", + "minecraft:heightmap": "void", + "minecraft:int_range": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", "minecraft:nbt": "void", "minecraft:nbt_path": "void", @@ -1302,43 +666,25 @@ "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", + "minecraft:resource": [ + "container", [ { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false + "name": "registry", + "type": "string" } ] ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:dimension": "void", - "minecraft:gamemode": "void", - "minecraft:time": [ + "minecraft:resource_key": [ "container", [ { - "name": "min", - "type": "i32" + "name": "registry", + "type": "string" } ] ], + "minecraft:resource_location": "void", "minecraft:resource_or_tag": [ "container", [ @@ -1357,28 +703,39 @@ } ] ], - "minecraft:resource": [ - "container", + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", [ { - "name": "registry", - "type": "string" + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 } ] ], - "minecraft:resource_key": [ + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:template_mirror": "void", + "minecraft:template_rotation": "void", + "minecraft:time": [ "container", [ { - "name": "registry", - "type": "string" + "name": "min", + "type": "i32" } ] ], - "minecraft:template_mirror": "void", - "minecraft:template_rotation": "void", - "minecraft:heightmap": "void", - "minecraft:uuid": "void" + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -1389,10 +746,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -1403,198 +760,470 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } - ] + "name": "key", + "type": "u8" }, { - "name": "params", + "name": "type", "type": [ - "switch", + "mapper", { - "compareTo": "name", - "fields": {} - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "compound_tag", + "17": "particle", + "18": "villager_data", + "19": "optional_unsigned_int", + "20": "pose", + "21": "cat_variant", + "22": "frog_variant", + "23": "optional_global_pos", + "24": "painting_variant", + "25": "sniffer_state", + "26": "vector3", + "27": "quaternion" + }, + "type": "varint" } ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + "compareTo": "type" } ] } ] ] } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "block_pos": "position", + "block_state": "varint", + "boolean": "bool", + "byte": "i8", + "cat_variant": "varint", + "component": "anonymousNbt", + "compound_tag": "anonymousNbt", + "direction": "varint", + "float": "f32", + "frog_variant": "varint", + "int": "varint", + "item_stack": "slot", + "long": "varlong", + "optional_block_pos": [ + "option", + "position" + ], + "optional_block_state": "optvarint", + "optional_component": [ + "option", + "anonymousNbt" + ], + "optional_global_pos": [ + "option", + "string" + ], + "optional_unsigned_int": "optvarint", + "optional_uuid": [ + "option", + "UUID" + ], + "painting_variant": "varint", + "particle": "Particle", + "pose": "varint", + "quaternion": "vec4f", + "rotations": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "sniffer_state": "varint", + "string": "string", + "vector3": "vec3f", + "villager_data": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } - } - ] - }, + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "game_profile": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", { - "name": "params", + "countType": "varint", "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] } - } + ] ] } ] - ] + } + ] + ], + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" + ], + "minecraft_simple_recipe_format": [ + "container", + [ + { + "name": "category", + "type": "varint" + } + ] + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "option": "native", + "optvarint": "varint", + "packedChunkPos": [ + "container", + [ + { + "name": "z", + "type": "i32" + }, + { + "name": "x", + "type": "i32" + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "2": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "15": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "27": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "33": [ + "container", + [ + { + "name": "rotation", + "type": "f32" + } + ] + ], + "42": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ], + "43": [ + "container", + [ + { + "name": "positionType", + "type": "string" + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "positionType", + "default": "void", + "fields": { + "minecraft:entity": "varint" + } } - } - ] + ] + }, + { + "name": "entityEyeHeight", + "type": [ + "switch", + { + "compareTo": "positionType", + "default": "void", + "fields": { + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "destination", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "minecraft:block": "position", + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] + ], + "96": [ + "container", + [ + { + "name": "delayInTicksBeforeShown", + "type": "varint" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "previousMessages": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" }, { - "name": "params", + "name": "signature", "type": [ "switch", { - "compareTo": "name", + "compareTo": "id", + "default": "void", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "0": [ + "buffer", + { + "count": 256 + } + ] } } ] @@ -1602,115 +1231,279 @@ ] ] } - } - }, - "login": { - "toClient": { - "types": { - "packet_disconnect": [ - "container", - [ + ], + "pstring": "native", + "registryEntryHolder": "native", + "registryEntryHolderSet": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", { - "name": "reason", - "type": "string" + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" + } + ] + ] + } } ] - ], - "packet_encryption_begin": [ + } + ] + ], + "soundSource": [ + "mapper", + { + "mappings": { + "0": "master", + "1": "music", + "2": "record", + "3": "weather", + "4": "block", + "5": "hostile", + "6": "neutral", + "7": "player", + "8": "ambient", + "9": "voice" + }, + "type": "varint" + } + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "serverId", + "name": "tagName", "type": "string" }, { - "name": "publicKey", + "name": "entries", "type": [ - "buffer", + "array", { - "countType": "varint" + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + } + ] + ], + "vec3f64": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "vec4f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "w", + "type": "f32" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": {}, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": {} } ] } ] - ], - "packet_success": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "uuid", - "type": "UUID" - }, - { - "name": "username", - "type": "string" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] }, { - "name": "properties", + "name": "params", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } } ] } ] ], - "packet_compress": [ + "packet_legacy_server_list_ping": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "payload", + "type": "u8" } ] ], - "packet_login_plugin_request": [ + "packet_set_protocol": [ "container", [ { - "name": "messageId", + "name": "protocolVersion", "type": "varint" }, { - "name": "channel", + "name": "serverHost", "type": "string" }, { - "name": "data", - "type": "restBuffer" + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1719,14 +1512,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -1737,77 +1527,86 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", - "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_ping": [ "container", [ { - "name": "username", - "type": "string" - }, - { - "name": "playerUUID", - "type": "UUID" + "name": "time", + "type": "i64" } ] ], - "packet_encryption_begin": [ + "packet_server_info": [ "container", [ { - "name": "sharedSecret", + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } } ] } ] ], - "packet_login_plugin_response": [ + "packet_ping": [ "container", [ { - "name": "messageId", - "type": "varint" - }, - { - "name": "data", - "type": [ - "option", - "restBuffer" - ] + "name": "time", + "type": "i64" } ] ], - "packet_login_acknowledged": [ + "packet_ping_start": [ "container", [] - ], + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1816,13 +1615,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", + "0x00": "disconnect", "0x01": "encryption_begin", - "0x02": "login_plugin_response", - "0x03": "login_acknowledged" - } + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" + }, + "type": "varint" } ] }, @@ -1833,32 +1633,23 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", + "compress": "packet_compress", + "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response", - "login_acknowledged": "packet_login_acknowledged" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "configuration": { - "toClient": { - "types": { - "packet_custom_payload": [ + ], + "packet_compress": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "threshold", + "type": "varint" } ] ], @@ -1867,101 +1658,67 @@ [ { "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" + "type": "string" } ] ], - "packet_ping": [ + "packet_encryption_begin": [ "container", [ { - "name": "id", - "type": "i32" - } - ] - ], - "packet_registry_data": [ - "container", - [ + "name": "serverId", + "type": "string" + }, { - "name": "codec", - "type": "anonymousNbt" - } - ] - ], - "packet_remove_resource_pack": [ - "container", - [ + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, { - "name": "uuid", + "name": "verifyToken", "type": [ - "option", - "UUID" + "buffer", + { + "countType": "varint" + } ] } ] ], - "packet_add_resource_pack": [ + "packet_login_plugin_request": [ "container", [ { - "name": "uuid", - "type": "UUID" - }, - { - "name": "url", - "type": "string" + "name": "messageId", + "type": "varint" }, { - "name": "hash", + "name": "channel", "type": "string" }, { - "name": "forced", - "type": "bool" - }, - { - "name": "promptMessage", - "type": [ - "option", - "anonymousNbt" - ] + "name": "data", + "type": "restBuffer" } ] ], - "packet_feature_flags": [ + "packet_success": [ "container", [ { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_tags": [ - "container", - [ + "name": "uuid", + "type": "UUID" + }, { - "name": "tags", + "name": "username", + "type": "string" + }, + { + "name": "properties", "type": [ "array", { @@ -1970,20 +1727,128 @@ "container", [ { - "name": "tagType", + "name": "name", "type": "string" }, { - "name": "tags", - "type": "tags" - } - ] - ] - } - ] - } - ] + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response", + "0x03": "login_acknowledged" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "encryption_begin": "packet_encryption_begin", + "login_acknowledged": "packet_login_acknowledged", + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" + } + } + ] + } + ] + ], + "packet_encryption_begin": [ + "container", + [ + { + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ], + "packet_login_acknowledged": [ + "container", + [] + ], + "packet_login_plugin_response": [ + "container", + [ + { + "name": "messageId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "option", + "restBuffer" + ] + } + ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + }, + { + "name": "playerUUID", + "type": "UUID" + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1992,7 +1857,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "custom_payload", "0x01": "disconnect", @@ -2004,7 +1868,8 @@ "0x07": "add_resource_pack", "0x08": "feature_flags", "0x09": "tags" - } + }, + "type": "varint" } ] }, @@ -2015,60 +1880,47 @@ { "compareTo": "name", "fields": { + "add_resource_pack": "packet_add_resource_pack", "custom_payload": "packet_custom_payload", "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", "finish_configuration": "packet_finish_configuration", "keep_alive": "packet_keep_alive", "ping": "packet_ping", "registry_data": "packet_registry_data", "remove_resource_pack": "packet_remove_resource_pack", - "add_resource_pack": "packet_add_resource_pack", - "feature_flags": "packet_feature_flags", "tags": "packet_tags" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_settings": [ + ], + "packet_add_resource_pack": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" + "name": "uuid", + "type": "UUID" }, { - "name": "skinParts", - "type": "u8" + "name": "url", + "type": "string" }, { - "name": "mainHand", - "type": "varint" + "name": "hash", + "type": "string" }, { - "name": "enableTextFiltering", + "name": "forced", "type": "bool" }, { - "name": "enableServerListing", - "type": "bool" + "name": "promptMessage", + "type": [ + "option", + "anonymousNbt" + ] } ] ], @@ -2085,6 +1937,30 @@ } ] ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "anonymousNbt" + } + ] + ], + "packet_feature_flags": [ + "container", + [ + { + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], "packet_finish_configuration": [ "container", [] @@ -2098,7 +1974,7 @@ } ] ], - "packet_pong": [ + "packet_ping": [ "container", [ { @@ -2107,19 +1983,58 @@ } ] ], - "packet_resource_pack_receive": [ + "packet_registry_data": [ "container", [ { - "name": "uuid", - "type": "UUID" - }, + "name": "codec", + "type": "anonymousNbt" + } + ] + ], + "packet_remove_resource_pack": [ + "container", + [ { - "name": "result", - "type": "varint" + "name": "uuid", + "type": [ + "option", + "UUID" + ] } ] ], + "packet_tags": [ + "container", + [ + { + "name": "tags", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -2128,7 +2043,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "settings", "0x01": "custom_payload", @@ -2136,7 +2050,8 @@ "0x03": "keep_alive", "0x04": "pong", "0x05": "resource_pack_receive" - } + }, + "type": "varint" } ] }, @@ -2147,291 +2062,582 @@ { "compareTo": "name", "fields": { - "settings": "packet_settings", "custom_payload": "packet_custom_payload", "finish_configuration": "packet_finish_configuration", "keep_alive": "packet_keep_alive", "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive" + "resource_pack_receive": "packet_resource_pack_receive", + "settings": "packet_settings" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_custom_payload": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "channel", + "type": "string" }, { - "name": "z", - "type": "f64" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "pitch", - "type": "i8" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_pong": [ + "container", + [ { - "name": "yaw", - "type": "i8" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_resource_pack_receive": [ + "container", + [ { - "name": "headPitch", - "type": "i8" + "name": "uuid", + "type": "UUID" }, { - "name": "objectData", + "name": "result", "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_settings": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "locale", + "type": "string" }, { - "name": "x", - "type": "f64" + "name": "viewDistance", + "type": "i8" }, { - "name": "y", - "type": "f64" + "name": "chatFlags", + "type": "varint" }, { - "name": "z", - "type": "f64" + "name": "chatColors", + "type": "bool" }, { - "name": "count", - "type": "i16" - } - ] - ], - "packet_animation": [ - "container", - [ + "name": "skinParts", + "type": "u8" + }, { - "name": "entityId", + "name": "mainHand", "type": "varint" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ + "name": "enableTextFiltering", + "type": "bool" + }, { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "enableServerListing", + "type": "bool" } ] - ], - "packet_advancements": [ + ] + } + } + }, + "play": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "reset", - "type": "bool" - }, - { - "name": "advancementMapping", + "name": "name", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "container", - [ - { - "name": "parentId", - "type": [ - "option", - "string" - ] - }, - { - "name": "displayData", - "type": [ - "option", - [ - "container", - [ - { - "name": "title", - "type": "anonymousNbt" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "icon", - "type": "slot" - }, - { - "name": "frameType", - "type": "varint" - }, - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "backgroundTexture", - "type": [ - "switch", - { - "compareTo": "flags/has_background_texture", - "fields": { - "1": "string" - }, - "default": "void" - } - ] - }, - { - "name": "xCord", - "type": "f32" - }, - { - "name": "yCord", - "type": "f32" - } - ] - ] - ] - }, - { - "name": "requirements", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - }, - { - "name": "sendsTelemtryData", - "type": "bool" - } - ] - ] - } - ] - ] + "mappings": { + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "spawn_entity_experience_orb", + "0x03": "animation", + "0x04": "statistics", + "0x05": "acknowledge_player_digging", + "0x06": "block_break_animation", + "0x07": "tile_entity_data", + "0x08": "block_action", + "0x09": "block_change", + "0x0a": "boss_bar", + "0x0b": "difficulty", + "0x0c": "chunk_batch_finished", + "0x0d": "chunk_batch_start", + "0x0e": "chunk_biomes", + "0x0f": "clear_titles", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "close_window", + "0x13": "window_items", + "0x14": "craft_progress_bar", + "0x15": "set_slot", + "0x16": "set_cooldown", + "0x17": "chat_suggestions", + "0x18": "custom_payload", + "0x19": "damage_event", + "0x1a": "hide_message", + "0x1b": "kick_disconnect", + "0x1c": "profileless_chat", + "0x1d": "entity_status", + "0x1e": "explosion", + "0x1f": "unload_chunk", + "0x20": "game_state_change", + "0x21": "open_horse_window", + "0x22": "hurt_animation", + "0x23": "initialize_world_border", + "0x24": "keep_alive", + "0x25": "map_chunk", + "0x26": "world_event", + "0x27": "world_particles", + "0x28": "update_light", + "0x29": "login", + "0x2a": "map", + "0x2b": "trade_list", + "0x2c": "rel_entity_move", + "0x2d": "entity_move_look", + "0x2e": "entity_look", + "0x2f": "vehicle_move", + "0x30": "open_book", + "0x31": "open_window", + "0x32": "open_sign_entity", + "0x33": "ping", + "0x34": "ping_response", + "0x35": "craft_recipe_response", + "0x36": "abilities", + "0x37": "player_chat", + "0x38": "end_combat_event", + "0x39": "enter_combat_event", + "0x3a": "death_combat_event", + "0x3b": "player_remove", + "0x3c": "player_info", + "0x3d": "face_player", + "0x3e": "position", + "0x3f": "unlock_recipes", + "0x40": "entity_destroy", + "0x41": "remove_entity_effect", + "0x42": "reset_score", + "0x43": "remove_resource_pack", + "0x44": "add_resource_pack", + "0x45": "respawn", + "0x46": "entity_head_rotation", + "0x47": "multi_block_change", + "0x48": "select_advancement_tab", + "0x49": "server_data", + "0x4a": "action_bar", + "0x4b": "world_border_center", + "0x4c": "world_border_lerp_size", + "0x4d": "world_border_size", + "0x4e": "world_border_warning_delay", + "0x4f": "world_border_warning_reach", + "0x50": "camera", + "0x51": "held_item_slot", + "0x52": "update_view_position", + "0x53": "update_view_distance", + "0x54": "spawn_position", + "0x55": "scoreboard_display_objective", + "0x56": "entity_metadata", + "0x57": "attach_entity", + "0x58": "entity_velocity", + "0x59": "entity_equipment", + "0x5a": "experience", + "0x5b": "update_health", + "0x5c": "scoreboard_objective", + "0x5d": "set_passengers", + "0x5e": "teams", + "0x5f": "scoreboard_score", + "0x60": "simulation_distance", + "0x61": "set_title_subtitle", + "0x62": "update_time", + "0x63": "set_title_text", + "0x64": "set_title_time", + "0x65": "entity_sound_effect", + "0x66": "sound_effect", + "0x67": "start_configuration", + "0x68": "stop_sound", + "0x69": "system_chat", + "0x6a": "playerlist_header", + "0x6b": "nbt_query_response", + "0x6c": "collect", + "0x6d": "entity_teleport", + "0x6e": "set_ticking_state", + "0x6f": "step_tick", + "0x70": "advancements", + "0x71": "entity_update_attributes", + "0x72": "entity_effect", + "0x73": "declare_recipes", + "0x74": "tags" + }, + "type": "varint" } ] }, { - "name": "identifiers", + "name": "params", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "add_resource_pack": "packet_add_resource_pack", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "bundle_delimiter": "void", + "camera": "packet_camera", + "chat_suggestions": "packet_chat_suggestions", + "chunk_batch_finished": "packet_chunk_batch_finished", + "chunk_batch_start": "packet_chunk_batch_start", + "chunk_biomes": "packet_chunk_biomes", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "damage_event": "packet_damage_event", + "death_combat_event": "packet_death_combat_event", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "hide_message": "packet_hide_message", + "hurt_animation": "packet_hurt_animation", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "ping_response": "packet_ping_response", + "player_chat": "packet_player_chat", + "player_info": "packet_player_info", + "player_remove": "packet_player_remove", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "profileless_chat": "packet_profileless_chat", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "remove_resource_pack": "packet_remove_resource_pack", + "reset_score": "packet_reset_score", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "server_data": "packet_server_data", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "set_ticking_state": "packet_set_ticking_state", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_position": "packet_spawn_position", + "start_configuration": "packet_start_configuration", + "statistics": "packet_statistics", + "step_tick": "packet_step_tick", + "stop_sound": "packet_stop_sound", + "system_chat": "packet_system_chat", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "trade_list": "packet_trade_list", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } } ] - }, - { - "name": "progressMapping", - "type": [ + } + ] + ], + "packet_abilities": [ + "container", + [ + { + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" + } + ] + ], + "packet_acknowledge_player_digging": [ + "container", + [ + { + "name": "sequenceId", + "type": "varint" + } + ] + ], + "packet_action_bar": [ + "container", + [ + { + "name": "text", + "type": "anonymousNbt" + } + ] + ], + "packet_add_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "url", + "type": "string" + }, + { + "name": "hash", + "type": "string" + }, + { + "name": "forced", + "type": "bool" + }, + { + "name": "promptMessage", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ], + "packet_advancements": [ + "container", + [ + { + "name": "reset", + "type": "bool" + }, + { + "name": "advancementMapping", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "container", + [ + { + "name": "parentId", + "type": [ + "option", + "string" + ] + }, + { + "name": "displayData", + "type": [ + "option", + [ + "container", + [ + { + "name": "title", + "type": "anonymousNbt" + }, + { + "name": "description", + "type": "anonymousNbt" + }, + { + "name": "icon", + "type": "slot" + }, + { + "name": "frameType", + "type": "varint" + }, + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "_unused", + "signed": false, + "size": 29 + }, + { + "name": "hidden", + "signed": false, + "size": 1 + }, + { + "name": "show_toast", + "signed": false, + "size": 1 + }, + { + "name": "has_background_texture", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "backgroundTexture", + "type": [ + "switch", + { + "compareTo": "flags/has_background_texture", + "default": "void", + "fields": { + "1": "string" + } + } + ] + }, + { + "name": "xCord", + "type": "f32" + }, + { + "name": "yCord", + "type": "f32" + } + ] + ] + ] + }, + { + "name": "requirements", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + }, + { + "name": "sendsTelemtryData", + "type": "bool" + } + ] + ] + } + ] + ] + } + ] + }, + { + "name": "identifiers", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "progressMapping", + "type": [ "array", { "countType": "varint", @@ -2474,7 +2680,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -2482,29 +2688,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "anonOptionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -2529,6 +2727,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -2559,11 +2774,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "anonymousNbt", "3": "anonymousNbt" - }, - "default": "void" + } } ] }, @@ -2573,11 +2788,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -2587,11 +2802,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -2601,11 +2816,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -2615,26 +2830,41 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat_suggestions": [ + "container", + [ + { + "name": "action", + "type": "varint" }, { - "name": "difficultyLocked", - "type": "bool" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], @@ -2651,23 +2881,11 @@ "container", [] ], - "packet_tab_complete": [ + "packet_chunk_biomes": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", - "type": "varint" - }, - { - "name": "matches", + "name": "biomes", "type": [ "array", { @@ -2676,14 +2894,16 @@ "container", [ { - "name": "match", - "type": "string" + "name": "position", + "type": "packedChunkPos" }, { - "name": "tooltip", + "name": "data", "type": [ - "option", - "anonymousNbt" + "buffer", + { + "countType": "varint" + } ] } ] @@ -2693,316 +2913,394 @@ } ] ], - "packet_declare_commands": [ + "packet_clear_titles": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] - }, - { - "name": "rootIndex", - "type": "varint" + "name": "reset", + "type": "bool" } ] ], - "packet_face_player": [ + "packet_close_window": [ "container", [ { - "name": "feet_eyes", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entity_feet_eyes", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] + "name": "windowId", + "type": "u8" } ] ], - "packet_nbt_query_response": [ + "packet_collect": [ "container", [ { - "name": "transactionId", + "name": "collectedEntityId", "type": "varint" }, { - "name": "nbt", - "type": "anonOptionalNbt" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ - { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] + "name": "collectorEntityId", + "type": "varint" }, { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "pickupItemCount", + "type": "varint" } ] ], - "packet_close_window": [ + "packet_craft_progress_bar": [ "container", [ { "name": "windowId", "type": "u8" - } - ] - ], - "packet_open_window": [ - "container", - [ - { - "name": "windowId", - "type": "varint" }, { - "name": "inventoryType", - "type": "varint" + "name": "property", + "type": "i16" }, { - "name": "windowTitle", - "type": "anonymousNbt" + "name": "value", + "type": "i16" } ] ], - "packet_window_items": [ + "packet_craft_recipe_response": [ "container", [ { "name": "windowId", - "type": "u8" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ] + "type": "i8" }, { - "name": "carriedItem", - "type": "slot" + "name": "recipe", + "type": "string" } ] ], - "packet_craft_progress_bar": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "property", - "type": "i16" + "name": "channel", + "type": "string" }, { - "name": "value", - "type": "i16" + "name": "data", + "type": "restBuffer" } ] ], - "packet_set_slot": [ + "packet_damage_event": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "stateId", + "name": "sourceTypeId", "type": "varint" }, { - "name": "slot", - "type": "i16" + "name": "sourceCauseId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "sourceDirectId", + "type": "varint" + }, + { + "name": "sourcePosition", + "type": [ + "option", + "vec3f64" + ] } ] ], - "packet_set_cooldown": [ + "packet_death_combat_event": [ "container", [ { - "name": "itemID", + "name": "playerId", "type": "varint" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "message", + "type": "anonymousNbt" } ] ], - "packet_chat_suggestions": [ + "packet_declare_commands": [ "container", [ { - "name": "action", - "type": "varint" - }, - { - "name": "entries", + "name": "nodes", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "command_node" } ] + }, + { + "name": "rootIndex", + "type": "varint" } ] ], - "packet_custom_payload": [ + "packet_declare_recipes": [ "container", [ { - "name": "channel", - "type": "string" + "name": "recipes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "showNotification", + "type": "bool" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "minecraft_simple_recipe_format", + "minecraft:crafting_special_banneraddpattern": "minecraft_simple_recipe_format", + "minecraft:crafting_special_bannerduplicate": "minecraft_simple_recipe_format", + "minecraft:crafting_special_bookcloning": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_rocket": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_star": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_star_fade": "minecraft_simple_recipe_format", + "minecraft:crafting_special_mapcloning": "minecraft_simple_recipe_format", + "minecraft:crafting_special_mapextending": "minecraft_simple_recipe_format", + "minecraft:crafting_special_repairitem": "minecraft_simple_recipe_format", + "minecraft:crafting_special_shielddecoration": "minecraft_simple_recipe_format", + "minecraft:crafting_special_shulkerboxcoloring": "minecraft_simple_recipe_format", + "minecraft:crafting_special_suspiciousstew": "minecraft_simple_recipe_format", + "minecraft:crafting_special_tippedarrow": "minecraft_simple_recipe_format", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing_transform": [ + "container", + [ + { + "name": "template", + "type": "ingredient" + }, + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smithing_trim": [ + "container", + [ + { + "name": "template", + "type": "ingredient" + }, + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] + } + ] + ] + } + ] + } + ] + ], + "packet_difficulty": [ + "container", + [ + { + "name": "difficulty", + "type": "u8" }, { - "name": "data", - "type": "restBuffer" + "name": "difficultyLocked", + "type": "bool" } ] ], - "packet_hide_message": [ + "packet_end_combat_event": [ "container", [ { - "name": "id", + "name": "duration", "type": "varint" - }, - { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] } ] ], - "packet_kick_disconnect": [ + "packet_enter_combat_event": [ + "container", + [] + ], + "packet_entity_destroy": [ "container", [ { - "name": "reason", - "type": "anonymousNbt" + "name": "entityIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_profileless_chat": [ + "packet_entity_effect": [ "container", [ { - "name": "message", - "type": "anonymousNbt" + "name": "entityId", + "type": "varint" }, { - "name": "type", + "name": "effectId", "type": "varint" }, { - "name": "name", - "type": "anonymousNbt" + "name": "amplifier", + "type": "i8" }, { - "name": "target", + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "i8" + }, + { + "name": "factorCodec", "type": [ "option", "anonymousNbt" @@ -3010,286 +3308,309 @@ } ] ], - "packet_entity_status": [ + "packet_entity_equipment": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" - } - ] - ], - "packet_explosion": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "radius", - "type": "f32" - }, - { - "name": "affectedBlockOffsets", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "varint", "type": [ "container", [ { - "name": "x", - "type": "i8" - }, - { - "name": "y", + "name": "slot", "type": "i8" }, { - "name": "z", - "type": "i8" + "name": "item", + "type": "slot" } ] ] } ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, + } + ] + ], + "packet_entity_head_rotation": [ + "container", + [ { - "name": "playerMotionY", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "playerMotionZ", - "type": "f32" - }, + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ + "container", + [ { - "name": "block_interaction_type", + "name": "entityId", "type": "varint" }, { - "name": "small_explosion_particle", - "type": "Particle" + "name": "yaw", + "type": "i8" }, { - "name": "large_explosion_particle", - "type": "Particle" + "name": "pitch", + "type": "i8" }, { - "name": "sound", - "type": "ItemSoundHolder" + "name": "onGround", + "type": "bool" } ] ], - "packet_unload_chunk": [ + "packet_entity_metadata": [ "container", [ { - "name": "chunkZ", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkX", - "type": "i32" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_game_state_change": [ + "packet_entity_move_look": [ "container", [ { - "name": "reason", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "gameMode", - "type": "f32" + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_open_horse_window": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "soundId", + "type": "varint" }, { - "name": "nbSlots", - "type": "varint" + "name": "soundEvent", + "type": [ + "switch", + { + "compareTo": "soundId", + "default": "void", + "fields": { + "0": [ + "container", + [ + { + "name": "resource", + "type": "string" + }, + { + "name": "range", + "type": [ + "option", + "f32" + ] + } + ] + ] + } + } + ] + }, + { + "name": "soundCategory", + "type": "soundSource" }, { "name": "entityId", - "type": "i32" + "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], - "packet_keep_alive": [ + "packet_entity_status": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "entityId", + "type": "i32" + }, + { + "name": "entityStatus", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_entity_teleport": [ "container", [ { - "name": "x", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "z", - "type": "i32" + "name": "x", + "type": "f64" }, { - "name": "heightmaps", - "type": "anonymousNbt" + "name": "y", + "type": "f64" }, { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "z", + "type": "f64" }, { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "chunkBlockEntity" - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] - }, - { - "name": "blockLight", + "name": "properties", "type": [ "array", { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] ] } ] } ] ], - "packet_world_event": [ + "packet_entity_velocity": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "global", - "type": "bool" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_world_particles": [ + "packet_experience": [ "container", [ { - "name": "particleId", - "type": "varint" + "name": "experienceBar", + "type": "f32" }, { - "name": "longDistance", - "type": "bool" + "name": "level", + "type": "varint" }, + { + "name": "totalExperience", + "type": "varint" + } + ] + ], + "packet_explosion": [ + "container", + [ { "name": "x", "type": "f64" @@ -3303,135 +3624,247 @@ "type": "f64" }, { - "name": "offsetX", + "name": "radius", "type": "f32" }, { - "name": "offsetY", + "name": "affectedBlockOffsets", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + } + ] + ] + } + ] + }, + { + "name": "playerMotionX", "type": "f32" }, { - "name": "offsetZ", + "name": "playerMotionY", "type": "f32" }, { - "name": "particleData", + "name": "playerMotionZ", "type": "f32" }, { - "name": "particles", - "type": "i32" + "name": "block_interaction_type", + "type": "varint" }, { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "small_explosion_particle", + "type": "Particle" + }, + { + "name": "large_explosion_particle", + "type": "Particle" + }, + { + "name": "sound", + "type": "ItemSoundHolder" } ] ], - "packet_update_light": [ + "packet_face_player": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", + "name": "feet_eyes", "type": "varint" }, { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "x", + "type": "f64" }, { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "y", + "type": "f64" }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "z", + "type": "f64" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "isEntity", + "type": "bool" }, { - "name": "skyLight", + "name": "entityId", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } } ] }, { - "name": "blockLight", + "name": "entity_feet_eyes", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } } ] } ] ], - "packet_login": [ + "packet_game_state_change": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "reason", + "type": "u8" }, { - "name": "isHardcore", - "type": "bool" - }, + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "worldNames", - "type": [ + "name": "slot", + "type": "i8" + } + ] + ], + "packet_hide_message": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "signature", + "type": [ + "switch", + { + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] + } + } + ] + } + ] + ], + "packet_hurt_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "yaw", + "type": "f32" + } + ] + ], + "packet_initialize_world_border": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "oldDiameter", + "type": "f64" + }, + { + "name": "newDiameter", + "type": "f64" + }, + { + "name": "speed", + "type": "varint" + }, + { + "name": "portalTeleportBoundary", + "type": "varint" + }, + { + "name": "warningBlocks", + "type": "varint" + }, + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "anonymousNbt" + } + ] + ], + "packet_login": [ + "container", + [ + { + "name": "entityId", + "type": "i32" + }, + { + "name": "isHardcore", + "type": "bool" + }, + { + "name": "worldNames", + "type": [ "array", { "countType": "varint", @@ -3581,10 +4014,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -3594,10 +4027,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -3607,10 +4040,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -3620,209 +4053,202 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_trade_list": [ + "packet_map_chunk": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "trades", + "name": "z", + "type": "i32" + }, + { + "name": "heightmaps", + "type": "anonymousNbt" + }, + { + "name": "chunkData", "type": [ - "array", + "buffer", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": "slot" - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ] - ] + "countType": "varint" } ] }, { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "chunkBlockEntity" + } + ] }, { - "name": "isRegularVillager", - "type": "bool" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "canRestock", - "type": "bool" - } - ] - ], - "packet_rel_entity_move": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "dX", - "type": "i16" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "dY", - "type": "i16" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "dZ", - "type": "i16" + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], - "packet_entity_move_look": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] + ] }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_entity_look": [ + "packet_nbt_query_response": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "name": "nbt", + "type": "anonOptionalNbt" } ] ], - "packet_vehicle_move": [ + "packet_open_book": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "hand", + "type": "varint" } ] ], - "packet_open_book": [ + "packet_open_horse_window": [ "container", [ { - "name": "hand", + "name": "windowId", + "type": "u8" + }, + { + "name": "nbSlots", "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], @@ -3839,33 +4265,38 @@ } ] ], - "packet_craft_recipe_response": [ + "packet_open_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "varint" }, { - "name": "recipe", - "type": "string" + "name": "inventoryType", + "type": "varint" + }, + { + "name": "windowTitle", + "type": "anonymousNbt" } ] ], - "packet_abilities": [ + "packet_ping": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_ping_response": [ + "container", + [ { - "name": "walkingSpeed", - "type": "f32" + "name": "id", + "type": "i64" } ] ], @@ -3925,6 +4356,7 @@ "switch", { "compareTo": "filterType", + "default": "void", "fields": { "2": [ "array", @@ -3933,8 +4365,7 @@ "type": "i64" } ] - }, - "default": "void" + } } ] }, @@ -3955,47 +4386,6 @@ } ] ], - "packet_end_combat_event": [ - "container", - [ - { - "name": "duration", - "type": "varint" - } - ] - ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ - "container", - [ - { - "name": "playerId", - "type": "varint" - }, - { - "name": "message", - "type": "anonymousNbt" - } - ] - ], - "packet_player_remove": [ - "container", - [ - { - "name": "players", - "type": [ - "array", - { - "countType": "varint", - "type": "UUID" - } - ] - } - ] - ], "packet_player_info": [ "container", [ @@ -4004,7 +4394,6 @@ "type": [ "bitflags", { - "type": "u8", "flags": [ "add_player", "initialize_chat", @@ -4012,7 +4401,8 @@ "update_listed", "update_latency", "update_display_name" - ] + ], + "type": "u8" } ] }, @@ -4035,10 +4425,10 @@ "switch", { "compareTo": "../action/add_player", + "default": "void", "fields": { "true": "game_profile" - }, - "default": "void" + } } ] }, @@ -4048,10 +4438,10 @@ "switch", { "compareTo": "../action/initialize_chat", + "default": "void", "fields": { "true": "chat_session" - }, - "default": "void" + } } ] }, @@ -4061,10 +4451,10 @@ "switch", { "compareTo": "../action/update_game_mode", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -4074,10 +4464,10 @@ "switch", { "compareTo": "../action/update_listed", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -4087,10 +4477,10 @@ "switch", { "compareTo": "../action/update_latency", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -4100,13 +4490,13 @@ "switch", { "compareTo": "../action/update_display_name", + "default": "void", "fields": { "true": [ "option", "anonymousNbt" ] - }, - "default": "void" + } } ] } @@ -4117,6 +4507,34 @@ } ] ], + "packet_player_remove": [ + "container", + [ + { + "name": "players", + "type": [ + "array", + { + "countType": "varint", + "type": "UUID" + } + ] + } + ] + ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "anonymousNbt" + }, + { + "name": "footer", + "type": "anonymousNbt" + } + ] + ], "packet_position": [ "container", [ @@ -4150,88 +4568,52 @@ } ] ], - "packet_unlock_recipes": [ + "packet_profileless_chat": [ "container", [ { - "name": "action", - "type": "varint" + "name": "message", + "type": "anonymousNbt" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "type", + "type": "varint" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "name", + "type": "anonymousNbt" }, { - "name": "smeltingBookOpen", - "type": "bool" - }, + "name": "target", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ], + "packet_rel_entity_move": [ + "container", + [ { - "name": "filteringSmeltable", - "type": "bool" + "name": "entityId", + "type": "varint" }, { - "name": "blastFurnaceOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringBlastFurnace", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smokerBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmoker", + "name": "onGround", "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -4248,22 +4630,6 @@ } ] ], - "packet_reset_score": [ - "container", - [ - { - "name": "entity_name", - "type": "string" - }, - { - "name": "objective_name", - "type": [ - "option", - "string" - ] - } - ] - ], "packet_remove_resource_pack": [ "container", [ @@ -4276,30 +4642,18 @@ } ] ], - "packet_add_resource_pack": [ + "packet_reset_score": [ "container", [ { - "name": "uuid", - "type": "UUID" - }, - { - "name": "url", - "type": "string" - }, - { - "name": "hash", + "name": "entity_name", "type": "string" }, { - "name": "forced", - "type": "bool" - }, - { - "name": "promptMessage", + "name": "objective_name", "type": [ "option", - "anonymousNbt" + "string" ] } ] @@ -4364,112 +4718,210 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", + "name": "position", "type": "varint" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_camera": [ + "packet_scoreboard_objective": [ "container", [ { - "name": "cameraId", - "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + "name": "name", + "type": "string" + }, { - "name": "slot", + "name": "action", "type": "i8" - } - ] - ], - "packet_update_view_position": [ - "container", - [ + }, { - "name": "chunkX", - "type": "varint" + "name": "displayText", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] }, { - "name": "chunkZ", - "type": "varint" - } - ] - ], - "packet_update_view_distance": [ - "container", - [ + "name": "type", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + }, { - "name": "viewDistance", - "type": "varint" + "name": "number_format", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "option", + "varint" + ], + "2": [ + "option", + "varint" + ] + } + } + ] + }, + { + "name": "styling", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "switch", + { + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } + } + ], + "2": [ + "switch", + { + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] + } + } + ] } ] ], - "packet_scoreboard_display_objective": [ + "packet_scoreboard_score": [ "container", [ { - "name": "position", - "type": "varint" + "name": "itemName", + "type": "string" }, { - "name": "name", + "name": "scoreName", "type": "string" - } - ] - ], - "packet_entity_metadata": [ - "container", - [ + }, { - "name": "entityId", + "name": "value", "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ - { - "name": "entityId", - "type": "i32" + "name": "display_name", + "type": [ + "option", + "anonymousNbt" + ] }, { - "name": "vehicleId", - "type": "i32" + "name": "number_format", + "type": [ + "option", + "varint" + ] + }, + { + "name": "styling", + "type": [ + "switch", + { + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] } ] ], - "packet_entity_velocity": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "entityId", + "name": "id", + "type": [ + "option", + "string" + ] + } + ] + ], + "packet_server_data": [ + "container", + [ + { + "name": "motd", + "type": "anonymousNbt" + }, + { + "name": "iconBytes", + "type": [ + "option", + [ + "buffer", + { + "countType": "varint" + } + ] + ] + }, + { + "name": "enforcesSecureChat", + "type": "bool" + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "itemID", "type": "varint" }, { - "name": "velocity", - "type": "vec3i16" + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_entity_equipment": [ + "packet_set_passengers": [ "container", [ { @@ -4477,362 +4929,203 @@ "type": "varint" }, { - "name": "equipments", + "name": "passengers", "type": [ - "topBitSetTerminatedArray", + "array", { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_experience": [ + "packet_set_slot": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "windowId", + "type": "i8" }, { - "name": "level", + "name": "stateId", "type": "varint" }, { - "name": "totalExperience", - "type": "varint" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_update_health": [ + "packet_set_ticking_state": [ "container", [ { - "name": "health", + "name": "tick_rate", "type": "f32" }, { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" + "name": "is_frozen", + "type": "bool" } ] ], - "packet_scoreboard_objective": [ + "packet_set_title_subtitle": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "action", - "type": "i8" - }, + "name": "text", + "type": "anonymousNbt" + } + ] + ], + "packet_set_title_text": [ + "container", + [ { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] - }, + "name": "text", + "type": "anonymousNbt" + } + ] + ], + "packet_set_title_time": [ + "container", + [ { - "name": "type", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "fadeIn", + "type": "i32" }, { - "name": "number_format", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "option", - "varint" - ], - "2": [ - "option", - "varint" - ] - }, - "default": "void" - } - ] + "name": "stay", + "type": "i32" }, { - "name": "styling", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "switch", - { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ], - "2": [ - "switch", - { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] - }, - "default": "void" - } - ] + "name": "fadeOut", + "type": "i32" } ] ], - "packet_set_passengers": [ + "packet_simulation_distance": [ "container", [ { - "name": "entityId", + "name": "distance", "type": "varint" - }, - { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], - "packet_teams": [ + "packet_sound_effect": [ "container", [ { - "name": "team", - "type": "string" + "name": "sound", + "type": "ItemSoundHolder" }, { - "name": "mode", - "type": "i8" + "name": "soundCategory", + "type": "soundSource" }, { - "name": "name", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] + "name": "x", + "type": "i32" }, { - "name": "friendlyFire", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" - } - ] + "name": "y", + "type": "i32" }, { - "name": "nameTagVisibility", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "z", + "type": "i32" }, { - "name": "collisionRule", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "volume", + "type": "f32" }, { - "name": "formatting", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "f32" }, { - "name": "prefix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] + "name": "seed", + "type": "i64" + } + ] + ], + "packet_spawn_entity": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "suffix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] + "name": "objectUUID", + "type": "UUID" }, { - "name": "players", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "objectData", + "type": "varint" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_scoreboard_score": [ + "packet_spawn_entity_experience_orb": [ "container", [ { - "name": "itemName", - "type": "string" - }, - { - "name": "scoreName", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "value", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "display_name", - "type": [ - "option", - "anonymousNbt" - ] + "name": "y", + "type": "f64" }, { - "name": "number_format", - "type": [ - "option", - "varint" - ] + "name": "z", + "type": "f64" }, { - "name": "styling", - "type": [ - "switch", - { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] + "name": "count", + "type": "i16" } ] ], @@ -4849,94 +5142,68 @@ } ] ], - "packet_update_time": [ + "packet_start_configuration": [ + "container", + [] + ], + "packet_statistics": [ "container", [ { - "name": "age", - "type": "i64" - }, - { - "name": "time", - "type": "i64" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_entity_sound_effect": [ + "packet_step_tick": [ "container", [ { - "name": "soundId", + "name": "tick_steps", "type": "varint" + } + ] + ], + "packet_stop_sound": [ + "container", + [ + { + "name": "flags", + "type": "i8" }, { - "name": "soundEvent", + "name": "source", "type": [ "switch", { - "compareTo": "soundId", - "fields": { - "0": [ - "container", - [ - { - "name": "resource", - "type": "string" - }, - { - "name": "range", - "type": [ - "option", - "f32" - ] - } - ] - ] - }, - "default": "void" - } - ] - }, - { - "name": "soundCategory", - "type": "soundSource" - }, - { - "name": "entityId", - "type": "varint" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "seed", - "type": "i64" - } - ] - ], - "packet_stop_sound": [ - "container", - [ - { - "name": "flags", - "type": "i8" - }, - { - "name": "source", - "type": [ - "switch", - { - "compareTo": "flags", + "compareTo": "flags", + "default": "void", "fields": { "1": "varint", "3": "varint" - }, - "default": "void" + } } ] }, @@ -4946,53 +5213,16 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "2": "string", "3": "string" - }, - "default": "void" + } } ] } ] ], - "packet_sound_effect": [ - "container", - [ - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "soundCategory", - "type": "soundSource" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "seed", - "type": "i64" - } - ] - ], "packet_system_chat": [ "container", [ @@ -5006,78 +5236,53 @@ } ] ], - "packet_playerlist_header": [ - "container", - [ - { - "name": "header", - "type": "anonymousNbt" - }, - { - "name": "footer", - "type": "anonymousNbt" - } - ] - ], - "packet_collect": [ + "packet_tab_complete": [ "container", [ { - "name": "collectedEntityId", + "name": "transactionId", "type": "varint" }, { - "name": "collectorEntityId", + "name": "start", "type": "varint" }, { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ - { - "name": "entityId", + "name": "length", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] + } + ] } ] ], - "packet_entity_update_attributes": [ + "packet_tags": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "properties", + "name": "tags", "type": [ "array", { @@ -5086,38 +5291,12 @@ "container", [ { - "name": "name", + "name": "tagType", "type": "string" }, { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] + "name": "tags", + "type": "tags" } ] ] @@ -5126,80 +5305,176 @@ } ] ], - "packet_entity_effect": [ + "packet_teams": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "effectId", - "type": "varint" + "name": "team", + "type": "string" }, { - "name": "amplifier", + "name": "mode", "type": "i8" }, { - "name": "duration", - "type": "varint" - }, - { - "name": "hideParticles", - "type": "i8" + "name": "name", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] }, { - "name": "factorCodec", + "name": "friendlyFire", "type": [ - "option", - "anonymousNbt" + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "i8", + "2": "i8" + } + } ] - } - ] - ], - "packet_select_advancement_tab": [ - "container", - [ + }, { - "name": "id", + "name": "nameTagVisibility", "type": [ - "option", - "string" - ] - } - ] - ], - "packet_server_data": [ - "container", - [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, { - "name": "motd", - "type": "anonymousNbt" + "name": "collisionRule", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] }, { - "name": "iconBytes", + "name": "formatting", "type": [ - "option", - [ - "buffer", - { - "countType": "varint" + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" } - ] + } ] }, { - "name": "enforcesSecureChat", - "type": "bool" + "name": "prefix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] + }, + { + "name": "suffix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] + }, + { + "name": "players", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "3": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + } + ] } ] ], - "packet_declare_recipes": [ + "packet_tile_entity_data": [ "container", [ { - "name": "recipes", + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" + } + ] + ], + "packet_trade_list": [ + "container", + [ + { + "name": "windowId", + "type": "varint" + }, + { + "name": "trades", "type": [ "array", { @@ -5208,1202 +5483,856 @@ "container", [ { - "name": "type", - "type": "string" + "name": "inputItem1", + "type": "slot" }, { - "name": "recipeId", - "type": "string" + "name": "outputItem", + "type": "slot" }, { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "showNotification", - "type": "bool" - } - ] - ], - "minecraft:crafting_special_armordye": "minecraft_simple_recipe_format", - "minecraft:crafting_special_bookcloning": "minecraft_simple_recipe_format", - "minecraft:crafting_special_mapcloning": "minecraft_simple_recipe_format", - "minecraft:crafting_special_mapextending": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_rocket": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_star": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_star_fade": "minecraft_simple_recipe_format", - "minecraft:crafting_special_repairitem": "minecraft_simple_recipe_format", - "minecraft:crafting_special_tippedarrow": "minecraft_simple_recipe_format", - "minecraft:crafting_special_bannerduplicate": "minecraft_simple_recipe_format", - "minecraft:crafting_special_banneraddpattern": "minecraft_simple_recipe_format", - "minecraft:crafting_special_shielddecoration": "minecraft_simple_recipe_format", - "minecraft:crafting_special_shulkerboxcoloring": "minecraft_simple_recipe_format", - "minecraft:crafting_special_suspiciousstew": "minecraft_simple_recipe_format", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing_transform": [ - "container", - [ - { - "name": "template", - "type": "ingredient" - }, - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing_trim": [ - "container", - [ - { - "name": "template", - "type": "ingredient" - }, - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - } - ] - ], - "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format" - } - } - ] - } - ] - ] - } - ] - } - ] - ], - "packet_tags": [ - "container", - [ - { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ + "name": "inputItem2", + "type": "slot" + }, { - "name": "tagType", - "type": "string" + "name": "tradeDisabled", + "type": "bool" }, { - "name": "tags", - "type": "tags" + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" } ] ] } ] - } - ] - ], - "packet_acknowledge_player_digging": [ - "container", - [ - { - "name": "sequenceId", - "type": "varint" - } - ] - ], - "packet_clear_titles": [ - "container", - [ - { - "name": "reset", - "type": "bool" - } - ] - ], - "packet_initialize_world_border": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "oldDiameter", - "type": "f64" - }, - { - "name": "newDiameter", - "type": "f64" }, { - "name": "speed", + "name": "villagerLevel", "type": "varint" }, { - "name": "portalTeleportBoundary", + "name": "experience", "type": "varint" }, { - "name": "warningBlocks", - "type": "varint" + "name": "isRegularVillager", + "type": "bool" }, { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_action_bar": [ - "container", - [ - { - "name": "text", - "type": "anonymousNbt" + "name": "canRestock", + "type": "bool" } ] ], - "packet_world_border_center": [ + "packet_unload_chunk": [ "container", [ { - "name": "x", - "type": "f64" + "name": "chunkZ", + "type": "i32" }, { - "name": "z", - "type": "f64" + "name": "chunkX", + "type": "i32" } ] ], - "packet_world_border_lerp_size": [ + "packet_unlock_recipes": [ "container", [ { - "name": "oldDiameter", - "type": "f64" + "name": "action", + "type": "varint" }, { - "name": "newDiameter", - "type": "f64" + "name": "craftingBookOpen", + "type": "bool" }, { - "name": "speed", - "type": "varint" - } - ] - ], - "packet_world_border_size": [ - "container", - [ - { - "name": "diameter", - "type": "f64" - } - ] - ], - "packet_world_border_warning_delay": [ - "container", - [ - { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_world_border_warning_reach": [ - "container", - [ - { - "name": "warningBlocks", - "type": "varint" - } - ] - ], - "packet_ping": [ - "container", - [ + "name": "filteringCraftable", + "type": "bool" + }, { - "name": "id", - "type": "i32" - } - ] - ], - "packet_ping_response": [ - "container", - [ + "name": "smeltingBookOpen", + "type": "bool" + }, { - "name": "id", - "type": "i64" - } - ] - ], - "packet_set_title_subtitle": [ - "container", - [ + "name": "filteringSmeltable", + "type": "bool" + }, { - "name": "text", - "type": "anonymousNbt" - } - ] - ], - "packet_set_title_text": [ - "container", - [ + "name": "blastFurnaceOpen", + "type": "bool" + }, { - "name": "text", - "type": "anonymousNbt" - } - ] - ], - "packet_set_title_time": [ - "container", - [ + "name": "filteringBlastFurnace", + "type": "bool" + }, { - "name": "fadeIn", - "type": "i32" + "name": "smokerBookOpen", + "type": "bool" }, { - "name": "stay", - "type": "i32" + "name": "filteringSmoker", + "type": "bool" }, { - "name": "fadeOut", - "type": "i32" - } - ] - ], - "packet_simulation_distance": [ - "container", - [ - { - "name": "distance", - "type": "varint" - } - ] - ], - "packet_chunk_biomes": [ - "container", - [ - { - "name": "biomes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "position", - "type": "packedChunkPos" - }, - { - "name": "data", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] - } - ] - } - ] - ], - "packet_damage_event": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "sourceTypeId", - "type": "varint" - }, - { - "name": "sourceCauseId", - "type": "varint" - }, - { - "name": "sourceDirectId", - "type": "varint" - }, - { - "name": "sourcePosition", - "type": [ - "option", - "vec3f64" - ] - } - ] - ], - "packet_hurt_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "f32" - } - ] - ], - "packet_start_configuration": [ - "container", - [] - ], - "packet_set_ticking_state": [ - "container", - [ - { - "name": "tick_rate", - "type": "f32" - }, - { - "name": "is_frozen", - "type": "bool" - } - ] - ], - "packet_step_tick": [ - "container", - [ - { - "name": "tick_steps", - "type": "varint" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "spawn_entity_experience_orb", - "0x03": "animation", - "0x04": "statistics", - "0x05": "acknowledge_player_digging", - "0x06": "block_break_animation", - "0x07": "tile_entity_data", - "0x08": "block_action", - "0x09": "block_change", - "0x0a": "boss_bar", - "0x0b": "difficulty", - "0x0c": "chunk_batch_finished", - "0x0d": "chunk_batch_start", - "0x0e": "chunk_biomes", - "0x0f": "clear_titles", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "close_window", - "0x13": "window_items", - "0x14": "craft_progress_bar", - "0x15": "set_slot", - "0x16": "set_cooldown", - "0x17": "chat_suggestions", - "0x18": "custom_payload", - "0x19": "damage_event", - "0x1a": "hide_message", - "0x1b": "kick_disconnect", - "0x1c": "profileless_chat", - "0x1d": "entity_status", - "0x1e": "explosion", - "0x1f": "unload_chunk", - "0x20": "game_state_change", - "0x21": "open_horse_window", - "0x22": "hurt_animation", - "0x23": "initialize_world_border", - "0x24": "keep_alive", - "0x25": "map_chunk", - "0x26": "world_event", - "0x27": "world_particles", - "0x28": "update_light", - "0x29": "login", - "0x2a": "map", - "0x2b": "trade_list", - "0x2c": "rel_entity_move", - "0x2d": "entity_move_look", - "0x2e": "entity_look", - "0x2f": "vehicle_move", - "0x30": "open_book", - "0x31": "open_window", - "0x32": "open_sign_entity", - "0x33": "ping", - "0x34": "ping_response", - "0x35": "craft_recipe_response", - "0x36": "abilities", - "0x37": "player_chat", - "0x38": "end_combat_event", - "0x39": "enter_combat_event", - "0x3a": "death_combat_event", - "0x3b": "player_remove", - "0x3c": "player_info", - "0x3d": "face_player", - "0x3e": "position", - "0x3f": "unlock_recipes", - "0x40": "entity_destroy", - "0x41": "remove_entity_effect", - "0x42": "reset_score", - "0x43": "remove_resource_pack", - "0x44": "add_resource_pack", - "0x45": "respawn", - "0x46": "entity_head_rotation", - "0x47": "multi_block_change", - "0x48": "select_advancement_tab", - "0x49": "server_data", - "0x4a": "action_bar", - "0x4b": "world_border_center", - "0x4c": "world_border_lerp_size", - "0x4d": "world_border_size", - "0x4e": "world_border_warning_delay", - "0x4f": "world_border_warning_reach", - "0x50": "camera", - "0x51": "held_item_slot", - "0x52": "update_view_position", - "0x53": "update_view_distance", - "0x54": "spawn_position", - "0x55": "scoreboard_display_objective", - "0x56": "entity_metadata", - "0x57": "attach_entity", - "0x58": "entity_velocity", - "0x59": "entity_equipment", - "0x5a": "experience", - "0x5b": "update_health", - "0x5c": "scoreboard_objective", - "0x5d": "set_passengers", - "0x5e": "teams", - "0x5f": "scoreboard_score", - "0x60": "simulation_distance", - "0x61": "set_title_subtitle", - "0x62": "update_time", - "0x63": "set_title_text", - "0x64": "set_title_time", - "0x65": "entity_sound_effect", - "0x66": "sound_effect", - "0x67": "start_configuration", - "0x68": "stop_sound", - "0x69": "system_chat", - "0x6a": "playerlist_header", - "0x6b": "nbt_query_response", - "0x6c": "collect", - "0x6d": "entity_teleport", - "0x6e": "set_ticking_state", - "0x6f": "step_tick", - "0x70": "advancements", - "0x71": "entity_update_attributes", - "0x72": "entity_effect", - "0x73": "declare_recipes", - "0x74": "tags" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "bundle_delimiter": "void", - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "animation": "packet_animation", - "statistics": "packet_statistics", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "chunk_batch_finished": "packet_chunk_batch_finished", - "chunk_batch_start": "packet_chunk_batch_start", - "chunk_biomes": "packet_chunk_biomes", - "clear_titles": "packet_clear_titles", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "close_window": "packet_close_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "chat_suggestions": "packet_chat_suggestions", - "custom_payload": "packet_custom_payload", - "damage_event": "packet_damage_event", - "hide_message": "packet_hide_message", - "kick_disconnect": "packet_kick_disconnect", - "profileless_chat": "packet_profileless_chat", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "hurt_animation": "packet_hurt_animation", - "initialize_world_border": "packet_initialize_world_border", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_window": "packet_open_window", - "open_sign_entity": "packet_open_sign_entity", - "ping": "packet_ping", - "ping_response": "packet_ping_response", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "player_chat": "packet_player_chat", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_remove": "packet_player_remove", - "player_info": "packet_player_info", - "face_player": "packet_face_player", - "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "reset_score": "packet_reset_score", - "remove_resource_pack": "packet_remove_resource_pack", - "add_resource_pack": "packet_add_resource_pack", - "respawn": "packet_respawn", - "entity_head_rotation": "packet_entity_head_rotation", - "multi_block_change": "packet_multi_block_change", - "select_advancement_tab": "packet_select_advancement_tab", - "server_data": "packet_server_data", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "spawn_position": "packet_spawn_position", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "set_title_subtitle": "packet_set_title_subtitle", - "update_time": "packet_update_time", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time", - "entity_sound_effect": "packet_entity_sound_effect", - "sound_effect": "packet_sound_effect", - "start_configuration": "packet_start_configuration", - "stop_sound": "packet_stop_sound", - "system_chat": "packet_system_chat", - "playerlist_header": "packet_playerlist_header", - "nbt_query_response": "packet_nbt_query_response", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "advancements": "packet_advancements", - "entity_update_attributes": "packet_entity_update_attributes", - "entity_effect": "packet_entity_effect", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "set_ticking_state": "packet_set_ticking_state", - "step_tick": "packet_step_tick" + "name": "recipes1", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "recipes2", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_update_health": [ "container", [ { - "name": "teleportId", + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" + }, + { + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_query_block_nbt": [ + "packet_update_light": [ "container", [ { - "name": "transactionId", + "name": "chunkX", "type": "varint" }, { - "name": "location", - "type": "position" - } - ] - ], - "packet_chat_command": [ - "container", - [ + "name": "chunkZ", + "type": "varint" + }, { - "name": "command", - "type": "string" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "timestamp", - "type": "i64" + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "salt", - "type": "i64" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "argumentSignatures", + "name": "emptyBlockLightMask", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "argumentName", - "type": "string" - }, - { - "name": "signature", - "type": [ - "buffer", - { - "count": 256 - } - ] - } - ] - ] + "type": "i64" } ] }, { - "name": "messageCount", - "type": "varint" + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] }, { - "name": "acknowledged", + "name": "blockLight", "type": [ - "buffer", + "array", { - "count": 3 + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] } ] } ] ], - "packet_chat_message": [ + "packet_update_time": [ "container", [ { - "name": "message", - "type": "string" - }, - { - "name": "timestamp", + "name": "age", "type": "i64" }, { - "name": "salt", + "name": "time", "type": "i64" - }, - { - "name": "signature", - "type": [ - "option", - [ - "buffer", - { - "count": 256 - } - ] - ] - }, + } + ] + ], + "packet_update_view_distance": [ + "container", + [ { - "name": "offset", + "name": "viewDistance", "type": "varint" - }, - { - "name": "acknowledged", - "type": [ - "buffer", - { - "count": 3 - } - ] } ] ], - "packet_set_difficulty": [ + "packet_update_view_position": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" } ] ], - "packet_message_acknowledgement": [ + "packet_vehicle_move": [ "container", [ { - "name": "count", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_edit_book": [ + "packet_window_items": [ "container", [ { - "name": "hand", + "name": "windowId", + "type": "u8" + }, + { + "name": "stateId", "type": "varint" }, { - "name": "pages", + "name": "items", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "slot" } ] }, { - "name": "title", - "type": [ - "option", - "string" - ] + "name": "carriedItem", + "type": "slot" + } + ] + ], + "packet_world_border_center": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_world_border_lerp_size": [ + "container", + [ + { + "name": "oldDiameter", + "type": "f64" + }, + { + "name": "newDiameter", + "type": "f64" + }, + { + "name": "speed", + "type": "varint" } ] ], - "packet_query_entity_nbt": [ + "packet_world_border_size": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, + "name": "diameter", + "type": "f64" + } + ] + ], + "packet_world_border_warning_delay": [ + "container", + [ { - "name": "entityId", + "name": "warningTime", "type": "varint" } ] ], - "packet_pick_item": [ + "packet_world_border_warning_reach": [ "container", [ { - "name": "slot", + "name": "warningBlocks", "type": "varint" } ] ], - "packet_name_item": [ + "packet_world_event": [ "container", [ { - "name": "name", - "type": "string" + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" } ] ], - "packet_select_trade": [ + "packet_world_particles": [ "container", [ { - "name": "slot", + "name": "particleId", "type": "varint" + }, + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] } ] - ], - "packet_set_beacon_effect": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "primary_effect", + "name": "name", "type": [ - "option", - "varint" + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "message_acknowledgement", + "0x04": "chat_command", + "0x05": "chat_message", + "0x06": "chat_session_update", + "0x07": "chunk_batch_received", + "0x08": "client_command", + "0x09": "settings", + "0x0a": "tab_complete", + "0x0b": "configuration_acknowledged", + "0x0c": "enchant_item", + "0x0d": "window_click", + "0x0e": "close_window", + "0x0f": "set_slot_state", + "0x10": "custom_payload", + "0x11": "edit_book", + "0x12": "query_entity_nbt", + "0x13": "use_entity", + "0x14": "generate_structure", + "0x15": "keep_alive", + "0x16": "lock_difficulty", + "0x17": "position", + "0x18": "position_look", + "0x19": "look", + "0x1a": "flying", + "0x1b": "vehicle_move", + "0x1c": "steer_boat", + "0x1d": "pick_item", + "0x1e": "ping_request", + "0x1f": "craft_recipe_request", + "0x20": "abilities", + "0x21": "block_dig", + "0x22": "entity_action", + "0x23": "steer_vehicle", + "0x24": "pong", + "0x25": "recipe_book", + "0x26": "displayed_recipe", + "0x27": "name_item", + "0x28": "resource_pack_receive", + "0x29": "advancement_tab", + "0x2a": "select_trade", + "0x2b": "set_beacon_effect", + "0x2c": "held_item_slot", + "0x2d": "update_command_block", + "0x2e": "update_command_block_minecart", + "0x2f": "set_creative_slot", + "0x30": "update_jigsaw_block", + "0x31": "update_structure_block", + "0x32": "update_sign", + "0x33": "arm_animation", + "0x34": "spectate", + "0x35": "block_place", + "0x36": "use_item" + }, + "type": "varint" + } ] }, { - "name": "secondary_effect", + "name": "params", "type": [ - "option", - "varint" + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat_command": "packet_chat_command", + "chat_message": "packet_chat_message", + "chat_session_update": "packet_chat_session_update", + "chunk_batch_received": "packet_chunk_batch_received", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "configuration_acknowledged": "packet_configuration_acknowledged", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_payload": "packet_custom_payload", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "message_acknowledgement": "packet_message_acknowledgement", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "ping_request": "packet_ping_request", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "set_slot_state": "packet_set_slot_state", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" + } + } ] } ] ], - "packet_update_command_block": [ + "packet_abilities": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, + "name": "flags", + "type": "i8" + } + ] + ], + "packet_advancement_tab": [ + "container", + [ { - "name": "mode", + "name": "action", "type": "varint" }, { - "name": "flags", - "type": "u8" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_update_command_block_minecart": [ + "packet_arm_animation": [ "container", [ { - "name": "entityId", + "name": "hand", "type": "varint" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "track_output", - "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_block_dig": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", + "name": "status", "type": "varint" }, { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "offset_z", + "name": "face", "type": "i8" }, { - "name": "size_x", - "type": "i8" - }, + "name": "sequence", + "type": "varint" + } + ] + ], + "packet_block_place": [ + "container", + [ { - "name": "size_y", - "type": "i8" + "name": "hand", + "type": "varint" }, { - "name": "size_z", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "mirror", + "name": "direction", "type": "varint" }, { - "name": "rotation", - "type": "varint" + "name": "cursorX", + "type": "f32" }, { - "name": "metadata", - "type": "string" + "name": "cursorY", + "type": "f32" }, { - "name": "integrity", + "name": "cursorZ", "type": "f32" }, { - "name": "seed", - "type": "varint" + "name": "insideBlock", + "type": "bool" }, { - "name": "flags", - "type": "u8" + "name": "sequence", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chat_command": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "command", + "type": "string" }, { - "name": "text", - "type": "string" - } - ] - ], - "packet_client_command": [ - "container", - [ + "name": "timestamp", + "type": "i64" + }, { - "name": "actionId", + "name": "salt", + "type": "i64" + }, + { + "name": "argumentSignatures", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "argumentName", + "type": "string" + }, + { + "name": "signature", + "type": [ + "buffer", + { + "count": 256 + } + ] + } + ] + ] + } + ] + }, + { + "name": "messageCount", "type": "varint" + }, + { + "name": "acknowledged", + "type": [ + "buffer", + { + "count": 3 + } + ] } ] ], - "packet_settings": [ + "packet_chat_message": [ "container", [ { - "name": "locale", + "name": "message", "type": "string" }, { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" + "name": "timestamp", + "type": "i64" }, { - "name": "chatColors", - "type": "bool" + "name": "salt", + "type": "i64" }, { - "name": "skinParts", - "type": "u8" + "name": "signature", + "type": [ + "option", + [ + "buffer", + { + "count": 256 + } + ] + ] }, { - "name": "mainHand", + "name": "offset", "type": "varint" }, { - "name": "enableTextFiltering", - "type": "bool" - }, - { - "name": "enableServerListing", - "type": "bool" - } - ] - ], - "packet_enchant_item": [ - "container", - [ - { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "acknowledged", + "type": [ + "buffer", + { + "count": 3 + } + ] } ] ], - "packet_window_click": [ + "packet_chat_session_update": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" + "name": "sessionUUID", + "type": "UUID" }, { - "name": "mouseButton", - "type": "i8" + "name": "expireTime", + "type": "i64" }, { - "name": "mode", - "type": "varint" + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "changedSlots", + "name": "signature", "type": [ - "array", + "buffer", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ] + "countType": "varint" } ] - }, + } + ] + ], + "packet_chunk_batch_received": [ + "container", + [ { - "name": "cursorItem", - "type": "slot" + "name": "chunksPerTick", + "type": "f32" + } + ] + ], + "packet_client_command": [ + "container", + [ + { + "name": "actionId", + "type": "varint" } ] ], @@ -6416,6 +6345,27 @@ } ] ], + "packet_configuration_acknowledged": [ + "container", + [] + ], + "packet_craft_recipe_request": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "recipe", + "type": "string" + }, + { + "name": "makeAll", + "type": "bool" + } + ] + ], "packet_custom_payload": [ "container", [ @@ -6429,72 +6379,76 @@ } ] ], - "packet_use_entity": [ + "packet_displayed_recipe": [ "container", [ { - "name": "target", - "type": "varint" - }, + "name": "recipeId", + "type": "string" + } + ] + ], + "packet_edit_book": [ + "container", + [ { - "name": "mouse", + "name": "hand", "type": "varint" }, { - "name": "x", + "name": "pages", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" + "countType": "varint", + "type": "string" } ] }, { - "name": "y", + "name": "title", "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } + "option", + "string" ] + } + ] + ], + "packet_enchant_item": [ + "container", + [ + { + "name": "windowId", + "type": "i8" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "enchantment", + "type": "i8" + } + ] + ], + "packet_entity_action": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "actionId", + "type": "varint" }, { - "name": "sneaking", + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ + { + "name": "onGround", "type": "bool" } ] @@ -6516,6 +6470,15 @@ } ] ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slotId", + "type": "i16" + } + ] + ], "packet_keep_alive": [ "container", [ @@ -6534,6 +6497,68 @@ } ] ], + "packet_look": [ + "container", + [ + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_message_acknowledgement": [ + "container", + [ + { + "name": "count", + "type": "varint" + } + ] + ], + "packet_name_item": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] + ], + "packet_ping_request": [ + "container", + [ + { + "name": "id", + "type": "i64" + } + ] + ], + "packet_pong": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], "packet_position": [ "container", [ @@ -6584,131 +6609,185 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "location", + "type": "position" + } + ] + ], + "packet_query_entity_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_flying": [ + "packet_recipe_book": [ "container", [ { - "name": "onGround", + "name": "bookId", + "type": "varint" + }, + { + "name": "bookOpen", + "type": "bool" + }, + { + "name": "filterActive", "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_resource_pack_receive": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "result", + "type": "varint" + } + ] + ], + "packet_select_trade": [ + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] + ], + "packet_set_beacon_effect": [ + "container", + [ + { + "name": "primary_effect", + "type": [ + "option", + "varint" + ] + }, + { + "name": "secondary_effect", + "type": [ + "option", + "varint" + ] + } + ] + ], + "packet_set_creative_slot": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" + "name": "slot", + "type": "i16" }, { - "name": "pitch", - "type": "f32" + "name": "item", + "type": "slot" } ] ], - "packet_steer_boat": [ + "packet_set_difficulty": [ "container", [ { - "name": "leftPaddle", - "type": "bool" - }, - { - "name": "rightPaddle", - "type": "bool" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_craft_recipe_request": [ + "packet_set_slot_state": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "slot_id", + "type": "varint" }, { - "name": "recipe", - "type": "string" + "name": "window_id", + "type": "varint" }, { - "name": "makeAll", + "name": "state", "type": "bool" } ] ], - "packet_abilities": [ + "packet_settings": [ "container", [ { - "name": "flags", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", "type": "i8" - } - ] - ], - "packet_block_dig": [ - "container", - [ + }, { - "name": "status", + "name": "chatFlags", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "chatColors", + "type": "bool" }, { - "name": "face", - "type": "i8" + "name": "skinParts", + "type": "u8" }, { - "name": "sequence", + "name": "mainHand", "type": "varint" + }, + { + "name": "enableTextFiltering", + "type": "bool" + }, + { + "name": "enableServerListing", + "type": "bool" } ] ], - "packet_entity_action": [ + "packet_spectate": [ "container", [ { - "name": "entityId", - "type": "varint" - }, + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -6729,64 +6808,63 @@ } ] ], - "packet_displayed_recipe": [ + "packet_tab_complete": [ "container", [ { - "name": "recipeId", + "name": "transactionId", + "type": "varint" + }, + { + "name": "text", "type": "string" } ] ], - "packet_recipe_book": [ + "packet_teleport_confirm": [ "container", [ { - "name": "bookId", + "name": "teleportId", "type": "varint" - }, - { - "name": "bookOpen", - "type": "bool" - }, - { - "name": "filterActive", - "type": "bool" } ] ], - "packet_resource_pack_receive": [ + "packet_update_command_block": [ "container", [ { - "name": "uuid", - "type": "UUID" + "name": "location", + "type": "position" }, { - "name": "result", + "name": "command", + "type": "string" + }, + { + "name": "mode", "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + }, { - "name": "slotId", - "type": "i16" + "name": "flags", + "type": "u8" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block_minecart": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -6856,309 +6934,231 @@ } ] ], - "packet_arm_animation": [ + "packet_update_structure_block": [ "container", [ { - "name": "hand", - "type": "varint" - } - ] - ], - "packet_spectate": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ + "name": "action", + "type": "varint" + }, { - "name": "hand", + "name": "mode", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "name", + "type": "string" }, { - "name": "direction", - "type": "varint" + "name": "offset_x", + "type": "i8" }, { - "name": "cursorX", - "type": "f32" + "name": "offset_y", + "type": "i8" }, { - "name": "cursorY", - "type": "f32" + "name": "offset_z", + "type": "i8" }, { - "name": "cursorZ", - "type": "f32" + "name": "size_x", + "type": "i8" }, { - "name": "insideBlock", - "type": "bool" + "name": "size_y", + "type": "i8" }, { - "name": "sequence", + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", "type": "varint" - } - ] - ], - "packet_use_item": [ - "container", - [ + }, { - "name": "hand", + "name": "rotation", "type": "varint" }, { - "name": "sequence", + "name": "metadata", + "type": "string" + }, + { + "name": "integrity", + "type": "f32" + }, + { + "name": "seed", "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_advancement_tab": [ + "packet_use_entity": [ "container", [ { - "name": "action", + "name": "target", + "type": "varint" + }, + { + "name": "mouse", "type": "varint" }, { - "name": "tabId", + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "y", "type": [ "switch", { - "compareTo": "action", + "compareTo": "mouse", + "default": "void", "fields": { - "0": "string", - "1": "void" + "2": "f32" } } ] - } - ] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_chat_session_update": [ - "container", - [ - { - "name": "sessionUUID", - "type": "UUID" - }, - { - "name": "expireTime", - "type": "i64" }, { - "name": "publicKey", + "name": "z", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } } ] }, { - "name": "signature", + "name": "hand", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } } ] + }, + { + "name": "sneaking", + "type": "bool" } ] ], - "packet_chunk_batch_received": [ + "packet_use_item": [ "container", [ { - "name": "chunksPerTick", - "type": "f32" + "name": "hand", + "type": "varint" + }, + { + "name": "sequence", + "type": "varint" } ] ], - "packet_configuration_acknowledged": [ - "container", - [] - ], - "packet_ping_request": [ + "packet_vehicle_move": [ "container", [ { - "name": "id", - "type": "i64" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_set_slot_state": [ + "packet_window_click": [ "container", [ { - "name": "slot_id", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "window_id", + "name": "stateId", "type": "varint" }, { - "name": "state", - "type": "bool" - } - ] - ], - "packet": [ - "container", - [ + "name": "slot", + "type": "i16" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "message_acknowledgement", - "0x04": "chat_command", - "0x05": "chat_message", - "0x06": "chat_session_update", - "0x07": "chunk_batch_received", - "0x08": "client_command", - "0x09": "settings", - "0x0a": "tab_complete", - "0x0b": "configuration_acknowledged", - "0x0c": "enchant_item", - "0x0d": "window_click", - "0x0e": "close_window", - "0x0f": "set_slot_state", - "0x10": "custom_payload", - "0x11": "edit_book", - "0x12": "query_entity_nbt", - "0x13": "use_entity", - "0x14": "generate_structure", - "0x15": "keep_alive", - "0x16": "lock_difficulty", - "0x17": "position", - "0x18": "position_look", - "0x19": "look", - "0x1a": "flying", - "0x1b": "vehicle_move", - "0x1c": "steer_boat", - "0x1d": "pick_item", - "0x1e": "ping_request", - "0x1f": "craft_recipe_request", - "0x20": "abilities", - "0x21": "block_dig", - "0x22": "entity_action", - "0x23": "steer_vehicle", - "0x24": "pong", - "0x25": "recipe_book", - "0x26": "displayed_recipe", - "0x27": "name_item", - "0x28": "resource_pack_receive", - "0x29": "advancement_tab", - "0x2a": "select_trade", - "0x2b": "set_beacon_effect", - "0x2c": "held_item_slot", - "0x2d": "update_command_block", - "0x2e": "update_command_block_minecart", - "0x2f": "set_creative_slot", - "0x30": "update_jigsaw_block", - "0x31": "update_structure_block", - "0x32": "update_sign", - "0x33": "arm_animation", - "0x34": "spectate", - "0x35": "block_place", - "0x36": "use_item" - } - } - ] + "name": "mouseButton", + "type": "i8" }, { - "name": "params", + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "message_acknowledgement": "packet_message_acknowledgement", - "chat_command": "packet_chat_command", - "chat_message": "packet_chat_message", - "client_command": "packet_client_command", - "settings": "packet_settings", - "tab_complete": "packet_tab_complete", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "pick_item": "packet_pick_item", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "pong": "packet_pong", - "chat_session_update": "packet_chat_session_update", - "recipe_book": "packet_recipe_book", - "displayed_recipe": "packet_displayed_recipe", - "name_item": "packet_name_item", - "resource_pack_receive": "packet_resource_pack_receive", - "advancement_tab": "packet_advancement_tab", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "held_item_slot": "packet_held_item_slot", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_structure_block": "packet_update_structure_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "chunk_batch_received": "packet_chunk_batch_received", - "configuration_acknowledged": "packet_configuration_acknowledged", - "ping_request": "packet_ping_request", - "set_slot_state": "packet_set_slot_state" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "slot" + } + ] + ] } ] + }, + { + "name": "cursorItem", + "type": "slot" } ] ] diff --git a/data/pc/1.20.5/protocol.json b/data/pc/1.20.5/protocol.json index f58c75027..aea4468b5 100644 --- a/data/pc/1.20.5/protocol.json +++ b/data/pc/1.20.5/protocol.json @@ -1,117 +1,156 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "anonymousNbt": "native", - "anonOptionalNbt": "native", - "registryEntryHolder": "native", - "registryEntryHolderSet": "native", - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3f": [ + "ArmorTrimMaterial": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetName", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "ingredientId", + "type": "varint" }, { - "name": "z", - "type": "f32" + "name": "overrideArmorAssets", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + }, + { + "name": "description", + "type": "anonymousNbt" } ] ], - "vec4f": [ + "ArmorTrimPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "templateItemId", + "type": "varint" }, { - "name": "z", - "type": "f32" + "name": "description", + "type": "anonymousNbt" }, { - "name": "w", - "type": "f32" + "name": "decal", + "type": "bool" } ] ], - "vec3f64": [ + "BannerPattern": [ "container", [ { - "name": "x", - "type": "f64" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f64" + "name": "translationKey", + "type": "string" + } + ] + ], + "BannerPatternLayer": [ + "container", + [ + { + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "BannerPattern" + } + } + ] }, { - "name": "z", - "type": "f64" + "name": "colorId", + "type": "varint" } ] ], - "vec3i16": [ + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "ContainerID": "u8", + "EntityMetadataPaintingVariant": [ "container", [ { - "name": "x", - "type": "i16" + "name": "width", + "type": "i32" }, { - "name": "y", - "type": "i16" + "name": "height", + "type": "i32" }, { - "name": "z", - "type": "i16" + "name": "assetId", + "type": "string" + }, + { + "name": "title", + "type": [ + "option", + "anonymousNbt" + ] + }, + { + "name": "author", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ], + "EntityMetadataWolfVariant": [ + "container", + [ + { + "name": "wildTexture", + "type": "string" + }, + { + "name": "tameTexture", + "type": "string" + }, + { + "name": "angryTexture", + "type": "string" + }, + { + "name": "biome", + "type": "IDSet" } ] ], @@ -128,473 +167,593 @@ } } ], - "ContainerID": "u8", - "SlotComponentType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "custom_data", - "1": "max_stack_size", - "2": "max_damage", - "3": "damage", - "4": "unbreakable", - "5": "custom_name", - "6": "item_name", - "7": "lore", - "8": "rarity", - "9": "enchantments", - "10": "can_place_on", - "11": "can_break", - "12": "attribute_modifiers", - "13": "custom_model_data", - "14": "hide_additional_tooltip", - "15": "hide_tooltip", - "16": "repair_cost", - "17": "creative_slot_lock", - "18": "enchantment_glint_override", - "19": "intangible_projectile", - "20": "food", - "21": "fire_resistant", - "22": "tool", - "23": "stored_enchantments", - "24": "dyed_color", - "25": "map_color", - "26": "map_id", - "27": "map_decorations", - "28": "map_post_processing", - "29": "charged_projectiles", - "30": "bundle_contents", - "31": "potion_contents", - "32": "suspicious_stew_effects", - "33": "writable_book_content", - "34": "written_book_content", - "35": "trim", - "36": "debug_stick_state", - "37": "entity_data", - "38": "bucket_entity_data", - "39": "block_entity_data", - "40": "instrument", - "41": "ominous_bottle_amplifier", - "42": "recipes", - "43": "lodestone_tracker", - "44": "firework_explosion", - "45": "fireworks", - "46": "profile", - "47": "note_block_sound", - "48": "banner_patterns", - "49": "base_color", - "50": "pot_decorations", - "51": "container", - "52": "block_state", - "53": "bees", - "54": "lock", - "55": "container_loot" - } - } - ], - "SlotComponent": [ + "InstrumentData": [ "container", [ { - "name": "type", - "type": "SlotComponentType" + "name": "soundEvent", + "type": "ItemSoundHolder" }, { - "name": "data", - "type": [ + "name": "useDuration", + "type": "f32" + }, + { + "name": "range", + "type": "f32" + }, + { + "name": "description", + "type": "anonymousNbt" + } + ] + ], + "ItemBlockPredicate": [ + "container", + [ + { + "name": "blockSet", + "type": [ + "option", + [ + "registryEntryHolderSet", + { + "base": { + "name": "name", + "type": "string" + }, + "otherwise": { + "name": "blockIds", + "type": "varint" + } + } + ] + ] + }, + { + "name": "properties", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": "ItemBlockProperty" + } + ] + ] + }, + { + "name": "nbt", + "type": "anonOptionalNbt" + } + ] + ], + "ItemBlockProperty": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "isExactMatch", + "type": "bool" + }, + { + "name": "value", + "type": [ "switch", { - "compareTo": "type", + "compareTo": "isExactMatch", "fields": { - "custom_data": "anonymousNbt", - "max_stack_size": "varint", - "max_damage": "varint", - "damage": "varint", - "unbreakable": "bool", - "custom_name": "anonymousNbt", - "item_name": "anonymousNbt", - "lore": [ - "array", - { - "countType": "varint", - "type": "anonOptionalNbt" - } - ], - "rarity": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "common", - "1": "uncommon", - "2": "rare", - "3": "epic" - } - } - ], - "enchantments": [ - "container", - [ - { - "name": "enchantments", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] - } - ] - }, - { - "name": "showTooltip", - "type": "bool" - } - ] - ], - "can_place_on": [ - "container", - [ - { - "name": "predicates", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBlockPredicate" - } - ] - }, - { - "name": "showTooltip", - "type": "bool" - } - ] - ], - "can_break": [ + "false": [ "container", [ { - "name": "predicates", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBlockPredicate" - } - ] + "name": "minValue", + "type": "string" }, { - "name": "showTooltip", - "type": "bool" + "name": "maxValue", + "type": "string" } ] ], - "attribute_modifiers": [ + "true": [ "container", [ { - "name": "attributes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "typeId", - "type": "varint" - }, - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "operation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "add", - "1": "multiply_base", - "2": "multiply_total" - } - } - ] - }, - { - "name": "slot", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "any", - "1": "main_hand", - "2": "off_hand", - "3": "hand", - "4": "feet", - "5": "legs", - "6": "chest", - "7": "head", - "8": "armor", - "9": "body" - } - } - ] - } - ] - ] - } - ] - }, - { - "name": "showTooltip", - "type": "bool" + "name": "exactValue", + "type": "string" } ] - ], - "custom_model_data": "varint", - "hide_additional_tooltip": "void", - "hide_tooltip": "void", - "repair_cost": "varint", - "creative_slot_lock": "void", - "enchantment_glint_override": "bool", - "intangible_projectile": "anonymousNbt", - "food": [ - "container", - [ - { - "name": "nutrition", - "type": "varint" - }, - { - "name": "saturationModifier", - "type": "f32" - }, - { - "name": "canAlwaysEat", - "type": "bool" - }, - { - "name": "secondsToEat", - "type": "f32" + ] + } + } + ] + } + ] + ], + "ItemBookPage": [ + "container", + [ + { + "name": "content", + "type": "string" + }, + { + "name": "filteredContent", + "type": [ + "option", + "string" + ] + } + ] + ], + "ItemEffectDetail": [ + "container", + [ + { + "name": "amplifier", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "ambient", + "type": "bool" + }, + { + "name": "showParticles", + "type": "bool" + }, + { + "name": "showIcon", + "type": "bool" + }, + { + "name": "hiddenEffect", + "type": [ + "option", + "ItemEffectDetail" + ] + } + ] + ], + "ItemFireworkExplosion": [ + "container", + [ + { + "name": "shape", + "type": [ + "mapper", + { + "mappings": { + "0": "small_ball", + "1": "large_ball", + "2": "star", + "3": "creeper", + "4": "burst" + }, + "type": "varint" + } + ] + }, + { + "name": "colors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] + }, + { + "name": "fadeColors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] + }, + { + "name": "hasTrail", + "type": "bool" + }, + { + "name": "hasTwinkle", + "type": "bool" + } + ] + ], + "ItemPotionEffect": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "details", + "type": "ItemEffectDetail" + } + ] + ], + "ItemSoundEvent": [ + "container", + [ + { + "name": "soundName", + "type": "string" + }, + { + "name": "fixedRange", + "type": [ + "option", + "f32" + ] + } + ] + ], + "ItemSoundHolder": [ + "registryEntryHolder", + { + "baseName": "soundId", + "otherwise": { + "name": "data", + "type": "ItemSoundEvent" + } + } + ], + "ItemWrittenBookPage": [ + "container", + [ + { + "name": "content", + "type": "anonymousNbt" + }, + { + "name": "filteredContent", + "type": "anonOptionalNbt" + } + ] + ], + "Particle": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "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": "gust", + "24": "small_gust", + "25": "gust_emitter_large", + "26": "gust_emitter_small", + "27": "sonic_boom", + "28": "falling_dust", + "29": "firework", + "30": "fishing", + "31": "flame", + "32": "infested", + "33": "cherry_leaves", + "34": "sculk_soul", + "35": "sculk_charge", + "36": "sculk_charge_pop", + "37": "soul_fire_flame", + "38": "soul", + "39": "flash", + "40": "happy_villager", + "41": "composter", + "42": "heart", + "43": "instant_effect", + "44": "item", + "45": "vibration", + "46": "item_slime", + "47": "item_cobweb", + "48": "item_snowball", + "49": "large_smoke", + "50": "lava", + "51": "mycelium", + "52": "note", + "53": "poof", + "54": "portal", + "55": "rain", + "56": "smoke", + "57": "white_smoke", + "58": "sneeze", + "59": "spit", + "60": "squid_ink", + "61": "sweep_attack", + "62": "totem_of_undying", + "63": "underwater", + "64": "splash", + "65": "witch", + "66": "bubble_pop", + "67": "current_down", + "68": "bubble_column_up", + "69": "nautilus", + "70": "dolphin", + "71": "campfire_cosy_smoke", + "72": "campfire_signal_smoke", + "73": "dripping_honey", + "74": "falling_honey", + "75": "landing_honey", + "76": "falling_nectar", + "77": "falling_spore_blossom", + "78": "ash", + "79": "crimson_spore", + "80": "warped_spore", + "81": "spore_blossom_air", + "82": "dripping_obsidian_tear", + "83": "falling_obsidian_tear", + "84": "landing_obsidian_tear", + "85": "reverse_portal", + "86": "white_ash", + "87": "small_flame", + "88": "snowflake", + "89": "dripping_dripstone_lava", + "90": "falling_dripstone_lava", + "91": "dripping_dripstone_water", + "92": "falling_dripstone_water", + "93": "glow_squid_ink", + "94": "glow", + "95": "wax_on", + "96": "wax_off", + "97": "electric_spark", + "98": "scrape", + "99": "shriek", + "100": "egg_crack", + "101": "dust_plume", + "102": "trial_spawner_detected_player", + "103": "trial_spawner_detected_player_ominous", + "104": "vault_connection", + "105": "dust_pillar", + "106": "ominous_spawning", + "107": "raid_omen", + "108": "trial_omen" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "block": "varint", + "block_marker": "varint", + "dust": [ + "container", + [ + { + "name": "red", + "type": "f32" }, { - "name": "usingConvertsTo", - "type": "Slot" + "name": "green", + "type": "f32" }, { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "effect", - "type": "varint" - }, - { - "name": "probability", - "type": "f32" - } - ] - ] - } - ] + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" } ] ], - "fire_resistant": "void", - "tool": [ + "dust_color_transition": [ "container", [ { - "name": "rules", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "blocks", - "type": "IDSet" - }, - { - "name": "speed", - "type": [ - "option", - "f32" - ] - }, - { - "name": "correctDropForBlocks", - "type": [ - "option", - "bool" - ] - } - ] - ] - } - ] + "name": "fromRed", + "type": "f32" }, { - "name": "defaultMiningSpeed", + "name": "fromGreen", "type": "f32" }, { - "name": "damagePerBlock", - "type": "varint" - } - ] - ], - "stored_enchantments": [ - "container", - [ - { - "name": "enchantments", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] - } - ] + "name": "fromBlue", + "type": "f32" }, { - "name": "showInTooltip", - "type": "bool" - } - ] - ], - "dyed_color": [ - "container", - [ + "name": "scale", + "type": "f32" + }, { - "name": "color", - "type": "i32" + "name": "toRed", + "type": "f32" }, { - "name": "showTooltip", - "type": "bool" - } - ] - ], - "map_color": "i32", - "map_id": "varint", - "map_decorations": "anonymousNbt", - "map_post_processing": "varint", - "charged_projectiles": [ - "container", - [ + "name": "toGreen", + "type": "f32" + }, { - "name": "projectiles", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] + "name": "toBlue", + "type": "f32" } ] ], - "bundle_contents": [ + "dust_pillar": "varint", + "entity_effect": "i32", + "falling_dust": "varint", + "item": "Slot", + "sculk_charge": "f32", + "shriek": "varint", + "vibration": [ "container", [ { - "name": "contents", + "name": "positionType", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": "Slot" + "mappings": { + "0": "block", + "1": "entity" + }, + "type": "varint" } ] - } - ] - ], - "potion_contents": [ - "container", - [ - { - "name": "potionId", - "type": [ - "option", - "varint" - ] - }, - { - "name": "customColor", - "type": [ - "option", - "i32" - ] }, { - "name": "customEffects", + "name": "position", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "ItemPotionEffect" + "compareTo": "positionType", + "fields": { + "block": "position", + "entity": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "entityEyeHeight", + "type": "f32" + } + ] + ] + } } ] }, { - "name": "customName", - "type": [ - "option", - "string" - ] + "name": "ticks", + "type": "varint" } ] - ], - "suspicious_stew_effects": [ + ] + } + } + ] + } + ] + ], + "Slot": [ + "container", + [ + { + "name": "itemCount", + "type": "i8" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "itemCount", + "default": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "removedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "SlotComponent" + } + ] + }, + { + "name": "removeComponents", + "type": [ + "array", + { + "count": "removedComponentCount", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] + } + ] + ], + "fields": { + "0": "void" + } + } + ] + } + ] + ], + "SlotComponent": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "attribute_modifiers": [ "container", [ { - "name": "effects", + "name": "attributes", "type": [ "array", { @@ -603,189 +762,118 @@ "container", [ { - "name": "effect", + "name": "typeId", "type": "varint" }, { - "name": "duration", - "type": "varint" + "name": "uuid", + "type": "UUID" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "operation", + "type": [ + "mapper", + { + "mappings": { + "0": "add", + "1": "multiply_base", + "2": "multiply_total" + }, + "type": "varint" + } + ] + }, + { + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "any", + "1": "main_hand", + "2": "off_hand", + "3": "hand", + "4": "feet", + "5": "legs", + "6": "chest", + "7": "head", + "8": "armor", + "9": "body" + }, + "type": "varint" + } + ] } ] ] } ] - } - ] - ], - "writable_book_content": [ - "container", - [ - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBookPage" - } - ] - } - ] - ], - "written_book_content": [ - "container", - [ - { - "name": "rawTitle", - "type": "string" - }, - { - "name": "filteredTitle", - "type": [ - "option", - "string" - ] - }, - { - "name": "author", - "type": "string" - }, - { - "name": "generation", - "type": "varint" - }, - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemWrittenBookPage" - } - ] }, { - "name": "resolved", + "name": "showTooltip", "type": "bool" } ] ], - "trim": [ + "banner_patterns": [ "container", [ { - "name": "material", - "type": [ - "registryEntryHolder", - { - "baseName": "materialId", - "otherwise": { - "name": "data", - "type": "ArmorTrimMaterial" - } - } - ] - }, - { - "name": "pattern", + "name": "layers", "type": [ - "registryEntryHolder", + "array", { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "ArmorTrimPattern" - } + "countType": "varint", + "type": "BannerPatternLayer" } ] - }, - { - "name": "showInTooltip", - "type": "bool" - } - ] - ], - "debug_stick_state": "anonymousNbt", - "entity_data": "anonymousNbt", - "bucket_entity_data": "anonymousNbt", - "block_entity_data": "anonymousNbt", - "instrument": [ - "registryEntryHolder", - { - "baseName": "instrumentId", - "otherwise": { - "name": "data", - "type": "InstrumentData" - } - } - ], - "ominous_bottle_amplifier": "varint", - "recipes": "anonymousNbt", - "lodestone_tracker": [ - "container", - [ - { - "name": "globalPosition", - "type": [ - "option", - [ - "container", - [ - { - "name": "dimension", - "type": "string" - }, - { - "name": "position", - "type": "position" - } - ] - ] - ] - }, - { - "name": "tracked", - "type": "bool" } ] ], - "firework_explosion": "ItemFireworkExplosion", - "fireworks": [ + "base_color": "varint", + "bees": [ "container", [ { - "name": "flightDuration", - "type": "varint" - }, - { - "name": "explosions", + "name": "bees", "type": [ "array", { "countType": "varint", - "type": "ItemFireworkExplosion" + "type": [ + "container", + [ + { + "name": "nbtData", + "type": "anonymousNbt" + }, + { + "name": "ticksInHive", + "type": "varint" + }, + { + "name": "minTicksInHive", + "type": "varint" + } + ] + ] } ] } ] ], - "profile": [ + "block_entity_data": "anonymousNbt", + "block_state": [ "container", [ - { - "name": "name", - "type": [ - "option", - "string" - ] - }, - { - "name": "uuid", - "type": [ - "option", - "UUID" - ] - }, { "name": "properties", "type": [ @@ -802,13 +890,6 @@ { "name": "value", "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] } ] ] @@ -817,1191 +898,652 @@ } ] ], - "note_block_sound": "string", - "banner_patterns": [ + "bucket_entity_data": "anonymousNbt", + "bundle_contents": [ "container", [ { - "name": "layers", + "name": "contents", "type": [ "array", { "countType": "varint", - "type": "BannerPatternLayer" + "type": "Slot" } ] } ] ], - "base_color": "varint", - "pot_decorations": [ + "can_break": [ "container", [ { - "name": "decorations", + "name": "predicates", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": "ItemBlockPredicate" } ] + }, + { + "name": "showTooltip", + "type": "bool" } ] ], - "container": [ + "can_place_on": [ "container", [ { - "name": "contents", + "name": "predicates", "type": [ "array", { "countType": "varint", - "type": "Slot" + "type": "ItemBlockPredicate" } ] + }, + { + "name": "showTooltip", + "type": "bool" } ] ], - "block_state": [ + "charged_projectiles": [ "container", [ { - "name": "properties", + "name": "projectiles", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] + "type": "Slot" } ] } ] ], - "bees": [ + "container": [ "container", [ { - "name": "bees", + "name": "contents", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "nbtData", - "type": "anonymousNbt" - }, - { - "name": "ticksInHive", - "type": "varint" - }, - { - "name": "minTicksInHive", - "type": "varint" - } - ] - ] + "type": "Slot" } ] } ] ], - "lock": "anonymousNbt", - "container_loot": "anonymousNbt" - } - } - ] - } - ] - ], - "ItemSoundEvent": [ - "container", - [ - { - "name": "soundName", - "type": "string" - }, - { - "name": "fixedRange", - "type": [ - "option", - "f32" - ] - } - ] - ], - "ItemSoundHolder": [ - "registryEntryHolder", - { - "baseName": "soundId", - "otherwise": { - "name": "data", - "type": "ItemSoundEvent" - } - } - ], - "ItemFireworkExplosion": [ - "container", - [ - { - "name": "shape", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "small_ball", - "1": "large_ball", - "2": "star", - "3": "creeper", - "4": "burst" - } - } - ] - }, - { - "name": "colors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "fadeColors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "hasTrail", - "type": "bool" - }, - { - "name": "hasTwinkle", - "type": "bool" - } - ] - ], - "ItemEffectDetail": [ - "container", - [ - { - "name": "amplifier", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "ambient", - "type": "bool" - }, - { - "name": "showParticles", - "type": "bool" - }, - { - "name": "showIcon", - "type": "bool" - }, - { - "name": "hiddenEffect", - "type": [ - "option", - "ItemEffectDetail" - ] - } - ] - ], - "ItemPotionEffect": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "details", - "type": "ItemEffectDetail" - } - ] - ], - "ItemBlockProperty": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "isExactMatch", - "type": "bool" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "isExactMatch", - "fields": { - "true": [ - "container", - [ - { - "name": "exactValue", - "type": "string" - } - ] - ], - "false": [ + "container_loot": "anonymousNbt", + "creative_slot_lock": "void", + "custom_data": "anonymousNbt", + "custom_model_data": "varint", + "custom_name": "anonymousNbt", + "damage": "varint", + "debug_stick_state": "anonymousNbt", + "dyed_color": [ "container", [ - { - "name": "minValue", - "type": "string" + { + "name": "color", + "type": "i32" }, { - "name": "maxValue", - "type": "string" + "name": "showTooltip", + "type": "bool" } ] - ] - } - } - ] - } - ] - ], - "ItemBlockPredicate": [ - "container", - [ - { - "name": "blockSet", - "type": [ - "option", - [ - "registryEntryHolderSet", - { - "base": { - "name": "name", - "type": "string" - }, - "otherwise": { - "name": "blockIds", - "type": "varint" - } - } - ] - ] - }, - { - "name": "properties", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": "ItemBlockProperty" - } - ] - ] - }, - { - "name": "nbt", - "type": "anonOptionalNbt" - } - ] - ], - "ItemBookPage": [ - "container", - [ - { - "name": "content", - "type": "string" - }, - { - "name": "filteredContent", - "type": [ - "option", - "string" - ] - } - ] - ], - "ItemWrittenBookPage": [ - "container", - [ - { - "name": "content", - "type": "anonymousNbt" - }, - { - "name": "filteredContent", - "type": "anonOptionalNbt" - } - ] - ], - "ArmorTrimMaterial": [ - "container", - [ - { - "name": "assetName", - "type": "string" - }, - { - "name": "ingredientId", - "type": "varint" - }, - { - "name": "overrideArmorAssets", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] - }, - { - "name": "description", - "type": "anonymousNbt" - } - ] - ], - "ArmorTrimPattern": [ - "container", - [ - { - "name": "assetId", - "type": "string" - }, - { - "name": "templateItemId", - "type": "varint" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "decal", - "type": "bool" - } - ] - ], - "InstrumentData": [ - "container", - [ - { - "name": "soundEvent", - "type": "ItemSoundHolder" - }, - { - "name": "useDuration", - "type": "f32" - }, - { - "name": "range", - "type": "f32" - }, - { - "name": "description", - "type": "anonymousNbt" - } - ] - ], - "BannerPattern": [ - "container", - [ - { - "name": "assetId", - "type": "string" - }, - { - "name": "translationKey", - "type": "string" - } - ] - ], - "BannerPatternLayer": [ - "container", - [ - { - "name": "pattern", - "type": [ - "registryEntryHolder", - { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "BannerPattern" - } - } - ] - }, - { - "name": "colorId", - "type": "varint" - } - ] - ], - "Slot": [ - "container", - [ - { - "name": "itemCount", - "type": "i8" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "itemCount", - "fields": { - "0": "void" - }, - "default": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "removedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "SlotComponent" - } - ] - }, - { - "name": "removeComponents", - "type": [ - "array", - { - "count": "removedComponentCount", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } + ], + "enchantment_glint_override": "bool", + "enchantments": [ + "container", + [ + { + "name": "enchantments", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] ] - ] - } - ] + } + ] + }, + { + "name": "showTooltip", + "type": "bool" + } + ] + ], + "entity_data": "anonymousNbt", + "fire_resistant": "void", + "firework_explosion": "ItemFireworkExplosion", + "fireworks": [ + "container", + [ + { + "name": "flightDuration", + "type": "varint" + }, + { + "name": "explosions", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemFireworkExplosion" + } + ] + } + ] + ], + "food": [ + "container", + [ + { + "name": "nutrition", + "type": "varint" + }, + { + "name": "saturationModifier", + "type": "f32" + }, + { + "name": "canAlwaysEat", + "type": "bool" + }, + { + "name": "secondsToEat", + "type": "f32" + }, + { + "name": "usingConvertsTo", + "type": "Slot" + }, + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "effect", + "type": "varint" + }, + { + "name": "probability", + "type": "f32" + } + ] + ] + } + ] + } + ] + ], + "hide_additional_tooltip": "void", + "hide_tooltip": "void", + "instrument": [ + "registryEntryHolder", + { + "baseName": "instrumentId", + "otherwise": { + "name": "data", + "type": "InstrumentData" + } } - ] - ] - } - ] - } - ] - ], - "Particle": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "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": "gust", - "24": "small_gust", - "25": "gust_emitter_large", - "26": "gust_emitter_small", - "27": "sonic_boom", - "28": "falling_dust", - "29": "firework", - "30": "fishing", - "31": "flame", - "32": "infested", - "33": "cherry_leaves", - "34": "sculk_soul", - "35": "sculk_charge", - "36": "sculk_charge_pop", - "37": "soul_fire_flame", - "38": "soul", - "39": "flash", - "40": "happy_villager", - "41": "composter", - "42": "heart", - "43": "instant_effect", - "44": "item", - "45": "vibration", - "46": "item_slime", - "47": "item_cobweb", - "48": "item_snowball", - "49": "large_smoke", - "50": "lava", - "51": "mycelium", - "52": "note", - "53": "poof", - "54": "portal", - "55": "rain", - "56": "smoke", - "57": "white_smoke", - "58": "sneeze", - "59": "spit", - "60": "squid_ink", - "61": "sweep_attack", - "62": "totem_of_undying", - "63": "underwater", - "64": "splash", - "65": "witch", - "66": "bubble_pop", - "67": "current_down", - "68": "bubble_column_up", - "69": "nautilus", - "70": "dolphin", - "71": "campfire_cosy_smoke", - "72": "campfire_signal_smoke", - "73": "dripping_honey", - "74": "falling_honey", - "75": "landing_honey", - "76": "falling_nectar", - "77": "falling_spore_blossom", - "78": "ash", - "79": "crimson_spore", - "80": "warped_spore", - "81": "spore_blossom_air", - "82": "dripping_obsidian_tear", - "83": "falling_obsidian_tear", - "84": "landing_obsidian_tear", - "85": "reverse_portal", - "86": "white_ash", - "87": "small_flame", - "88": "snowflake", - "89": "dripping_dripstone_lava", - "90": "falling_dripstone_lava", - "91": "dripping_dripstone_water", - "92": "falling_dripstone_water", - "93": "glow_squid_ink", - "94": "glow", - "95": "wax_on", - "96": "wax_off", - "97": "electric_spark", - "98": "scrape", - "99": "shriek", - "100": "egg_crack", - "101": "dust_plume", - "102": "trial_spawner_detected_player", - "103": "trial_spawner_detected_player_ominous", - "104": "vault_connection", - "105": "dust_pillar", - "106": "ominous_spawning", - "107": "raid_omen", - "108": "trial_omen" - } - } - ] - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "block": "varint", - "block_marker": "varint", - "falling_dust": "varint", - "dust_pillar": "varint", - "dust": [ + ], + "intangible_projectile": "anonymousNbt", + "item_name": "anonymousNbt", + "lock": "anonymousNbt", + "lodestone_tracker": [ "container", [ { - "name": "red", - "type": "f32" + "name": "globalPosition", + "type": [ + "option", + [ + "container", + [ + { + "name": "dimension", + "type": "string" + }, + { + "name": "position", + "type": "position" + } + ] + ] + ] }, { - "name": "green", - "type": "f32" + "name": "tracked", + "type": "bool" + } + ] + ], + "lore": [ + "array", + { + "countType": "varint", + "type": "anonOptionalNbt" + } + ], + "map_color": "i32", + "map_decorations": "anonymousNbt", + "map_id": "varint", + "map_post_processing": "varint", + "max_damage": "varint", + "max_stack_size": "varint", + "note_block_sound": "string", + "ominous_bottle_amplifier": "varint", + "pot_decorations": [ + "container", + [ + { + "name": "decorations", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "potion_contents": [ + "container", + [ + { + "name": "potionId", + "type": [ + "option", + "varint" + ] }, { - "name": "blue", - "type": "f32" + "name": "customColor", + "type": [ + "option", + "i32" + ] }, { - "name": "scale", - "type": "f32" + "name": "customEffects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemPotionEffect" + } + ] + }, + { + "name": "customName", + "type": [ + "option", + "string" + ] } ] ], - "dust_color_transition": [ + "profile": [ "container", [ { - "name": "fromRed", - "type": "f32" + "name": "name", + "type": [ + "option", + "string" + ] }, { - "name": "fromGreen", - "type": "f32" + "name": "uuid", + "type": [ + "option", + "UUID" + ] }, { - "name": "fromBlue", - "type": "f32" + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + } + ] + ], + "rarity": [ + "mapper", + { + "mappings": { + "0": "common", + "1": "uncommon", + "2": "rare", + "3": "epic" }, + "type": "varint" + } + ], + "recipes": "anonymousNbt", + "repair_cost": "varint", + "stored_enchantments": [ + "container", + [ { - "name": "scale", - "type": "f32" + "name": "enchantments", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] + } + ] }, { - "name": "toRed", - "type": "f32" + "name": "showInTooltip", + "type": "bool" + } + ] + ], + "suspicious_stew_effects": [ + "container", + [ + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "effect", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "tool": [ + "container", + [ + { + "name": "rules", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "blocks", + "type": "IDSet" + }, + { + "name": "speed", + "type": [ + "option", + "f32" + ] + }, + { + "name": "correctDropForBlocks", + "type": [ + "option", + "bool" + ] + } + ] + ] + } + ] }, { - "name": "toGreen", + "name": "defaultMiningSpeed", "type": "f32" }, { - "name": "toBlue", - "type": "f32" + "name": "damagePerBlock", + "type": "varint" } ] ], - "entity_effect": "i32", - "item": "Slot", - "sculk_charge": "f32", - "shriek": "varint", - "vibration": [ + "trim": [ "container", [ { - "name": "positionType", + "name": "material", "type": [ - "mapper", + "registryEntryHolder", { - "type": "varint", - "mappings": { - "0": "block", - "1": "entity" + "baseName": "materialId", + "otherwise": { + "name": "data", + "type": "ArmorTrimMaterial" } } ] }, { - "name": "position", + "name": "pattern", "type": [ - "switch", + "registryEntryHolder", { - "compareTo": "positionType", - "fields": { - "block": "position", - "entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityEyeHeight", - "type": "f32" - } - ] - ] + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "ArmorTrimPattern" } } ] }, { - "name": "ticks", - "type": "varint" + "name": "showInTooltip", + "type": "bool" } ] - ] - } - } - ] - } - ] - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "soundSource": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "master", - "1": "music", - "2": "record", - "3": "weather", - "4": "block", - "5": "hostile", - "6": "neutral", - "7": "player", - "8": "ambient", - "9": "voice" - } - } - ], - "packedChunkPos": [ - "container", - [ - { - "name": "z", - "type": "i32" - }, - { - "name": "x", - "type": "i32" - } - ] - ], - "previousMessages": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] - } - ] - ] - } - ], - "entityMetadataEntry": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "byte", - "1": "int", - "2": "long", - "3": "float", - "4": "string", - "5": "component", - "6": "optional_component", - "7": "item_stack", - "8": "boolean", - "9": "rotations", - "10": "block_pos", - "11": "optional_block_pos", - "12": "direction", - "13": "optional_uuid", - "14": "block_state", - "15": "optional_block_state", - "16": "compound_tag", - "17": "particle", - "18": "particles", - "19": "villager_data", - "20": "optional_unsigned_int", - "21": "pose", - "22": "cat_variant", - "23": "wolf_variant", - "24": "frog_variant", - "25": "optional_global_pos", - "26": "painting_variant", - "27": "sniffer_state", - "28": "armadillo_state", - "29": "vector3", - "30": "quaternion" - } - } - ] - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "byte": "i8", - "int": "varint", - "long": "varlong", - "float": "f32", - "string": "string", - "component": "anonymousNbt", - "optional_component": [ - "option", - "anonymousNbt" ], - "item_stack": "Slot", - "boolean": "bool", - "rotations": [ + "unbreakable": "bool", + "writable_book_content": [ "container", [ { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBookPage" + } + ] } ] ], - "block_pos": "position", - "optional_block_pos": [ - "option", - "position" - ], - "direction": "varint", - "optional_uuid": [ - "option", - "UUID" - ], - "block_state": "varint", - "optional_block_state": "optvarint", - "compound_tag": "anonymousNbt", - "particle": "Particle", - "particles": [ - "array", - { - "countType": "varint", - "type": "Particle" - } - ], - "villager_data": [ + "written_book_content": [ "container", [ { - "name": "villagerType", + "name": "rawTitle", + "type": "string" + }, + { + "name": "filteredTitle", + "type": [ + "option", + "string" + ] + }, + { + "name": "author", + "type": "string" + }, + { + "name": "generation", "type": "varint" }, { - "name": "villagerProfession", - "type": "varint" + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemWrittenBookPage" + } + ] }, { - "name": "level", - "type": "varint" + "name": "resolved", + "type": "bool" } ] - ], - "optional_unsigned_int": "optvarint", - "pose": "varint", - "cat_variant": "varint", - "wolf_variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "EntityMetadataWolfVariant" - } - } - ], - "frog_variant": "varint", - "optional_global_pos": [ - "option", - "string" - ], - "painting_variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "EntityMetadataPaintingVariant" - } - } - ], - "sniffer_state": "varint", - "armadillo_state": "varint", - "vector3": "vec3f", - "quaternion": "vec4f" + ] } } ] } ] ], - "EntityMetadataPaintingVariant": [ - "container", - [ - { - "name": "width", - "type": "i32" - }, - { - "name": "height", - "type": "i32" - }, - { - "name": "assetId", - "type": "string" - }, - { - "name": "title", - "type": [ - "option", - "anonymousNbt" - ] - }, - { - "name": "author", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ], - "EntityMetadataWolfVariant": [ - "container", - [ - { - "name": "wildTexture", - "type": "string" - }, - { - "name": "tameTexture", - "type": "string" - }, - { - "name": "angryTexture", - "type": "string" - }, - { - "name": "biome", - "type": "IDSet" - } - ] - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": "entityMetadataEntry" - } - ], - "minecraft_simple_recipe_format": [ - "container", - [ - { - "name": "category", - "type": "varint" - } - ] - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "Slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", + "SlotComponentType": [ + "mapper", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "chunkBlockEntity": [ - "container", - [ - { - "anon": true, - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "nbtData", - "type": "anonOptionalNbt" - } - ] + "mappings": { + "0": "custom_data", + "1": "max_stack_size", + "2": "max_damage", + "3": "damage", + "4": "unbreakable", + "5": "custom_name", + "6": "item_name", + "7": "lore", + "8": "rarity", + "9": "enchantments", + "10": "can_place_on", + "11": "can_break", + "12": "attribute_modifiers", + "13": "custom_model_data", + "14": "hide_additional_tooltip", + "15": "hide_tooltip", + "16": "repair_cost", + "17": "creative_slot_lock", + "18": "enchantment_glint_override", + "19": "intangible_projectile", + "20": "food", + "21": "fire_resistant", + "22": "tool", + "23": "stored_enchantments", + "24": "dyed_color", + "25": "map_color", + "26": "map_id", + "27": "map_decorations", + "28": "map_post_processing", + "29": "charged_projectiles", + "30": "bundle_contents", + "31": "potion_contents", + "32": "suspicious_stew_effects", + "33": "writable_book_content", + "34": "written_book_content", + "35": "trim", + "36": "debug_stick_state", + "37": "entity_data", + "38": "bucket_entity_data", + "39": "block_entity_data", + "40": "instrument", + "41": "ominous_bottle_amplifier", + "42": "recipes", + "43": "lodestone_tracker", + "44": "firework_explosion", + "45": "fireworks", + "46": "profile", + "47": "note_block_sound", + "48": "banner_patterns", + "49": "base_color", + "50": "pot_decorations", + "51": "container", + "52": "block_state", + "53": "bees", + "54": "lock", + "55": "container_loot" + }, + "type": "varint" + } ], + "UUID": "native", + "anonOptionalNbt": "native", + "anonymousNbt": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", "chat_session": [ "option", [ @@ -2044,41 +1586,38 @@ ] ] ], - "game_profile": [ + "chunkBlockEntity": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "properties", + "anon": true, "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } + "bitfield", + [ + { + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 + } + ] ] + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" } ] ], @@ -2092,28 +1631,28 @@ [ { "name": "unused", - "size": 3, - "signed": false + "signed": false, + "size": 3 }, { "name": "has_custom_suggestions", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_redirect_node", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "command_node_type", - "size": 2, - "signed": false + "signed": false, + "size": 2 } ] ] @@ -2134,10 +1673,10 @@ "switch", { "compareTo": "flags/has_redirect_node", + "default": "void", "fields": { "1": "varint" - }, - "default": "void" + } } ] }, @@ -2170,7 +1709,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "brigadier:bool", "1": "brigadier:float", @@ -2226,7 +1764,8 @@ "51": "minecraft:loot_predicate", "52": "minecraft:loot_modifier", "53": "minecraft:uuid" - } + }, + "type": "varint" } ] }, @@ -2238,7 +1777,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -2248,18 +1787,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -2270,10 +1809,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -2283,16 +1822,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -2302,18 +1841,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -2324,10 +1863,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -2337,10 +1876,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -2356,18 +1895,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -2378,10 +1917,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -2391,10 +1930,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -2410,18 +1949,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -2432,10 +1971,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -2445,10 +1984,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -2457,45 +1996,52 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:gamemode": "void", + "minecraft:heightmap": "void", + "minecraft:int_range": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", "minecraft:nbt": "void", "minecraft:nbt_path": "void", @@ -2503,43 +2049,25 @@ "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", + "minecraft:resource": [ + "container", [ { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false + "name": "registry", + "type": "string" } ] ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:dimension": "void", - "minecraft:gamemode": "void", - "minecraft:time": [ + "minecraft:resource_key": [ "container", [ { - "name": "min", - "type": "i32" + "name": "registry", + "type": "string" } ] ], + "minecraft:resource_location": "void", "minecraft:resource_or_tag": [ "container", [ @@ -2558,48 +2086,429 @@ } ] ], - "minecraft:resource": [ - "container", + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", [ { - "name": "registry", - "type": "string" + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 } ] ], - "minecraft:resource_key": [ + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:template_mirror": "void", + "minecraft:template_rotation": "void", + "minecraft:time": [ "container", [ { - "name": "registry", - "type": "string" + "name": "min", + "type": "i32" } ] ], - "minecraft:template_mirror": "void", - "minecraft:template_rotation": "void", - "minecraft:heightmap": "void", - "minecraft:uuid": "void" + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" + } + } + ] + }, + { + "name": "suggestionType", + "type": [ + "switch", + { + "compareTo": "../flags/has_custom_suggestions", + "default": "void", + "fields": { + "1": "string" } } ] + } + ] + ] + } + } + ] + } + ] + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": "entityMetadataEntry" + } + ], + "entityMetadataEntry": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "compound_tag", + "17": "particle", + "18": "particles", + "19": "villager_data", + "20": "optional_unsigned_int", + "21": "pose", + "22": "cat_variant", + "23": "wolf_variant", + "24": "frog_variant", + "25": "optional_global_pos", + "26": "painting_variant", + "27": "sniffer_state", + "28": "armadillo_state", + "29": "vector3", + "30": "quaternion" + }, + "type": "varint" + } + ] + }, + { + "name": "value", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "armadillo_state": "varint", + "block_pos": "position", + "block_state": "varint", + "boolean": "bool", + "byte": "i8", + "cat_variant": "varint", + "component": "anonymousNbt", + "compound_tag": "anonymousNbt", + "direction": "varint", + "float": "f32", + "frog_variant": "varint", + "int": "varint", + "item_stack": "Slot", + "long": "varlong", + "optional_block_pos": [ + "option", + "position" + ], + "optional_block_state": "optvarint", + "optional_component": [ + "option", + "anonymousNbt" + ], + "optional_global_pos": [ + "option", + "string" + ], + "optional_unsigned_int": "optvarint", + "optional_uuid": [ + "option", + "UUID" + ], + "painting_variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "EntityMetadataPaintingVariant" + } + } + ], + "particle": "Particle", + "particles": [ + "array", + { + "countType": "varint", + "type": "Particle" + } + ], + "pose": "varint", + "quaternion": "vec4f", + "rotations": [ + "container", + [ + { + "name": "pitch", + "type": "f32" }, { - "name": "suggestionType", - "type": [ - "switch", - { - "compareTo": "../flags/has_custom_suggestions", - "fields": { - "1": "string" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "sniffer_state": "varint", + "string": "string", + "vector3": "vec3f", + "villager_data": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" } ] + ], + "wolf_variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "EntityMetadataWolfVariant" + } + } + ] + } + } + ] + } + ] + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "game_profile": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + } + ] + ], + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ], + "minecraft_simple_recipe_format": [ + "container", + [ + { + "name": "category", + "type": "varint" + } + ] + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "Slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "option": "native", + "optvarint": "varint", + "packedChunkPos": [ + "container", + [ + { + "name": "z", + "type": "i32" + }, + { + "name": "x", + "type": "i32" + } + ] + ], + "packet_common_add_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "url", + "type": "string" + }, + { + "name": "hash", + "type": "string" + }, + { + "name": "forced", + "type": "bool" + }, + { + "name": "promptMessage", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ], + "packet_common_cookie_request": [ + "container", + [ + { + "name": "cookie", + "type": "string" + } + ] + ], + "packet_common_cookie_response": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "ByteArray" + ] + } + ] + ], + "packet_common_remove_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": [ + "option", + "UUID" + ] + } + ] + ], + "packet_common_select_known_packs": [ + "container", + [ + { + "name": "packs", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "namespace", + "type": "string" + }, + { + "name": "id", + "type": "string" + }, + { + "name": "version", + "type": "string" + } ] - } + ] } ] } @@ -2642,15 +2551,6 @@ } ] ], - "packet_common_cookie_request": [ - "container", - [ - { - "name": "cookie", - "type": "string" - } - ] - ], "packet_common_store_cookie": [ "container", [ @@ -2677,93 +2577,193 @@ } ] ], - "packet_common_cookie_response": [ - "container", + "position": [ + "bitfield", [ { - "name": "key", - "type": "string" + "name": "x", + "signed": true, + "size": 26 }, { - "name": "value", - "type": [ - "option", - "ByteArray" - ] + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 } ] ], - "packet_common_select_known_packs": [ - "container", - [ - { - "name": "packs", - "type": [ - "array", + "previousMessages": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ { - "countType": "varint", + "name": "id", + "type": "varint" + }, + { + "name": "signature", "type": [ - "container", - [ - { - "name": "namespace", - "type": "string" - }, - { - "name": "id", - "type": "string" - }, - { - "name": "version", - "type": "string" + "switch", + { + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] } - ] + } + ] + } + ] + ] + } + ], + "pstring": "native", + "registryEntryHolder": "native", + "registryEntryHolderSet": "native", + "restBuffer": "native", + "soundSource": [ + "mapper", + { + "mappings": { + "0": "master", + "1": "music", + "2": "record", + "3": "weather", + "4": "block", + "5": "hostile", + "6": "neutral", + "7": "player", + "8": "ambient", + "9": "voice" + }, + "type": "varint" + } + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } ] } ] + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" } ] ], - "packet_common_remove_resource_pack": [ + "vec3f64": [ "container", [ { - "name": "uuid", - "type": [ - "option", - "UUID" - ] + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_common_add_resource_pack": [ + "vec3i16": [ "container", [ { - "name": "uuid", - "type": "UUID" + "name": "x", + "type": "i16" }, { - "name": "url", - "type": "string" + "name": "y", + "type": "i16" }, { - "name": "hash", - "type": "string" + "name": "z", + "type": "i16" + } + ] + ], + "vec4f": [ + "container", + [ + { + "name": "x", + "type": "f32" }, { - "name": "forced", - "type": "bool" + "name": "y", + "type": "f32" }, { - "name": "promptMessage", - "type": [ - "option", - "anonymousNbt" - ] + "name": "z", + "type": "f32" + }, + { + "name": "w", + "type": "f32" } ] - ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -2776,8 +2776,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -2797,6 +2797,46 @@ }, "toServer": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", + [ + { + "name": "payload", + "type": "u8" + } + ] + ], "packet_set_protocol": [ "container", [ @@ -2817,16 +2857,13 @@ "type": "varint" } ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -2835,11 +2872,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -2850,38 +2887,36 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_ping": [ + "packet_server_info": [ "container", [ { - "name": "time", - "type": "i64" + "name": "response", + "type": "string" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -2890,11 +2925,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "server_info", + "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -2905,21 +2940,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -2930,6 +2957,16 @@ } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -2938,11 +2975,15 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request", + "0x05": "cookie_request" + }, + "type": "varint" } ] }, @@ -2953,20 +2994,27 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "compress": "packet_compress", + "cookie_request": "packet_common_cookie_request", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -3007,6 +3055,23 @@ } ] ], + "packet_login_plugin_request": [ + "container", + [ + { + "name": "messageId", + "type": "varint" + }, + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], "packet_success": [ "container", [ @@ -3052,33 +3117,11 @@ "type": "bool" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], - "packet_login_plugin_request": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -3087,15 +3130,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", + "0x00": "login_start", "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request", - "0x05": "cookie_request" - } + "0x02": "login_plugin_response", + "0x03": "login_acknowledged", + "0x04": "cookie_response" + }, + "type": "varint" } ] }, @@ -3106,34 +3148,16 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", + "cookie_response": "packet_common_cookie_response", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request", - "cookie_request": "packet_common_cookie_request" + "login_acknowledged": "packet_login_acknowledged", + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - }, - { - "name": "playerUUID", - "type": "UUID" - } - ] ], "packet_encryption_begin": [ "container", @@ -3158,6 +3182,10 @@ } ] ], + "packet_login_acknowledged": [ + "container", + [] + ], "packet_login_plugin_response": [ "container", [ @@ -3174,10 +3202,25 @@ } ] ], - "packet_login_acknowledged": [ + "packet_login_start": [ "container", - [] - ], + [ + { + "name": "username", + "type": "string" + }, + { + "name": "playerUUID", + "type": "UUID" + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { "packet": [ "container", [ @@ -3186,14 +3229,24 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response", - "0x03": "login_acknowledged", - "0x04": "cookie_response" - } + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs" + }, + "type": "varint" } ] }, @@ -3204,23 +3257,27 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response", - "login_acknowledged": "packet_login_acknowledged", - "cookie_response": "packet_common_cookie_response" + "add_resource_pack": "packet_common_add_resource_pack", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" } } ] } ] - ] - } - } - }, - "configuration": { - "toClient": { - "types": { + ], "packet_custom_payload": [ "container", [ @@ -3243,6 +3300,21 @@ } ] ], + "packet_feature_flags": [ + "container", + [ + { + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], "packet_finish_configuration": [ "container", [] @@ -3265,10 +3337,6 @@ } ] ], - "packet_reset_chat": [ - "container", - [] - ], "packet_registry_data": [ "container", [ @@ -3303,20 +3371,9 @@ } ] ], - "packet_feature_flags": [ + "packet_reset_chat": [ "container", - [ - { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] + [] ], "packet_tags": [ "container", @@ -3344,7 +3401,11 @@ ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -3353,24 +3414,17 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", "0x03": "finish_configuration", "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs" - } + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs" + }, + "type": "varint" } ] }, @@ -3381,31 +3435,20 @@ { "compareTo": "name", "fields": { - "cookie_request": "packet_common_cookie_request", + "cookie_response": "packet_common_cookie_response", "custom_payload": "packet_custom_payload", - "disconnect": "packet_disconnect", "finish_configuration": "packet_finish_configuration", "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "reset_chat": "packet_reset_chat", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "store_cookie": "packet_common_store_cookie", - "transfer": "packet_common_transfer", - "feature_flags": "packet_feature_flags", - "tags": "packet_tags", - "select_known_packs": "packet_common_select_known_packs" + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "select_known_packs": "packet_common_select_known_packs", + "settings": "packet_common_settings" } } ] } ] - ] - } - }, - "toServer": { - "types": { + ], "packet_custom_payload": [ "container", [ @@ -3449,7 +3492,140 @@ "type": "UUID" }, { - "name": "result", + "name": "result", + "type": "varint" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "ChatType": [ + "container", + [ + { + "name": "translationKey", + "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "ChatTypeParameterType" + } + ] + }, + { + "name": "style", + "type": "anonymousNbt" + } + ] + ], + "ChatTypeParameterType": [ + "mapper", + { + "mappings": { + "0": "content", + "1": "sender", + "2": "target" + }, + "type": "varint" + } + ], + "ChatTypes": [ + "container", + [ + { + "name": "chat", + "type": "ChatType" + }, + { + "name": "narration", + "type": "ChatType" + } + ] + ], + "PositionUpdateRelatives": [ + "bitflags", + { + "flags": [ + "x", + "y", + "z", + "yaw", + "pitch" + ], + "type": "u8" + } + ], + "SpawnInfo": [ + "container", + [ + { + "name": "dimension", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "hashedSeed", + "type": "i64" + }, + { + "name": "gamemode", + "type": [ + "mapper", + { + "mappings": { + "0": "survival", + "1": "creative", + "2": "adventure", + "3": "spectator" + }, + "type": "i8" + } + ] + }, + { + "name": "previousGamemode", + "type": "u8" + }, + { + "name": "isDebug", + "type": "bool" + }, + { + "name": "isFlat", + "type": "bool" + }, + { + "name": "death", + "type": [ + "option", + [ + "container", + [ + { + "name": "dimensionName", + "type": "string" + }, + { + "name": "location", + "type": "position" + } + ] + ] + ] + }, + { + "name": "portalCooldown", "type": "varint" } ] @@ -3462,17 +3638,131 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs" - } + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "spawn_entity_experience_orb", + "0x03": "animation", + "0x04": "statistics", + "0x05": "acknowledge_player_digging", + "0x06": "block_break_animation", + "0x07": "tile_entity_data", + "0x08": "block_action", + "0x09": "block_change", + "0x0a": "boss_bar", + "0x0b": "difficulty", + "0x0c": "chunk_batch_finished", + "0x0d": "chunk_batch_start", + "0x0e": "chunk_biomes", + "0x0f": "clear_titles", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "close_window", + "0x13": "window_items", + "0x14": "craft_progress_bar", + "0x15": "set_slot", + "0x16": "cookie_request", + "0x17": "set_cooldown", + "0x18": "chat_suggestions", + "0x19": "custom_payload", + "0x1a": "damage_event", + "0x1b": "debug_sample", + "0x1c": "hide_message", + "0x1d": "kick_disconnect", + "0x1e": "profileless_chat", + "0x1f": "entity_status", + "0x20": "explosion", + "0x21": "unload_chunk", + "0x22": "game_state_change", + "0x23": "open_horse_window", + "0x24": "hurt_animation", + "0x25": "initialize_world_border", + "0x26": "keep_alive", + "0x27": "map_chunk", + "0x28": "world_event", + "0x29": "world_particles", + "0x2a": "update_light", + "0x2b": "login", + "0x2c": "map", + "0x2d": "trade_list", + "0x2e": "rel_entity_move", + "0x2f": "entity_move_look", + "0x30": "entity_look", + "0x31": "vehicle_move", + "0x32": "open_book", + "0x33": "open_window", + "0x34": "open_sign_entity", + "0x35": "ping", + "0x36": "ping_response", + "0x37": "craft_recipe_response", + "0x38": "abilities", + "0x39": "player_chat", + "0x3a": "end_combat_event", + "0x3b": "enter_combat_event", + "0x3c": "death_combat_event", + "0x3d": "player_remove", + "0x3e": "player_info", + "0x3f": "face_player", + "0x40": "position", + "0x41": "unlock_recipes", + "0x42": "entity_destroy", + "0x43": "remove_entity_effect", + "0x44": "reset_score", + "0x45": "remove_resource_pack", + "0x46": "add_resource_pack", + "0x47": "respawn", + "0x48": "entity_head_rotation", + "0x49": "multi_block_change", + "0x4a": "select_advancement_tab", + "0x4b": "server_data", + "0x4c": "action_bar", + "0x4d": "world_border_center", + "0x4e": "world_border_lerp_size", + "0x4f": "world_border_size", + "0x50": "world_border_warning_delay", + "0x51": "world_border_warning_reach", + "0x52": "camera", + "0x53": "held_item_slot", + "0x54": "update_view_position", + "0x55": "update_view_distance", + "0x56": "spawn_position", + "0x57": "scoreboard_display_objective", + "0x58": "entity_metadata", + "0x59": "attach_entity", + "0x5a": "entity_velocity", + "0x5b": "entity_equipment", + "0x5c": "experience", + "0x5d": "update_health", + "0x5e": "scoreboard_objective", + "0x5f": "set_passengers", + "0x60": "teams", + "0x61": "scoreboard_score", + "0x62": "simulation_distance", + "0x63": "set_title_subtitle", + "0x64": "update_time", + "0x65": "set_title_text", + "0x66": "set_title_time", + "0x67": "entity_sound_effect", + "0x68": "sound_effect", + "0x69": "start_configuration", + "0x6a": "stop_sound", + "0x6b": "store_cookie", + "0x6c": "system_chat", + "0x6d": "playerlist_header", + "0x6e": "nbt_query_response", + "0x6f": "collect", + "0x70": "entity_teleport", + "0x71": "set_ticking_state", + "0x72": "step_tick", + "0x73": "transfer", + "0x74": "advancements", + "0x75": "entity_update_attributes", + "0x76": "entity_effect", + "0x77": "declare_recipes", + "0x78": "tags", + "0x79": "set_projectile_power" + }, + "type": "varint" } ] }, @@ -3483,185 +3773,317 @@ { "compareTo": "name", "fields": { - "settings": "packet_common_settings", - "cookie_response": "packet_common_cookie_response", + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "add_resource_pack": "packet_common_add_resource_pack", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "bundle_delimiter": "void", + "camera": "packet_camera", + "chat_suggestions": "packet_chat_suggestions", + "chunk_batch_finished": "packet_chunk_batch_finished", + "chunk_batch_start": "packet_chunk_batch_start", + "chunk_biomes": "packet_chunk_biomes", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "cookie_request": "packet_common_cookie_request", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", + "damage_event": "packet_damage_event", + "death_combat_event": "packet_death_combat_event", + "debug_sample": "packet_debug_sample", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "hide_message": "packet_hide_message", + "hurt_animation": "packet_hurt_animation", + "initialize_world_border": "packet_initialize_world_border", "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs" + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "ping_response": "packet_ping_response", + "player_chat": "packet_player_chat", + "player_info": "packet_player_info", + "player_remove": "packet_player_remove", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "profileless_chat": "packet_profileless_chat", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_score": "packet_reset_score", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "server_data": "packet_server_data", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_projectile_power": "packet_set_projectile_power", + "set_slot": "packet_set_slot", + "set_ticking_state": "packet_set_ticking_state", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_position": "packet_spawn_position", + "start_configuration": "packet_start_configuration", + "statistics": "packet_statistics", + "step_tick": "packet_step_tick", + "stop_sound": "packet_stop_sound", + "store_cookie": "packet_common_store_cookie", + "system_chat": "packet_system_chat", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "trade_list": "packet_trade_list", + "transfer": "packet_common_transfer", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "SpawnInfo": [ + ], + "packet_abilities": [ "container", [ { - "name": "dimension", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "hashedSeed", - "type": "i64" - }, - { - "name": "gamemode", - "type": [ - "mapper", - { - "type": "i8", - "mappings": { - "0": "survival", - "1": "creative", - "2": "adventure", - "3": "spectator" - } - } - ] - }, - { - "name": "previousGamemode", - "type": "u8" - }, - { - "name": "isDebug", - "type": "bool" - }, - { - "name": "isFlat", - "type": "bool" + "name": "flags", + "type": "i8" }, { - "name": "death", - "type": [ - "option", - [ - "container", - [ - { - "name": "dimensionName", - "type": "string" - }, - { - "name": "location", - "type": "position" - } - ] - ] - ] + "name": "flyingSpeed", + "type": "f32" }, { - "name": "portalCooldown", - "type": "varint" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "objectData", + "name": "sequenceId", "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_action_bar": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, + "name": "text", + "type": "anonymousNbt" + } + ] + ], + "packet_advancements": [ + "container", + [ { - "name": "y", - "type": "f64" + "name": "reset", + "type": "bool" }, { - "name": "z", - "type": "f64" + "name": "advancementMapping", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "container", + [ + { + "name": "parentId", + "type": [ + "option", + "string" + ] + }, + { + "name": "displayData", + "type": [ + "option", + [ + "container", + [ + { + "name": "title", + "type": "anonymousNbt" + }, + { + "name": "description", + "type": "anonymousNbt" + }, + { + "name": "icon", + "type": "Slot" + }, + { + "name": "frameType", + "type": "varint" + }, + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 29 + }, + { + "name": "hidden", + "signed": false, + "size": 1 + }, + { + "name": "show_toast", + "signed": false, + "size": 1 + }, + { + "name": "has_background_texture", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "backgroundTexture", + "type": [ + "switch", + { + "compareTo": "flags/has_background_texture", + "default": "void", + "fields": { + "1": "string" + } + } + ] + }, + { + "name": "xCord", + "type": "f32" + }, + { + "name": "yCord", + "type": "f32" + } + ] + ] + ] + }, + { + "name": "requirements", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + }, + { + "name": "sendsTelemtryData", + "type": "bool" + } + ] + ] + } + ] + ] + } + ] }, { - "name": "count", - "type": "i16" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "identifiers", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", + "name": "progressMapping", "type": [ "array", { @@ -3670,16 +4092,33 @@ "container", [ { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" + "name": "key", + "type": "string" }, { "name": "value", - "type": "varint" + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "criterionIdentifier", + "type": "string" + }, + { + "name": "criterionProgress", + "type": [ + "option", + "i64" + ] + } + ] + ] + } + ] } ] ] @@ -3688,16 +4127,7 @@ } ] ], - "packet_acknowledge_player_digging": [ - "container", - [ - { - "name": "sequenceId", - "type": "varint" - } - ] - ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -3705,29 +4135,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "anonOptionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -3752,6 +4174,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -3782,11 +4221,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "anonymousNbt", "3": "anonymousNbt" - }, - "default": "void" + } } ] }, @@ -3796,11 +4235,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -3810,11 +4249,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -3824,11 +4263,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -3838,26 +4277,41 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat_suggestions": [ + "container", + [ + { + "name": "action", + "type": "varint" }, { - "name": "difficultyLocked", - "type": "bool" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], @@ -3901,54 +4355,141 @@ } ] ], - "packet_clear_titles": [ + "packet_clear_titles": [ + "container", + [ + { + "name": "reset", + "type": "bool" + } + ] + ], + "packet_close_window": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", + "type": "varint" + }, + { + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_craft_recipe_response": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "recipe", + "type": "string" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_damage_event": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "sourceTypeId", + "type": "varint" + }, + { + "name": "sourceCauseId", + "type": "varint" + }, + { + "name": "sourceDirectId", + "type": "varint" + }, + { + "name": "sourcePosition", + "type": [ + "option", + "vec3f64" + ] + } + ] + ], + "packet_death_combat_event": [ "container", [ { - "name": "reset", - "type": "bool" + "name": "playerId", + "type": "varint" + }, + { + "name": "message", + "type": "anonymousNbt" } ] ], - "packet_tab_complete": [ + "packet_debug_sample": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", - "type": "varint" - }, - { - "name": "matches", + "name": "sample", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] + "type": "i64" } ] + }, + { + "name": "type", + "type": "varint" } ] ], @@ -3971,126 +4512,262 @@ } ] ], - "packet_close_window": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - } - ] - ], - "packet_window_items": [ + "packet_declare_recipes": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "items", + "name": "recipes", "type": [ "array", { "countType": "varint", - "type": "Slot" + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "minecraft:crafting_shaped", + "1": "minecraft:crafting_shapeless", + "2": "minecraft:crafting_special_armordye", + "3": "minecraft:crafting_special_bookcloning", + "4": "minecraft:crafting_special_mapcloning", + "5": "minecraft:crafting_special_mapextending", + "6": "minecraft:crafting_special_firework_rocket", + "7": "minecraft:crafting_special_firework_star", + "8": "minecraft:crafting_special_firework_star_fade", + "9": "minecraft:crafting_special_tippedarrow", + "10": "minecraft:crafting_special_bannerduplicate", + "11": "minecraft:crafting_special_shielddecoration", + "12": "minecraft:crafting_special_shulkerboxcoloring", + "13": "minecraft:crafting_special_suspiciousstew", + "14": "minecraft:crafting_special_repairitem", + "15": "minecraft:smelting", + "16": "minecraft:blasting", + "17": "minecraft:smoking", + "18": "minecraft:campfire_cooking", + "19": "minecraft:stonecutting", + "20": "minecraft:smithing_transform", + "21": "minecraft:smithing_trim", + "22": "minecraft:crafting_decorated_pot" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "gridWidth", + "type": "varint" + }, + { + "name": "gridHeight", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "gridWidth", + "type": [ + "array", + { + "count": "gridHeight", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "Slot" + }, + { + "name": "showNotification", + "type": "bool" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "Slot" + } + ] + ], + "minecraft:crafting_special_armordye": "minecraft_simple_recipe_format", + "minecraft:crafting_special_banneraddpattern": "minecraft_simple_recipe_format", + "minecraft:crafting_special_bannerduplicate": "minecraft_simple_recipe_format", + "minecraft:crafting_special_bookcloning": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_rocket": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_star": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_star_fade": "minecraft_simple_recipe_format", + "minecraft:crafting_special_mapcloning": "minecraft_simple_recipe_format", + "minecraft:crafting_special_mapextending": "minecraft_simple_recipe_format", + "minecraft:crafting_special_repairitem": "minecraft_simple_recipe_format", + "minecraft:crafting_special_shielddecoration": "minecraft_simple_recipe_format", + "minecraft:crafting_special_shulkerboxcoloring": "minecraft_simple_recipe_format", + "minecraft:crafting_special_suspiciousstew": "minecraft_simple_recipe_format", + "minecraft:crafting_special_tippedarrow": "minecraft_simple_recipe_format", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing_transform": [ + "container", + [ + { + "name": "template", + "type": "ingredient" + }, + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "Slot" + } + ] + ], + "minecraft:smithing_trim": [ + "container", + [ + { + "name": "template", + "type": "ingredient" + }, + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "Slot" + } + ] + ] + } + } + ] + } + ] + ] } ] - }, - { - "name": "carriedItem", - "type": "Slot" } ] ], - "packet_craft_progress_bar": [ + "packet_difficulty": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "property", - "type": "i16" + "name": "difficulty", + "type": "u8" }, { - "name": "value", - "type": "i16" + "name": "difficultyLocked", + "type": "bool" } ] ], - "packet_set_slot": [ + "packet_end_combat_event": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", + "name": "duration", "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" } ] ], - "packet_set_cooldown": [ + "packet_enter_combat_event": [ "container", - [ - { - "name": "itemID", - "type": "varint" - }, - { - "name": "cooldownTicks", - "type": "varint" - } - ] + [] ], - "packet_chat_suggestions": [ + "packet_entity_destroy": [ "container", [ { - "name": "action", - "type": "varint" - }, - { - "name": "entries", + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "varint" } ] } ] ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_damage_event": [ + "packet_entity_effect": [ "container", [ { @@ -4098,477 +4775,405 @@ "type": "varint" }, { - "name": "sourceTypeId", - "type": "varint" - }, - { - "name": "sourceCauseId", - "type": "varint" - }, - { - "name": "sourceDirectId", + "name": "effectId", "type": "varint" }, { - "name": "sourcePosition", - "type": [ - "option", - "vec3f64" - ] - } - ] - ], - "packet_debug_sample": [ - "container", - [ - { - "name": "sample", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "type", - "type": "varint" - } - ] - ], - "packet_hide_message": [ - "container", - [ - { - "name": "id", + "name": "amplifier", "type": "varint" }, { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "ChatTypeParameterType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "content", - "1": "sender", - "2": "target" - } - } - ], - "ChatType": [ - "container", - [ - { - "name": "translationKey", - "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "ChatTypeParameterType" - } - ] - }, - { - "name": "style", - "type": "anonymousNbt" - } - ] - ], - "ChatTypes": [ - "container", - [ - { - "name": "chat", - "type": "ChatType" - }, - { - "name": "narration", - "type": "ChatType" - } - ] - ], - "packet_profileless_chat": [ - "container", - [ - { - "name": "message", - "type": "anonymousNbt" - }, - { - "name": "type", + "name": "duration", "type": "varint" }, { - "name": "name", - "type": "anonymousNbt" - }, - { - "name": "target", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ], - "packet_entity_status": [ - "container", - [ - { - "name": "entityId", - "type": "i32" - }, - { - "name": "entityStatus", - "type": "i8" + "name": "flags", + "type": "u8" } ] - ], - "packet_explosion": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + ], + "packet_entity_equipment": [ + "container", + [ { - "name": "radius", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "affectedBlockOffsets", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "varint", "type": [ "container", [ { - "name": "x", - "type": "i8" - }, - { - "name": "y", + "name": "slot", "type": "i8" }, { - "name": "z", - "type": "i8" + "name": "item", + "type": "Slot" } ] ] } ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, + } + ] + ], + "packet_entity_head_rotation": [ + "container", + [ { - "name": "playerMotionY", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "playerMotionZ", - "type": "f32" - }, + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ + "container", + [ { - "name": "block_interaction_type", + "name": "entityId", "type": "varint" }, { - "name": "small_explosion_particle", - "type": "Particle" + "name": "yaw", + "type": "i8" }, { - "name": "large_explosion_particle", - "type": "Particle" + "name": "pitch", + "type": "i8" }, { - "name": "sound", - "type": "ItemSoundHolder" + "name": "onGround", + "type": "bool" } ] ], - "packet_unload_chunk": [ + "packet_entity_metadata": [ "container", [ { - "name": "chunkZ", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkX", - "type": "i32" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_game_state_change": [ + "packet_entity_move_look": [ "container", [ { - "name": "reason", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "gameMode", - "type": "f32" + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_open_horse_window": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "sound", + "type": "ItemSoundHolder" }, { - "name": "nbSlots", - "type": "varint" + "name": "soundCategory", + "type": "soundSource" }, { "name": "entityId", - "type": "i32" + "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], - "packet_hurt_animation": [ + "packet_entity_status": [ "container", [ { "name": "entityId", - "type": "varint" + "type": "i32" }, { - "name": "yaw", - "type": "f32" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_initialize_world_border": [ + "packet_entity_teleport": [ "container", [ + { + "name": "entityId", + "type": "varint" + }, { "name": "x", "type": "f64" }, { - "name": "z", + "name": "y", "type": "f64" }, { - "name": "oldDiameter", + "name": "z", "type": "f64" }, { - "name": "newDiameter", - "type": "f64" + "name": "yaw", + "type": "i8" }, { - "name": "speed", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "portalTeleportBoundary", + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "warningBlocks", + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": [ + "mapper", + { + "mappings": { + "0": "generic.armor", + "1": "generic.armor_toughness", + "2": "generic.attack_damage", + "3": "generic.attack_knockback", + "4": "generic.attack_speed", + "5": "player.block_break_speed", + "6": "player.block_interaction_range", + "7": "player.entity_interaction_range", + "8": "generic.fall_damage_multiplier", + "9": "generic.flying_speed", + "10": "generic.follow_range", + "11": "generic.gravity", + "12": "generic.jump_strength", + "13": "generic.knockback_resistance", + "14": "generic.luck", + "15": "generic.max_absorption", + "16": "generic.max_health", + "17": "generic.movement_speed", + "18": "generic.safe_fall_distance", + "19": "generic.scale", + "20": "zombie.spawn_reinforcements", + "21": "generic.step_height" + }, + "type": "varint" + } + ] + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] + } + ] + ], + "packet_entity_velocity": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "warningTime", - "type": "varint" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_keep_alive": [ + "packet_experience": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], - "packet_map_chunk": [ + "packet_explosion": [ "container", [ { "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "heightmaps", - "type": "anonymousNbt" + "type": "f64" }, { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "y", + "type": "f64" }, { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "chunkBlockEntity" - } - ] + "name": "z", + "type": "f64" }, { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "radius", + "type": "f32" }, { - "name": "blockLightMask", + "name": "affectedBlockOffsets", "type": [ "array", { "countType": "varint", - "type": "i64" + "type": [ + "container", + [ + { + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + } + ] + ] } ] }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "playerMotionX", + "type": "f32" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "playerMotionY", + "type": "f32" }, { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "playerMotionZ", + "type": "f32" }, { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" + "name": "block_interaction_type", + "type": "varint" }, { - "name": "location", - "type": "position" + "name": "small_explosion_particle", + "type": "Particle" }, { - "name": "data", - "type": "i32" + "name": "large_explosion_particle", + "type": "Particle" }, { - "name": "global", - "type": "bool" + "name": "sound", + "type": "ItemSoundHolder" } ] ], - "packet_world_particles": [ + "packet_face_player": [ "container", [ { - "name": "longDistance", - "type": "bool" + "name": "feet_eyes", + "type": "varint" }, { "name": "x", @@ -4583,113 +5188,151 @@ "type": "f64" }, { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" + "name": "isEntity", + "type": "bool" }, { - "name": "offsetZ", - "type": "f32" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "velocityOffset", - "type": "f32" - }, + "name": "entity_feet_eyes", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + } + ] + ], + "packet_game_state_change": [ + "container", + [ { - "name": "amount", - "type": "i32" + "name": "reason", + "type": "u8" }, { - "name": "particle", - "type": "Particle" + "name": "gameMode", + "type": "f32" } ] ], - "packet_update_light": [ + "packet_held_item_slot": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_hide_message": [ + "container", + [ { - "name": "chunkZ", + "name": "id", "type": "varint" }, { - "name": "skyLightMask", + "name": "signature", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] + } } ] + } + ] + ], + "packet_hurt_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "yaw", + "type": "f32" + } + ] + ], + "packet_initialize_world_border": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "oldDiameter", + "type": "f64" }, { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "newDiameter", + "type": "f64" }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "speed", + "type": "varint" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "portalTeleportBoundary", + "type": "varint" }, { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "warningBlocks", + "type": "varint" }, { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "anonymousNbt" } ] ], @@ -4813,10 +5456,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -4826,10 +5469,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -4839,10 +5482,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -4852,255 +5495,176 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] - } - ] - } - ] - ], - "packet_trade_list": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "trades", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "inputItem1", - "type": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "SlotComponent" - } - ] - } - ] - ] - }, - { - "name": "outputItem", - "type": "Slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "SlotComponent" - } - ] - } - ] - ] - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ] - ] + ], + "fields": { + "0": "void" + } } ] - }, - { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" - }, - { - "name": "isRegularVillager", - "type": "bool" - }, - { - "name": "canRestock", - "type": "bool" - } - ] - ], - "packet_rel_entity_move": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity_move_look": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "z", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "heightmaps", + "type": "anonymousNbt" }, { - "name": "dZ", - "type": "i16" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "chunkBlockEntity" + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_look": [ - "container", - [ + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, { - "name": "entityId", - "type": "varint" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], - "packet_vehicle_move": [ + "packet_multi_block_change": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] + ] }, { - "name": "z", - "type": "f64" - }, + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "packet_nbt_query_response": [ + "container", + [ { - "name": "yaw", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "nbt", + "type": "anonOptionalNbt" } ] ], @@ -5113,20 +5677,20 @@ } ] ], - "packet_open_window": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "varint" + "type": "ContainerID" }, { - "name": "inventoryType", + "name": "nbSlots", "type": "varint" }, { - "name": "windowTitle", - "type": "anonymousNbt" + "name": "entityId", + "type": "i32" } ] ], @@ -5143,51 +5707,38 @@ } ] ], - "packet_ping": [ + "packet_open_window": [ "container", [ { - "name": "id", - "type": "i32" - } - ] - ], - "packet_ping_response": [ - "container", - [ + "name": "windowId", + "type": "varint" + }, { - "name": "id", - "type": "i64" + "name": "inventoryType", + "type": "varint" + }, + { + "name": "windowTitle", + "type": "anonymousNbt" } ] ], - "packet_craft_recipe_response": [ + "packet_ping": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "recipe", - "type": "string" + "name": "id", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_ping_response": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "id", + "type": "i64" } ] ], @@ -5247,6 +5798,7 @@ "switch", { "compareTo": "filterType", + "default": "void", "fields": { "2": [ "array", @@ -5255,8 +5807,7 @@ "type": "i64" } ] - }, - "default": "void" + } } ] }, @@ -5271,49 +5822,8 @@ { "name": "networkTargetName", "type": [ - "option", - "anonymousNbt" - ] - } - ] - ], - "packet_end_combat_event": [ - "container", - [ - { - "name": "duration", - "type": "varint" - } - ] - ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ - "container", - [ - { - "name": "playerId", - "type": "varint" - }, - { - "name": "message", - "type": "anonymousNbt" - } - ] - ], - "packet_player_remove": [ - "container", - [ - { - "name": "players", - "type": [ - "array", - { - "countType": "varint", - "type": "UUID" - } + "option", + "anonymousNbt" ] } ] @@ -5326,7 +5836,6 @@ "type": [ "bitflags", { - "type": "u8", "flags": [ "add_player", "initialize_chat", @@ -5334,7 +5843,8 @@ "update_listed", "update_latency", "update_display_name" - ] + ], + "type": "u8" } ] }, @@ -5357,10 +5867,10 @@ "switch", { "compareTo": "../action/add_player", + "default": "void", "fields": { "true": "game_profile" - }, - "default": "void" + } } ] }, @@ -5370,10 +5880,10 @@ "switch", { "compareTo": "../action/initialize_chat", + "default": "void", "fields": { "true": "chat_session" - }, - "default": "void" + } } ] }, @@ -5383,10 +5893,10 @@ "switch", { "compareTo": "../action/update_game_mode", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -5396,10 +5906,10 @@ "switch", { "compareTo": "../action/update_listed", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -5409,10 +5919,10 @@ "switch", { "compareTo": "../action/update_latency", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -5422,336 +5932,52 @@ "switch", { "compareTo": "../action/update_display_name", + "default": "void", "fields": { "true": [ "option", - "anonymousNbt" - ] - }, - "default": "void" - } - ] - } - ] - ] - } - ] - } - ] - ], - "packet_face_player": [ - "container", - [ - { - "name": "feet_eyes", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entity_feet_eyes", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - } - ] - ], - "PositionUpdateRelatives": [ - "bitflags", - { - "type": "u8", - "flags": [ - "x", - "y", - "z", - "yaw", - "pitch" - ] - } - ], - "packet_position": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "flags", - "type": "PositionUpdateRelatives" - }, - { - "name": "teleportId", - "type": "varint" - } - ] - ], - "packet_unlock_recipes": [ - "container", - [ - { - "name": "action", - "type": "varint" - }, - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "filteringCraftable", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "filteringSmeltable", - "type": "bool" - }, - { - "name": "blastFurnaceOpen", - "type": "bool" - }, - { - "name": "filteringBlastFurnace", - "type": "bool" - }, - { - "name": "smokerBookOpen", - "type": "bool" - }, - { - "name": "filteringSmoker", - "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_remove_entity_effect": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "effectId", - "type": "varint" - } - ] - ], - "packet_reset_score": [ - "container", - [ - { - "name": "entity_name", - "type": "string" - }, - { - "name": "objective_name", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_respawn": [ - "container", - [ - { - "name": "worldState", - "type": "SpawnInfo" - }, - { - "name": "copyMetadata", - "type": "u8" - } - ] - ], - "packet_entity_head_rotation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "headYaw", - "type": "i8" + "anonymousNbt" + ] + } + } + ] + } + ] + ] + } + ] } ] ], - "packet_multi_block_change": [ + "packet_player_remove": [ "container", [ { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] - }, - { - "name": "records", + "name": "players", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": "UUID" } ] } ] ], - "packet_select_advancement_tab": [ - "container", - [ - { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_server_data": [ + "packet_playerlist_header": [ "container", [ { - "name": "motd", + "name": "header", "type": "anonymousNbt" }, { - "name": "iconBytes", - "type": [ - "option", - "ByteArray" - ] - } - ] - ], - "packet_action_bar": [ - "container", - [ - { - "name": "text", + "name": "footer", "type": "anonymousNbt" } ] ], - "packet_world_border_center": [ + "packet_position": [ "container", [ { @@ -5759,122 +5985,56 @@ "type": "f64" }, { - "name": "z", - "type": "f64" - } - ] - ], - "packet_world_border_lerp_size": [ - "container", - [ - { - "name": "oldDiameter", + "name": "y", "type": "f64" }, { - "name": "newDiameter", + "name": "z", "type": "f64" }, { - "name": "speed", - "type": "varint" - } - ] - ], - "packet_world_border_size": [ - "container", - [ - { - "name": "diameter", - "type": "f64" - } - ] - ], - "packet_world_border_warning_delay": [ - "container", - [ - { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_world_border_warning_reach": [ - "container", - [ - { - "name": "warningBlocks", - "type": "varint" - } - ] - ], - "packet_camera": [ - "container", - [ - { - "name": "cameraId", - "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ - { - "name": "slot", - "type": "i8" - } - ] - ], - "packet_update_view_position": [ - "container", - [ + "name": "yaw", + "type": "f32" + }, { - "name": "chunkX", - "type": "varint" + "name": "pitch", + "type": "f32" }, { - "name": "chunkZ", - "type": "varint" - } - ] - ], - "packet_update_view_distance": [ - "container", - [ + "name": "flags", + "type": "PositionUpdateRelatives" + }, { - "name": "viewDistance", + "name": "teleportId", "type": "varint" } ] ], - "packet_spawn_position": [ + "packet_profileless_chat": [ "container", [ { - "name": "location", - "type": "position" + "name": "message", + "type": "anonymousNbt" }, { - "name": "angle", - "type": "f32" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ - { - "name": "position", + "name": "type", "type": "varint" }, { "name": "name", - "type": "string" + "type": "anonymousNbt" + }, + { + "name": "target", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "packet_entity_metadata": [ + "packet_rel_entity_move": [ "container", [ { @@ -5882,25 +6042,24 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "entityId", - "type": "i32" + "name": "dY", + "type": "i16" }, { - "name": "vehicleId", - "type": "i32" + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_entity_velocity": [ + "packet_remove_entity_effect": [ "container", [ { @@ -5908,72 +6067,50 @@ "type": "varint" }, { - "name": "velocity", - "type": "vec3i16" + "name": "effectId", + "type": "varint" } ] ], - "packet_entity_equipment": [ + "packet_reset_score": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entity_name", + "type": "string" }, { - "name": "equipments", + "name": "objective_name", "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } + "option", + "string" ] } ] ], - "packet_experience": [ + "packet_respawn": [ "container", [ { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" + "name": "worldState", + "type": "SpawnInfo" }, { - "name": "totalExperience", - "type": "varint" + "name": "copyMetadata", + "type": "u8" } ] ], - "packet_update_health": [ - "container", - [ - { - "name": "health", - "type": "f32" - }, + "packet_scoreboard_display_objective": [ + "container", + [ { - "name": "food", + "name": "position", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" + "name": "name", + "type": "string" } ] ], @@ -5994,11 +6131,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ] }, @@ -6008,11 +6145,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -6022,6 +6159,7 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": [ "option", @@ -6031,8 +6169,7 @@ "option", "varint" ] - }, - "default": "void" + } } ] }, @@ -6042,272 +6179,194 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": [ "switch", { "compareTo": "number_format", + "default": "void", "fields": { "1": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ], "2": [ "switch", { "compareTo": "number_format", + "default": "void", "fields": { "1": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_set_passengers": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" + } } ] } ] ], - "packet_teams": [ + "packet_scoreboard_score": [ "container", [ { - "name": "team", + "name": "itemName", "type": "string" }, { - "name": "mode", - "type": "i8" - }, - { - "name": "name", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] - }, - { - "name": "friendlyFire", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "nameTagVisibility", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "value", + "type": "varint" }, { - "name": "collisionRule", + "name": "display_name", "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } + "option", + "anonymousNbt" ] }, { - "name": "formatting", + "name": "number_format", "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } + "option", + "varint" ] }, { - "name": "prefix", + "name": "styling", "type": [ "switch", { - "compareTo": "mode", + "compareTo": "number_format", + "default": "void", "fields": { - "0": "anonymousNbt", + "1": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ] - }, + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ { - "name": "suffix", + "name": "id", "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } + "option", + "string" ] + } + ] + ], + "packet_server_data": [ + "container", + [ + { + "name": "motd", + "type": "anonymousNbt" }, { - "name": "players", + "name": "iconBytes", "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } + "option", + "ByteArray" ] } ] ], - "packet_scoreboard_score": [ + "packet_set_cooldown": [ "container", [ { - "name": "itemName", - "type": "string" + "name": "itemID", + "type": "varint" }, { - "name": "scoreName", - "type": "string" - }, + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_passengers": [ + "container", + [ { - "name": "value", + "name": "entityId", "type": "varint" }, { - "name": "display_name", + "name": "passengers", "type": [ - "option", - "anonymousNbt" + "array", + { + "countType": "varint", + "type": "varint" + } ] - }, + } + ] + ], + "packet_set_projectile_power": [ + "container", + [ { - "name": "number_format", - "type": [ - "option", - "varint" - ] + "name": "id", + "type": "varint" }, { - "name": "styling", - "type": [ - "switch", - { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] + "name": "power", + "type": "vec3f64" } ] ], - "packet_simulation_distance": [ + "packet_set_slot": [ "container", [ { - "name": "distance", + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "stateId", "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" } ] ], - "packet_set_title_subtitle": [ + "packet_set_ticking_state": [ "container", [ { - "name": "text", - "type": "anonymousNbt" + "name": "tick_rate", + "type": "f32" + }, + { + "name": "is_frozen", + "type": "bool" } ] ], - "packet_update_time": [ + "packet_set_title_subtitle": [ "container", [ { - "name": "age", - "type": "i64" - }, - { - "name": "time", - "type": "i64" + "name": "text", + "type": "anonymousNbt" } ] ], @@ -6337,7 +6396,16 @@ } ] ], - "packet_entity_sound_effect": [ + "packet_simulation_distance": [ + "container", + [ + { + "name": "distance", + "type": "varint" + } + ] + ], + "packet_sound_effect": [ "container", [ { @@ -6349,8 +6417,16 @@ "type": "soundSource" }, { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" }, { "name": "volume", @@ -6366,40 +6442,90 @@ } ] ], - "packet_sound_effect": [ + "packet_spawn_entity": [ "container", [ { - "name": "sound", - "type": "ItemSoundHolder" + "name": "entityId", + "type": "varint" }, { - "name": "soundCategory", - "type": "soundSource" + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "pitch", + "type": "i8" }, { - "name": "pitch", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "seed", - "type": "i64" + "name": "headPitch", + "type": "i8" + }, + { + "name": "objectData", + "type": "varint" + }, + { + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_spawn_entity_experience_orb": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "angle", + "type": "f32" } ] ], @@ -6407,6 +6533,46 @@ "container", [] ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_step_tick": [ + "container", + [ + { + "name": "tick_steps", + "type": "varint" + } + ] + ], "packet_stop_sound": [ "container", [ @@ -6420,11 +6586,11 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "1": "varint", "3": "varint" - }, - "default": "void" + } } ] }, @@ -6434,11 +6600,11 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "2": "string", "3": "string" - }, - "default": "void" + } } ] } @@ -6457,20 +6623,7 @@ } ] ], - "packet_playerlist_header": [ - "container", - [ - { - "name": "header", - "type": "anonymousNbt" - }, - { - "name": "footer", - "type": "anonymousNbt" - } - ] - ], - "packet_nbt_query_response": [ + "packet_tab_complete": [ "container", [ { @@ -6478,92 +6631,45 @@ "type": "varint" }, { - "name": "nbt", - "type": "anonOptionalNbt" - } - ] - ], - "packet_collect": [ - "container", - [ - { - "name": "collectedEntityId", - "type": "varint" - }, - { - "name": "collectorEntityId", + "name": "start", "type": "varint" }, { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ - { - "name": "entityId", + "name": "length", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_set_ticking_state": [ - "container", - [ - { - "name": "tick_rate", - "type": "f32" - }, - { - "name": "is_frozen", - "type": "bool" - } - ] - ], - "packet_step_tick": [ - "container", - [ - { - "name": "tick_steps", - "type": "varint" + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] + } + ] } ] ], - "packet_advancements": [ + "packet_tags": [ "container", [ { - "name": "reset", - "type": "bool" - }, - { - "name": "advancementMapping", + "name": "tags", "type": [ "array", { @@ -6572,189 +6678,190 @@ "container", [ { - "name": "key", + "name": "tagType", "type": "string" }, { - "name": "value", - "type": [ - "container", - [ - { - "name": "parentId", - "type": [ - "option", - "string" - ] - }, - { - "name": "displayData", - "type": [ - "option", - [ - "container", - [ - { - "name": "title", - "type": "anonymousNbt" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "icon", - "type": "Slot" - }, - { - "name": "frameType", - "type": "varint" - }, - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "backgroundTexture", - "type": [ - "switch", - { - "compareTo": "flags/has_background_texture", - "fields": { - "1": "string" - }, - "default": "void" - } - ] - }, - { - "name": "xCord", - "type": "f32" - }, - { - "name": "yCord", - "type": "f32" - } - ] - ] - ] - }, - { - "name": "requirements", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - }, - { - "name": "sendsTelemtryData", - "type": "bool" - } - ] - ] + "name": "tags", + "type": "tags" } ] ] } ] + } + ] + ], + "packet_teams": [ + "container", + [ + { + "name": "team", + "type": "string" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "name", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] }, { - "name": "identifiers", + "name": "friendlyFire", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "mode", + "default": "void", + "fields": { + "0": "i8", + "2": "i8" + } } ] }, { - "name": "progressMapping", + "name": "nameTagVisibility", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "criterionIdentifier", - "type": "string" - }, - { - "name": "criterionProgress", - "type": [ - "option", - "i64" - ] - } - ] - ] - } - ] + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "collisionRule", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "formatting", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + }, + { + "name": "prefix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] + }, + { + "name": "suffix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] + }, + { + "name": "players", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "3": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" } ] - ] + } } ] } ] ], - "packet_entity_update_attributes": [ + "packet_tile_entity_data": [ "container", [ { - "name": "entityId", + "name": "location", + "type": "position" + }, + { + "name": "action", "type": "varint" }, { - "name": "properties", + "name": "nbtData", + "type": "anonOptionalNbt" + } + ] + ], + "packet_trade_list": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "trades", "type": [ "array", { @@ -6763,354 +6870,522 @@ "container", [ { - "name": "key", + "name": "inputItem1", "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "generic.armor", - "1": "generic.armor_toughness", - "2": "generic.attack_damage", - "3": "generic.attack_knockback", - "4": "generic.attack_speed", - "5": "player.block_break_speed", - "6": "player.block_interaction_range", - "7": "player.entity_interaction_range", - "8": "generic.fall_damage_multiplier", - "9": "generic.flying_speed", - "10": "generic.follow_range", - "11": "generic.gravity", - "12": "generic.jump_strength", - "13": "generic.knockback_resistance", - "14": "generic.luck", - "15": "generic.max_absorption", - "16": "generic.max_health", - "17": "generic.movement_speed", - "18": "generic.safe_fall_distance", - "19": "generic.scale", - "20": "zombie.spawn_reinforcements", - "21": "generic.step_height" + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "SlotComponent" + } + ] } - } + ] ] }, { - "name": "value", - "type": "f64" + "name": "outputItem", + "type": "Slot" }, { - "name": "modifiers", + "name": "inputItem2", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] + "option", + [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "SlotComponent" + } + ] + } ] - } + ] ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] + } + ] + }, + { + "name": "villagerLevel", + "type": "varint" + }, + { + "name": "experience", + "type": "varint" + }, + { + "name": "isRegularVillager", + "type": "bool" + }, + { + "name": "canRestock", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkZ", + "type": "i32" + }, + { + "name": "chunkX", + "type": "i32" + } + ] + ], + "packet_unlock_recipes": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "filteringSmeltable", + "type": "bool" + }, + { + "name": "blastFurnaceOpen", + "type": "bool" + }, + { + "name": "filteringBlastFurnace", + "type": "bool" + }, + { + "name": "smokerBookOpen", + "type": "bool" + }, + { + "name": "filteringSmoker", + "type": "bool" + }, + { + "name": "recipes1", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "recipes2", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" } ] - ] + } } ] } ] ], - "packet_entity_effect": [ + "packet_update_health": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "effectId", - "type": "varint" - }, - { - "name": "amplifier", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "duration", + "name": "food", "type": "varint" }, { - "name": "flags", - "type": "u8" + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_declare_recipes": [ + "packet_update_light": [ "container", [ { - "name": "recipes", + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" + }, + { + "name": "skyLightMask", "type": [ "array", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "minecraft:crafting_shaped", - "1": "minecraft:crafting_shapeless", - "2": "minecraft:crafting_special_armordye", - "3": "minecraft:crafting_special_bookcloning", - "4": "minecraft:crafting_special_mapcloning", - "5": "minecraft:crafting_special_mapextending", - "6": "minecraft:crafting_special_firework_rocket", - "7": "minecraft:crafting_special_firework_star", - "8": "minecraft:crafting_special_firework_star_fade", - "9": "minecraft:crafting_special_tippedarrow", - "10": "minecraft:crafting_special_bannerduplicate", - "11": "minecraft:crafting_special_shielddecoration", - "12": "minecraft:crafting_special_shulkerboxcoloring", - "13": "minecraft:crafting_special_suspiciousstew", - "14": "minecraft:crafting_special_repairitem", - "15": "minecraft:smelting", - "16": "minecraft:blasting", - "17": "minecraft:smoking", - "18": "minecraft:campfire_cooking", - "19": "minecraft:stonecutting", - "20": "minecraft:smithing_transform", - "21": "minecraft:smithing_trim", - "22": "minecraft:crafting_decorated_pot" - } - } - ] - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "Slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "gridWidth", - "type": "varint" - }, - { - "name": "gridHeight", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "gridWidth", - "type": [ - "array", - { - "count": "gridHeight", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "Slot" - }, - { - "name": "showNotification", - "type": "bool" - } - ] - ], - "minecraft:crafting_special_armordye": "minecraft_simple_recipe_format", - "minecraft:crafting_special_bookcloning": "minecraft_simple_recipe_format", - "minecraft:crafting_special_mapcloning": "minecraft_simple_recipe_format", - "minecraft:crafting_special_mapextending": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_rocket": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_star": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_star_fade": "minecraft_simple_recipe_format", - "minecraft:crafting_special_repairitem": "minecraft_simple_recipe_format", - "minecraft:crafting_special_tippedarrow": "minecraft_simple_recipe_format", - "minecraft:crafting_special_bannerduplicate": "minecraft_simple_recipe_format", - "minecraft:crafting_special_banneraddpattern": "minecraft_simple_recipe_format", - "minecraft:crafting_special_shielddecoration": "minecraft_simple_recipe_format", - "minecraft:crafting_special_shulkerboxcoloring": "minecraft_simple_recipe_format", - "minecraft:crafting_special_suspiciousstew": "minecraft_simple_recipe_format", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "Slot" - } - ] - ], - "minecraft:smithing_transform": [ - "container", - [ - { - "name": "template", - "type": "ingredient" - }, - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "Slot" - } - ] - ], - "minecraft:smithing_trim": [ - "container", - [ - { - "name": "template", - "type": "ingredient" - }, - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - } - ] - ], - "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format" - } - } - ] - } - ] + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] + }, + { + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] } ] ], - "packet_tags": [ + "packet_update_time": [ "container", [ { - "name": "tags", + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_update_view_distance": [ + "container", + [ + { + "name": "viewDistance", + "type": "varint" + } + ] + ], + "packet_update_view_position": [ + "container", + [ + { + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "stateId", + "type": "varint" + }, + { + "name": "items", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] + "type": "Slot" } ] + }, + { + "name": "carriedItem", + "type": "Slot" } ] ], - "packet_set_projectile_power": [ + "packet_world_border_center": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_world_border_lerp_size": [ + "container", + [ + { + "name": "oldDiameter", + "type": "f64" + }, + { + "name": "newDiameter", + "type": "f64" + }, + { + "name": "speed", + "type": "varint" + } + ] + ], + "packet_world_border_size": [ + "container", + [ + { + "name": "diameter", + "type": "f64" + } + ] + ], + "packet_world_border_warning_delay": [ + "container", + [ + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_world_border_warning_reach": [ + "container", + [ + { + "name": "warningBlocks", + "type": "varint" + } + ] + ], + "packet_world_event": [ + "container", + [ + { + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" + } + ] + ], + "packet_world_particles": [ "container", [ { - "name": "id", - "type": "varint" + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" }, { - "name": "power", - "type": "vec3f64" + "name": "velocityOffset", + "type": "f32" + }, + { + "name": "amount", + "type": "i32" + }, + { + "name": "particle", + "type": "Particle" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -7119,309 +7394,235 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "spawn_entity_experience_orb", - "0x03": "animation", - "0x04": "statistics", - "0x05": "acknowledge_player_digging", - "0x06": "block_break_animation", - "0x07": "tile_entity_data", - "0x08": "block_action", - "0x09": "block_change", - "0x0a": "boss_bar", - "0x0b": "difficulty", - "0x0c": "chunk_batch_finished", - "0x0d": "chunk_batch_start", - "0x0e": "chunk_biomes", - "0x0f": "clear_titles", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "close_window", - "0x13": "window_items", - "0x14": "craft_progress_bar", - "0x15": "set_slot", - "0x16": "cookie_request", - "0x17": "set_cooldown", - "0x18": "chat_suggestions", - "0x19": "custom_payload", - "0x1a": "damage_event", - "0x1b": "debug_sample", - "0x1c": "hide_message", - "0x1d": "kick_disconnect", - "0x1e": "profileless_chat", - "0x1f": "entity_status", - "0x20": "explosion", - "0x21": "unload_chunk", - "0x22": "game_state_change", - "0x23": "open_horse_window", - "0x24": "hurt_animation", - "0x25": "initialize_world_border", - "0x26": "keep_alive", - "0x27": "map_chunk", - "0x28": "world_event", - "0x29": "world_particles", - "0x2a": "update_light", - "0x2b": "login", - "0x2c": "map", - "0x2d": "trade_list", - "0x2e": "rel_entity_move", - "0x2f": "entity_move_look", - "0x30": "entity_look", - "0x31": "vehicle_move", - "0x32": "open_book", - "0x33": "open_window", - "0x34": "open_sign_entity", - "0x35": "ping", - "0x36": "ping_response", - "0x37": "craft_recipe_response", - "0x38": "abilities", - "0x39": "player_chat", - "0x3a": "end_combat_event", - "0x3b": "enter_combat_event", - "0x3c": "death_combat_event", - "0x3d": "player_remove", - "0x3e": "player_info", - "0x3f": "face_player", - "0x40": "position", - "0x41": "unlock_recipes", - "0x42": "entity_destroy", - "0x43": "remove_entity_effect", - "0x44": "reset_score", - "0x45": "remove_resource_pack", - "0x46": "add_resource_pack", - "0x47": "respawn", - "0x48": "entity_head_rotation", - "0x49": "multi_block_change", - "0x4a": "select_advancement_tab", - "0x4b": "server_data", - "0x4c": "action_bar", - "0x4d": "world_border_center", - "0x4e": "world_border_lerp_size", - "0x4f": "world_border_size", - "0x50": "world_border_warning_delay", - "0x51": "world_border_warning_reach", - "0x52": "camera", - "0x53": "held_item_slot", - "0x54": "update_view_position", - "0x55": "update_view_distance", - "0x56": "spawn_position", - "0x57": "scoreboard_display_objective", - "0x58": "entity_metadata", - "0x59": "attach_entity", - "0x5a": "entity_velocity", - "0x5b": "entity_equipment", - "0x5c": "experience", - "0x5d": "update_health", - "0x5e": "scoreboard_objective", - "0x5f": "set_passengers", - "0x60": "teams", - "0x61": "scoreboard_score", - "0x62": "simulation_distance", - "0x63": "set_title_subtitle", - "0x64": "update_time", - "0x65": "set_title_text", - "0x66": "set_title_time", - "0x67": "entity_sound_effect", - "0x68": "sound_effect", - "0x69": "start_configuration", - "0x6a": "stop_sound", - "0x6b": "store_cookie", - "0x6c": "system_chat", - "0x6d": "playerlist_header", - "0x6e": "nbt_query_response", - "0x6f": "collect", - "0x70": "entity_teleport", - "0x71": "set_ticking_state", - "0x72": "step_tick", - "0x73": "transfer", - "0x74": "advancements", - "0x75": "entity_update_attributes", - "0x76": "entity_effect", - "0x77": "declare_recipes", - "0x78": "tags", - "0x79": "set_projectile_power" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "message_acknowledgement", + "0x04": "chat_command", + "0x05": "chat_command_signed", + "0x06": "chat_message", + "0x07": "chat_session_update", + "0x08": "chunk_batch_received", + "0x09": "client_command", + "0x0a": "settings", + "0x0b": "tab_complete", + "0x0c": "configuration_acknowledged", + "0x0d": "enchant_item", + "0x0e": "window_click", + "0x0f": "close_window", + "0x10": "set_slot_state", + "0x11": "cookie_response", + "0x12": "custom_payload", + "0x13": "debug_sample_subscription", + "0x14": "edit_book", + "0x15": "query_entity_nbt", + "0x16": "use_entity", + "0x17": "generate_structure", + "0x18": "keep_alive", + "0x19": "lock_difficulty", + "0x1a": "position", + "0x1b": "position_look", + "0x1c": "look", + "0x1d": "flying", + "0x1e": "vehicle_move", + "0x1f": "steer_boat", + "0x20": "pick_item", + "0x21": "ping_request", + "0x22": "craft_recipe_request", + "0x23": "abilities", + "0x24": "block_dig", + "0x25": "entity_action", + "0x26": "steer_vehicle", + "0x27": "pong", + "0x28": "recipe_book", + "0x29": "displayed_recipe", + "0x2a": "name_item", + "0x2b": "resource_pack_receive", + "0x2c": "advancement_tab", + "0x2d": "select_trade", + "0x2e": "set_beacon_effect", + "0x2f": "held_item_slot", + "0x30": "update_command_block", + "0x31": "update_command_block_minecart", + "0x32": "set_creative_slot", + "0x33": "update_jigsaw_block", + "0x34": "update_structure_block", + "0x35": "update_sign", + "0x36": "arm_animation", + "0x37": "spectate", + "0x38": "block_place", + "0x39": "use_item" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat_command": "packet_chat_command", + "chat_command_signed": "packet_chat_command_signed", + "chat_message": "packet_chat_message", + "chat_session_update": "packet_chat_session_update", + "chunk_batch_received": "packet_chunk_batch_received", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "configuration_acknowledged": "packet_configuration_acknowledged", + "cookie_response": "packet_common_cookie_response", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_payload": "packet_custom_payload", + "debug_sample_subscription": "packet_debug_sample_subscription", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "message_acknowledgement": "packet_message_acknowledgement", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "ping_request": "packet_ping_request", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "set_slot_state": "packet_set_slot_state", + "settings": "packet_common_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] + } + ] + ], + "packet_abilities": [ + "container", + [ + { + "name": "flags", + "type": "i8" + } + ] + ], + "packet_advancement_tab": [ + "container", + [ + { + "name": "action", + "type": "varint" }, { - "name": "params", + "name": "tabId", "type": [ "switch", { - "compareTo": "name", + "compareTo": "action", "fields": { - "bundle_delimiter": "void", - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "animation": "packet_animation", - "statistics": "packet_statistics", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "chunk_batch_finished": "packet_chunk_batch_finished", - "chunk_batch_start": "packet_chunk_batch_start", - "chunk_biomes": "packet_chunk_biomes", - "clear_titles": "packet_clear_titles", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "close_window": "packet_close_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "cookie_request": "packet_common_cookie_request", - "set_cooldown": "packet_set_cooldown", - "chat_suggestions": "packet_chat_suggestions", - "custom_payload": "packet_custom_payload", - "damage_event": "packet_damage_event", - "debug_sample": "packet_debug_sample", - "hide_message": "packet_hide_message", - "kick_disconnect": "packet_kick_disconnect", - "profileless_chat": "packet_profileless_chat", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "hurt_animation": "packet_hurt_animation", - "initialize_world_border": "packet_initialize_world_border", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_window": "packet_open_window", - "open_sign_entity": "packet_open_sign_entity", - "ping": "packet_ping", - "ping_response": "packet_ping_response", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "player_chat": "packet_player_chat", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_remove": "packet_player_remove", - "player_info": "packet_player_info", - "face_player": "packet_face_player", - "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "reset_score": "packet_reset_score", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "respawn": "packet_respawn", - "entity_head_rotation": "packet_entity_head_rotation", - "multi_block_change": "packet_multi_block_change", - "select_advancement_tab": "packet_select_advancement_tab", - "server_data": "packet_server_data", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "spawn_position": "packet_spawn_position", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "set_title_subtitle": "packet_set_title_subtitle", - "update_time": "packet_update_time", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time", - "entity_sound_effect": "packet_entity_sound_effect", - "sound_effect": "packet_sound_effect", - "start_configuration": "packet_start_configuration", - "stop_sound": "packet_stop_sound", - "store_cookie": "packet_common_store_cookie", - "system_chat": "packet_system_chat", - "playerlist_header": "packet_playerlist_header", - "nbt_query_response": "packet_nbt_query_response", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "set_ticking_state": "packet_set_ticking_state", - "step_tick": "packet_step_tick", - "transfer": "packet_common_transfer", - "advancements": "packet_advancements", - "entity_update_attributes": "packet_entity_update_attributes", - "entity_effect": "packet_entity_effect", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "set_projectile_power": "packet_set_projectile_power" + "0": "string", + "1": "void" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_arm_animation": [ "container", [ { - "name": "teleportId", + "name": "hand", "type": "varint" } ] ], - "packet_query_block_nbt": [ + "packet_block_dig": [ "container", [ { - "name": "transactionId", + "name": "status", "type": "varint" }, { "name": "location", "type": "position" - } - ] - ], - "packet_set_difficulty": [ - "container", - [ + }, { - "name": "newDifficulty", - "type": "u8" + "name": "face", + "type": "i8" + }, + { + "name": "sequence", + "type": "varint" } ] ], - "packet_message_acknowledgement": [ + "packet_block_place": [ "container", [ { - "name": "count", + "name": "hand", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "varint" + }, + { + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" + }, + { + "name": "sequence", "type": "varint" } ] @@ -7553,104 +7754,23 @@ "name": "signature", "type": "ByteArray" } - ] - ], - "packet_chunk_batch_received": [ - "container", - [ - { - "name": "chunksPerTick", - "type": "f32" - } - ] - ], - "packet_client_command": [ - "container", - [ - { - "name": "actionId", - "type": "varint" - } - ] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "text", - "type": "string" - } - ] - ], - "packet_configuration_acknowledged": [ - "container", - [] + ] ], - "packet_enchant_item": [ + "packet_chunk_batch_received": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "chunksPerTick", + "type": "f32" } ] ], - "packet_window_click": [ + "packet_client_command": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "mode", + "name": "actionId", "type": "varint" - }, - { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] - }, - { - "name": "cursorItem", - "type": "Slot" } ] ], @@ -7663,19 +7783,23 @@ } ] ], - "packet_set_slot_state": [ + "packet_configuration_acknowledged": [ + "container", + [] + ], + "packet_craft_recipe_request": [ "container", [ { - "name": "slot_id", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "window_id", - "type": "varint" + "name": "recipe", + "type": "string" }, { - "name": "state", + "name": "makeAll", "type": "bool" } ] @@ -7702,6 +7826,15 @@ } ] ], + "packet_displayed_recipe": [ + "container", + [ + { + "name": "recipeId", + "type": "string" + } + ] + ], "packet_edit_book": [ "container", [ @@ -7728,85 +7861,41 @@ } ] ], - "packet_query_entity_nbt": [ + "packet_enchant_item": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "entityId", - "type": "varint" + "name": "enchantment", + "type": "i8" } ] ], - "packet_use_entity": [ + "packet_entity_action": [ "container", [ { - "name": "target", + "name": "entityId", "type": "varint" }, { - "name": "mouse", + "name": "actionId", "type": "varint" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { - "name": "sneaking", + "name": "onGround", "type": "bool" } ] @@ -7828,6 +7917,15 @@ } ] ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slotId", + "type": "i16" + } + ] + ], "packet_keep_alive": [ "container", [ @@ -7846,20 +7944,16 @@ } ] ], - "packet_position": [ + "packet_look": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "yaw", + "type": "f32" }, { - "name": "z", - "type": "f64" + "name": "pitch", + "type": "f32" }, { "name": "onGround", @@ -7867,62 +7961,73 @@ } ] ], - "packet_position_look": [ + "packet_message_acknowledgement": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, + "name": "count", + "type": "varint" + } + ] + ], + "packet_name_item": [ + "container", + [ { - "name": "onGround", - "type": "bool" + "name": "name", + "type": "string" } ] ], - "packet_look": [ + "packet_pick_item": [ "container", [ { - "name": "yaw", - "type": "f32" - }, + "name": "slot", + "type": "varint" + } + ] + ], + "packet_ping_request": [ + "container", + [ { - "name": "pitch", - "type": "f32" - }, + "name": "id", + "type": "i64" + } + ] + ], + "packet_pong": [ + "container", + [ { - "name": "onGround", - "type": "bool" + "name": "id", + "type": "i32" } ] ], - "packet_flying": [ + "packet_position": [ "container", [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "onGround", "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_position_look": [ "container", [ { @@ -7944,234 +8049,194 @@ { "name": "pitch", "type": "f32" - } - ] - ], - "packet_steer_boat": [ - "container", - [ - { - "name": "leftPaddle", - "type": "bool" }, { - "name": "rightPaddle", + "name": "onGround", "type": "bool" } ] ], - "packet_pick_item": [ + "packet_query_block_nbt": [ "container", [ { - "name": "slot", + "name": "transactionId", "type": "varint" + }, + { + "name": "location", + "type": "position" } ] ], - "packet_ping_request": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "id", - "type": "i64" + "name": "transactionId", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" } ] ], - "packet_craft_recipe_request": [ + "packet_recipe_book": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "bookId", + "type": "varint" }, { - "name": "recipe", - "type": "string" + "name": "bookOpen", + "type": "bool" }, { - "name": "makeAll", + "name": "filterActive", "type": "bool" } ] ], - "packet_abilities": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "uuid", + "type": "UUID" + }, + { + "name": "result", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_select_trade": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" - }, - { - "name": "sequence", + "name": "slot", "type": "varint" } ] ], - "packet_entity_action": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "primary_effect", + "type": [ + "option", + "varint" + ] }, { - "name": "jumpBoost", - "type": "varint" + "name": "secondary_effect", + "type": [ + "option", + "varint" + ] } ] ], - "packet_steer_vehicle": [ + "packet_set_creative_slot": [ "container", [ { - "name": "sideways", - "type": "f32" - }, - { - "name": "forward", - "type": "f32" + "name": "slot", + "type": "i16" }, { - "name": "jump", - "type": "u8" + "name": "item", + "type": "Slot" } ] ], - "packet_pong": [ + "packet_set_difficulty": [ "container", [ { - "name": "id", - "type": "i32" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_recipe_book": [ + "packet_set_slot_state": [ "container", [ { - "name": "bookId", + "name": "slot_id", "type": "varint" }, { - "name": "bookOpen", - "type": "bool" + "name": "window_id", + "type": "varint" }, { - "name": "filterActive", + "name": "state", "type": "bool" } ] ], - "packet_displayed_recipe": [ - "container", - [ - { - "name": "recipeId", - "type": "string" - } - ] - ], - "packet_name_item": [ + "packet_spectate": [ "container", [ { - "name": "name", - "type": "string" + "name": "target", + "type": "UUID" } ] ], - "packet_resource_pack_receive": [ + "packet_steer_boat": [ "container", [ { - "name": "uuid", - "type": "UUID" + "name": "leftPaddle", + "type": "bool" }, { - "name": "result", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], - "packet_advancement_tab": [ + "packet_steer_vehicle": [ "container", [ { - "name": "action", - "type": "varint" + "name": "sideways", + "type": "f32" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] - } - ] - ], - "packet_select_trade": [ - "container", - [ + "name": "forward", + "type": "f32" + }, { - "name": "slot", - "type": "varint" + "name": "jump", + "type": "u8" } ] ], - "packet_set_beacon_effect": [ + "packet_tab_complete": [ "container", [ { - "name": "primary_effect", - "type": [ - "option", - "varint" - ] + "name": "transactionId", + "type": "varint" }, { - "name": "secondary_effect", - "type": [ - "option", - "varint" - ] + "name": "text", + "type": "string" } ] ], - "packet_held_item_slot": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "teleportId", + "type": "varint" } ] ], @@ -8213,19 +8278,6 @@ } ] ], - "packet_set_creative_slot": [ - "container", - [ - { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" - } - ] - ], "packet_update_jigsaw_block": [ "container", [ @@ -8263,6 +8315,35 @@ } ] ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], "packet_update_structure_block": [ "container", [ @@ -8332,243 +8413,162 @@ } ] ], - "packet_update_sign": [ + "packet_use_entity": [ "container", [ { - "name": "location", - "type": "position" + "name": "target", + "type": "varint" }, { - "name": "isFrontText", - "type": "bool" + "name": "mouse", + "type": "varint" + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "text1", - "type": "string" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "text2", - "type": "string" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "text3", - "type": "string" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "text4", - "type": "string" + "name": "sneaking", + "type": "bool" } ] ], - "packet_arm_animation": [ + "packet_use_item": [ "container", [ { "name": "hand", "type": "varint" - } - ] - ], - "packet_spectate": [ - "container", - [ + }, { - "name": "target", - "type": "UUID" + "name": "sequence", + "type": "varint" } ] ], - "packet_block_place": [ + "packet_vehicle_move": [ "container", [ { - "name": "hand", - "type": "varint" - }, - { - "name": "location", - "type": "position" + "name": "x", + "type": "f64" }, { - "name": "direction", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "cursorX", - "type": "f32" + "name": "z", + "type": "f64" }, { - "name": "cursorY", + "name": "yaw", "type": "f32" }, { - "name": "cursorZ", + "name": "pitch", "type": "f32" - }, - { - "name": "insideBlock", - "type": "bool" - }, - { - "name": "sequence", - "type": "varint" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "stateId", "type": "varint" }, { - "name": "sequence", + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", "type": "varint" - } - ] - ], - "packet": [ - "container", - [ + }, { - "name": "name", + "name": "changedSlots", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "message_acknowledgement", - "0x04": "chat_command", - "0x05": "chat_command_signed", - "0x06": "chat_message", - "0x07": "chat_session_update", - "0x08": "chunk_batch_received", - "0x09": "client_command", - "0x0a": "settings", - "0x0b": "tab_complete", - "0x0c": "configuration_acknowledged", - "0x0d": "enchant_item", - "0x0e": "window_click", - "0x0f": "close_window", - "0x10": "set_slot_state", - "0x11": "cookie_response", - "0x12": "custom_payload", - "0x13": "debug_sample_subscription", - "0x14": "edit_book", - "0x15": "query_entity_nbt", - "0x16": "use_entity", - "0x17": "generate_structure", - "0x18": "keep_alive", - "0x19": "lock_difficulty", - "0x1a": "position", - "0x1b": "position_look", - "0x1c": "look", - "0x1d": "flying", - "0x1e": "vehicle_move", - "0x1f": "steer_boat", - "0x20": "pick_item", - "0x21": "ping_request", - "0x22": "craft_recipe_request", - "0x23": "abilities", - "0x24": "block_dig", - "0x25": "entity_action", - "0x26": "steer_vehicle", - "0x27": "pong", - "0x28": "recipe_book", - "0x29": "displayed_recipe", - "0x2a": "name_item", - "0x2b": "resource_pack_receive", - "0x2c": "advancement_tab", - "0x2d": "select_trade", - "0x2e": "set_beacon_effect", - "0x2f": "held_item_slot", - "0x30": "update_command_block", - "0x31": "update_command_block_minecart", - "0x32": "set_creative_slot", - "0x33": "update_jigsaw_block", - "0x34": "update_structure_block", - "0x35": "update_sign", - "0x36": "arm_animation", - "0x37": "spectate", - "0x38": "block_place", - "0x39": "use_item" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" + } + ] + ] } ] }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "message_acknowledgement": "packet_message_acknowledgement", - "chat_command": "packet_chat_command", - "chat_command_signed": "packet_chat_command_signed", - "chat_message": "packet_chat_message", - "chat_session_update": "packet_chat_session_update", - "chunk_batch_received": "packet_chunk_batch_received", - "client_command": "packet_client_command", - "settings": "packet_common_settings", - "tab_complete": "packet_tab_complete", - "configuration_acknowledged": "packet_configuration_acknowledged", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "set_slot_state": "packet_set_slot_state", - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "debug_sample_subscription": "packet_debug_sample_subscription", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "pick_item": "packet_pick_item", - "ping_request": "packet_ping_request", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "pong": "packet_pong", - "recipe_book": "packet_recipe_book", - "displayed_recipe": "packet_displayed_recipe", - "name_item": "packet_name_item", - "resource_pack_receive": "packet_resource_pack_receive", - "advancement_tab": "packet_advancement_tab", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "held_item_slot": "packet_held_item_slot", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_structure_block": "packet_update_structure_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } - } - ] + "name": "cursorItem", + "type": "Slot" } ] ] diff --git a/data/pc/1.20/protocol.json b/data/pc/1.20/protocol.json index 7b8ab214e..219b92b9e 100644 --- a/data/pc/1.20/protocol.json +++ b/data/pc/1.20/protocol.json @@ -1,120 +1,11 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", - "registryEntryHolder": "native", - "registryEntryHolderSet": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3f": [ - "container", - [ - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - } - ] - ], - "vec4f": [ - "container", - [ - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "w", - "type": "f32" - } - ] - ], - "vec3f64": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - } - ] - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], "ItemSoundEvent": [ "container", [ @@ -141,722 +32,168 @@ } } ], - "slot": [ - "container", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "chat_session": [ + "option", [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "publicKey", + "type": [ + "container", + [ + { + "name": "expireTime", + "type": "i64" + }, + { + "name": "keyBytes", + "type": [ + "buffer", { - "name": "itemCount", - "type": "i8" - }, + "countType": "varint" + } + ] + }, + { + "name": "keySignature", + "type": [ + "buffer", { - "name": "nbtData", - "type": "optionalNbt" + "countType": "varint" } ] - ] - } - } - ] - } + } + ] + ] + } + ] ] ], - "particle": [ + "chunkBlockEntity": [ "container", [ { - "name": "particleId", + "anon": true, + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 + } + ] + ] + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "type", "type": "varint" }, { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "nbtData", + "type": "optionalNbt" } ] ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "2": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "3": [ - "container", + "command_node": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", [ { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", - [ + "name": "unused", + "signed": false, + "size": 3 + }, { - "name": "red", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "green", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_command", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "15": [ - "container", - [ - { - "name": "fromRed", - "type": "f32" - }, - { - "name": "fromGreen", - "type": "f32" - }, - { - "name": "fromBlue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - }, - { - "name": "toRed", - "type": "f32" - }, - { - "name": "toGreen", - "type": "f32" - }, - { - "name": "toBlue", - "type": "f32" - } - ] - ], - "25": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "31": [ - "container", - [ - { - "name": "rotation", - "type": "f32" - } - ] - ], - "40": [ - "container", - [ - { - "name": "item", - "type": "slot" - } - ] - ], - "41": [ - "container", - [ - { - "name": "positionType", - "type": "string" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:entity": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entityEyeHeight", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:entity": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "destination", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "minecraft:block": "position", - "minecraft:entity": "varint" - } - } - ] - }, - { - "name": "ticks", - "type": "varint" - } - ] - ], - "93": [ - "container", - [ - { - "name": "delayInTicksBeforeShown", - "type": "varint" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "packedChunkPos": [ - "container", - [ - { - "name": "z", - "type": "i32" - }, { - "name": "x", - "type": "i32" - } - ] - ], - "soundSource": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "master", - "1": "music", - "2": "record", - "3": "weather", - "4": "block", - "5": "hostile", - "6": "neutral", - "7": "player", - "8": "ambient", - "9": "voice" - } - } - ], - "previousMessages": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ + "name": "children", + "type": [ + "array", { - "name": "id", + "countType": "varint", "type": "varint" - }, - { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] } ] - ] - } - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "byte": "i8", - "int": "varint", - "long": "varlong", - "float": "f32", - "string": "string", - "component": "string", - "optional_component": [ - "option", - "string" - ], - "item_stack": "slot", - "boolean": "bool", - "rotations": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" + }, + { + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" } - ] - ], - "block_pos": "position", - "optional_block_pos": [ - "option", - "position" - ], - "direction": "varint", - "optional_uuid": [ - "option", - "UUID" - ], - "block_state": "varint", - "optional_block_state": "optvarint", - "compound_tag": "nbt", - "particle": "particle", - "villager_data": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "optional_unsigned_int": "optvarint", - "pose": "varint", - "cat_variant": "varint", - "frog_variant": "varint", - "optional_global_pos": [ - "option", - "string" - ], - "painting_variant": "varint", - "sniffer_state": "varint", - "vector3": "vec3f", - "quaternion": "vec4f" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "byte", - "1": "int", - "2": "long", - "3": "float", - "4": "string", - "5": "component", - "6": "optional_component", - "7": "item_stack", - "8": "boolean", - "9": "rotations", - "10": "block_pos", - "11": "optional_block_pos", - "12": "direction", - "13": "optional_uuid", - "14": "block_state", - "15": "optional_block_state", - "16": "compound_tag", - "17": "particle", - "18": "villager_data", - "19": "optional_unsigned_int", - "20": "pose", - "21": "cat_variant", - "22": "frog_variant", - "23": "optional_global_pos", - "24": "painting_variant", - "25": "sniffer_state", - "26": "vector3", - "27": "quaternion" - } - } - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] } ] - ] - } - ], - "minecraft_simple_recipe_format": [ - "container", - [ - { - "name": "category", - "type": "varint" - } - ] - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" }, { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "chunkBlockEntity": [ - "container", - [ - { - "anon": true, + "name": "extraNodeData", "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ], - "chat_session": [ - "option", - [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "publicKey", - "type": [ - "container", - [ - { - "name": "expireTime", - "type": "i64" - }, - { - "name": "keyBytes", - "type": [ - "buffer", + "switch", + { + "compareTo": "flags/command_node_type", + "fields": { + "0": "void", + "1": [ + "container", + [ { - "countType": "varint" + "name": "name", + "type": "string" } ] - }, - { - "name": "keySignature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] - } - ] - ] - ], - "game_profile": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "extraNodeData", - "type": [ - "switch", - { - "compareTo": "flags/command_node_type", - "fields": { - "0": "void", - "1": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] - ], - "2": [ - "container", - [ + ], + "2": [ + "container", + [ { "name": "name", "type": "string" @@ -866,7 +203,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "brigadier:bool", "1": "brigadier:float", @@ -917,7 +253,8 @@ "46": "minecraft:template_rotation", "47": "minecraft:heightmap", "48": "minecraft:uuid" - } + }, + "type": "varint" } ] }, @@ -929,7 +266,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -939,18 +276,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -961,10 +298,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -974,16 +311,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -993,18 +330,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1015,10 +352,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -1028,10 +365,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -1047,18 +384,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1069,10 +406,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -1082,10 +419,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -1101,18 +438,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1123,10 +460,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -1136,10 +473,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -1148,45 +485,52 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:gamemode": "void", + "minecraft:heightmap": "void", + "minecraft:int_range": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", "minecraft:nbt": "void", "minecraft:nbt_path": "void", @@ -1194,43 +538,25 @@ "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", + "minecraft:resource": [ + "container", [ { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false + "name": "registry", + "type": "string" } ] ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:dimension": "void", - "minecraft:gamemode": "void", - "minecraft:time": [ + "minecraft:resource_key": [ "container", [ { - "name": "min", - "type": "i32" + "name": "registry", + "type": "string" } ] ], + "minecraft:resource_location": "void", "minecraft:resource_or_tag": [ "container", [ @@ -1249,44 +575,588 @@ } ] ], - "minecraft:resource": [ - "container", + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", [ { - "name": "registry", - "type": "string" + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 } ] ], - "minecraft:resource_key": [ + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:template_mirror": "void", + "minecraft:template_rotation": "void", + "minecraft:time": [ "container", [ { - "name": "registry", - "type": "string" + "name": "min", + "type": "i32" } ] ], - "minecraft:template_mirror": "void", - "minecraft:template_rotation": "void", - "minecraft:heightmap": "void", - "minecraft:uuid": "void" + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" + } + } + ] + }, + { + "name": "suggestionType", + "type": [ + "switch", + { + "compareTo": "../flags/has_custom_suggestions", + "default": "void", + "fields": { + "1": "string" } } ] + } + ] + ] + } + } + ] + } + ] + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "compound_tag", + "17": "particle", + "18": "villager_data", + "19": "optional_unsigned_int", + "20": "pose", + "21": "cat_variant", + "22": "frog_variant", + "23": "optional_global_pos", + "24": "painting_variant", + "25": "sniffer_state", + "26": "vector3", + "27": "quaternion" + }, + "type": "varint" + } + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "block_pos": "position", + "block_state": "varint", + "boolean": "bool", + "byte": "i8", + "cat_variant": "varint", + "component": "string", + "compound_tag": "nbt", + "direction": "varint", + "float": "f32", + "frog_variant": "varint", + "int": "varint", + "item_stack": "slot", + "long": "varlong", + "optional_block_pos": [ + "option", + "position" + ], + "optional_block_state": "optvarint", + "optional_component": [ + "option", + "string" + ], + "optional_global_pos": [ + "option", + "string" + ], + "optional_unsigned_int": "optvarint", + "optional_uuid": [ + "option", + "UUID" + ], + "painting_variant": "varint", + "particle": "particle", + "pose": "varint", + "quaternion": "vec4f", + "rotations": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "sniffer_state": "varint", + "string": "string", + "vector3": "vec3f", + "villager_data": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "game_profile": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + } + ] + ], + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "minecraft_simple_recipe_format": [ + "container", + [ + { + "name": "category", + "type": "varint" + } + ] + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "packedChunkPos": [ + "container", + [ + { + "name": "z", + "type": "i32" + }, + { + "name": "x", + "type": "i32" + } + ] + ], + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "2": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "15": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "25": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "31": [ + "container", + [ + { + "name": "rotation", + "type": "f32" + } + ] + ], + "40": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ], + "41": [ + "container", + [ + { + "name": "positionType", + "type": "string" + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "positionType", + "default": "void", + "fields": { + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "entityEyeHeight", + "type": [ + "switch", + { + "compareTo": "positionType", + "default": "void", + "fields": { + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "destination", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "minecraft:block": "position", + "minecraft:entity": "varint" + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] + ], + "93": [ + "container", + [ + { + "name": "delayInTicksBeforeShown", + "type": "varint" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "previousMessages": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "signature", + "type": [ + "switch", + { + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] + } + } + ] + } + ] + ] + } + ], + "pstring": "native", + "registryEntryHolder": "native", + "registryEntryHolderSet": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" }, { - "name": "suggestionType", - "type": [ - "switch", - { - "compareTo": "../flags/has_custom_suggestions", - "fields": { - "1": "string" - }, - "default": "void" - } - ] + "name": "nbtData", + "type": "optionalNbt" } ] ] @@ -1295,7 +1165,137 @@ ] } ] - ] + ], + "soundSource": [ + "mapper", + { + "mappings": { + "0": "master", + "1": "music", + "2": "record", + "3": "weather", + "4": "block", + "5": "hostile", + "6": "neutral", + "7": "player", + "8": "ambient", + "9": "voice" + }, + "type": "varint" + } + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + } + ] + ], + "vec3f64": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "vec4f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "w", + "type": "f32" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -1308,8 +1308,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -1329,6 +1329,46 @@ }, "toServer": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", + [ + { + "name": "payload", + "type": "u8" + } + ] + ], "packet_set_protocol": [ "container", [ @@ -1349,16 +1389,13 @@ "type": "varint" } ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1367,11 +1404,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -1382,38 +1419,36 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_ping": [ + "packet_server_info": [ "container", [ { - "name": "time", - "type": "i64" + "name": "response", + "type": "string" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1422,11 +1457,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "server_info", + "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -1437,21 +1472,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -1462,6 +1489,16 @@ } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1470,11 +1507,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" + }, + "type": "varint" } ] }, @@ -1485,20 +1525,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -1535,6 +1581,23 @@ } ] ], + "packet_login_plugin_request": [ + "container", + [ + { + "name": "messageId", + "type": "varint" + }, + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], "packet_success": [ "container", [ @@ -1576,33 +1639,11 @@ ] } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], - "packet_login_plugin_request": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1611,14 +1652,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", + "0x00": "login_start", "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" - } + "0x02": "login_plugin_response" + }, + "type": "varint" } ] }, @@ -1629,36 +1668,14 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - }, - { - "name": "playerUUID", - "type": [ - "option", - "UUID" - ] - } - ] ], "packet_encryption_begin": [ "container", @@ -1699,6 +1716,28 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + }, + { + "name": "playerUUID", + "type": [ + "option", + "UUID" + ] + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1707,12 +1746,120 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" - } + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "spawn_entity_experience_orb", + "0x03": "named_entity_spawn", + "0x04": "animation", + "0x05": "statistics", + "0x06": "acknowledge_player_digging", + "0x07": "block_break_animation", + "0x08": "tile_entity_data", + "0x09": "block_action", + "0x0a": "block_change", + "0x0b": "boss_bar", + "0x0c": "difficulty", + "0x0d": "chunk_biomes", + "0x0e": "clear_titles", + "0x0f": "tab_complete", + "0x10": "declare_commands", + "0x11": "close_window", + "0x12": "window_items", + "0x13": "craft_progress_bar", + "0x14": "set_slot", + "0x15": "set_cooldown", + "0x16": "chat_suggestions", + "0x17": "custom_payload", + "0x18": "damage_event", + "0x19": "hide_message", + "0x1a": "kick_disconnect", + "0x1b": "profileless_chat", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "open_horse_window", + "0x21": "hurt_animation", + "0x22": "initialize_world_border", + "0x23": "keep_alive", + "0x24": "map_chunk", + "0x25": "world_event", + "0x26": "world_particles", + "0x27": "update_light", + "0x28": "login", + "0x29": "map", + "0x2a": "trade_list", + "0x2b": "rel_entity_move", + "0x2c": "entity_move_look", + "0x2d": "entity_look", + "0x2e": "vehicle_move", + "0x2f": "open_book", + "0x30": "open_window", + "0x31": "open_sign_entity", + "0x32": "ping", + "0x33": "craft_recipe_response", + "0x34": "abilities", + "0x35": "player_chat", + "0x36": "end_combat_event", + "0x37": "enter_combat_event", + "0x38": "death_combat_event", + "0x39": "player_remove", + "0x3a": "player_info", + "0x3b": "face_player", + "0x3c": "position", + "0x3d": "unlock_recipes", + "0x3e": "entity_destroy", + "0x3f": "remove_entity_effect", + "0x40": "resource_pack_send", + "0x41": "respawn", + "0x42": "entity_head_rotation", + "0x43": "multi_block_change", + "0x44": "select_advancement_tab", + "0x45": "server_data", + "0x46": "action_bar", + "0x47": "world_border_center", + "0x48": "world_border_lerp_size", + "0x49": "world_border_size", + "0x4a": "world_border_warning_delay", + "0x4b": "world_border_warning_reach", + "0x4c": "camera", + "0x4d": "held_item_slot", + "0x4e": "update_view_position", + "0x4f": "update_view_distance", + "0x50": "spawn_position", + "0x51": "scoreboard_display_objective", + "0x52": "entity_metadata", + "0x53": "attach_entity", + "0x54": "entity_velocity", + "0x55": "entity_equipment", + "0x56": "experience", + "0x57": "update_health", + "0x58": "scoreboard_objective", + "0x59": "set_passengers", + "0x5a": "teams", + "0x5b": "scoreboard_score", + "0x5c": "simulation_distance", + "0x5d": "set_title_subtitle", + "0x5e": "update_time", + "0x5f": "set_title_text", + "0x60": "set_title_time", + "0x61": "entity_sound_effect", + "0x62": "sound_effect", + "0x63": "stop_sound", + "0x64": "system_chat", + "0x65": "playerlist_header", + "0x66": "nbt_query_response", + "0x67": "collect", + "0x68": "entity_teleport", + "0x69": "advancements", + "0x6a": "entity_update_attributes", + "0x6b": "feature_flags", + "0x6c": "entity_effect", + "0x6d": "declare_recipes", + "0x6e": "tags" + }, + "type": "varint" } ] }, @@ -1723,169 +1870,155 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "bundle_delimiter": "void", + "camera": "packet_camera", + "chat_suggestions": "packet_chat_suggestions", + "chunk_biomes": "packet_chunk_biomes", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "damage_event": "packet_damage_event", + "death_combat_event": "packet_death_combat_event", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "feature_flags": "packet_feature_flags", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "hide_message": "packet_hide_message", + "hurt_animation": "packet_hurt_animation", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "player_chat": "packet_player_chat", + "player_info": "packet_player_info", + "player_remove": "packet_player_remove", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "profileless_chat": "packet_profileless_chat", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "server_data": "packet_server_data", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "system_chat": "packet_system_chat", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "trade_list": "packet_trade_list", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "objectData", - "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] - ], - "packet_named_entity_spawn": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", + "name": "flags", "type": "i8" }, { - "name": "pitch", - "type": "i8" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "walkingSpeed", + "type": "f32" + } + ] + ], + "packet_acknowledge_player_digging": [ + "container", + [ + { + "name": "sequenceId", + "type": "varint" + } + ] + ], + "packet_action_bar": [ + "container", + [ + { + "name": "text", + "type": "string" } ] ], @@ -1951,23 +2084,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1978,10 +2111,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -2102,7 +2235,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -2110,29 +2243,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -2157,6 +2282,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -2187,11 +2329,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -2201,11 +2343,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -2215,11 +2357,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -2229,11 +2371,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -2243,46 +2385,219 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat_suggestions": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], + "packet_chunk_biomes": [ + "container", + [ + { + "name": "biomes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "position", + "type": "packedChunkPos" + }, + { + "name": "data", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ] + } + ] + } + ] + ], + "packet_clear_titles": [ + "container", + [ + { + "name": "reset", + "type": "bool" + } + ] + ], + "packet_close_window": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", + "type": "varint" + }, + { + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", "type": "u8" }, { - "name": "difficultyLocked", - "type": "bool" + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_craft_recipe_response": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "recipe", + "type": "string" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_damage_event": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "sourceTypeId", + "type": "varint" + }, + { + "name": "sourceCauseId", + "type": "varint" + }, + { + "name": "sourceDirectId", + "type": "varint" + }, + { + "name": "sourcePosition", + "type": [ + "option", + "vec3f64" + ] + } + ] + ], + "packet_death_combat_event": [ + "container", + [ + { + "name": "playerId", + "type": "varint" + }, + { + "name": "message", + "type": "string" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] + }, + { + "name": "rootIndex", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_declare_recipes": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", - "type": "varint" - }, - { - "name": "matches", + "name": "recipes", "type": [ "array", { @@ -2291,14 +2606,168 @@ "container", [ { - "name": "match", + "name": "type", "type": "string" }, { - "name": "tooltip", + "name": "recipeId", + "type": "string" + }, + { + "name": "data", "type": [ - "option", - "string" + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "showNotification", + "type": "bool" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "minecraft_simple_recipe_format", + "minecraft:crafting_special_banneraddpattern": "minecraft_simple_recipe_format", + "minecraft:crafting_special_bannerduplicate": "minecraft_simple_recipe_format", + "minecraft:crafting_special_bookcloning": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_rocket": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_star": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_star_fade": "minecraft_simple_recipe_format", + "minecraft:crafting_special_mapcloning": "minecraft_simple_recipe_format", + "minecraft:crafting_special_mapextending": "minecraft_simple_recipe_format", + "minecraft:crafting_special_repairitem": "minecraft_simple_recipe_format", + "minecraft:crafting_special_shielddecoration": "minecraft_simple_recipe_format", + "minecraft:crafting_special_shulkerboxcoloring": "minecraft_simple_recipe_format", + "minecraft:crafting_special_suspiciousstew": "minecraft_simple_recipe_format", + "minecraft:crafting_special_tippedarrow": "minecraft_simple_recipe_format", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing_transform": [ + "container", + [ + { + "name": "template", + "type": "ingredient" + }, + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smithing_trim": [ + "container", + [ + { + "name": "template", + "type": "ingredient" + }, + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } ] } ] @@ -2308,333 +2777,376 @@ } ] ], - "packet_declare_commands": [ + "packet_difficulty": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] + "name": "difficulty", + "type": "u8" }, { - "name": "rootIndex", - "type": "varint" + "name": "difficultyLocked", + "type": "bool" } ] ], - "packet_face_player": [ + "packet_end_combat_event": [ "container", [ { - "name": "feet_eyes", + "name": "duration", "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, + } + ] + ], + "packet_enter_combat_event": [ + "container", + [] + ], + "packet_entity_destroy": [ + "container", + [ { - "name": "entity_feet_eyes", + "name": "entityIds", "type": [ - "switch", + "array", { - "compareTo": "isEntity", - "fields": { - "true": "string" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_nbt_query_response": [ + "packet_entity_effect": [ "container", [ { - "name": "transactionId", + "name": "entityId", "type": "varint" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "effectId", + "type": "varint" + }, + { + "name": "amplifier", + "type": "i8" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "i8" + }, + { + "name": "factorCodec", + "type": [ + "option", + "nbt" + ] } ] ], - "packet_multi_block_change": [ + "packet_entity_equipment": [ "container", [ { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] + "name": "entityId", + "type": "varint" }, { - "name": "records", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] } ] } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", + "name": "entityId", "type": "varint" }, { - "name": "inventoryType", - "type": "varint" + "name": "yaw", + "type": "i8" }, { - "name": "windowTitle", - "type": "string" + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "stateId", + "name": "entityId", "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ] - }, - { - "name": "carriedItem", - "type": "slot" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ + }, { - "name": "windowId", - "type": "i8" + "name": "dZ", + "type": "i16" }, { - "name": "stateId", - "type": "varint" + "name": "yaw", + "type": "i8" }, { - "name": "slot", - "type": "i16" + "name": "pitch", + "type": "i8" }, { - "name": "item", - "type": "slot" + "name": "onGround", + "type": "bool" } ] ], - "packet_set_cooldown": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "itemID", + "name": "soundId", "type": "varint" }, { - "name": "cooldownTicks", + "name": "soundEvent", + "type": [ + "switch", + { + "compareTo": "soundId", + "default": "void", + "fields": { + "0": [ + "container", + [ + { + "name": "resource", + "type": "string" + }, + { + "name": "range", + "type": [ + "option", + "f32" + ] + } + ] + ] + } + } + ] + }, + { + "name": "soundCategory", + "type": "soundSource" + }, + { + "name": "entityId", "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], - "packet_chat_suggestions": [ + "packet_entity_status": [ "container", [ { - "name": "action", - "type": "varint" + "name": "entityId", + "type": "i32" }, { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "entityStatus", + "type": "i8" } ] ], - "packet_custom_payload": [ + "packet_entity_teleport": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_hide_message": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "id", + "name": "entityId", "type": "varint" }, { - "name": "signature", + "name": "properties", "type": [ - "switch", + "array", { - "compareTo": "id", - "fields": { - "0": [ - "buffer", + "countType": "varint", + "type": [ + "container", + [ { - "count": 256 + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] } ] - }, - "default": "void" + ] } ] } ] ], - "packet_kick_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_profileless_chat": [ + "packet_entity_velocity": [ "container", [ { - "name": "message", - "type": "string" - }, - { - "name": "type", + "name": "entityId", "type": "varint" }, { - "name": "name", - "type": "string" - }, - { - "name": "target", - "type": [ - "option", - "string" - ] + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_status": [ + "packet_experience": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "experienceBar", + "type": "f32" }, { - "name": "entityStatus", - "type": "i8" + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -2697,323 +3209,186 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ - "container", - [ - { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", - "type": "f32" - } - ] - ], - "packet_open_horse_window": [ + "packet_face_player": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "nbSlots", + "name": "feet_eyes", "type": "varint" }, - { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_map_chunk": [ - "container", - [ { "name": "x", - "type": "i32" + "type": "f64" }, { - "name": "z", - "type": "i32" + "name": "y", + "type": "f64" }, { - "name": "heightmaps", - "type": "nbt" + "name": "z", + "type": "f64" }, { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "isEntity", + "type": "bool" }, { - "name": "blockEntities", + "name": "entityId", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "chunkBlockEntity" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } } ] }, { - "name": "skyLightMask", + "name": "entity_feet_eyes", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] - }, + } + ] + ], + "packet_feature_flags": [ + "container", + [ { - "name": "blockLightMask", + "name": "features", "type": [ "array", { "countType": "varint", - "type": "i64" + "type": "string" } ] - }, + } + ] + ], + "packet_game_state_change": [ + "container", + [ { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "reason", + "type": "u8" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "slot", + "type": "i8" + } + ] + ], + "packet_hide_message": [ + "container", + [ + { + "name": "id", + "type": "varint" }, { - "name": "blockLight", + "name": "signature", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] + } } ] } ] ], - "packet_world_event": [ + "packet_hurt_animation": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "global", - "type": "bool" + "name": "yaw", + "type": "f32" } ] ], - "packet_world_particles": [ + "packet_initialize_world_border": [ "container", [ - { - "name": "particleId", - "type": "varint" - }, - { - "name": "longDistance", - "type": "bool" - }, { "name": "x", "type": "f64" }, - { - "name": "y", - "type": "f64" - }, { "name": "z", "type": "f64" }, { - "name": "offsetX", - "type": "f32" + "name": "oldDiameter", + "type": "f64" }, { - "name": "offsetY", - "type": "f32" + "name": "newDiameter", + "type": "f64" }, { - "name": "offsetZ", - "type": "f32" + "name": "speed", + "type": "varint" }, { - "name": "particleData", - "type": "f32" + "name": "portalTeleportBoundary", + "type": "varint" }, { - "name": "particles", - "type": "i32" + "name": "warningBlocks", + "type": "varint" }, { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "warningTime", + "type": "varint" } ] ], - "packet_update_light": [ + "packet_keep_alive": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - }, - { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "reason", + "type": "string" } ] ], @@ -3180,10 +3555,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -3193,10 +3568,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -3206,10 +3581,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -3219,125 +3594,167 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } + ], + "fields": { + "0": "void" + } + } + ] + } + ] + ], + "packet_map_chunk": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "heightmaps", + "type": "nbt" + }, + { + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "chunkBlockEntity" + } + ] + }, + { + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] - } - ] - ], - "packet_trade_list": [ - "container", - [ - { - "name": "windowId", - "type": "varint" }, { - "name": "trades", + "name": "blockLight", "type": [ "array", { "countType": "varint", "type": [ - "container", - [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": "slot" - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ] + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] - }, - { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" - }, - { - "name": "isRegularVillager", - "type": "bool" - }, - { - "name": "canRestock", - "type": "bool" } ] ], - "packet_rel_entity_move": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] + ] }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -3345,16 +3762,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dY", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -3363,65 +3784,45 @@ { "name": "pitch", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity_look": [ + "packet_nbt_query_response": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_vehicle_move": [ + "packet_open_book": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "hand", + "type": "varint" } ] ], - "packet_open_book": [ + "packet_open_horse_window": [ "container", [ { - "name": "hand", + "name": "windowId", + "type": "u8" + }, + { + "name": "nbSlots", "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], @@ -3438,33 +3839,29 @@ } ] ], - "packet_craft_recipe_response": [ + "packet_open_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "varint" }, { - "name": "recipe", + "name": "inventoryType", + "type": "varint" + }, + { + "name": "windowTitle", "type": "string" } ] ], - "packet_abilities": [ + "packet_ping": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "id", + "type": "i32" } ] ], @@ -3524,6 +3921,7 @@ "switch", { "compareTo": "filterType", + "default": "void", "fields": { "2": [ "array", @@ -3532,8 +3930,7 @@ "type": "i64" } ] - }, - "default": "void" + } } ] }, @@ -3549,48 +3946,7 @@ "name": "networkTargetName", "type": [ "option", - "string" - ] - } - ] - ], - "packet_end_combat_event": [ - "container", - [ - { - "name": "duration", - "type": "varint" - } - ] - ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ - "container", - [ - { - "name": "playerId", - "type": "varint" - }, - { - "name": "message", - "type": "string" - } - ] - ], - "packet_player_remove": [ - "container", - [ - { - "name": "players", - "type": [ - "array", - { - "countType": "varint", - "type": "UUID" - } + "string" ] } ] @@ -3603,7 +3959,6 @@ "type": [ "bitflags", { - "type": "u8", "flags": [ "add_player", "initialize_chat", @@ -3611,7 +3966,8 @@ "update_listed", "update_latency", "update_display_name" - ] + ], + "type": "u8" } ] }, @@ -3634,10 +3990,10 @@ "switch", { "compareTo": "../action/add_player", + "default": "void", "fields": { "true": "game_profile" - }, - "default": "void" + } } ] }, @@ -3647,10 +4003,10 @@ "switch", { "compareTo": "../action/initialize_chat", + "default": "void", "fields": { "true": "chat_session" - }, - "default": "void" + } } ] }, @@ -3660,10 +4016,10 @@ "switch", { "compareTo": "../action/update_game_mode", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -3673,10 +4029,10 @@ "switch", { "compareTo": "../action/update_listed", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -3686,10 +4042,10 @@ "switch", { "compareTo": "../action/update_latency", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -3699,344 +4055,109 @@ "switch", { "compareTo": "../action/update_display_name", + "default": "void", "fields": { "true": [ "option", "string" ] - }, - "default": "void" - } - ] - } - ] - ] - } - ] - } - ] - ], - "packet_position": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "flags", - "type": "i8" - }, - { - "name": "teleportId", - "type": "varint" - } - ] - ], - "packet_unlock_recipes": [ - "container", - [ - { - "name": "action", - "type": "varint" - }, - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "filteringCraftable", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "filteringSmeltable", - "type": "bool" - }, - { - "name": "blastFurnaceOpen", - "type": "bool" - }, - { - "name": "filteringBlastFurnace", - "type": "bool" - }, - { - "name": "smokerBookOpen", - "type": "bool" - }, - { - "name": "filteringSmoker", - "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_remove_entity_effect": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "effectId", - "type": "varint" - } - ] - ], - "packet_resource_pack_send": [ - "container", - [ - { - "name": "url", - "type": "string" - }, - { - "name": "hash", - "type": "string" - }, - { - "name": "forced", - "type": "bool" - }, - { - "name": "promptMessage", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_respawn": [ - "container", - [ - { - "name": "dimension", - "type": "string" - }, - { - "name": "worldName", - "type": "string" - }, - { - "name": "hashedSeed", - "type": "i64" - }, - { - "name": "gamemode", - "type": "i8" - }, - { - "name": "previousGamemode", - "type": "u8" - }, - { - "name": "isDebug", - "type": "bool" - }, - { - "name": "isFlat", - "type": "bool" - }, - { - "name": "copyMetadata", - "type": "bool" - }, - { - "name": "death", - "type": [ - "option", - [ - "container", - [ - { - "name": "dimensionName", - "type": "string" - }, - { - "name": "location", - "type": "position" - } - ] - ] - ] - }, - { - "name": "portalCooldown", - "type": "varint" - } - ] - ], - "packet_entity_head_rotation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "headYaw", - "type": "i8" - } - ] - ], - "packet_camera": [ - "container", - [ - { - "name": "cameraId", - "type": "varint" + } + } + ] + } + ] + ] + } + ] } ] ], - "packet_held_item_slot": [ + "packet_player_remove": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "players", + "type": [ + "array", + { + "countType": "varint", + "type": "UUID" + } + ] } ] ], - "packet_update_view_position": [ + "packet_playerlist_header": [ "container", [ { - "name": "chunkX", - "type": "varint" + "name": "header", + "type": "string" }, { - "name": "chunkZ", - "type": "varint" + "name": "footer", + "type": "string" } ] ], - "packet_update_view_distance": [ + "packet_position": [ "container", [ { - "name": "viewDistance", - "type": "varint" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + "name": "x", + "type": "f64" + }, { - "name": "position", - "type": "i8" + "name": "y", + "type": "f64" }, { - "name": "name", - "type": "string" - } - ] - ], - "packet_entity_metadata": [ - "container", - [ + "name": "z", + "type": "f64" + }, { - "name": "entityId", - "type": "varint" + "name": "yaw", + "type": "f32" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "pitch", + "type": "f32" + }, { - "name": "entityId", - "type": "i32" + "name": "flags", + "type": "i8" }, { - "name": "vehicleId", - "type": "i32" + "name": "teleportId", + "type": "varint" } ] ], - "packet_entity_velocity": [ + "packet_profileless_chat": [ "container", [ { - "name": "entityId", + "name": "message", + "type": "string" + }, + { + "name": "type", "type": "varint" }, { - "name": "velocity", - "type": "vec3i16" + "name": "name", + "type": "string" + }, + { + "name": "target", + "type": [ + "option", + "string" + ] } ] ], - "packet_entity_equipment": [ + "packet_rel_entity_move": [ "container", [ { @@ -4044,261 +4165,169 @@ "type": "varint" }, { - "name": "equipments", - "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - } - ] - ], - "packet_experience": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "experienceBar", - "type": "f32" + "name": "dY", + "type": "i16" }, { - "name": "level", - "type": "varint" + "name": "dZ", + "type": "i16" }, { - "name": "totalExperience", - "type": "varint" + "name": "onGround", + "type": "bool" } ] ], - "packet_update_health": [ + "packet_remove_entity_effect": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", + "name": "entityId", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" + "name": "effectId", + "type": "varint" } ] ], - "packet_scoreboard_objective": [ + "packet_resource_pack_send": [ "container", [ { - "name": "name", + "name": "url", "type": "string" }, { - "name": "action", - "type": "i8" + "name": "hash", + "type": "string" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "forced", + "type": "bool" }, { - "name": "type", + "name": "promptMessage", "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } + "option", + "string" ] } ] ], - "packet_set_passengers": [ + "packet_respawn": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "dimension", + "type": "string" }, { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_teams": [ - "container", - [ - { - "name": "team", + "name": "worldName", "type": "string" }, { - "name": "mode", + "name": "hashedSeed", + "type": "i64" + }, + { + "name": "gamemode", "type": "i8" }, { - "name": "name", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "previousGamemode", + "type": "u8" }, { - "name": "friendlyFire", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" - } - ] + "name": "isDebug", + "type": "bool" }, { - "name": "nameTagVisibility", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "isFlat", + "type": "bool" + }, + { + "name": "copyMetadata", + "type": "bool" }, { - "name": "collisionRule", + "name": "death", "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } + "option", + [ + "container", + [ + { + "name": "dimensionName", + "type": "string" + }, + { + "name": "location", + "type": "position" + } + ] + ] ] }, { - "name": "formatting", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "portalCooldown", + "type": "varint" + } + ] + ], + "packet_scoreboard_display_objective": [ + "container", + [ + { + "name": "position", + "type": "i8" }, { - "name": "prefix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "name", + "type": "string" + } + ] + ], + "packet_scoreboard_objective": [ + "container", + [ + { + "name": "name", + "type": "string" }, { - "name": "suffix", + "name": "action", + "type": "i8" + }, + { + "name": "displayText", "type": [ "switch", { - "compareTo": "mode", + "compareTo": "action", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, { - "name": "players", + "name": "type", "type": [ "switch", { - "compareTo": "mode", + "compareTo": "action", + "default": "void", "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] } @@ -4325,132 +4354,146 @@ "switch", { "compareTo": "action", + "default": "varint", "fields": { "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "location", - "type": "position" + "name": "id", + "type": [ + "option", + "string" + ] + } + ] + ], + "packet_server_data": [ + "container", + [ + { + "name": "motd", + "type": "string" }, { - "name": "angle", - "type": "f32" + "name": "iconBytes", + "type": [ + "option", + [ + "buffer", + { + "countType": "varint" + } + ] + ] + }, + { + "name": "enforcesSecureChat", + "type": "bool" } ] ], - "packet_update_time": [ + "packet_set_cooldown": [ "container", [ { - "name": "age", - "type": "i64" + "name": "itemID", + "type": "varint" }, { - "name": "time", - "type": "i64" + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_entity_sound_effect": [ + "packet_set_passengers": [ "container", [ { - "name": "soundId", + "name": "entityId", "type": "varint" }, { - "name": "soundEvent", + "name": "passengers", "type": [ - "switch", + "array", { - "compareTo": "soundId", - "fields": { - "0": [ - "container", - [ - { - "name": "resource", - "type": "string" - }, - { - "name": "range", - "type": [ - "option", - "f32" - ] - } - ] - ] - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] - }, + } + ] + ], + "packet_set_slot": [ + "container", + [ { - "name": "soundCategory", - "type": "soundSource" + "name": "windowId", + "type": "i8" }, { - "name": "entityId", + "name": "stateId", "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "slot", + "type": "i16" }, { - "name": "pitch", - "type": "f32" - }, + "name": "item", + "type": "slot" + } + ] + ], + "packet_set_title_subtitle": [ + "container", + [ { - "name": "seed", - "type": "i64" + "name": "text", + "type": "string" } ] ], - "packet_stop_sound": [ + "packet_set_title_text": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "text", + "type": "string" + } + ] + ], + "packet_set_title_time": [ + "container", + [ + { + "name": "fadeIn", + "type": "i32" }, { - "name": "source", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" - } - ] + "name": "stay", + "type": "i32" }, { - "name": "sound", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "2": "string", - "3": "string" - }, - "default": "void" - } - ] + "name": "fadeOut", + "type": "i32" + } + ] + ], + "packet_simulation_distance": [ + "container", + [ + { + "name": "distance", + "type": "varint" } ] ], @@ -4491,50 +4534,56 @@ } ] ], - "packet_system_chat": [ + "packet_spawn_entity": [ "container", [ { - "name": "content", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "isActionBar", - "type": "bool" - } - ] - ], - "packet_playerlist_header": [ - "container", - [ + "name": "objectUUID", + "type": "UUID" + }, { - "name": "header", - "type": "string" + "name": "type", + "type": "varint" }, { - "name": "footer", - "type": "string" - } - ] - ], - "packet_collect": [ - "container", - [ + "name": "x", + "type": "f64" + }, { - "name": "collectedEntityId", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "z", + "type": "f64" }, { - "name": "pickupItemCount", + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "objectData", "type": "varint" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_teleport": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -4554,28 +4603,122 @@ "type": "f64" }, { - "name": "yaw", - "type": "i8" + "name": "count", + "type": "i16" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" }, { - "name": "pitch", + "name": "angle", + "type": "f32" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_stop_sound": [ + "container", + [ + { + "name": "flags", "type": "i8" }, { - "name": "onGround", + "name": "source", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "1": "varint", + "3": "varint" + } + } + ] + }, + { + "name": "sound", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "2": "string", + "3": "string" + } + } + ] + } + ] + ], + "packet_system_chat": [ + "container", + [ + { + "name": "content", + "type": "string" + }, + { + "name": "isActionBar", "type": "bool" } ] ], - "packet_entity_update_attributes": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "properties", + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ "array", { @@ -4584,37 +4727,14 @@ "container", [ { - "name": "name", + "name": "match", "type": "string" }, { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", + "name": "tooltip", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } + "option", + "string" ] } ] @@ -4624,1252 +4744,1044 @@ } ] ], - "packet_feature_flags": [ + "packet_tags": [ "container", [ { - "name": "features", + "name": "tags", "type": [ "array", { "countType": "varint", - "type": "string" + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] } ] ], - "packet_entity_effect": [ + "packet_teams": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "effectId", - "type": "varint" + "name": "team", + "type": "string" }, { - "name": "amplifier", + "name": "mode", "type": "i8" }, { - "name": "duration", - "type": "varint" + "name": "name", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] }, { - "name": "hideParticles", - "type": "i8" + "name": "friendlyFire", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "i8", + "2": "i8" + } + } + ] }, { - "name": "factorCodec", + "name": "nameTagVisibility", "type": [ - "option", - "nbt" + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } ] - } - ] - ], - "packet_select_advancement_tab": [ - "container", - [ + }, { - "name": "id", + "name": "collisionRule", "type": [ - "option", - "string" + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } ] - } - ] - ], - "packet_server_data": [ - "container", - [ - { - "name": "motd", - "type": "string" }, { - "name": "iconBytes", + "name": "formatting", "type": [ - "option", - [ - "buffer", - { - "countType": "varint" + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" } - ] + } ] }, { - "name": "enforcesSecureChat", - "type": "bool" - } - ] - ], - "packet_declare_recipes": [ - "container", - [ - { - "name": "recipes", + "name": "prefix", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "showNotification", - "type": "bool" - } - ] - ], - "minecraft:crafting_special_armordye": "minecraft_simple_recipe_format", - "minecraft:crafting_special_bookcloning": "minecraft_simple_recipe_format", - "minecraft:crafting_special_mapcloning": "minecraft_simple_recipe_format", - "minecraft:crafting_special_mapextending": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_rocket": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_star": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_star_fade": "minecraft_simple_recipe_format", - "minecraft:crafting_special_repairitem": "minecraft_simple_recipe_format", - "minecraft:crafting_special_tippedarrow": "minecraft_simple_recipe_format", - "minecraft:crafting_special_bannerduplicate": "minecraft_simple_recipe_format", - "minecraft:crafting_special_banneraddpattern": "minecraft_simple_recipe_format", - "minecraft:crafting_special_shielddecoration": "minecraft_simple_recipe_format", - "minecraft:crafting_special_shulkerboxcoloring": "minecraft_simple_recipe_format", - "minecraft:crafting_special_suspiciousstew": "minecraft_simple_recipe_format", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing_transform": [ - "container", - [ - { - "name": "template", - "type": "ingredient" - }, - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing_trim": [ - "container", - [ - { - "name": "template", - "type": "ingredient" - }, - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - } - ] - ], - "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format" - } - } - ] - } - ] - ] + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "suffix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } } ] - } - ] - ], - "packet_tags": [ - "container", - [ + }, { - "name": "tags", + "name": "players", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ + "compareTo": "mode", + "default": "void", + "fields": { + "0": [ + "array", { - "name": "tagType", + "countType": "varint", "type": "string" - }, + } + ], + "3": [ + "array", { - "name": "tags", - "type": "tags" + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" } ] - ] + } } ] } ] ], - "packet_acknowledge_player_digging": [ + "packet_tile_entity_data": [ "container", [ { - "name": "sequenceId", + "name": "location", + "type": "position" + }, + { + "name": "action", "type": "varint" - } - ] - ], - "packet_clear_titles": [ - "container", - [ + }, { - "name": "reset", - "type": "bool" + "name": "nbtData", + "type": "optionalNbt" } ] ], - "packet_initialize_world_border": [ + "packet_trade_list": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "oldDiameter", - "type": "f64" + "name": "windowId", + "type": "varint" }, { - "name": "newDiameter", - "type": "f64" + "name": "trades", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": "slot" + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] + } + ] }, { - "name": "speed", + "name": "villagerLevel", "type": "varint" }, { - "name": "portalTeleportBoundary", + "name": "experience", "type": "varint" }, { - "name": "warningBlocks", - "type": "varint" + "name": "isRegularVillager", + "type": "bool" }, { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_action_bar": [ - "container", - [ - { - "name": "text", - "type": "string" + "name": "canRestock", + "type": "bool" } ] ], - "packet_world_border_center": [ + "packet_unload_chunk": [ "container", [ { - "name": "x", - "type": "f64" + "name": "chunkX", + "type": "i32" }, { - "name": "z", - "type": "f64" + "name": "chunkZ", + "type": "i32" } ] ], - "packet_world_border_lerp_size": [ + "packet_unlock_recipes": [ "container", [ { - "name": "oldDiameter", - "type": "f64" + "name": "action", + "type": "varint" }, { - "name": "newDiameter", - "type": "f64" + "name": "craftingBookOpen", + "type": "bool" }, { - "name": "speed", - "type": "varint" - } - ] - ], - "packet_world_border_size": [ - "container", - [ + "name": "filteringCraftable", + "type": "bool" + }, { - "name": "diameter", - "type": "f64" - } - ] - ], - "packet_world_border_warning_delay": [ - "container", - [ + "name": "smeltingBookOpen", + "type": "bool" + }, { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_world_border_warning_reach": [ - "container", - [ + "name": "filteringSmeltable", + "type": "bool" + }, { - "name": "warningBlocks", - "type": "varint" - } - ] - ], - "packet_ping": [ - "container", - [ + "name": "blastFurnaceOpen", + "type": "bool" + }, { - "name": "id", - "type": "i32" - } - ] - ], - "packet_set_title_subtitle": [ - "container", - [ + "name": "filteringBlastFurnace", + "type": "bool" + }, { - "name": "text", - "type": "string" - } - ] - ], - "packet_set_title_text": [ - "container", - [ + "name": "smokerBookOpen", + "type": "bool" + }, { - "name": "text", - "type": "string" + "name": "filteringSmoker", + "type": "bool" + }, + { + "name": "recipes1", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "recipes2", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + } + ] } ] ], - "packet_set_title_time": [ + "packet_update_health": [ "container", [ { - "name": "fadeIn", - "type": "i32" + "name": "health", + "type": "f32" }, { - "name": "stay", - "type": "i32" + "name": "food", + "type": "varint" }, { - "name": "fadeOut", - "type": "i32" + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_simulation_distance": [ + "packet_update_light": [ "container", [ { - "name": "distance", + "name": "chunkX", "type": "varint" - } - ] - ], - "packet_chunk_biomes": [ - "container", - [ + }, { - "name": "biomes", + "name": "chunkZ", + "type": "varint" + }, + { + "name": "skyLightMask", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "position", - "type": "packedChunkPos" - }, - { - "name": "data", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] + "type": "i64" } ] - } - ] - ], - "packet_damage_event": [ - "container", - [ - { - "name": "entityId", - "type": "varint" }, { - "name": "sourceTypeId", - "type": "varint" + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "sourceCauseId", - "type": "varint" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "sourceDirectId", - "type": "varint" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "sourcePosition", + "name": "skyLight", "type": [ - "option", - "vec3f64" + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } ] - } - ] - ], - "packet_hurt_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" }, { - "name": "yaw", - "type": "f32" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", + "name": "blockLight", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "spawn_entity_experience_orb", - "0x03": "named_entity_spawn", - "0x04": "animation", - "0x05": "statistics", - "0x06": "acknowledge_player_digging", - "0x07": "block_break_animation", - "0x08": "tile_entity_data", - "0x09": "block_action", - "0x0a": "block_change", - "0x0b": "boss_bar", - "0x0c": "difficulty", - "0x0d": "chunk_biomes", - "0x0e": "clear_titles", - "0x0f": "tab_complete", - "0x10": "declare_commands", - "0x11": "close_window", - "0x12": "window_items", - "0x13": "craft_progress_bar", - "0x14": "set_slot", - "0x15": "set_cooldown", - "0x16": "chat_suggestions", - "0x17": "custom_payload", - "0x18": "damage_event", - "0x19": "hide_message", - "0x1a": "kick_disconnect", - "0x1b": "profileless_chat", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "open_horse_window", - "0x21": "hurt_animation", - "0x22": "initialize_world_border", - "0x23": "keep_alive", - "0x24": "map_chunk", - "0x25": "world_event", - "0x26": "world_particles", - "0x27": "update_light", - "0x28": "login", - "0x29": "map", - "0x2a": "trade_list", - "0x2b": "rel_entity_move", - "0x2c": "entity_move_look", - "0x2d": "entity_look", - "0x2e": "vehicle_move", - "0x2f": "open_book", - "0x30": "open_window", - "0x31": "open_sign_entity", - "0x32": "ping", - "0x33": "craft_recipe_response", - "0x34": "abilities", - "0x35": "player_chat", - "0x36": "end_combat_event", - "0x37": "enter_combat_event", - "0x38": "death_combat_event", - "0x39": "player_remove", - "0x3a": "player_info", - "0x3b": "face_player", - "0x3c": "position", - "0x3d": "unlock_recipes", - "0x3e": "entity_destroy", - "0x3f": "remove_entity_effect", - "0x40": "resource_pack_send", - "0x41": "respawn", - "0x42": "entity_head_rotation", - "0x43": "multi_block_change", - "0x44": "select_advancement_tab", - "0x45": "server_data", - "0x46": "action_bar", - "0x47": "world_border_center", - "0x48": "world_border_lerp_size", - "0x49": "world_border_size", - "0x4a": "world_border_warning_delay", - "0x4b": "world_border_warning_reach", - "0x4c": "camera", - "0x4d": "held_item_slot", - "0x4e": "update_view_position", - "0x4f": "update_view_distance", - "0x50": "spawn_position", - "0x51": "scoreboard_display_objective", - "0x52": "entity_metadata", - "0x53": "attach_entity", - "0x54": "entity_velocity", - "0x55": "entity_equipment", - "0x56": "experience", - "0x57": "update_health", - "0x58": "scoreboard_objective", - "0x59": "set_passengers", - "0x5a": "teams", - "0x5b": "scoreboard_score", - "0x5c": "simulation_distance", - "0x5d": "set_title_subtitle", - "0x5e": "update_time", - "0x5f": "set_title_text", - "0x60": "set_title_time", - "0x61": "entity_sound_effect", - "0x62": "sound_effect", - "0x63": "stop_sound", - "0x64": "system_chat", - "0x65": "playerlist_header", - "0x66": "nbt_query_response", - "0x67": "collect", - "0x68": "entity_teleport", - "0x69": "advancements", - "0x6a": "entity_update_attributes", - "0x6b": "feature_flags", - "0x6c": "entity_effect", - "0x6d": "declare_recipes", - "0x6e": "tags" - } + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] } ] + } + ] + ], + "packet_update_time": [ + "container", + [ + { + "name": "age", + "type": "i64" }, { - "name": "params", + "name": "time", + "type": "i64" + } + ] + ], + "packet_update_view_distance": [ + "container", + [ + { + "name": "viewDistance", + "type": "varint" + } + ] + ], + "packet_update_view_position": [ + "container", + [ + { + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "stateId", + "type": "varint" + }, + { + "name": "items", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "bundle_delimiter": "void", - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "chunk_biomes": "packet_chunk_biomes", - "clear_titles": "packet_clear_titles", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "close_window": "packet_close_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "chat_suggestions": "packet_chat_suggestions", - "custom_payload": "packet_custom_payload", - "damage_event": "packet_damage_event", - "hide_message": "packet_hide_message", - "kick_disconnect": "packet_kick_disconnect", - "profileless_chat": "packet_profileless_chat", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "hurt_animation": "packet_hurt_animation", - "initialize_world_border": "packet_initialize_world_border", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_window": "packet_open_window", - "open_sign_entity": "packet_open_sign_entity", - "ping": "packet_ping", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "player_chat": "packet_player_chat", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_remove": "packet_player_remove", - "player_info": "packet_player_info", - "face_player": "packet_face_player", - "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_head_rotation": "packet_entity_head_rotation", - "multi_block_change": "packet_multi_block_change", - "select_advancement_tab": "packet_select_advancement_tab", - "server_data": "packet_server_data", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "spawn_position": "packet_spawn_position", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "set_title_subtitle": "packet_set_title_subtitle", - "update_time": "packet_update_time", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time", - "entity_sound_effect": "packet_entity_sound_effect", - "sound_effect": "packet_sound_effect", - "stop_sound": "packet_stop_sound", - "system_chat": "packet_system_chat", - "playerlist_header": "packet_playerlist_header", - "nbt_query_response": "packet_nbt_query_response", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "advancements": "packet_advancements", - "entity_update_attributes": "packet_entity_update_attributes", - "feature_flags": "packet_feature_flags", - "entity_effect": "packet_entity_effect", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags" - } + "countType": "varint", + "type": "slot" } ] + }, + { + "name": "carriedItem", + "type": "slot" } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_world_border_center": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_world_border_lerp_size": [ + "container", + [ + { + "name": "oldDiameter", + "type": "f64" + }, + { + "name": "newDiameter", + "type": "f64" + }, + { + "name": "speed", + "type": "varint" + } + ] + ], + "packet_world_border_size": [ + "container", + [ + { + "name": "diameter", + "type": "f64" + } + ] + ], + "packet_world_border_warning_delay": [ + "container", + [ + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_world_border_warning_reach": [ "container", [ { - "name": "teleportId", + "name": "warningBlocks", "type": "varint" } ] ], - "packet_query_block_nbt": [ + "packet_world_event": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "effectId", + "type": "i32" }, { "name": "location", "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" } ] ], - "packet_chat_command": [ + "packet_world_particles": [ "container", [ { - "name": "command", - "type": "string" + "name": "particleId", + "type": "varint" }, { - "name": "timestamp", - "type": "i64" + "name": "longDistance", + "type": "bool" }, { - "name": "salt", - "type": "i64" + "name": "x", + "type": "f64" }, { - "name": "argumentSignatures", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "argumentName", - "type": "string" - }, - { - "name": "signature", - "type": [ - "buffer", - { - "count": 256 - } - ] - } - ] - ] - } - ] + "name": "y", + "type": "f64" }, { - "name": "messageCount", - "type": "varint" + "name": "z", + "type": "f64" }, { - "name": "acknowledged", - "type": [ - "buffer", - { - "count": 3 - } - ] - } - ] - ], - "packet_chat_message": [ - "container", - [ - { - "name": "message", - "type": "string" + "name": "offsetX", + "type": "f32" }, { - "name": "timestamp", - "type": "i64" + "name": "offsetY", + "type": "f32" }, { - "name": "salt", - "type": "i64" + "name": "offsetZ", + "type": "f32" }, { - "name": "signature", - "type": [ - "option", - [ - "buffer", - { - "count": 256 - } - ] - ] + "name": "particleData", + "type": "f32" }, { - "name": "offset", - "type": "varint" + "name": "particles", + "type": "i32" }, { - "name": "acknowledged", + "name": "data", "type": [ - "buffer", + "particleData", { - "count": 3 + "compareTo": "particleId" } ] } ] - ], - "packet_set_difficulty": [ - "container", - [ - { - "name": "newDifficulty", - "type": "u8" - } - ] - ], - "packet_message_acknowledgement": [ - "container", - [ - { - "name": "count", - "type": "varint" - } - ] - ], - "packet_edit_book": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "hand", - "type": "varint" - }, - { - "name": "pages", + "name": "name", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": "string" + "mappings": { + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "message_acknowledgement", + "0x04": "chat_command", + "0x05": "chat_message", + "0x06": "chat_session_update", + "0x07": "client_command", + "0x08": "settings", + "0x09": "tab_complete", + "0x0a": "enchant_item", + "0x0b": "window_click", + "0x0c": "close_window", + "0x0d": "custom_payload", + "0x0e": "edit_book", + "0x0f": "query_entity_nbt", + "0x10": "use_entity", + "0x11": "generate_structure", + "0x12": "keep_alive", + "0x13": "lock_difficulty", + "0x14": "position", + "0x15": "position_look", + "0x16": "look", + "0x17": "flying", + "0x18": "vehicle_move", + "0x19": "steer_boat", + "0x1a": "pick_item", + "0x1b": "craft_recipe_request", + "0x1c": "abilities", + "0x1d": "block_dig", + "0x1e": "entity_action", + "0x1f": "steer_vehicle", + "0x20": "pong", + "0x21": "recipe_book", + "0x22": "displayed_recipe", + "0x23": "name_item", + "0x24": "resource_pack_receive", + "0x25": "advancement_tab", + "0x26": "select_trade", + "0x27": "set_beacon_effect", + "0x28": "held_item_slot", + "0x29": "update_command_block", + "0x2a": "update_command_block_minecart", + "0x2b": "set_creative_slot", + "0x2c": "update_jigsaw_block", + "0x2d": "update_structure_block", + "0x2e": "update_sign", + "0x2f": "arm_animation", + "0x30": "spectate", + "0x31": "block_place", + "0x32": "use_item" + }, + "type": "varint" } ] }, { - "name": "title", + "name": "params", "type": [ - "option", - "string" + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat_command": "packet_chat_command", + "chat_message": "packet_chat_message", + "chat_session_update": "packet_chat_session_update", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_payload": "packet_custom_payload", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "message_acknowledgement": "packet_message_acknowledgement", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" + } + } ] } ] ], - "packet_query_entity_nbt": [ + "packet_abilities": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "entityId", - "type": "varint" + "name": "flags", + "type": "i8" } ] ], - "packet_pick_item": [ + "packet_advancement_tab": [ "container", [ { - "name": "slot", + "name": "action", "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ + }, { - "name": "name", - "type": "string" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_select_trade": [ + "packet_arm_animation": [ "container", [ { - "name": "slot", + "name": "hand", "type": "varint" } ] ], - "packet_set_beacon_effect": [ + "packet_block_dig": [ "container", [ { - "name": "primary_effect", - "type": [ - "option", - "varint" - ] + "name": "status", + "type": "varint" }, - { - "name": "secondary_effect", - "type": [ - "option", - "varint" - ] - } - ] - ], - "packet_update_command_block": [ - "container", - [ { "name": "location", "type": "position" }, { - "name": "command", - "type": "string" + "name": "face", + "type": "i8" }, { - "name": "mode", + "name": "sequence", "type": "varint" - }, - { - "name": "flags", - "type": "u8" } ] ], - "packet_update_command_block_minecart": [ + "packet_block_place": [ "container", [ { - "name": "entityId", + "name": "hand", "type": "varint" }, - { - "name": "command", - "type": "string" - }, - { - "name": "track_output", - "type": "bool" - } - ] - ], - "packet_update_structure_block": [ - "container", - [ { "name": "location", "type": "position" }, { - "name": "action", - "type": "varint" - }, - { - "name": "mode", + "name": "direction", "type": "varint" }, { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" + "name": "cursorX", + "type": "f32" }, { - "name": "size_y", - "type": "i8" + "name": "cursorY", + "type": "f32" }, { - "name": "size_z", - "type": "i8" + "name": "cursorZ", + "type": "f32" }, { - "name": "mirror", - "type": "varint" + "name": "insideBlock", + "type": "bool" }, { - "name": "rotation", + "name": "sequence", "type": "varint" - }, + } + ] + ], + "packet_chat_command": [ + "container", + [ { - "name": "metadata", + "name": "command", "type": "string" }, { - "name": "integrity", - "type": "f32" + "name": "timestamp", + "type": "i64" }, { - "name": "seed", - "type": "varint" + "name": "salt", + "type": "i64" }, { - "name": "flags", - "type": "u8" - } - ] - ], - "packet_tab_complete": [ - "container", - [ + "name": "argumentSignatures", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "argumentName", + "type": "string" + }, + { + "name": "signature", + "type": [ + "buffer", + { + "count": 256 + } + ] + } + ] + ] + } + ] + }, { - "name": "transactionId", + "name": "messageCount", "type": "varint" }, { - "name": "text", - "type": "string" - } - ] - ], - "packet_client_command": [ - "container", - [ - { - "name": "actionId", - "type": "varint" + "name": "acknowledged", + "type": [ + "buffer", + { + "count": 3 + } + ] } ] ], - "packet_settings": [ + "packet_chat_message": [ "container", [ { - "name": "locale", + "name": "message", "type": "string" }, { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" + "name": "timestamp", + "type": "i64" }, { - "name": "chatColors", - "type": "bool" + "name": "salt", + "type": "i64" }, { - "name": "skinParts", - "type": "u8" + "name": "signature", + "type": [ + "option", + [ + "buffer", + { + "count": 256 + } + ] + ] }, { - "name": "mainHand", + "name": "offset", "type": "varint" }, { - "name": "enableTextFiltering", - "type": "bool" - }, - { - "name": "enableServerListing", - "type": "bool" - } - ] - ], - "packet_enchant_item": [ - "container", - [ - { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "acknowledged", + "type": [ + "buffer", + { + "count": 3 + } + ] } ] ], - "packet_window_click": [ + "packet_chat_session_update": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" + "name": "sessionUUID", + "type": "UUID" }, { - "name": "mouseButton", - "type": "i8" + "name": "expireTime", + "type": "i64" }, { - "name": "mode", - "type": "varint" + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "changedSlots", + "name": "signature", "type": [ - "array", + "buffer", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ] + "countType": "varint" } ] - }, + } + ] + ], + "packet_client_command": [ + "container", + [ { - "name": "cursorItem", - "type": "slot" + "name": "actionId", + "type": "varint" } ] ], @@ -5882,6 +5794,23 @@ } ] ], + "packet_craft_recipe_request": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "recipe", + "type": "string" + }, + { + "name": "makeAll", + "type": "bool" + } + ] + ], "packet_custom_payload": [ "container", [ @@ -5895,72 +5824,76 @@ } ] ], - "packet_use_entity": [ + "packet_displayed_recipe": [ "container", [ { - "name": "target", - "type": "varint" - }, + "name": "recipeId", + "type": "string" + } + ] + ], + "packet_edit_book": [ + "container", + [ { - "name": "mouse", + "name": "hand", "type": "varint" }, { - "name": "x", + "name": "pages", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" + "countType": "varint", + "type": "string" } ] }, { - "name": "y", + "name": "title", "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } + "option", + "string" ] + } + ] + ], + "packet_enchant_item": [ + "container", + [ + { + "name": "windowId", + "type": "i8" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "enchantment", + "type": "i8" + } + ] + ], + "packet_entity_action": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "actionId", + "type": "varint" }, { - "name": "sneaking", + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ + { + "name": "onGround", "type": "bool" } ] @@ -5982,6 +5915,15 @@ } ] ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slotId", + "type": "i16" + } + ] + ], "packet_keep_alive": [ "container", [ @@ -6000,6 +5942,59 @@ } ] ], + "packet_look": [ + "container", + [ + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_message_acknowledgement": [ + "container", + [ + { + "name": "count", + "type": "varint" + } + ] + ], + "packet_name_item": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] + ], + "packet_pong": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], "packet_position": [ "container", [ @@ -6050,131 +6045,164 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + } + ] + ], + "packet_query_entity_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_recipe_book": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "bookId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "bookOpen", + "type": "bool" }, { - "name": "onGround", + "name": "filterActive", "type": "bool" } ] ], - "packet_flying": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_select_trade": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "slot", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "primary_effect", + "type": [ + "option", + "varint" + ] }, { - "name": "rightPaddle", - "type": "bool" + "name": "secondary_effect", + "type": [ + "option", + "varint" + ] } ] ], - "packet_craft_recipe_request": [ + "packet_set_creative_slot": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" + "name": "slot", + "type": "i16" }, { - "name": "makeAll", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_abilities": [ + "packet_set_difficulty": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_block_dig": [ + "packet_settings": [ "container", [ { - "name": "status", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "chatColors", + "type": "bool" }, { - "name": "face", - "type": "i8" + "name": "skinParts", + "type": "u8" }, { - "name": "sequence", + "name": "mainHand", "type": "varint" + }, + { + "name": "enableTextFiltering", + "type": "bool" + }, + { + "name": "enableServerListing", + "type": "bool" } ] ], - "packet_entity_action": [ + "packet_spectate": [ "container", [ { - "name": "entityId", - "type": "varint" - }, + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -6195,60 +6223,63 @@ } ] ], - "packet_displayed_recipe": [ - "container", - [ - { - "name": "recipeId", - "type": "string" - } - ] - ], - "packet_recipe_book": [ + "packet_tab_complete": [ "container", [ { - "name": "bookId", + "name": "transactionId", "type": "varint" }, { - "name": "bookOpen", - "type": "bool" - }, - { - "name": "filterActive", - "type": "bool" + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "location", + "type": "position" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block_minecart": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -6310,262 +6341,231 @@ } ] ], - "packet_arm_animation": [ + "packet_update_structure_block": [ "container", [ { - "name": "hand", - "type": "varint" - } - ] - ], - "packet_spectate": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ + "name": "action", + "type": "varint" + }, { - "name": "hand", + "name": "mode", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "name", + "type": "string" }, { - "name": "direction", + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", "type": "varint" }, { - "name": "cursorX", - "type": "f32" + "name": "rotation", + "type": "varint" }, { - "name": "cursorY", - "type": "f32" + "name": "metadata", + "type": "string" }, { - "name": "cursorZ", + "name": "integrity", "type": "f32" }, { - "name": "insideBlock", - "type": "bool" + "name": "seed", + "type": "varint" }, { - "name": "sequence", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_use_item": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", "type": "varint" }, { - "name": "sequence", + "name": "mouse", "type": "varint" - } - ] - ], - "packet_advancement_tab": [ - "container", - [ + }, { - "name": "action", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "tabId", + "name": "y", "type": [ "switch", { - "compareTo": "action", + "compareTo": "mouse", + "default": "void", "fields": { - "0": "string", - "1": "void" + "2": "f32" } } ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + }, + { + "name": "sneaking", + "type": "bool" } ] ], - "packet_pong": [ + "packet_use_item": [ "container", [ { - "name": "id", - "type": "i32" + "name": "hand", + "type": "varint" + }, + { + "name": "sequence", + "type": "varint" } ] ], - "packet_chat_session_update": [ + "packet_vehicle_move": [ "container", [ { - "name": "sessionUUID", - "type": "UUID" + "name": "x", + "type": "f64" }, { - "name": "expireTime", - "type": "i64" + "name": "y", + "type": "f64" }, { - "name": "publicKey", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "z", + "type": "f64" }, { - "name": "signature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "message_acknowledgement", - "0x04": "chat_command", - "0x05": "chat_message", - "0x06": "chat_session_update", - "0x07": "client_command", - "0x08": "settings", - "0x09": "tab_complete", - "0x0a": "enchant_item", - "0x0b": "window_click", - "0x0c": "close_window", - "0x0d": "custom_payload", - "0x0e": "edit_book", - "0x0f": "query_entity_nbt", - "0x10": "use_entity", - "0x11": "generate_structure", - "0x12": "keep_alive", - "0x13": "lock_difficulty", - "0x14": "position", - "0x15": "position_look", - "0x16": "look", - "0x17": "flying", - "0x18": "vehicle_move", - "0x19": "steer_boat", - "0x1a": "pick_item", - "0x1b": "craft_recipe_request", - "0x1c": "abilities", - "0x1d": "block_dig", - "0x1e": "entity_action", - "0x1f": "steer_vehicle", - "0x20": "pong", - "0x21": "recipe_book", - "0x22": "displayed_recipe", - "0x23": "name_item", - "0x24": "resource_pack_receive", - "0x25": "advancement_tab", - "0x26": "select_trade", - "0x27": "set_beacon_effect", - "0x28": "held_item_slot", - "0x29": "update_command_block", - "0x2a": "update_command_block_minecart", - "0x2b": "set_creative_slot", - "0x2c": "update_jigsaw_block", - "0x2d": "update_structure_block", - "0x2e": "update_sign", - "0x2f": "arm_animation", - "0x30": "spectate", - "0x31": "block_place", - "0x32": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", + "name": "stateId", + "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "message_acknowledgement": "packet_message_acknowledgement", - "chat_command": "packet_chat_command", - "chat_message": "packet_chat_message", - "client_command": "packet_client_command", - "settings": "packet_settings", - "tab_complete": "packet_tab_complete", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "pick_item": "packet_pick_item", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "pong": "packet_pong", - "chat_session_update": "packet_chat_session_update", - "recipe_book": "packet_recipe_book", - "displayed_recipe": "packet_displayed_recipe", - "name_item": "packet_name_item", - "resource_pack_receive": "packet_resource_pack_receive", - "advancement_tab": "packet_advancement_tab", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "held_item_slot": "packet_held_item_slot", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_structure_block": "packet_update_structure_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "slot" + } + ] + ] } ] + }, + { + "name": "cursorItem", + "type": "slot" } ] ] diff --git a/data/pc/1.21.1/protocol.json b/data/pc/1.21.1/protocol.json index cbeb0693d..d23821d49 100644 --- a/data/pc/1.21.1/protocol.json +++ b/data/pc/1.21.1/protocol.json @@ -1,130 +1,156 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "anonymousNbt": "native", - "anonOptionalNbt": "native", - "registryEntryHolder": "native", - "registryEntryHolderSet": "native", - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec2f": [ + "ArmorTrimMaterial": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetName", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "ingredientId", + "type": "varint" + }, + { + "name": "overrideArmorAssets", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + }, + { + "name": "description", + "type": "anonymousNbt" } ] ], - "vec3f": [ + "ArmorTrimPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "templateItemId", + "type": "varint" }, { - "name": "z", - "type": "f32" + "name": "description", + "type": "anonymousNbt" + }, + { + "name": "decal", + "type": "bool" } ] ], - "vec4f": [ + "BannerPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" - }, + "name": "translationKey", + "type": "string" + } + ] + ], + "BannerPatternLayer": [ + "container", + [ { - "name": "z", - "type": "f32" + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "BannerPattern" + } + } + ] }, { - "name": "w", - "type": "f32" + "name": "colorId", + "type": "varint" } ] ], - "vec3f64": [ + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "ContainerID": "u8", + "EntityMetadataPaintingVariant": [ "container", [ { - "name": "x", - "type": "f64" + "name": "width", + "type": "i32" }, { - "name": "y", - "type": "f64" + "name": "height", + "type": "i32" }, { - "name": "z", - "type": "f64" + "name": "assetId", + "type": "string" + }, + { + "name": "title", + "type": [ + "option", + "anonymousNbt" + ] + }, + { + "name": "author", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "vec3i16": [ + "EntityMetadataWolfVariant": [ "container", [ { - "name": "x", - "type": "i16" + "name": "wildTexture", + "type": "string" }, { - "name": "y", - "type": "i16" + "name": "tameTexture", + "type": "string" }, { - "name": "z", - "type": "i16" + "name": "angryTexture", + "type": "string" + }, + { + "name": "biome", + "type": "IDSet" } ] ], @@ -141,997 +167,105 @@ } } ], - "ContainerID": "u8", - "SlotComponentType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "custom_data", - "1": "max_stack_size", - "2": "max_damage", - "3": "damage", - "4": "unbreakable", - "5": "custom_name", - "6": "item_name", - "7": "lore", - "8": "rarity", - "9": "enchantments", - "10": "can_place_on", - "11": "can_break", - "12": "attribute_modifiers", - "13": "custom_model_data", - "14": "hide_additional_tooltip", - "15": "hide_tooltip", - "16": "repair_cost", - "17": "creative_slot_lock", - "18": "enchantment_glint_override", - "19": "intangible_projectile", - "20": "food", - "21": "fire_resistant", - "22": "tool", - "23": "stored_enchantments", - "24": "dyed_color", - "25": "map_color", - "26": "map_id", - "27": "map_decorations", - "28": "map_post_processing", - "29": "charged_projectiles", - "30": "bundle_contents", - "31": "potion_contents", - "32": "suspicious_stew_effects", - "33": "writable_book_content", - "34": "written_book_content", - "35": "trim", - "36": "debug_stick_state", - "37": "entity_data", - "38": "bucket_entity_data", - "39": "block_entity_data", - "40": "instrument", - "41": "ominous_bottle_amplifier", - "42": "jukebox_playable", - "43": "recipes", - "44": "lodestone_tracker", - "45": "firework_explosion", - "46": "fireworks", - "47": "profile", - "48": "note_block_sound", - "49": "banner_patterns", - "50": "base_color", - "51": "pot_decorations", - "52": "container", - "53": "block_state", - "54": "bees", - "55": "lock", - "56": "container_loot" - } - } - ], - "SlotComponent": [ + "InstrumentData": [ "container", [ { - "name": "type", - "type": "SlotComponentType" + "name": "soundEvent", + "type": "ItemSoundHolder" }, { - "name": "data", - "type": [ + "name": "useDuration", + "type": "f32" + }, + { + "name": "range", + "type": "f32" + }, + { + "name": "description", + "type": "anonymousNbt" + } + ] + ], + "ItemBlockPredicate": [ + "container", + [ + { + "name": "blockSet", + "type": [ + "option", + [ + "registryEntryHolderSet", + { + "base": { + "name": "name", + "type": "string" + }, + "otherwise": { + "name": "blockIds", + "type": "varint" + } + } + ] + ] + }, + { + "name": "properties", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": "ItemBlockProperty" + } + ] + ] + }, + { + "name": "nbt", + "type": "anonOptionalNbt" + } + ] + ], + "ItemBlockProperty": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "isExactMatch", + "type": "bool" + }, + { + "name": "value", + "type": [ "switch", { - "compareTo": "type", + "compareTo": "isExactMatch", "fields": { - "custom_data": "anonymousNbt", - "max_stack_size": "varint", - "max_damage": "varint", - "damage": "varint", - "unbreakable": "bool", - "custom_name": "anonymousNbt", - "item_name": "anonymousNbt", - "lore": [ - "array", - { - "countType": "varint", - "type": "anonOptionalNbt" - } - ], - "rarity": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "common", - "1": "uncommon", - "2": "rare", - "3": "epic" - } - } - ], - "enchantments": [ - "container", - [ - { - "name": "enchantments", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] - } - ] - }, - { - "name": "showTooltip", - "type": "bool" - } - ] - ], - "can_place_on": [ - "container", - [ - { - "name": "predicates", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBlockPredicate" - } - ] - }, - { - "name": "showTooltip", - "type": "bool" - } - ] - ], - "can_break": [ + "false": [ "container", [ { - "name": "predicates", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBlockPredicate" - } - ] + "name": "minValue", + "type": "string" }, { - "name": "showTooltip", - "type": "bool" + "name": "maxValue", + "type": "string" } ] ], - "attribute_modifiers": [ + "true": [ "container", [ { - "name": "attributes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "typeId", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "operation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "add", - "1": "multiply_base", - "2": "multiply_total" - } - } - ] - }, - { - "name": "slot", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "any", - "1": "main_hand", - "2": "off_hand", - "3": "hand", - "4": "feet", - "5": "legs", - "6": "chest", - "7": "head", - "8": "armor", - "9": "body" - } - } - ] - } - ] - ] - } - ] - }, - { - "name": "showTooltip", - "type": "bool" - } - ] - ], - "custom_model_data": "varint", - "hide_additional_tooltip": "void", - "hide_tooltip": "void", - "repair_cost": "varint", - "creative_slot_lock": "void", - "enchantment_glint_override": "bool", - "intangible_projectile": "anonymousNbt", - "food": [ - "container", - [ - { - "name": "nutrition", - "type": "varint" - }, - { - "name": "saturationModifier", - "type": "f32" - }, - { - "name": "canAlwaysEat", - "type": "bool" - }, - { - "name": "secondsToEat", - "type": "f32" - }, - { - "name": "usingConvertsTo", - "type": "Slot" - }, - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "effect", - "type": "varint" - }, - { - "name": "probability", - "type": "f32" - } - ] - ] - } - ] - } - ] - ], - "fire_resistant": "void", - "tool": [ - "container", - [ - { - "name": "rules", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "blocks", - "type": "IDSet" - }, - { - "name": "speed", - "type": [ - "option", - "f32" - ] - }, - { - "name": "correctDropForBlocks", - "type": [ - "option", - "bool" - ] - } - ] - ] - } - ] - }, - { - "name": "defaultMiningSpeed", - "type": "f32" - }, - { - "name": "damagePerBlock", - "type": "varint" - } - ] - ], - "stored_enchantments": [ - "container", - [ - { - "name": "enchantments", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] - } - ] - }, - { - "name": "showInTooltip", - "type": "bool" - } - ] - ], - "dyed_color": [ - "container", - [ - { - "name": "color", - "type": "i32" - }, - { - "name": "showTooltip", - "type": "bool" - } - ] - ], - "map_color": "i32", - "map_id": "varint", - "map_decorations": "anonymousNbt", - "map_post_processing": "varint", - "charged_projectiles": [ - "container", - [ - { - "name": "projectiles", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "bundle_contents": [ - "container", - [ - { - "name": "contents", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "potion_contents": [ - "container", - [ - { - "name": "potionId", - "type": [ - "option", - "varint" - ] - }, - { - "name": "customColor", - "type": [ - "option", - "i32" - ] - }, - { - "name": "customEffects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemPotionEffect" - } - ] - }, - { - "name": "customName", - "type": [ - "option", - "string" - ] - } - ] - ], - "suspicious_stew_effects": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "effect", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "writable_book_content": [ - "container", - [ - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBookPage" - } - ] - } - ] - ], - "written_book_content": [ - "container", - [ - { - "name": "rawTitle", - "type": "string" - }, - { - "name": "filteredTitle", - "type": [ - "option", - "string" - ] - }, - { - "name": "author", - "type": "string" - }, - { - "name": "generation", - "type": "varint" - }, - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemWrittenBookPage" - } - ] - }, - { - "name": "resolved", - "type": "bool" - } - ] - ], - "trim": [ - "container", - [ - { - "name": "material", - "type": [ - "registryEntryHolder", - { - "baseName": "materialId", - "otherwise": { - "name": "data", - "type": "ArmorTrimMaterial" - } - } - ] - }, - { - "name": "pattern", - "type": [ - "registryEntryHolder", - { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "ArmorTrimPattern" - } - } - ] - }, - { - "name": "showInTooltip", - "type": "bool" - } - ] - ], - "debug_stick_state": "anonymousNbt", - "entity_data": "anonymousNbt", - "bucket_entity_data": "anonymousNbt", - "block_entity_data": "anonymousNbt", - "instrument": [ - "registryEntryHolder", - { - "baseName": "instrumentId", - "otherwise": { - "name": "data", - "type": "InstrumentData" - } - } - ], - "ominous_bottle_amplifier": "varint", - "jukebox_playable": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "song", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "songId", - "otherwise": { - "name": "data", - "type": "JukeboxSongData" - } - } - ], - "false": "string" - } - } - ] - }, - { - "name": "showInTooltip", - "type": "bool" - } - ] - ], - "recipes": "anonymousNbt", - "lodestone_tracker": [ - "container", - [ - { - "name": "globalPosition", - "type": [ - "option", - [ - "container", - [ - { - "name": "dimension", - "type": "string" - }, - { - "name": "position", - "type": "position" - } - ] - ] - ] - }, - { - "name": "tracked", - "type": "bool" - } - ] - ], - "firework_explosion": "ItemFireworkExplosion", - "fireworks": [ - "container", - [ - { - "name": "flightDuration", - "type": "varint" - }, - { - "name": "explosions", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemFireworkExplosion" - } - ] - } - ] - ], - "profile": [ - "container", - [ - { - "name": "name", - "type": [ - "option", - "string" - ] - }, - { - "name": "uuid", - "type": [ - "option", - "UUID" - ] - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "note_block_sound": "string", - "banner_patterns": [ - "container", - [ - { - "name": "layers", - "type": [ - "array", - { - "countType": "varint", - "type": "BannerPatternLayer" - } - ] - } - ] - ], - "base_color": "varint", - "pot_decorations": [ - "container", - [ - { - "name": "decorations", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "container": [ - "container", - [ - { - "name": "contents", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "block_state": [ - "container", - [ - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "property", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] - } - ] - ], - "bees": [ - "container", - [ - { - "name": "bees", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "nbtData", - "type": "anonymousNbt" - }, - { - "name": "ticksInHive", - "type": "varint" - }, - { - "name": "minTicksInHive", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "lock": "anonymousNbt", - "container_loot": "anonymousNbt" - } - } - ] - } - ] - ], - "ItemSoundEvent": [ - "container", - [ - { - "name": "soundName", - "type": "string" - }, - { - "name": "fixedRange", - "type": [ - "option", - "f32" - ] - } - ] - ], - "ItemSoundHolder": [ - "registryEntryHolder", - { - "baseName": "soundId", - "otherwise": { - "name": "data", - "type": "ItemSoundEvent" - } - } - ], - "ItemFireworkExplosion": [ - "container", - [ - { - "name": "shape", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "small_ball", - "1": "large_ball", - "2": "star", - "3": "creeper", - "4": "burst" - } - } - ] - }, - { - "name": "colors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "fadeColors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "hasTrail", - "type": "bool" - }, - { - "name": "hasTwinkle", - "type": "bool" - } - ] - ], - "ItemEffectDetail": [ - "container", - [ - { - "name": "amplifier", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "ambient", - "type": "bool" - }, - { - "name": "showParticles", - "type": "bool" - }, - { - "name": "showIcon", - "type": "bool" - }, - { - "name": "hiddenEffect", - "type": [ - "option", - "ItemEffectDetail" - ] - } - ] - ], - "ItemPotionEffect": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "details", - "type": "ItemEffectDetail" - } - ] - ], - "ItemBlockProperty": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "isExactMatch", - "type": "bool" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "isExactMatch", - "fields": { - "true": [ - "container", - [ - { - "name": "exactValue", - "type": "string" - } - ] - ], - "false": [ - "container", - [ - { - "name": "minValue", - "type": "string" - }, - { - "name": "maxValue", - "type": "string" + "name": "exactValue", + "type": "string" } ] ] @@ -1141,47 +275,6 @@ } ] ], - "ItemBlockPredicate": [ - "container", - [ - { - "name": "blockSet", - "type": [ - "option", - [ - "registryEntryHolderSet", - { - "base": { - "name": "name", - "type": "string" - }, - "otherwise": { - "name": "blockIds", - "type": "varint" - } - } - ] - ] - }, - { - "name": "properties", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": "ItemBlockProperty" - } - ] - ] - }, - { - "name": "nbt", - "type": "anonOptionalNbt" - } - ] - ], "ItemBookPage": [ "container", [ @@ -1198,97 +291,136 @@ } ] ], - "ItemWrittenBookPage": [ + "ItemEffectDetail": [ "container", [ { - "name": "content", - "type": "anonymousNbt" + "name": "amplifier", + "type": "varint" }, { - "name": "filteredContent", - "type": "anonOptionalNbt" + "name": "duration", + "type": "varint" + }, + { + "name": "ambient", + "type": "bool" + }, + { + "name": "showParticles", + "type": "bool" + }, + { + "name": "showIcon", + "type": "bool" + }, + { + "name": "hiddenEffect", + "type": [ + "option", + "ItemEffectDetail" + ] } ] ], - "ArmorTrimMaterial": [ + "ItemFireworkExplosion": [ "container", [ { - "name": "assetName", - "type": "string" + "name": "shape", + "type": [ + "mapper", + { + "mappings": { + "0": "small_ball", + "1": "large_ball", + "2": "star", + "3": "creeper", + "4": "burst" + }, + "type": "varint" + } + ] }, { - "name": "ingredientId", - "type": "varint" + "name": "colors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] }, { - "name": "overrideArmorAssets", + "name": "fadeColors", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] + "type": "i32" } ] }, { - "name": "description", - "type": "anonymousNbt" + "name": "hasTrail", + "type": "bool" + }, + { + "name": "hasTwinkle", + "type": "bool" } ] ], - "ArmorTrimPattern": [ + "ItemPotionEffect": [ "container", [ { - "name": "assetId", - "type": "string" - }, - { - "name": "templateItemId", + "name": "id", "type": "varint" }, { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "decal", - "type": "bool" + "name": "details", + "type": "ItemEffectDetail" } ] ], - "InstrumentData": [ + "ItemSoundEvent": [ "container", [ { - "name": "soundEvent", - "type": "ItemSoundHolder" + "name": "soundName", + "type": "string" }, { - "name": "useDuration", - "type": "f32" - }, + "name": "fixedRange", + "type": [ + "option", + "f32" + ] + } + ] + ], + "ItemSoundHolder": [ + "registryEntryHolder", + { + "baseName": "soundId", + "otherwise": { + "name": "data", + "type": "ItemSoundEvent" + } + } + ], + "ItemWrittenBookPage": [ + "container", + [ { - "name": "range", - "type": "f32" + "name": "content", + "type": "anonymousNbt" }, { - "name": "description", - "type": "anonymousNbt" + "name": "filteredContent", + "type": "anonOptionalNbt" } ] ], @@ -1313,41 +445,269 @@ } ] ], - "BannerPattern": [ + "Particle": [ "container", [ { - "name": "assetId", - "type": "string" + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "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": "gust", + "24": "small_gust", + "25": "gust_emitter_large", + "26": "gust_emitter_small", + "27": "sonic_boom", + "28": "falling_dust", + "29": "firework", + "30": "fishing", + "31": "flame", + "32": "infested", + "33": "cherry_leaves", + "34": "sculk_soul", + "35": "sculk_charge", + "36": "sculk_charge_pop", + "37": "soul_fire_flame", + "38": "soul", + "39": "flash", + "40": "happy_villager", + "41": "composter", + "42": "heart", + "43": "instant_effect", + "44": "item", + "45": "vibration", + "46": "item_slime", + "47": "item_cobweb", + "48": "item_snowball", + "49": "large_smoke", + "50": "lava", + "51": "mycelium", + "52": "note", + "53": "poof", + "54": "portal", + "55": "rain", + "56": "smoke", + "57": "white_smoke", + "58": "sneeze", + "59": "spit", + "60": "squid_ink", + "61": "sweep_attack", + "62": "totem_of_undying", + "63": "underwater", + "64": "splash", + "65": "witch", + "66": "bubble_pop", + "67": "current_down", + "68": "bubble_column_up", + "69": "nautilus", + "70": "dolphin", + "71": "campfire_cosy_smoke", + "72": "campfire_signal_smoke", + "73": "dripping_honey", + "74": "falling_honey", + "75": "landing_honey", + "76": "falling_nectar", + "77": "falling_spore_blossom", + "78": "ash", + "79": "crimson_spore", + "80": "warped_spore", + "81": "spore_blossom_air", + "82": "dripping_obsidian_tear", + "83": "falling_obsidian_tear", + "84": "landing_obsidian_tear", + "85": "reverse_portal", + "86": "white_ash", + "87": "small_flame", + "88": "snowflake", + "89": "dripping_dripstone_lava", + "90": "falling_dripstone_lava", + "91": "dripping_dripstone_water", + "92": "falling_dripstone_water", + "93": "glow_squid_ink", + "94": "glow", + "95": "wax_on", + "96": "wax_off", + "97": "electric_spark", + "98": "scrape", + "99": "shriek", + "100": "egg_crack", + "101": "dust_plume", + "102": "trial_spawner_detected_player", + "103": "trial_spawner_detected_player_ominous", + "104": "vault_connection", + "105": "dust_pillar", + "106": "ominous_spawning", + "107": "raid_omen", + "108": "trial_omen" + }, + "type": "varint" + } + ] }, { - "name": "translationKey", - "type": "string" - } - ] - ], - "BannerPatternLayer": [ - "container", - [ - { - "name": "pattern", + "name": "data", "type": [ - "registryEntryHolder", + "switch", { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "BannerPattern" + "compareTo": "type", + "fields": { + "block": "varint", + "block_marker": "varint", + "dust": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "dust_color_transition": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "dust_pillar": "varint", + "entity_effect": "i32", + "falling_dust": "varint", + "item": "Slot", + "sculk_charge": "f32", + "shriek": "varint", + "vibration": [ + "container", + [ + { + "name": "positionType", + "type": [ + "mapper", + { + "mappings": { + "0": "block", + "1": "entity" + }, + "type": "varint" + } + ] + }, + { + "name": "position", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "block": "position", + "entity": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "entityEyeHeight", + "type": "f32" + } + ] + ] + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] + ] } } ] - }, - { - "name": "colorId", - "type": "varint" } ] ], + "ServerLinkType": [ + "mapper", + { + "mappings": { + "0": "bug_report", + "1": "community_guidelines", + "2": "support", + "3": "status", + "4": "feedback", + "5": "community", + "6": "website", + "7": "forums", + "8": "news", + "9": "announcements" + }, + "type": "varint" + } + ], "Slot": [ "container", [ @@ -1361,9 +721,6 @@ "switch", { "compareTo": "itemCount", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -1403,671 +760,861 @@ "type": "SlotComponentType" } ] - ] - } - ] + ] + } + ] + } + ] + ], + "fields": { + "0": "void" + } + } + ] + } + ] + ], + "SlotComponent": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "attribute_modifiers": [ + "container", + [ + { + "name": "attributes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "typeId", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "operation", + "type": [ + "mapper", + { + "mappings": { + "0": "add", + "1": "multiply_base", + "2": "multiply_total" + }, + "type": "varint" + } + ] + }, + { + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "any", + "1": "main_hand", + "2": "off_hand", + "3": "hand", + "4": "feet", + "5": "legs", + "6": "chest", + "7": "head", + "8": "armor", + "9": "body" + }, + "type": "varint" + } + ] + } + ] + ] + } + ] + }, + { + "name": "showTooltip", + "type": "bool" + } + ] + ], + "banner_patterns": [ + "container", + [ + { + "name": "layers", + "type": [ + "array", + { + "countType": "varint", + "type": "BannerPatternLayer" + } + ] + } + ] + ], + "base_color": "varint", + "bees": [ + "container", + [ + { + "name": "bees", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "nbtData", + "type": "anonymousNbt" + }, + { + "name": "ticksInHive", + "type": "varint" + }, + { + "name": "minTicksInHive", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "block_entity_data": "anonymousNbt", + "block_state": [ + "container", + [ + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "property", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + } + ] + ], + "bucket_entity_data": "anonymousNbt", + "bundle_contents": [ + "container", + [ + { + "name": "contents", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "can_break": [ + "container", + [ + { + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" + } + ] + }, + { + "name": "showTooltip", + "type": "bool" + } + ] + ], + "can_place_on": [ + "container", + [ + { + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" + } + ] + }, + { + "name": "showTooltip", + "type": "bool" + } + ] + ], + "charged_projectiles": [ + "container", + [ + { + "name": "projectiles", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "container": [ + "container", + [ + { + "name": "contents", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "container_loot": "anonymousNbt", + "creative_slot_lock": "void", + "custom_data": "anonymousNbt", + "custom_model_data": "varint", + "custom_name": "anonymousNbt", + "damage": "varint", + "debug_stick_state": "anonymousNbt", + "dyed_color": [ + "container", + [ + { + "name": "color", + "type": "i32" + }, + { + "name": "showTooltip", + "type": "bool" + } + ] + ], + "enchantment_glint_override": "bool", + "enchantments": [ + "container", + [ + { + "name": "enchantments", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] + } + ] + }, + { + "name": "showTooltip", + "type": "bool" + } + ] + ], + "entity_data": "anonymousNbt", + "fire_resistant": "void", + "firework_explosion": "ItemFireworkExplosion", + "fireworks": [ + "container", + [ + { + "name": "flightDuration", + "type": "varint" + }, + { + "name": "explosions", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemFireworkExplosion" + } + ] + } + ] + ], + "food": [ + "container", + [ + { + "name": "nutrition", + "type": "varint" + }, + { + "name": "saturationModifier", + "type": "f32" + }, + { + "name": "canAlwaysEat", + "type": "bool" + }, + { + "name": "secondsToEat", + "type": "f32" + }, + { + "name": "usingConvertsTo", + "type": "Slot" + }, + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "effect", + "type": "varint" + }, + { + "name": "probability", + "type": "f32" + } + ] + ] + } + ] + } + ] + ], + "hide_additional_tooltip": "void", + "hide_tooltip": "void", + "instrument": [ + "registryEntryHolder", + { + "baseName": "instrumentId", + "otherwise": { + "name": "data", + "type": "InstrumentData" + } } - ] - ] - } - ] - } - ] - ], - "Particle": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "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": "gust", - "24": "small_gust", - "25": "gust_emitter_large", - "26": "gust_emitter_small", - "27": "sonic_boom", - "28": "falling_dust", - "29": "firework", - "30": "fishing", - "31": "flame", - "32": "infested", - "33": "cherry_leaves", - "34": "sculk_soul", - "35": "sculk_charge", - "36": "sculk_charge_pop", - "37": "soul_fire_flame", - "38": "soul", - "39": "flash", - "40": "happy_villager", - "41": "composter", - "42": "heart", - "43": "instant_effect", - "44": "item", - "45": "vibration", - "46": "item_slime", - "47": "item_cobweb", - "48": "item_snowball", - "49": "large_smoke", - "50": "lava", - "51": "mycelium", - "52": "note", - "53": "poof", - "54": "portal", - "55": "rain", - "56": "smoke", - "57": "white_smoke", - "58": "sneeze", - "59": "spit", - "60": "squid_ink", - "61": "sweep_attack", - "62": "totem_of_undying", - "63": "underwater", - "64": "splash", - "65": "witch", - "66": "bubble_pop", - "67": "current_down", - "68": "bubble_column_up", - "69": "nautilus", - "70": "dolphin", - "71": "campfire_cosy_smoke", - "72": "campfire_signal_smoke", - "73": "dripping_honey", - "74": "falling_honey", - "75": "landing_honey", - "76": "falling_nectar", - "77": "falling_spore_blossom", - "78": "ash", - "79": "crimson_spore", - "80": "warped_spore", - "81": "spore_blossom_air", - "82": "dripping_obsidian_tear", - "83": "falling_obsidian_tear", - "84": "landing_obsidian_tear", - "85": "reverse_portal", - "86": "white_ash", - "87": "small_flame", - "88": "snowflake", - "89": "dripping_dripstone_lava", - "90": "falling_dripstone_lava", - "91": "dripping_dripstone_water", - "92": "falling_dripstone_water", - "93": "glow_squid_ink", - "94": "glow", - "95": "wax_on", - "96": "wax_off", - "97": "electric_spark", - "98": "scrape", - "99": "shriek", - "100": "egg_crack", - "101": "dust_plume", - "102": "trial_spawner_detected_player", - "103": "trial_spawner_detected_player_ominous", - "104": "vault_connection", - "105": "dust_pillar", - "106": "ominous_spawning", - "107": "raid_omen", - "108": "trial_omen" - } - } - ] - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "block": "varint", - "block_marker": "varint", - "falling_dust": "varint", - "dust_pillar": "varint", - "dust": [ + ], + "intangible_projectile": "anonymousNbt", + "item_name": "anonymousNbt", + "jukebox_playable": [ + "container", + [ + { + "name": "hasHolder", + "type": "bool" + }, + { + "name": "song", + "type": [ + "switch", + { + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "songId", + "otherwise": { + "name": "data", + "type": "JukeboxSongData" + } + } + ] + } + } + ] + }, + { + "name": "showInTooltip", + "type": "bool" + } + ] + ], + "lock": "anonymousNbt", + "lodestone_tracker": [ "container", [ { - "name": "red", - "type": "f32" + "name": "globalPosition", + "type": [ + "option", + [ + "container", + [ + { + "name": "dimension", + "type": "string" + }, + { + "name": "position", + "type": "position" + } + ] + ] + ] }, { - "name": "green", - "type": "f32" + "name": "tracked", + "type": "bool" + } + ] + ], + "lore": [ + "array", + { + "countType": "varint", + "type": "anonOptionalNbt" + } + ], + "map_color": "i32", + "map_decorations": "anonymousNbt", + "map_id": "varint", + "map_post_processing": "varint", + "max_damage": "varint", + "max_stack_size": "varint", + "note_block_sound": "string", + "ominous_bottle_amplifier": "varint", + "pot_decorations": [ + "container", + [ + { + "name": "decorations", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "potion_contents": [ + "container", + [ + { + "name": "potionId", + "type": [ + "option", + "varint" + ] }, { - "name": "blue", - "type": "f32" + "name": "customColor", + "type": [ + "option", + "i32" + ] }, { - "name": "scale", - "type": "f32" + "name": "customEffects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemPotionEffect" + } + ] + }, + { + "name": "customName", + "type": [ + "option", + "string" + ] } ] ], - "dust_color_transition": [ + "profile": [ "container", [ { - "name": "fromRed", - "type": "f32" + "name": "name", + "type": [ + "option", + "string" + ] }, { - "name": "fromGreen", - "type": "f32" + "name": "uuid", + "type": [ + "option", + "UUID" + ] }, { - "name": "fromBlue", - "type": "f32" + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + } + ] + ], + "rarity": [ + "mapper", + { + "mappings": { + "0": "common", + "1": "uncommon", + "2": "rare", + "3": "epic" }, + "type": "varint" + } + ], + "recipes": "anonymousNbt", + "repair_cost": "varint", + "stored_enchantments": [ + "container", + [ { - "name": "scale", - "type": "f32" + "name": "enchantments", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] + } + ] }, { - "name": "toRed", - "type": "f32" + "name": "showInTooltip", + "type": "bool" + } + ] + ], + "suspicious_stew_effects": [ + "container", + [ + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "effect", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "tool": [ + "container", + [ + { + "name": "rules", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "blocks", + "type": "IDSet" + }, + { + "name": "speed", + "type": [ + "option", + "f32" + ] + }, + { + "name": "correctDropForBlocks", + "type": [ + "option", + "bool" + ] + } + ] + ] + } + ] }, { - "name": "toGreen", + "name": "defaultMiningSpeed", "type": "f32" }, { - "name": "toBlue", - "type": "f32" + "name": "damagePerBlock", + "type": "varint" } ] ], - "entity_effect": "i32", - "item": "Slot", - "sculk_charge": "f32", - "shriek": "varint", - "vibration": [ + "trim": [ "container", [ { - "name": "positionType", + "name": "material", "type": [ - "mapper", + "registryEntryHolder", { - "type": "varint", - "mappings": { - "0": "block", - "1": "entity" + "baseName": "materialId", + "otherwise": { + "name": "data", + "type": "ArmorTrimMaterial" } } ] }, { - "name": "position", + "name": "pattern", "type": [ - "switch", + "registryEntryHolder", { - "compareTo": "positionType", - "fields": { - "block": "position", - "entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityEyeHeight", - "type": "f32" - } - ] - ] + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "ArmorTrimPattern" } } ] }, { - "name": "ticks", - "type": "varint" + "name": "showInTooltip", + "type": "bool" } ] - ] - } - } - ] - } - ] - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "soundSource": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "master", - "1": "music", - "2": "record", - "3": "weather", - "4": "block", - "5": "hostile", - "6": "neutral", - "7": "player", - "8": "ambient", - "9": "voice" - } - } - ], - "packedChunkPos": [ - "container", - [ - { - "name": "z", - "type": "i32" - }, - { - "name": "x", - "type": "i32" - } - ] - ], - "previousMessages": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] - } - ] - ] - } - ], - "entityMetadataEntry": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "byte", - "1": "int", - "2": "long", - "3": "float", - "4": "string", - "5": "component", - "6": "optional_component", - "7": "item_stack", - "8": "boolean", - "9": "rotations", - "10": "block_pos", - "11": "optional_block_pos", - "12": "direction", - "13": "optional_uuid", - "14": "block_state", - "15": "optional_block_state", - "16": "compound_tag", - "17": "particle", - "18": "particles", - "19": "villager_data", - "20": "optional_unsigned_int", - "21": "pose", - "22": "cat_variant", - "23": "wolf_variant", - "24": "frog_variant", - "25": "optional_global_pos", - "26": "painting_variant", - "27": "sniffer_state", - "28": "armadillo_state", - "29": "vector3", - "30": "quaternion" - } - } - ] - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "byte": "i8", - "int": "varint", - "long": "varlong", - "float": "f32", - "string": "string", - "component": "anonymousNbt", - "optional_component": [ - "option", - "anonymousNbt" ], - "item_stack": "Slot", - "boolean": "bool", - "rotations": [ + "unbreakable": "bool", + "writable_book_content": [ "container", [ { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBookPage" + } + ] } ] ], - "block_pos": "position", - "optional_block_pos": [ - "option", - "position" - ], - "direction": "varint", - "optional_uuid": [ - "option", - "UUID" - ], - "block_state": "varint", - "optional_block_state": "optvarint", - "compound_tag": "anonymousNbt", - "particle": "Particle", - "particles": [ - "array", - { - "countType": "varint", - "type": "Particle" - } - ], - "villager_data": [ + "written_book_content": [ "container", [ { - "name": "villagerType", - "type": "varint" + "name": "rawTitle", + "type": "string" }, { - "name": "villagerProfession", - "type": "varint" + "name": "filteredTitle", + "type": [ + "option", + "string" + ] }, { - "name": "level", + "name": "author", + "type": "string" + }, + { + "name": "generation", "type": "varint" + }, + { + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemWrittenBookPage" + } + ] + }, + { + "name": "resolved", + "type": "bool" } ] - ], - "optional_unsigned_int": "optvarint", - "pose": "varint", - "cat_variant": "varint", - "wolf_variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "EntityMetadataWolfVariant" - } - } - ], - "frog_variant": "varint", - "optional_global_pos": [ - "option", - "string" - ], - "painting_variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "EntityMetadataPaintingVariant" - } - } - ], - "sniffer_state": "varint", - "armadillo_state": "varint", - "vector3": "vec3f", - "quaternion": "vec4f" + ] } } ] } ] ], - "EntityMetadataPaintingVariant": [ - "container", - [ - { - "name": "width", - "type": "i32" - }, - { - "name": "height", - "type": "i32" - }, - { - "name": "assetId", - "type": "string" - }, - { - "name": "title", - "type": [ - "option", - "anonymousNbt" - ] - }, - { - "name": "author", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ], - "EntityMetadataWolfVariant": [ - "container", - [ - { - "name": "wildTexture", - "type": "string" - }, - { - "name": "tameTexture", - "type": "string" - }, - { - "name": "angryTexture", - "type": "string" - }, - { - "name": "biome", - "type": "IDSet" - } - ] - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": "entityMetadataEntry" - } - ], - "minecraft_simple_recipe_format": [ - "container", - [ - { - "name": "category", - "type": "varint" - } - ] - ], - "minecraft_smelting_format": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "Slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ] - ], - "tags": [ - "array", + "SlotComponentType": [ + "mapper", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "chunkBlockEntity": [ - "container", - [ - { - "anon": true, - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "type", - "type": "varint" + "mappings": { + "0": "custom_data", + "1": "max_stack_size", + "2": "max_damage", + "3": "damage", + "4": "unbreakable", + "5": "custom_name", + "6": "item_name", + "7": "lore", + "8": "rarity", + "9": "enchantments", + "10": "can_place_on", + "11": "can_break", + "12": "attribute_modifiers", + "13": "custom_model_data", + "14": "hide_additional_tooltip", + "15": "hide_tooltip", + "16": "repair_cost", + "17": "creative_slot_lock", + "18": "enchantment_glint_override", + "19": "intangible_projectile", + "20": "food", + "21": "fire_resistant", + "22": "tool", + "23": "stored_enchantments", + "24": "dyed_color", + "25": "map_color", + "26": "map_id", + "27": "map_decorations", + "28": "map_post_processing", + "29": "charged_projectiles", + "30": "bundle_contents", + "31": "potion_contents", + "32": "suspicious_stew_effects", + "33": "writable_book_content", + "34": "written_book_content", + "35": "trim", + "36": "debug_stick_state", + "37": "entity_data", + "38": "bucket_entity_data", + "39": "block_entity_data", + "40": "instrument", + "41": "ominous_bottle_amplifier", + "42": "jukebox_playable", + "43": "recipes", + "44": "lodestone_tracker", + "45": "firework_explosion", + "46": "fireworks", + "47": "profile", + "48": "note_block_sound", + "49": "banner_patterns", + "50": "base_color", + "51": "pot_decorations", + "52": "container", + "53": "block_state", + "54": "bees", + "55": "lock", + "56": "container_loot" }, - { - "name": "nbtData", - "type": "anonOptionalNbt" - } - ] + "type": "varint" + } ], + "UUID": "native", + "anonOptionalNbt": "native", + "anonymousNbt": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", "chat_session": [ "option", [ @@ -2110,41 +1657,38 @@ ] ] ], - "game_profile": [ + "chunkBlockEntity": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "properties", + "anon": true, "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } + "bitfield", + [ + { + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 + } + ] ] + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" } ] ], @@ -2158,28 +1702,28 @@ [ { "name": "unused", - "size": 3, - "signed": false + "signed": false, + "size": 3 }, { "name": "has_custom_suggestions", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_redirect_node", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "command_node_type", - "size": 2, - "signed": false + "signed": false, + "size": 2 } ] ] @@ -2200,10 +1744,10 @@ "switch", { "compareTo": "flags/has_redirect_node", + "default": "void", "fields": { "1": "varint" - }, - "default": "void" + } } ] }, @@ -2236,7 +1780,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "brigadier:bool", "1": "brigadier:float", @@ -2292,7 +1835,8 @@ "51": "minecraft:loot_predicate", "52": "minecraft:loot_modifier", "53": "minecraft:uuid" - } + }, + "type": "varint" } ] }, @@ -2304,7 +1848,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -2314,18 +1858,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -2336,10 +1880,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -2349,16 +1893,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -2368,18 +1912,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -2390,10 +1934,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -2403,10 +1947,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -2422,18 +1966,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -2444,10 +1988,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -2457,10 +2001,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -2476,18 +2020,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -2498,10 +2042,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -2511,10 +2055,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -2523,45 +2067,52 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:gamemode": "void", + "minecraft:heightmap": "void", + "minecraft:int_range": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", "minecraft:nbt": "void", "minecraft:nbt_path": "void", @@ -2569,43 +2120,25 @@ "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", + "minecraft:resource": [ + "container", [ { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false + "name": "registry", + "type": "string" } ] ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:dimension": "void", - "minecraft:gamemode": "void", - "minecraft:time": [ + "minecraft:resource_key": [ "container", [ { - "name": "min", - "type": "i32" + "name": "registry", + "type": "string" } ] ], + "minecraft:resource_location": "void", "minecraft:resource_or_tag": [ "container", [ @@ -2624,48 +2157,507 @@ } ] ], - "minecraft:resource": [ - "container", + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", [ { - "name": "registry", - "type": "string" + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 } ] ], - "minecraft:resource_key": [ + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:template_mirror": "void", + "minecraft:template_rotation": "void", + "minecraft:time": [ "container", [ { - "name": "registry", - "type": "string" + "name": "min", + "type": "i32" } ] ], - "minecraft:template_mirror": "void", - "minecraft:template_rotation": "void", - "minecraft:heightmap": "void", - "minecraft:uuid": "void" + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" + } + } + ] + }, + { + "name": "suggestionType", + "type": [ + "switch", + { + "compareTo": "../flags/has_custom_suggestions", + "default": "void", + "fields": { + "1": "string" } } - ] - }, - { - "name": "suggestionType", - "type": [ - "switch", - { - "compareTo": "../flags/has_custom_suggestions", - "fields": { - "1": "string" - }, - "default": "void" + ] + } + ] + ] + } + } + ] + } + ] + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": "entityMetadataEntry" + } + ], + "entityMetadataEntry": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "compound_tag", + "17": "particle", + "18": "particles", + "19": "villager_data", + "20": "optional_unsigned_int", + "21": "pose", + "22": "cat_variant", + "23": "wolf_variant", + "24": "frog_variant", + "25": "optional_global_pos", + "26": "painting_variant", + "27": "sniffer_state", + "28": "armadillo_state", + "29": "vector3", + "30": "quaternion" + }, + "type": "varint" + } + ] + }, + { + "name": "value", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "armadillo_state": "varint", + "block_pos": "position", + "block_state": "varint", + "boolean": "bool", + "byte": "i8", + "cat_variant": "varint", + "component": "anonymousNbt", + "compound_tag": "anonymousNbt", + "direction": "varint", + "float": "f32", + "frog_variant": "varint", + "int": "varint", + "item_stack": "Slot", + "long": "varlong", + "optional_block_pos": [ + "option", + "position" + ], + "optional_block_state": "optvarint", + "optional_component": [ + "option", + "anonymousNbt" + ], + "optional_global_pos": [ + "option", + "string" + ], + "optional_unsigned_int": "optvarint", + "optional_uuid": [ + "option", + "UUID" + ], + "painting_variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "EntityMetadataPaintingVariant" + } + } + ], + "particle": "Particle", + "particles": [ + "array", + { + "countType": "varint", + "type": "Particle" + } + ], + "pose": "varint", + "quaternion": "vec4f", + "rotations": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "sniffer_state": "varint", + "string": "string", + "vector3": "vec3f", + "villager_data": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "wolf_variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "EntityMetadataWolfVariant" + } + } + ] + } + } + ] + } + ] + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "game_profile": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + } + ] + ], + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ], + "minecraft_simple_recipe_format": [ + "container", + [ + { + "name": "category", + "type": "varint" + } + ] + ], + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "Slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "option": "native", + "optvarint": "varint", + "packedChunkPos": [ + "container", + [ + { + "name": "z", + "type": "i32" + }, + { + "name": "x", + "type": "i32" + } + ] + ], + "packet_common_add_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "url", + "type": "string" + }, + { + "name": "hash", + "type": "string" + }, + { + "name": "forced", + "type": "bool" + }, + { + "name": "promptMessage", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ], + "packet_common_cookie_request": [ + "container", + [ + { + "name": "cookie", + "type": "string" + } + ] + ], + "packet_common_cookie_response": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "ByteArray" + ] + } + ] + ], + "packet_common_custom_report_details": [ + "container", + [ + { + "name": "details", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + } + ] + ], + "packet_common_remove_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": [ + "option", + "UUID" + ] + } + ] + ], + "packet_common_select_known_packs": [ + "container", + [ + { + "name": "packs", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "namespace", + "type": "string" + }, + { + "name": "id", + "type": "string" + }, + { + "name": "version", + "type": "string" + } + ] + ] + } + ] + } + ] + ], + "packet_common_server_links": [ + "container", + [ + { + "name": "links", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "hasKnownType", + "type": "bool" + }, + { + "name": "knownType", + "type": [ + "switch", + { + "compareTo": "hasKnownType", + "fields": { + "true": "ServerLinkType" + } + } + ] + }, + { + "name": "unknownType", + "type": [ + "switch", + { + "compareTo": "hasKnownType", + "fields": { + "false": "anonymousNbt" } - ] - } - ] + } + ] + }, + { + "name": "link", + "type": "string" + } ] - } + ] } ] } @@ -2708,227 +2700,264 @@ } ] ], - "packet_common_cookie_request": [ + "packet_common_store_cookie": [ "container", [ { - "name": "cookie", + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "ByteArray" + } + ] + ], + "packet_common_transfer": [ + "container", + [ + { + "name": "host", "type": "string" + }, + { + "name": "port", + "type": "varint" + } + ] + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 } ] ], - "packet_common_store_cookie": [ + "previousMessages": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "signature", + "type": [ + "switch", + { + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] + } + } + ] + } + ] + ] + } + ], + "pstring": "native", + "registryEntryHolder": "native", + "registryEntryHolderSet": "native", + "restBuffer": "native", + "soundSource": [ + "mapper", + { + "mappings": { + "0": "master", + "1": "music", + "2": "record", + "3": "weather", + "4": "block", + "5": "hostile", + "6": "neutral", + "7": "player", + "8": "ambient", + "9": "voice" + }, + "type": "varint" + } + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec2f": [ "container", [ { - "name": "key", - "type": "string" + "name": "x", + "type": "f32" }, { - "name": "value", - "type": "ByteArray" + "name": "y", + "type": "f32" } ] ], - "packet_common_transfer": [ + "vec3f": [ "container", [ { - "name": "host", - "type": "string" + "name": "x", + "type": "f32" }, { - "name": "port", - "type": "varint" + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" } ] ], - "packet_common_cookie_response": [ + "vec3f64": [ "container", [ { - "name": "key", - "type": "string" + "name": "x", + "type": "f64" }, { - "name": "value", - "type": [ - "option", - "ByteArray" - ] - } - ] - ], - "packet_common_select_known_packs": [ - "container", - [ + "name": "y", + "type": "f64" + }, { - "name": "packs", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "namespace", - "type": "string" - }, - { - "name": "id", - "type": "string" - }, - { - "name": "version", - "type": "string" - } - ] - ] - } - ] + "name": "z", + "type": "f64" } ] ], - "packet_common_remove_resource_pack": [ + "vec3i16": [ "container", [ { - "name": "uuid", - "type": [ - "option", - "UUID" - ] + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" } ] ], - "packet_common_add_resource_pack": [ + "vec4f": [ "container", [ { - "name": "uuid", - "type": "UUID" - }, - { - "name": "url", - "type": "string" + "name": "x", + "type": "f32" }, { - "name": "hash", - "type": "string" + "name": "y", + "type": "f32" }, { - "name": "forced", - "type": "bool" + "name": "z", + "type": "f32" }, { - "name": "promptMessage", - "type": [ - "option", - "anonymousNbt" - ] + "name": "w", + "type": "f32" } ] ], - "packet_common_custom_report_details": [ - "container", - [ - { - "name": "details", - "type": [ - "array", + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { + "packet": [ + "container", + [ { - "countType": "varint", + "name": "name", "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] + "mapper", + { + "mappings": {}, + "type": "varint" + } ] - } - ] - } - ] - ], - "ServerLinkType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "bug_report", - "1": "community_guidelines", - "2": "support", - "3": "status", - "4": "feedback", - "5": "community", - "6": "website", - "7": "forums", - "8": "news", - "9": "announcements" - } - } - ], - "packet_common_server_links": [ - "container", - [ - { - "name": "links", - "type": [ - "array", + }, { - "countType": "varint", + "name": "params", "type": [ - "container", - [ - { - "name": "hasKnownType", - "type": "bool" - }, - { - "name": "knownType", - "type": [ - "switch", - { - "compareTo": "hasKnownType", - "fields": { - "true": "ServerLinkType" - } - } - ] - }, - { - "name": "unknownType", - "type": [ - "switch", - { - "compareTo": "hasKnownType", - "fields": { - "false": "anonymousNbt" - } - } - ] - }, - { - "name": "link", - "type": "string" - } - ] + "switch", + { + "compareTo": "name", + "fields": {} + } ] } ] - } - ] - ] - }, - "handshaking": { - "toClient": { + ] + } + }, + "toServer": { "types": { "packet": [ "container", @@ -2938,8 +2967,11 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" } ] }, @@ -2949,16 +2981,24 @@ "switch", { "compareTo": "name", - "fields": {} + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } } ] } ] - ] - } - }, - "toServer": { - "types": { + ], + "packet_legacy_server_list_ping": [ + "container", + [ + { + "name": "payload", + "type": "u8" + } + ] + ], "packet_set_protocol": [ "container", [ @@ -2979,16 +3019,13 @@ "type": "varint" } ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -2997,11 +3034,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -3012,38 +3049,36 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_ping": [ + "packet_server_info": [ "container", [ { - "name": "time", - "type": "i64" + "name": "response", + "type": "string" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -3052,11 +3087,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "server_info", + "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -3067,21 +3102,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -3092,6 +3119,16 @@ } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -3100,11 +3137,15 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request", + "0x05": "cookie_request" + }, + "type": "varint" } ] }, @@ -3115,20 +3156,27 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "compress": "packet_compress", + "cookie_request": "packet_common_cookie_request", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -3169,6 +3217,23 @@ } ] ], + "packet_login_plugin_request": [ + "container", + [ + { + "name": "messageId", + "type": "varint" + }, + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], "packet_success": [ "container", [ @@ -3214,33 +3279,11 @@ "type": "bool" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], - "packet_login_plugin_request": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -3249,15 +3292,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", + "0x00": "login_start", "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request", - "0x05": "cookie_request" - } + "0x02": "login_plugin_response", + "0x03": "login_acknowledged", + "0x04": "cookie_response" + }, + "type": "varint" } ] }, @@ -3268,34 +3310,16 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", + "cookie_response": "packet_common_cookie_response", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request", - "cookie_request": "packet_common_cookie_request" + "login_acknowledged": "packet_login_acknowledged", + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - }, - { - "name": "playerUUID", - "type": "UUID" - } - ] ], "packet_encryption_begin": [ "container", @@ -3320,6 +3344,10 @@ } ] ], + "packet_login_acknowledged": [ + "container", + [] + ], "packet_login_plugin_response": [ "container", [ @@ -3336,10 +3364,25 @@ } ] ], - "packet_login_acknowledged": [ + "packet_login_start": [ "container", - [] - ], + [ + { + "name": "username", + "type": "string" + }, + { + "name": "playerUUID", + "type": "UUID" + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { "packet": [ "container", [ @@ -3348,14 +3391,26 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response", - "0x03": "login_acknowledged", - "0x04": "cookie_response" - } + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links" + }, + "type": "varint" } ] }, @@ -3366,23 +3421,29 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response", - "login_acknowledged": "packet_login_acknowledged", - "cookie_response": "packet_common_cookie_response" + "add_resource_pack": "packet_common_add_resource_pack", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" } } ] } ] - ] - } - } - }, - "configuration": { - "toClient": { - "types": { + ], "packet_custom_payload": [ "container", [ @@ -3405,6 +3466,21 @@ } ] ], + "packet_feature_flags": [ + "container", + [ + { + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], "packet_finish_configuration": [ "container", [] @@ -3427,10 +3503,6 @@ } ] ], - "packet_reset_chat": [ - "container", - [] - ], "packet_registry_data": [ "container", [ @@ -3465,20 +3537,9 @@ } ] ], - "packet_feature_flags": [ + "packet_reset_chat": [ "container", - [ - { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] + [] ], "packet_tags": [ "container", @@ -3506,7 +3567,11 @@ ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -3515,26 +3580,19 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", "0x03": "finish_configuration", "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links" - } + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_report_details", + "0x09": "server_links" + }, + "type": "varint" } ] }, @@ -3545,33 +3603,22 @@ { "compareTo": "name", "fields": { - "cookie_request": "packet_common_cookie_request", + "cookie_response": "packet_common_cookie_response", "custom_payload": "packet_custom_payload", - "disconnect": "packet_disconnect", + "custom_report_details": "packet_common_custom_report_details", "finish_configuration": "packet_finish_configuration", "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "reset_chat": "packet_reset_chat", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "store_cookie": "packet_common_store_cookie", - "transfer": "packet_common_transfer", - "feature_flags": "packet_feature_flags", - "tags": "packet_tags", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", "select_known_packs": "packet_common_select_known_packs", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links" + "server_links": "packet_common_server_links", + "settings": "packet_common_settings" } } ] } ] - ] - } - }, - "toServer": { - "types": { + ], "packet_custom_payload": [ "container", [ @@ -3615,7 +3662,150 @@ "type": "UUID" }, { - "name": "result", + "name": "result", + "type": "varint" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "ChatType": [ + "container", + [ + { + "name": "translationKey", + "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "ChatTypeParameterType" + } + ] + }, + { + "name": "style", + "type": "anonymousNbt" + } + ] + ], + "ChatTypeParameterType": [ + "mapper", + { + "mappings": { + "0": "content", + "1": "sender", + "2": "target" + }, + "type": "varint" + } + ], + "ChatTypes": [ + "container", + [ + { + "name": "chat", + "type": "ChatType" + }, + { + "name": "narration", + "type": "ChatType" + } + ] + ], + "ChatTypesHolder": [ + "registryEntryHolder", + { + "baseName": "chatType", + "otherwise": { + "name": "data", + "type": "ChatTypes" + } + } + ], + "PositionUpdateRelatives": [ + "bitflags", + { + "flags": [ + "x", + "y", + "z", + "yaw", + "pitch" + ], + "type": "u8" + } + ], + "SpawnInfo": [ + "container", + [ + { + "name": "dimension", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "hashedSeed", + "type": "i64" + }, + { + "name": "gamemode", + "type": [ + "mapper", + { + "mappings": { + "0": "survival", + "1": "creative", + "2": "adventure", + "3": "spectator" + }, + "type": "i8" + } + ] + }, + { + "name": "previousGamemode", + "type": "u8" + }, + { + "name": "isDebug", + "type": "bool" + }, + { + "name": "isFlat", + "type": "bool" + }, + { + "name": "death", + "type": [ + "option", + [ + "container", + [ + { + "name": "dimensionName", + "type": "string" + }, + { + "name": "location", + "type": "position" + } + ] + ] + ] + }, + { + "name": "portalCooldown", "type": "varint" } ] @@ -3628,19 +3818,133 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_report_details", - "0x09": "server_links" - } + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "spawn_entity_experience_orb", + "0x03": "animation", + "0x04": "statistics", + "0x05": "acknowledge_player_digging", + "0x06": "block_break_animation", + "0x07": "tile_entity_data", + "0x08": "block_action", + "0x09": "block_change", + "0x0a": "boss_bar", + "0x0b": "difficulty", + "0x0c": "chunk_batch_finished", + "0x0d": "chunk_batch_start", + "0x0e": "chunk_biomes", + "0x0f": "clear_titles", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "close_window", + "0x13": "window_items", + "0x14": "craft_progress_bar", + "0x15": "set_slot", + "0x16": "cookie_request", + "0x17": "set_cooldown", + "0x18": "chat_suggestions", + "0x19": "custom_payload", + "0x1a": "damage_event", + "0x1b": "debug_sample", + "0x1c": "hide_message", + "0x1d": "kick_disconnect", + "0x1e": "profileless_chat", + "0x1f": "entity_status", + "0x20": "explosion", + "0x21": "unload_chunk", + "0x22": "game_state_change", + "0x23": "open_horse_window", + "0x24": "hurt_animation", + "0x25": "initialize_world_border", + "0x26": "keep_alive", + "0x27": "map_chunk", + "0x28": "world_event", + "0x29": "world_particles", + "0x2a": "update_light", + "0x2b": "login", + "0x2c": "map", + "0x2d": "trade_list", + "0x2e": "rel_entity_move", + "0x2f": "entity_move_look", + "0x30": "entity_look", + "0x31": "vehicle_move", + "0x32": "open_book", + "0x33": "open_window", + "0x34": "open_sign_entity", + "0x35": "ping", + "0x36": "ping_response", + "0x37": "craft_recipe_response", + "0x38": "abilities", + "0x39": "player_chat", + "0x3a": "end_combat_event", + "0x3b": "enter_combat_event", + "0x3c": "death_combat_event", + "0x3d": "player_remove", + "0x3e": "player_info", + "0x3f": "face_player", + "0x40": "position", + "0x41": "unlock_recipes", + "0x42": "entity_destroy", + "0x43": "remove_entity_effect", + "0x44": "reset_score", + "0x45": "remove_resource_pack", + "0x46": "add_resource_pack", + "0x47": "respawn", + "0x48": "entity_head_rotation", + "0x49": "multi_block_change", + "0x4a": "select_advancement_tab", + "0x4b": "server_data", + "0x4c": "action_bar", + "0x4d": "world_border_center", + "0x4e": "world_border_lerp_size", + "0x4f": "world_border_size", + "0x50": "world_border_warning_delay", + "0x51": "world_border_warning_reach", + "0x52": "camera", + "0x53": "held_item_slot", + "0x54": "update_view_position", + "0x55": "update_view_distance", + "0x56": "spawn_position", + "0x57": "scoreboard_display_objective", + "0x58": "entity_metadata", + "0x59": "attach_entity", + "0x5a": "entity_velocity", + "0x5b": "entity_equipment", + "0x5c": "experience", + "0x5d": "update_health", + "0x5e": "scoreboard_objective", + "0x5f": "set_passengers", + "0x60": "teams", + "0x61": "scoreboard_score", + "0x62": "simulation_distance", + "0x63": "set_title_subtitle", + "0x64": "update_time", + "0x65": "set_title_text", + "0x66": "set_title_time", + "0x67": "entity_sound_effect", + "0x68": "sound_effect", + "0x69": "start_configuration", + "0x6a": "stop_sound", + "0x6b": "store_cookie", + "0x6c": "system_chat", + "0x6d": "playerlist_header", + "0x6e": "nbt_query_response", + "0x6f": "collect", + "0x70": "entity_teleport", + "0x71": "set_ticking_state", + "0x72": "step_tick", + "0x73": "transfer", + "0x74": "advancements", + "0x75": "entity_update_attributes", + "0x76": "entity_effect", + "0x77": "declare_recipes", + "0x78": "tags", + "0x79": "set_projectile_power", + "0x7a": "custom_report_details", + "0x7b": "server_links" + }, + "type": "varint" } ] }, @@ -3651,187 +3955,319 @@ { "compareTo": "name", "fields": { - "settings": "packet_common_settings", - "cookie_response": "packet_common_cookie_response", + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "add_resource_pack": "packet_common_add_resource_pack", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "bundle_delimiter": "void", + "camera": "packet_camera", + "chat_suggestions": "packet_chat_suggestions", + "chunk_batch_finished": "packet_chunk_batch_finished", + "chunk_batch_start": "packet_chunk_batch_start", + "chunk_biomes": "packet_chunk_biomes", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "cookie_request": "packet_common_cookie_request", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links" + "damage_event": "packet_damage_event", + "death_combat_event": "packet_death_combat_event", + "debug_sample": "packet_debug_sample", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "hide_message": "packet_hide_message", + "hurt_animation": "packet_hurt_animation", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "ping_response": "packet_ping_response", + "player_chat": "packet_player_chat", + "player_info": "packet_player_info", + "player_remove": "packet_player_remove", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "profileless_chat": "packet_profileless_chat", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_score": "packet_reset_score", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "server_data": "packet_server_data", + "server_links": "packet_common_server_links", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_projectile_power": "packet_set_projectile_power", + "set_slot": "packet_set_slot", + "set_ticking_state": "packet_set_ticking_state", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_position": "packet_spawn_position", + "start_configuration": "packet_start_configuration", + "statistics": "packet_statistics", + "step_tick": "packet_step_tick", + "stop_sound": "packet_stop_sound", + "store_cookie": "packet_common_store_cookie", + "system_chat": "packet_system_chat", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "trade_list": "packet_trade_list", + "transfer": "packet_common_transfer", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "SpawnInfo": [ + ], + "packet_abilities": [ "container", [ { - "name": "dimension", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "hashedSeed", - "type": "i64" - }, - { - "name": "gamemode", - "type": [ - "mapper", - { - "type": "i8", - "mappings": { - "0": "survival", - "1": "creative", - "2": "adventure", - "3": "spectator" - } - } - ] - }, - { - "name": "previousGamemode", - "type": "u8" - }, - { - "name": "isDebug", - "type": "bool" - }, - { - "name": "isFlat", - "type": "bool" + "name": "flags", + "type": "i8" }, { - "name": "death", - "type": [ - "option", - [ - "container", - [ - { - "name": "dimensionName", - "type": "string" - }, - { - "name": "location", - "type": "position" - } - ] - ] - ] + "name": "flyingSpeed", + "type": "f32" }, { - "name": "portalCooldown", - "type": "varint" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "objectData", + "name": "sequenceId", "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_action_bar": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, + "name": "text", + "type": "anonymousNbt" + } + ] + ], + "packet_advancements": [ + "container", + [ { - "name": "y", - "type": "f64" + "name": "reset", + "type": "bool" }, { - "name": "z", - "type": "f64" + "name": "advancementMapping", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "container", + [ + { + "name": "parentId", + "type": [ + "option", + "string" + ] + }, + { + "name": "displayData", + "type": [ + "option", + [ + "container", + [ + { + "name": "title", + "type": "anonymousNbt" + }, + { + "name": "description", + "type": "anonymousNbt" + }, + { + "name": "icon", + "type": "Slot" + }, + { + "name": "frameType", + "type": "varint" + }, + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 29 + }, + { + "name": "hidden", + "signed": false, + "size": 1 + }, + { + "name": "show_toast", + "signed": false, + "size": 1 + }, + { + "name": "has_background_texture", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "backgroundTexture", + "type": [ + "switch", + { + "compareTo": "flags/has_background_texture", + "default": "void", + "fields": { + "1": "string" + } + } + ] + }, + { + "name": "xCord", + "type": "f32" + }, + { + "name": "yCord", + "type": "f32" + } + ] + ] + ] + }, + { + "name": "requirements", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + }, + { + "name": "sendsTelemtryData", + "type": "bool" + } + ] + ] + } + ] + ] + } + ] }, { - "name": "count", - "type": "i16" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "identifiers", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", + "name": "progressMapping", "type": [ "array", { @@ -3840,16 +4276,33 @@ "container", [ { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" + "name": "key", + "type": "string" }, { "name": "value", - "type": "varint" + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "criterionIdentifier", + "type": "string" + }, + { + "name": "criterionProgress", + "type": [ + "option", + "i64" + ] + } + ] + ] + } + ] } ] ] @@ -3858,16 +4311,7 @@ } ] ], - "packet_acknowledge_player_digging": [ - "container", - [ - { - "name": "sequenceId", - "type": "varint" - } - ] - ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -3875,29 +4319,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "anonOptionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -3922,6 +4358,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -3952,11 +4405,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "anonymousNbt", "3": "anonymousNbt" - }, - "default": "void" + } } ] }, @@ -3966,11 +4419,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -3980,11 +4433,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -3994,11 +4447,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -4008,26 +4461,41 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat_suggestions": [ + "container", + [ + { + "name": "action", + "type": "varint" }, { - "name": "difficultyLocked", - "type": "bool" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], @@ -4080,45 +4548,132 @@ } ] ], - "packet_tab_complete": [ + "packet_close_window": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", + "type": "varint" + }, + { + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_craft_recipe_response": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "recipe", + "type": "string" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_damage_event": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "sourceTypeId", + "type": "varint" + }, + { + "name": "sourceCauseId", + "type": "varint" + }, + { + "name": "sourceDirectId", + "type": "varint" + }, + { + "name": "sourcePosition", + "type": [ + "option", + "vec3f64" + ] + } + ] + ], + "packet_death_combat_event": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", + "name": "playerId", "type": "varint" }, { - "name": "length", - "type": "varint" - }, + "name": "message", + "type": "anonymousNbt" + } + ] + ], + "packet_debug_sample": [ + "container", + [ { - "name": "matches", + "name": "sample", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] + "type": "i64" } ] + }, + { + "name": "type", + "type": "varint" } ] ], @@ -4141,126 +4696,262 @@ } ] ], - "packet_close_window": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - } - ] - ], - "packet_window_items": [ + "packet_declare_recipes": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "items", + "name": "recipes", "type": [ "array", { "countType": "varint", - "type": "Slot" + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "minecraft:crafting_shaped", + "1": "minecraft:crafting_shapeless", + "2": "minecraft:crafting_special_armordye", + "3": "minecraft:crafting_special_bookcloning", + "4": "minecraft:crafting_special_mapcloning", + "5": "minecraft:crafting_special_mapextending", + "6": "minecraft:crafting_special_firework_rocket", + "7": "minecraft:crafting_special_firework_star", + "8": "minecraft:crafting_special_firework_star_fade", + "9": "minecraft:crafting_special_tippedarrow", + "10": "minecraft:crafting_special_bannerduplicate", + "11": "minecraft:crafting_special_shielddecoration", + "12": "minecraft:crafting_special_shulkerboxcoloring", + "13": "minecraft:crafting_special_suspiciousstew", + "14": "minecraft:crafting_special_repairitem", + "15": "minecraft:smelting", + "16": "minecraft:blasting", + "17": "minecraft:smoking", + "18": "minecraft:campfire_cooking", + "19": "minecraft:stonecutting", + "20": "minecraft:smithing_transform", + "21": "minecraft:smithing_trim", + "22": "minecraft:crafting_decorated_pot" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "gridWidth", + "type": "varint" + }, + { + "name": "gridHeight", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "gridWidth", + "type": [ + "array", + { + "count": "gridHeight", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "Slot" + }, + { + "name": "showNotification", + "type": "bool" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "category", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "Slot" + } + ] + ], + "minecraft:crafting_special_armordye": "minecraft_simple_recipe_format", + "minecraft:crafting_special_banneraddpattern": "minecraft_simple_recipe_format", + "minecraft:crafting_special_bannerduplicate": "minecraft_simple_recipe_format", + "minecraft:crafting_special_bookcloning": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_rocket": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_star": "minecraft_simple_recipe_format", + "minecraft:crafting_special_firework_star_fade": "minecraft_simple_recipe_format", + "minecraft:crafting_special_mapcloning": "minecraft_simple_recipe_format", + "minecraft:crafting_special_mapextending": "minecraft_simple_recipe_format", + "minecraft:crafting_special_repairitem": "minecraft_simple_recipe_format", + "minecraft:crafting_special_shielddecoration": "minecraft_simple_recipe_format", + "minecraft:crafting_special_shulkerboxcoloring": "minecraft_simple_recipe_format", + "minecraft:crafting_special_suspiciousstew": "minecraft_simple_recipe_format", + "minecraft:crafting_special_tippedarrow": "minecraft_simple_recipe_format", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing_transform": [ + "container", + [ + { + "name": "template", + "type": "ingredient" + }, + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "Slot" + } + ] + ], + "minecraft:smithing_trim": [ + "container", + [ + { + "name": "template", + "type": "ingredient" + }, + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "Slot" + } + ] + ] + } + } + ] + } + ] + ] } ] - }, - { - "name": "carriedItem", - "type": "Slot" } ] ], - "packet_craft_progress_bar": [ + "packet_difficulty": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "property", - "type": "i16" + "name": "difficulty", + "type": "u8" }, { - "name": "value", - "type": "i16" + "name": "difficultyLocked", + "type": "bool" } ] ], - "packet_set_slot": [ + "packet_end_combat_event": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", + "name": "duration", "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" } ] ], - "packet_set_cooldown": [ + "packet_enter_combat_event": [ "container", - [ - { - "name": "itemID", - "type": "varint" - }, - { - "name": "cooldownTicks", - "type": "varint" - } - ] + [] ], - "packet_chat_suggestions": [ + "packet_entity_destroy": [ "container", [ { - "name": "action", - "type": "varint" - }, - { - "name": "entries", + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "varint" } ] } ] ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_damage_event": [ + "packet_entity_effect": [ "container", [ { @@ -4268,487 +4959,405 @@ "type": "varint" }, { - "name": "sourceTypeId", - "type": "varint" - }, - { - "name": "sourceCauseId", + "name": "effectId", "type": "varint" }, { - "name": "sourceDirectId", + "name": "amplifier", "type": "varint" }, { - "name": "sourcePosition", - "type": [ - "option", - "vec3f64" - ] - } - ] - ], - "packet_debug_sample": [ - "container", - [ - { - "name": "sample", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "type", - "type": "varint" - } - ] - ], - "packet_hide_message": [ - "container", - [ - { - "name": "id", + "name": "duration", "type": "varint" }, { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "ChatTypeParameterType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "content", - "1": "sender", - "2": "target" - } - } - ], - "ChatType": [ - "container", - [ - { - "name": "translationKey", - "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "ChatTypeParameterType" - } - ] - }, - { - "name": "style", - "type": "anonymousNbt" - } - ] - ], - "ChatTypes": [ - "container", - [ - { - "name": "chat", - "type": "ChatType" - }, - { - "name": "narration", - "type": "ChatType" - } - ] - ], - "ChatTypesHolder": [ - "registryEntryHolder", - { - "baseName": "chatType", - "otherwise": { - "name": "data", - "type": "ChatTypes" - } - } - ], - "packet_profileless_chat": [ - "container", - [ - { - "name": "message", - "type": "anonymousNbt" - }, - { - "name": "type", - "type": "ChatTypesHolder" - }, - { - "name": "name", - "type": "anonymousNbt" - }, - { - "name": "target", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ], - "packet_entity_status": [ - "container", - [ - { - "name": "entityId", - "type": "i32" - }, - { - "name": "entityStatus", - "type": "i8" + "name": "flags", + "type": "u8" } ] ], - "packet_explosion": [ + "packet_entity_equipment": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "radius", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "affectedBlockOffsets", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "varint", "type": [ "container", [ { - "name": "x", - "type": "i8" - }, - { - "name": "y", + "name": "slot", "type": "i8" }, { - "name": "z", - "type": "i8" + "name": "item", + "type": "Slot" } ] ] } ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, + } + ] + ], + "packet_entity_head_rotation": [ + "container", + [ { - "name": "playerMotionY", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "playerMotionZ", - "type": "f32" - }, + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ + "container", + [ { - "name": "block_interaction_type", + "name": "entityId", "type": "varint" }, { - "name": "small_explosion_particle", - "type": "Particle" + "name": "yaw", + "type": "i8" }, { - "name": "large_explosion_particle", - "type": "Particle" + "name": "pitch", + "type": "i8" }, { - "name": "sound", - "type": "ItemSoundHolder" + "name": "onGround", + "type": "bool" } ] ], - "packet_unload_chunk": [ + "packet_entity_metadata": [ "container", [ { - "name": "chunkZ", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkX", - "type": "i32" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_game_state_change": [ + "packet_entity_move_look": [ "container", [ { - "name": "reason", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "gameMode", - "type": "f32" + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_open_horse_window": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "sound", + "type": "ItemSoundHolder" }, { - "name": "nbSlots", - "type": "varint" + "name": "soundCategory", + "type": "soundSource" }, { "name": "entityId", - "type": "i32" + "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], - "packet_hurt_animation": [ + "packet_entity_status": [ "container", [ { "name": "entityId", - "type": "varint" + "type": "i32" }, { - "name": "yaw", - "type": "f32" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_initialize_world_border": [ + "packet_entity_teleport": [ "container", [ + { + "name": "entityId", + "type": "varint" + }, { "name": "x", "type": "f64" }, { - "name": "z", + "name": "y", "type": "f64" }, { - "name": "oldDiameter", + "name": "z", "type": "f64" }, { - "name": "newDiameter", - "type": "f64" + "name": "yaw", + "type": "i8" }, { - "name": "speed", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "portalTeleportBoundary", + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "warningBlocks", + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": [ + "mapper", + { + "mappings": { + "0": "generic.armor", + "1": "generic.armor_toughness", + "2": "generic.attack_damage", + "3": "generic.attack_knockback", + "4": "generic.attack_speed", + "5": "player.block_break_speed", + "6": "player.block_interaction_range", + "7": "player.entity_interaction_range", + "8": "generic.fall_damage_multiplier", + "9": "generic.flying_speed", + "10": "generic.follow_range", + "11": "generic.gravity", + "12": "generic.jump_strength", + "13": "generic.knockback_resistance", + "14": "generic.luck", + "15": "generic.max_absorption", + "16": "generic.max_health", + "17": "generic.movement_speed", + "18": "generic.safe_fall_distance", + "19": "generic.scale", + "20": "zombie.spawn_reinforcements", + "21": "generic.step_height" + }, + "type": "varint" + } + ] + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] + } + ] + ], + "packet_entity_velocity": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "warningTime", - "type": "varint" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_keep_alive": [ + "packet_experience": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], - "packet_map_chunk": [ + "packet_explosion": [ "container", [ { "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "heightmaps", - "type": "anonymousNbt" + "type": "f64" }, { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "y", + "type": "f64" }, { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "chunkBlockEntity" - } - ] + "name": "z", + "type": "f64" }, { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "radius", + "type": "f32" }, { - "name": "blockLightMask", + "name": "affectedBlockOffsets", "type": [ "array", { "countType": "varint", - "type": "i64" + "type": [ + "container", + [ + { + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + } + ] + ] } ] }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "playerMotionX", + "type": "f32" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "playerMotionY", + "type": "f32" }, { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "playerMotionZ", + "type": "f32" }, { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" + "name": "block_interaction_type", + "type": "varint" }, { - "name": "location", - "type": "position" + "name": "small_explosion_particle", + "type": "Particle" }, { - "name": "data", - "type": "i32" + "name": "large_explosion_particle", + "type": "Particle" }, { - "name": "global", - "type": "bool" + "name": "sound", + "type": "ItemSoundHolder" } ] ], - "packet_world_particles": [ + "packet_face_player": [ "container", [ { - "name": "longDistance", - "type": "bool" + "name": "feet_eyes", + "type": "varint" }, { "name": "x", @@ -4763,113 +5372,151 @@ "type": "f64" }, { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" + "name": "isEntity", + "type": "bool" }, { - "name": "offsetZ", - "type": "f32" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "velocityOffset", - "type": "f32" - }, + "name": "entity_feet_eyes", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + } + ] + ], + "packet_game_state_change": [ + "container", + [ { - "name": "amount", - "type": "i32" + "name": "reason", + "type": "u8" }, { - "name": "particle", - "type": "Particle" + "name": "gameMode", + "type": "f32" } ] ], - "packet_update_light": [ + "packet_held_item_slot": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_hide_message": [ + "container", + [ { - "name": "chunkZ", + "name": "id", "type": "varint" }, { - "name": "skyLightMask", + "name": "signature", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] + } } ] + } + ] + ], + "packet_hurt_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "yaw", + "type": "f32" + } + ] + ], + "packet_initialize_world_border": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "oldDiameter", + "type": "f64" + }, + { + "name": "newDiameter", + "type": "f64" }, { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "speed", + "type": "varint" }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "portalTeleportBoundary", + "type": "varint" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "warningBlocks", + "type": "varint" }, { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] - }, + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "anonymousNbt" } ] ], @@ -4993,10 +5640,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -5006,10 +5653,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -5019,10 +5666,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -5032,255 +5679,176 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] - } - ] - } - ] - ], - "packet_trade_list": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "trades", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "inputItem1", - "type": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "SlotComponent" - } - ] - } - ] - ] - }, - { - "name": "outputItem", - "type": "Slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "SlotComponent" - } - ] - } - ] - ] - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ] - ] + ], + "fields": { + "0": "void" + } } ] - }, - { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" - }, - { - "name": "isRegularVillager", - "type": "bool" - }, - { - "name": "canRestock", - "type": "bool" - } - ] - ], - "packet_rel_entity_move": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity_move_look": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "z", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "heightmaps", + "type": "anonymousNbt" }, { - "name": "dZ", - "type": "i16" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "chunkBlockEntity" + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_look": [ - "container", - [ + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, { - "name": "entityId", - "type": "varint" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], - "packet_vehicle_move": [ + "packet_multi_block_change": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] + ] }, { - "name": "z", - "type": "f64" - }, + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "packet_nbt_query_response": [ + "container", + [ { - "name": "yaw", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "nbt", + "type": "anonOptionalNbt" } ] ], @@ -5293,20 +5861,20 @@ } ] ], - "packet_open_window": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "varint" + "type": "ContainerID" }, { - "name": "inventoryType", + "name": "nbSlots", "type": "varint" }, { - "name": "windowTitle", - "type": "anonymousNbt" + "name": "entityId", + "type": "i32" } ] ], @@ -5323,51 +5891,38 @@ } ] ], - "packet_ping": [ + "packet_open_window": [ "container", [ { - "name": "id", - "type": "i32" - } - ] - ], - "packet_ping_response": [ - "container", - [ + "name": "windowId", + "type": "varint" + }, { - "name": "id", - "type": "i64" + "name": "inventoryType", + "type": "varint" + }, + { + "name": "windowTitle", + "type": "anonymousNbt" } ] ], - "packet_craft_recipe_response": [ + "packet_ping": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "recipe", - "type": "string" + "name": "id", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_ping_response": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "id", + "type": "i64" } ] ], @@ -5427,6 +5982,7 @@ "switch", { "compareTo": "filterType", + "default": "void", "fields": { "2": [ "array", @@ -5435,8 +5991,7 @@ "type": "i64" } ] - }, - "default": "void" + } } ] }, @@ -5449,51 +6004,10 @@ "type": "anonymousNbt" }, { - "name": "networkTargetName", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ], - "packet_end_combat_event": [ - "container", - [ - { - "name": "duration", - "type": "varint" - } - ] - ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ - "container", - [ - { - "name": "playerId", - "type": "varint" - }, - { - "name": "message", - "type": "anonymousNbt" - } - ] - ], - "packet_player_remove": [ - "container", - [ - { - "name": "players", - "type": [ - "array", - { - "countType": "varint", - "type": "UUID" - } + "name": "networkTargetName", + "type": [ + "option", + "anonymousNbt" ] } ] @@ -5506,7 +6020,6 @@ "type": [ "bitflags", { - "type": "u8", "flags": [ "add_player", "initialize_chat", @@ -5514,7 +6027,8 @@ "update_listed", "update_latency", "update_display_name" - ] + ], + "type": "u8" } ] }, @@ -5537,10 +6051,10 @@ "switch", { "compareTo": "../action/add_player", + "default": "void", "fields": { "true": "game_profile" - }, - "default": "void" + } } ] }, @@ -5550,10 +6064,10 @@ "switch", { "compareTo": "../action/initialize_chat", + "default": "void", "fields": { "true": "chat_session" - }, - "default": "void" + } } ] }, @@ -5563,10 +6077,10 @@ "switch", { "compareTo": "../action/update_game_mode", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -5576,10 +6090,10 @@ "switch", { "compareTo": "../action/update_listed", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -5589,10 +6103,10 @@ "switch", { "compareTo": "../action/update_latency", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -5602,336 +6116,52 @@ "switch", { "compareTo": "../action/update_display_name", + "default": "void", "fields": { "true": [ "option", "anonymousNbt" ] - }, - "default": "void" - } - ] - } - ] - ] - } - ] - } - ] - ], - "packet_face_player": [ - "container", - [ - { - "name": "feet_eyes", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entity_feet_eyes", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - } - ] - ], - "PositionUpdateRelatives": [ - "bitflags", - { - "type": "u8", - "flags": [ - "x", - "y", - "z", - "yaw", - "pitch" - ] - } - ], - "packet_position": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "flags", - "type": "PositionUpdateRelatives" - }, - { - "name": "teleportId", - "type": "varint" - } - ] - ], - "packet_unlock_recipes": [ - "container", - [ - { - "name": "action", - "type": "varint" - }, - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "filteringCraftable", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "filteringSmeltable", - "type": "bool" - }, - { - "name": "blastFurnaceOpen", - "type": "bool" - }, - { - "name": "filteringBlastFurnace", - "type": "bool" - }, - { - "name": "smokerBookOpen", - "type": "bool" - }, - { - "name": "filteringSmoker", - "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_remove_entity_effect": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "effectId", - "type": "varint" - } - ] - ], - "packet_reset_score": [ - "container", - [ - { - "name": "entity_name", - "type": "string" - }, - { - "name": "objective_name", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_respawn": [ - "container", - [ - { - "name": "worldState", - "type": "SpawnInfo" - }, - { - "name": "copyMetadata", - "type": "u8" - } - ] - ], - "packet_entity_head_rotation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "headYaw", - "type": "i8" + } + } + ] + } + ] + ] + } + ] } ] ], - "packet_multi_block_change": [ + "packet_player_remove": [ "container", [ { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] - }, - { - "name": "records", + "name": "players", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": "UUID" } ] } ] ], - "packet_select_advancement_tab": [ - "container", - [ - { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_server_data": [ + "packet_playerlist_header": [ "container", [ { - "name": "motd", + "name": "header", "type": "anonymousNbt" }, { - "name": "iconBytes", - "type": [ - "option", - "ByteArray" - ] - } - ] - ], - "packet_action_bar": [ - "container", - [ - { - "name": "text", + "name": "footer", "type": "anonymousNbt" } ] ], - "packet_world_border_center": [ + "packet_position": [ "container", [ { @@ -5939,122 +6169,56 @@ "type": "f64" }, { - "name": "z", - "type": "f64" - } - ] - ], - "packet_world_border_lerp_size": [ - "container", - [ - { - "name": "oldDiameter", + "name": "y", "type": "f64" }, { - "name": "newDiameter", + "name": "z", "type": "f64" }, { - "name": "speed", - "type": "varint" - } - ] - ], - "packet_world_border_size": [ - "container", - [ - { - "name": "diameter", - "type": "f64" - } - ] - ], - "packet_world_border_warning_delay": [ - "container", - [ - { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_world_border_warning_reach": [ - "container", - [ - { - "name": "warningBlocks", - "type": "varint" - } - ] - ], - "packet_camera": [ - "container", - [ - { - "name": "cameraId", - "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ - { - "name": "slot", - "type": "i8" - } - ] - ], - "packet_update_view_position": [ - "container", - [ + "name": "yaw", + "type": "f32" + }, { - "name": "chunkX", - "type": "varint" + "name": "pitch", + "type": "f32" }, { - "name": "chunkZ", - "type": "varint" - } - ] - ], - "packet_update_view_distance": [ - "container", - [ + "name": "flags", + "type": "PositionUpdateRelatives" + }, { - "name": "viewDistance", + "name": "teleportId", "type": "varint" } ] ], - "packet_spawn_position": [ + "packet_profileless_chat": [ "container", [ { - "name": "location", - "type": "position" + "name": "message", + "type": "anonymousNbt" }, { - "name": "angle", - "type": "f32" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ - { - "name": "position", - "type": "varint" + "name": "type", + "type": "ChatTypesHolder" }, { "name": "name", - "type": "string" + "type": "anonymousNbt" + }, + { + "name": "target", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "packet_entity_metadata": [ + "packet_rel_entity_move": [ "container", [ { @@ -6062,25 +6226,24 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "entityId", - "type": "i32" + "name": "dY", + "type": "i16" }, { - "name": "vehicleId", - "type": "i32" + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_entity_velocity": [ + "packet_remove_entity_effect": [ "container", [ { @@ -6088,72 +6251,50 @@ "type": "varint" }, { - "name": "velocity", - "type": "vec3i16" + "name": "effectId", + "type": "varint" } ] ], - "packet_entity_equipment": [ + "packet_reset_score": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entity_name", + "type": "string" }, { - "name": "equipments", + "name": "objective_name", "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } + "option", + "string" ] } ] ], - "packet_experience": [ + "packet_respawn": [ "container", [ { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" + "name": "worldState", + "type": "SpawnInfo" }, { - "name": "totalExperience", - "type": "varint" + "name": "copyMetadata", + "type": "u8" } ] ], - "packet_update_health": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", + "name": "position", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" + "name": "name", + "type": "string" } ] ], @@ -6174,11 +6315,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ] }, @@ -6188,11 +6329,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -6202,6 +6343,7 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": [ "option", @@ -6211,8 +6353,7 @@ "option", "varint" ] - }, - "default": "void" + } } ] }, @@ -6222,272 +6363,194 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": [ "switch", { "compareTo": "number_format", + "default": "void", "fields": { "1": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ], "2": [ "switch", { "compareTo": "number_format", + "default": "void", "fields": { "1": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_set_passengers": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" + } } ] } ] ], - "packet_teams": [ + "packet_scoreboard_score": [ "container", [ { - "name": "team", + "name": "itemName", "type": "string" }, { - "name": "mode", - "type": "i8" - }, - { - "name": "name", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] - }, - { - "name": "friendlyFire", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "nameTagVisibility", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "value", + "type": "varint" }, { - "name": "collisionRule", + "name": "display_name", "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } + "option", + "anonymousNbt" ] }, { - "name": "formatting", + "name": "number_format", "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } + "option", + "varint" ] }, { - "name": "prefix", + "name": "styling", "type": [ "switch", { - "compareTo": "mode", + "compareTo": "number_format", + "default": "void", "fields": { - "0": "anonymousNbt", + "1": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ] - }, + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ { - "name": "suffix", + "name": "id", "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } + "option", + "string" ] + } + ] + ], + "packet_server_data": [ + "container", + [ + { + "name": "motd", + "type": "anonymousNbt" }, { - "name": "players", + "name": "iconBytes", "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } + "option", + "ByteArray" ] } ] ], - "packet_scoreboard_score": [ + "packet_set_cooldown": [ "container", [ { - "name": "itemName", - "type": "string" + "name": "itemID", + "type": "varint" }, { - "name": "scoreName", - "type": "string" - }, + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_passengers": [ + "container", + [ { - "name": "value", + "name": "entityId", "type": "varint" }, { - "name": "display_name", + "name": "passengers", "type": [ - "option", - "anonymousNbt" + "array", + { + "countType": "varint", + "type": "varint" + } ] - }, + } + ] + ], + "packet_set_projectile_power": [ + "container", + [ { - "name": "number_format", - "type": [ - "option", - "varint" - ] + "name": "id", + "type": "varint" }, { - "name": "styling", - "type": [ - "switch", - { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] + "name": "accelerationPower", + "type": "f64" } ] ], - "packet_simulation_distance": [ + "packet_set_slot": [ "container", [ { - "name": "distance", + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "stateId", "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" } ] ], - "packet_set_title_subtitle": [ + "packet_set_ticking_state": [ "container", [ { - "name": "text", - "type": "anonymousNbt" + "name": "tick_rate", + "type": "f32" + }, + { + "name": "is_frozen", + "type": "bool" } ] ], - "packet_update_time": [ + "packet_set_title_subtitle": [ "container", [ { - "name": "age", - "type": "i64" - }, - { - "name": "time", - "type": "i64" + "name": "text", + "type": "anonymousNbt" } ] ], @@ -6517,7 +6580,16 @@ } ] ], - "packet_entity_sound_effect": [ + "packet_simulation_distance": [ + "container", + [ + { + "name": "distance", + "type": "varint" + } + ] + ], + "packet_sound_effect": [ "container", [ { @@ -6529,8 +6601,16 @@ "type": "soundSource" }, { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" }, { "name": "volume", @@ -6546,40 +6626,90 @@ } ] ], - "packet_sound_effect": [ + "packet_spawn_entity": [ "container", [ { - "name": "sound", - "type": "ItemSoundHolder" + "name": "entityId", + "type": "varint" }, { - "name": "soundCategory", - "type": "soundSource" + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "pitch", + "type": "i8" }, { - "name": "pitch", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "seed", - "type": "i64" + "name": "headPitch", + "type": "i8" + }, + { + "name": "objectData", + "type": "varint" + }, + { + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_spawn_entity_experience_orb": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "angle", + "type": "f32" } ] ], @@ -6587,6 +6717,46 @@ "container", [] ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_step_tick": [ + "container", + [ + { + "name": "tick_steps", + "type": "varint" + } + ] + ], "packet_stop_sound": [ "container", [ @@ -6600,11 +6770,11 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "1": "varint", "3": "varint" - }, - "default": "void" + } } ] }, @@ -6614,11 +6784,11 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "2": "string", "3": "string" - }, - "default": "void" + } } ] } @@ -6637,113 +6807,245 @@ } ] ], - "packet_playerlist_header": [ + "packet_tab_complete": [ "container", [ { - "name": "header", - "type": "anonymousNbt" + "name": "transactionId", + "type": "varint" }, { - "name": "footer", - "type": "anonymousNbt" + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] + } + ] } ] ], - "packet_nbt_query_response": [ + "packet_tags": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "nbt", - "type": "anonOptionalNbt" + "name": "tags", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] + } + ] } ] ], - "packet_collect": [ + "packet_teams": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" + "name": "team", + "type": "string" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "mode", + "type": "i8" }, { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ + "name": "name", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] + }, { - "name": "entityId", - "type": "varint" + "name": "friendlyFire", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "i8", + "2": "i8" + } + } + ] }, { - "name": "x", - "type": "f64" + "name": "nameTagVisibility", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] }, { - "name": "y", - "type": "f64" + "name": "collisionRule", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] }, { - "name": "z", - "type": "f64" + "name": "formatting", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "prefix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "suffix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "players", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "3": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + } + ] } ] ], - "packet_set_ticking_state": [ + "packet_tile_entity_data": [ "container", [ { - "name": "tick_rate", - "type": "f32" + "name": "location", + "type": "position" }, { - "name": "is_frozen", - "type": "bool" - } - ] - ], - "packet_step_tick": [ - "container", - [ - { - "name": "tick_steps", + "name": "action", "type": "varint" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" } ] ], - "packet_advancements": [ + "packet_trade_list": [ "container", [ { - "name": "reset", - "type": "bool" + "name": "windowId", + "type": "ContainerID" }, { - "name": "advancementMapping", + "name": "trades", "type": [ "array", { @@ -6752,119 +7054,99 @@ "container", [ { - "name": "key", - "type": "string" - }, - { - "name": "value", + "name": "inputItem1", "type": [ "container", [ { - "name": "parentId", - "type": [ - "option", - "string" - ] + "name": "itemId", + "type": "varint" }, { - "name": "displayData", - "type": [ - "option", - [ - "container", - [ - { - "name": "title", - "type": "anonymousNbt" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "icon", - "type": "Slot" - }, - { - "name": "frameType", - "type": "varint" - }, - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "backgroundTexture", - "type": [ - "switch", - { - "compareTo": "flags/has_background_texture", - "fields": { - "1": "string" - }, - "default": "void" - } - ] - }, - { - "name": "xCord", - "type": "f32" - }, - { - "name": "yCord", - "type": "f32" - } - ] - ] - ] + "name": "itemCount", + "type": "varint" }, { - "name": "requirements", + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "components", "type": [ "array", { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "count": "addedComponentCount", + "type": "SlotComponent" } ] - }, - { - "name": "sendsTelemtryData", - "type": "bool" } ] ] + }, + { + "name": "outputItem", + "type": "Slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "SlotComponent" + } + ] + } + ] + ] + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" } ] ] @@ -6872,7 +7154,77 @@ ] }, { - "name": "identifiers", + "name": "villagerLevel", + "type": "varint" + }, + { + "name": "experience", + "type": "varint" + }, + { + "name": "isRegularVillager", + "type": "bool" + }, + { + "name": "canRestock", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkZ", + "type": "i32" + }, + { + "name": "chunkX", + "type": "i32" + } + ] + ], + "packet_unlock_recipes": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "filteringSmeltable", + "type": "bool" + }, + { + "name": "blastFurnaceOpen", + "type": "bool" + }, + { + "name": "filteringBlastFurnace", + "type": "bool" + }, + { + "name": "smokerBookOpen", + "type": "bool" + }, + { + "name": "filteringSmoker", + "type": "bool" + }, + { + "name": "recipes1", "type": [ "array", { @@ -6882,550 +7234,411 @@ ] }, { - "name": "progressMapping", + "name": "recipes2", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "array", { - "name": "key", + "countType": "varint", "type": "string" - }, - { - "name": "value", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "criterionIdentifier", - "type": "string" - }, - { - "name": "criterionProgress", - "type": [ - "option", - "i64" - ] - } - ] - ] - } - ] } ] - ] + } } ] } ] ], - "packet_entity_update_attributes": [ + "packet_update_health": [ "container", [ { - "name": "entityId", + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" }, { - "name": "properties", + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_light": [ + "container", + [ + { + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" + }, + { + "name": "skyLightMask", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "generic.armor", - "1": "generic.armor_toughness", - "2": "generic.attack_damage", - "3": "generic.attack_knockback", - "4": "generic.attack_speed", - "5": "player.block_break_speed", - "6": "player.block_interaction_range", - "7": "player.entity_interaction_range", - "8": "generic.fall_damage_multiplier", - "9": "generic.flying_speed", - "10": "generic.follow_range", - "11": "generic.gravity", - "12": "generic.jump_strength", - "13": "generic.knockback_resistance", - "14": "generic.luck", - "15": "generic.max_absorption", - "16": "generic.max_health", - "17": "generic.movement_speed", - "18": "generic.safe_fall_distance", - "19": "generic.scale", - "20": "zombie.spawn_reinforcements", - "21": "generic.step_height" - } - } - ] - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "string" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "type": "i64" + } + ] + }, + { + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" } ] - } - ] - ], - "packet_entity_effect": [ - "container", - [ - { - "name": "entityId", - "type": "varint" }, { - "name": "effectId", - "type": "varint" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "amplifier", - "type": "varint" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "duration", - "type": "varint" + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] }, { - "name": "flags", - "type": "u8" - } - ] - ], - "packet_declare_recipes": [ - "container", - [ - { - "name": "recipes", + "name": "blockLight", "type": [ "array", { "countType": "varint", "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "minecraft:crafting_shaped", - "1": "minecraft:crafting_shapeless", - "2": "minecraft:crafting_special_armordye", - "3": "minecraft:crafting_special_bookcloning", - "4": "minecraft:crafting_special_mapcloning", - "5": "minecraft:crafting_special_mapextending", - "6": "minecraft:crafting_special_firework_rocket", - "7": "minecraft:crafting_special_firework_star", - "8": "minecraft:crafting_special_firework_star_fade", - "9": "minecraft:crafting_special_tippedarrow", - "10": "minecraft:crafting_special_bannerduplicate", - "11": "minecraft:crafting_special_shielddecoration", - "12": "minecraft:crafting_special_shulkerboxcoloring", - "13": "minecraft:crafting_special_suspiciousstew", - "14": "minecraft:crafting_special_repairitem", - "15": "minecraft:smelting", - "16": "minecraft:blasting", - "17": "minecraft:smoking", - "18": "minecraft:campfire_cooking", - "19": "minecraft:stonecutting", - "20": "minecraft:smithing_transform", - "21": "minecraft:smithing_trim", - "22": "minecraft:crafting_decorated_pot" - } - } - ] - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "Slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "category", - "type": "varint" - }, - { - "name": "gridWidth", - "type": "varint" - }, - { - "name": "gridHeight", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "gridWidth", - "type": [ - "array", - { - "count": "gridHeight", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "Slot" - }, - { - "name": "showNotification", - "type": "bool" - } - ] - ], - "minecraft:crafting_special_armordye": "minecraft_simple_recipe_format", - "minecraft:crafting_special_bookcloning": "minecraft_simple_recipe_format", - "minecraft:crafting_special_mapcloning": "minecraft_simple_recipe_format", - "minecraft:crafting_special_mapextending": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_rocket": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_star": "minecraft_simple_recipe_format", - "minecraft:crafting_special_firework_star_fade": "minecraft_simple_recipe_format", - "minecraft:crafting_special_repairitem": "minecraft_simple_recipe_format", - "minecraft:crafting_special_tippedarrow": "minecraft_simple_recipe_format", - "minecraft:crafting_special_bannerduplicate": "minecraft_simple_recipe_format", - "minecraft:crafting_special_banneraddpattern": "minecraft_simple_recipe_format", - "minecraft:crafting_special_shielddecoration": "minecraft_simple_recipe_format", - "minecraft:crafting_special_shulkerboxcoloring": "minecraft_simple_recipe_format", - "minecraft:crafting_special_suspiciousstew": "minecraft_simple_recipe_format", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "Slot" - } - ] - ], - "minecraft:smithing_transform": [ - "container", - [ - { - "name": "template", - "type": "ingredient" - }, - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "Slot" - } - ] - ], - "minecraft:smithing_trim": [ - "container", - [ - { - "name": "template", - "type": "ingredient" - }, - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - } - ] - ], - "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format" - } - } - ] - } - ] + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] } ] ], - "packet_tags": [ + "packet_update_time": [ "container", [ { - "name": "tags", + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_update_view_distance": [ + "container", + [ + { + "name": "viewDistance", + "type": "varint" + } + ] + ], + "packet_update_view_position": [ + "container", + [ + { + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "stateId", + "type": "varint" + }, + { + "name": "items", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] + "type": "Slot" } ] + }, + { + "name": "carriedItem", + "type": "Slot" } ] ], - "packet_set_projectile_power": [ + "packet_world_border_center": [ "container", [ { - "name": "id", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "accelerationPower", + "name": "z", "type": "f64" } ] ], - "packet": [ + "packet_world_border_lerp_size": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "spawn_entity_experience_orb", - "0x03": "animation", - "0x04": "statistics", - "0x05": "acknowledge_player_digging", - "0x06": "block_break_animation", - "0x07": "tile_entity_data", - "0x08": "block_action", - "0x09": "block_change", - "0x0a": "boss_bar", - "0x0b": "difficulty", - "0x0c": "chunk_batch_finished", - "0x0d": "chunk_batch_start", - "0x0e": "chunk_biomes", - "0x0f": "clear_titles", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "close_window", - "0x13": "window_items", - "0x14": "craft_progress_bar", - "0x15": "set_slot", - "0x16": "cookie_request", - "0x17": "set_cooldown", - "0x18": "chat_suggestions", - "0x19": "custom_payload", - "0x1a": "damage_event", - "0x1b": "debug_sample", - "0x1c": "hide_message", - "0x1d": "kick_disconnect", - "0x1e": "profileless_chat", - "0x1f": "entity_status", - "0x20": "explosion", - "0x21": "unload_chunk", - "0x22": "game_state_change", - "0x23": "open_horse_window", - "0x24": "hurt_animation", - "0x25": "initialize_world_border", - "0x26": "keep_alive", - "0x27": "map_chunk", - "0x28": "world_event", - "0x29": "world_particles", - "0x2a": "update_light", - "0x2b": "login", - "0x2c": "map", - "0x2d": "trade_list", - "0x2e": "rel_entity_move", - "0x2f": "entity_move_look", - "0x30": "entity_look", - "0x31": "vehicle_move", - "0x32": "open_book", - "0x33": "open_window", - "0x34": "open_sign_entity", - "0x35": "ping", - "0x36": "ping_response", - "0x37": "craft_recipe_response", - "0x38": "abilities", - "0x39": "player_chat", - "0x3a": "end_combat_event", - "0x3b": "enter_combat_event", - "0x3c": "death_combat_event", - "0x3d": "player_remove", - "0x3e": "player_info", - "0x3f": "face_player", - "0x40": "position", - "0x41": "unlock_recipes", - "0x42": "entity_destroy", - "0x43": "remove_entity_effect", - "0x44": "reset_score", - "0x45": "remove_resource_pack", - "0x46": "add_resource_pack", - "0x47": "respawn", - "0x48": "entity_head_rotation", - "0x49": "multi_block_change", - "0x4a": "select_advancement_tab", - "0x4b": "server_data", - "0x4c": "action_bar", - "0x4d": "world_border_center", - "0x4e": "world_border_lerp_size", - "0x4f": "world_border_size", - "0x50": "world_border_warning_delay", - "0x51": "world_border_warning_reach", - "0x52": "camera", - "0x53": "held_item_slot", - "0x54": "update_view_position", - "0x55": "update_view_distance", - "0x56": "spawn_position", - "0x57": "scoreboard_display_objective", - "0x58": "entity_metadata", - "0x59": "attach_entity", - "0x5a": "entity_velocity", - "0x5b": "entity_equipment", - "0x5c": "experience", - "0x5d": "update_health", - "0x5e": "scoreboard_objective", - "0x5f": "set_passengers", - "0x60": "teams", - "0x61": "scoreboard_score", - "0x62": "simulation_distance", - "0x63": "set_title_subtitle", - "0x64": "update_time", - "0x65": "set_title_text", - "0x66": "set_title_time", - "0x67": "entity_sound_effect", - "0x68": "sound_effect", - "0x69": "start_configuration", - "0x6a": "stop_sound", - "0x6b": "store_cookie", - "0x6c": "system_chat", - "0x6d": "playerlist_header", - "0x6e": "nbt_query_response", - "0x6f": "collect", - "0x70": "entity_teleport", - "0x71": "set_ticking_state", - "0x72": "step_tick", - "0x73": "transfer", - "0x74": "advancements", - "0x75": "entity_update_attributes", - "0x76": "entity_effect", - "0x77": "declare_recipes", - "0x78": "tags", - "0x79": "set_projectile_power", - "0x7a": "custom_report_details", - "0x7b": "server_links" - } + "name": "oldDiameter", + "type": "f64" + }, + { + "name": "newDiameter", + "type": "f64" + }, + { + "name": "speed", + "type": "varint" + } + ] + ], + "packet_world_border_size": [ + "container", + [ + { + "name": "diameter", + "type": "f64" + } + ] + ], + "packet_world_border_warning_delay": [ + "container", + [ + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_world_border_warning_reach": [ + "container", + [ + { + "name": "warningBlocks", + "type": "varint" + } + ] + ], + "packet_world_event": [ + "container", + [ + { + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" + } + ] + ], + "packet_world_particles": [ + "container", + [ + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "velocityOffset", + "type": "f32" + }, + { + "name": "amount", + "type": "i32" + }, + { + "name": "particle", + "type": "Particle" + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "message_acknowledgement", + "0x04": "chat_command", + "0x05": "chat_command_signed", + "0x06": "chat_message", + "0x07": "chat_session_update", + "0x08": "chunk_batch_received", + "0x09": "client_command", + "0x0a": "settings", + "0x0b": "tab_complete", + "0x0c": "configuration_acknowledged", + "0x0d": "enchant_item", + "0x0e": "window_click", + "0x0f": "close_window", + "0x10": "set_slot_state", + "0x11": "cookie_response", + "0x12": "custom_payload", + "0x13": "debug_sample_subscription", + "0x14": "edit_book", + "0x15": "query_entity_nbt", + "0x16": "use_entity", + "0x17": "generate_structure", + "0x18": "keep_alive", + "0x19": "lock_difficulty", + "0x1a": "position", + "0x1b": "position_look", + "0x1c": "look", + "0x1d": "flying", + "0x1e": "vehicle_move", + "0x1f": "steer_boat", + "0x20": "pick_item", + "0x21": "ping_request", + "0x22": "craft_recipe_request", + "0x23": "abilities", + "0x24": "block_dig", + "0x25": "entity_action", + "0x26": "steer_vehicle", + "0x27": "pong", + "0x28": "recipe_book", + "0x29": "displayed_recipe", + "0x2a": "name_item", + "0x2b": "resource_pack_receive", + "0x2c": "advancement_tab", + "0x2d": "select_trade", + "0x2e": "set_beacon_effect", + "0x2f": "held_item_slot", + "0x30": "update_command_block", + "0x31": "update_command_block_minecart", + "0x32": "set_creative_slot", + "0x33": "update_jigsaw_block", + "0x34": "update_structure_block", + "0x35": "update_sign", + "0x36": "arm_animation", + "0x37": "spectate", + "0x38": "block_place", + "0x39": "use_item" + }, + "type": "varint" } ] }, @@ -7436,176 +7649,164 @@ { "compareTo": "name", "fields": { - "bundle_delimiter": "void", - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "animation": "packet_animation", - "statistics": "packet_statistics", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "chunk_batch_finished": "packet_chunk_batch_finished", - "chunk_batch_start": "packet_chunk_batch_start", - "chunk_biomes": "packet_chunk_biomes", - "clear_titles": "packet_clear_titles", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat_command": "packet_chat_command", + "chat_command_signed": "packet_chat_command_signed", + "chat_message": "packet_chat_message", + "chat_session_update": "packet_chat_session_update", + "chunk_batch_received": "packet_chunk_batch_received", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "cookie_request": "packet_common_cookie_request", - "set_cooldown": "packet_set_cooldown", - "chat_suggestions": "packet_chat_suggestions", + "configuration_acknowledged": "packet_configuration_acknowledged", + "cookie_response": "packet_common_cookie_response", + "craft_recipe_request": "packet_craft_recipe_request", "custom_payload": "packet_custom_payload", - "damage_event": "packet_damage_event", - "debug_sample": "packet_debug_sample", - "hide_message": "packet_hide_message", - "kick_disconnect": "packet_kick_disconnect", - "profileless_chat": "packet_profileless_chat", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "hurt_animation": "packet_hurt_animation", - "initialize_world_border": "packet_initialize_world_border", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_window": "packet_open_window", - "open_sign_entity": "packet_open_sign_entity", - "ping": "packet_ping", - "ping_response": "packet_ping_response", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "player_chat": "packet_player_chat", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_remove": "packet_player_remove", - "player_info": "packet_player_info", - "face_player": "packet_face_player", - "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "reset_score": "packet_reset_score", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "respawn": "packet_respawn", - "entity_head_rotation": "packet_entity_head_rotation", - "multi_block_change": "packet_multi_block_change", - "select_advancement_tab": "packet_select_advancement_tab", - "server_data": "packet_server_data", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "camera": "packet_camera", + "debug_sample_subscription": "packet_debug_sample_subscription", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "spawn_position": "packet_spawn_position", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "set_title_subtitle": "packet_set_title_subtitle", - "update_time": "packet_update_time", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time", - "entity_sound_effect": "packet_entity_sound_effect", - "sound_effect": "packet_sound_effect", - "start_configuration": "packet_start_configuration", - "stop_sound": "packet_stop_sound", - "store_cookie": "packet_common_store_cookie", - "system_chat": "packet_system_chat", - "playerlist_header": "packet_playerlist_header", - "nbt_query_response": "packet_nbt_query_response", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "set_ticking_state": "packet_set_ticking_state", - "step_tick": "packet_step_tick", - "transfer": "packet_common_transfer", - "advancements": "packet_advancements", - "entity_update_attributes": "packet_entity_update_attributes", - "entity_effect": "packet_entity_effect", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "set_projectile_power": "packet_set_projectile_power", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links" + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "message_acknowledgement": "packet_message_acknowledgement", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "ping_request": "packet_ping_request", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "set_slot_state": "packet_set_slot_state", + "settings": "packet_common_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_set_difficulty": [ + "packet_arm_animation": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "hand", + "type": "varint" } ] ], - "packet_message_acknowledgement": [ + "packet_block_dig": [ "container", [ { - "name": "count", + "name": "status", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" + }, + { + "name": "sequence", + "type": "varint" + } + ] + ], + "packet_block_place": [ + "container", + [ + { + "name": "hand", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "varint" + }, + { + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" + }, + { + "name": "sequence", "type": "varint" } ] @@ -7738,103 +7939,22 @@ "type": "ByteArray" } ] - ], - "packet_chunk_batch_received": [ - "container", - [ - { - "name": "chunksPerTick", - "type": "f32" - } - ] - ], - "packet_client_command": [ - "container", - [ - { - "name": "actionId", - "type": "varint" - } - ] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "text", - "type": "string" - } - ] - ], - "packet_configuration_acknowledged": [ - "container", - [] - ], - "packet_enchant_item": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "enchantment", - "type": "varint" - } - ] - ], - "packet_window_click": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] - }, + ], + "packet_chunk_batch_received": [ + "container", + [ { - "name": "cursorItem", - "type": "Slot" + "name": "chunksPerTick", + "type": "f32" + } + ] + ], + "packet_client_command": [ + "container", + [ + { + "name": "actionId", + "type": "varint" } ] ], @@ -7847,19 +7967,23 @@ } ] ], - "packet_set_slot_state": [ + "packet_configuration_acknowledged": [ + "container", + [] + ], + "packet_craft_recipe_request": [ "container", [ { - "name": "slot_id", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "window_id", - "type": "varint" + "name": "recipe", + "type": "string" }, { - "name": "state", + "name": "makeAll", "type": "bool" } ] @@ -7886,6 +8010,15 @@ } ] ], + "packet_displayed_recipe": [ + "container", + [ + { + "name": "recipeId", + "type": "string" + } + ] + ], "packet_edit_book": [ "container", [ @@ -7912,85 +8045,41 @@ } ] ], - "packet_query_entity_nbt": [ + "packet_enchant_item": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "entityId", + "name": "enchantment", "type": "varint" } ] ], - "packet_use_entity": [ + "packet_entity_action": [ "container", [ { - "name": "target", + "name": "entityId", "type": "varint" }, { - "name": "mouse", + "name": "actionId", "type": "varint" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { - "name": "sneaking", + "name": "onGround", "type": "bool" } ] @@ -8012,70 +8101,29 @@ } ] ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_lock_difficulty": [ + "packet_held_item_slot": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "slotId", + "type": "i16" } ] ], - "packet_position": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "onGround", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_position_look": [ + "packet_lock_difficulty": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", + "name": "locked", "type": "bool" } ] @@ -8097,265 +8145,282 @@ } ] ], - "packet_flying": [ + "packet_message_acknowledgement": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "count", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_name_item": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "name", + "type": "string" } ] ], - "packet_steer_boat": [ + "packet_pick_item": [ "container", [ { - "name": "leftPaddle", - "type": "bool" - }, - { - "name": "rightPaddle", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], - "packet_pick_item": [ + "packet_ping_request": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "id", + "type": "i64" } ] ], - "packet_ping_request": [ + "packet_pong": [ "container", [ { "name": "id", - "type": "i64" + "type": "i32" } ] ], - "packet_craft_recipe_request": [ + "packet_position": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "x", + "type": "f64" }, { - "name": "recipe", - "type": "string" + "name": "y", + "type": "f64" }, { - "name": "makeAll", + "name": "z", + "type": "f64" + }, + { + "name": "onGround", "type": "bool" } ] ], - "packet_abilities": [ + "packet_position_look": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_block_dig": [ + "packet_query_block_nbt": [ "container", [ { - "name": "status", + "name": "transactionId", "type": "varint" }, { "name": "location", "type": "position" - }, + } + ] + ], + "packet_query_entity_nbt": [ + "container", + [ { - "name": "face", - "type": "i8" + "name": "transactionId", + "type": "varint" }, { - "name": "sequence", + "name": "entityId", "type": "varint" } ] ], - "packet_entity_action": [ + "packet_recipe_book": [ "container", [ { - "name": "entityId", + "name": "bookId", "type": "varint" }, { - "name": "actionId", - "type": "varint" + "name": "bookOpen", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "filterActive", + "type": "bool" } ] ], - "packet_steer_vehicle": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "sideways", - "type": "f32" - }, - { - "name": "forward", - "type": "f32" + "name": "uuid", + "type": "UUID" }, { - "name": "jump", - "type": "u8" + "name": "result", + "type": "varint" } ] ], - "packet_pong": [ + "packet_select_trade": [ "container", [ { - "name": "id", - "type": "i32" + "name": "slot", + "type": "varint" } ] ], - "packet_recipe_book": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "bookId", - "type": "varint" - }, - { - "name": "bookOpen", - "type": "bool" + "name": "primary_effect", + "type": [ + "option", + "varint" + ] }, { - "name": "filterActive", - "type": "bool" + "name": "secondary_effect", + "type": [ + "option", + "varint" + ] } ] ], - "packet_displayed_recipe": [ + "packet_set_creative_slot": [ "container", [ { - "name": "recipeId", - "type": "string" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" } ] ], - "packet_name_item": [ + "packet_set_difficulty": [ "container", [ { - "name": "name", - "type": "string" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_resource_pack_receive": [ + "packet_set_slot_state": [ "container", [ { - "name": "uuid", - "type": "UUID" + "name": "slot_id", + "type": "varint" }, { - "name": "result", + "name": "window_id", "type": "varint" + }, + { + "name": "state", + "type": "bool" } ] ], - "packet_advancement_tab": [ + "packet_spectate": [ "container", [ { - "name": "action", - "type": "varint" + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ + { + "name": "leftPaddle", + "type": "bool" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "rightPaddle", + "type": "bool" } ] ], - "packet_select_trade": [ + "packet_steer_vehicle": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "sideways", + "type": "f32" + }, + { + "name": "forward", + "type": "f32" + }, + { + "name": "jump", + "type": "u8" } ] ], - "packet_set_beacon_effect": [ + "packet_tab_complete": [ "container", [ { - "name": "primary_effect", - "type": [ - "option", - "varint" - ] + "name": "transactionId", + "type": "varint" }, { - "name": "secondary_effect", - "type": [ - "option", - "varint" - ] + "name": "text", + "type": "string" } ] ], - "packet_held_item_slot": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "teleportId", + "type": "varint" } ] ], @@ -8397,19 +8462,6 @@ } ] ], - "packet_set_creative_slot": [ - "container", - [ - { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" - } - ] - ], "packet_update_jigsaw_block": [ "container", [ @@ -8447,6 +8499,35 @@ } ] ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], "packet_update_structure_block": [ "container", [ @@ -8512,91 +8593,77 @@ }, { "name": "flags", - "type": "u8" - } - ] - ], - "packet_update_sign": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "isFrontText", - "type": "bool" - }, - { - "name": "text1", - "type": "string" - }, - { - "name": "text2", - "type": "string" - }, - { - "name": "text3", - "type": "string" - }, - { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ - { - "name": "hand", - "type": "varint" - } - ] - ], - "packet_spectate": [ - "container", - [ - { - "name": "target", - "type": "UUID" + "type": "u8" } ] ], - "packet_block_place": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "cursorX", - "type": "f32" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "insideBlock", - "type": "bool" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "sequence", - "type": "varint" + "name": "sneaking", + "type": "bool" } ] ], @@ -8617,146 +8684,79 @@ } ] ], - "packet": [ + "packet_vehicle_move": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "message_acknowledgement", - "0x04": "chat_command", - "0x05": "chat_command_signed", - "0x06": "chat_message", - "0x07": "chat_session_update", - "0x08": "chunk_batch_received", - "0x09": "client_command", - "0x0a": "settings", - "0x0b": "tab_complete", - "0x0c": "configuration_acknowledged", - "0x0d": "enchant_item", - "0x0e": "window_click", - "0x0f": "close_window", - "0x10": "set_slot_state", - "0x11": "cookie_response", - "0x12": "custom_payload", - "0x13": "debug_sample_subscription", - "0x14": "edit_book", - "0x15": "query_entity_nbt", - "0x16": "use_entity", - "0x17": "generate_structure", - "0x18": "keep_alive", - "0x19": "lock_difficulty", - "0x1a": "position", - "0x1b": "position_look", - "0x1c": "look", - "0x1d": "flying", - "0x1e": "vehicle_move", - "0x1f": "steer_boat", - "0x20": "pick_item", - "0x21": "ping_request", - "0x22": "craft_recipe_request", - "0x23": "abilities", - "0x24": "block_dig", - "0x25": "entity_action", - "0x26": "steer_vehicle", - "0x27": "pong", - "0x28": "recipe_book", - "0x29": "displayed_recipe", - "0x2a": "name_item", - "0x2b": "resource_pack_receive", - "0x2c": "advancement_tab", - "0x2d": "select_trade", - "0x2e": "set_beacon_effect", - "0x2f": "held_item_slot", - "0x30": "update_command_block", - "0x31": "update_command_block_minecart", - "0x32": "set_creative_slot", - "0x33": "update_jigsaw_block", - "0x34": "update_structure_block", - "0x35": "update_sign", - "0x36": "arm_animation", - "0x37": "spectate", - "0x38": "block_place", - "0x39": "use_item" - } - } - ] + "name": "x", + "type": "f64" }, { - "name": "params", + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + } + ] + ], + "packet_window_click": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "stateId", + "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "message_acknowledgement": "packet_message_acknowledgement", - "chat_command": "packet_chat_command", - "chat_command_signed": "packet_chat_command_signed", - "chat_message": "packet_chat_message", - "chat_session_update": "packet_chat_session_update", - "chunk_batch_received": "packet_chunk_batch_received", - "client_command": "packet_client_command", - "settings": "packet_common_settings", - "tab_complete": "packet_tab_complete", - "configuration_acknowledged": "packet_configuration_acknowledged", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "set_slot_state": "packet_set_slot_state", - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "debug_sample_subscription": "packet_debug_sample_subscription", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "pick_item": "packet_pick_item", - "ping_request": "packet_ping_request", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "pong": "packet_pong", - "recipe_book": "packet_recipe_book", - "displayed_recipe": "packet_displayed_recipe", - "name_item": "packet_name_item", - "resource_pack_receive": "packet_resource_pack_receive", - "advancement_tab": "packet_advancement_tab", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "held_item_slot": "packet_held_item_slot", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_structure_block": "packet_update_structure_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" + } + ] + ] } ] + }, + { + "name": "cursorItem", + "type": "Slot" } ] ] diff --git a/data/pc/1.21.11/protocol.json b/data/pc/1.21.11/protocol.json index ede0c3840..b98aa9a74 100644 --- a/data/pc/1.21.11/protocol.json +++ b/data/pc/1.21.11/protocol.json @@ -1,2412 +1,1444 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "anonymousNbt": "native", - "anonOptionalNbt": "native", - "registryEntryHolder": "native", - "registryEntryHolderSet": "native", - "lpVec3": "native", - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec2f": [ + "ArmorTrimMaterial": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetBase", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "overrideArmorAssets", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + }, + { + "name": "description", + "type": "anonymousNbt" } ] ], - "vec3f": [ + "ArmorTrimPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "description", + "type": "anonymousNbt" }, { - "name": "z", - "type": "f32" + "name": "decal", + "type": "bool" } ] ], - "vec4f": [ + "BannerPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" - }, + "name": "translationKey", + "type": "string" + } + ] + ], + "BannerPatternLayer": [ + "container", + [ { - "name": "z", - "type": "f32" + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "BannerPattern" + } + } + ] }, { - "name": "w", - "type": "f32" + "name": "colorId", + "type": "varint" } ] ], - "vec3f64": [ + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "ContainerID": "varint", + "DamageTypeData": [ "container", [ { - "name": "x", - "type": "f64" + "name": "msgId", + "type": "string" }, { - "name": "y", - "type": "f64" + "name": "scaling", + "type": [ + "mapper", + { + "mappings": { + "0": "never", + "1": "when_caused_by_living_non_player", + "2": "always" + }, + "type": "varint" + } + ] }, { - "name": "z", - "type": "f64" + "name": "exhaustion", + "type": "f32" + }, + { + "name": "effects", + "type": [ + "mapper", + { + "mappings": { + "0": "hurt", + "1": "thorns", + "2": "drowning", + "3": "burning", + "4": "poking", + "5": "freezing" + }, + "type": "varint" + } + ] + }, + { + "name": "deathMessageType", + "type": [ + "mapper", + { + "mappings": { + "0": "default", + "1": "fall_variants", + "2": "intentional_game_design" + }, + "type": "varint" + } + ] } ] ], - "vec3i": [ + "DataComponentMatchers": [ "container", [ { - "name": "x", - "type": "varint" - }, - { - "name": "y", - "type": "varint" + "name": "exactMatchers", + "type": "ExactComponentMatcher" }, { - "name": "z", - "type": "varint" + "name": "partialMatchers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "vec3i32": [ + "DebugStructureInfo": [ "container", [ { - "name": "x", - "type": "i32" + "name": "boundingBoxMin", + "type": "position" }, { - "name": "y", - "type": "i32" + "name": "boundingBoxMax", + "type": "position" }, { - "name": "z", - "type": "i32" + "name": "pieces", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "boundingBoxMin", + "type": "position" + }, + { + "name": "boundingBoxMax", + "type": "position" + }, + { + "name": "isStart", + "type": "bool" + } + ] + ] + } + ] } ] ], - "IDSet": [ - "registryEntryHolderSet", + "DebugSubscriptionDataType": [ + "mapper", { - "base": { - "name": "name", - "type": "string" - }, - "otherwise": { - "name": "ids", - "type": "varint" - } - } - ], - "ContainerID": "varint", - "SlotComponentType": [ - "mapper", - { - "type": "varint", "mappings": { - "0": "custom_data", - "1": "max_stack_size", - "2": "max_damage", - "3": "damage", - "4": "unbreakable", - "5": "use_effects", - "6": "custom_name", - "7": "minimum_attack_charge", - "8": "damage_type", - "9": "item_name", - "10": "item_model", - "11": "lore", - "12": "rarity", - "13": "enchantments", - "14": "can_place_on", - "15": "can_break", - "16": "attribute_modifiers", - "17": "custom_model_data", - "18": "tooltip_display", - "19": "repair_cost", - "20": "creative_slot_lock", - "21": "enchantment_glint_override", - "22": "intangible_projectile", - "23": "food", - "24": "consumable", - "25": "use_remainder", - "26": "use_cooldown", - "27": "damage_resistant", - "28": "tool", - "29": "weapon", - "30": "attack_range", - "31": "enchantable", - "32": "equippable", - "33": "repairable", - "34": "glider", - "35": "tooltip_style", - "36": "death_protection", - "37": "blocks_attacks", - "38": "piercing_weapon", - "39": "kinetic_weapon", - "40": "swing_animation", - "41": "stored_enchantments", - "42": "dyed_color", - "43": "map_color", - "44": "map_id", - "45": "map_decorations", - "46": "map_post_processing", - "47": "charged_projectiles", - "48": "bundle_contents", - "49": "potion_contents", - "50": "potion_duration_scale", - "51": "suspicious_stew_effects", - "52": "writable_book_content", - "53": "written_book_content", - "54": "trim", - "55": "debug_stick_state", - "56": "entity_data", - "57": "bucket_entity_data", - "58": "block_entity_data", - "59": "instrument", - "60": "provides_trim_material", - "61": "ominous_bottle_amplifier", - "62": "jukebox_playable", - "63": "provides_banner_patterns", - "64": "recipes", - "65": "lodestone_tracker", - "66": "firework_explosion", - "67": "fireworks", - "68": "profile", - "69": "note_block_sound", - "70": "banner_patterns", - "71": "base_color", - "72": "pot_decorations", - "73": "container", - "74": "block_state", - "75": "bees", - "76": "lock", - "77": "container_loot", - "78": "break_sound", - "79": "villager/variant", - "80": "wolf/variant", - "81": "wolf/sound_variant", - "82": "wolf/collar", - "83": "fox/variant", - "84": "salmon/size", - "85": "parrot/variant", - "86": "tropical_fish/pattern", - "87": "tropical_fish/base_color", - "88": "tropical_fish/pattern_color", - "89": "mooshroom/variant", - "90": "rabbit/variant", - "91": "pig/variant", - "92": "cow/variant", - "93": "chicken/variant", - "94": "zombie_nautilus/variant", - "95": "frog/variant", - "96": "horse/variant", - "97": "painting/variant", - "98": "llama/variant", - "99": "axolotl/variant", - "100": "cat/variant", - "101": "cat/collar", - "102": "sheep/color", - "103": "shulker/color" - } + "0": "DedicatedServerTickTime", + "1": "Bees", + "2": "Brains", + "3": "Breezes", + "4": "GoalSelectors", + "5": "EntityPaths", + "6": "EntityBlockIntersections", + "7": "BeeHives", + "8": "Pois", + "9": "RedstoneWireOrientations", + "10": "VillageSections", + "11": "Raids", + "12": "Structures", + "13": "GameEventListeners", + "14": "NeighborUpdates", + "15": "GameEvents" + }, + "type": "varint" } ], - "SlotComponent": [ + "DebugSubscriptionEvent": [ "container", [ { "name": "type", - "type": "SlotComponentType" + "type": "DebugSubscriptionDataType" }, { - "name": "data", + "name": "value", "type": [ "switch", { "compareTo": "type", "fields": { - "custom_data": "anonymousNbt", - "max_stack_size": "varint", - "max_damage": "varint", - "damage": "varint", - "unbreakable": "void", - "use_effects": [ + "BeeHives": [ "container", [ { - "name": "can_sprint", - "type": "bool" + "name": "type", + "type": "varint" }, { - "name": "interact_vibrations", - "type": "bool" + "name": "occupantCount", + "type": "varint" }, { - "name": "speed_multiplier", - "type": "f32" + "name": "honeyLevel", + "type": "varint" + }, + { + "name": "sedated", + "type": "bool" } ] ], - "custom_name": "anonymousNbt", - "minimum_attack_charge": "f32", - "damage_type": [ + "Bees": [ "container", [ { - "name": "hasHolder", - "type": "bool" + "name": "hivePos", + "type": [ + "option", + "position" + ] }, { - "name": "damageType", + "name": "flowerPos", "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "damageTypeId", - "otherwise": { - "name": "data", - "type": "DamageTypeData" - } - } - ], - "false": "string" - } - } + "option", + "position" ] - } - ] - ], - "item_name": "anonymousNbt", - "item_model": "string", - "lore": [ - "array", - { - "countType": "varint", - "type": "anonymousNbt" - } - ], - "rarity": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "common", - "1": "uncommon", - "2": "rare", - "3": "epic" - } - } - ], - "enchantments": [ - "container", - [ + }, { - "name": "enchantments", + "name": "travelTicks", + "type": "varint" + }, + { + "name": "blacklistedHives", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] + "type": "position" } ] } ] ], - "stored_enchantments": [ + "Brains": [ "container", [ { - "name": "enchantments", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "can_place_on": [ - "container", - [ + "name": "name", + "type": "string" + }, { - "name": "predicates", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBlockPredicate" - } - ] - } - ] - ], - "can_break": [ - "container", - [ + "name": "profession", + "type": "string" + }, { - "name": "predicates", + "name": "xp", + "type": "i32" + }, + { + "name": "health", + "type": "f32" + }, + { + "name": "maxHealth", + "type": "f32" + }, + { + "name": "inventory", + "type": "string" + }, + { + "name": "wantsGolem", + "type": "bool" + }, + { + "name": "angerLevel", + "type": "i32" + }, + { + "name": "activities", "type": [ "array", { "countType": "varint", - "type": "ItemBlockPredicate" + "type": "string" } ] - } - ] - ], - "attribute_modifiers": [ - "container", - [ + }, { - "name": "attributes", + "name": "behaviors", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "typeId", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "operation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "add", - "1": "multiply_base", - "2": "multiply_total" - } - } - ] - }, - { - "name": "slot", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "any", - "1": "main_hand", - "2": "off_hand", - "3": "hand", - "4": "feet", - "5": "legs", - "6": "chest", - "7": "head", - "8": "armor", - "9": "body", - "10": "saddle" - } - } - ] - } - ] - ] + "type": "string" } ] }, { - "name": "display", - "type": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "default", - "1": "hidden", - "2": "override" - } - } - ] - }, - { - "name": "component", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "override": "anonymousNbt" - } - } - ] - } - ] - ] - } - ] - ], - "custom_model_data": [ - "container", - [ - { - "name": "floats", + "name": "memories", "type": [ "array", { "countType": "varint", - "type": "f32" + "type": "string" } ] }, { - "name": "flags", + "name": "gossips", "type": [ "array", { "countType": "varint", - "type": "bool" + "type": "string" } ] }, { - "name": "strings", + "name": "pois", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "position" } ] }, { - "name": "colors", + "name": "potentialPois", "type": [ "array", { "countType": "varint", - "type": "i32" + "type": "position" } ] } ] ], - "tooltip_display": [ + "Breezes": [ "container", [ { - "name": "hideTooltip", - "type": "bool" + "name": "attackTarget", + "type": [ + "option", + "varint" + ] }, { - "name": "hiddenComponents", + "name": "jumpTarget", "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } + "option", + "position" ] } ] ], - "repair_cost": "varint", - "creative_slot_lock": "void", - "enchantment_glint_override": "bool", - "intangible_projectile": "void", - "blocks_attacks": [ + "DedicatedServerTickTime": "void", + "EntityBlockIntersections": [ "container", [ { - "name": "blockDelaySeconds", - "type": "f32" + "name": "id", + "type": "varint" + } + ] + ], + "EntityPaths": [ + "container", + [ + { + "name": "path", + "type": "Path" }, { - "name": "disableCooldownScale", + "name": "maxNodeDistance", "type": "f32" - }, + } + ] + ], + "GameEventListeners": [ + "container", + [ { - "name": "damageReductions", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalBlockingAngle", - "type": "f32" - }, - { - "name": "type", - "type": [ - "option", - "IDSet" - ] - }, - { - "name": "base", - "type": "f32" - }, - { - "name": "factor", - "type": "f32" - } - ] - ] - } - ] + "name": "listenerRadius", + "type": "varint" + } + ] + ], + "GameEvents": [ + "container", + [ + { + "name": "event", + "type": "varint" }, { - "name": "itemDamage", - "type": [ - "container", - [ - { - "name": "threshold", - "type": "f32" - }, - { - "name": "base", - "type": "f32" - }, - { - "name": "factor", - "type": "f32" - } - ] - ] - }, - { - "name": "bypassedBy", - "type": [ - "option", - "string" - ] - }, - { - "name": "blockSound", - "type": [ - "option", - "ItemSoundHolder" - ] - }, - { - "name": "disableSound", - "type": [ - "option", - "ItemSoundHolder" - ] + "name": "pos", + "type": "vec3f64" } ] ], - "food": [ + "GoalSelectors": [ "container", [ { - "name": "nutrition", + "name": "priority", "type": "varint" }, { - "name": "saturationModifier", - "type": "f32" + "name": "running", + "type": "bool" }, { - "name": "canAlwaysEat", - "type": "bool" + "name": "name", + "type": "string" } ] ], - "consumable": [ + "NeighborUpdates": [ "container", [ { - "name": "consume_seconds", - "type": "f32" - }, - { - "name": "animation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "none", - "1": "eat", - "2": "drink", - "3": "block", - "4": "bow", - "5": "spear", - "6": "crossbow", - "7": "spyglass", - "8": "toot_horn", - "9": "brush", - "10": "bundle" - } - } - ] - }, - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "makes_particles", - "type": "bool" - }, - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemConsumeEffect" - } - ] + "name": "pos", + "type": "position" } ] ], - "use_remainder": "Slot", - "use_cooldown": [ + "Pois": [ "container", [ { - "name": "seconds", - "type": "f32" + "name": "pos", + "type": "position" }, { - "name": "cooldownGroup", - "type": [ - "option", - "string" - ] + "name": "poiType", + "type": "varint" + }, + { + "name": "freeTicketCount", + "type": "varint" } ] ], - "damage_resistant": "string", - "tool": [ + "Raids": [ "container", [ { - "name": "rules", + "name": "positions", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "blocks", - "type": "IDSet" - }, - { - "name": "speed", - "type": [ - "option", - "f32" - ] - }, - { - "name": "correctDropForBlocks", - "type": [ - "option", - "bool" - ] - } - ] - ] + "type": "position" } ] - }, - { - "name": "defaultMiningSpeed", - "type": "f32" - }, - { - "name": "damagePerBlock", - "type": "varint" - }, - { - "name": "canDestroyBlocksInCreative", - "type": "bool" } ] ], - "weapon": [ + "RedstoneWireOrientations": [ "container", [ { - "name": "itemDamagePerAttack", + "name": "index", "type": "varint" - }, - { - "name": "disableBlockingForSeconds", - "type": "f32" - } - ] - ], - "attack_range": [ - "container", - [ - { - "name": "minRange", - "type": "f32" - }, - { - "name": "maxRange", - "type": "f32" - }, - { - "name": "minCreativeRange", - "type": "f32" - }, - { - "name": "maxCreativeRange", - "type": "f32" - }, - { - "name": "hitboxMargin", - "type": "f32" - }, - { - "name": "mobFactor", - "type": "f32" } ] ], - "enchantable": "varint", - "equippable": [ + "Structures": [ "container", [ { - "name": "slot", + "name": "structures", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0": "main_hand", - "1": "off_hand", - "2": "feet", - "3": "legs", - "4": "chest", - "5": "head", - "6": "body", - "7": "saddle" - } + "countType": "varint", + "type": "DebugStructureInfo" } ] - }, - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "model", - "type": [ - "option", - "string" - ] - }, - { - "name": "cameraOverlay", - "type": [ - "option", - "string" - ] - }, - { - "name": "allowedEntities", - "type": [ - "option", - "IDSet" - ] - }, - { - "name": "dispensable", - "type": "bool" - }, - { - "name": "swappable", - "type": "bool" - }, - { - "name": "damageable", - "type": "bool" - }, - { - "name": "equipOnInteract", - "type": "bool" - }, - { - "name": "shearable", - "type": "bool" - }, - { - "name": "shearingSound", - "type": "ItemSoundHolder" - } - ] - ], - "repairable": [ - "container", - [ - { - "name": "items", - "type": "IDSet" - } - ] - ], - "glider": "void", - "tooltip_style": "string", - "death_protection": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemConsumeEffect" - } - ] - } - ] - ], - "piercing_weapon": [ - "container", - [ - { - "name": "dealsKnockback", - "type": "bool" - }, - { - "name": "dismounts", - "type": "bool" - }, - { - "name": "sound", - "type": [ - "option", - "ItemSoundHolder" - ] - }, - { - "name": "hitSound", - "type": [ - "option", - "ItemSoundHolder" - ] - } - ] - ], - "kinetic_weapon": [ - "container", - [ - { - "name": "contactCooldownTicks", - "type": "varint" - }, - { - "name": "delayTicks", - "type": "varint" - }, - { - "name": "dismountConditions", - "type": [ - "option", - "KineticWeaponCondition" - ] - }, - { - "name": "knockbackConditions", - "type": [ - "option", - "KineticWeaponCondition" - ] - }, - { - "name": "damageConditions", - "type": [ - "option", - "KineticWeaponCondition" - ] - }, - { - "name": "forwardMovement", - "type": "f32" - }, - { - "name": "damageMultiplier", - "type": "f32" - }, - { - "name": "sound", - "type": [ - "option", - "ItemSoundHolder" - ] - }, - { - "name": "hitSound", - "type": [ - "option", - "ItemSoundHolder" - ] - } - ] - ], - "swing_animation": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "none", - "1": "whack", - "2": "stab" - } - } - ] - }, - { - "name": "duration", - "type": "varint" - } - ] - ], - "dyed_color": "i32", - "map_color": "i32", - "map_id": "varint", - "map_decorations": "anonymousNbt", - "map_post_processing": "varint", - "potion_duration_scale": "f32", - "charged_projectiles": [ - "container", - [ - { - "name": "projectiles", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "bundle_contents": [ - "container", - [ - { - "name": "contents", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "potion_contents": [ - "container", - [ - { - "name": "potionId", - "type": [ - "option", - "varint" - ] - }, - { - "name": "customColor", - "type": [ - "option", - "i32" - ] - }, - { - "name": "customEffects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemPotionEffect" - } - ] - }, - { - "name": "customName", - "type": [ - "option", - "string" - ] } ] ], - "suspicious_stew_effects": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", + "VillageSections": "void" + } + } + ] + } + ] + ], + "DebugSubscriptionUpdate": [ + "container", + [ + { + "name": "type", + "type": "DebugSubscriptionDataType" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "default": [ + "container", + [ + { + "name": "payload", + "type": [ + "option", + [ + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "effect", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "writable_book_content": [ - "container", - [ - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBookPage" - } - ] - } - ] - ], - "written_book_content": [ - "container", - [ - { - "name": "rawTitle", - "type": "string" - }, - { - "name": "filteredTitle", - "type": [ - "option", - "string" - ] - }, - { - "name": "author", - "type": "string" - }, - { - "name": "generation", - "type": "varint" - }, - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemWrittenBookPage" - } - ] - }, - { - "name": "resolved", - "type": "bool" - } - ] - ], - "trim": [ - "container", - [ - { - "name": "material", - "type": [ - "registryEntryHolder", - { - "baseName": "materialId", - "otherwise": { - "name": "data", - "type": "ArmorTrimMaterial" - } - } - ] - }, - { - "name": "pattern", - "type": [ - "registryEntryHolder", - { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "ArmorTrimPattern" - } - } - ] - } - ] - ], - "debug_stick_state": "anonymousNbt", - "entity_data": [ - "container", - [ - { - "name": "type", - "type": "varint" - }, - { - "name": "data", - "type": "anonymousNbt" - } - ] - ], - "block_entity_data": [ - "container", - [ - { - "name": "type", - "type": "varint" - }, - { - "name": "data", - "type": "anonymousNbt" - } - ] - ], - "bucket_entity_data": "anonymousNbt", - "instrument": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "instrumentId", - "otherwise": { - "name": "data", - "type": "InstrumentData" - } - } - ], - "false": "string" - } - } - ] - } - ] - ], - "provides_trim_material": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "material", - "type": [ - "switch", - { - "compareTo": "hasHolder", + "compareTo": "type", "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "materialId", - "otherwise": { - "name": "data", - "type": "ArmorTrimMaterial" + "BeeHives": [ + "container", + [ + { + "name": "type", + "type": "varint" + }, + { + "name": "occupantCount", + "type": "varint" + }, + { + "name": "honeyLevel", + "type": "varint" + }, + { + "name": "sedated", + "type": "bool" } - } + ] ], - "false": "string" - } - } - ] - } - ] - ], - "ominous_bottle_amplifier": "varint", - "jukebox_playable": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "song", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "songId", - "otherwise": { - "name": "data", - "type": "JukeboxSongData" + "Bees": [ + "container", + [ + { + "name": "hivePos", + "type": [ + "option", + "position" + ] + }, + { + "name": "flowerPos", + "type": [ + "option", + "position" + ] + }, + { + "name": "travelTicks", + "type": "varint" + }, + { + "name": "blacklistedHives", + "type": [ + "array", + { + "countType": "varint", + "type": "position" + } + ] } - } + ] ], - "false": "string" - } - } - ] - } - ] - ], - "provides_banner_patterns": "string", - "recipes": "anonymousNbt", - "lodestone_tracker": [ - "container", - [ - { - "name": "globalPosition", - "type": [ - "option", - "GlobalPos" - ] - }, - { - "name": "tracked", - "type": "bool" - } - ] - ], - "firework_explosion": "ItemFireworkExplosion", - "fireworks": [ - "container", - [ - { - "name": "flightDuration", - "type": "varint" - }, - { - "name": "explosions", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemFireworkExplosion" - } - ] - } - ] - ], - "profile": "ResolvableProfile", - "note_block_sound": "string", - "banner_patterns": [ - "container", - [ - { - "name": "layers", - "type": [ - "array", - { - "countType": "varint", - "type": "BannerPatternLayer" - } - ] - } - ] - ], - "base_color": "varint", - "pot_decorations": [ - "container", - [ - { - "name": "decorations", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "container": [ - "container", - [ - { - "name": "contents", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "block_state": [ - "container", - [ - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] - } - ] - ], - "bees": [ - "container", - [ - { - "name": "bees", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "nbtData", - "type": "anonymousNbt" - }, - { - "name": "ticksInHive", - "type": "varint" - }, - { - "name": "minTicksInHive", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "lock": "anonymousNbt", - "container_loot": "anonymousNbt", - "break_sound": "ItemSoundHolder", - "villager/variant": "varint", - "wolf/variant": "varint", - "wolf/sound_variant": "varint", - "wolf/collar": "varint", - "fox/variant": "varint", - "salmon/size": "varint", - "parrot/variant": "varint", - "tropical_fish/pattern": "varint", - "tropical_fish/base_color": "varint", - "tropical_fish/pattern_color": "varint", - "mooshroom/variant": "varint", - "rabbit/variant": "varint", - "pig/variant": "varint", - "cow/variant": "varint", - "chicken/variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "string" - } - } - ], - "zombie_nautilus/variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "string" - } - } - ], - "frog/variant": "varint", - "horse/variant": "varint", - "painting/variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "data", - "type": "EntityMetadataPaintingVariant" - } - } - ], - "llama/variant": "varint", - "axolotl/variant": "varint", - "cat/variant": "varint", - "cat/collar": "varint", - "sheep/color": "varint", - "shulker/color": "varint" - } - } - ] - } - ] - ], - "ItemSoundEvent": [ - "container", - [ - { - "name": "soundName", - "type": "string" - }, - { - "name": "fixedRange", - "type": [ - "option", - "f32" - ] - } - ] - ], - "ItemSoundHolder": [ - "registryEntryHolder", - { - "baseName": "soundId", - "otherwise": { - "name": "data", - "type": "ItemSoundEvent" - } - } - ], - "ItemFireworkExplosion": [ - "container", - [ - { - "name": "shape", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "small_ball", - "1": "large_ball", - "2": "star", - "3": "creeper", - "4": "burst" - } - } - ] - }, - { - "name": "colors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "fadeColors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "hasTrail", - "type": "bool" - }, - { - "name": "hasTwinkle", - "type": "bool" - } - ] - ], - "ItemEffectDetail": [ - "container", - [ - { - "name": "amplifier", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "ambient", - "type": "bool" - }, - { - "name": "showParticles", - "type": "bool" - }, - { - "name": "showIcon", - "type": "bool" - }, - { - "name": "hiddenEffect", - "type": [ - "option", - "ItemEffectDetail" - ] - } - ] - ], - "ItemPotionEffect": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "details", - "type": "ItemEffectDetail" - } - ] - ], - "ItemBlockProperty": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "isExactMatch", - "type": "bool" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "isExactMatch", - "fields": { - "true": [ - "container", - [ - { - "name": "exactValue", - "type": "string" - } - ] - ], - "false": [ - "container", - [ - { - "name": "minValue", - "type": "string" - }, - { - "name": "maxValue", - "type": "string" - } - ] - ] - } - } - ] - } - ] - ], - "ExactComponentMatcher": [ - "array", - { - "countType": "varint", - "type": "SlotComponent" - } - ], - "DataComponentMatchers": [ - "container", - [ - { - "name": "exactMatchers", - "type": "ExactComponentMatcher" - }, - { - "name": "partialMatchers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "ItemBlockPredicate": [ - "container", - [ - { - "name": "blockSet", - "type": [ - "option", - [ - "registryEntryHolderSet", - { - "base": { - "name": "name", - "type": "string" - }, - "otherwise": { - "name": "blockIds", - "type": "varint" - } - } - ] - ] - }, - { - "name": "properties", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": "ItemBlockProperty" - } - ] - ] - }, - { - "name": "nbt", - "type": "anonOptionalNbt" - }, - { - "name": "components", - "type": "DataComponentMatchers" - } - ] - ], - "ItemBookPage": [ - "container", - [ - { - "name": "content", - "type": "string" - }, - { - "name": "filteredContent", - "type": [ - "option", - "string" - ] - } - ] - ], - "ItemWrittenBookPage": [ - "container", - [ - { - "name": "content", - "type": "anonymousNbt" - }, - { - "name": "filteredContent", - "type": "anonOptionalNbt" - } - ] - ], - "ItemConsumeEffect": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "apply_effects", - "1": "remove_effects", - "2": "clear_all_effects", - "3": "teleport_randomly", - "4": "play_sound" - } - } - ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "apply_effects": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemPotionEffect" + "Brains": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "profession", + "type": "string" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "health", + "type": "f32" + }, + { + "name": "maxHealth", + "type": "f32" + }, + { + "name": "inventory", + "type": "string" + }, + { + "name": "wantsGolem", + "type": "bool" + }, + { + "name": "angerLevel", + "type": "i32" + }, + { + "name": "activities", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "behaviors", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "memories", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "gossips", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "pois", + "type": [ + "array", + { + "countType": "varint", + "type": "position" + } + ] + }, + { + "name": "potentialPois", + "type": [ + "array", + { + "countType": "varint", + "type": "position" + } + ] + } + ] + ], + "Breezes": [ + "container", + [ + { + "name": "attackTarget", + "type": [ + "option", + "varint" + ] + }, + { + "name": "jumpTarget", + "type": [ + "option", + "position" + ] + } + ] + ], + "DedicatedServerTickTime": "void", + "EntityBlockIntersections": [ + "container", + [ + { + "name": "id", + "type": "varint" + } + ] + ], + "EntityPaths": [ + "container", + [ + { + "name": "path", + "type": "Path" + }, + { + "name": "maxNodeDistance", + "type": "f32" + } + ] + ], + "GameEventListeners": [ + "container", + [ + { + "name": "listenerRadius", + "type": "varint" + } + ] + ], + "GameEvents": [ + "container", + [ + { + "name": "event", + "type": "varint" + }, + { + "name": "pos", + "type": "vec3f64" + } + ] + ], + "GoalSelectors": [ + "container", + [ + { + "name": "goals", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "priority", + "type": "varint" + }, + { + "name": "running", + "type": "bool" + }, + { + "name": "name", + "type": "string" + } + ] + ] + } + ] + } + ] + ], + "NeighborUpdates": [ + "container", + [ + { + "name": "pos", + "type": "position" + } + ] + ], + "Pois": [ + "container", + [ + { + "name": "pos", + "type": "position" + }, + { + "name": "poiType", + "type": "varint" + }, + { + "name": "freeTicketCount", + "type": "varint" + } + ] + ], + "Raids": [ + "container", + [ + { + "name": "positions", + "type": [ + "array", + { + "countType": "varint", + "type": "position" + } + ] + } + ] + ], + "RedstoneWireOrientations": [ + "container", + [ + { + "name": "index", + "type": "varint" + } + ] + ], + "Structures": [ + "container", + [ + { + "name": "structures", + "type": [ + "array", + { + "countType": "varint", + "type": "DebugStructureInfo" + } + ] + } + ] + ], + "VillageSections": "void" + } } ] - }, - { - "name": "probability", - "type": "f32" - } - ] - ], - "remove_effects": [ - "container", - [ - { - "name": "effects", - "type": "IDSet" - } - ] - ], - "clear_all_effects": "void", - "teleport_randomly": [ - "container", - [ - { - "name": "diameter", - "type": "f32" - } - ] - ], - "play_sound": [ - "container", - [ - { - "name": "sound", - "type": "ItemSoundHolder" - } - ] + ] + } ] + ], + "fields": { + "DedicatedServerTickTime": "void" } } ] } ] ], - "ArmorTrimMaterial": [ + "EntityMetadataPaintingVariant": [ "container", [ { - "name": "assetBase", - "type": "string" + "name": "width", + "type": "i32" }, { - "name": "overrideArmorAssets", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] + "name": "height", + "type": "i32" }, - { - "name": "description", - "type": "anonymousNbt" - } - ] - ], - "ArmorTrimPattern": [ - "container", - [ { "name": "assetId", "type": "string" }, { - "name": "description", - "type": "anonymousNbt" + "name": "title", + "type": [ + "option", + "anonymousNbt" + ] }, { - "name": "decal", - "type": "bool" + "name": "author", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "InstrumentData": [ + "ExactComponentMatcher": [ + "array", + { + "countType": "varint", + "type": "SlotComponent" + } + ], + "GameProfile": [ "container", [ { - "name": "soundEvent", - "type": "ItemSoundHolder" - }, - { - "name": "useDuration", - "type": "f32" + "name": "uuid", + "type": "UUID" }, { - "name": "range", - "type": "f32" + "name": "name", + "type": "string" }, { - "name": "description", - "type": "anonymousNbt" + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": "GameProfileProperty" + } + ] } ] ], - "JukeboxSongData": [ + "GameProfileProperty": [ "container", [ { - "name": "soundEvent", - "type": "ItemSoundHolder" - }, - { - "name": "description", - "type": "anonymousNbt" + "name": "name", + "type": "string" }, { - "name": "lengthInSeconds", - "type": "f32" + "name": "value", + "type": "string" }, { - "name": "comparatorOutput", - "type": "varint" + "name": "signature", + "type": [ + "option", + "string" + ] } ] ], - "BannerPattern": [ + "GlobalPos": [ "container", [ { - "name": "assetId", + "name": "dimensionName", "type": "string" }, { - "name": "translationKey", - "type": "string" + "name": "location", + "type": "position" } ] ], - "BannerPatternLayer": [ + "HashedSlot": [ "container", [ { - "name": "pattern", - "type": [ - "registryEntryHolder", - { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "BannerPattern" - } - } - ] - }, - { - "name": "colorId", + "name": "itemId", "type": "varint" - } - ] - ], - "DamageTypeData": [ - "container", - [ - { - "name": "msgId", - "type": "string" - }, - { - "name": "scaling", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "never", - "1": "when_caused_by_living_non_player", - "2": "always" - } - } - ] }, { - "name": "exhaustion", - "type": "f32" + "name": "itemCount", + "type": "varint" }, { - "name": "effects", + "name": "components", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0": "hurt", - "1": "thorns", - "2": "drowning", - "3": "burning", - "4": "poking", - "5": "freezing" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + }, + { + "name": "hash", + "type": "i32" + } + ] + ] } ] }, { - "name": "deathMessageType", + "name": "removeComponents", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0": "default", - "1": "fall_variants", - "2": "intentional_game_design" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] } ] } - ] + ] + ], + "IDSet": [ + "registryEntryHolderSet", + { + "base": { + "name": "name", + "type": "string" + }, + "otherwise": { + "name": "ids", + "type": "varint" + } + } ], - "KineticWeaponCondition": [ + "InstrumentData": [ "container", [ { - "name": "maxDurationTicks", - "type": "varint" + "name": "soundEvent", + "type": "ItemSoundHolder" }, { - "name": "minSpeed", + "name": "useDuration", "type": "f32" }, { - "name": "minRelativeSpeed", + "name": "range", "type": "f32" + }, + { + "name": "description", + "type": "anonymousNbt" } ] ], - "UntrustedSlotComponent": [ + "ItemBlockPredicate": [ "container", [ { - "name": "type", - "type": "SlotComponentType" + "name": "blockSet", + "type": [ + "option", + [ + "registryEntryHolderSet", + { + "base": { + "name": "name", + "type": "string" + }, + "otherwise": { + "name": "blockIds", + "type": "varint" + } + } + ] + ] }, { - "name": "data", - "type": "ByteArray" + "name": "properties", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": "ItemBlockProperty" + } + ] + ] + }, + { + "name": "nbt", + "type": "anonOptionalNbt" + }, + { + "name": "components", + "type": "DataComponentMatchers" } ] ], - "UntrustedSlot": [ + "ItemBlockProperty": [ "container", [ { - "name": "itemCount", - "type": "varint" + "name": "name", + "type": "string" }, { - "anon": true, + "name": "isExactMatch", + "type": "bool" + }, + { + "name": "value", "type": [ "switch", { - "compareTo": "itemCount", + "compareTo": "isExactMatch", "fields": { - "0": "void", - "false": "void" - }, - "default": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "removedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "UntrustedSlotComponent" - } - ] - }, - { - "name": "removeComponents", - "type": [ - "array", - { - "count": "removedComponentCount", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] - } - ] - } + "false": [ + "container", + [ + { + "name": "minValue", + "type": "string" + }, + { + "name": "maxValue", + "type": "string" + } + ] + ], + "true": [ + "container", + [ + { + "name": "exactValue", + "type": "string" + } + ] ] - ] + } } ] } ] ], - "Slot": [ + "ItemBookPage": [ "container", [ { - "name": "itemCount", - "type": "varint" + "name": "content", + "type": "string" + }, + { + "name": "filteredContent", + "type": [ + "option", + "string" + ] + } + ] + ], + "ItemConsumeEffect": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "apply_effects", + "1": "remove_effects", + "2": "clear_all_effects", + "3": "teleport_randomly", + "4": "play_sound" + }, + "type": "varint" + } + ] }, { "anon": true, "type": [ "switch", { - "compareTo": "itemCount", + "compareTo": "type", "fields": { - "0": "void" - }, - "default": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "removedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "SlotComponent" - } - ] - }, - { - "name": "removeComponents", - "type": [ - "array", - { - "count": "removedComponentCount", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] - } - ] - } + "apply_effects": [ + "container", + [ + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemPotionEffect" + } + ] + }, + { + "name": "probability", + "type": "f32" + } + ] + ], + "clear_all_effects": "void", + "play_sound": [ + "container", + [ + { + "name": "sound", + "type": "ItemSoundHolder" + } + ] + ], + "remove_effects": [ + "container", + [ + { + "name": "effects", + "type": "IDSet" + } + ] + ], + "teleport_randomly": [ + "container", + [ + { + "name": "diameter", + "type": "f32" + } + ] ] - ] + } } ] } ] ], - "HashedSlot": [ + "ItemEffectDetail": [ "container", [ { - "name": "itemId", + "name": "amplifier", "type": "varint" }, { - "name": "itemCount", + "name": "duration", "type": "varint" }, { - "name": "components", + "name": "ambient", + "type": "bool" + }, + { + "name": "showParticles", + "type": "bool" + }, + { + "name": "showIcon", + "type": "bool" + }, + { + "name": "hiddenEffect", + "type": [ + "option", + "ItemEffectDetail" + ] + } + ] + ], + "ItemFireworkExplosion": [ + "container", + [ + { + "name": "shape", + "type": [ + "mapper", + { + "mappings": { + "0": "small_ball", + "1": "large_ball", + "2": "star", + "3": "creeper", + "4": "burst" + }, + "type": "varint" + } + ] + }, + { + "name": "colors", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - }, - { - "name": "hash", - "type": "i32" - } - ] - ] + "type": "i32" } ] }, { - "name": "removeComponents", + "name": "fadeColors", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] + "type": "i32" } ] + }, + { + "name": "hasTrail", + "type": "bool" + }, + { + "name": "hasTwinkle", + "type": "bool" } ] ], - "RespawnData": [ + "ItemPotionEffect": [ "container", [ { - "name": "globalPos", - "type": "GlobalPos" + "name": "id", + "type": "varint" }, { - "name": "yaw", - "type": "f32" + "name": "details", + "type": "ItemEffectDetail" + } + ] + ], + "ItemSoundEvent": [ + "container", + [ + { + "name": "soundName", + "type": "string" }, { - "name": "pitch", - "type": "f32" + "name": "fixedRange", + "type": [ + "option", + "f32" + ] } ] ], - "GlobalPos": [ + "ItemSoundHolder": [ + "registryEntryHolder", + { + "baseName": "soundId", + "otherwise": { + "name": "data", + "type": "ItemSoundEvent" + } + } + ], + "ItemWrittenBookPage": [ "container", [ { - "name": "dimensionName", - "type": "string" + "name": "content", + "type": "anonymousNbt" }, { - "name": "location", - "type": "position" + "name": "filteredContent", + "type": "anonOptionalNbt" } ] ], - "DebugStructureInfo": [ + "JukeboxSongData": [ "container", [ { - "name": "boundingBoxMin", - "type": "position" + "name": "soundEvent", + "type": "ItemSoundHolder" }, { - "name": "boundingBoxMax", - "type": "position" + "name": "description", + "type": "anonymousNbt" }, { - "name": "pieces", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "boundingBoxMin", - "type": "position" - }, - { - "name": "boundingBoxMax", - "type": "position" - }, - { - "name": "isStart", - "type": "bool" - } - ] - ] - } - ] + "name": "lengthInSeconds", + "type": "f32" + }, + { + "name": "comparatorOutput", + "type": "varint" + } + ] + ], + "KineticWeaponCondition": [ + "container", + [ + { + "name": "maxDurationTicks", + "type": "varint" + }, + { + "name": "minSpeed", + "type": "f32" + }, + { + "name": "minRelativeSpeed", + "type": "f32" } ] ], @@ -2434,7 +1466,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "blocked", "1": "open", @@ -2462,7 +1493,8 @@ "23": "cocoa", "24": "damage_cautious", "25": "danger_trapdoor" - } + }, + "type": "varint" } ] }, @@ -2472,1329 +1504,1894 @@ } ] ], - "PathDebugData": [ + "PartialResolvableProfile": [ "container", [ { - "name": "openSet", - "type": [ - "array", - { - "countType": "varint", - "type": "Node" - } - ] - }, - { - "name": "closedSet", - "type": [ - "array", - { - "countType": "varint", - "type": "Node" - } - ] - }, - { - "name": "targetNodes", + "name": "name", "type": [ - "array", - { - "countType": "varint", - "type": "Node" - } + "option", + "string" ] - } - ] - ], - "Path": [ - "container", - [ - { - "name": "reached", - "type": "bool" - }, - { - "name": "nextNodeIndex", - "type": "i32" }, { - "name": "target", - "type": "position" + "name": "uuid", + "type": [ + "option", + "UUID" + ] }, { - "name": "nodes", + "name": "properties", "type": [ "array", { "countType": "varint", - "type": "Node" + "type": "GameProfileProperty" } ] - }, - { - "name": "debugData", - "type": "PathDebugData" } ] ], - "DebugSubscriptionDataType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "DedicatedServerTickTime", - "1": "Bees", - "2": "Brains", - "3": "Breezes", - "4": "GoalSelectors", - "5": "EntityPaths", - "6": "EntityBlockIntersections", - "7": "BeeHives", - "8": "Pois", - "9": "RedstoneWireOrientations", - "10": "VillageSections", - "11": "Raids", - "12": "Structures", - "13": "GameEventListeners", - "14": "NeighborUpdates", - "15": "GameEvents" - } - } - ], - "DebugSubscriptionUpdate": [ + "Particle": [ "container", [ { "name": "type", - "type": "DebugSubscriptionDataType" + "type": [ + "mapper", + { + "mappings": { + "0": "angry_villager", + "1": "block", + "2": "block_marker", + "3": "bubble", + "4": "cloud", + "5": "copper_fire_flame", + "6": "crit", + "7": "damage_indicator", + "8": "dragon_breath", + "9": "dripping_lava", + "10": "falling_lava", + "11": "landing_lava", + "12": "dripping_water", + "13": "falling_water", + "14": "dust", + "15": "dust_color_transition", + "16": "effect", + "17": "elder_guardian", + "18": "enchanted_hit", + "19": "enchant", + "20": "end_rod", + "21": "entity_effect", + "22": "explosion_emitter", + "23": "explosion", + "24": "gust", + "25": "small_gust", + "26": "gust_emitter_large", + "27": "gust_emitter_small", + "28": "sonic_boom", + "29": "falling_dust", + "30": "firework", + "31": "fishing", + "32": "flame", + "33": "infested", + "34": "cherry_leaves", + "35": "pale_oak_leaves", + "36": "tinted_leaves", + "37": "sculk_soul", + "38": "sculk_charge", + "39": "sculk_charge_pop", + "40": "soul_fire_flame", + "41": "soul", + "42": "flash", + "43": "happy_villager", + "44": "composter", + "45": "heart", + "46": "instant_effect", + "47": "item", + "48": "vibration", + "49": "trail", + "50": "item_slime", + "51": "item_cobweb", + "52": "item_snowball", + "53": "large_smoke", + "54": "lava", + "55": "mycelium", + "56": "note", + "57": "poof", + "58": "portal", + "59": "rain", + "60": "smoke", + "61": "white_smoke", + "62": "sneeze", + "63": "spit", + "64": "squid_ink", + "65": "sweep_attack", + "66": "totem_of_undying", + "67": "underwater", + "68": "splash", + "69": "witch", + "70": "bubble_pop", + "71": "current_down", + "72": "bubble_column_up", + "73": "nautilus", + "74": "dolphin", + "75": "campfire_cosy_smoke", + "76": "campfire_signal_smoke", + "77": "dripping_honey", + "78": "falling_honey", + "79": "landing_honey", + "80": "falling_nectar", + "81": "falling_spore_blossom", + "82": "ash", + "83": "crimson_spore", + "84": "warped_spore", + "85": "spore_blossom_air", + "86": "dripping_obsidian_tear", + "87": "falling_obsidian_tear", + "88": "landing_obsidian_tear", + "89": "reverse_portal", + "90": "white_ash", + "91": "small_flame", + "92": "snowflake", + "93": "dripping_dripstone_lava", + "94": "falling_dripstone_lava", + "95": "dripping_dripstone_water", + "96": "falling_dripstone_water", + "97": "glow_squid_ink", + "98": "glow", + "99": "wax_on", + "100": "wax_off", + "101": "electric_spark", + "102": "scrape", + "103": "shriek", + "104": "egg_crack", + "105": "dust_plume", + "106": "trial_spawner_detected_player", + "107": "trial_spawner_detected_player_ominous", + "108": "vault_connection", + "109": "dust_pillar", + "110": "ominous_spawning", + "111": "raid_omen", + "112": "trial_omen", + "113": "block_crumble", + "114": "firefly" + }, + "type": "varint" + } + ] }, { - "anon": true, + "name": "data", "type": [ "switch", { "compareTo": "type", "fields": { - "DedicatedServerTickTime": "void" - }, - "default": [ - "container", - [ - { - "name": "payload", - "type": [ - "option", - [ - "switch", + "block": "varint", + "block_crumble": "varint", + "block_marker": "varint", + "dragon_breath": [ + "container", + [ + { + "name": "power", + "type": "f32" + } + ] + ], + "dust": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "dust_color_transition": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "dust_pillar": "varint", + "effect": [ + "container", + [ + { + "name": "color", + "type": "i32" + }, + { + "name": "power", + "type": "f32" + } + ] + ], + "entity_effect": "i32", + "falling_dust": "varint", + "firefly": "void", + "flash": "i32", + "instant_effect": [ + "container", + [ + { + "name": "color", + "type": "i32" + }, + { + "name": "power", + "type": "f32" + } + ] + ], + "item": "Slot", + "sculk_charge": "f32", + "shriek": "varint", + "tinted_leaves": "i32", + "trail": [ + "container", + [ + { + "name": "target", + "type": "vec3f64" + }, + { + "name": "color", + "type": "u8" + } + ] + ], + "vibration": [ + "container", + [ + { + "name": "positionType", + "type": [ + "mapper", { - "compareTo": "type", - "fields": { - "DedicatedServerTickTime": "void", - "VillageSections": "void", - "Bees": [ - "container", - [ - { - "name": "hivePos", - "type": [ - "option", - "position" - ] - }, - { - "name": "flowerPos", - "type": [ - "option", - "position" - ] - }, - { - "name": "travelTicks", - "type": "varint" - }, - { - "name": "blacklistedHives", - "type": [ - "array", - { - "countType": "varint", - "type": "position" - } - ] - } - ] - ], - "Brains": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "profession", - "type": "string" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "health", - "type": "f32" - }, - { - "name": "maxHealth", - "type": "f32" - }, - { - "name": "inventory", - "type": "string" - }, - { - "name": "wantsGolem", - "type": "bool" - }, - { - "name": "angerLevel", - "type": "i32" - }, - { - "name": "activities", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "behaviors", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "memories", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "gossips", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "pois", - "type": [ - "array", - { - "countType": "varint", - "type": "position" - } - ] - }, - { - "name": "potentialPois", - "type": [ - "array", - { - "countType": "varint", - "type": "position" - } - ] - } - ] - ], - "Breezes": [ - "container", - [ - { - "name": "attackTarget", - "type": [ - "option", - "varint" - ] - }, - { - "name": "jumpTarget", - "type": [ - "option", - "position" - ] - } - ] - ], - "GoalSelectors": [ - "container", - [ - { - "name": "goals", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "priority", - "type": "varint" - }, - { - "name": "running", - "type": "bool" - }, - { - "name": "name", - "type": "string" - } - ] - ] - } - ] - } - ] - ], - "EntityPaths": [ - "container", - [ - { - "name": "path", - "type": "Path" - }, - { - "name": "maxNodeDistance", - "type": "f32" - } - ] - ], - "EntityBlockIntersections": [ - "container", - [ - { - "name": "id", - "type": "varint" - } - ] - ], - "BeeHives": [ + "mappings": { + "0": "block", + "1": "entity" + }, + "type": "varint" + } + ] + }, + { + "name": "position", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "block": "position", + "entity": [ "container", [ { - "name": "type", - "type": "varint" - }, - { - "name": "occupantCount", - "type": "varint" - }, - { - "name": "honeyLevel", + "name": "entityId", "type": "varint" }, { - "name": "sedated", - "type": "bool" + "name": "entityEyeHeight", + "type": "f32" } ] - ], - "Pois": [ - "container", - [ - { - "name": "pos", - "type": "position" - }, - { - "name": "poiType", - "type": "varint" + ] + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] + ] + } + } + ] + } + ] + ], + "Path": [ + "container", + [ + { + "name": "reached", + "type": "bool" + }, + { + "name": "nextNodeIndex", + "type": "i32" + }, + { + "name": "target", + "type": "position" + }, + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "Node" + } + ] + }, + { + "name": "debugData", + "type": "PathDebugData" + } + ] + ], + "PathDebugData": [ + "container", + [ + { + "name": "openSet", + "type": [ + "array", + { + "countType": "varint", + "type": "Node" + } + ] + }, + { + "name": "closedSet", + "type": [ + "array", + { + "countType": "varint", + "type": "Node" + } + ] + }, + { + "name": "targetNodes", + "type": [ + "array", + { + "countType": "varint", + "type": "Node" + } + ] + } + ] + ], + "PlayerSkinPatch": [ + "container", + [ + { + "name": "body", + "type": [ + "option", + "string" + ] + }, + { + "name": "cape", + "type": [ + "option", + "string" + ] + }, + { + "name": "elytra", + "type": [ + "option", + "string" + ] + }, + { + "name": "model", + "type": [ + "option", + [ + "mapper", + { + "mappings": { + "0": "wide", + "1": "slim" + }, + "type": "varint" + } + ] + ] + } + ] + ], + "ResolvableProfile": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "partial", + "1": "complete" + }, + "type": "varint" + } + ] + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "complete": "GameProfile", + "partial": "PartialResolvableProfile" + } + } + ] + }, + { + "name": "skinPatch", + "type": "PlayerSkinPatch" + } + ] + ], + "RespawnData": [ + "container", + [ + { + "name": "globalPos", + "type": "GlobalPos" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + } + ] + ], + "ServerLinkType": [ + "mapper", + { + "mappings": { + "0": "bug_report", + "1": "community_guidelines", + "2": "support", + "3": "status", + "4": "feedback", + "5": "community", + "6": "website", + "7": "forums", + "8": "news", + "9": "announcements" + }, + "type": "varint" + } + ], + "Slot": [ + "container", + [ + { + "name": "itemCount", + "type": "varint" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "itemCount", + "default": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "removedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "SlotComponent" + } + ] + }, + { + "name": "removeComponents", + "type": [ + "array", + { + "count": "removedComponentCount", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] + } + ] + ], + "fields": { + "0": "void" + } + } + ] + } + ] + ], + "SlotComponent": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "attack_range": [ + "container", + [ + { + "name": "minRange", + "type": "f32" + }, + { + "name": "maxRange", + "type": "f32" + }, + { + "name": "minCreativeRange", + "type": "f32" + }, + { + "name": "maxCreativeRange", + "type": "f32" + }, + { + "name": "hitboxMargin", + "type": "f32" + }, + { + "name": "mobFactor", + "type": "f32" + } + ] + ], + "attribute_modifiers": [ + "container", + [ + { + "name": "attributes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "typeId", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "operation", + "type": [ + "mapper", + { + "mappings": { + "0": "add", + "1": "multiply_base", + "2": "multiply_total" + }, + "type": "varint" + } + ] + }, + { + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "any", + "1": "main_hand", + "2": "off_hand", + "3": "hand", + "4": "feet", + "5": "legs", + "6": "chest", + "7": "head", + "8": "armor", + "9": "body", + "10": "saddle" + }, + "type": "varint" + } + ] + } + ] + ] + } + ] + }, + { + "name": "display", + "type": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "default", + "1": "hidden", + "2": "override" }, - { - "name": "freeTicketCount", - "type": "varint" - } - ] - ], - "RedstoneWireOrientations": [ - "container", - [ - { - "name": "index", - "type": "varint" - } - ] - ], - "Raids": [ - "container", - [ - { - "name": "positions", - "type": [ - "array", - { - "countType": "varint", - "type": "position" - } - ] - } - ] - ], - "Structures": [ - "container", - [ - { - "name": "structures", - "type": [ - "array", - { - "countType": "varint", - "type": "DebugStructureInfo" - } - ] - } - ] - ], - "GameEventListeners": [ - "container", - [ - { - "name": "listenerRadius", - "type": "varint" - } - ] - ], - "NeighborUpdates": [ - "container", - [ - { - "name": "pos", - "type": "position" + "type": "varint" + } + ] + }, + { + "name": "component", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "override": "anonymousNbt" } - ] - ], - "GameEvents": [ - "container", - [ - { - "name": "event", - "type": "varint" - }, - { - "name": "pos", - "type": "vec3f64" + } + ] + } + ] + ] + } + ] + ], + "axolotl/variant": "varint", + "banner_patterns": [ + "container", + [ + { + "name": "layers", + "type": [ + "array", + { + "countType": "varint", + "type": "BannerPatternLayer" + } + ] + } + ] + ], + "base_color": "varint", + "bees": [ + "container", + [ + { + "name": "bees", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "nbtData", + "type": "anonymousNbt" + }, + { + "name": "ticksInHive", + "type": "varint" + }, + { + "name": "minTicksInHive", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "block_entity_data": [ + "container", + [ + { + "name": "type", + "type": "varint" + }, + { + "name": "data", + "type": "anonymousNbt" + } + ] + ], + "block_state": [ + "container", + [ + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + } + ] + ], + "blocks_attacks": [ + "container", + [ + { + "name": "blockDelaySeconds", + "type": "f32" + }, + { + "name": "disableCooldownScale", + "type": "f32" + }, + { + "name": "damageReductions", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalBlockingAngle", + "type": "f32" + }, + { + "name": "type", + "type": [ + "option", + "IDSet" + ] + }, + { + "name": "base", + "type": "f32" + }, + { + "name": "factor", + "type": "f32" + } + ] + ] + } + ] + }, + { + "name": "itemDamage", + "type": [ + "container", + [ + { + "name": "threshold", + "type": "f32" + }, + { + "name": "base", + "type": "f32" + }, + { + "name": "factor", + "type": "f32" + } + ] + ] + }, + { + "name": "bypassedBy", + "type": [ + "option", + "string" + ] + }, + { + "name": "blockSound", + "type": [ + "option", + "ItemSoundHolder" + ] + }, + { + "name": "disableSound", + "type": [ + "option", + "ItemSoundHolder" + ] + } + ] + ], + "break_sound": "ItemSoundHolder", + "bucket_entity_data": "anonymousNbt", + "bundle_contents": [ + "container", + [ + { + "name": "contents", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "can_break": [ + "container", + [ + { + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" + } + ] + } + ] + ], + "can_place_on": [ + "container", + [ + { + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" + } + ] + } + ] + ], + "cat/collar": "varint", + "cat/variant": "varint", + "charged_projectiles": [ + "container", + [ + { + "name": "projectiles", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "chicken/variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "string" + } + } + ], + "consumable": [ + "container", + [ + { + "name": "consume_seconds", + "type": "f32" + }, + { + "name": "animation", + "type": [ + "mapper", + { + "mappings": { + "0": "none", + "1": "eat", + "2": "drink", + "3": "block", + "4": "bow", + "5": "spear", + "6": "crossbow", + "7": "spyglass", + "8": "toot_horn", + "9": "brush", + "10": "bundle" + }, + "type": "varint" + } + ] + }, + { + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "makes_particles", + "type": "bool" + }, + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemConsumeEffect" + } + ] + } + ] + ], + "container": [ + "container", + [ + { + "name": "contents", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "container_loot": "anonymousNbt", + "cow/variant": "varint", + "creative_slot_lock": "void", + "custom_data": "anonymousNbt", + "custom_model_data": [ + "container", + [ + { + "name": "floats", + "type": [ + "array", + { + "countType": "varint", + "type": "f32" + } + ] + }, + { + "name": "flags", + "type": [ + "array", + { + "countType": "varint", + "type": "bool" + } + ] + }, + { + "name": "strings", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "colors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] + } + ] + ], + "custom_name": "anonymousNbt", + "damage": "varint", + "damage_resistant": "string", + "damage_type": [ + "container", + [ + { + "name": "hasHolder", + "type": "bool" + }, + { + "name": "damageType", + "type": [ + "switch", + { + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "damageTypeId", + "otherwise": { + "name": "data", + "type": "DamageTypeData" } - ] + } ] } } ] - ] - } - ] - ] - } - ] - } - ] - ], - "DebugSubscriptionEvent": [ - "container", - [ - { - "name": "type", - "type": "DebugSubscriptionDataType" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "DedicatedServerTickTime": "void", - "VillageSections": "void", - "Bees": [ + } + ] + ], + "death_protection": [ + "container", + [ + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemConsumeEffect" + } + ] + } + ] + ], + "debug_stick_state": "anonymousNbt", + "dyed_color": "i32", + "enchantable": "varint", + "enchantment_glint_override": "bool", + "enchantments": [ + "container", + [ + { + "name": "enchantments", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "entity_data": [ + "container", + [ + { + "name": "type", + "type": "varint" + }, + { + "name": "data", + "type": "anonymousNbt" + } + ] + ], + "equippable": [ "container", [ { - "name": "hivePos", - "type": [ - "option", - "position" - ] + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "main_hand", + "1": "off_hand", + "2": "feet", + "3": "legs", + "4": "chest", + "5": "head", + "6": "body", + "7": "saddle" + }, + "type": "varint" + } + ] + }, + { + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "model", + "type": [ + "option", + "string" + ] + }, + { + "name": "cameraOverlay", + "type": [ + "option", + "string" + ] + }, + { + "name": "allowedEntities", + "type": [ + "option", + "IDSet" + ] + }, + { + "name": "dispensable", + "type": "bool" + }, + { + "name": "swappable", + "type": "bool" + }, + { + "name": "damageable", + "type": "bool" }, { - "name": "flowerPos", - "type": [ - "option", - "position" - ] + "name": "equipOnInteract", + "type": "bool" }, { - "name": "travelTicks", + "name": "shearable", + "type": "bool" + }, + { + "name": "shearingSound", + "type": "ItemSoundHolder" + } + ] + ], + "firework_explosion": "ItemFireworkExplosion", + "fireworks": [ + "container", + [ + { + "name": "flightDuration", "type": "varint" }, { - "name": "blacklistedHives", + "name": "explosions", "type": [ "array", { "countType": "varint", - "type": "position" + "type": "ItemFireworkExplosion" } ] } ] ], - "Brains": [ + "food": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "profession", - "type": "string" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "health", - "type": "f32" + "name": "nutrition", + "type": "varint" }, { - "name": "maxHealth", + "name": "saturationModifier", "type": "f32" }, { - "name": "inventory", - "type": "string" - }, - { - "name": "wantsGolem", + "name": "canAlwaysEat", "type": "bool" - }, + } + ] + ], + "fox/variant": "varint", + "frog/variant": "varint", + "glider": "void", + "horse/variant": "varint", + "instrument": [ + "container", + [ { - "name": "angerLevel", - "type": "i32" + "name": "hasHolder", + "type": "bool" }, { - "name": "activities", + "name": "data", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "instrumentId", + "otherwise": { + "name": "data", + "type": "InstrumentData" + } + } + ] + } } ] + } + ] + ], + "intangible_projectile": "void", + "item_model": "string", + "item_name": "anonymousNbt", + "jukebox_playable": [ + "container", + [ + { + "name": "hasHolder", + "type": "bool" }, { - "name": "behaviors", + "name": "song", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "songId", + "otherwise": { + "name": "data", + "type": "JukeboxSongData" + } + } + ] + } } ] + } + ] + ], + "kinetic_weapon": [ + "container", + [ + { + "name": "contactCooldownTicks", + "type": "varint" }, { - "name": "memories", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "delayTicks", + "type": "varint" }, { - "name": "gossips", + "name": "dismountConditions", "type": [ - "array", - { - "countType": "varint", - "type": "string" - } + "option", + "KineticWeaponCondition" ] }, { - "name": "pois", + "name": "knockbackConditions", "type": [ - "array", - { - "countType": "varint", - "type": "position" - } + "option", + "KineticWeaponCondition" ] }, { - "name": "potentialPois", + "name": "damageConditions", "type": [ - "array", - { - "countType": "varint", - "type": "position" - } + "option", + "KineticWeaponCondition" ] - } - ] - ], - "Breezes": [ - "container", - [ + }, { - "name": "attackTarget", + "name": "forwardMovement", + "type": "f32" + }, + { + "name": "damageMultiplier", + "type": "f32" + }, + { + "name": "sound", "type": [ "option", - "varint" + "ItemSoundHolder" ] }, { - "name": "jumpTarget", + "name": "hitSound", "type": [ "option", - "position" + "ItemSoundHolder" ] } ] ], - "GoalSelectors": [ + "llama/variant": "varint", + "lock": "anonymousNbt", + "lodestone_tracker": [ "container", [ { - "name": "priority", - "type": "varint" + "name": "globalPosition", + "type": [ + "option", + "GlobalPos" + ] }, { - "name": "running", + "name": "tracked", "type": "bool" - }, - { - "name": "name", - "type": "string" } ] ], - "EntityPaths": [ - "container", - [ - { - "name": "path", - "type": "Path" - }, - { - "name": "maxNodeDistance", - "type": "f32" - } - ] + "lore": [ + "array", + { + "countType": "varint", + "type": "anonymousNbt" + } ], - "EntityBlockIntersections": [ - "container", - [ - { - "name": "id", - "type": "varint" + "map_color": "i32", + "map_decorations": "anonymousNbt", + "map_id": "varint", + "map_post_processing": "varint", + "max_damage": "varint", + "max_stack_size": "varint", + "minimum_attack_charge": "f32", + "mooshroom/variant": "varint", + "note_block_sound": "string", + "ominous_bottle_amplifier": "varint", + "painting/variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "data", + "type": "EntityMetadataPaintingVariant" } - ] + } ], - "BeeHives": [ + "parrot/variant": "varint", + "piercing_weapon": [ "container", [ { - "name": "type", - "type": "varint" - }, - { - "name": "occupantCount", - "type": "varint" - }, - { - "name": "honeyLevel", - "type": "varint" + "name": "dealsKnockback", + "type": "bool" }, { - "name": "sedated", + "name": "dismounts", "type": "bool" - } - ] - ], - "Pois": [ - "container", - [ - { - "name": "pos", - "type": "position" }, { - "name": "poiType", - "type": "varint" + "name": "sound", + "type": [ + "option", + "ItemSoundHolder" + ] }, { - "name": "freeTicketCount", - "type": "varint" - } - ] - ], - "RedstoneWireOrientations": [ - "container", - [ - { - "name": "index", - "type": "varint" + "name": "hitSound", + "type": [ + "option", + "ItemSoundHolder" + ] } ] ], - "Raids": [ + "pig/variant": "varint", + "pot_decorations": [ "container", [ { - "name": "positions", + "name": "decorations", "type": [ "array", { "countType": "varint", - "type": "position" + "type": "varint" } ] } ] ], - "Structures": [ + "potion_contents": [ "container", [ { - "name": "structures", + "name": "potionId", + "type": [ + "option", + "varint" + ] + }, + { + "name": "customColor", + "type": [ + "option", + "i32" + ] + }, + { + "name": "customEffects", "type": [ "array", { "countType": "varint", - "type": "DebugStructureInfo" + "type": "ItemPotionEffect" } ] - } - ] - ], - "GameEventListeners": [ - "container", - [ - { - "name": "listenerRadius", - "type": "varint" - } - ] - ], - "NeighborUpdates": [ - "container", - [ - { - "name": "pos", - "type": "position" - } - ] - ], - "GameEvents": [ - "container", - [ - { - "name": "event", - "type": "varint" }, { - "name": "pos", - "type": "vec3f64" - } - ] - ] - } - } - ] - } - ] - ], - "Particle": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "angry_villager", - "1": "block", - "2": "block_marker", - "3": "bubble", - "4": "cloud", - "5": "copper_fire_flame", - "6": "crit", - "7": "damage_indicator", - "8": "dragon_breath", - "9": "dripping_lava", - "10": "falling_lava", - "11": "landing_lava", - "12": "dripping_water", - "13": "falling_water", - "14": "dust", - "15": "dust_color_transition", - "16": "effect", - "17": "elder_guardian", - "18": "enchanted_hit", - "19": "enchant", - "20": "end_rod", - "21": "entity_effect", - "22": "explosion_emitter", - "23": "explosion", - "24": "gust", - "25": "small_gust", - "26": "gust_emitter_large", - "27": "gust_emitter_small", - "28": "sonic_boom", - "29": "falling_dust", - "30": "firework", - "31": "fishing", - "32": "flame", - "33": "infested", - "34": "cherry_leaves", - "35": "pale_oak_leaves", - "36": "tinted_leaves", - "37": "sculk_soul", - "38": "sculk_charge", - "39": "sculk_charge_pop", - "40": "soul_fire_flame", - "41": "soul", - "42": "flash", - "43": "happy_villager", - "44": "composter", - "45": "heart", - "46": "instant_effect", - "47": "item", - "48": "vibration", - "49": "trail", - "50": "item_slime", - "51": "item_cobweb", - "52": "item_snowball", - "53": "large_smoke", - "54": "lava", - "55": "mycelium", - "56": "note", - "57": "poof", - "58": "portal", - "59": "rain", - "60": "smoke", - "61": "white_smoke", - "62": "sneeze", - "63": "spit", - "64": "squid_ink", - "65": "sweep_attack", - "66": "totem_of_undying", - "67": "underwater", - "68": "splash", - "69": "witch", - "70": "bubble_pop", - "71": "current_down", - "72": "bubble_column_up", - "73": "nautilus", - "74": "dolphin", - "75": "campfire_cosy_smoke", - "76": "campfire_signal_smoke", - "77": "dripping_honey", - "78": "falling_honey", - "79": "landing_honey", - "80": "falling_nectar", - "81": "falling_spore_blossom", - "82": "ash", - "83": "crimson_spore", - "84": "warped_spore", - "85": "spore_blossom_air", - "86": "dripping_obsidian_tear", - "87": "falling_obsidian_tear", - "88": "landing_obsidian_tear", - "89": "reverse_portal", - "90": "white_ash", - "91": "small_flame", - "92": "snowflake", - "93": "dripping_dripstone_lava", - "94": "falling_dripstone_lava", - "95": "dripping_dripstone_water", - "96": "falling_dripstone_water", - "97": "glow_squid_ink", - "98": "glow", - "99": "wax_on", - "100": "wax_off", - "101": "electric_spark", - "102": "scrape", - "103": "shriek", - "104": "egg_crack", - "105": "dust_plume", - "106": "trial_spawner_detected_player", - "107": "trial_spawner_detected_player_ominous", - "108": "vault_connection", - "109": "dust_pillar", - "110": "ominous_spawning", - "111": "raid_omen", - "112": "trial_omen", - "113": "block_crumble", - "114": "firefly" - } - } - ] - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "block": "varint", - "block_marker": "varint", - "falling_dust": "varint", - "dust_pillar": "varint", - "block_crumble": "varint", - "dust": [ + "name": "customName", + "type": [ + "option", + "string" + ] + } + ] + ], + "potion_duration_scale": "f32", + "profile": "ResolvableProfile", + "provides_banner_patterns": "string", + "provides_trim_material": [ "container", [ { - "name": "red", - "type": "f32" + "name": "hasHolder", + "type": "bool" }, { - "name": "green", - "type": "f32" + "name": "material", + "type": [ + "switch", + { + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "materialId", + "otherwise": { + "name": "data", + "type": "ArmorTrimMaterial" + } + } + ] + } + } + ] + } + ] + ], + "rabbit/variant": "varint", + "rarity": [ + "mapper", + { + "mappings": { + "0": "common", + "1": "uncommon", + "2": "rare", + "3": "epic" }, + "type": "varint" + } + ], + "recipes": "anonymousNbt", + "repair_cost": "varint", + "repairable": [ + "container", + [ { - "name": "blue", - "type": "f32" - }, + "name": "items", + "type": "IDSet" + } + ] + ], + "salmon/size": "varint", + "sheep/color": "varint", + "shulker/color": "varint", + "stored_enchantments": [ + "container", + [ { - "name": "scale", - "type": "f32" + "name": "enchantments", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] + } + ] } ] ], - "dust_color_transition": [ + "suspicious_stew_effects": [ "container", [ { - "name": "fromRed", - "type": "f32" - }, + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "effect", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "swing_animation": [ + "container", + [ { - "name": "fromGreen", - "type": "f32" + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "none", + "1": "whack", + "2": "stab" + }, + "type": "varint" + } + ] }, { - "name": "fromBlue", - "type": "f32" - }, + "name": "duration", + "type": "varint" + } + ] + ], + "tool": [ + "container", + [ { - "name": "scale", - "type": "f32" + "name": "rules", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "blocks", + "type": "IDSet" + }, + { + "name": "speed", + "type": [ + "option", + "f32" + ] + }, + { + "name": "correctDropForBlocks", + "type": [ + "option", + "bool" + ] + } + ] + ] + } + ] }, { - "name": "toRed", + "name": "defaultMiningSpeed", "type": "f32" }, { - "name": "toGreen", - "type": "f32" + "name": "damagePerBlock", + "type": "varint" }, { - "name": "toBlue", - "type": "f32" + "name": "canDestroyBlocksInCreative", + "type": "bool" } ] ], - "entity_effect": "i32", - "item": "Slot", - "sculk_charge": "f32", - "shriek": "varint", - "vibration": [ + "tooltip_display": [ "container", [ { - "name": "positionType", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "block", - "1": "entity" - } - } - ] + "name": "hideTooltip", + "type": "bool" }, { - "name": "position", + "name": "hiddenComponents", "type": [ - "switch", + "array", { - "compareTo": "positionType", - "fields": { - "block": "position", - "entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityEyeHeight", - "type": "f32" - } - ] - ] - } + "countType": "varint", + "type": "varint" } ] - }, - { - "name": "ticks", - "type": "varint" } ] ], - "trail": [ + "tooltip_style": "string", + "trim": [ "container", [ { - "name": "target", - "type": "vec3f64" + "name": "material", + "type": [ + "registryEntryHolder", + { + "baseName": "materialId", + "otherwise": { + "name": "data", + "type": "ArmorTrimMaterial" + } + } + ] }, { - "name": "color", - "type": "u8" + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "ArmorTrimPattern" + } + } + ] } ] ], - "tinted_leaves": "i32", - "firefly": "void", - "dragon_breath": [ + "tropical_fish/base_color": "varint", + "tropical_fish/pattern": "varint", + "tropical_fish/pattern_color": "varint", + "unbreakable": "void", + "use_cooldown": [ "container", [ { - "name": "power", + "name": "seconds", "type": "f32" + }, + { + "name": "cooldownGroup", + "type": [ + "option", + "string" + ] } ] ], - "effect": [ + "use_effects": [ "container", [ { - "name": "color", - "type": "i32" + "name": "can_sprint", + "type": "bool" }, { - "name": "power", + "name": "interact_vibrations", + "type": "bool" + }, + { + "name": "speed_multiplier", "type": "f32" } ] ], - "instant_effect": [ + "use_remainder": "Slot", + "villager/variant": "varint", + "weapon": [ "container", [ { - "name": "color", - "type": "i32" + "name": "itemDamagePerAttack", + "type": "varint" }, { - "name": "power", + "name": "disableBlockingForSeconds", "type": "f32" } ] ], - "flash": "i32" - } - } - ] - } - ] - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "soundSource": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "master", - "1": "music", - "2": "record", - "3": "weather", - "4": "block", - "5": "hostile", - "6": "neutral", - "7": "player", - "8": "ambient", - "9": "voice", - "10": "ui" - } - } - ], - "packedChunkPos": [ - "container", - [ - { - "name": "z", - "type": "i32" - }, - { - "name": "x", - "type": "i32" - } - ] - ], - "previousMessages": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] - } - ] - ] - } - ], - "entityMetadataEntry": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "byte", - "1": "int", - "2": "long", - "3": "float", - "4": "string", - "5": "component", - "6": "optional_component", - "7": "item_stack", - "8": "boolean", - "9": "rotations", - "10": "block_pos", - "11": "optional_block_pos", - "12": "direction", - "13": "optional_uuid", - "14": "block_state", - "15": "optional_block_state", - "16": "particle", - "17": "particles", - "18": "villager_data", - "19": "optional_unsigned_int", - "20": "pose", - "21": "cat_variant", - "22": "cow_variant", - "23": "wolf_variant", - "24": "wolf_sound_variant", - "25": "frog_variant", - "26": "pig_variant", - "27": "chicken_variant", - "28": "zombie_nautilus_variant", - "29": "optional_global_pos", - "30": "painting_variant", - "31": "sniffer_state", - "32": "armadillo_state", - "33": "copper_golem_state", - "34": "weathering_copper_golem_state", - "35": "vector3", - "36": "quaternion", - "37": "resolvable_profile", - "38": "humanoid_arm" - } - } - ] - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "byte": "i8", - "int": "varint", - "long": "varlong", - "float": "f32", - "string": "string", - "component": "anonymousNbt", - "optional_component": [ - "option", - "anonymousNbt" - ], - "item_stack": "Slot", - "boolean": "bool", - "rotations": [ + "wolf/collar": "varint", + "wolf/sound_variant": "varint", + "wolf/variant": "varint", + "writable_book_content": [ "container", [ { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBookPage" + } + ] } - ] - ], - "block_pos": "position", - "optional_block_pos": [ - "option", - "position" - ], - "direction": "varint", - "optional_uuid": [ - "option", - "UUID" - ], - "block_state": "varint", - "optional_block_state": "optvarint", - "particle": "Particle", - "particles": [ - "array", - { - "countType": "varint", - "type": "Particle" - } + ] ], - "villager_data": [ + "written_book_content": [ "container", [ { - "name": "villagerType", - "type": "varint" + "name": "rawTitle", + "type": "string" }, { - "name": "villagerProfession", - "type": "varint" + "name": "filteredTitle", + "type": [ + "option", + "string" + ] }, { - "name": "level", + "name": "author", + "type": "string" + }, + { + "name": "generation", "type": "varint" + }, + { + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemWrittenBookPage" + } + ] + }, + { + "name": "resolved", + "type": "bool" } ] ], - "optional_unsigned_int": "optvarint", - "pose": "varint", - "cat_variant": "varint", - "cow_variant": "varint", - "wolf_variant": "varint", - "wolf_sound_variant": "varint", - "frog_variant": "varint", - "pig_variant": "varint", - "chicken_variant": "varint", - "zombie_nautilus_variant": "varint", - "optional_global_pos": [ - "option", - "GlobalPos" - ], - "painting_variant": [ + "zombie_nautilus/variant": [ "registryEntryHolder", { "baseName": "variantId", "otherwise": { "name": "variantData", - "type": "EntityMetadataPaintingVariant" - } - } - ], - "sniffer_state": "varint", - "armadillo_state": "varint", - "copper_golem_state": "varint", - "weathering_copper_golem_state": "varint", - "vector3": "vec3f", - "quaternion": "vec4f", - "resolvable_profile": "ResolvableProfile", - "humanoid_arm": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "left", - "1": "right" + "type": "string" } } ] @@ -3804,104 +3401,206 @@ } ] ], - "EntityMetadataPaintingVariant": [ + "SlotComponentType": [ + "mapper", + { + "mappings": { + "0": "custom_data", + "1": "max_stack_size", + "2": "max_damage", + "3": "damage", + "4": "unbreakable", + "5": "use_effects", + "6": "custom_name", + "7": "minimum_attack_charge", + "8": "damage_type", + "9": "item_name", + "10": "item_model", + "11": "lore", + "12": "rarity", + "13": "enchantments", + "14": "can_place_on", + "15": "can_break", + "16": "attribute_modifiers", + "17": "custom_model_data", + "18": "tooltip_display", + "19": "repair_cost", + "20": "creative_slot_lock", + "21": "enchantment_glint_override", + "22": "intangible_projectile", + "23": "food", + "24": "consumable", + "25": "use_remainder", + "26": "use_cooldown", + "27": "damage_resistant", + "28": "tool", + "29": "weapon", + "30": "attack_range", + "31": "enchantable", + "32": "equippable", + "33": "repairable", + "34": "glider", + "35": "tooltip_style", + "36": "death_protection", + "37": "blocks_attacks", + "38": "piercing_weapon", + "39": "kinetic_weapon", + "40": "swing_animation", + "41": "stored_enchantments", + "42": "dyed_color", + "43": "map_color", + "44": "map_id", + "45": "map_decorations", + "46": "map_post_processing", + "47": "charged_projectiles", + "48": "bundle_contents", + "49": "potion_contents", + "50": "potion_duration_scale", + "51": "suspicious_stew_effects", + "52": "writable_book_content", + "53": "written_book_content", + "54": "trim", + "55": "debug_stick_state", + "56": "entity_data", + "57": "bucket_entity_data", + "58": "block_entity_data", + "59": "instrument", + "60": "provides_trim_material", + "61": "ominous_bottle_amplifier", + "62": "jukebox_playable", + "63": "provides_banner_patterns", + "64": "recipes", + "65": "lodestone_tracker", + "66": "firework_explosion", + "67": "fireworks", + "68": "profile", + "69": "note_block_sound", + "70": "banner_patterns", + "71": "base_color", + "72": "pot_decorations", + "73": "container", + "74": "block_state", + "75": "bees", + "76": "lock", + "77": "container_loot", + "78": "break_sound", + "79": "villager/variant", + "80": "wolf/variant", + "81": "wolf/sound_variant", + "82": "wolf/collar", + "83": "fox/variant", + "84": "salmon/size", + "85": "parrot/variant", + "86": "tropical_fish/pattern", + "87": "tropical_fish/base_color", + "88": "tropical_fish/pattern_color", + "89": "mooshroom/variant", + "90": "rabbit/variant", + "91": "pig/variant", + "92": "cow/variant", + "93": "chicken/variant", + "94": "zombie_nautilus/variant", + "95": "frog/variant", + "96": "horse/variant", + "97": "painting/variant", + "98": "llama/variant", + "99": "axolotl/variant", + "100": "cat/variant", + "101": "cat/collar", + "102": "sheep/color", + "103": "shulker/color" + }, + "type": "varint" + } + ], + "UUID": "native", + "UntrustedSlot": [ "container", [ { - "name": "width", - "type": "i32" - }, - { - "name": "height", - "type": "i32" - }, - { - "name": "assetId", - "type": "string" - }, - { - "name": "title", - "type": [ - "option", - "anonymousNbt" - ] + "name": "itemCount", + "type": "varint" }, { - "name": "author", + "anon": true, "type": [ - "option", - "anonymousNbt" + "switch", + { + "compareTo": "itemCount", + "default": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "removedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "UntrustedSlotComponent" + } + ] + }, + { + "name": "removeComponents", + "type": [ + "array", + { + "count": "removedComponentCount", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] + } + ] + ], + "fields": { + "0": "void", + "false": "void" + } + } ] } ] ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": "entityMetadataEntry" - } - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "chunkBlockEntity": [ + "UntrustedSlotComponent": [ "container", [ - { - "anon": true, - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - }, - { - "name": "y", - "type": "i16" - }, { "name": "type", - "type": "varint" + "type": "SlotComponentType" }, { - "name": "nbtData", - "type": "anonOptionalNbt" + "name": "data", + "type": "ByteArray" } ] ], + "anonOptionalNbt": "native", + "anonymousNbt": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", "chat_session": [ "option", [ @@ -3944,171 +3643,38 @@ ] ] ], - "game_profile_name_prop": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": "GameProfileProperty" - } - ] - } - ] - ], - "GameProfile": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": "GameProfileProperty" - } - ] - } - ] - ], - "PartialResolvableProfile": [ - "container", - [ - { - "name": "name", - "type": [ - "option", - "string" - ] - }, - { - "name": "uuid", - "type": [ - "option", - "UUID" - ] - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": "GameProfileProperty" - } - ] - } - ] - ], - "GameProfileProperty": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ], - "ResolvableProfile": [ + "chunkBlockEntity": [ "container", [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "partial", - "1": "complete" - } - } - ] - }, { "anon": true, "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "partial": "PartialResolvableProfile", - "complete": "GameProfile" + "bitfield", + [ + { + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 } - } - ] - }, - { - "name": "skinPatch", - "type": "PlayerSkinPatch" - } - ] - ], - "PlayerSkinPatch": [ - "container", - [ - { - "name": "body", - "type": [ - "option", - "string" + ] ] }, { - "name": "cape", - "type": [ - "option", - "string" - ] + "name": "y", + "type": "i16" }, { - "name": "elytra", - "type": [ - "option", - "string" - ] + "name": "type", + "type": "varint" }, { - "name": "model", - "type": [ - "option", - [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "wide", - "1": "slim" - } - } - ] - ] + "name": "nbtData", + "type": "anonOptionalNbt" } ] ], @@ -4122,33 +3688,33 @@ [ { "name": "unused", - "size": 2, - "signed": false + "signed": false, + "size": 2 }, { "name": "allows_restricted", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_custom_suggestions", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_redirect_node", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "command_node_type", - "size": 2, - "signed": false + "signed": false, + "size": 2 } ] ] @@ -4169,10 +3735,10 @@ "switch", { "compareTo": "flags/has_redirect_node", + "default": "void", "fields": { "1": "varint" - }, - "default": "void" + } } ] }, @@ -4205,7 +3771,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "brigadier:bool", "1": "brigadier:float", @@ -4264,7 +3829,8 @@ "54": "minecraft:loot_modifier", "55": "minecraft:dialog", "56": "minecraft:uuid" - } + }, + "type": "varint" } ] }, @@ -4276,7 +3842,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -4286,18 +3852,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -4308,10 +3874,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -4321,16 +3887,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -4340,18 +3906,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -4362,10 +3928,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -4375,10 +3941,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -4394,18 +3960,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -4416,10 +3982,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -4429,10 +3995,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -4448,18 +4014,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -4470,10 +4036,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -4483,10 +4049,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -4495,46 +4061,54 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dialog": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", - "minecraft:item_predicate": "void", - "minecraft:color": "void", + "minecraft:gamemode": "void", + "minecraft:heightmap": "void", "minecraft:hex_color": "void", - "minecraft:component": "void", + "minecraft:int_range": "void", + "minecraft:item_predicate": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", "minecraft:nbt": "void", "minecraft:nbt_path": "void", @@ -4542,43 +4116,25 @@ "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", + "minecraft:resource": [ + "container", [ { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false + "name": "registry", + "type": "string" } ] ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:dimension": "void", - "minecraft:gamemode": "void", - "minecraft:time": [ + "minecraft:resource_key": [ "container", [ { - "name": "min", - "type": "i32" + "name": "registry", + "type": "string" } ] ], + "minecraft:resource_location": "void", "minecraft:resource_or_tag": [ "container", [ @@ -4597,7 +4153,7 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_selector": [ "container", [ { @@ -4606,49 +4162,487 @@ } ] ], - "minecraft:resource_key": [ - "container", + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", [ { - "name": "registry", - "type": "string" + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 } ] ], - "minecraft:resource_selector": [ + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:template_mirror": "void", + "minecraft:template_rotation": "void", + "minecraft:time": [ "container", [ { - "name": "registry", - "type": "string" + "name": "min", + "type": "i32" } ] ], - "minecraft:template_mirror": "void", - "minecraft:template_rotation": "void", - "minecraft:heightmap": "void", - "minecraft:dialog": "void", - "minecraft:uuid": "void" + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" + } + } + ] + }, + { + "name": "suggestionType", + "type": [ + "switch", + { + "compareTo": "../flags/has_custom_suggestions", + "default": "void", + "fields": { + "1": "string" } } - ] - }, - { - "name": "suggestionType", - "type": [ - "switch", - { - "compareTo": "../flags/has_custom_suggestions", - "fields": { - "1": "string" - }, - "default": "void" + ] + } + ] + ] + } + } + ] + } + ] + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": "entityMetadataEntry" + } + ], + "entityMetadataEntry": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "particle", + "17": "particles", + "18": "villager_data", + "19": "optional_unsigned_int", + "20": "pose", + "21": "cat_variant", + "22": "cow_variant", + "23": "wolf_variant", + "24": "wolf_sound_variant", + "25": "frog_variant", + "26": "pig_variant", + "27": "chicken_variant", + "28": "zombie_nautilus_variant", + "29": "optional_global_pos", + "30": "painting_variant", + "31": "sniffer_state", + "32": "armadillo_state", + "33": "copper_golem_state", + "34": "weathering_copper_golem_state", + "35": "vector3", + "36": "quaternion", + "37": "resolvable_profile", + "38": "humanoid_arm" + }, + "type": "varint" + } + ] + }, + { + "name": "value", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "armadillo_state": "varint", + "block_pos": "position", + "block_state": "varint", + "boolean": "bool", + "byte": "i8", + "cat_variant": "varint", + "chicken_variant": "varint", + "component": "anonymousNbt", + "copper_golem_state": "varint", + "cow_variant": "varint", + "direction": "varint", + "float": "f32", + "frog_variant": "varint", + "humanoid_arm": [ + "mapper", + { + "mappings": { + "0": "left", + "1": "right" + }, + "type": "varint" + } + ], + "int": "varint", + "item_stack": "Slot", + "long": "varlong", + "optional_block_pos": [ + "option", + "position" + ], + "optional_block_state": "optvarint", + "optional_component": [ + "option", + "anonymousNbt" + ], + "optional_global_pos": [ + "option", + "GlobalPos" + ], + "optional_unsigned_int": "optvarint", + "optional_uuid": [ + "option", + "UUID" + ], + "painting_variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "EntityMetadataPaintingVariant" + } + } + ], + "particle": "Particle", + "particles": [ + "array", + { + "countType": "varint", + "type": "Particle" + } + ], + "pig_variant": "varint", + "pose": "varint", + "quaternion": "vec4f", + "resolvable_profile": "ResolvableProfile", + "rotations": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "sniffer_state": "varint", + "string": "string", + "vector3": "vec3f", + "villager_data": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "weathering_copper_golem_state": "varint", + "wolf_sound_variant": "varint", + "wolf_variant": "varint", + "zombie_nautilus_variant": "varint" + } + } + ] + } + ] + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "game_profile_name_prop": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": "GameProfileProperty" + } + ] + } + ] + ], + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ], + "lpVec3": "native", + "option": "native", + "optvarint": "varint", + "packedChunkPos": [ + "container", + [ + { + "name": "z", + "type": "i32" + }, + { + "name": "x", + "type": "i32" + } + ] + ], + "packet_common_add_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "url", + "type": "string" + }, + { + "name": "hash", + "type": "string" + }, + { + "name": "forced", + "type": "bool" + }, + { + "name": "promptMessage", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ], + "packet_common_clear_dialog": [ + "container", + [] + ], + "packet_common_cookie_request": [ + "container", + [ + { + "name": "cookie", + "type": "string" + } + ] + ], + "packet_common_cookie_response": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "ByteArray" + ] + } + ] + ], + "packet_common_custom_click_action": [ + "container", + [ + { + "name": "id", + "type": "string" + }, + { + "name": "nbt", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ], + "packet_common_custom_report_details": [ + "container", + [ + { + "name": "details", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + } + ] + ], + "packet_common_remove_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": [ + "option", + "UUID" + ] + } + ] + ], + "packet_common_select_known_packs": [ + "container", + [ + { + "name": "packs", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "namespace", + "type": "string" + }, + { + "name": "id", + "type": "string" + }, + { + "name": "version", + "type": "string" + } + ] + ] + } + ] + } + ] + ], + "packet_common_server_links": [ + "container", + [ + { + "name": "links", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "hasKnownType", + "type": "bool" + }, + { + "name": "knownType", + "type": [ + "switch", + { + "compareTo": "hasKnownType", + "fields": { + "true": "ServerLinkType" + } + } + ] + }, + { + "name": "unknownType", + "type": [ + "switch", + { + "compareTo": "hasKnownType", + "fields": { + "false": "anonymousNbt" } - ] - } - ] + } + ] + }, + { + "name": "link", + "type": "string" + } ] - } + ] } ] } @@ -4694,26 +4688,17 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "all", "1": "decreased", "2": "minimal" - } + }, + "type": "varint" } ] } ] ], - "packet_common_cookie_request": [ - "container", - [ - { - "name": "cookie", - "type": "string" - } - ] - ], "packet_common_store_cookie": [ "container", [ @@ -4740,209 +4725,224 @@ } ] ], - "packet_common_cookie_response": [ - "container", + "position": [ + "bitfield", [ { - "name": "key", - "type": "string" + "name": "x", + "signed": true, + "size": 26 }, { - "name": "value", - "type": [ - "option", - "ByteArray" - ] + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 } ] ], - "packet_common_select_known_packs": [ - "container", - [ - { - "name": "packs", - "type": [ - "array", + "previousMessages": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ { - "countType": "varint", + "name": "id", + "type": "varint" + }, + { + "name": "signature", "type": [ - "container", - [ - { - "name": "namespace", - "type": "string" - }, - { - "name": "id", - "type": "string" - }, - { - "name": "version", - "type": "string" + "switch", + { + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] } - ] + } ] } ] - } - ] + ] + } ], - "packet_common_custom_report_details": [ - "container", - [ - { - "name": "details", - "type": [ - "array", + "pstring": "native", + "registryEntryHolder": "native", + "registryEntryHolderSet": "native", + "restBuffer": "native", + "soundSource": [ + "mapper", + { + "mappings": { + "0": "master", + "1": "music", + "2": "record", + "3": "weather", + "4": "block", + "5": "hostile", + "6": "neutral", + "7": "player", + "8": "ambient", + "9": "voice", + "10": "ui" + }, + "type": "varint" + } + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ { - "countType": "varint", + "name": "tagName", + "type": "string" + }, + { + "name": "entries", "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] + "array", + { + "countType": "varint", + "type": "varint" + } ] } ] - } - ] + ] + } ], - "packet_common_remove_resource_pack": [ + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec2f": [ "container", [ { - "name": "uuid", - "type": [ - "option", - "UUID" - ] + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" } ] ], - "packet_common_add_resource_pack": [ + "vec3f": [ "container", [ { - "name": "uuid", - "type": "UUID" + "name": "x", + "type": "f32" }, { - "name": "url", - "type": "string" + "name": "y", + "type": "f32" }, { - "name": "hash", - "type": "string" + "name": "z", + "type": "f32" + } + ] + ], + "vec3f64": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "forced", - "type": "bool" + "name": "y", + "type": "f64" }, { - "name": "promptMessage", - "type": [ - "option", - "anonymousNbt" - ] + "name": "z", + "type": "f64" } ] ], - "ServerLinkType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "bug_report", - "1": "community_guidelines", - "2": "support", - "3": "status", - "4": "feedback", - "5": "community", - "6": "website", - "7": "forums", - "8": "news", - "9": "announcements" - } - } - ], - "packet_common_server_links": [ + "vec3i": [ "container", [ { - "name": "links", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "hasKnownType", - "type": "bool" - }, - { - "name": "knownType", - "type": [ - "switch", - { - "compareTo": "hasKnownType", - "fields": { - "true": "ServerLinkType" - } - } - ] - }, - { - "name": "unknownType", - "type": [ - "switch", - { - "compareTo": "hasKnownType", - "fields": { - "false": "anonymousNbt" - } - } - ] - }, - { - "name": "link", - "type": "string" - } - ] - ] - } - ] + "name": "x", + "type": "varint" + }, + { + "name": "y", + "type": "varint" + }, + { + "name": "z", + "type": "varint" } ] ], - "packet_common_clear_dialog": [ + "vec3i32": [ "container", - [] + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + } + ] ], - "packet_common_custom_click_action": [ + "vec4f": [ "container", [ { - "name": "id", - "type": "string" + "name": "x", + "type": "f32" }, { - "name": "nbt", - "type": [ - "option", - "anonymousNbt" - ] + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "w", + "type": "f32" } ] - ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -4955,8 +4955,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -4976,6 +4976,46 @@ }, "toServer": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", + [ + { + "name": "payload", + "type": "u8" + } + ] + ], "packet_set_protocol": [ "container", [ @@ -4996,16 +5036,13 @@ "type": "varint" } ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -5014,11 +5051,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -5029,38 +5066,36 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_ping": [ + "packet_server_info": [ "container", [ { - "name": "time", - "type": "i64" + "name": "response", + "type": "string" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -5069,11 +5104,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "server_info", + "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -5084,21 +5119,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -5109,6 +5136,16 @@ } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -5117,11 +5154,15 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request", + "0x05": "cookie_request" + }, + "type": "varint" } ] }, @@ -5132,20 +5173,27 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "compress": "packet_compress", + "cookie_request": "packet_common_cookie_request", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -5186,6 +5234,23 @@ } ] ], + "packet_login_plugin_request": [ + "container", + [ + { + "name": "messageId", + "type": "varint" + }, + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], "packet_success": [ "container", [ @@ -5227,33 +5292,11 @@ ] } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], - "packet_login_plugin_request": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -5262,15 +5305,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", + "0x00": "login_start", "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request", - "0x05": "cookie_request" - } + "0x02": "login_plugin_response", + "0x03": "login_acknowledged", + "0x04": "cookie_response" + }, + "type": "varint" } ] }, @@ -5281,34 +5323,16 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", + "cookie_response": "packet_common_cookie_response", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request", - "cookie_request": "packet_common_cookie_request" + "login_acknowledged": "packet_login_acknowledged", + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - }, - { - "name": "playerUUID", - "type": "UUID" - } - ] ], "packet_encryption_begin": [ "container", @@ -5333,6 +5357,10 @@ } ] ], + "packet_login_acknowledged": [ + "container", + [] + ], "packet_login_plugin_response": [ "container", [ @@ -5349,10 +5377,25 @@ } ] ], - "packet_login_acknowledged": [ + "packet_login_start": [ "container", - [] - ], + [ + { + "name": "username", + "type": "string" + }, + { + "name": "playerUUID", + "type": "UUID" + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { "packet": [ "container", [ @@ -5361,14 +5404,29 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response", - "0x03": "login_acknowledged", - "0x04": "cookie_response" - } + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links", + "0x11": "clear_dialog", + "0x12": "show_dialog", + "0x13": "code_of_conduct" + }, + "type": "varint" } ] }, @@ -5379,23 +5437,32 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response", - "login_acknowledged": "packet_login_acknowledged", - "cookie_response": "packet_common_cookie_response" + "add_resource_pack": "packet_common_add_resource_pack", + "clear_dialog": "packet_common_clear_dialog", + "code_of_conduct": "packet_code_of_conduct", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "show_dialog": "packet_show_dialog", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" } } ] } ] - ] - } - } - }, - "configuration": { - "toClient": { - "types": { + ], "packet_code_of_conduct": [ "container", [ @@ -5427,6 +5494,21 @@ } ] ], + "packet_feature_flags": [ + "container", + [ + { + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], "packet_finish_configuration": [ "container", [] @@ -5449,10 +5531,6 @@ } ] ], - "packet_reset_chat": [ - "container", - [] - ], "packet_registry_data": [ "container", [ @@ -5487,18 +5565,16 @@ } ] ], - "packet_feature_flags": [ + "packet_reset_chat": [ + "container", + [] + ], + "packet_show_dialog": [ "container", [ { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "dialog", + "type": "anonymousNbt" } ] ], @@ -5528,16 +5604,11 @@ ] } ] - ], - "packet_show_dialog": [ - "container", - [ - { - "name": "dialog", - "type": "anonymousNbt" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -5546,29 +5617,19 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", "0x03": "finish_configuration", "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links", - "0x11": "clear_dialog", - "0x12": "show_dialog", - "0x13": "code_of_conduct" - } + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_click_action", + "0x09": "accept_code_of_conduct" + }, + "type": "varint" } ] }, @@ -5579,36 +5640,22 @@ { "compareTo": "name", "fields": { - "cookie_request": "packet_common_cookie_request", + "accept_code_of_conduct": "packet_accept_code_of_conduct", + "cookie_response": "packet_common_cookie_response", + "custom_click_action": "packet_common_custom_click_action", "custom_payload": "packet_custom_payload", - "disconnect": "packet_disconnect", "finish_configuration": "packet_finish_configuration", "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "reset_chat": "packet_reset_chat", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "store_cookie": "packet_common_store_cookie", - "transfer": "packet_common_transfer", - "feature_flags": "packet_feature_flags", - "tags": "packet_tags", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", "select_known_packs": "packet_common_select_known_packs", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links", - "clear_dialog": "packet_common_clear_dialog", - "show_dialog": "packet_show_dialog", - "code_of_conduct": "packet_code_of_conduct" + "settings": "packet_common_settings" } } ] } - ] - ] - } - }, - "toServer": { - "types": { + ] + ], "packet_accept_code_of_conduct": [ "container", [] @@ -5660,60 +5707,287 @@ "type": "varint" } ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "ChatType": [ + "container", + [ + { + "name": "translationKey", + "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "ChatTypeParameterType" + } + ] + }, + { + "name": "style", + "type": "anonymousNbt" + } + ] ], - "packet": [ + "ChatTypeParameterType": [ + "mapper", + { + "mappings": { + "0": "content", + "1": "sender", + "2": "target" + }, + "type": "varint" + } + ], + "ChatTypes": [ "container", [ { - "name": "name", + "name": "chat", + "type": "ChatType" + }, + { + "name": "narration", + "type": "ChatType" + } + ] + ], + "ChatTypesHolder": [ + "registryEntryHolder", + { + "baseName": "chatType", + "otherwise": { + "name": "data", + "type": "ChatTypes" + } + } + ], + "ExplosionParticleEntry": [ + "container", + [ + { + "name": "data", + "type": "ExplosionParticleInfo" + }, + { + "name": "weight", + "type": "varint" + } + ] + ], + "ExplosionParticleInfo": [ + "container", + [ + { + "name": "particle", + "type": "Particle" + }, + { + "name": "scaling", + "type": "f32" + }, + { + "name": "speed", + "type": "f32" + } + ] + ], + "PositionUpdateRelatives": [ + "bitflags", + { + "flags": [ + "x", + "y", + "z", + "yaw", + "pitch", + "dx", + "dy", + "dz", + "yawDelta" + ], + "type": "u32" + } + ], + "RecipeBookSetting": [ + "container", + [ + { + "name": "open", + "type": "bool" + }, + { + "name": "filtering", + "type": "bool" + } + ] + ], + "RecipeDisplay": [ + "container", + [ + { + "name": "type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_click_action", - "0x09": "accept_code_of_conduct" - } + "0": "crafting_shapeless", + "1": "crafting_shaped", + "2": "furnace", + "3": "stonecutter", + "4": "smithing" + }, + "type": "varint" } ] }, { - "name": "params", + "name": "data", "type": [ "switch", { - "compareTo": "name", + "compareTo": "type", "fields": { - "settings": "packet_common_settings", - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "custom_click_action": "packet_common_custom_click_action", - "accept_code_of_conduct": "packet_accept_code_of_conduct" + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ] + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "crafting_shapeless": [ + "container", + [ + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ] + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "furnace": [ + "container", + [ + { + "name": "ingredient", + "type": "SlotDisplay" + }, + { + "name": "fuel", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "experience", + "type": "f32" + } + ] + ], + "smithing": [ + "container", + [ + { + "name": "template", + "type": "SlotDisplay" + }, + { + "name": "base", + "type": "SlotDisplay" + }, + { + "name": "addition", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "stonecutter": [ + "container", + [ + { + "name": "ingredient", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ] } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { + ], "SlotDisplay": [ "container", [ @@ -5722,7 +5996,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "empty", "1": "any_fuel", @@ -5732,7 +6005,8 @@ "5": "smithing_trim", "6": "with_remainder", "7": "composite" - } + }, + "type": "varint" } ] }, @@ -5743,11 +6017,17 @@ { "compareTo": "type", "fields": { - "empty": "void", "any_fuel": "void", + "composite": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ], + "empty": "void", "item": "varint", "item_stack": "Slot", - "tag": "string", "smithing_trim": [ "container", [ @@ -5774,6 +6054,7 @@ } ] ], + "tag": "string", "with_remainder": [ "container", [ @@ -5786,13 +6067,6 @@ "type": "SlotDisplay" } ] - ], - "composite": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } ] } } @@ -5800,289 +6074,553 @@ } ] ], - "RecipeDisplay": [ + "SpawnInfo": [ "container", [ { - "name": "type", + "name": "dimension", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "hashedSeed", + "type": "i64" + }, + { + "name": "gamemode", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "crafting_shapeless", - "1": "crafting_shaped", - "2": "furnace", - "3": "stonecutter", - "4": "smithing" - } + "0": "survival", + "1": "creative", + "2": "adventure", + "3": "spectator" + }, + "type": "i8" + } + ] + }, + { + "name": "previousGamemode", + "type": "u8" + }, + { + "name": "isDebug", + "type": "bool" + }, + { + "name": "isFlat", + "type": "bool" + }, + { + "name": "death", + "type": [ + "option", + "GlobalPos" + ] + }, + { + "name": "portalCooldown", + "type": "varint" + }, + { + "name": "seaLevel", + "type": "varint" + } + ] + ], + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "animation", + "0x03": "statistics", + "0x04": "acknowledge_player_digging", + "0x05": "block_break_animation", + "0x06": "tile_entity_data", + "0x07": "block_action", + "0x08": "block_change", + "0x09": "boss_bar", + "0x0a": "difficulty", + "0x0b": "chunk_batch_finished", + "0x0c": "chunk_batch_start", + "0x0d": "chunk_biomes", + "0x0e": "clear_titles", + "0x0f": "tab_complete", + "0x10": "declare_commands", + "0x11": "close_window", + "0x12": "window_items", + "0x13": "craft_progress_bar", + "0x14": "set_slot", + "0x15": "cookie_request", + "0x16": "set_cooldown", + "0x17": "chat_suggestions", + "0x18": "custom_payload", + "0x19": "damage_event", + "0x1a": "debug_block_value", + "0x1b": "debug_chunk_value", + "0x1c": "debug_entity_value", + "0x1d": "debug_event", + "0x1e": "debug_sample", + "0x1f": "hide_message", + "0x20": "kick_disconnect", + "0x21": "profileless_chat", + "0x22": "entity_status", + "0x23": "sync_entity_position", + "0x24": "explosion", + "0x25": "unload_chunk", + "0x26": "game_state_change", + "0x27": "game_test_highlight_pos", + "0x28": "open_horse_window", + "0x29": "hurt_animation", + "0x2a": "initialize_world_border", + "0x2b": "keep_alive", + "0x2c": "map_chunk", + "0x2d": "world_event", + "0x2e": "world_particles", + "0x2f": "update_light", + "0x30": "login", + "0x31": "map", + "0x32": "trade_list", + "0x33": "rel_entity_move", + "0x34": "entity_move_look", + "0x35": "move_minecart", + "0x36": "entity_look", + "0x37": "vehicle_move", + "0x38": "open_book", + "0x39": "open_window", + "0x3a": "open_sign_entity", + "0x3b": "ping", + "0x3c": "ping_response", + "0x3d": "craft_recipe_response", + "0x3e": "abilities", + "0x3f": "player_chat", + "0x40": "end_combat_event", + "0x41": "enter_combat_event", + "0x42": "death_combat_event", + "0x43": "player_remove", + "0x44": "player_info", + "0x45": "face_player", + "0x46": "position", + "0x47": "player_rotation", + "0x48": "recipe_book_add", + "0x49": "recipe_book_remove", + "0x4a": "recipe_book_settings", + "0x4b": "entity_destroy", + "0x4c": "remove_entity_effect", + "0x4d": "reset_score", + "0x4e": "remove_resource_pack", + "0x4f": "add_resource_pack", + "0x50": "respawn", + "0x51": "entity_head_rotation", + "0x52": "multi_block_change", + "0x53": "select_advancement_tab", + "0x54": "server_data", + "0x55": "action_bar", + "0x56": "world_border_center", + "0x57": "world_border_lerp_size", + "0x58": "world_border_size", + "0x59": "world_border_warning_delay", + "0x5a": "world_border_warning_reach", + "0x5b": "camera", + "0x5c": "update_view_position", + "0x5d": "update_view_distance", + "0x5e": "set_cursor_item", + "0x5f": "spawn_position", + "0x60": "scoreboard_display_objective", + "0x61": "entity_metadata", + "0x62": "attach_entity", + "0x63": "entity_velocity", + "0x64": "entity_equipment", + "0x65": "experience", + "0x66": "update_health", + "0x67": "held_item_slot", + "0x68": "scoreboard_objective", + "0x69": "set_passengers", + "0x6a": "set_player_inventory", + "0x6b": "teams", + "0x6c": "scoreboard_score", + "0x6d": "simulation_distance", + "0x6e": "set_title_subtitle", + "0x6f": "update_time", + "0x70": "set_title_text", + "0x71": "set_title_time", + "0x72": "entity_sound_effect", + "0x73": "sound_effect", + "0x74": "start_configuration", + "0x75": "stop_sound", + "0x76": "store_cookie", + "0x77": "system_chat", + "0x78": "playerlist_header", + "0x79": "nbt_query_response", + "0x7a": "collect", + "0x7b": "entity_teleport", + "0x7c": "test_instance_block_status", + "0x7d": "set_ticking_state", + "0x7e": "step_tick", + "0x7f": "transfer", + "0x80": "advancements", + "0x81": "entity_update_attributes", + "0x82": "entity_effect", + "0x83": "declare_recipes", + "0x84": "tags", + "0x85": "set_projectile_power", + "0x86": "custom_report_details", + "0x87": "server_links", + "0x88": "tracked_waypoint", + "0x89": "clear_dialog", + "0x8a": "show_dialog" + }, + "type": "varint" } ] }, { - "name": "data", + "name": "params", "type": [ "switch", { - "compareTo": "type", + "compareTo": "name", "fields": { - "crafting_shapeless": [ - "container", - [ - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "furnace": [ - "container", - [ - { - "name": "ingredient", - "type": "SlotDisplay" - }, - { - "name": "fuel", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "experience", - "type": "f32" - } - ] - ], - "stonecutter": [ - "container", - [ - { - "name": "ingredient", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "smithing": [ - "container", - [ - { - "name": "template", - "type": "SlotDisplay" - }, - { - "name": "base", - "type": "SlotDisplay" - }, - { - "name": "addition", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ] + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "add_resource_pack": "packet_common_add_resource_pack", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "bundle_delimiter": "void", + "camera": "packet_camera", + "chat_suggestions": "packet_chat_suggestions", + "chunk_batch_finished": "packet_chunk_batch_finished", + "chunk_batch_start": "packet_chunk_batch_start", + "chunk_biomes": "packet_chunk_biomes", + "clear_dialog": "packet_common_clear_dialog", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "cookie_request": "packet_common_cookie_request", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "damage_event": "packet_damage_event", + "death_combat_event": "packet_death_combat_event", + "debug_block_value": "packet_debug_block_value", + "debug_chunk_value": "packet_debug_chunk_value", + "debug_entity_value": "packet_debug_entity_value", + "debug_event": "packet_debug_event", + "debug_sample": "packet_debug_sample", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "game_test_highlight_pos": "packet_game_test_highlight_pos", + "held_item_slot": "packet_held_item_slot", + "hide_message": "packet_hide_message", + "hurt_animation": "packet_hurt_animation", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "move_minecart": "packet_move_minecart", + "multi_block_change": "packet_multi_block_change", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "ping_response": "packet_ping_response", + "player_chat": "packet_player_chat", + "player_info": "packet_player_info", + "player_remove": "packet_player_remove", + "player_rotation": "packet_player_rotation", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "profileless_chat": "packet_profileless_chat", + "recipe_book_add": "packet_recipe_book_add", + "recipe_book_remove": "packet_recipe_book_remove", + "recipe_book_settings": "packet_recipe_book_settings", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_score": "packet_reset_score", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "server_data": "packet_server_data", + "server_links": "packet_common_server_links", + "set_cooldown": "packet_set_cooldown", + "set_cursor_item": "packet_set_cursor_item", + "set_passengers": "packet_set_passengers", + "set_player_inventory": "packet_set_player_inventory", + "set_projectile_power": "packet_set_projectile_power", + "set_slot": "packet_set_slot", + "set_ticking_state": "packet_set_ticking_state", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "show_dialog": "packet_show_dialog", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_position": "packet_spawn_position", + "start_configuration": "packet_start_configuration", + "statistics": "packet_statistics", + "step_tick": "packet_step_tick", + "stop_sound": "packet_stop_sound", + "store_cookie": "packet_common_store_cookie", + "sync_entity_position": "packet_sync_entity_position", + "system_chat": "packet_system_chat", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "test_instance_block_status": "packet_test_instance_block_status", + "tile_entity_data": "packet_tile_entity_data", + "tracked_waypoint": "packet_tracked_waypoint", + "trade_list": "packet_trade_list", + "transfer": "packet_common_transfer", + "unload_chunk": "packet_unload_chunk", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" } } ] } ] ], - "SpawnInfo": [ + "packet_abilities": [ "container", [ { - "name": "dimension", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "hashedSeed", - "type": "i64" - }, - { - "name": "gamemode", - "type": [ - "mapper", - { - "type": "i8", - "mappings": { - "0": "survival", - "1": "creative", - "2": "adventure", - "3": "spectator" - } - } - ] - }, - { - "name": "previousGamemode", - "type": "u8" - }, - { - "name": "isDebug", - "type": "bool" - }, - { - "name": "isFlat", - "type": "bool" - }, - { - "name": "death", - "type": [ - "option", - "GlobalPos" - ] + "name": "flags", + "type": "i8" }, { - "name": "portalCooldown", - "type": "varint" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "seaLevel", - "type": "varint" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", + "name": "sequenceId", "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "velocity", - "type": "lpVec3" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, + } + ] + ], + "packet_action_bar": [ + "container", + [ { - "name": "objectData", - "type": "varint" + "name": "text", + "type": "anonymousNbt" } ] ], - "packet_animation": [ + "packet_advancements": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "reset", + "type": "bool" + }, + { + "name": "advancementMapping", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "container", + [ + { + "name": "parentId", + "type": [ + "option", + "string" + ] + }, + { + "name": "displayData", + "type": [ + "option", + [ + "container", + [ + { + "name": "title", + "type": "anonymousNbt" + }, + { + "name": "description", + "type": "anonymousNbt" + }, + { + "name": "icon", + "type": "Slot" + }, + { + "name": "frameType", + "type": "varint" + }, + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 29 + }, + { + "name": "hidden", + "signed": false, + "size": 1 + }, + { + "name": "show_toast", + "signed": false, + "size": 1 + }, + { + "name": "has_background_texture", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "backgroundTexture", + "type": [ + "switch", + { + "compareTo": "flags/has_background_texture", + "default": "void", + "fields": { + "1": "string" + } + } + ] + }, + { + "name": "xCord", + "type": "f32" + }, + { + "name": "yCord", + "type": "f32" + } + ] + ] + ] + }, + { + "name": "requirements", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + }, + { + "name": "sendsTelemtryData", + "type": "bool" + } + ] + ] + } + ] + ] + } + ] + }, + { + "name": "identifiers", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", + "name": "progressMapping", "type": [ "array", { @@ -6091,34 +6629,46 @@ "container", [ { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" + "name": "key", + "type": "string" }, { "name": "value", - "type": "varint" + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "criterionIdentifier", + "type": "string" + }, + { + "name": "criterionProgress", + "type": [ + "option", + "i64" + ] + } + ] + ] + } + ] } ] ] } ] - } - ] - ], - "packet_acknowledge_player_digging": [ - "container", - [ + }, { - "name": "sequenceId", - "type": "varint" + "name": "showAdvancements", + "type": "bool" } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -6126,29 +6676,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "anonOptionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -6173,6 +6715,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -6203,11 +6762,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "anonymousNbt", "3": "anonymousNbt" - }, - "default": "void" + } } ] }, @@ -6217,11 +6776,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -6231,11 +6790,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -6245,11 +6804,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -6259,37 +6818,41 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat_suggestions": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "entries", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0": "peaceful", - "1": "easy", - "2": "normal", - "3": "hard" - } + "countType": "varint", + "type": "string" } ] - }, - { - "name": "difficultyLocked", - "type": "bool" } ] ], @@ -6342,67 +6905,6 @@ } ] ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", - "type": "varint" - }, - { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] - } - ] - ], - "packet_declare_commands": [ - "container", - [ - { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] - }, - { - "name": "rootIndex", - "type": "varint" - } - ] - ], "packet_close_window": [ "container", [ @@ -6412,100 +6914,50 @@ } ] ], - "packet_window_items": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - }, - { - "name": "carriedItem", - "type": "Slot" - } - ] - ], - "packet_craft_progress_bar": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "property", - "type": "i16" - }, - { - "name": "value", - "type": "i16" - } - ] - ], - "packet_set_slot": [ + "packet_collect": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", + "name": "collectedEntityId", "type": "varint" }, - { - "name": "slot", - "type": "i16" + { + "name": "collectorEntityId", + "type": "varint" }, { - "name": "item", - "type": "Slot" + "name": "pickupItemCount", + "type": "varint" } ] ], - "packet_set_cooldown": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "cooldownGroup", - "type": "string" + "name": "windowId", + "type": "ContainerID" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" } ] ], - "packet_chat_suggestions": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "action", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "recipeDisplay", + "type": "RecipeDisplay" } ] ], @@ -6550,6 +7002,19 @@ } ] ], + "packet_death_combat_event": [ + "container", + [ + { + "name": "playerId", + "type": "varint" + }, + { + "name": "message", + "type": "anonymousNbt" + } + ] + ], "packet_debug_block_value": [ "container", [ @@ -6617,120 +7082,293 @@ } ] ], - "packet_hide_message": [ + "packet_declare_commands": [ "container", [ { - "name": "id", + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] + }, + { + "name": "rootIndex", "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "items", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ] }, { - "name": "signature", + "name": "stoneCutterRecipes", "type": [ - "switch", + "array", { - "compareTo": "id", - "fields": { - "0": [ - "buffer", + "countType": "varint", + "type": [ + "container", + [ { - "count": 256 + "name": "input", + "type": "IDSet" + }, + { + "name": "slotDisplay", + "type": "SlotDisplay" } ] + ] + } + ] + } + ] + ], + "packet_difficulty": [ + "container", + [ + { + "name": "difficulty", + "type": [ + "mapper", + { + "mappings": { + "0": "peaceful", + "1": "easy", + "2": "normal", + "3": "hard" }, - "default": "void" + "type": "varint" } ] + }, + { + "name": "difficultyLocked", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_end_combat_event": [ "container", [ { - "name": "reason", - "type": "anonymousNbt" + "name": "duration", + "type": "varint" } ] ], - "ChatTypeParameterType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "content", - "1": "sender", - "2": "target" + "packet_enter_combat_event": [ + "container", + [] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "packet_entity_effect": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "effectId", + "type": "varint" + }, + { + "name": "amplifier", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] + ], + "packet_entity_equipment": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "equipments", + "type": [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "Slot" + } + ] + ] + } + ] + } + ] + ], + "packet_entity_head_rotation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } - } + ] ], - "ChatType": [ + "packet_entity_metadata": [ "container", [ { - "name": "translationKey", - "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "ChatTypeParameterType" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "style", - "type": "anonymousNbt" + "name": "metadata", + "type": "entityMetadata" } ] ], - "ChatTypes": [ + "packet_entity_move_look": [ "container", [ { - "name": "chat", - "type": "ChatType" + "name": "entityId", + "type": "varint" }, { - "name": "narration", - "type": "ChatType" + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "ChatTypesHolder": [ - "registryEntryHolder", - { - "baseName": "chatType", - "otherwise": { - "name": "data", - "type": "ChatTypes" - } - } - ], - "packet_profileless_chat": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "message", - "type": "anonymousNbt" + "name": "sound", + "type": "ItemSoundHolder" }, { - "name": "type", - "type": "ChatTypesHolder" + "name": "soundCategory", + "type": "soundSource" }, { - "name": "name", - "type": "anonymousNbt" + "name": "entityId", + "type": "varint" }, { - "name": "target", - "type": [ - "option", - "anonymousNbt" - ] + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], @@ -6747,7 +7385,7 @@ } ] ], - "packet_sync_entity_position": [ + "packet_entity_teleport": [ "container", [ { @@ -6766,25 +7404,13 @@ "name": "z", "type": "f64" }, - { - "name": "dx", - "type": "f64" - }, - { - "name": "dy", - "type": "f64" - }, - { - "name": "dz", - "type": "f64" - }, { "name": "yaw", - "type": "f32" + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" }, { "name": "onGround", @@ -6792,32 +7418,127 @@ } ] ], - "ExplosionParticleInfo": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "particle", - "type": "Particle" + "name": "entityId", + "type": "varint" }, { - "name": "scaling", - "type": "f32" + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": [ + "mapper", + { + "mappings": { + "0": "generic.armor", + "1": "generic.armor_toughness", + "2": "generic.attack_damage", + "3": "generic.attack_knockback", + "4": "generic.attack_speed", + "5": "player.block_break_speed", + "6": "player.block_interaction_range", + "7": "burning_time", + "8": "camera_distance", + "9": "explosion_knockback_resistance", + "10": "player.entity_interaction_range", + "11": "generic.fall_damage_multiplier", + "12": "generic.flying_speed", + "13": "generic.follow_range", + "14": "generic.gravity", + "15": "generic.jump_strength", + "16": "generic.knockback_resistance", + "17": "generic.luck", + "18": "generic.max_absorption", + "19": "generic.max_health", + "20": "generic.movement_speed", + "21": "generic.safe_fall_distance", + "22": "generic.scale", + "23": "zombie.spawn_reinforcements", + "24": "generic.step_height", + "25": "submerged_mining_speed", + "26": "sweeping_damage_ratio", + "27": "tempt_range", + "28": "water_movement_efficiency", + "29": "waypoint_transmit_range", + "30": "waypoint_receive_range" + }, + "type": "varint" + } + ] + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] + } + ] + ], + "packet_entity_velocity": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "speed", - "type": "f32" + "name": "velocity", + "type": "lpVec3" } ] ], - "ExplosionParticleEntry": [ + "packet_experience": [ "container", [ { - "name": "data", - "type": "ExplosionParticleInfo" + "name": "experienceBar", + "type": "f32" }, { - "name": "weight", + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", "type": "varint" } ] @@ -6864,16 +7585,54 @@ } ] ], - "packet_unload_chunk": [ + "packet_face_player": [ "container", [ { - "name": "chunkZ", - "type": "i32" + "name": "feet_eyes", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "isEntity", + "type": "bool" + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "chunkX", - "type": "i32" + "name": "entity_feet_eyes", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] } ] ], @@ -6885,7 +7644,6 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "no_respawn_block_available", "1": "start_raining", @@ -6901,7 +7659,8 @@ "11": "immediate_respawn", "12": "limited_crafting", "13": "level_chunks_load_start" - } + }, + "type": "u8" } ] }, @@ -6924,374 +7683,107 @@ } ] ], - "packet_open_horse_window": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "nbSlots", - "type": "varint" - }, - { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_hurt_animation": [ + "packet_held_item_slot": [ "container", [ { - "name": "entityId", + "name": "slot", "type": "varint" - }, - { - "name": "yaw", - "type": "f32" } ] ], - "packet_initialize_world_border": [ + "packet_hide_message": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "oldDiameter", - "type": "f64" - }, - { - "name": "newDiameter", - "type": "f64" - }, - { - "name": "speed", - "type": "varint" - }, - { - "name": "portalTeleportBoundary", - "type": "varint" - }, - { - "name": "warningBlocks", - "type": "varint" - }, - { - "name": "warningTime", + "name": "id", "type": "varint" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_map_chunk": [ - "container", - [ - { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" }, { - "name": "heightmaps", + "name": "signature", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "world_surface_wg", - "1": "world_surface", - "2": "ocean_floor_wg", - "3": "ocean_floor", - "4": "motion_blocking", - "5": "motion_blocking_no_leaves" - } - } - ] - }, + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", { - "name": "data", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "count": 256 } ] - ] - } - ] - }, - { - "name": "chunkData", - "type": "ByteArray" - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "chunkBlockEntity" - } - ] - }, - { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] - }, - { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] + } } ] } ] ], - "packet_world_event": [ + "packet_hurt_animation": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "global", - "type": "bool" + "name": "yaw", + "type": "f32" } ] ], - "packet_world_particles": [ + "packet_initialize_world_border": [ "container", [ - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "alwaysShow", - "type": "bool" - }, { "name": "x", "type": "f64" }, - { - "name": "y", - "type": "f64" - }, { "name": "z", "type": "f64" }, { - "name": "offsetX", - "type": "f32" + "name": "oldDiameter", + "type": "f64" }, { - "name": "offsetY", - "type": "f32" + "name": "newDiameter", + "type": "f64" }, { - "name": "offsetZ", - "type": "f32" + "name": "speed", + "type": "varint" }, { - "name": "velocityOffset", - "type": "f32" + "name": "portalTeleportBoundary", + "type": "varint" }, { - "name": "amount", - "type": "i32" + "name": "warningBlocks", + "type": "varint" }, { - "name": "particle", - "type": "Particle" + "name": "warningTime", + "type": "varint" } ] ], - "packet_update_light": [ + "packet_keep_alive": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - }, - { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "reason", + "type": "anonymousNbt" } ] ], @@ -7415,10 +7907,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -7428,10 +7920,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -7441,10 +7933,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -7454,29 +7946,33 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_trade_list": [ + "packet_map_chunk": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "x", + "type": "i32" }, { - "name": "trades", + "name": "z", + "type": "i32" + }, + { + "name": "heightmaps", "type": [ "array", { @@ -7485,158 +7981,122 @@ "container", [ { - "name": "inputItem1", + "name": "type", "type": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" + "mapper", + { + "mappings": { + "0": "world_surface_wg", + "1": "world_surface", + "2": "ocean_floor_wg", + "3": "ocean_floor", + "4": "motion_blocking", + "5": "motion_blocking_no_leaves" }, - { - "name": "components", - "type": "ExactComponentMatcher" - } - ] + "type": "varint" + } ] }, { - "name": "outputItem", - "type": "Slot" - }, - { - "name": "inputItem2", + "name": "data", "type": [ - "option", - [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" - }, - { - "name": "components", - "type": "ExactComponentMatcher" - } - ] - ] + "array", + { + "countType": "varint", + "type": "i64" + } ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" } ] ] } - ] - }, - { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" - }, - { - "name": "isRegularVillager", - "type": "bool" - }, - { - "name": "canRestock", - "type": "bool" - } - ] - ], - "packet_rel_entity_move": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" + ] }, { - "name": "dZ", - "type": "i16" + "name": "chunkData", + "type": "ByteArray" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_move_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "chunkBlockEntity" + } + ] }, { - "name": "dX", - "type": "i16" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "dY", - "type": "i16" + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "dZ", - "type": "i16" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], @@ -7683,49 +8143,54 @@ } ] ], - "packet_entity_look": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] + ] }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_vehicle_move": [ + "packet_nbt_query_response": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "nbt", + "type": "anonOptionalNbt" } ] ], @@ -7738,20 +8203,20 @@ } ] ], - "packet_open_window": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "varint" + "type": "ContainerID" }, { - "name": "inventoryType", + "name": "nbSlots", "type": "varint" }, { - "name": "windowTitle", - "type": "anonymousNbt" + "name": "entityId", + "type": "i32" } ] ], @@ -7768,51 +8233,38 @@ } ] ], - "packet_ping": [ + "packet_open_window": [ "container", [ { - "name": "id", - "type": "i32" - } - ] - ], - "packet_ping_response": [ - "container", - [ + "name": "windowId", + "type": "varint" + }, { - "name": "id", - "type": "i64" + "name": "inventoryType", + "type": "varint" + }, + { + "name": "windowTitle", + "type": "anonymousNbt" } ] ], - "packet_craft_recipe_response": [ + "packet_ping": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "recipeDisplay", - "type": "RecipeDisplay" + "name": "id", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_ping_response": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "id", + "type": "i64" } ] ], @@ -7876,6 +8328,7 @@ "switch", { "compareTo": "filterType", + "default": "void", "fields": { "2": [ "array", @@ -7884,65 +8337,23 @@ "type": "i64" } ] - }, - "default": "void" + } } ] }, { "name": "type", - "type": "ChatTypesHolder" - }, - { - "name": "networkName", - "type": "anonymousNbt" - }, - { - "name": "networkTargetName", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ], - "packet_end_combat_event": [ - "container", - [ - { - "name": "duration", - "type": "varint" - } - ] - ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ - "container", - [ - { - "name": "playerId", - "type": "varint" - }, - { - "name": "message", - "type": "anonymousNbt" - } - ] - ], - "packet_player_remove": [ - "container", - [ + "type": "ChatTypesHolder" + }, { - "name": "players", + "name": "networkName", + "type": "anonymousNbt" + }, + { + "name": "networkTargetName", "type": [ - "array", - { - "countType": "varint", - "type": "UUID" - } + "option", + "anonymousNbt" ] } ] @@ -7955,7 +8366,6 @@ "type": [ "bitflags", { - "type": "u8", "flags": [ "add_player", "initialize_chat", @@ -7965,7 +8375,8 @@ "update_display_name", "update_hat", "update_list_order" - ] + ], + "type": "u8" } ] }, @@ -7988,10 +8399,10 @@ "switch", { "compareTo": "../action/add_player", + "default": "void", "fields": { "true": "game_profile_name_prop" - }, - "default": "void" + } } ] }, @@ -8001,10 +8412,10 @@ "switch", { "compareTo": "../action/initialize_chat", + "default": "void", "fields": { "true": "chat_session" - }, - "default": "void" + } } ] }, @@ -8014,10 +8425,10 @@ "switch", { "compareTo": "../action/update_game_mode", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -8027,10 +8438,10 @@ "switch", { "compareTo": "../action/update_listed", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -8040,275 +8451,52 @@ "switch", { "compareTo": "../action/update_latency", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, { "name": "displayName", - "type": [ - "switch", - { - "compareTo": "../action/update_display_name", - "fields": { - "true": [ - "option", - "anonymousNbt" - ] - }, - "default": "void" - } - ] - }, - { - "name": "listPriority", - "type": [ - "switch", - { - "compareTo": "../action/update_list_order", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "showHat", - "type": [ - "switch", - { - "compareTo": "../action/update_hat", - "fields": { - "true": "bool" - }, - "default": "void" - } - ] - } - ] - ] - } - ] - } - ] - ], - "packet_face_player": [ - "container", - [ - { - "name": "feet_eyes", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entity_feet_eyes", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - } - ] - ], - "PositionUpdateRelatives": [ - "bitflags", - { - "type": "u32", - "flags": [ - "x", - "y", - "z", - "yaw", - "pitch", - "dx", - "dy", - "dz", - "yawDelta" - ] - } - ], - "packet_position": [ - "container", - [ - { - "name": "teleportId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "dx", - "type": "f64" - }, - { - "name": "dy", - "type": "f64" - }, - { - "name": "dz", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "flags", - "type": "PositionUpdateRelatives" - } - ] - ], - "packet_player_rotation": [ - "container", - [ - { - "name": "yaw", - "type": "f32" - }, - { - "name": "relativeYaw", - "type": "bool" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "relativePitch", - "type": "bool" - } - ] - ], - "packet_recipe_book_add": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "recipe", - "type": [ - "container", - [ - { - "name": "displayId", - "type": "varint" - }, - { - "name": "display", - "type": "RecipeDisplay" - }, - { - "name": "group", - "type": "optvarint" - }, - { - "name": "category", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "crafting_building_blocks", - "1": "crafting_redstone", - "2": "crafting_equipment", - "3": "crafting_misc", - "4": "furnace_food", - "5": "furnace_blocks", - "6": "furnace_misc", - "7": "blast_furnace_blocks", - "8": "blast_furnace_misc", - "9": "smoker_food", - "10": "stonecutter", - "11": "smithing", - "12": "campfire" - } - } - ] - }, - { - "name": "craftingRequirements", - "type": [ + "type": [ + "switch", + { + "compareTo": "../action/update_display_name", + "default": "void", + "fields": { + "true": [ "option", - [ - "array", - { - "countType": "varint", - "type": "IDSet" - } - ] + "anonymousNbt" ] } - ] + } ] }, { - "name": "flags", + "name": "listPriority", "type": [ - "bitflags", + "switch", { - "type": "u8", - "flags": [ - "notification", - "highlight" - ] + "compareTo": "../action/update_list_order", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "showHat", + "type": [ + "switch", + { + "compareTo": "../action/update_hat", + "default": "void", + "fields": { + "true": "bool" + } } ] } @@ -8316,319 +8504,257 @@ ] } ] - }, - { - "name": "replace", - "type": "bool" } ] ], - "packet_recipe_book_remove": [ + "packet_player_remove": [ "container", [ { - "name": "recipeIds", + "name": "players", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": "UUID" } ] } ] ], - "RecipeBookSetting": [ + "packet_player_rotation": [ "container", [ { - "name": "open", - "type": "bool" + "name": "yaw", + "type": "f32" }, { - "name": "filtering", + "name": "relativeYaw", "type": "bool" - } - ] - ], - "packet_recipe_book_settings": [ - "container", - [ - { - "name": "crafting", - "type": "RecipeBookSetting" - }, - { - "name": "furnace", - "type": "RecipeBookSetting" - }, - { - "name": "blast", - "type": "RecipeBookSetting" - }, - { - "name": "smoker", - "type": "RecipeBookSetting" - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_remove_entity_effect": [ - "container", - [ - { - "name": "entityId", - "type": "varint" }, { - "name": "effectId", - "type": "varint" - } - ] - ], - "packet_reset_score": [ - "container", - [ - { - "name": "entity_name", - "type": "string" + "name": "pitch", + "type": "f32" }, { - "name": "objective_name", - "type": [ - "option", - "string" - ] + "name": "relativePitch", + "type": "bool" } ] ], - "packet_respawn": [ + "packet_playerlist_header": [ "container", [ { - "name": "worldState", - "type": "SpawnInfo" + "name": "header", + "type": "anonymousNbt" }, { - "name": "copyMetadata", - "type": "u8" + "name": "footer", + "type": "anonymousNbt" } ] ], - "packet_entity_head_rotation": [ + "packet_position": [ "container", [ { - "name": "entityId", + "name": "teleportId", "type": "varint" }, { - "name": "headYaw", - "type": "i8" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ - { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] - }, - { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_select_advancement_tab": [ - "container", - [ - { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_server_data": [ - "container", - [ - { - "name": "motd", - "type": "anonymousNbt" + "name": "x", + "type": "f64" }, { - "name": "iconBytes", - "type": [ - "option", - "ByteArray" - ] - } - ] - ], - "packet_action_bar": [ - "container", - [ - { - "name": "text", - "type": "anonymousNbt" - } - ] - ], - "packet_world_border_center": [ - "container", - [ - { - "name": "x", + "name": "y", "type": "f64" }, { "name": "z", "type": "f64" - } - ] - ], - "packet_world_border_lerp_size": [ - "container", - [ + }, { - "name": "oldDiameter", + "name": "dx", "type": "f64" }, { - "name": "newDiameter", + "name": "dy", "type": "f64" }, { - "name": "speed", - "type": "varint" - } - ] - ], - "packet_world_border_size": [ - "container", - [ - { - "name": "diameter", + "name": "dz", "type": "f64" - } - ] - ], - "packet_world_border_warning_delay": [ - "container", - [ + }, { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_world_border_warning_reach": [ - "container", - [ + "name": "yaw", + "type": "f32" + }, { - "name": "warningBlocks", - "type": "varint" - } - ] - ], - "packet_camera": [ - "container", - [ + "name": "pitch", + "type": "f32" + }, { - "name": "cameraId", - "type": "varint" + "name": "flags", + "type": "PositionUpdateRelatives" } ] ], - "packet_update_view_position": [ + "packet_profileless_chat": [ "container", [ { - "name": "chunkX", - "type": "varint" + "name": "message", + "type": "anonymousNbt" }, { - "name": "chunkZ", - "type": "varint" + "name": "type", + "type": "ChatTypesHolder" + }, + { + "name": "name", + "type": "anonymousNbt" + }, + { + "name": "target", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "packet_update_view_distance": [ + "packet_recipe_book_add": [ "container", [ { - "name": "viewDistance", - "type": "varint" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "recipe", + "type": [ + "container", + [ + { + "name": "displayId", + "type": "varint" + }, + { + "name": "display", + "type": "RecipeDisplay" + }, + { + "name": "group", + "type": "optvarint" + }, + { + "name": "category", + "type": [ + "mapper", + { + "mappings": { + "0": "crafting_building_blocks", + "1": "crafting_redstone", + "2": "crafting_equipment", + "3": "crafting_misc", + "4": "furnace_food", + "5": "furnace_blocks", + "6": "furnace_misc", + "7": "blast_furnace_blocks", + "8": "blast_furnace_misc", + "9": "smoker_food", + "10": "stonecutter", + "11": "smithing", + "12": "campfire" + }, + "type": "varint" + } + ] + }, + { + "name": "craftingRequirements", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": "IDSet" + } + ] + ] + } + ] + ] + }, + { + "name": "flags", + "type": [ + "bitflags", + { + "flags": [ + "notification", + "highlight" + ], + "type": "u8" + } + ] + } + ] + ] + } + ] + }, + { + "name": "replace", + "type": "bool" } ] ], - "packet_set_cursor_item": [ + "packet_recipe_book_remove": [ "container", [ { - "name": "contents", - "type": "Slot" + "name": "recipeIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_spawn_position": "RespawnData", - "packet_scoreboard_display_objective": [ + "packet_recipe_book_settings": [ "container", [ { - "name": "position", - "type": "varint" + "name": "crafting", + "type": "RecipeBookSetting" }, { - "name": "name", - "type": "string" + "name": "furnace", + "type": "RecipeBookSetting" + }, + { + "name": "blast", + "type": "RecipeBookSetting" + }, + { + "name": "smoker", + "type": "RecipeBookSetting" } ] ], - "packet_entity_metadata": [ + "packet_rel_entity_move": [ "container", [ { @@ -8636,25 +8762,24 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "entityId", - "type": "i32" + "name": "dY", + "type": "i16" }, { - "name": "vehicleId", - "type": "i32" + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_entity_velocity": [ + "packet_remove_entity_effect": [ "container", [ { @@ -8662,81 +8787,50 @@ "type": "varint" }, { - "name": "velocity", - "type": "lpVec3" + "name": "effectId", + "type": "varint" } ] ], - "packet_entity_equipment": [ + "packet_reset_score": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entity_name", + "type": "string" }, { - "name": "equipments", + "name": "objective_name", "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } + "option", + "string" ] } ] ], - "packet_experience": [ + "packet_respawn": [ "container", [ { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" + "name": "worldState", + "type": "SpawnInfo" }, { - "name": "totalExperience", - "type": "varint" + "name": "copyMetadata", + "type": "u8" } ] ], - "packet_update_health": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", + "name": "position", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ - { - "name": "slot", - "type": "varint" + "name": "name", + "type": "string" } ] ], @@ -8757,11 +8851,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ] }, @@ -8771,11 +8865,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -8785,6 +8879,7 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": [ "option", @@ -8794,8 +8889,7 @@ "option", "varint" ] - }, - "default": "void" + } } ] }, @@ -8805,346 +8899,219 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": [ "switch", { "compareTo": "number_format", + "default": "void", "fields": { "1": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ], "2": [ "switch", { "compareTo": "number_format", + "default": "void", "fields": { "1": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ] - }, - "default": "void" + } } ] } ] ], - "packet_set_passengers": [ + "packet_scoreboard_score": [ "container", [ { - "name": "entityId", + "name": "itemName", + "type": "string" + }, + { + "name": "scoreName", + "type": "string" + }, + { + "name": "value", "type": "varint" }, { - "name": "passengers", + "name": "display_name", "type": [ - "array", + "option", + "anonymousNbt" + ] + }, + { + "name": "number_format", + "type": [ + "option", + "varint" + ] + }, + { + "name": "styling", + "type": [ + "switch", { - "countType": "varint", - "type": "varint" + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } } ] } ] ], - "packet_set_player_inventory": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "slotId", - "type": "varint" - }, - { - "name": "contents", - "type": "Slot" + "name": "id", + "type": [ + "option", + "string" + ] } ] ], - "packet_teams": [ + "packet_server_data": [ "container", [ { - "name": "team", - "type": "string" + "name": "motd", + "type": "anonymousNbt" }, { - "name": "mode", + "name": "iconBytes", "type": [ - "mapper", - { - "type": "i8", - "mappings": { - "0": "add", - "1": "remove", - "2": "change", - "3": "join", - "4": "leave" - } - } + "option", + "ByteArray" ] - }, + } + ] + ], + "packet_set_cooldown": [ + "container", + [ { - "anon": true, - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "add": [ - "container", - [ - { - "name": "name", - "type": "anonymousNbt" - }, - { - "name": "flags", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "friendly_fire", - "see_friendly_invisible" - ] - } - ] - }, - { - "name": "nameTagVisibility", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "always", - "1": "never", - "2": "hide_for_other_teams", - "3": "hide_for_own_team" - } - } - ] - }, - { - "name": "collisionRule", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "always", - "1": "never", - "2": "push_other_teams", - "3": "push_own_team" - } - } - ] - }, - { - "name": "formatting", - "type": "varint" - }, - { - "name": "prefix", - "type": "anonymousNbt" - }, - { - "name": "suffix", - "type": "anonymousNbt" - } - ] - ], - "change": [ - "container", - [ - { - "name": "name", - "type": "anonymousNbt" - }, - { - "name": "flags", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "friendly_fire", - "see_friendly_invisible" - ] - } - ] - }, - { - "name": "nameTagVisibility", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "always", - "1": "never", - "2": "hide_for_other_teams", - "3": "hide_for_own_team" - } - } - ] - }, - { - "name": "collisionRule", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "always", - "1": "never", - "2": "push_other_teams", - "3": "push_own_team" - } - } - ] - }, - { - "name": "formatting", - "type": "varint" - }, - { - "name": "prefix", - "type": "anonymousNbt" - }, - { - "name": "suffix", - "type": "anonymousNbt" - } - ] - ] - }, - "default": "void" - } - ] + "name": "cooldownGroup", + "type": "string" }, { - "name": "players", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "add": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "join": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "leave": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_scoreboard_score": [ + "packet_set_cursor_item": [ + "container", + [ + { + "name": "contents", + "type": "Slot" + } + ] + ], + "packet_set_passengers": [ "container", [ { - "name": "itemName", - "type": "string" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", + "name": "entityId", "type": "varint" }, { - "name": "display_name", - "type": [ - "option", - "anonymousNbt" - ] - }, - { - "name": "number_format", - "type": [ - "option", - "varint" - ] - }, - { - "name": "styling", + "name": "passengers", "type": [ - "switch", + "array", { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_simulation_distance": [ + "packet_set_player_inventory": [ "container", [ { - "name": "distance", + "name": "slotId", "type": "varint" + }, + { + "name": "contents", + "type": "Slot" } ] ], - "packet_set_title_subtitle": [ + "packet_set_projectile_power": [ "container", [ { - "name": "text", - "type": "anonymousNbt" + "name": "id", + "type": "varint" + }, + { + "name": "accelerationPower", + "type": "f64" } ] ], - "packet_update_time": [ + "packet_set_slot": [ "container", [ { - "name": "age", - "type": "i64" + "name": "windowId", + "type": "ContainerID" }, { - "name": "time", - "type": "i64" + "name": "stateId", + "type": "varint" }, { - "name": "tickDayTime", + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" + } + ] + ], + "packet_set_ticking_state": [ + "container", + [ + { + "name": "tick_rate", + "type": "f32" + }, + { + "name": "is_frozen", "type": "bool" } ] ], + "packet_set_title_subtitle": [ + "container", + [ + { + "name": "text", + "type": "anonymousNbt" + } + ] + ], "packet_set_title_text": [ "container", [ @@ -9171,7 +9138,34 @@ } ] ], - "packet_entity_sound_effect": [ + "packet_show_dialog": [ + "container", + [ + { + "name": "dialog", + "type": [ + "registryEntryHolder", + { + "baseName": "dialog", + "otherwise": { + "name": "data", + "type": "anonymousNbt" + } + } + ] + } + ] + ], + "packet_simulation_distance": [ + "container", + [ + { + "name": "distance", + "type": "varint" + } + ] + ], + "packet_sound_effect": [ "container", [ { @@ -9183,8 +9177,16 @@ "type": "soundSource" }, { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" }, { "name": "volume", @@ -9200,47 +9202,100 @@ } ] ], - "packet_sound_effect": [ + "packet_spawn_entity": [ "container", [ { - "name": "sound", - "type": "ItemSoundHolder" + "name": "entityId", + "type": "varint" }, { - "name": "soundCategory", - "type": "soundSource" + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "velocity", + "type": "lpVec3" }, { "name": "pitch", - "type": "f32" + "type": "i8" }, { - "name": "seed", - "type": "i64" + "name": "yaw", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "objectData", + "type": "varint" } ] ], + "packet_spawn_position": "RespawnData", "packet_start_configuration": [ "container", [] ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_step_tick": [ + "container", + [ + { + "name": "tick_steps", + "type": "varint" + } + ] + ], "packet_stop_sound": [ "container", [ @@ -9254,27 +9309,72 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "1": "varint", "3": "varint" - }, - "default": "void" + } + } + ] + }, + { + "name": "sound", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "2": "string", + "3": "string" + } } ] + } + ] + ], + "packet_sync_entity_position": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "dx", + "type": "f64" + }, + { + "name": "dy", + "type": "f64" }, { - "name": "sound", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "2": "string", - "3": "string" - }, - "default": "void" - } - ] + "name": "dz", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -9291,79 +9391,270 @@ } ] ], - "packet_playerlist_header": [ + "packet_tab_complete": [ "container", [ { - "name": "header", - "type": "anonymousNbt" + "name": "transactionId", + "type": "varint" }, { - "name": "footer", - "type": "anonymousNbt" - } - ] - ], - "packet_nbt_query_response": [ - "container", - [ + "name": "start", + "type": "varint" + }, { - "name": "transactionId", + "name": "length", "type": "varint" }, { - "name": "nbt", - "type": "anonOptionalNbt" + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] + } + ] } ] ], - "packet_collect": [ + "packet_tags": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" - }, - { - "name": "collectorEntityId", - "type": "varint" - }, - { - "name": "pickupItemCount", - "type": "varint" + "name": "tags", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] + } + ] } ] ], - "packet_entity_teleport": [ + "packet_teams": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "team", + "type": "string" }, { - "name": "yaw", - "type": "i8" + "name": "mode", + "type": [ + "mapper", + { + "mappings": { + "0": "add", + "1": "remove", + "2": "change", + "3": "join", + "4": "leave" + }, + "type": "i8" + } + ] }, { - "name": "pitch", - "type": "i8" + "anon": true, + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "add": [ + "container", + [ + { + "name": "name", + "type": "anonymousNbt" + }, + { + "name": "flags", + "type": [ + "bitflags", + { + "flags": [ + "friendly_fire", + "see_friendly_invisible" + ], + "type": "u8" + } + ] + }, + { + "name": "nameTagVisibility", + "type": [ + "mapper", + { + "mappings": { + "0": "always", + "1": "never", + "2": "hide_for_other_teams", + "3": "hide_for_own_team" + }, + "type": "varint" + } + ] + }, + { + "name": "collisionRule", + "type": [ + "mapper", + { + "mappings": { + "0": "always", + "1": "never", + "2": "push_other_teams", + "3": "push_own_team" + }, + "type": "varint" + } + ] + }, + { + "name": "formatting", + "type": "varint" + }, + { + "name": "prefix", + "type": "anonymousNbt" + }, + { + "name": "suffix", + "type": "anonymousNbt" + } + ] + ], + "change": [ + "container", + [ + { + "name": "name", + "type": "anonymousNbt" + }, + { + "name": "flags", + "type": [ + "bitflags", + { + "flags": [ + "friendly_fire", + "see_friendly_invisible" + ], + "type": "u8" + } + ] + }, + { + "name": "nameTagVisibility", + "type": [ + "mapper", + { + "mappings": { + "0": "always", + "1": "never", + "2": "hide_for_other_teams", + "3": "hide_for_own_team" + }, + "type": "varint" + } + ] + }, + { + "name": "collisionRule", + "type": [ + "mapper", + { + "mappings": { + "0": "always", + "1": "never", + "2": "push_other_teams", + "3": "push_own_team" + }, + "type": "varint" + } + ] + }, + { + "name": "formatting", + "type": "varint" + }, + { + "name": "prefix", + "type": "anonymousNbt" + }, + { + "name": "suffix", + "type": "anonymousNbt" + } + ] + ] + } + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "players", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "add": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "join": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "leave": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + } + ] } ] ], @@ -9383,232 +9674,168 @@ } ] ], - "packet_set_ticking_state": [ + "packet_tile_entity_data": [ "container", [ { - "name": "tick_rate", - "type": "f32" + "name": "location", + "type": "position" }, { - "name": "is_frozen", - "type": "bool" - } - ] - ], - "packet_step_tick": [ - "container", - [ - { - "name": "tick_steps", + "name": "action", "type": "varint" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" } ] ], - "packet_advancements": [ + "packet_tracked_waypoint": [ "container", [ { - "name": "reset", - "type": "bool" - }, - { - "name": "advancementMapping", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "container", - [ - { - "name": "parentId", - "type": [ - "option", - "string" - ] - }, - { - "name": "displayData", - "type": [ - "option", - [ - "container", - [ - { - "name": "title", - "type": "anonymousNbt" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "icon", - "type": "Slot" - }, - { - "name": "frameType", - "type": "varint" - }, - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "backgroundTexture", - "type": [ - "switch", - { - "compareTo": "flags/has_background_texture", - "fields": { - "1": "string" - }, - "default": "void" - } - ] - }, - { - "name": "xCord", - "type": "f32" - }, - { - "name": "yCord", - "type": "f32" - } - ] - ] - ] - }, - { - "name": "requirements", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - }, - { - "name": "sendsTelemtryData", - "type": "bool" - } - ] - ] - } - ] - ] - } - ] - }, - { - "name": "identifiers", + "name": "operation", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": "string" + "mappings": { + "0": "track", + "1": "untrack", + "2": "update" + }, + "type": "varint" } ] }, { - "name": "progressMapping", + "name": "waypoint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, + "container", + [ + { + "name": "hasUUID", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", { - "name": "value", - "type": [ - "array", - { - "countType": "varint", - "type": [ + "compareTo": "hasUUID", + "fields": { + "false": [ + "container", + [ + { + "name": "id", + "type": "string" + } + ] + ], + "true": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + } + ] + ] + } + } + ] + }, + { + "name": "icon", + "type": [ + "container", + [ + { + "name": "style", + "type": "string" + }, + { + "name": "color", + "type": [ + "option", + [ "container", [ { - "name": "criterionIdentifier", - "type": "string" + "name": "red", + "type": "u8" }, { - "name": "criterionProgress", - "type": [ - "option", - "i64" - ] + "name": "green", + "type": "u8" + }, + { + "name": "blue", + "type": "u8" } ] ] - } - ] + ] + } + ] + ] + }, + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "empty", + "1": "vec3i", + "2": "chunk", + "3": "azimuth" + }, + "type": "varint" } ] - ] - } + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "azimuth": "f32", + "chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" + } + ] + ], + "vec3i": "vec3i" + } + } + ] + } + ] ] - }, - { - "name": "showAdvancements", - "type": "bool" } ] ], - "packet_entity_update_attributes": [ + "packet_trade_list": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "properties", + "name": "trades", "type": [ "array", { @@ -9617,508 +9844,527 @@ "container", [ { - "name": "key", + "name": "inputItem1", "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "generic.armor", - "1": "generic.armor_toughness", - "2": "generic.attack_damage", - "3": "generic.attack_knockback", - "4": "generic.attack_speed", - "5": "player.block_break_speed", - "6": "player.block_interaction_range", - "7": "burning_time", - "8": "camera_distance", - "9": "explosion_knockback_resistance", - "10": "player.entity_interaction_range", - "11": "generic.fall_damage_multiplier", - "12": "generic.flying_speed", - "13": "generic.follow_range", - "14": "generic.gravity", - "15": "generic.jump_strength", - "16": "generic.knockback_resistance", - "17": "generic.luck", - "18": "generic.max_absorption", - "19": "generic.max_health", - "20": "generic.movement_speed", - "21": "generic.safe_fall_distance", - "22": "generic.scale", - "23": "zombie.spawn_reinforcements", - "24": "generic.step_height", - "25": "submerged_mining_speed", - "26": "sweeping_damage_ratio", - "27": "tempt_range", - "28": "water_movement_efficiency", - "29": "waypoint_transmit_range", - "30": "waypoint_receive_range" + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "components", + "type": "ExactComponentMatcher" } - } + ] ] }, { - "name": "value", - "type": "f64" + "name": "outputItem", + "type": "Slot" }, { - "name": "modifiers", + "name": "inputItem2", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "string" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] + "option", + [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "components", + "type": "ExactComponentMatcher" + } ] - } + ] ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" } ] ] } ] + }, + { + "name": "villagerLevel", + "type": "varint" + }, + { + "name": "experience", + "type": "varint" + }, + { + "name": "isRegularVillager", + "type": "bool" + }, + { + "name": "canRestock", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkZ", + "type": "i32" + }, + { + "name": "chunkX", + "type": "i32" + } + ] + ], + "packet_update_health": [ + "container", + [ + { + "name": "health", + "type": "f32" + }, + { + "name": "food", + "type": "varint" + }, + { + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_entity_effect": [ + "packet_update_light": [ "container", [ { - "name": "entityId", + "name": "chunkX", "type": "varint" }, { - "name": "effectId", + "name": "chunkZ", "type": "varint" }, { - "name": "amplifier", - "type": "varint" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "duration", - "type": "varint" + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "flags", - "type": "u8" - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, { - "name": "recipes", + "name": "emptyBlockLightMask", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] + "type": "i64" } ] }, { - "name": "stoneCutterRecipes", + "name": "skyLight", "type": [ "array", { "countType": "varint", "type": [ - "container", - [ - { - "name": "input", - "type": "IDSet" - }, - { - "name": "slotDisplay", - "type": "SlotDisplay" - } - ] + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] - } - ] - ], - "packet_tags": [ - "container", - [ + }, { - "name": "tags", + "name": "blockLight", "type": [ "array", { "countType": "varint", "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] } ] ], - "packet_set_projectile_power": [ + "packet_update_time": [ "container", [ { - "name": "id", - "type": "varint" + "name": "age", + "type": "i64" }, { - "name": "accelerationPower", - "type": "f64" + "name": "time", + "type": "i64" + }, + { + "name": "tickDayTime", + "type": "bool" } ] ], - "packet_tracked_waypoint": [ + "packet_update_view_distance": [ "container", [ { - "name": "operation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "track", - "1": "untrack", - "2": "update" - } - } - ] - }, + "name": "viewDistance", + "type": "varint" + } + ] + ], + "packet_update_view_position": [ + "container", + [ { - "name": "waypoint", - "type": [ - "container", - [ - { - "name": "hasUUID", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "hasUUID", - "fields": { - "true": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - } - ] - ], - "false": [ - "container", - [ - { - "name": "id", - "type": "string" - } - ] - ] - } - } - ] - }, - { - "name": "icon", - "type": [ - "container", - [ - { - "name": "style", - "type": "string" - }, - { - "name": "color", - "type": [ - "option", - [ - "container", - [ - { - "name": "red", - "type": "u8" - }, - { - "name": "green", - "type": "u8" - }, - { - "name": "blue", - "type": "u8" - } - ] - ] - ] - } - ] - ] - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "empty", - "1": "vec3i", - "2": "chunk", - "3": "azimuth" - } - } - ] - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "vec3i": "vec3i", - "chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - } - ] - ], - "azimuth": "f32" - } - } - ] - } - ] - ] + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" } ] ], - "packet_show_dialog": [ + "packet_vehicle_move": [ "container", [ { - "name": "dialog", + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "stateId", + "type": "varint" + }, + { + "name": "items", "type": [ - "registryEntryHolder", + "array", { - "baseName": "dialog", - "otherwise": { - "name": "data", - "type": "anonymousNbt" - } + "countType": "varint", + "type": "Slot" } ] + }, + { + "name": "carriedItem", + "type": "Slot" } ] ], - "packet": [ + "packet_world_border_center": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "animation", - "0x03": "statistics", - "0x04": "acknowledge_player_digging", - "0x05": "block_break_animation", - "0x06": "tile_entity_data", - "0x07": "block_action", - "0x08": "block_change", - "0x09": "boss_bar", - "0x0a": "difficulty", - "0x0b": "chunk_batch_finished", - "0x0c": "chunk_batch_start", - "0x0d": "chunk_biomes", - "0x0e": "clear_titles", - "0x0f": "tab_complete", - "0x10": "declare_commands", - "0x11": "close_window", - "0x12": "window_items", - "0x13": "craft_progress_bar", - "0x14": "set_slot", - "0x15": "cookie_request", - "0x16": "set_cooldown", - "0x17": "chat_suggestions", - "0x18": "custom_payload", - "0x19": "damage_event", - "0x1a": "debug_block_value", - "0x1b": "debug_chunk_value", - "0x1c": "debug_entity_value", - "0x1d": "debug_event", - "0x1e": "debug_sample", - "0x1f": "hide_message", - "0x20": "kick_disconnect", - "0x21": "profileless_chat", - "0x22": "entity_status", - "0x23": "sync_entity_position", - "0x24": "explosion", - "0x25": "unload_chunk", - "0x26": "game_state_change", - "0x27": "game_test_highlight_pos", - "0x28": "open_horse_window", - "0x29": "hurt_animation", - "0x2a": "initialize_world_border", - "0x2b": "keep_alive", - "0x2c": "map_chunk", - "0x2d": "world_event", - "0x2e": "world_particles", - "0x2f": "update_light", - "0x30": "login", - "0x31": "map", - "0x32": "trade_list", - "0x33": "rel_entity_move", - "0x34": "entity_move_look", - "0x35": "move_minecart", - "0x36": "entity_look", - "0x37": "vehicle_move", - "0x38": "open_book", - "0x39": "open_window", - "0x3a": "open_sign_entity", - "0x3b": "ping", - "0x3c": "ping_response", - "0x3d": "craft_recipe_response", - "0x3e": "abilities", - "0x3f": "player_chat", - "0x40": "end_combat_event", - "0x41": "enter_combat_event", - "0x42": "death_combat_event", - "0x43": "player_remove", - "0x44": "player_info", - "0x45": "face_player", - "0x46": "position", - "0x47": "player_rotation", - "0x48": "recipe_book_add", - "0x49": "recipe_book_remove", - "0x4a": "recipe_book_settings", - "0x4b": "entity_destroy", - "0x4c": "remove_entity_effect", - "0x4d": "reset_score", - "0x4e": "remove_resource_pack", - "0x4f": "add_resource_pack", - "0x50": "respawn", - "0x51": "entity_head_rotation", - "0x52": "multi_block_change", - "0x53": "select_advancement_tab", - "0x54": "server_data", - "0x55": "action_bar", - "0x56": "world_border_center", - "0x57": "world_border_lerp_size", - "0x58": "world_border_size", - "0x59": "world_border_warning_delay", - "0x5a": "world_border_warning_reach", - "0x5b": "camera", - "0x5c": "update_view_position", - "0x5d": "update_view_distance", - "0x5e": "set_cursor_item", - "0x5f": "spawn_position", - "0x60": "scoreboard_display_objective", - "0x61": "entity_metadata", - "0x62": "attach_entity", - "0x63": "entity_velocity", - "0x64": "entity_equipment", - "0x65": "experience", - "0x66": "update_health", - "0x67": "held_item_slot", - "0x68": "scoreboard_objective", - "0x69": "set_passengers", - "0x6a": "set_player_inventory", - "0x6b": "teams", - "0x6c": "scoreboard_score", - "0x6d": "simulation_distance", - "0x6e": "set_title_subtitle", - "0x6f": "update_time", - "0x70": "set_title_text", - "0x71": "set_title_time", - "0x72": "entity_sound_effect", - "0x73": "sound_effect", - "0x74": "start_configuration", - "0x75": "stop_sound", - "0x76": "store_cookie", - "0x77": "system_chat", - "0x78": "playerlist_header", - "0x79": "nbt_query_response", - "0x7a": "collect", - "0x7b": "entity_teleport", - "0x7c": "test_instance_block_status", - "0x7d": "set_ticking_state", - "0x7e": "step_tick", - "0x7f": "transfer", - "0x80": "advancements", - "0x81": "entity_update_attributes", - "0x82": "entity_effect", - "0x83": "declare_recipes", - "0x84": "tags", - "0x85": "set_projectile_power", - "0x86": "custom_report_details", - "0x87": "server_links", - "0x88": "tracked_waypoint", - "0x89": "clear_dialog", - "0x8a": "show_dialog" - } + "name": "x", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_world_border_lerp_size": [ + "container", + [ + { + "name": "oldDiameter", + "type": "f64" + }, + { + "name": "newDiameter", + "type": "f64" + }, + { + "name": "speed", + "type": "varint" + } + ] + ], + "packet_world_border_size": [ + "container", + [ + { + "name": "diameter", + "type": "f64" + } + ] + ], + "packet_world_border_warning_delay": [ + "container", + [ + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_world_border_warning_reach": [ + "container", + [ + { + "name": "warningBlocks", + "type": "varint" + } + ] + ], + "packet_world_event": [ + "container", + [ + { + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" + } + ] + ], + "packet_world_particles": [ + "container", + [ + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "alwaysShow", + "type": "bool" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "velocityOffset", + "type": "f32" + }, + { + "name": "amount", + "type": "i32" + }, + { + "name": "particle", + "type": "Particle" + } + ] + ] + } + }, + "toServer": { + "types": { + "MovementFlags": [ + "bitflags", + { + "flags": [ + "onGround", + "hasHorizontalCollision" + ], + "type": "u8" + } + ], + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "select_bundle_item", + "0x03": "set_difficulty", + "0x04": "change_gamemode", + "0x05": "message_acknowledgement", + "0x06": "chat_command", + "0x07": "chat_command_signed", + "0x08": "chat_message", + "0x09": "chat_session_update", + "0x0a": "chunk_batch_received", + "0x0b": "client_command", + "0x0c": "tick_end", + "0x0d": "settings", + "0x0e": "tab_complete", + "0x0f": "configuration_acknowledged", + "0x10": "enchant_item", + "0x11": "window_click", + "0x12": "close_window", + "0x13": "set_slot_state", + "0x14": "cookie_response", + "0x15": "custom_payload", + "0x16": "debug_subscription_request", + "0x17": "edit_book", + "0x18": "query_entity_nbt", + "0x19": "use_entity", + "0x1a": "generate_structure", + "0x1b": "keep_alive", + "0x1c": "lock_difficulty", + "0x1d": "position", + "0x1e": "position_look", + "0x1f": "look", + "0x20": "flying", + "0x21": "vehicle_move", + "0x22": "steer_boat", + "0x23": "pick_item_from_block", + "0x24": "pick_item_from_entity", + "0x25": "ping_request", + "0x26": "craft_recipe_request", + "0x27": "abilities", + "0x28": "block_dig", + "0x29": "entity_action", + "0x2a": "player_input", + "0x2b": "player_loaded", + "0x2c": "pong", + "0x2d": "recipe_book", + "0x2e": "displayed_recipe", + "0x2f": "name_item", + "0x30": "resource_pack_receive", + "0x31": "advancement_tab", + "0x32": "select_trade", + "0x33": "set_beacon_effect", + "0x34": "held_item_slot", + "0x35": "update_command_block", + "0x36": "update_command_block_minecart", + "0x37": "set_creative_slot", + "0x38": "update_jigsaw_block", + "0x39": "update_structure_block", + "0x3a": "set_test_block", + "0x3b": "update_sign", + "0x3c": "arm_animation", + "0x3d": "spectate", + "0x3e": "test_instance_block_action", + "0x3f": "block_place", + "0x40": "use_item", + "0x41": "custom_click_action" + }, + "type": "varint" } ] }, @@ -10129,207 +10375,177 @@ { "compareTo": "name", "fields": { - "bundle_delimiter": "void", - "spawn_entity": "packet_spawn_entity", - "animation": "packet_animation", - "statistics": "packet_statistics", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "chunk_batch_finished": "packet_chunk_batch_finished", - "chunk_batch_start": "packet_chunk_batch_start", - "chunk_biomes": "packet_chunk_biomes", - "clear_titles": "packet_clear_titles", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "close_window": "packet_close_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "cookie_request": "packet_common_cookie_request", - "set_cooldown": "packet_set_cooldown", - "chat_suggestions": "packet_chat_suggestions", - "custom_payload": "packet_custom_payload", - "damage_event": "packet_damage_event", - "debug_block_value": "packet_debug_block_value", - "debug_chunk_value": "packet_debug_chunk_value", - "debug_entity_value": "packet_debug_entity_value", - "debug_event": "packet_debug_event", - "debug_sample": "packet_debug_sample", - "hide_message": "packet_hide_message", - "kick_disconnect": "packet_kick_disconnect", - "profileless_chat": "packet_profileless_chat", - "entity_status": "packet_entity_status", - "sync_entity_position": "packet_sync_entity_position", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "game_test_highlight_pos": "packet_game_test_highlight_pos", - "open_horse_window": "packet_open_horse_window", - "hurt_animation": "packet_hurt_animation", - "initialize_world_border": "packet_initialize_world_border", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "move_minecart": "packet_move_minecart", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_window": "packet_open_window", - "open_sign_entity": "packet_open_sign_entity", - "ping": "packet_ping", - "ping_response": "packet_ping_response", - "craft_recipe_response": "packet_craft_recipe_response", "abilities": "packet_abilities", - "player_chat": "packet_player_chat", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_remove": "packet_player_remove", - "player_info": "packet_player_info", - "face_player": "packet_face_player", - "position": "packet_position", - "player_rotation": "packet_player_rotation", - "recipe_book_add": "packet_recipe_book_add", - "recipe_book_remove": "packet_recipe_book_remove", - "recipe_book_settings": "packet_recipe_book_settings", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "reset_score": "packet_reset_score", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "respawn": "packet_respawn", - "entity_head_rotation": "packet_entity_head_rotation", - "multi_block_change": "packet_multi_block_change", - "select_advancement_tab": "packet_select_advancement_tab", - "server_data": "packet_server_data", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "camera": "packet_camera", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "set_cursor_item": "packet_set_cursor_item", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "change_gamemode": "packet_change_gamemode", + "chat_command": "packet_chat_command", + "chat_command_signed": "packet_chat_command_signed", + "chat_message": "packet_chat_message", + "chat_session_update": "packet_chat_session_update", + "chunk_batch_received": "packet_chunk_batch_received", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "configuration_acknowledged": "packet_configuration_acknowledged", + "cookie_response": "packet_common_cookie_response", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_click_action": "packet_common_custom_click_action", + "custom_payload": "packet_custom_payload", + "debug_subscription_request": "packet_debug_subscription_request", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", "held_item_slot": "packet_held_item_slot", - "spawn_position": "packet_spawn_position", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "set_player_inventory": "packet_set_player_inventory", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "set_title_subtitle": "packet_set_title_subtitle", - "update_time": "packet_update_time", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time", - "entity_sound_effect": "packet_entity_sound_effect", - "sound_effect": "packet_sound_effect", - "start_configuration": "packet_start_configuration", - "stop_sound": "packet_stop_sound", - "store_cookie": "packet_common_store_cookie", - "system_chat": "packet_system_chat", - "playerlist_header": "packet_playerlist_header", - "nbt_query_response": "packet_nbt_query_response", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "test_instance_block_status": "packet_test_instance_block_status", - "set_ticking_state": "packet_set_ticking_state", - "step_tick": "packet_step_tick", - "transfer": "packet_common_transfer", - "advancements": "packet_advancements", - "entity_update_attributes": "packet_entity_update_attributes", - "entity_effect": "packet_entity_effect", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "set_projectile_power": "packet_set_projectile_power", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links", - "tracked_waypoint": "packet_tracked_waypoint", - "clear_dialog": "packet_common_clear_dialog", - "show_dialog": "packet_show_dialog" + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "message_acknowledgement": "packet_message_acknowledgement", + "name_item": "packet_name_item", + "pick_item_from_block": "packet_pick_item_from_block", + "pick_item_from_entity": "packet_pick_item_from_entity", + "ping_request": "packet_ping_request", + "player_input": "packet_player_input", + "player_loaded": "packet_player_loaded", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_bundle_item": "packet_select_bundle_item", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "set_slot_state": "packet_set_slot_state", + "set_test_block": "packet_set_test_block", + "settings": "packet_common_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "test_instance_block_action": "packet_test_instance_block_action", + "tick_end": "packet_tick_end", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_select_bundle_item": [ + "packet_arm_animation": [ "container", [ { - "name": "slotId", + "name": "hand", + "type": "varint" + } + ] + ], + "packet_block_dig": [ + "container", + [ + { + "name": "status", "type": "varint" }, { - "name": "selectedItemIndex", + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" + }, + { + "name": "sequence", "type": "varint" } ] ], - "packet_set_difficulty": [ + "packet_block_place": [ "container", [ { - "name": "newDifficulty", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "peaceful", - "1": "easy", - "2": "normal", - "3": "hard" - } - } - ] + "name": "hand", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "varint" + }, + { + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" + }, + { + "name": "worldBorderHit", + "type": "bool" + }, + { + "name": "sequence", + "type": "varint" } ] ], @@ -10341,27 +10557,18 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "survival", "1": "creative", "2": "adventure", "3": "spectator" - } + }, + "type": "varint" } ] } ] ], - "packet_message_acknowledgement": [ - "container", - [ - { - "name": "count", - "type": "varint" - } - ] - ], "packet_chat_command": [ "container", [ @@ -10503,108 +10710,17 @@ "container", [ { - "name": "chunksPerTick", - "type": "f32" - } - ] - ], - "packet_client_command": [ - "container", - [ - { - "name": "actionId", - "type": "varint" - } - ] - ], - "packet_tick_end": [ - "container", - [] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "text", - "type": "string" - } - ] - ], - "packet_configuration_acknowledged": [ - "container", - [] - ], - "packet_enchant_item": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "enchantment", - "type": "i8" + "name": "chunksPerTick", + "type": "f32" } ] ], - "packet_window_click": [ + "packet_client_command": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "mode", + "name": "actionId", "type": "varint" - }, - { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": [ - "option", - "HashedSlot" - ] - } - ] - ] - } - ] - }, - { - "name": "cursorItem", - "type": [ - "option", - "HashedSlot" - ] } ] ], @@ -10617,19 +10733,23 @@ } ] ], - "packet_set_slot_state": [ + "packet_configuration_acknowledged": [ + "container", + [] + ], + "packet_craft_recipe_request": [ "container", [ { - "name": "slot_id", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "window_id", - "type": "ContainerID" + "name": "recipeId", + "type": "varint" }, { - "name": "state", + "name": "makeAll", "type": "bool" } ] @@ -10662,6 +10782,15 @@ } ] ], + "packet_displayed_recipe": [ + "container", + [ + { + "name": "recipeId", + "type": "varint" + } + ] + ], "packet_edit_book": [ "container", [ @@ -10688,134 +10817,209 @@ } ] ], - "packet_query_entity_nbt": [ + "packet_enchant_item": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "entityId", - "type": "varint" + "name": "enchantment", + "type": "i8" } ] ], - "packet_use_entity": [ + "packet_entity_action": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "entityId", "type": "varint" }, { - "name": "x", + "name": "actionId", "type": [ - "switch", + "mapper", { - "compareTo": "mouse", - "fields": { - "2": "f32" + "mappings": { + "0": "leave_bed", + "1": "start_sprinting", + "2": "stop_sprinting", + "3": "start_horse_jump", + "4": "stop_horse_jump", + "5": "open_vehicle_inventory", + "6": "start_elytra_flying" }, - "default": "void" + "type": "varint" } ] }, { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "flags", + "type": "MovementFlags" + } + ] + ], + "packet_generate_structure": [ + "container", + [ + { + "name": "location", + "type": "position" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "levels", + "type": "varint" }, { - "name": "sneaking", + "name": "keepJigsaws", "type": "bool" } ] ], - "packet_generate_structure": [ + "packet_held_item_slot": [ "container", [ { - "name": "location", + "name": "slotId", + "type": "i16" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_lock_difficulty": [ + "container", + [ + { + "name": "locked", + "type": "bool" + } + ] + ], + "packet_look": [ + "container", + [ + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "flags", + "type": "MovementFlags" + } + ] + ], + "packet_message_acknowledgement": [ + "container", + [ + { + "name": "count", + "type": "varint" + } + ] + ], + "packet_name_item": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item_from_block": [ + "container", + [ + { + "name": "position", "type": "position" }, { - "name": "levels", + "name": "includeData", + "type": "bool" + } + ] + ], + "packet_pick_item_from_entity": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "keepJigsaws", + "name": "includeData", "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_ping_request": [ + "container", + [ + { + "name": "id", + "type": "i64" + } + ] + ], + "packet_player_input": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "inputs", + "type": [ + "bitflags", + { + "flags": [ + "forward", + "backward", + "left", + "right", + "jump", + "shift", + "sprint" + ], + "type": "u8" + } + ] } ] ], - "packet_lock_difficulty": [ + "packet_player_loaded": [ + "container", + [] + ], + "packet_pong": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "id", + "type": "i32" } ] ], - "MovementFlags": [ - "bitflags", - { - "type": "u8", - "flags": [ - "onGround", - "hasHorizontalCollision" - ] - } - ], "packet_position": [ "container", [ @@ -10866,329 +11070,268 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "flags", - "type": "MovementFlags" - } - ] - ], - "packet_flying": [ - "container", - [ - { - "name": "flags", - "type": "MovementFlags" + "name": "location", + "type": "position" } ] ], - "packet_vehicle_move": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_recipe_book": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "bookId", + "type": "varint" }, { - "name": "rightPaddle", + "name": "bookOpen", "type": "bool" - } - ] - ], - "packet_pick_item_from_block": [ - "container", - [ - { - "name": "position", - "type": "position" }, { - "name": "includeData", + "name": "filterActive", "type": "bool" } ] ], - "packet_pick_item_from_entity": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "uuid", + "type": "UUID" }, { - "name": "includeData", - "type": "bool" - } - ] - ], - "packet_ping_request": [ - "container", - [ - { - "name": "id", - "type": "i64" + "name": "result", + "type": "varint" } ] ], - "packet_craft_recipe_request": [ + "packet_select_bundle_item": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "recipeId", + "name": "slotId", "type": "varint" }, { - "name": "makeAll", - "type": "bool" + "name": "selectedItemIndex", + "type": "varint" } ] ], - "packet_abilities": [ + "packet_select_trade": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "slot", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "primary_effect", + "type": [ + "option", + "varint" + ] }, { - "name": "sequence", - "type": "varint" + "name": "secondary_effect", + "type": [ + "option", + "varint" + ] } ] ], - "packet_entity_action": [ + "packet_set_creative_slot": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "leave_bed", - "1": "start_sprinting", - "2": "stop_sprinting", - "3": "start_horse_jump", - "4": "stop_horse_jump", - "5": "open_vehicle_inventory", - "6": "start_elytra_flying" - } - } - ] + "name": "slot", + "type": "i16" }, { - "name": "jumpBoost", - "type": "varint" + "name": "item", + "type": "UntrustedSlot" } ] ], - "packet_player_input": [ + "packet_set_difficulty": [ "container", [ { - "name": "inputs", + "name": "newDifficulty", "type": [ - "bitflags", + "mapper", { - "type": "u8", - "flags": [ - "forward", - "backward", - "left", - "right", - "jump", - "shift", - "sprint" - ] + "mappings": { + "0": "peaceful", + "1": "easy", + "2": "normal", + "3": "hard" + }, + "type": "varint" } ] } ] ], - "packet_player_loaded": [ - "container", - [] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_recipe_book": [ + "packet_set_slot_state": [ "container", [ { - "name": "bookId", + "name": "slot_id", "type": "varint" }, { - "name": "bookOpen", - "type": "bool" + "name": "window_id", + "type": "ContainerID" }, { - "name": "filterActive", + "name": "state", "type": "bool" } ] ], - "packet_displayed_recipe": [ + "packet_set_test_block": [ "container", [ { - "name": "recipeId", + "name": "position", + "type": "position" + }, + { + "name": "mode", "type": "varint" + }, + { + "name": "message", + "type": "string" } ] ], - "packet_name_item": [ + "packet_spectate": [ "container", [ { - "name": "name", - "type": "string" + "name": "target", + "type": "UUID" } ] ], - "packet_resource_pack_receive": [ + "packet_steer_boat": [ "container", [ { - "name": "uuid", - "type": "UUID" + "name": "leftPaddle", + "type": "bool" }, { - "name": "result", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], - "packet_advancement_tab": [ + "packet_tab_complete": [ "container", [ { - "name": "action", + "name": "transactionId", "type": "varint" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "text", + "type": "string" } ] ], - "packet_select_trade": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slot", + "name": "teleportId", "type": "varint" } ] ], - "packet_set_beacon_effect": [ + "packet_test_instance_block_action": [ "container", [ { - "name": "primary_effect", - "type": [ - "option", - "varint" - ] + "name": "pos", + "type": "position" }, { - "name": "secondary_effect", + "name": "action", + "type": "varint" + }, + { + "name": "data", "type": [ - "option", - "varint" + "container", + [ + { + "name": "test", + "type": [ + "option", + "string" + ] + }, + { + "name": "size", + "type": "vec3i" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "ignoreEntities", + "type": "bool" + }, + { + "name": "status", + "type": "varint" + }, + { + "name": "errorMessage", + "type": [ + "option", + "anonymousNbt" + ] + } + ] ] } ] ], - "packet_held_item_slot": [ + "packet_tick_end": [ "container", - [ - { - "name": "slotId", - "type": "i16" - } - ] + [] ], "packet_update_command_block": [ "container", @@ -11228,19 +11371,6 @@ } ] ], - "packet_set_creative_slot": [ - "container", - [ - { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "UntrustedSlot" - } - ] - ], "packet_update_jigsaw_block": [ "container", [ @@ -11278,6 +11408,35 @@ } ] ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], "packet_update_structure_block": [ "container", [ @@ -11346,134 +11505,89 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ignore_entities", "1": "show_air", "2": "show_bounding_box", "3": "strict" - } + }, + "type": "u8" } ] } ] ], - "packet_set_test_block": [ + "packet_use_entity": [ "container", [ { - "name": "position", - "type": "position" - }, - { - "name": "mode", + "name": "target", "type": "varint" }, { - "name": "message", - "type": "string" - } - ] - ], - "packet_update_sign": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "isFrontText", - "type": "bool" - }, - { - "name": "text1", - "type": "string" - }, - { - "name": "text2", - "type": "string" - }, - { - "name": "text3", - "type": "string" - }, - { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ - { - "name": "hand", + "name": "mouse", "type": "varint" - } - ] - ], - "packet_spectate": [ - "container", - [ - { - "name": "target", - "type": "UUID" - } - ] - ], - "packet_test_instance_block_action": [ - "container", - [ - { - "name": "pos", - "type": "position" }, { - "name": "action", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "data", + "name": "y", "type": [ - "container", - [ - { - "name": "test", - "type": [ - "option", - "string" - ] - }, - { - "name": "size", - "type": "vec3i" - }, - { - "name": "rotation", - "type": "varint" - }, - { - "name": "ignoreEntities", - "type": "bool" - }, - { - "name": "status", - "type": "varint" - }, - { - "name": "errorMessage", - "type": [ - "option", - "anonymousNbt" - ] + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" } - ] + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } ] + }, + { + "name": "sneaking", + "type": "bool" } ] ], - "packet_block_place": [ + "packet_use_item": [ "container", [ { @@ -11481,211 +11595,97 @@ "type": "varint" }, { - "name": "location", - "type": "position" + "name": "sequence", + "type": "varint" }, { - "name": "direction", - "type": "varint" + "name": "rotation", + "type": "vec2f" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": "f64" }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": "f64" }, { - "name": "cursorZ", + "name": "yaw", "type": "f32" }, { - "name": "insideBlock", - "type": "bool" + "name": "pitch", + "type": "f32" }, { - "name": "worldBorderHit", + "name": "onGround", "type": "bool" - }, - { - "name": "sequence", - "type": "varint" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "sequence", + "name": "stateId", "type": "varint" }, { - "name": "rotation", - "type": "vec2f" - } - ] - ], - "packet": [ - "container", - [ + "name": "slot", + "type": "i16" + }, { - "name": "name", + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "select_bundle_item", - "0x03": "set_difficulty", - "0x04": "change_gamemode", - "0x05": "message_acknowledgement", - "0x06": "chat_command", - "0x07": "chat_command_signed", - "0x08": "chat_message", - "0x09": "chat_session_update", - "0x0a": "chunk_batch_received", - "0x0b": "client_command", - "0x0c": "tick_end", - "0x0d": "settings", - "0x0e": "tab_complete", - "0x0f": "configuration_acknowledged", - "0x10": "enchant_item", - "0x11": "window_click", - "0x12": "close_window", - "0x13": "set_slot_state", - "0x14": "cookie_response", - "0x15": "custom_payload", - "0x16": "debug_subscription_request", - "0x17": "edit_book", - "0x18": "query_entity_nbt", - "0x19": "use_entity", - "0x1a": "generate_structure", - "0x1b": "keep_alive", - "0x1c": "lock_difficulty", - "0x1d": "position", - "0x1e": "position_look", - "0x1f": "look", - "0x20": "flying", - "0x21": "vehicle_move", - "0x22": "steer_boat", - "0x23": "pick_item_from_block", - "0x24": "pick_item_from_entity", - "0x25": "ping_request", - "0x26": "craft_recipe_request", - "0x27": "abilities", - "0x28": "block_dig", - "0x29": "entity_action", - "0x2a": "player_input", - "0x2b": "player_loaded", - "0x2c": "pong", - "0x2d": "recipe_book", - "0x2e": "displayed_recipe", - "0x2f": "name_item", - "0x30": "resource_pack_receive", - "0x31": "advancement_tab", - "0x32": "select_trade", - "0x33": "set_beacon_effect", - "0x34": "held_item_slot", - "0x35": "update_command_block", - "0x36": "update_command_block_minecart", - "0x37": "set_creative_slot", - "0x38": "update_jigsaw_block", - "0x39": "update_structure_block", - "0x3a": "set_test_block", - "0x3b": "update_sign", - "0x3c": "arm_animation", - "0x3d": "spectate", - "0x3e": "test_instance_block_action", - "0x3f": "block_place", - "0x40": "use_item", - "0x41": "custom_click_action" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": [ + "option", + "HashedSlot" + ] + } + ] + ] } ] }, { - "name": "params", + "name": "cursorItem", "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "select_bundle_item": "packet_select_bundle_item", - "set_difficulty": "packet_set_difficulty", - "change_gamemode": "packet_change_gamemode", - "message_acknowledgement": "packet_message_acknowledgement", - "chat_command": "packet_chat_command", - "chat_command_signed": "packet_chat_command_signed", - "chat_message": "packet_chat_message", - "chat_session_update": "packet_chat_session_update", - "chunk_batch_received": "packet_chunk_batch_received", - "client_command": "packet_client_command", - "tick_end": "packet_tick_end", - "settings": "packet_common_settings", - "tab_complete": "packet_tab_complete", - "configuration_acknowledged": "packet_configuration_acknowledged", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "set_slot_state": "packet_set_slot_state", - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "debug_subscription_request": "packet_debug_subscription_request", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "pick_item_from_block": "packet_pick_item_from_block", - "pick_item_from_entity": "packet_pick_item_from_entity", - "ping_request": "packet_ping_request", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "player_input": "packet_player_input", - "player_loaded": "packet_player_loaded", - "pong": "packet_pong", - "recipe_book": "packet_recipe_book", - "displayed_recipe": "packet_displayed_recipe", - "name_item": "packet_name_item", - "resource_pack_receive": "packet_resource_pack_receive", - "advancement_tab": "packet_advancement_tab", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "held_item_slot": "packet_held_item_slot", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_structure_block": "packet_update_structure_block", - "set_test_block": "packet_set_test_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "test_instance_block_action": "packet_test_instance_block_action", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "custom_click_action": "packet_common_custom_click_action" - } - } + "option", + "HashedSlot" ] } ] diff --git a/data/pc/1.21.3/protocol.json b/data/pc/1.21.3/protocol.json index 7e48061ae..5f4f91661 100644 --- a/data/pc/1.21.3/protocol.json +++ b/data/pc/1.21.3/protocol.json @@ -1,130 +1,147 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "anonymousNbt": "native", - "anonOptionalNbt": "native", - "registryEntryHolder": "native", - "registryEntryHolderSet": "native", - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec2f": [ + "ArmorTrimMaterial": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetName", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "ingredientId", + "type": "varint" + }, + { + "name": "overrideArmorAssets", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + }, + { + "name": "description", + "type": "anonymousNbt" } ] ], - "vec3f": [ + "ArmorTrimPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "templateItemId", + "type": "varint" }, { - "name": "z", - "type": "f32" + "name": "description", + "type": "anonymousNbt" + }, + { + "name": "decal", + "type": "bool" } ] ], - "vec4f": [ + "BannerPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" - }, + "name": "translationKey", + "type": "string" + } + ] + ], + "BannerPatternLayer": [ + "container", + [ { - "name": "z", - "type": "f32" + "name": "pattern", + "type": "ItemSoundHolder" }, { - "name": "w", - "type": "f32" + "name": "colorId", + "type": "varint" } ] ], - "vec3f64": [ + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "ContainerID": "varint", + "EntityMetadataPaintingVariant": [ "container", [ { - "name": "x", - "type": "f64" + "name": "width", + "type": "i32" }, { - "name": "y", - "type": "f64" + "name": "height", + "type": "i32" }, { - "name": "z", - "type": "f64" + "name": "assetId", + "type": "string" + }, + { + "name": "title", + "type": [ + "option", + "anonymousNbt" + ] + }, + { + "name": "author", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "vec3i16": [ + "EntityMetadataWolfVariant": [ "container", [ { - "name": "x", - "type": "i16" + "name": "wildTexture", + "type": "string" }, { - "name": "y", - "type": "i16" + "name": "tameTexture", + "type": "string" }, { - "name": "z", - "type": "i16" + "name": "angryTexture", + "type": "string" + }, + { + "name": "biome", + "type": "IDSet" } ] ], @@ -141,2752 +158,615 @@ } } ], - "ContainerID": "varint", - "SlotComponentType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "custom_data", - "1": "max_stack_size", - "2": "max_damage", - "3": "damage", - "4": "unbreakable", - "5": "custom_name", - "6": "item_name", - "7": "item_model", - "8": "lore", - "9": "rarity", - "10": "enchantments", - "11": "can_place_on", - "12": "can_break", - "13": "attribute_modifiers", - "14": "custom_model_data", - "15": "hide_additional_tooltip", - "16": "hide_tooltip", - "17": "repair_cost", - "18": "creative_slot_lock", - "19": "enchantment_glint_override", - "20": "intangible_projectile", - "21": "food", - "22": "consumable", - "23": "use_remainder", - "24": "use_cooldown", - "25": "damage_resistant", - "26": "tool", - "27": "enchantable", - "28": "equippable", - "29": "repairable", - "30": "glider", - "31": "tooltip_style", - "32": "death_protection", - "33": "stored_enchantments", - "34": "dyed_color", - "35": "map_color", - "36": "map_id", - "37": "map_decorations", - "38": "map_post_processing", - "39": "charged_projectiles", - "40": "bundle_contents", - "41": "potion_contents", - "42": "suspicious_stew_effects", - "43": "writable_book_content", - "44": "written_book_content", - "45": "trim", - "46": "debug_stick_state", - "47": "entity_data", - "48": "bucket_entity_data", - "49": "block_entity_data", - "50": "instrument", - "51": "ominous_bottle_amplifier", - "52": "jukebox_playable", - "53": "recipes", - "54": "lodestone_tracker", - "55": "firework_explosion", - "56": "fireworks", - "57": "profile", - "58": "note_block_sound", - "59": "banner_patterns", - "60": "base_color", - "61": "pot_decorations", - "62": "container", - "63": "block_state", - "64": "bees", - "65": "lock", - "66": "container_loot" - } - } - ], - "SlotComponent": [ + "InstrumentData": [ "container", [ { - "name": "type", - "type": "SlotComponentType" + "name": "soundEvent", + "type": "ItemSoundHolder" }, { - "name": "data", + "name": "useDuration", + "type": "f32" + }, + { + "name": "range", + "type": "f32" + }, + { + "name": "description", + "type": "anonymousNbt" + } + ] + ], + "ItemBlockPredicate": [ + "container", + [ + { + "name": "blockSet", + "type": [ + "option", + [ + "registryEntryHolderSet", + { + "base": { + "name": "name", + "type": "string" + }, + "otherwise": { + "name": "blockIds", + "type": "varint" + } + } + ] + ] + }, + { + "name": "properties", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": "ItemBlockProperty" + } + ] + ] + }, + { + "name": "nbt", + "type": "anonOptionalNbt" + } + ] + ], + "ItemBlockProperty": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "isExactMatch", + "type": "bool" + }, + { + "name": "value", "type": [ "switch", { - "compareTo": "type", + "compareTo": "isExactMatch", "fields": { - "custom_data": "anonymousNbt", - "max_stack_size": "varint", - "max_damage": "varint", - "damage": "varint", - "unbreakable": "bool", - "custom_name": "anonymousNbt", - "item_name": "anonymousNbt", - "item_model": "string", - "lore": [ - "array", - { - "countType": "varint", - "type": "anonOptionalNbt" - } - ], - "rarity": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "common", - "1": "uncommon", - "2": "rare", - "3": "epic" - } - } - ], - "enchantments": [ + "false": [ "container", [ { - "name": "enchantments", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] - } - ] + "name": "minValue", + "type": "string" }, { - "name": "showTooltip", - "type": "bool" + "name": "maxValue", + "type": "string" } ] ], - "can_place_on": [ + "true": [ "container", [ { - "name": "predicates", + "name": "exactValue", + "type": "string" + } + ] + ] + } + } + ] + } + ] + ], + "ItemBookPage": [ + "container", + [ + { + "name": "content", + "type": "string" + }, + { + "name": "filteredContent", + "type": [ + "option", + "string" + ] + } + ] + ], + "ItemConsumeEffect": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "apply_effects", + "1": "remove_effects", + "2": "clear_all_effects", + "3": "teleport_randomly", + "4": "play_sound" + }, + "type": "varint" + } + ] + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "apply_effects": [ + "container", + [ + { + "name": "effects", "type": [ "array", { "countType": "varint", - "type": "ItemBlockPredicate" + "type": "ItemPotionEffect" } ] }, { - "name": "showTooltip", - "type": "bool" + "name": "probability", + "type": "f32" } ] ], - "can_break": [ + "clear_all_effects": "void", + "play_sound": [ "container", [ { - "name": "predicates", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBlockPredicate" - } - ] - }, + "name": "sound", + "type": "ItemSoundHolder" + } + ] + ], + "remove_effects": [ + "container", + [ { - "name": "showTooltip", - "type": "bool" + "name": "effects", + "type": "IDSet" } ] ], - "attribute_modifiers": [ + "teleport_randomly": [ "container", [ { - "name": "attributes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "typeId", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "operation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "add", - "1": "multiply_base", - "2": "multiply_total" - } - } - ] - }, - { - "name": "slot", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "any", - "1": "main_hand", - "2": "off_hand", - "3": "hand", - "4": "feet", - "5": "legs", - "6": "chest", - "7": "head", - "8": "armor", - "9": "body" - } - } - ] - } - ] - ] - } - ] - }, - { - "name": "showTooltip", - "type": "bool" - } - ] - ], - "custom_model_data": [ - "container", - [ - { - "name": "floats", - "type": [ - "array", - { - "countType": "varint", - "type": "f32" - } - ] - }, - { - "name": "flags", - "type": [ - "array", - { - "countType": "varint", - "type": "bool" - } - ] - }, - { - "name": "strings", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "colors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - } - ] - ], - "hide_additional_tooltip": "void", - "hide_tooltip": "void", - "repair_cost": "varint", - "creative_slot_lock": "void", - "enchantment_glint_override": "bool", - "intangible_projectile": "anonymousNbt", - "food": [ - "container", - [ - { - "name": "nutrition", - "type": "varint" - }, - { - "name": "saturationModifier", - "type": "f32" - }, - { - "name": "canAlwaysEat", - "type": "bool" - } - ] - ], - "consumable": [ - "container", - [ - { - "name": "consume_seconds", - "type": "f32" - }, - { - "name": "animation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "none", - "1": "eat", - "2": "drink", - "3": "block", - "4": "bow", - "5": "spear", - "6": "crossbow", - "7": "spyglass", - "8": "toot_horn", - "9": "brush" - } - } - ] - }, - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "makes_particles", - "type": "bool" - }, - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemConsumeEffect" - } - ] - } - ] - ], - "use_remainder": "Slot", - "use_cooldown": [ - "container", - [ - { - "name": "seconds", - "type": "f32" - }, - { - "name": "cooldownGroup", - "type": [ - "option", - "string" - ] - } - ] - ], - "damage_resistant": "string", - "tool": [ - "container", - [ - { - "name": "rules", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "blocks", - "type": "IDSet" - }, - { - "name": "speed", - "type": [ - "option", - "f32" - ] - }, - { - "name": "correctDropForBlocks", - "type": [ - "option", - "bool" - ] - } - ] - ] - } - ] - }, - { - "name": "defaultMiningSpeed", + "name": "diameter", "type": "f32" - }, - { - "name": "damagePerBlock", - "type": "varint" } ] - ], - "enchantable": "varint", - "equippable": [ - "container", - [ - { - "name": "slot", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "main_hand", - "1": "off_hand", - "2": "feet", - "3": "legs", - "4": "chest", - "5": "head", - "6": "body" - } - } - ] - }, - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "model", - "type": [ - "option", - "string" - ] - }, - { - "name": "cameraOverlay", - "type": [ - "option", - "string" - ] - }, - { - "name": "allowedEntities", - "type": [ - "option", - "IDSet" - ] - }, - { - "name": "dispensable", - "type": "bool" - }, - { - "name": "swappable", - "type": "bool" - }, - { - "name": "damageable", - "type": "bool" - } - ] - ], - "repairable": [ - "container", - [ - { - "name": "items", - "type": "IDSet" - } - ] - ], - "glider": "void", - "tooltip_style": "string", - "death_protection": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemConsumeEffect" - } - ] - } - ] - ], - "stored_enchantments": [ - "container", - [ - { - "name": "enchantments", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] - } - ] - }, - { - "name": "showInTooltip", - "type": "bool" - } - ] - ], - "dyed_color": [ - "container", - [ - { - "name": "color", - "type": "i32" - }, - { - "name": "showTooltip", - "type": "bool" - } - ] - ], - "map_color": "i32", - "map_id": "varint", - "map_decorations": "anonymousNbt", - "map_post_processing": "varint", - "charged_projectiles": [ - "container", - [ - { - "name": "projectiles", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "bundle_contents": [ - "container", - [ - { - "name": "contents", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "potion_contents": [ - "container", - [ - { - "name": "potionId", - "type": [ - "option", - "varint" - ] - }, - { - "name": "customColor", - "type": [ - "option", - "i32" - ] - }, - { - "name": "customEffects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemPotionEffect" - } - ] - }, - { - "name": "customName", - "type": [ - "option", - "string" - ] - } - ] - ], - "suspicious_stew_effects": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "effect", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "writable_book_content": [ - "container", - [ - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBookPage" - } - ] - } - ] - ], - "written_book_content": [ - "container", - [ - { - "name": "rawTitle", - "type": "string" - }, - { - "name": "filteredTitle", - "type": [ - "option", - "string" - ] - }, - { - "name": "author", - "type": "string" - }, - { - "name": "generation", - "type": "varint" - }, - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemWrittenBookPage" - } - ] - }, - { - "name": "resolved", - "type": "bool" - } - ] - ], - "trim": [ - "container", - [ - { - "name": "material", - "type": [ - "registryEntryHolder", - { - "baseName": "materialId", - "otherwise": { - "name": "data", - "type": "ArmorTrimMaterial" - } - } - ] - }, - { - "name": "pattern", - "type": [ - "registryEntryHolder", - { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "ArmorTrimPattern" - } - } - ] - }, - { - "name": "showInTooltip", - "type": "bool" - } - ] - ], - "debug_stick_state": "anonymousNbt", - "entity_data": "anonymousNbt", - "bucket_entity_data": "anonymousNbt", - "block_entity_data": "anonymousNbt", - "instrument": [ - "registryEntryHolder", - { - "baseName": "instrumentId", - "otherwise": { - "name": "data", - "type": "InstrumentData" - } - } - ], - "ominous_bottle_amplifier": "varint", - "jukebox_playable": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "song", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "songId", - "otherwise": { - "name": "data", - "type": "JukeboxSongData" - } - } - ], - "false": "string" - } - } - ] - }, - { - "name": "showInTooltip", - "type": "bool" - } - ] - ], - "recipes": "anonymousNbt", - "lodestone_tracker": [ - "container", - [ - { - "name": "globalPosition", - "type": [ - "option", - [ - "container", - [ - { - "name": "dimension", - "type": "string" - }, - { - "name": "position", - "type": "position" - } - ] - ] - ] - }, - { - "name": "tracked", - "type": "bool" - } - ] - ], - "firework_explosion": "ItemFireworkExplosion", - "fireworks": [ - "container", - [ - { - "name": "flightDuration", - "type": "varint" - }, - { - "name": "explosions", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemFireworkExplosion" - } - ] - } - ] - ], - "profile": [ - "container", - [ - { - "name": "name", - "type": [ - "option", - "string" - ] - }, - { - "name": "uuid", - "type": [ - "option", - "UUID" - ] - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "note_block_sound": "string", - "banner_patterns": [ - "container", - [ - { - "name": "layers", - "type": [ - "array", - { - "countType": "varint", - "type": "BannerPatternLayer" - } - ] - } - ] - ], - "base_color": "varint", - "pot_decorations": [ - "container", - [ - { - "name": "decorations", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "container": [ - "container", - [ - { - "name": "contents", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "block_state": [ - "container", - [ - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] - } - ] - ], - "bees": [ - "container", - [ - { - "name": "bees", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "nbtData", - "type": "anonymousNbt" - }, - { - "name": "ticksInHive", - "type": "varint" - }, - { - "name": "minTicksInHive", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "lock": "anonymousNbt", - "container_loot": "anonymousNbt" - } - } - ] - } - ] - ], - "ItemSoundEvent": [ - "container", - [ - { - "name": "soundName", - "type": "string" - }, - { - "name": "fixedRange", - "type": [ - "option", - "f32" - ] - } - ] - ], - "ItemSoundHolder": [ - "registryEntryHolder", - { - "baseName": "soundId", - "otherwise": { - "name": "data", - "type": "ItemSoundEvent" - } - } - ], - "ItemFireworkExplosion": [ - "container", - [ - { - "name": "shape", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "small_ball", - "1": "large_ball", - "2": "star", - "3": "creeper", - "4": "burst" - } - } - ] - }, - { - "name": "colors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "fadeColors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "hasTrail", - "type": "bool" - }, - { - "name": "hasTwinkle", - "type": "bool" - } - ] - ], - "ItemEffectDetail": [ - "container", - [ - { - "name": "amplifier", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "ambient", - "type": "bool" - }, - { - "name": "showParticles", - "type": "bool" - }, - { - "name": "showIcon", - "type": "bool" - }, - { - "name": "hiddenEffect", - "type": [ - "option", - "ItemEffectDetail" - ] - } - ] - ], - "ItemPotionEffect": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "details", - "type": "ItemEffectDetail" - } - ] - ], - "ItemBlockProperty": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "isExactMatch", - "type": "bool" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "isExactMatch", - "fields": { - "true": [ - "container", - [ - { - "name": "exactValue", - "type": "string" - } - ] - ], - "false": [ - "container", - [ - { - "name": "minValue", - "type": "string" - }, - { - "name": "maxValue", - "type": "string" - } - ] - ] - } - } - ] - } - ] - ], - "ItemBlockPredicate": [ - "container", - [ - { - "name": "blockSet", - "type": [ - "option", - [ - "registryEntryHolderSet", - { - "base": { - "name": "name", - "type": "string" - }, - "otherwise": { - "name": "blockIds", - "type": "varint" - } - } - ] - ] - }, - { - "name": "properties", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": "ItemBlockProperty" - } - ] - ] - }, - { - "name": "nbt", - "type": "anonOptionalNbt" - } - ] - ], - "ItemBookPage": [ - "container", - [ - { - "name": "content", - "type": "string" - }, - { - "name": "filteredContent", - "type": [ - "option", - "string" - ] - } - ] - ], - "ItemWrittenBookPage": [ - "container", - [ - { - "name": "content", - "type": "anonymousNbt" - }, - { - "name": "filteredContent", - "type": "anonOptionalNbt" - } - ] - ], - "ItemConsumeEffect": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "apply_effects", - "1": "remove_effects", - "2": "clear_all_effects", - "3": "teleport_randomly", - "4": "play_sound" - } - } - ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "apply_effects": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemPotionEffect" - } - ] - }, - { - "name": "probability", - "type": "f32" - } - ] - ], - "remove_effects": [ - "container", - [ - { - "name": "effects", - "type": "IDSet" - } - ] - ], - "clear_all_effects": "void", - "teleport_randomly": [ - "container", - [ - { - "name": "diameter", - "type": "f32" - } - ] - ], - "play_sound": [ - "container", - [ - { - "name": "sound", - "type": "ItemSoundHolder" - } - ] - ] - } - } - ] - } - ] - ], - "ArmorTrimMaterial": [ - "container", - [ - { - "name": "assetName", - "type": "string" - }, - { - "name": "ingredientId", - "type": "varint" - }, - { - "name": "overrideArmorAssets", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] - }, - { - "name": "description", - "type": "anonymousNbt" - } - ] - ], - "ArmorTrimPattern": [ - "container", - [ - { - "name": "assetId", - "type": "string" - }, - { - "name": "templateItemId", - "type": "varint" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "decal", - "type": "bool" - } - ] - ], - "InstrumentData": [ - "container", - [ - { - "name": "soundEvent", - "type": "ItemSoundHolder" - }, - { - "name": "useDuration", - "type": "f32" - }, - { - "name": "range", - "type": "f32" - }, - { - "name": "description", - "type": "anonymousNbt" - } - ] - ], - "JukeboxSongData": [ - "container", - [ - { - "name": "soundEvent", - "type": "ItemSoundHolder" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "lengthInSeconds", - "type": "f32" - }, - { - "name": "comparatorOutput", - "type": "varint" - } - ] - ], - "BannerPattern": [ - "container", - [ - { - "name": "assetId", - "type": "string" - }, - { - "name": "translationKey", - "type": "string" - } - ] - ], - "BannerPatternLayer": [ - "container", - [ - { - "name": "pattern", - "type": "ItemSoundHolder" - }, - { - "name": "colorId", - "type": "varint" - } - ] - ], - "Slot": [ - "container", - [ - { - "name": "itemCount", - "type": "varint" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "itemCount", - "fields": { - "0": "void" - }, - "default": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "removedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "SlotComponent" - } - ] - }, - { - "name": "removeComponents", - "type": [ - "array", - { - "count": "removedComponentCount", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] - } - ] - } - ] - ] - } - ] - } - ] - ], - "Particle": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "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": "gust", - "24": "small_gust", - "25": "gust_emitter_large", - "26": "gust_emitter_small", - "27": "sonic_boom", - "28": "falling_dust", - "29": "firework", - "30": "fishing", - "31": "flame", - "32": "infested", - "33": "cherry_leaves", - "34": "sculk_soul", - "35": "sculk_charge", - "36": "sculk_charge_pop", - "37": "soul_fire_flame", - "38": "soul", - "39": "flash", - "40": "happy_villager", - "41": "composter", - "42": "heart", - "43": "instant_effect", - "44": "item", - "45": "vibration", - "46": "trail", - "47": "item_slime", - "48": "item_cobweb", - "49": "item_snowball", - "50": "large_smoke", - "51": "lava", - "52": "mycelium", - "53": "note", - "54": "poof", - "55": "portal", - "56": "rain", - "57": "smoke", - "58": "white_smoke", - "59": "sneeze", - "60": "spit", - "61": "squid_ink", - "62": "sweep_attack", - "63": "totem_of_undying", - "64": "underwater", - "65": "splash", - "66": "witch", - "67": "bubble_pop", - "68": "current_down", - "69": "bubble_column_up", - "70": "nautilus", - "71": "dolphin", - "72": "campfire_cosy_smoke", - "73": "campfire_signal_smoke", - "74": "dripping_honey", - "75": "falling_honey", - "76": "landing_honey", - "77": "falling_nectar", - "78": "falling_spore_blossom", - "79": "ash", - "80": "crimson_spore", - "81": "warped_spore", - "82": "spore_blossom_air", - "83": "dripping_obsidian_tear", - "84": "falling_obsidian_tear", - "85": "landing_obsidian_tear", - "86": "reverse_portal", - "87": "white_ash", - "88": "small_flame", - "89": "snowflake", - "90": "dripping_dripstone_lava", - "91": "falling_dripstone_lava", - "92": "dripping_dripstone_water", - "93": "falling_dripstone_water", - "94": "glow_squid_ink", - "95": "glow", - "96": "wax_on", - "97": "wax_off", - "98": "electric_spark", - "99": "scrape", - "100": "shriek", - "101": "egg_crack", - "102": "dust_plume", - "103": "trial_spawner_detected_player", - "104": "trial_spawner_detected_player_ominous", - "105": "vault_connection", - "106": "dust_pillar", - "107": "ominous_spawning", - "108": "raid_omen", - "109": "trial_omen", - "110": "block_crumble" - } - } - ] - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "block": "varint", - "block_marker": "varint", - "falling_dust": "varint", - "dust_pillar": "varint", - "block_crumble": "varint", - "dust": [ - "container", - [ - { - "name": "red", - "type": "f32" - }, - { - "name": "green", - "type": "f32" - }, - { - "name": "blue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - } - ] - ], - "dust_color_transition": [ - "container", - [ - { - "name": "fromRed", - "type": "f32" - }, - { - "name": "fromGreen", - "type": "f32" - }, - { - "name": "fromBlue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - }, - { - "name": "toRed", - "type": "f32" - }, - { - "name": "toGreen", - "type": "f32" - }, - { - "name": "toBlue", - "type": "f32" - } - ] - ], - "entity_effect": "i32", - "item": "Slot", - "sculk_charge": "f32", - "shriek": "varint", - "vibration": [ - "container", - [ - { - "name": "positionType", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "block", - "1": "entity" - } - } - ] - }, - { - "name": "position", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "block": "position", - "entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityEyeHeight", - "type": "f32" - } - ] - ] - } - } - ] - }, - { - "name": "ticks", - "type": "varint" - } - ] - ], - "trail": [ - "container", - [ - { - "name": "target", - "type": "vec3f64" - }, - { - "name": "color", - "type": "u8" - } - ] - ] - } - } - ] - } - ] - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "soundSource": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "master", - "1": "music", - "2": "record", - "3": "weather", - "4": "block", - "5": "hostile", - "6": "neutral", - "7": "player", - "8": "ambient", - "9": "voice" - } - } - ], - "packedChunkPos": [ - "container", - [ - { - "name": "z", - "type": "i32" - }, - { - "name": "x", - "type": "i32" - } - ] - ], - "previousMessages": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] - } - ] - ] - } - ], - "entityMetadataEntry": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "byte", - "1": "int", - "2": "long", - "3": "float", - "4": "string", - "5": "component", - "6": "optional_component", - "7": "item_stack", - "8": "boolean", - "9": "rotations", - "10": "block_pos", - "11": "optional_block_pos", - "12": "direction", - "13": "optional_uuid", - "14": "block_state", - "15": "optional_block_state", - "16": "compound_tag", - "17": "particle", - "18": "particles", - "19": "villager_data", - "20": "optional_unsigned_int", - "21": "pose", - "22": "cat_variant", - "23": "wolf_variant", - "24": "frog_variant", - "25": "optional_global_pos", - "26": "painting_variant", - "27": "sniffer_state", - "28": "armadillo_state", - "29": "vector3", - "30": "quaternion" - } - } - ] - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "byte": "i8", - "int": "varint", - "long": "varlong", - "float": "f32", - "string": "string", - "component": "anonymousNbt", - "optional_component": [ - "option", - "anonymousNbt" - ], - "item_stack": "Slot", - "boolean": "bool", - "rotations": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "block_pos": "position", - "optional_block_pos": [ - "option", - "position" - ], - "direction": "varint", - "optional_uuid": [ - "option", - "UUID" - ], - "block_state": "varint", - "optional_block_state": "optvarint", - "compound_tag": "anonymousNbt", - "particle": "Particle", - "particles": [ - "array", - { - "countType": "varint", - "type": "Particle" - } - ], - "villager_data": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "optional_unsigned_int": "optvarint", - "pose": "varint", - "cat_variant": "varint", - "wolf_variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "EntityMetadataWolfVariant" - } - } - ], - "frog_variant": "varint", - "optional_global_pos": [ - "option", - "string" - ], - "painting_variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "EntityMetadataPaintingVariant" - } - } - ], - "sniffer_state": "varint", - "armadillo_state": "varint", - "vector3": "vec3f", - "quaternion": "vec4f" - } - } - ] - } - ] - ], - "EntityMetadataPaintingVariant": [ - "container", - [ - { - "name": "width", - "type": "i32" - }, - { - "name": "height", - "type": "i32" - }, - { - "name": "assetId", - "type": "string" - }, - { - "name": "title", - "type": [ - "option", - "anonymousNbt" - ] - }, - { - "name": "author", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ], - "EntityMetadataWolfVariant": [ - "container", - [ - { - "name": "wildTexture", - "type": "string" - }, - { - "name": "tameTexture", - "type": "string" - }, - { - "name": "angryTexture", - "type": "string" - }, - { - "name": "biome", - "type": "IDSet" - } - ] - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": "entityMetadataEntry" - } - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "chunkBlockEntity": [ - "container", - [ - { - "anon": true, - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "nbtData", - "type": "anonOptionalNbt" - } - ] - ], - "chat_session": [ - "option", - [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "publicKey", - "type": [ - "container", - [ - { - "name": "expireTime", - "type": "i64" - }, - { - "name": "keyBytes", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "keySignature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] - } - ] - ] - ], - "game_profile": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "extraNodeData", - "type": [ - "switch", - { - "compareTo": "flags/command_node_type", - "fields": { - "0": "void", - "1": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] - ], - "2": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "parser", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "brigadier:bool", - "1": "brigadier:float", - "2": "brigadier:double", - "3": "brigadier:integer", - "4": "brigadier:long", - "5": "brigadier:string", - "6": "minecraft:entity", - "7": "minecraft:game_profile", - "8": "minecraft:block_pos", - "9": "minecraft:column_pos", - "10": "minecraft:vec3", - "11": "minecraft:vec2", - "12": "minecraft:block_state", - "13": "minecraft:block_predicate", - "14": "minecraft:item_stack", - "15": "minecraft:item_predicate", - "16": "minecraft:color", - "17": "minecraft:component", - "18": "minecraft:style", - "19": "minecraft:message", - "20": "minecraft:nbt", - "21": "minecraft:nbt_tag", - "22": "minecraft:nbt_path", - "23": "minecraft:objective", - "24": "minecraft:objective_criteria", - "25": "minecraft:operation", - "26": "minecraft:particle", - "27": "minecraft:angle", - "28": "minecraft:rotation", - "29": "minecraft:scoreboard_slot", - "30": "minecraft:score_holder", - "31": "minecraft:swizzle", - "32": "minecraft:team", - "33": "minecraft:item_slot", - "34": "minecraft:item_slots", - "35": "minecraft:resource_location", - "36": "minecraft:function", - "37": "minecraft:entity_anchor", - "38": "minecraft:int_range", - "39": "minecraft:float_range", - "40": "minecraft:dimension", - "41": "minecraft:gamemode", - "42": "minecraft:time", - "43": "minecraft:resource_or_tag", - "44": "minecraft:resource_or_tag_key", - "45": "minecraft:resource", - "46": "minecraft:resource_key", - "47": "minecraft:template_mirror", - "48": "minecraft:template_rotation", - "49": "minecraft:heightmap", - "50": "minecraft:loot_table", - "51": "minecraft:loot_predicate", - "52": "minecraft:loot_modifier", - "53": "minecraft:uuid" - } - } - ] - }, - { - "name": "properties", - "type": [ - "switch", - { - "compareTo": "parser", - "fields": { - "brigadier:bool": "void", - "brigadier:float": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "min", - "type": [ - "switch", - { - "compareTo": "flags/min_present", - "fields": { - "1": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "max", - "type": [ - "switch", - { - "compareTo": "flags/max_present", - "fields": { - "1": "f32" - }, - "default": "void" - } - ] - } - ] - ], - "brigadier:double": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "min", - "type": [ - "switch", - { - "compareTo": "flags/min_present", - "fields": { - "1": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "max", - "type": [ - "switch", - { - "compareTo": "flags/max_present", - "fields": { - "1": "f64" - }, - "default": "void" - } - ] - } - ] - ], - "brigadier:integer": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "min", - "type": [ - "switch", - { - "compareTo": "flags/min_present", - "fields": { - "1": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "max", - "type": [ - "switch", - { - "compareTo": "flags/max_present", - "fields": { - "1": "i32" - }, - "default": "void" - } - ] - } - ] - ], - "brigadier:long": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "min", - "type": [ - "switch", - { - "compareTo": "flags/min_present", - "fields": { - "1": "i64" - }, - "default": "void" - } - ] - }, - { - "name": "max", - "type": [ - "switch", - { - "compareTo": "flags/max_present", - "fields": { - "1": "i64" - }, - "default": "void" - } - ] - } - ] - ], - "brigadier:string": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "SINGLE_WORD", - "1": "QUOTABLE_PHRASE", - "2": "GREEDY_PHRASE" - } - } - ], - "minecraft:entity": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ], - "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", - "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", - "minecraft:message": "void", - "minecraft:nbt": "void", - "minecraft:nbt_path": "void", - "minecraft:objective": "void", - "minecraft:objective_criteria": "void", - "minecraft:operation": "void", - "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:dimension": "void", - "minecraft:gamemode": "void", - "minecraft:time": [ - "container", - [ - { - "name": "min", - "type": "i32" - } - ] - ], - "minecraft:resource_or_tag": [ - "container", - [ - { - "name": "registry", - "type": "string" - } - ] - ], - "minecraft:resource_or_tag_key": [ - "container", - [ - { - "name": "registry", - "type": "string" - } - ] - ], - "minecraft:resource": [ - "container", - [ - { - "name": "registry", - "type": "string" - } - ] - ], - "minecraft:resource_key": [ - "container", - [ - { - "name": "registry", - "type": "string" - } - ] - ], - "minecraft:template_mirror": "void", - "minecraft:template_rotation": "void", - "minecraft:heightmap": "void", - "minecraft:uuid": "void" - } + ] + } + } + ] + } + ] + ], + "ItemEffectDetail": [ + "container", + [ + { + "name": "amplifier", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "ambient", + "type": "bool" + }, + { + "name": "showParticles", + "type": "bool" + }, + { + "name": "showIcon", + "type": "bool" + }, + { + "name": "hiddenEffect", + "type": [ + "option", + "ItemEffectDetail" + ] + } + ] + ], + "ItemFireworkExplosion": [ + "container", + [ + { + "name": "shape", + "type": [ + "mapper", + { + "mappings": { + "0": "small_ball", + "1": "large_ball", + "2": "star", + "3": "creeper", + "4": "burst" + }, + "type": "varint" + } + ] + }, + { + "name": "colors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] + }, + { + "name": "fadeColors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] + }, + { + "name": "hasTrail", + "type": "bool" + }, + { + "name": "hasTwinkle", + "type": "bool" + } + ] + ], + "ItemPotionEffect": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "details", + "type": "ItemEffectDetail" + } + ] + ], + "ItemSoundEvent": [ + "container", + [ + { + "name": "soundName", + "type": "string" + }, + { + "name": "fixedRange", + "type": [ + "option", + "f32" + ] + } + ] + ], + "ItemSoundHolder": [ + "registryEntryHolder", + { + "baseName": "soundId", + "otherwise": { + "name": "data", + "type": "ItemSoundEvent" + } + } + ], + "ItemWrittenBookPage": [ + "container", + [ + { + "name": "content", + "type": "anonymousNbt" + }, + { + "name": "filteredContent", + "type": "anonOptionalNbt" + } + ] + ], + "JukeboxSongData": [ + "container", + [ + { + "name": "soundEvent", + "type": "ItemSoundHolder" + }, + { + "name": "description", + "type": "anonymousNbt" + }, + { + "name": "lengthInSeconds", + "type": "f32" + }, + { + "name": "comparatorOutput", + "type": "varint" + } + ] + ], + "Particle": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "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": "gust", + "24": "small_gust", + "25": "gust_emitter_large", + "26": "gust_emitter_small", + "27": "sonic_boom", + "28": "falling_dust", + "29": "firework", + "30": "fishing", + "31": "flame", + "32": "infested", + "33": "cherry_leaves", + "34": "sculk_soul", + "35": "sculk_charge", + "36": "sculk_charge_pop", + "37": "soul_fire_flame", + "38": "soul", + "39": "flash", + "40": "happy_villager", + "41": "composter", + "42": "heart", + "43": "instant_effect", + "44": "item", + "45": "vibration", + "46": "trail", + "47": "item_slime", + "48": "item_cobweb", + "49": "item_snowball", + "50": "large_smoke", + "51": "lava", + "52": "mycelium", + "53": "note", + "54": "poof", + "55": "portal", + "56": "rain", + "57": "smoke", + "58": "white_smoke", + "59": "sneeze", + "60": "spit", + "61": "squid_ink", + "62": "sweep_attack", + "63": "totem_of_undying", + "64": "underwater", + "65": "splash", + "66": "witch", + "67": "bubble_pop", + "68": "current_down", + "69": "bubble_column_up", + "70": "nautilus", + "71": "dolphin", + "72": "campfire_cosy_smoke", + "73": "campfire_signal_smoke", + "74": "dripping_honey", + "75": "falling_honey", + "76": "landing_honey", + "77": "falling_nectar", + "78": "falling_spore_blossom", + "79": "ash", + "80": "crimson_spore", + "81": "warped_spore", + "82": "spore_blossom_air", + "83": "dripping_obsidian_tear", + "84": "falling_obsidian_tear", + "85": "landing_obsidian_tear", + "86": "reverse_portal", + "87": "white_ash", + "88": "small_flame", + "89": "snowflake", + "90": "dripping_dripstone_lava", + "91": "falling_dripstone_lava", + "92": "dripping_dripstone_water", + "93": "falling_dripstone_water", + "94": "glow_squid_ink", + "95": "glow", + "96": "wax_on", + "97": "wax_off", + "98": "electric_spark", + "99": "scrape", + "100": "shriek", + "101": "egg_crack", + "102": "dust_plume", + "103": "trial_spawner_detected_player", + "104": "trial_spawner_detected_player_ominous", + "105": "vault_connection", + "106": "dust_pillar", + "107": "ominous_spawning", + "108": "raid_omen", + "109": "trial_omen", + "110": "block_crumble" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "block": "varint", + "block_crumble": "varint", + "block_marker": "varint", + "dust": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "dust_color_transition": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "dust_pillar": "varint", + "entity_effect": "i32", + "falling_dust": "varint", + "item": "Slot", + "sculk_charge": "f32", + "shriek": "varint", + "trail": [ + "container", + [ + { + "name": "target", + "type": "vec3f64" + }, + { + "name": "color", + "type": "u8" + } + ] + ], + "vibration": [ + "container", + [ + { + "name": "positionType", + "type": [ + "mapper", + { + "mappings": { + "0": "block", + "1": "entity" + }, + "type": "varint" } ] }, { - "name": "suggestionType", + "name": "position", "type": [ "switch", { - "compareTo": "../flags/has_custom_suggestions", + "compareTo": "positionType", "fields": { - "1": "string" - }, - "default": "void" + "block": "position", + "entity": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "entityEyeHeight", + "type": "f32" + } + ] + ] + } } ] + }, + { + "name": "ticks", + "type": "varint" } ] ] @@ -2896,1006 +776,2240 @@ } ] ], - "packet_common_settings": [ - "container", - [ - { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" - }, - { - "name": "enableTextFiltering", - "type": "bool" - }, - { - "name": "enableServerListing", - "type": "bool" - }, - { - "name": "particleStatus", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "all", - "1": "decreased", - "2": "minimal" - } - } - ] - } - ] - ], - "packet_common_cookie_request": [ - "container", - [ - { - "name": "cookie", - "type": "string" - } - ] - ], - "packet_common_store_cookie": [ - "container", - [ - { - "name": "key", - "type": "string" + "ServerLinkType": [ + "mapper", + { + "mappings": { + "0": "bug_report", + "1": "community_guidelines", + "2": "support", + "3": "status", + "4": "feedback", + "5": "community", + "6": "website", + "7": "forums", + "8": "news", + "9": "announcements" }, - { - "name": "value", - "type": "ByteArray" - } - ] + "type": "varint" + } ], - "packet_common_transfer": [ + "Slot": [ "container", [ { - "name": "host", - "type": "string" - }, - { - "name": "port", + "name": "itemCount", "type": "varint" - } - ] - ], - "packet_common_cookie_response": [ - "container", - [ - { - "name": "key", - "type": "string" }, { - "name": "value", - "type": [ - "option", - "ByteArray" - ] - } - ] - ], - "packet_common_select_known_packs": [ - "container", - [ - { - "name": "packs", + "anon": true, "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ + "compareTo": "itemCount", + "default": [ "container", [ { - "name": "namespace", - "type": "string" + "name": "itemId", + "type": "varint" }, { - "name": "id", - "type": "string" + "name": "addedComponentCount", + "type": "varint" }, { - "name": "version", - "type": "string" - } - ] - ] - } - ] - } - ] - ], - "packet_common_custom_report_details": [ - "container", - [ - { - "name": "details", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ + "name": "removedComponentCount", + "type": "varint" + }, { - "name": "key", - "type": "string" + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "SlotComponent" + } + ] }, { - "name": "value", - "type": "string" + "name": "removeComponents", + "type": [ + "array", + { + "count": "removedComponentCount", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] } ] - ] - } - ] - } - ] - ], - "packet_common_remove_resource_pack": [ - "container", - [ - { - "name": "uuid", - "type": [ - "option", - "UUID" - ] - } - ] - ], - "packet_common_add_resource_pack": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "url", - "type": "string" - }, - { - "name": "hash", - "type": "string" - }, - { - "name": "forced", - "type": "bool" - }, - { - "name": "promptMessage", - "type": [ - "option", - "anonymousNbt" + ], + "fields": { + "0": "void" + } + } ] } ] ], - "ServerLinkType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "bug_report", - "1": "community_guidelines", - "2": "support", - "3": "status", - "4": "feedback", - "5": "community", - "6": "website", - "7": "forums", - "8": "news", - "9": "announcements" - } - } - ], - "packet_common_server_links": [ + "SlotComponent": [ "container", [ { - "name": "links", + "name": "type", + "type": "SlotComponentType" + }, + { + "name": "data", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "hasKnownType", - "type": "bool" - }, - { - "name": "knownType", - "type": [ - "switch", - { - "compareTo": "hasKnownType", - "fields": { - "true": "ServerLinkType" + "compareTo": "type", + "fields": { + "attribute_modifiers": [ + "container", + [ + { + "name": "attributes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "typeId", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "operation", + "type": [ + "mapper", + { + "mappings": { + "0": "add", + "1": "multiply_base", + "2": "multiply_total" + }, + "type": "varint" + } + ] + }, + { + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "any", + "1": "main_hand", + "2": "off_hand", + "3": "hand", + "4": "feet", + "5": "legs", + "6": "chest", + "7": "head", + "8": "armor", + "9": "body" + }, + "type": "varint" + } + ] + } + ] + ] + } + ] + }, + { + "name": "showTooltip", + "type": "bool" + } + ] + ], + "banner_patterns": [ + "container", + [ + { + "name": "layers", + "type": [ + "array", + { + "countType": "varint", + "type": "BannerPatternLayer" + } + ] + } + ] + ], + "base_color": "varint", + "bees": [ + "container", + [ + { + "name": "bees", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "nbtData", + "type": "anonymousNbt" + }, + { + "name": "ticksInHive", + "type": "varint" + }, + { + "name": "minTicksInHive", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "block_entity_data": "anonymousNbt", + "block_state": [ + "container", + [ + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + } + ] + ], + "bucket_entity_data": "anonymousNbt", + "bundle_contents": [ + "container", + [ + { + "name": "contents", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "can_break": [ + "container", + [ + { + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" + } + ] + }, + { + "name": "showTooltip", + "type": "bool" + } + ] + ], + "can_place_on": [ + "container", + [ + { + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" + } + ] + }, + { + "name": "showTooltip", + "type": "bool" + } + ] + ], + "charged_projectiles": [ + "container", + [ + { + "name": "projectiles", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "consumable": [ + "container", + [ + { + "name": "consume_seconds", + "type": "f32" + }, + { + "name": "animation", + "type": [ + "mapper", + { + "mappings": { + "0": "none", + "1": "eat", + "2": "drink", + "3": "block", + "4": "bow", + "5": "spear", + "6": "crossbow", + "7": "spyglass", + "8": "toot_horn", + "9": "brush" + }, + "type": "varint" } - } - ] - }, - { - "name": "unknownType", - "type": [ - "switch", - { - "compareTo": "hasKnownType", - "fields": { - "false": "anonymousNbt" + ] + }, + { + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "makes_particles", + "type": "bool" + }, + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemConsumeEffect" + } + ] + } + ] + ], + "container": [ + "container", + [ + { + "name": "contents", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "container_loot": "anonymousNbt", + "creative_slot_lock": "void", + "custom_data": "anonymousNbt", + "custom_model_data": [ + "container", + [ + { + "name": "floats", + "type": [ + "array", + { + "countType": "varint", + "type": "f32" + } + ] + }, + { + "name": "flags", + "type": [ + "array", + { + "countType": "varint", + "type": "bool" + } + ] + }, + { + "name": "strings", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "colors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] + } + ] + ], + "custom_name": "anonymousNbt", + "damage": "varint", + "damage_resistant": "string", + "death_protection": [ + "container", + [ + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemConsumeEffect" + } + ] + } + ] + ], + "debug_stick_state": "anonymousNbt", + "dyed_color": [ + "container", + [ + { + "name": "color", + "type": "i32" + }, + { + "name": "showTooltip", + "type": "bool" + } + ] + ], + "enchantable": "varint", + "enchantment_glint_override": "bool", + "enchantments": [ + "container", + [ + { + "name": "enchantments", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] + } + ] + }, + { + "name": "showTooltip", + "type": "bool" + } + ] + ], + "entity_data": "anonymousNbt", + "equippable": [ + "container", + [ + { + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "main_hand", + "1": "off_hand", + "2": "feet", + "3": "legs", + "4": "chest", + "5": "head", + "6": "body" + }, + "type": "varint" + } + ] + }, + { + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "model", + "type": [ + "option", + "string" + ] + }, + { + "name": "cameraOverlay", + "type": [ + "option", + "string" + ] + }, + { + "name": "allowedEntities", + "type": [ + "option", + "IDSet" + ] + }, + { + "name": "dispensable", + "type": "bool" + }, + { + "name": "swappable", + "type": "bool" + }, + { + "name": "damageable", + "type": "bool" + } + ] + ], + "firework_explosion": "ItemFireworkExplosion", + "fireworks": [ + "container", + [ + { + "name": "flightDuration", + "type": "varint" + }, + { + "name": "explosions", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemFireworkExplosion" } - } - ] - }, + ] + } + ] + ], + "food": [ + "container", + [ + { + "name": "nutrition", + "type": "varint" + }, + { + "name": "saturationModifier", + "type": "f32" + }, + { + "name": "canAlwaysEat", + "type": "bool" + } + ] + ], + "glider": "void", + "hide_additional_tooltip": "void", + "hide_tooltip": "void", + "instrument": [ + "registryEntryHolder", { - "name": "link", - "type": "string" - } - ] - ] - } - ] - } - ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": {} - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } - } - ] - } - ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "baseName": "instrumentId", + "otherwise": { + "name": "data", + "type": "InstrumentData" + } } - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" + ], + "intangible_projectile": "anonymousNbt", + "item_model": "string", + "item_name": "anonymousNbt", + "jukebox_playable": [ + "container", + [ + { + "name": "hasHolder", + "type": "bool" + }, + { + "name": "song", + "type": [ + "switch", + { + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "songId", + "otherwise": { + "name": "data", + "type": "JukeboxSongData" + } + } + ] + } + } + ] + }, + { + "name": "showInTooltip", + "type": "bool" + } + ] + ], + "lock": "anonymousNbt", + "lodestone_tracker": [ + "container", + [ + { + "name": "globalPosition", + "type": [ + "option", + [ + "container", + [ + { + "name": "dimension", + "type": "string" + }, + { + "name": "position", + "type": "position" + } + ] + ] + ] + }, + { + "name": "tracked", + "type": "bool" + } + ] + ], + "lore": [ + "array", + { + "countType": "varint", + "type": "anonOptionalNbt" } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + ], + "map_color": "i32", + "map_decorations": "anonymousNbt", + "map_id": "varint", + "map_post_processing": "varint", + "max_damage": "varint", + "max_stack_size": "varint", + "note_block_sound": "string", + "ominous_bottle_amplifier": "varint", + "pot_decorations": [ + "container", + [ + { + "name": "decorations", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "potion_contents": [ + "container", + [ + { + "name": "potionId", + "type": [ + "option", + "varint" + ] + }, + { + "name": "customColor", + "type": [ + "option", + "i32" + ] + }, + { + "name": "customEffects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemPotionEffect" + } + ] + }, + { + "name": "customName", + "type": [ + "option", + "string" + ] + } + ] + ], + "profile": [ + "container", + [ + { + "name": "name", + "type": [ + "option", + "string" + ] + }, + { + "name": "uuid", + "type": [ + "option", + "UUID" + ] + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + } + ] + ], + "rarity": [ + "mapper", + { + "mappings": { + "0": "common", + "1": "uncommon", + "2": "rare", + "3": "epic" + }, + "type": "varint" } - } - ] + ], + "recipes": "anonymousNbt", + "repair_cost": "varint", + "repairable": [ + "container", + [ + { + "name": "items", + "type": "IDSet" + } + ] + ], + "stored_enchantments": [ + "container", + [ + { + "name": "enchantments", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] + } + ] + }, + { + "name": "showInTooltip", + "type": "bool" + } + ] + ], + "suspicious_stew_effects": [ + "container", + [ + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "effect", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "tool": [ + "container", + [ + { + "name": "rules", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "blocks", + "type": "IDSet" + }, + { + "name": "speed", + "type": [ + "option", + "f32" + ] + }, + { + "name": "correctDropForBlocks", + "type": [ + "option", + "bool" + ] + } + ] + ] + } + ] + }, + { + "name": "defaultMiningSpeed", + "type": "f32" + }, + { + "name": "damagePerBlock", + "type": "varint" + } + ] + ], + "tooltip_style": "string", + "trim": [ + "container", + [ + { + "name": "material", + "type": [ + "registryEntryHolder", + { + "baseName": "materialId", + "otherwise": { + "name": "data", + "type": "ArmorTrimMaterial" + } + } + ] + }, + { + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "ArmorTrimPattern" + } + } + ] + }, + { + "name": "showInTooltip", + "type": "bool" + } + ] + ], + "unbreakable": "bool", + "use_cooldown": [ + "container", + [ + { + "name": "seconds", + "type": "f32" + }, + { + "name": "cooldownGroup", + "type": [ + "option", + "string" + ] + } + ] + ], + "use_remainder": "Slot", + "writable_book_content": [ + "container", + [ + { + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBookPage" + } + ] + } + ] + ], + "written_book_content": [ + "container", + [ + { + "name": "rawTitle", + "type": "string" + }, + { + "name": "filteredTitle", + "type": [ + "option", + "string" + ] + }, + { + "name": "author", + "type": "string" + }, + { + "name": "generation", + "type": "varint" + }, + { + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemWrittenBookPage" + } + ] + }, + { + "name": "resolved", + "type": "bool" + } + ] + ] + } } ] - ] + } + ] + ], + "SlotComponentType": [ + "mapper", + { + "mappings": { + "0": "custom_data", + "1": "max_stack_size", + "2": "max_damage", + "3": "damage", + "4": "unbreakable", + "5": "custom_name", + "6": "item_name", + "7": "item_model", + "8": "lore", + "9": "rarity", + "10": "enchantments", + "11": "can_place_on", + "12": "can_break", + "13": "attribute_modifiers", + "14": "custom_model_data", + "15": "hide_additional_tooltip", + "16": "hide_tooltip", + "17": "repair_cost", + "18": "creative_slot_lock", + "19": "enchantment_glint_override", + "20": "intangible_projectile", + "21": "food", + "22": "consumable", + "23": "use_remainder", + "24": "use_cooldown", + "25": "damage_resistant", + "26": "tool", + "27": "enchantable", + "28": "equippable", + "29": "repairable", + "30": "glider", + "31": "tooltip_style", + "32": "death_protection", + "33": "stored_enchantments", + "34": "dyed_color", + "35": "map_color", + "36": "map_id", + "37": "map_decorations", + "38": "map_post_processing", + "39": "charged_projectiles", + "40": "bundle_contents", + "41": "potion_contents", + "42": "suspicious_stew_effects", + "43": "writable_book_content", + "44": "written_book_content", + "45": "trim", + "46": "debug_stick_state", + "47": "entity_data", + "48": "bucket_entity_data", + "49": "block_entity_data", + "50": "instrument", + "51": "ominous_bottle_amplifier", + "52": "jukebox_playable", + "53": "recipes", + "54": "lodestone_tracker", + "55": "firework_explosion", + "56": "fireworks", + "57": "profile", + "58": "note_block_sound", + "59": "banner_patterns", + "60": "base_color", + "61": "pot_decorations", + "62": "container", + "63": "block_state", + "64": "bees", + "65": "lock", + "66": "container_loot" + }, + "type": "varint" } - } - }, - "login": { - "toClient": { - "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_encryption_begin": [ - "container", - [ - { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", - "type": [ - "buffer", + ], + "UUID": "native", + "anonOptionalNbt": "native", + "anonymousNbt": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "chat_session": [ + "option", + [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "publicKey", + "type": [ + "container", + [ { - "countType": "varint" - } - ] - }, - { - "name": "verifyToken", - "type": [ - "buffer", + "name": "expireTime", + "type": "i64" + }, { - "countType": "varint" + "name": "keyBytes", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "keySignature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] - }, + ] + } + ] + ] + ], + "chunkBlockEntity": [ + "container", + [ + { + "anon": true, + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 + } + ] + ] + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" + } + ] + ], + "command_node": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 3 + }, + { + "name": "has_custom_suggestions", + "signed": false, + "size": 1 + }, + { + "name": "has_redirect_node", + "signed": false, + "size": 1 + }, + { + "name": "has_command", + "signed": false, + "size": 1 + }, + { + "name": "command_node_type", + "signed": false, + "size": 2 + } + ] + ] + }, + { + "name": "children", + "type": [ + "array", { - "name": "shouldAuthenticate", - "type": "bool" + "countType": "varint", + "type": "varint" } ] - ], - "packet_success": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, + }, + { + "name": "redirectNode", + "type": [ + "switch", { - "name": "username", - "type": "string" - }, + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] + }, + { + "name": "extraNodeData", + "type": [ + "switch", { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] + "compareTo": "flags/command_node_type", + "fields": { + "0": "void", + "1": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "2": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "parser", + "type": [ + "mapper", + { + "mappings": { + "0": "brigadier:bool", + "1": "brigadier:float", + "2": "brigadier:double", + "3": "brigadier:integer", + "4": "brigadier:long", + "5": "brigadier:string", + "6": "minecraft:entity", + "7": "minecraft:game_profile", + "8": "minecraft:block_pos", + "9": "minecraft:column_pos", + "10": "minecraft:vec3", + "11": "minecraft:vec2", + "12": "minecraft:block_state", + "13": "minecraft:block_predicate", + "14": "minecraft:item_stack", + "15": "minecraft:item_predicate", + "16": "minecraft:color", + "17": "minecraft:component", + "18": "minecraft:style", + "19": "minecraft:message", + "20": "minecraft:nbt", + "21": "minecraft:nbt_tag", + "22": "minecraft:nbt_path", + "23": "minecraft:objective", + "24": "minecraft:objective_criteria", + "25": "minecraft:operation", + "26": "minecraft:particle", + "27": "minecraft:angle", + "28": "minecraft:rotation", + "29": "minecraft:scoreboard_slot", + "30": "minecraft:score_holder", + "31": "minecraft:swizzle", + "32": "minecraft:team", + "33": "minecraft:item_slot", + "34": "minecraft:item_slots", + "35": "minecraft:resource_location", + "36": "minecraft:function", + "37": "minecraft:entity_anchor", + "38": "minecraft:int_range", + "39": "minecraft:float_range", + "40": "minecraft:dimension", + "41": "minecraft:gamemode", + "42": "minecraft:time", + "43": "minecraft:resource_or_tag", + "44": "minecraft:resource_or_tag_key", + "45": "minecraft:resource", + "46": "minecraft:resource_key", + "47": "minecraft:template_mirror", + "48": "minecraft:template_rotation", + "49": "minecraft:heightmap", + "50": "minecraft:loot_table", + "51": "minecraft:loot_predicate", + "52": "minecraft:loot_modifier", + "53": "minecraft:uuid" + }, + "type": "varint" + } + ] + }, + { + "name": "properties", + "type": [ + "switch", + { + "compareTo": "parser", + "fields": { + "brigadier:bool": "void", + "brigadier:double": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "max_present", + "signed": false, + "size": 1 + }, + { + "name": "min_present", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "default": "void", + "fields": { + "1": "f64" + } + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "default": "void", + "fields": { + "1": "f64" + } + } + ] + } + ] + ], + "brigadier:float": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "max_present", + "signed": false, + "size": 1 + }, + { + "name": "min_present", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "default": "void", + "fields": { + "1": "f32" + } + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "default": "void", + "fields": { + "1": "f32" + } + } + ] + } + ] + ], + "brigadier:integer": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "max_present", + "signed": false, + "size": 1 + }, + { + "name": "min_present", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "default": "void", + "fields": { + "1": "i32" + } + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "default": "void", + "fields": { + "1": "i32" + } + } + ] + } + ] + ], + "brigadier:long": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "max_present", + "signed": false, + "size": 1 + }, + { + "name": "min_present", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "default": "void", + "fields": { + "1": "i64" + } + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "default": "void", + "fields": { + "1": "i64" + } + } + ] + } + ] + ], + "brigadier:string": [ + "mapper", + { + "mappings": { + "0": "SINGLE_WORD", + "1": "QUOTABLE_PHRASE", + "2": "GREEDY_PHRASE" + }, + "type": "varint" + } + ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", + "minecraft:entity": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "onlyAllowPlayers", + "signed": false, + "size": 1 + }, + { + "name": "onlyAllowEntities", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:entity_anchor": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", + "minecraft:game_profile": "void", + "minecraft:gamemode": "void", + "minecraft:heightmap": "void", + "minecraft:int_range": "void", + "minecraft:item_predicate": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", + "minecraft:message": "void", + "minecraft:nbt": "void", + "minecraft:nbt_path": "void", + "minecraft:objective": "void", + "minecraft:objective_criteria": "void", + "minecraft:operation": "void", + "minecraft:particle": "void", + "minecraft:resource": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:resource_key": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:resource_or_tag_key": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:template_mirror": "void", + "minecraft:template_rotation": "void", + "minecraft:time": [ + "container", + [ + { + "name": "min", + "type": "i32" + } + ] + ], + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" + } + } + ] + }, + { + "name": "suggestionType", + "type": [ + "switch", + { + "compareTo": "../flags/has_custom_suggestions", + "default": "void", + "fields": { + "1": "string" + } + } + ] + } ] - } - ] - } - ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" + ] + } } ] - ], - "packet_login_plugin_request": [ - "container", - [ + } + ] + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": "entityMetadataEntry" + } + ], + "entityMetadataEntry": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": [ + "mapper", { - "name": "messageId", + "mappings": { + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "compound_tag", + "17": "particle", + "18": "particles", + "19": "villager_data", + "20": "optional_unsigned_int", + "21": "pose", + "22": "cat_variant", + "23": "wolf_variant", + "24": "frog_variant", + "25": "optional_global_pos", + "26": "painting_variant", + "27": "sniffer_state", + "28": "armadillo_state", + "29": "vector3", + "30": "quaternion" + }, "type": "varint" - }, - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" } ] - ], - "packet": [ - "container", - [ + }, + { + "name": "value", + "type": [ + "switch", { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request", - "0x05": "cookie_request" + "compareTo": "type", + "fields": { + "armadillo_state": "varint", + "block_pos": "position", + "block_state": "varint", + "boolean": "bool", + "byte": "i8", + "cat_variant": "varint", + "component": "anonymousNbt", + "compound_tag": "anonymousNbt", + "direction": "varint", + "float": "f32", + "frog_variant": "varint", + "int": "varint", + "item_stack": "Slot", + "long": "varlong", + "optional_block_pos": [ + "option", + "position" + ], + "optional_block_state": "optvarint", + "optional_component": [ + "option", + "anonymousNbt" + ], + "optional_global_pos": [ + "option", + "string" + ], + "optional_unsigned_int": "optvarint", + "optional_uuid": [ + "option", + "UUID" + ], + "painting_variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "EntityMetadataPaintingVariant" + } } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "disconnect": "packet_disconnect", - "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request", - "cookie_request": "packet_common_cookie_request" + ], + "particle": "Particle", + "particles": [ + "array", + { + "countType": "varint", + "type": "Particle" + } + ], + "pose": "varint", + "quaternion": "vec4f", + "rotations": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "sniffer_state": "varint", + "string": "string", + "vector3": "vec3f", + "villager_data": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "wolf_variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "EntityMetadataWolfVariant" + } } - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - }, - { - "name": "playerUUID", - "type": "UUID" - } - ] - ], - "packet_encryption_begin": [ - "container", - [ - { - "name": "sharedSecret", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "verifyToken", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ], - "packet_login_plugin_response": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "data", - "type": [ - "option", - "restBuffer" - ] + ] + } } ] - ], - "packet_login_acknowledged": [ - "container", - [] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response", - "0x03": "login_acknowledged", - "0x04": "cookie_response" - } - } - ] - }, + } + ] + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "game_profile": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", { - "name": "params", + "countType": "varint", "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response", - "login_acknowledged": "packet_login_acknowledged", - "cookie_response": "packet_common_cookie_response" + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] } - } + ] ] } ] - ] + } + ] + ], + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "Slot" } - } - }, - "configuration": { - "toClient": { - "types": { - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "id", - "type": "i32" - } + ], + "option": "native", + "optvarint": "varint", + "packedChunkPos": [ + "container", + [ + { + "name": "z", + "type": "i32" + }, + { + "name": "x", + "type": "i32" + } + ] + ], + "packet_common_add_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "url", + "type": "string" + }, + { + "name": "hash", + "type": "string" + }, + { + "name": "forced", + "type": "bool" + }, + { + "name": "promptMessage", + "type": [ + "option", + "anonymousNbt" ] - ], - "packet_reset_chat": [ - "container", - [] - ], - "packet_registry_data": [ - "container", - [ - { - "name": "id", - "type": "string" - }, + } + ] + ], + "packet_common_cookie_request": [ + "container", + [ + { + "name": "cookie", + "type": "string" + } + ] + ], + "packet_common_cookie_response": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "ByteArray" + ] + } + ] + ], + "packet_common_custom_report_details": [ + "container", + [ + { + "name": "details", + "type": [ + "array", { - "name": "entries", + "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] ] } ] - ], - "packet_feature_flags": [ - "container", - [ + } + ] + ], + "packet_common_remove_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": [ + "option", + "UUID" + ] + } + ] + ], + "packet_common_select_known_packs": [ + "container", + [ + { + "name": "packs", + "type": [ + "array", { - "name": "features", + "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "string" - } + "container", + [ + { + "name": "namespace", + "type": "string" + }, + { + "name": "id", + "type": "string" + }, + { + "name": "version", + "type": "string" + } + ] ] } ] - ], - "packet_tags": [ - "container", - [ + } + ] + ], + "packet_common_server_links": [ + "container", + [ + { + "name": "links", + "type": [ + "array", { - "name": "tags", + "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ + "container", + [ + { + "name": "hasKnownType", + "type": "bool" + }, + { + "name": "knownType", + "type": [ + "switch", { - "name": "tagType", - "type": "string" - }, + "compareTo": "hasKnownType", + "fields": { + "true": "ServerLinkType" + } + } + ] + }, + { + "name": "unknownType", + "type": [ + "switch", { - "name": "tags", - "type": "tags" + "compareTo": "hasKnownType", + "fields": { + "false": "anonymousNbt" + } } ] - ] - } - ] - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "cookie_request": "packet_common_cookie_request", - "custom_payload": "packet_custom_payload", - "disconnect": "packet_disconnect", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "reset_chat": "packet_reset_chat", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "store_cookie": "packet_common_store_cookie", - "transfer": "packet_common_transfer", - "feature_flags": "packet_feature_flags", - "tags": "packet_tags", - "select_known_packs": "packet_common_select_known_packs", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links" - } - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" + }, + { + "name": "link", + "type": "string" + } + ] + ] } ] - ], - "packet_resource_pack_receive": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, + } + ] + ], + "packet_common_settings": [ + "container", + [ + { + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", + "type": "varint" + }, + { + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" + }, + { + "name": "enableTextFiltering", + "type": "bool" + }, + { + "name": "enableServerListing", + "type": "bool" + }, + { + "name": "particleStatus", + "type": [ + "mapper", { - "name": "result", + "mappings": { + "0": "all", + "1": "decreased", + "2": "minimal" + }, "type": "varint" } ] - ], - "packet": [ + } + ] + ], + "packet_common_store_cookie": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "ByteArray" + } + ] + ], + "packet_common_transfer": [ + "container", + [ + { + "name": "host", + "type": "string" + }, + { + "name": "port", + "type": "varint" + } + ] + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "previousMessages": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_report_details", - "0x09": "server_links" - } - } - ] + "name": "id", + "type": "varint" }, { - "name": "params", + "name": "signature", "type": [ "switch", { - "compareTo": "name", + "compareTo": "id", + "default": "void", "fields": { - "settings": "packet_common_settings", - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links" + "0": [ + "buffer", + { + "count": 256 + } + ] } } ] @@ -3903,408 +3017,475 @@ ] ] } - } - }, - "play": { - "toClient": { - "types": { - "SlotDisplay": [ + ], + "pstring": "native", + "registryEntryHolder": "native", + "registryEntryHolderSet": "native", + "restBuffer": "native", + "soundSource": [ + "mapper", + { + "mappings": { + "0": "master", + "1": "music", + "2": "record", + "3": "weather", + "4": "block", + "5": "hostile", + "6": "neutral", + "7": "player", + "8": "ambient", + "9": "voice" + }, + "type": "varint" + } + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "empty", - "1": "any_fuel", - "2": "item", - "3": "item_stack", - "4": "tag", - "5": "smithing_trim", - "6": "with_remainder", - "7": "composite" - } - } - ] - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "empty": "void", - "any_fuel": "void", - "item": "varint", - "item_stack": "Slot", - "tag": "string", - "smithing_trim": [ - "container", - [ - { - "name": "base", - "type": "SlotDisplay" - }, - { - "name": "material", - "type": "SlotDisplay" - }, - { - "name": "pattern", - "type": "SlotDisplay" - } - ] - ], - "with_remainder": [ - "container", - [ - { - "name": "input", - "type": "SlotDisplay" - }, - { - "name": "remainder", - "type": "SlotDisplay" - } - ] - ], - "composite": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - } + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" } ] } ] - ], - "RecipeDisplay": [ + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec2f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + } + ] + ], + "vec3f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + } + ] + ], + "vec3f64": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "vec4f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "w", + "type": "f32" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "type", + "name": "name", "type": [ "mapper", { - "type": "varint", - "mappings": { - "0": "crafting_shapeless", - "1": "crafting_shaped", - "2": "furnace", - "3": "stonecutter", - "4": "smithing" - } + "mappings": {}, + "type": "varint" } ] - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "crafting_shapeless": [ - "container", - [ - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "furnace": [ - "container", - [ - { - "name": "ingredient", - "type": "SlotDisplay" - }, - { - "name": "fuel", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "experience", - "type": "f32" - } - ] - ], - "stonecutter": [ - "container", - [ - { - "name": "ingredient", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "smithing": [ - "container", - [ - { - "name": "template", - "type": "SlotDisplay" - }, - { - "name": "base", - "type": "SlotDisplay" - }, - { - "name": "addition", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ] - } + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": {} } ] } ] - ], - "SpawnInfo": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ - { - "name": "dimension", - "type": "varint" - }, { "name": "name", - "type": "string" - }, - { - "name": "hashedSeed", - "type": "i64" - }, - { - "name": "gamemode", "type": [ "mapper", { - "type": "i8", "mappings": { - "0": "survival", - "1": "creative", - "2": "adventure", - "3": "spectator" - } + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" } ] }, { - "name": "previousGamemode", - "type": "u8" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", + [ { - "name": "isDebug", - "type": "bool" - }, + "name": "payload", + "type": "u8" + } + ] + ], + "packet_set_protocol": [ + "container", + [ { - "name": "isFlat", - "type": "bool" + "name": "protocolVersion", + "type": "varint" }, { - "name": "death", - "type": [ - "option", - [ - "container", - [ - { - "name": "dimensionName", - "type": "string" - }, - { - "name": "location", - "type": "position" - } - ] - ] - ] + "name": "serverHost", + "type": "string" }, { - "name": "portalCooldown", - "type": "varint" + "name": "serverPort", + "type": "u16" }, { - "name": "seaLevel", + "name": "nextState", "type": "varint" } ] - ], - "packet_spawn_entity": [ + ] + } + } + }, + "status": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" + } + ] }, { - "name": "objectUUID", - "type": "UUID" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "server_info": "packet_server_info" + } + } + ] + } + ] + ], + "packet_ping": [ + "container", + [ { - "name": "type", - "type": "varint" - }, + "name": "time", + "type": "i64" + } + ] + ], + "packet_server_info": [ + "container", + [ { - "name": "x", - "type": "f64" - }, + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "y", - "type": "f64" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" + } + ] }, { - "name": "z", - "type": "f64" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } + } + ] + } + ] + ], + "packet_ping": [ + "container", + [ { - "name": "pitch", - "type": "i8" - }, + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { + "packet": [ + "container", + [ { - "name": "yaw", - "type": "i8" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request", + "0x05": "cookie_request" + }, + "type": "varint" + } + ] }, { - "name": "headPitch", - "type": "i8" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "cookie_request": "packet_common_cookie_request", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ { - "name": "objectData", + "name": "threshold", "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_disconnect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, + "name": "reason", + "type": "string" + } + ] + ], + "packet_encryption_begin": [ + "container", + [ { - "name": "x", - "type": "f64" + "name": "serverId", + "type": "string" }, { - "name": "y", - "type": "f64" + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "z", - "type": "f64" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "count", - "type": "i16" + "name": "shouldAuthenticate", + "type": "bool" } ] ], - "packet_animation": [ + "packet_login_plugin_request": [ "container", [ { - "name": "entityId", + "name": "messageId", "type": "varint" }, { - "name": "animation", - "type": "u8" + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_statistics": [ + "packet_success": [ "container", [ { - "name": "entries", + "name": "uuid", + "type": "UUID" + }, + { + "name": "username", + "type": "string" + }, + { + "name": "properties", "type": [ "array", { @@ -4313,16 +3494,19 @@ "container", [ { - "name": "categoryId", - "type": "varint" + "name": "name", + "type": "string" }, { - "name": "statisticId", - "type": "varint" + "name": "value", + "type": "string" }, { - "name": "value", - "type": "varint" + "name": "signature", + "type": [ + "option", + "string" + ] } ] ] @@ -4330,707 +3514,1342 @@ ] } ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response", + "0x03": "login_acknowledged", + "0x04": "cookie_response" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "cookie_response": "packet_common_cookie_response", + "encryption_begin": "packet_encryption_begin", + "login_acknowledged": "packet_login_acknowledged", + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" + } + } + ] + } + ] ], - "packet_acknowledge_player_digging": [ + "packet_encryption_begin": [ "container", [ { - "name": "sequenceId", - "type": "varint" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_block_break_animation": [ + "packet_login_acknowledged": [ + "container", + [] + ], + "packet_login_plugin_response": [ "container", [ { - "name": "entityId", + "name": "messageId", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "data", + "type": [ + "option", + "restBuffer" + ] + } + ] + ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" }, { - "name": "destroyStage", - "type": "i8" + "name": "playerUUID", + "type": "UUID" + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "add_resource_pack": "packet_common_add_resource_pack", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" + } + } + ] + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "anonymousNbt" } ] ], - "packet_tile_entity_data": [ + "packet_feature_flags": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "nbtData", - "type": "anonOptionalNbt" + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "packet_block_action": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "byte1", - "type": "u8" - }, - { - "name": "byte2", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_block_change": [ + "packet_ping": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "type", - "type": "varint" + "name": "id", + "type": "i32" } ] ], - "packet_boss_bar": [ + "packet_registry_data": [ "container", [ { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "title", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "anonymousNbt", - "3": "anonymousNbt" - }, - "default": "void" - } - ] + "name": "id", + "type": "string" }, { - "name": "health", + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] } ] - }, + } + ] + ], + "packet_reset_chat": [ + "container", + [] + ], + "packet_tags": [ + "container", + [ { - "name": "color", + "name": "tags", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] - }, + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "dividers", + "name": "name", "type": [ - "switch", + "mapper", { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" + "mappings": { + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_report_details", + "0x09": "server_links" }, - "default": "void" + "type": "varint" } ] }, { - "name": "flags", + "name": "params", "type": [ "switch", { - "compareTo": "action", + "compareTo": "name", "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" + "cookie_response": "packet_common_cookie_response", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "settings": "packet_common_settings" + } } ] } ] ], - "packet_difficulty": [ + "packet_custom_payload": [ "container", [ { - "name": "difficulty", - "type": "u8" + "name": "channel", + "type": "string" }, { - "name": "difficultyLocked", - "type": "bool" - } - ] - ], - "packet_chunk_batch_finished": [ - "container", - [ - { - "name": "batchSize", - "type": "varint" + "name": "data", + "type": "restBuffer" } ] ], - "packet_chunk_batch_start": [ + "packet_finish_configuration": [ "container", [] ], - "packet_chunk_biomes": [ + "packet_keep_alive": [ "container", [ { - "name": "biomes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "position", - "type": "packedChunkPos" - }, - { - "name": "data", - "type": "ByteArray" - } - ] - ] - } - ] + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_clear_titles": [ + "packet_pong": [ "container", [ { - "name": "reset", - "type": "bool" + "name": "id", + "type": "i32" } ] ], - "packet_tab_complete": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "uuid", + "type": "UUID" }, { - "name": "start", + "name": "result", "type": "varint" - }, + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "ChatType": [ + "container", + [ { - "name": "length", - "type": "varint" + "name": "translationKey", + "type": "string" }, { - "name": "matches", + "name": "parameters", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] + "type": "ChatTypeParameterType" } ] + }, + { + "name": "style", + "type": "anonymousNbt" } ] ], - "packet_declare_commands": [ + "ChatTypeParameterType": [ + "mapper", + { + "mappings": { + "0": "content", + "1": "sender", + "2": "target" + }, + "type": "varint" + } + ], + "ChatTypes": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] + "name": "chat", + "type": "ChatType" }, { - "name": "rootIndex", - "type": "varint" + "name": "narration", + "type": "ChatType" } ] ], - "packet_close_window": [ + "ChatTypesHolder": [ + "registryEntryHolder", + { + "baseName": "chatType", + "otherwise": { + "name": "data", + "type": "ChatTypes" + } + } + ], + "PositionUpdateRelatives": [ + "bitflags", + { + "flags": [ + "x", + "y", + "z", + "yaw", + "pitch", + "dx", + "dy", + "dz", + "yawDelta" + ], + "type": "u32" + } + ], + "RecipeDisplay": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "crafting_shapeless", + "1": "crafting_shaped", + "2": "furnace", + "3": "stonecutter", + "4": "smithing" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ] + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "crafting_shapeless": [ + "container", + [ + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ] + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "furnace": [ + "container", + [ + { + "name": "ingredient", + "type": "SlotDisplay" + }, + { + "name": "fuel", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "experience", + "type": "f32" + } + ] + ], + "smithing": [ + "container", + [ + { + "name": "template", + "type": "SlotDisplay" + }, + { + "name": "base", + "type": "SlotDisplay" + }, + { + "name": "addition", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "stonecutter": [ + "container", + [ + { + "name": "ingredient", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ] + } + } + ] } ] ], - "packet_window_items": [ + "SlotDisplay": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "empty", + "1": "any_fuel", + "2": "item", + "3": "item_stack", + "4": "tag", + "5": "smithing_trim", + "6": "with_remainder", + "7": "composite" + }, + "type": "varint" + } + ] }, { - "name": "items", + "name": "data", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "Slot" + "compareTo": "type", + "fields": { + "any_fuel": "void", + "composite": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ], + "empty": "void", + "item": "varint", + "item_stack": "Slot", + "smithing_trim": [ + "container", + [ + { + "name": "base", + "type": "SlotDisplay" + }, + { + "name": "material", + "type": "SlotDisplay" + }, + { + "name": "pattern", + "type": "SlotDisplay" + } + ] + ], + "tag": "string", + "with_remainder": [ + "container", + [ + { + "name": "input", + "type": "SlotDisplay" + }, + { + "name": "remainder", + "type": "SlotDisplay" + } + ] + ] + } } ] - }, - { - "name": "carriedItem", - "type": "Slot" - } - ] - ], - "packet_craft_progress_bar": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "property", - "type": "i16" - }, - { - "name": "value", - "type": "i16" } ] ], - "packet_set_slot": [ + "SpawnInfo": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", + "name": "dimension", "type": "varint" }, { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ - { - "name": "cooldownGroup", + "name": "name", "type": "string" }, { - "name": "cooldownTicks", - "type": "varint" - } - ] - ], - "packet_chat_suggestions": [ - "container", - [ - { - "name": "action", - "type": "varint" + "name": "hashedSeed", + "type": "i64" }, { - "name": "entries", + "name": "gamemode", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": "string" + "mappings": { + "0": "survival", + "1": "creative", + "2": "adventure", + "3": "spectator" + }, + "type": "i8" } ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" }, { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_damage_event": [ - "container", - [ + "name": "previousGamemode", + "type": "u8" + }, { - "name": "entityId", - "type": "varint" + "name": "isDebug", + "type": "bool" }, { - "name": "sourceTypeId", - "type": "varint" + "name": "isFlat", + "type": "bool" }, { - "name": "sourceCauseId", - "type": "varint" + "name": "death", + "type": [ + "option", + [ + "container", + [ + { + "name": "dimensionName", + "type": "string" + }, + { + "name": "location", + "type": "position" + } + ] + ] + ] }, { - "name": "sourceDirectId", + "name": "portalCooldown", "type": "varint" }, { - "name": "sourcePosition", - "type": [ - "option", - "vec3f64" - ] + "name": "seaLevel", + "type": "varint" } ] ], - "packet_debug_sample": [ + "packet": [ "container", [ { - "name": "sample", + "name": "name", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": "i64" + "mappings": { + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "spawn_entity_experience_orb", + "0x03": "animation", + "0x04": "statistics", + "0x05": "acknowledge_player_digging", + "0x06": "block_break_animation", + "0x07": "tile_entity_data", + "0x08": "block_action", + "0x09": "block_change", + "0x0a": "boss_bar", + "0x0b": "difficulty", + "0x0c": "chunk_batch_finished", + "0x0d": "chunk_batch_start", + "0x0e": "chunk_biomes", + "0x0f": "clear_titles", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "close_window", + "0x13": "window_items", + "0x14": "craft_progress_bar", + "0x15": "set_slot", + "0x16": "cookie_request", + "0x17": "set_cooldown", + "0x18": "chat_suggestions", + "0x19": "custom_payload", + "0x1a": "damage_event", + "0x1b": "debug_sample", + "0x1c": "hide_message", + "0x1d": "kick_disconnect", + "0x1e": "profileless_chat", + "0x1f": "entity_status", + "0x20": "sync_entity_position", + "0x21": "explosion", + "0x22": "unload_chunk", + "0x23": "game_state_change", + "0x24": "open_horse_window", + "0x25": "hurt_animation", + "0x26": "initialize_world_border", + "0x27": "keep_alive", + "0x28": "map_chunk", + "0x29": "world_event", + "0x2a": "world_particles", + "0x2b": "update_light", + "0x2c": "login", + "0x2d": "map", + "0x2e": "trade_list", + "0x2f": "rel_entity_move", + "0x30": "entity_move_look", + "0x31": "move_minecart", + "0x32": "entity_look", + "0x33": "vehicle_move", + "0x34": "open_book", + "0x35": "open_window", + "0x36": "open_sign_entity", + "0x37": "ping", + "0x38": "ping_response", + "0x39": "craft_recipe_response", + "0x3a": "abilities", + "0x3b": "player_chat", + "0x3c": "end_combat_event", + "0x3d": "enter_combat_event", + "0x3e": "death_combat_event", + "0x3f": "player_remove", + "0x40": "player_info", + "0x41": "face_player", + "0x42": "position", + "0x43": "player_rotation", + "0x44": "recipe_book_add", + "0x45": "recipe_book_remove", + "0x46": "recipe_book_settings", + "0x47": "entity_destroy", + "0x48": "remove_entity_effect", + "0x49": "reset_score", + "0x4a": "remove_resource_pack", + "0x4b": "add_resource_pack", + "0x4c": "respawn", + "0x4d": "entity_head_rotation", + "0x4e": "multi_block_change", + "0x4f": "select_advancement_tab", + "0x50": "server_data", + "0x51": "action_bar", + "0x52": "world_border_center", + "0x53": "world_border_lerp_size", + "0x54": "world_border_size", + "0x55": "world_border_warning_delay", + "0x56": "world_border_warning_reach", + "0x57": "camera", + "0x58": "update_view_position", + "0x59": "update_view_distance", + "0x5a": "set_cursor_item", + "0x5b": "spawn_position", + "0x5c": "scoreboard_display_objective", + "0x5d": "entity_metadata", + "0x5e": "attach_entity", + "0x5f": "entity_velocity", + "0x60": "entity_equipment", + "0x61": "experience", + "0x62": "update_health", + "0x63": "held_item_slot", + "0x64": "scoreboard_objective", + "0x65": "set_passengers", + "0x66": "set_player_inventory", + "0x67": "teams", + "0x68": "scoreboard_score", + "0x69": "simulation_distance", + "0x6a": "set_title_subtitle", + "0x6b": "update_time", + "0x6c": "set_title_text", + "0x6d": "set_title_time", + "0x6e": "entity_sound_effect", + "0x6f": "sound_effect", + "0x70": "start_configuration", + "0x71": "stop_sound", + "0x72": "store_cookie", + "0x73": "system_chat", + "0x74": "playerlist_header", + "0x75": "nbt_query_response", + "0x76": "collect", + "0x77": "entity_teleport", + "0x78": "set_ticking_state", + "0x79": "step_tick", + "0x7a": "transfer", + "0x7b": "advancements", + "0x7c": "entity_update_attributes", + "0x7d": "entity_effect", + "0x7e": "declare_recipes", + "0x7f": "tags", + "0x80": "set_projectile_power", + "0x81": "custom_report_details", + "0x82": "server_links" + }, + "type": "varint" } ] }, { - "name": "type", - "type": "varint" - } - ] - ], - "packet_hide_message": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "signature", + "name": "params", "type": [ "switch", { - "compareTo": "id", + "compareTo": "name", "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "ChatTypeParameterType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "content", - "1": "sender", - "2": "target" - } - } - ], - "ChatType": [ - "container", - [ - { - "name": "translationKey", - "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "ChatTypeParameterType" + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "add_resource_pack": "packet_common_add_resource_pack", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "bundle_delimiter": "void", + "camera": "packet_camera", + "chat_suggestions": "packet_chat_suggestions", + "chunk_batch_finished": "packet_chunk_batch_finished", + "chunk_batch_start": "packet_chunk_batch_start", + "chunk_biomes": "packet_chunk_biomes", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "cookie_request": "packet_common_cookie_request", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "damage_event": "packet_damage_event", + "death_combat_event": "packet_death_combat_event", + "debug_sample": "packet_debug_sample", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "hide_message": "packet_hide_message", + "hurt_animation": "packet_hurt_animation", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "move_minecart": "packet_move_minecart", + "multi_block_change": "packet_multi_block_change", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "ping_response": "packet_ping_response", + "player_chat": "packet_player_chat", + "player_info": "packet_player_info", + "player_remove": "packet_player_remove", + "player_rotation": "packet_player_rotation", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "profileless_chat": "packet_profileless_chat", + "recipe_book_add": "packet_recipe_book_add", + "recipe_book_remove": "packet_recipe_book_remove", + "recipe_book_settings": "packet_recipe_book_settings", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_score": "packet_reset_score", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "server_data": "packet_server_data", + "server_links": "packet_common_server_links", + "set_cooldown": "packet_set_cooldown", + "set_cursor_item": "packet_set_cursor_item", + "set_passengers": "packet_set_passengers", + "set_player_inventory": "packet_set_player_inventory", + "set_projectile_power": "packet_set_projectile_power", + "set_slot": "packet_set_slot", + "set_ticking_state": "packet_set_ticking_state", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_position": "packet_spawn_position", + "start_configuration": "packet_start_configuration", + "statistics": "packet_statistics", + "step_tick": "packet_step_tick", + "stop_sound": "packet_stop_sound", + "store_cookie": "packet_common_store_cookie", + "sync_entity_position": "packet_sync_entity_position", + "system_chat": "packet_system_chat", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "trade_list": "packet_trade_list", + "transfer": "packet_common_transfer", + "unload_chunk": "packet_unload_chunk", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } } ] - }, - { - "name": "style", - "type": "anonymousNbt" } ] ], - "ChatTypes": [ + "packet_abilities": [ "container", [ { - "name": "chat", - "type": "ChatType" + "name": "flags", + "type": "i8" }, { - "name": "narration", - "type": "ChatType" + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "ChatTypesHolder": [ - "registryEntryHolder", - { - "baseName": "chatType", - "otherwise": { - "name": "data", - "type": "ChatTypes" - } - } - ], - "packet_profileless_chat": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "message", - "type": "anonymousNbt" - }, - { - "name": "type", - "type": "ChatTypesHolder" - }, - { - "name": "name", - "type": "anonymousNbt" - }, - { - "name": "target", - "type": [ - "option", - "anonymousNbt" - ] + "name": "sequenceId", + "type": "varint" } ] ], - "packet_entity_status": [ + "packet_action_bar": [ "container", [ { - "name": "entityId", - "type": "i32" - }, - { - "name": "entityStatus", - "type": "i8" + "name": "text", + "type": "anonymousNbt" } ] ], - "packet_sync_entity_position": [ + "packet_advancements": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "dx", - "type": "f64" - }, - { - "name": "dy", - "type": "f64" - }, - { - "name": "dz", - "type": "f64" + "name": "reset", + "type": "bool" }, { - "name": "yaw", - "type": "f32" + "name": "advancementMapping", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "container", + [ + { + "name": "parentId", + "type": [ + "option", + "string" + ] + }, + { + "name": "displayData", + "type": [ + "option", + [ + "container", + [ + { + "name": "title", + "type": "anonymousNbt" + }, + { + "name": "description", + "type": "anonymousNbt" + }, + { + "name": "icon", + "type": "Slot" + }, + { + "name": "frameType", + "type": "varint" + }, + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 29 + }, + { + "name": "hidden", + "signed": false, + "size": 1 + }, + { + "name": "show_toast", + "signed": false, + "size": 1 + }, + { + "name": "has_background_texture", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "backgroundTexture", + "type": [ + "switch", + { + "compareTo": "flags/has_background_texture", + "default": "void", + "fields": { + "1": "string" + } + } + ] + }, + { + "name": "xCord", + "type": "f32" + }, + { + "name": "yCord", + "type": "f32" + } + ] + ] + ] + }, + { + "name": "requirements", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + }, + { + "name": "sendsTelemtryData", + "type": "bool" + } + ] + ] + } + ] + ] + } + ] }, { - "name": "pitch", - "type": "f32" + "name": "identifiers", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "progressMapping", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "criterionIdentifier", + "type": "string" + }, + { + "name": "criterionProgress", + "type": [ + "option", + "i64" + ] + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_explosion": [ + "packet_animation": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "playerKnockback", - "type": [ - "option", - "vec3f" - ] - }, - { - "name": "explosionParticle", - "type": "Particle" + "name": "entityId", + "type": "varint" }, { - "name": "sound", - "type": "ItemSoundHolder" + "name": "animation", + "type": "u8" } ] ], - "packet_unload_chunk": [ + "packet_attach_entity": [ "container", [ { - "name": "chunkZ", + "name": "entityId", "type": "i32" }, { - "name": "chunkX", + "name": "vehicleId", "type": "i32" } ] ], - "packet_game_state_change": [ + "packet_block_action": [ "container", [ { - "name": "reason", - "type": "u8" + "name": "location", + "type": "position" }, { - "name": "gameMode", - "type": "f32" - } - ] - ], - "packet_open_horse_window": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" + "name": "byte1", + "type": "u8" }, { - "name": "nbSlots", - "type": "varint" + "name": "byte2", + "type": "u8" }, { - "name": "entityId", - "type": "i32" + "name": "blockId", + "type": "varint" } ] ], - "packet_hurt_animation": [ + "packet_block_break_animation": [ "container", [ { @@ -5038,264 +4857,303 @@ "type": "varint" }, { - "name": "yaw", - "type": "f32" + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" } ] ], - "packet_initialize_world_border": [ + "packet_block_change": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "oldDiameter", - "type": "f64" - }, - { - "name": "newDiameter", - "type": "f64" - }, - { - "name": "speed", - "type": "varint" - }, - { - "name": "portalTeleportBoundary", - "type": "varint" - }, - { - "name": "warningBlocks", - "type": "varint" + "name": "location", + "type": "position" }, { - "name": "warningTime", + "name": "type", "type": "varint" } ] ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_map_chunk": [ + "packet_boss_bar": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" + "name": "entityUUID", + "type": "UUID" }, { - "name": "heightmaps", - "type": "anonymousNbt" + "name": "action", + "type": "varint" }, { - "name": "chunkData", + "name": "title", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "action", + "default": "void", + "fields": { + "0": "anonymousNbt", + "3": "anonymousNbt" + } } ] }, { - "name": "blockEntities", + "name": "health", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "chunkBlockEntity" + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } } ] }, { - "name": "skyLightMask", + "name": "color", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } } ] }, { - "name": "blockLightMask", + "name": "dividers", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } } ] }, { - "name": "emptySkyLightMask", + "name": "flags", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } } ] - }, + } + ] + ], + "packet_camera": [ + "container", + [ { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat_suggestions": [ + "container", + [ + { + "name": "action", + "type": "varint" }, { - "name": "skyLight", + "name": "entries", "type": [ "array", { "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] + "type": "string" } ] - }, + } + ] + ], + "packet_chunk_batch_finished": [ + "container", + [ { - "name": "blockLight", + "name": "batchSize", + "type": "varint" + } + ] + ], + "packet_chunk_batch_start": [ + "container", + [] + ], + "packet_chunk_biomes": [ + "container", + [ + { + "name": "biomes", "type": [ "array", { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } + "container", + [ + { + "name": "position", + "type": "packedChunkPos" + }, + { + "name": "data", + "type": "ByteArray" + } + ] ] } ] } ] ], - "packet_world_event": [ + "packet_clear_titles": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", + "name": "reset", "type": "bool" } ] ], - "packet_world_particles": [ + "packet_close_window": [ "container", [ { - "name": "longDistance", - "type": "bool" - }, + "name": "windowId", + "type": "ContainerID" + } + ] + ], + "packet_collect": [ + "container", + [ { - "name": "x", - "type": "f64" + "name": "collectedEntityId", + "type": "varint" }, { - "name": "y", - "type": "f64" + "name": "collectorEntityId", + "type": "varint" }, { - "name": "z", - "type": "f64" - }, + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ { - "name": "offsetX", - "type": "f32" + "name": "windowId", + "type": "ContainerID" }, { - "name": "offsetY", - "type": "f32" + "name": "property", + "type": "i16" }, { - "name": "offsetZ", - "type": "f32" - }, + "name": "value", + "type": "i16" + } + ] + ], + "packet_craft_recipe_response": [ + "container", + [ { - "name": "velocityOffset", - "type": "f32" + "name": "windowId", + "type": "ContainerID" }, { - "name": "amount", - "type": "i32" + "name": "recipeDisplay", + "type": "RecipeDisplay" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" }, { - "name": "particle", - "type": "Particle" + "name": "data", + "type": "restBuffer" } ] ], - "packet_update_light": [ + "packet_damage_event": [ "container", [ { - "name": "chunkX", + "name": "entityId", "type": "varint" }, { - "name": "chunkZ", + "name": "sourceTypeId", "type": "varint" }, { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "sourceCauseId", + "type": "varint" }, { - "name": "blockLightMask", + "name": "sourceDirectId", + "type": "varint" + }, + { + "name": "sourcePosition", "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } + "option", + "vec3f64" ] + } + ] + ], + "packet_death_combat_event": [ + "container", + [ + { + "name": "playerId", + "type": "varint" }, { - "name": "emptySkyLightMask", + "name": "message", + "type": "anonymousNbt" + } + ] + ], + "packet_debug_sample": [ + "container", + [ + { + "name": "sample", "type": [ "array", { @@ -5305,357 +5163,216 @@ ] }, { - "name": "emptyBlockLightMask", + "name": "type", + "type": "varint" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", "type": [ "array", { "countType": "varint", - "type": "i64" + "type": "command_node" } ] }, { - "name": "skyLight", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "items", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] ] } ] }, { - "name": "blockLight", + "name": "stoneCutterRecipes", "type": [ "array", { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } + "container", + [ + { + "name": "input", + "type": "IDSet" + }, + { + "name": "slotDisplay", + "type": "SlotDisplay" + } + ] ] } ] } ] ], - "packet_login": [ + "packet_difficulty": [ "container", [ { - "name": "entityId", - "type": "i32" - }, - { - "name": "isHardcore", - "type": "bool" - }, - { - "name": "worldNames", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "maxPlayers", - "type": "varint" - }, - { - "name": "viewDistance", - "type": "varint" - }, - { - "name": "simulationDistance", - "type": "varint" - }, - { - "name": "reducedDebugInfo", - "type": "bool" - }, - { - "name": "enableRespawnScreen", - "type": "bool" - }, - { - "name": "doLimitedCrafting", - "type": "bool" - }, - { - "name": "worldState", - "type": "SpawnInfo" + "name": "difficulty", + "type": "u8" }, { - "name": "enforcesSecureChat", + "name": "difficultyLocked", "type": "bool" } ] ], - "packet_map": [ + "packet_end_combat_event": [ "container", [ { - "name": "itemDamage", + "name": "duration", "type": "varint" - }, - { - "name": "scale", - "type": "i8" - }, - { - "name": "locked", - "type": "bool" - }, + } + ] + ], + "packet_enter_combat_event": [ + "container", + [] + ], + "packet_entity_destroy": [ + "container", + [ { - "name": "icons", + "name": "entityIds", "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "i8" - }, - { - "name": "z", - "type": "i8" - }, - { - "name": "direction", - "type": "u8" - }, - { - "name": "displayName", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] + "array", + { + "countType": "varint", + "type": "varint" + } ] - }, + } + ] + ], + "packet_entity_effect": [ + "container", + [ { - "name": "columns", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "rows", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "name": "effectId", + "type": "varint" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "name": "amplifier", + "type": "varint" }, { - "name": "y", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "name": "duration", + "type": "varint" }, { - "name": "data", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] + "name": "flags", + "type": "u8" } ] ], - "packet_trade_list": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "entityId", + "type": "varint" }, { - "name": "trades", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "varint", "type": [ "container", [ { - "name": "inputItem1", - "type": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "SlotComponent" - } - ] - } - ] - ] + "name": "slot", + "type": "i8" }, { - "name": "outputItem", + "name": "item", "type": "Slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "SlotComponent" - } - ] - } - ] - ] - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" } ] ] } ] - }, + } + ] + ], + "packet_entity_head_rotation": [ + "container", + [ { - "name": "villagerLevel", + "name": "entityId", "type": "varint" }, { - "name": "experience", + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "isRegularVillager", - "type": "bool" + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" }, { - "name": "canRestock", + "name": "onGround", "type": "bool" } ] ], - "packet_rel_entity_move": [ + "packet_entity_metadata": [ "container", [ { @@ -5663,20 +5380,8 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], @@ -5713,73 +5418,55 @@ } ] ], - "packet_move_minecart": [ + "packet_entity_sound_effect": [ "container", [ + { + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "soundCategory", + "type": "soundSource" + }, { "name": "entityId", "type": "varint" }, { - "name": "steps", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "position", - "type": "vec3f" - }, - { - "name": "movement", - "type": "vec3f" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "weight", - "type": "f32" - } - ] - ] - } - ] + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], - "packet_entity_look": [ + "packet_entity_status": [ "container", [ { "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" + "type": "i32" }, { - "name": "pitch", + "name": "entityStatus", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_entity_teleport": [ "container", [ + { + "name": "entityId", + "type": "varint" + }, { "name": "x", "type": "f64" @@ -5794,494 +5481,624 @@ }, { "name": "yaw", - "type": "f32" + "type": "i8" }, { "name": "pitch", - "type": "f32" - } - ] - ], - "packet_open_book": [ - "container", - [ - { - "name": "hand", - "type": "varint" - } - ] - ], - "packet_open_window": [ - "container", - [ - { - "name": "windowId", - "type": "varint" - }, - { - "name": "inventoryType", - "type": "varint" - }, - { - "name": "windowTitle", - "type": "anonymousNbt" - } - ] - ], - "packet_open_sign_entity": [ - "container", - [ - { - "name": "location", - "type": "position" + "type": "i8" }, { - "name": "isFrontText", + "name": "onGround", "type": "bool" } ] ], - "packet_ping": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "id", - "type": "i32" - } - ] - ], - "packet_ping_response": [ - "container", - [ + "name": "entityId", + "type": "varint" + }, { - "name": "id", - "type": "i64" + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": [ + "mapper", + { + "mappings": { + "0": "generic.armor", + "1": "generic.armor_toughness", + "2": "generic.attack_damage", + "3": "generic.attack_knockback", + "4": "generic.attack_speed", + "5": "player.block_break_speed", + "6": "player.block_interaction_range", + "7": "player.entity_interaction_range", + "8": "generic.fall_damage_multiplier", + "9": "generic.flying_speed", + "10": "generic.follow_range", + "11": "generic.gravity", + "12": "generic.jump_strength", + "13": "generic.knockback_resistance", + "14": "generic.luck", + "15": "generic.max_absorption", + "16": "generic.max_health", + "17": "generic.movement_speed", + "18": "generic.safe_fall_distance", + "19": "generic.scale", + "20": "zombie.spawn_reinforcements", + "21": "generic.step_height" + }, + "type": "varint" + } + ] + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_craft_recipe_response": [ + "packet_entity_velocity": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "entityId", + "type": "varint" }, { - "name": "recipeDisplay", - "type": "RecipeDisplay" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_abilities": [ + "packet_experience": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "experienceBar", + "type": "f32" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "level", + "type": "varint" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "totalExperience", + "type": "varint" } ] ], - "packet_player_chat": [ + "packet_explosion": [ "container", [ { - "name": "senderUuid", - "type": "UUID" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" }, { - "name": "index", - "type": "varint" + "name": "z", + "type": "f64" }, { - "name": "signature", + "name": "playerKnockback", "type": [ "option", - [ - "buffer", - { - "count": 256 - } - ] + "vec3f" ] }, { - "name": "plainMessage", - "type": "string" + "name": "explosionParticle", + "type": "Particle" }, { - "name": "timestamp", - "type": "i64" + "name": "sound", + "type": "ItemSoundHolder" + } + ] + ], + "packet_face_player": [ + "container", + [ + { + "name": "feet_eyes", + "type": "varint" }, { - "name": "salt", - "type": "i64" + "name": "x", + "type": "f64" }, { - "name": "previousMessages", - "type": "previousMessages" + "name": "y", + "type": "f64" }, { - "name": "unsignedChatContent", - "type": [ - "option", - "anonymousNbt" - ] + "name": "z", + "type": "f64" }, { - "name": "filterType", - "type": "varint" + "name": "isEntity", + "type": "bool" }, { - "name": "filterTypeMask", + "name": "entityId", "type": [ "switch", { - "compareTo": "filterType", + "compareTo": "isEntity", + "default": "void", "fields": { - "2": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - "default": "void" + "true": "varint" + } } ] }, { - "name": "type", - "type": "ChatTypesHolder" - }, - { - "name": "networkName", - "type": "anonymousNbt" - }, - { - "name": "networkTargetName", + "name": "entity_feet_eyes", "type": [ - "option", - "anonymousNbt" + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } ] } ] ], - "packet_end_combat_event": [ + "packet_game_state_change": [ "container", [ { - "name": "duration", - "type": "varint" + "name": "reason", + "type": "u8" + }, + { + "name": "gameMode", + "type": "f32" } ] ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ + "packet_held_item_slot": [ "container", [ { - "name": "playerId", - "type": "varint" - }, - { - "name": "message", - "type": "anonymousNbt" + "name": "slot", + "type": "i8" } ] ], - "packet_player_remove": [ + "packet_hide_message": [ "container", [ { - "name": "players", + "name": "id", + "type": "varint" + }, + { + "name": "signature", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "UUID" + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] + } } ] } ] ], - "packet_player_info": [ + "packet_hurt_animation": [ "container", [ { - "name": "action", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name", - "update_list_order" - ] - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "player", - "type": [ - "switch", - { - "compareTo": "../action/add_player", - "fields": { - "true": "game_profile" - }, - "default": "void" - } - ] - }, - { - "name": "chatSession", - "type": [ - "switch", - { - "compareTo": "../action/initialize_chat", - "fields": { - "true": "chat_session" - }, - "default": "void" - } - ] - }, - { - "name": "gamemode", - "type": [ - "switch", - { - "compareTo": "../action/update_game_mode", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "listed", - "type": [ - "switch", - { - "compareTo": "../action/update_listed", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "latency", - "type": [ - "switch", - { - "compareTo": "../action/update_latency", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "displayName", - "type": [ - "switch", - { - "compareTo": "../action/update_display_name", - "fields": { - "true": [ - "option", - "anonymousNbt" - ] - }, - "default": "void" - } - ] - }, - { - "name": "listPriority", - "type": [ - "switch", - { - "compareTo": "../action/update_list_order", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - } - ] - ] - } - ] + "name": "yaw", + "type": "f32" } ] ], - "packet_face_player": [ + "packet_initialize_world_border": [ "container", [ { - "name": "feet_eyes", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "x", + "name": "z", "type": "f64" }, { - "name": "y", + "name": "oldDiameter", "type": "f64" }, { - "name": "z", + "name": "newDiameter", "type": "f64" }, { - "name": "isEntity", - "type": "bool" + "name": "speed", + "type": "varint" + }, + { + "name": "portalTeleportBoundary", + "type": "varint" + }, + { + "name": "warningBlocks", + "type": "varint" }, + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "anonymousNbt" + } + ] + ], + "packet_login": [ + "container", + [ { "name": "entityId", + "type": "i32" + }, + { + "name": "isHardcore", + "type": "bool" + }, + { + "name": "worldNames", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "maxPlayers", + "type": "varint" + }, + { + "name": "viewDistance", + "type": "varint" + }, + { + "name": "simulationDistance", + "type": "varint" + }, + { + "name": "reducedDebugInfo", + "type": "bool" + }, + { + "name": "enableRespawnScreen", + "type": "bool" + }, + { + "name": "doLimitedCrafting", + "type": "bool" + }, + { + "name": "worldState", + "type": "SpawnInfo" + }, + { + "name": "enforcesSecureChat", + "type": "bool" + } + ] + ], + "packet_map": [ + "container", + [ + { + "name": "itemDamage", + "type": "varint" + }, + { + "name": "scale", + "type": "i8" + }, + { + "name": "locked", + "type": "bool" + }, + { + "name": "icons", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + }, + { + "name": "direction", + "type": "u8" + }, + { + "name": "displayName", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] + } + ] + ] + }, + { + "name": "columns", + "type": "u8" + }, + { + "name": "rows", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "columns", + "default": "u8", "fields": { - "true": "varint" - }, - "default": "void" + "0": "void" + } } ] }, { - "name": "entity_feet_eyes", + "name": "x", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "columns", + "default": "u8", "fields": { - "true": "varint" - }, - "default": "void" + "0": "void" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } } ] } ] ], - "PositionUpdateRelatives": [ - "bitflags", - { - "type": "u32", - "flags": [ - "x", - "y", - "z", - "yaw", - "pitch", - "dx", - "dy", - "dz", - "yawDelta" - ] - } - ], - "packet_position": [ + "packet_map_chunk": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "x", - "type": "f64" + "name": "z", + "type": "i32" }, { - "name": "y", - "type": "f64" + "name": "heightmaps", + "type": "anonymousNbt" }, { - "name": "z", - "type": "f64" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "chunkBlockEntity" + } + ] }, { - "name": "dx", - "type": "f64" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "dy", - "type": "f64" + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "dz", - "type": "f64" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "yaw", - "type": "f32" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "pitch", - "type": "f32" + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] }, { - "name": "flags", - "type": "PositionUpdateRelatives" + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], - "packet_player_rotation": [ + "packet_move_minecart": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_recipe_book_add": [ - "container", - [ - { - "name": "entries", + "name": "steps", "type": [ "array", { @@ -6290,91 +6107,60 @@ "container", [ { - "name": "recipe", - "type": [ - "container", - [ - { - "name": "displayId", - "type": "varint" - }, - { - "name": "display", - "type": "RecipeDisplay" - }, - { - "name": "group", - "type": "optvarint" - }, - { - "name": "category", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "crafting_building_blocks", - "1": "crafting_redstone", - "2": "crafting_equipment", - "3": "crafting_misc", - "4": "furnace_food", - "5": "furnace_blocks", - "6": "furnace_misc", - "7": "blast_furnace_blocks", - "8": "blast_furnace_misc", - "9": "smoker_food", - "10": "stonecutter", - "11": "smithing", - "12": "campfire" - } - } - ] - }, - { - "name": "craftingRequirements", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": "IDSet" - } - ] - ] - } - ] - ] + "name": "position", + "type": "vec3f" }, { - "name": "flags", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "notification", - "highlight" - ] - } - ] + "name": "movement", + "type": "vec3f" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "weight", + "type": "f32" } ] ] } ] - }, - { - "name": "replace", - "type": "bool" } ] ], - "packet_recipe_book_remove": [ + "packet_multi_block_change": [ "container", [ { - "name": "recipeIds", + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] + ] + }, + { + "name": "records", "type": [ "array", { @@ -6385,315 +6171,570 @@ } ] ], - "packet_recipe_book_settings": [ + "packet_nbt_query_response": [ "container", [ { - "name": "craftingGuiOpen", - "type": "bool" - }, - { - "name": "craftingFilteringCraftable", - "type": "bool" - }, - { - "name": "smeltingGuiOpen", - "type": "bool" + "name": "transactionId", + "type": "varint" }, { - "name": "smeltingFilteringCraftable", - "type": "bool" - }, + "name": "nbt", + "type": "anonOptionalNbt" + } + ] + ], + "packet_open_book": [ + "container", + [ { - "name": "blastGuiOpen", - "type": "bool" - }, + "name": "hand", + "type": "varint" + } + ] + ], + "packet_open_horse_window": [ + "container", + [ { - "name": "blastFilteringCraftable", - "type": "bool" + "name": "windowId", + "type": "ContainerID" }, { - "name": "smokerGuiOpen", - "type": "bool" + "name": "nbSlots", + "type": "varint" }, { - "name": "smokerFilteringCraftable", - "type": "bool" + "name": "entityId", + "type": "i32" } ] ], - "packet_entity_destroy": [ + "packet_open_sign_entity": [ "container", [ { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" } ] ], - "packet_remove_entity_effect": [ + "packet_open_window": [ "container", [ { - "name": "entityId", + "name": "windowId", "type": "varint" }, { - "name": "effectId", + "name": "inventoryType", "type": "varint" + }, + { + "name": "windowTitle", + "type": "anonymousNbt" } ] ], - "packet_reset_score": [ + "packet_ping": [ "container", [ { - "name": "entity_name", - "type": "string" - }, - { - "name": "objective_name", - "type": [ - "option", - "string" - ] + "name": "id", + "type": "i32" } ] ], - "packet_respawn": [ + "packet_ping_response": [ "container", [ { - "name": "worldState", - "type": "SpawnInfo" - }, - { - "name": "copyMetadata", - "type": "u8" + "name": "id", + "type": "i64" } ] ], - "packet_entity_head_rotation": [ + "packet_player_chat": [ "container", [ { - "name": "entityId", + "name": "senderUuid", + "type": "UUID" + }, + { + "name": "index", "type": "varint" }, { - "name": "headYaw", - "type": "i8" + "name": "signature", + "type": [ + "option", + [ + "buffer", + { + "count": 256 + } + ] + ] + }, + { + "name": "plainMessage", + "type": "string" + }, + { + "name": "timestamp", + "type": "i64" + }, + { + "name": "salt", + "type": "i64" + }, + { + "name": "previousMessages", + "type": "previousMessages" + }, + { + "name": "unsignedChatContent", + "type": [ + "option", + "anonymousNbt" + ] + }, + { + "name": "filterType", + "type": "varint" + }, + { + "name": "filterTypeMask", + "type": [ + "switch", + { + "compareTo": "filterType", + "default": "void", + "fields": { + "2": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + } + } + ] + }, + { + "name": "type", + "type": "ChatTypesHolder" + }, + { + "name": "networkName", + "type": "anonymousNbt" + }, + { + "name": "networkTargetName", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "packet_multi_block_change": [ + "packet_player_info": [ "container", [ { - "name": "chunkCoordinates", + "name": "action", "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] + "bitflags", + { + "flags": [ + "add_player", + "initialize_chat", + "update_game_mode", + "update_listed", + "update_latency", + "update_display_name", + "update_list_order" + ], + "type": "u8" + } ] }, { - "name": "records", + "name": "data", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "player", + "type": [ + "switch", + { + "compareTo": "../action/add_player", + "default": "void", + "fields": { + "true": "game_profile" + } + } + ] + }, + { + "name": "chatSession", + "type": [ + "switch", + { + "compareTo": "../action/initialize_chat", + "default": "void", + "fields": { + "true": "chat_session" + } + } + ] + }, + { + "name": "gamemode", + "type": [ + "switch", + { + "compareTo": "../action/update_game_mode", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "listed", + "type": [ + "switch", + { + "compareTo": "../action/update_listed", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "latency", + "type": [ + "switch", + { + "compareTo": "../action/update_latency", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "displayName", + "type": [ + "switch", + { + "compareTo": "../action/update_display_name", + "default": "void", + "fields": { + "true": [ + "option", + "anonymousNbt" + ] + } + } + ] + }, + { + "name": "listPriority", + "type": [ + "switch", + { + "compareTo": "../action/update_list_order", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + } + ] + ] } ] } ] ], - "packet_select_advancement_tab": [ + "packet_player_remove": [ "container", [ { - "name": "id", + "name": "players", "type": [ - "option", - "string" + "array", + { + "countType": "varint", + "type": "UUID" + } ] } ] ], - "packet_server_data": [ + "packet_player_rotation": [ "container", [ { - "name": "motd", - "type": "anonymousNbt" + "name": "yaw", + "type": "f32" }, { - "name": "iconBytes", - "type": [ - "option", - "ByteArray" - ] + "name": "pitch", + "type": "f32" } ] ], - "packet_action_bar": [ + "packet_playerlist_header": [ "container", [ { - "name": "text", + "name": "header", + "type": "anonymousNbt" + }, + { + "name": "footer", "type": "anonymousNbt" } ] ], - "packet_world_border_center": [ + "packet_position": [ "container", [ + { + "name": "teleportId", + "type": "varint" + }, { "name": "x", "type": "f64" }, { - "name": "z", + "name": "y", "type": "f64" - } - ] - ], - "packet_world_border_lerp_size": [ - "container", - [ + }, { - "name": "oldDiameter", + "name": "z", "type": "f64" }, { - "name": "newDiameter", + "name": "dx", "type": "f64" }, { - "name": "speed", - "type": "varint" - } - ] - ], - "packet_world_border_size": [ - "container", - [ + "name": "dy", + "type": "f64" + }, { - "name": "diameter", + "name": "dz", "type": "f64" - } - ] - ], - "packet_world_border_warning_delay": [ - "container", - [ + }, { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_world_border_warning_reach": [ - "container", - [ + "name": "yaw", + "type": "f32" + }, { - "name": "warningBlocks", - "type": "varint" - } - ] - ], - "packet_camera": [ - "container", - [ + "name": "pitch", + "type": "f32" + }, { - "name": "cameraId", - "type": "varint" + "name": "flags", + "type": "PositionUpdateRelatives" } ] ], - "packet_update_view_position": [ + "packet_profileless_chat": [ "container", [ { - "name": "chunkX", - "type": "varint" + "name": "message", + "type": "anonymousNbt" }, { - "name": "chunkZ", - "type": "varint" + "name": "type", + "type": "ChatTypesHolder" + }, + { + "name": "name", + "type": "anonymousNbt" + }, + { + "name": "target", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "packet_update_view_distance": [ + "packet_recipe_book_add": [ "container", [ { - "name": "viewDistance", - "type": "varint" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "recipe", + "type": [ + "container", + [ + { + "name": "displayId", + "type": "varint" + }, + { + "name": "display", + "type": "RecipeDisplay" + }, + { + "name": "group", + "type": "optvarint" + }, + { + "name": "category", + "type": [ + "mapper", + { + "mappings": { + "0": "crafting_building_blocks", + "1": "crafting_redstone", + "2": "crafting_equipment", + "3": "crafting_misc", + "4": "furnace_food", + "5": "furnace_blocks", + "6": "furnace_misc", + "7": "blast_furnace_blocks", + "8": "blast_furnace_misc", + "9": "smoker_food", + "10": "stonecutter", + "11": "smithing", + "12": "campfire" + }, + "type": "varint" + } + ] + }, + { + "name": "craftingRequirements", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": "IDSet" + } + ] + ] + } + ] + ] + }, + { + "name": "flags", + "type": [ + "bitflags", + { + "flags": [ + "notification", + "highlight" + ], + "type": "u8" + } + ] + } + ] + ] + } + ] + }, + { + "name": "replace", + "type": "bool" } ] ], - "packet_set_cursor_item": [ + "packet_recipe_book_remove": [ "container", [ { - "name": "contents", + "name": "recipeIds", "type": [ - "option", - "Slot" + "array", + { + "countType": "varint", + "type": "varint" + } ] } ] ], - "packet_spawn_position": [ + "packet_recipe_book_settings": [ "container", [ { - "name": "location", - "type": "position" + "name": "craftingGuiOpen", + "type": "bool" }, { - "name": "angle", - "type": "f32" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + "name": "craftingFilteringCraftable", + "type": "bool" + }, { - "name": "position", - "type": "varint" + "name": "smeltingGuiOpen", + "type": "bool" }, { - "name": "name", - "type": "string" + "name": "smeltingFilteringCraftable", + "type": "bool" + }, + { + "name": "blastGuiOpen", + "type": "bool" + }, + { + "name": "blastFilteringCraftable", + "type": "bool" + }, + { + "name": "smokerGuiOpen", + "type": "bool" + }, + { + "name": "smokerFilteringCraftable", + "type": "bool" } ] ], - "packet_entity_metadata": [ + "packet_rel_entity_move": [ "container", [ { @@ -6701,25 +6742,24 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "entityId", - "type": "i32" + "name": "dY", + "type": "i16" }, { - "name": "vehicleId", - "type": "i32" + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_entity_velocity": [ + "packet_remove_entity_effect": [ "container", [ { @@ -6727,81 +6767,50 @@ "type": "varint" }, { - "name": "velocity", - "type": "vec3i16" + "name": "effectId", + "type": "varint" } ] ], - "packet_entity_equipment": [ + "packet_reset_score": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entity_name", + "type": "string" }, { - "name": "equipments", + "name": "objective_name", "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } + "option", + "string" ] } ] ], - "packet_experience": [ + "packet_respawn": [ "container", [ { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" + "name": "worldState", + "type": "SpawnInfo" }, { - "name": "totalExperience", - "type": "varint" + "name": "copyMetadata", + "type": "u8" } ] ], - "packet_update_health": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", + "name": "position", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ - { - "name": "slot", - "type": "i8" + "name": "name", + "type": "string" } ] ], @@ -6822,11 +6831,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ] }, @@ -6836,11 +6845,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -6850,6 +6859,7 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": [ "option", @@ -6857,223 +6867,43 @@ ], "2": [ "option", - "varint" - ] - }, - "default": "void" - } - ] - }, - { - "name": "styling", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "switch", - { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ], - "2": [ - "switch", - { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_set_passengers": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_set_player_inventory": [ - "container", - [ - { - "name": "slotId", - "type": "varint" - }, - { - "name": "contents", - "type": [ - "option", - "Slot" - ] - } - ] - ], - "packet_teams": [ - "container", - [ - { - "name": "team", - "type": "string" - }, - { - "name": "mode", - "type": "i8" - }, - { - "name": "name", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] - }, - { - "name": "friendlyFire", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" - } - ] - }, - { - "name": "nameTagVisibility", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - }, - { - "name": "collisionRule", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - }, - { - "name": "formatting", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "prefix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] - }, - { - "name": "suffix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" + "varint" + ] + } } ] }, { - "name": "players", + "name": "styling", "type": [ "switch", { - "compareTo": "mode", + "compareTo": "action", + "default": "void", "fields": { "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } } ], - "4": [ - "array", + "2": [ + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } } ] - }, - "default": "void" + } } ] } @@ -7114,51 +6944,160 @@ "switch", { "compareTo": "number_format", + "default": "void", "fields": { "1": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ] } ] ], - "packet_simulation_distance": [ + "packet_select_advancement_tab": [ "container", [ { - "name": "distance", - "type": "varint" + "name": "id", + "type": [ + "option", + "string" + ] } ] ], - "packet_set_title_subtitle": [ + "packet_server_data": [ "container", [ { - "name": "text", + "name": "motd", "type": "anonymousNbt" + }, + { + "name": "iconBytes", + "type": [ + "option", + "ByteArray" + ] } ] ], - "packet_update_time": [ + "packet_set_cooldown": [ "container", [ { - "name": "age", - "type": "i64" + "name": "cooldownGroup", + "type": "string" }, { - "name": "time", - "type": "i64" + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_cursor_item": [ + "container", + [ + { + "name": "contents", + "type": [ + "option", + "Slot" + ] + } + ] + ], + "packet_set_passengers": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "tickDayTime", + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "packet_set_player_inventory": [ + "container", + [ + { + "name": "slotId", + "type": "varint" + }, + { + "name": "contents", + "type": [ + "option", + "Slot" + ] + } + ] + ], + "packet_set_projectile_power": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "accelerationPower", + "type": "f64" + } + ] + ], + "packet_set_slot": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "stateId", + "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" + } + ] + ], + "packet_set_ticking_state": [ + "container", + [ + { + "name": "tick_rate", + "type": "f32" + }, + { + "name": "is_frozen", "type": "bool" } ] ], + "packet_set_title_subtitle": [ + "container", + [ + { + "name": "text", + "type": "anonymousNbt" + } + ] + ], "packet_set_title_text": [ "container", [ @@ -7185,7 +7124,16 @@ } ] ], - "packet_entity_sound_effect": [ + "packet_simulation_distance": [ + "container", + [ + { + "name": "distance", + "type": "varint" + } + ] + ], + "packet_sound_effect": [ "container", [ { @@ -7197,8 +7145,16 @@ "type": "soundSource" }, { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" }, { "name": "volume", @@ -7214,40 +7170,90 @@ } ] ], - "packet_sound_effect": [ + "packet_spawn_entity": [ "container", [ { - "name": "sound", - "type": "ItemSoundHolder" + "name": "entityId", + "type": "varint" }, { - "name": "soundCategory", - "type": "soundSource" + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" }, { - "name": "volume", - "type": "f32" + "name": "objectData", + "type": "varint" + }, + { + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_spawn_entity_experience_orb": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" }, { - "name": "pitch", + "name": "angle", "type": "f32" - }, - { - "name": "seed", - "type": "i64" } ] ], @@ -7255,6 +7261,46 @@ "container", [] ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_step_tick": [ + "container", + [ + { + "name": "tick_steps", + "type": "varint" + } + ] + ], "packet_stop_sound": [ "container", [ @@ -7268,11 +7314,11 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "1": "varint", "3": "varint" - }, - "default": "void" + } } ] }, @@ -7282,43 +7328,75 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "2": "string", "3": "string" - }, - "default": "void" + } } ] } ] ], - "packet_system_chat": [ + "packet_sync_entity_position": [ "container", [ { - "name": "content", - "type": "anonymousNbt" + "name": "entityId", + "type": "varint" }, { - "name": "isActionBar", + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "dx", + "type": "f64" + }, + { + "name": "dy", + "type": "f64" + }, + { + "name": "dz", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", "type": "bool" } ] ], - "packet_playerlist_header": [ + "packet_system_chat": [ "container", [ { - "name": "header", + "name": "content", "type": "anonymousNbt" }, { - "name": "footer", - "type": "anonymousNbt" + "name": "isActionBar", + "type": "bool" } ] ], - "packet_nbt_query_response": [ + "packet_tab_complete": [ "container", [ { @@ -7326,92 +7404,237 @@ "type": "varint" }, { - "name": "nbt", - "type": "anonOptionalNbt" - } - ] - ], - "packet_collect": [ - "container", - [ - { - "name": "collectedEntityId", + "name": "start", "type": "varint" }, { - "name": "collectorEntityId", + "name": "length", "type": "varint" }, { - "name": "pickupItemCount", - "type": "varint" + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] + } + ] } ] ], - "packet_entity_teleport": [ + "packet_tags": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "tags", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] + } + ] + } + ] + ], + "packet_teams": [ + "container", + [ + { + "name": "team", + "type": "string" }, { - "name": "x", - "type": "f64" + "name": "mode", + "type": "i8" }, { - "name": "y", - "type": "f64" + "name": "name", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] }, { - "name": "z", - "type": "f64" + "name": "friendlyFire", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "i8", + "2": "i8" + } + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "nameTagVisibility", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "collisionRule", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "formatting", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + }, + { + "name": "prefix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "suffix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "players", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "3": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + } + ] } ] ], - "packet_set_ticking_state": [ + "packet_tile_entity_data": [ "container", [ { - "name": "tick_rate", - "type": "f32" + "name": "location", + "type": "position" }, { - "name": "is_frozen", - "type": "bool" - } - ] - ], - "packet_step_tick": [ - "container", - [ - { - "name": "tick_steps", + "name": "action", "type": "varint" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" } ] ], - "packet_advancements": [ + "packet_trade_list": [ "container", [ { - "name": "reset", - "type": "bool" + "name": "windowId", + "type": "ContainerID" }, { - "name": "advancementMapping", + "name": "trades", "type": [ "array", { @@ -7420,119 +7643,99 @@ "container", [ { - "name": "key", - "type": "string" - }, - { - "name": "value", + "name": "inputItem1", "type": [ "container", [ { - "name": "parentId", - "type": [ - "option", - "string" - ] + "name": "itemId", + "type": "varint" }, { - "name": "displayData", - "type": [ - "option", - [ - "container", - [ - { - "name": "title", - "type": "anonymousNbt" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "icon", - "type": "Slot" - }, - { - "name": "frameType", - "type": "varint" - }, - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "backgroundTexture", - "type": [ - "switch", - { - "compareTo": "flags/has_background_texture", - "fields": { - "1": "string" - }, - "default": "void" - } - ] - }, - { - "name": "xCord", - "type": "f32" - }, - { - "name": "yCord", - "type": "f32" - } - ] - ] - ] + "name": "itemCount", + "type": "varint" }, { - "name": "requirements", + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "components", "type": [ "array", { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "count": "addedComponentCount", + "type": "SlotComponent" } ] - }, - { - "name": "sendsTelemtryData", - "type": "bool" } ] ] + }, + { + "name": "outputItem", + "type": "Slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "SlotComponent" + } + ] + } + ] + ] + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" } ] ] @@ -7540,408 +7743,437 @@ ] }, { - "name": "identifiers", + "name": "villagerLevel", + "type": "varint" + }, + { + "name": "experience", + "type": "varint" + }, + { + "name": "isRegularVillager", + "type": "bool" + }, + { + "name": "canRestock", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkZ", + "type": "i32" + }, + { + "name": "chunkX", + "type": "i32" + } + ] + ], + "packet_update_health": [ + "container", + [ + { + "name": "health", + "type": "f32" + }, + { + "name": "food", + "type": "varint" + }, + { + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_light": [ + "container", + [ + { + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" + }, + { + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "blockLightMask", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "i64" } ] }, { - "name": "progressMapping", + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "skyLight", "type": [ "array", { "countType": "varint", "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "criterionIdentifier", - "type": "string" - }, - { - "name": "criterionProgress", - "type": [ - "option", - "i64" - ] - } - ] - ] - } - ] - } - ] + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] - } - ] - ], - "packet_entity_update_attributes": [ - "container", - [ - { - "name": "entityId", - "type": "varint" }, { - "name": "properties", + "name": "blockLight", "type": [ "array", { "countType": "varint", "type": [ - "container", - [ - { - "name": "key", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "generic.armor", - "1": "generic.armor_toughness", - "2": "generic.attack_damage", - "3": "generic.attack_knockback", - "4": "generic.attack_speed", - "5": "player.block_break_speed", - "6": "player.block_interaction_range", - "7": "player.entity_interaction_range", - "8": "generic.fall_damage_multiplier", - "9": "generic.flying_speed", - "10": "generic.follow_range", - "11": "generic.gravity", - "12": "generic.jump_strength", - "13": "generic.knockback_resistance", - "14": "generic.luck", - "15": "generic.max_absorption", - "16": "generic.max_health", - "17": "generic.movement_speed", - "18": "generic.safe_fall_distance", - "19": "generic.scale", - "20": "zombie.spawn_reinforcements", - "21": "generic.step_height" - } - } - ] - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "string" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] } ] ], - "packet_entity_effect": [ + "packet_update_time": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "age", + "type": "i64" }, { - "name": "effectId", - "type": "varint" + "name": "time", + "type": "i64" }, { - "name": "amplifier", + "name": "tickDayTime", + "type": "bool" + } + ] + ], + "packet_update_view_distance": [ + "container", + [ + { + "name": "viewDistance", + "type": "varint" + } + ] + ], + "packet_update_view_position": [ + "container", + [ + { + "name": "chunkX", "type": "varint" }, { - "name": "duration", + "name": "chunkZ", "type": "varint" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" }, { - "name": "flags", - "type": "u8" + "name": "pitch", + "type": "f32" } ] ], - "packet_declare_recipes": [ + "packet_window_items": [ "container", [ { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ] + "name": "windowId", + "type": "ContainerID" }, { - "name": "stoneCutterRecipes", + "name": "stateId", + "type": "varint" + }, + { + "name": "items", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "input", - "type": "IDSet" - }, - { - "name": "slotDisplay", - "type": "SlotDisplay" - } - ] - ] + "type": "Slot" } ] + }, + { + "name": "carriedItem", + "type": "Slot" } ] ], - "packet_tags": [ + "packet_world_border_center": [ "container", [ { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] - } - ] + "name": "x", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_set_projectile_power": [ + "packet_world_border_lerp_size": [ "container", [ { - "name": "id", - "type": "varint" + "name": "oldDiameter", + "type": "f64" }, { - "name": "accelerationPower", + "name": "newDiameter", "type": "f64" + }, + { + "name": "speed", + "type": "varint" } ] ], - "packet": [ + "packet_world_border_size": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "spawn_entity_experience_orb", - "0x03": "animation", - "0x04": "statistics", - "0x05": "acknowledge_player_digging", - "0x06": "block_break_animation", - "0x07": "tile_entity_data", - "0x08": "block_action", - "0x09": "block_change", - "0x0a": "boss_bar", - "0x0b": "difficulty", - "0x0c": "chunk_batch_finished", - "0x0d": "chunk_batch_start", - "0x0e": "chunk_biomes", - "0x0f": "clear_titles", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "close_window", - "0x13": "window_items", - "0x14": "craft_progress_bar", - "0x15": "set_slot", - "0x16": "cookie_request", - "0x17": "set_cooldown", - "0x18": "chat_suggestions", - "0x19": "custom_payload", - "0x1a": "damage_event", - "0x1b": "debug_sample", - "0x1c": "hide_message", - "0x1d": "kick_disconnect", - "0x1e": "profileless_chat", - "0x1f": "entity_status", - "0x20": "sync_entity_position", - "0x21": "explosion", - "0x22": "unload_chunk", - "0x23": "game_state_change", - "0x24": "open_horse_window", - "0x25": "hurt_animation", - "0x26": "initialize_world_border", - "0x27": "keep_alive", - "0x28": "map_chunk", - "0x29": "world_event", - "0x2a": "world_particles", - "0x2b": "update_light", - "0x2c": "login", - "0x2d": "map", - "0x2e": "trade_list", - "0x2f": "rel_entity_move", - "0x30": "entity_move_look", - "0x31": "move_minecart", - "0x32": "entity_look", - "0x33": "vehicle_move", - "0x34": "open_book", - "0x35": "open_window", - "0x36": "open_sign_entity", - "0x37": "ping", - "0x38": "ping_response", - "0x39": "craft_recipe_response", - "0x3a": "abilities", - "0x3b": "player_chat", - "0x3c": "end_combat_event", - "0x3d": "enter_combat_event", - "0x3e": "death_combat_event", - "0x3f": "player_remove", - "0x40": "player_info", - "0x41": "face_player", - "0x42": "position", - "0x43": "player_rotation", - "0x44": "recipe_book_add", - "0x45": "recipe_book_remove", - "0x46": "recipe_book_settings", - "0x47": "entity_destroy", - "0x48": "remove_entity_effect", - "0x49": "reset_score", - "0x4a": "remove_resource_pack", - "0x4b": "add_resource_pack", - "0x4c": "respawn", - "0x4d": "entity_head_rotation", - "0x4e": "multi_block_change", - "0x4f": "select_advancement_tab", - "0x50": "server_data", - "0x51": "action_bar", - "0x52": "world_border_center", - "0x53": "world_border_lerp_size", - "0x54": "world_border_size", - "0x55": "world_border_warning_delay", - "0x56": "world_border_warning_reach", - "0x57": "camera", - "0x58": "update_view_position", - "0x59": "update_view_distance", - "0x5a": "set_cursor_item", - "0x5b": "spawn_position", - "0x5c": "scoreboard_display_objective", - "0x5d": "entity_metadata", - "0x5e": "attach_entity", - "0x5f": "entity_velocity", - "0x60": "entity_equipment", - "0x61": "experience", - "0x62": "update_health", - "0x63": "held_item_slot", - "0x64": "scoreboard_objective", - "0x65": "set_passengers", - "0x66": "set_player_inventory", - "0x67": "teams", - "0x68": "scoreboard_score", - "0x69": "simulation_distance", - "0x6a": "set_title_subtitle", - "0x6b": "update_time", - "0x6c": "set_title_text", - "0x6d": "set_title_time", - "0x6e": "entity_sound_effect", - "0x6f": "sound_effect", - "0x70": "start_configuration", - "0x71": "stop_sound", - "0x72": "store_cookie", - "0x73": "system_chat", - "0x74": "playerlist_header", - "0x75": "nbt_query_response", - "0x76": "collect", - "0x77": "entity_teleport", - "0x78": "set_ticking_state", - "0x79": "step_tick", - "0x7a": "transfer", - "0x7b": "advancements", - "0x7c": "entity_update_attributes", - "0x7d": "entity_effect", - "0x7e": "declare_recipes", - "0x7f": "tags", - "0x80": "set_projectile_power", - "0x81": "custom_report_details", - "0x82": "server_links" - } + "name": "diameter", + "type": "f64" + } + ] + ], + "packet_world_border_warning_delay": [ + "container", + [ + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_world_border_warning_reach": [ + "container", + [ + { + "name": "warningBlocks", + "type": "varint" + } + ] + ], + "packet_world_event": [ + "container", + [ + { + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" + } + ] + ], + "packet_world_particles": [ + "container", + [ + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "velocityOffset", + "type": "f32" + }, + { + "name": "amount", + "type": "i32" + }, + { + "name": "particle", + "type": "Particle" + } + ] + ] + } + }, + "toServer": { + "types": { + "MovementFlags": [ + "bitflags", + { + "flags": [ + "onGround", + "hasHorizontalCollision" + ], + "type": "u8" + } + ], + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "select_bundle_item", + "0x03": "set_difficulty", + "0x04": "message_acknowledgement", + "0x05": "chat_command", + "0x06": "chat_command_signed", + "0x07": "chat_message", + "0x08": "chat_session_update", + "0x09": "chunk_batch_received", + "0x0a": "client_command", + "0x0b": "tick_end", + "0x0c": "settings", + "0x0d": "tab_complete", + "0x0e": "configuration_acknowledged", + "0x0f": "enchant_item", + "0x10": "window_click", + "0x11": "close_window", + "0x12": "set_slot_state", + "0x13": "cookie_response", + "0x14": "custom_payload", + "0x15": "debug_sample_subscription", + "0x16": "edit_book", + "0x17": "query_entity_nbt", + "0x18": "use_entity", + "0x19": "generate_structure", + "0x1a": "keep_alive", + "0x1b": "lock_difficulty", + "0x1c": "position", + "0x1d": "position_look", + "0x1e": "look", + "0x1f": "flying", + "0x20": "vehicle_move", + "0x21": "steer_boat", + "0x22": "pick_item", + "0x23": "ping_request", + "0x24": "craft_recipe_request", + "0x25": "abilities", + "0x26": "block_dig", + "0x27": "entity_action", + "0x28": "player_input", + "0x29": "pong", + "0x2a": "recipe_book", + "0x2b": "displayed_recipe", + "0x2c": "name_item", + "0x2d": "resource_pack_receive", + "0x2e": "advancement_tab", + "0x2f": "select_trade", + "0x30": "set_beacon_effect", + "0x31": "held_item_slot", + "0x32": "update_command_block", + "0x33": "update_command_block_minecart", + "0x34": "set_creative_slot", + "0x35": "update_jigsaw_block", + "0x36": "update_structure_block", + "0x37": "update_sign", + "0x38": "arm_animation", + "0x39": "spectate", + "0x3a": "block_place", + "0x3b": "use_item" + }, + "type": "varint" } ] }, @@ -7952,196 +8184,170 @@ { "compareTo": "name", "fields": { - "bundle_delimiter": "void", - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "animation": "packet_animation", - "statistics": "packet_statistics", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "chunk_batch_finished": "packet_chunk_batch_finished", - "chunk_batch_start": "packet_chunk_batch_start", - "chunk_biomes": "packet_chunk_biomes", - "clear_titles": "packet_clear_titles", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat_command": "packet_chat_command", + "chat_command_signed": "packet_chat_command_signed", + "chat_message": "packet_chat_message", + "chat_session_update": "packet_chat_session_update", + "chunk_batch_received": "packet_chunk_batch_received", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "cookie_request": "packet_common_cookie_request", - "set_cooldown": "packet_set_cooldown", - "chat_suggestions": "packet_chat_suggestions", + "configuration_acknowledged": "packet_configuration_acknowledged", + "cookie_response": "packet_common_cookie_response", + "craft_recipe_request": "packet_craft_recipe_request", "custom_payload": "packet_custom_payload", - "damage_event": "packet_damage_event", - "debug_sample": "packet_debug_sample", - "hide_message": "packet_hide_message", - "kick_disconnect": "packet_kick_disconnect", - "profileless_chat": "packet_profileless_chat", - "entity_status": "packet_entity_status", - "sync_entity_position": "packet_sync_entity_position", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "hurt_animation": "packet_hurt_animation", - "initialize_world_border": "packet_initialize_world_border", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "move_minecart": "packet_move_minecart", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_window": "packet_open_window", - "open_sign_entity": "packet_open_sign_entity", - "ping": "packet_ping", - "ping_response": "packet_ping_response", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "player_chat": "packet_player_chat", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_remove": "packet_player_remove", - "player_info": "packet_player_info", - "face_player": "packet_face_player", - "position": "packet_position", - "player_rotation": "packet_player_rotation", - "recipe_book_add": "packet_recipe_book_add", - "recipe_book_remove": "packet_recipe_book_remove", - "recipe_book_settings": "packet_recipe_book_settings", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "reset_score": "packet_reset_score", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "respawn": "packet_respawn", - "entity_head_rotation": "packet_entity_head_rotation", - "multi_block_change": "packet_multi_block_change", - "select_advancement_tab": "packet_select_advancement_tab", - "server_data": "packet_server_data", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "camera": "packet_camera", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "set_cursor_item": "packet_set_cursor_item", + "debug_sample_subscription": "packet_debug_sample_subscription", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", "held_item_slot": "packet_held_item_slot", - "spawn_position": "packet_spawn_position", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "set_player_inventory": "packet_set_player_inventory", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "set_title_subtitle": "packet_set_title_subtitle", - "update_time": "packet_update_time", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time", - "entity_sound_effect": "packet_entity_sound_effect", - "sound_effect": "packet_sound_effect", - "start_configuration": "packet_start_configuration", - "stop_sound": "packet_stop_sound", - "store_cookie": "packet_common_store_cookie", - "system_chat": "packet_system_chat", - "playerlist_header": "packet_playerlist_header", - "nbt_query_response": "packet_nbt_query_response", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "set_ticking_state": "packet_set_ticking_state", - "step_tick": "packet_step_tick", - "transfer": "packet_common_transfer", - "advancements": "packet_advancements", - "entity_update_attributes": "packet_entity_update_attributes", - "entity_effect": "packet_entity_effect", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "set_projectile_power": "packet_set_projectile_power", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links" + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "message_acknowledgement": "packet_message_acknowledgement", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "ping_request": "packet_ping_request", + "player_input": "packet_player_input", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_bundle_item": "packet_select_bundle_item", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "set_slot_state": "packet_set_slot_state", + "settings": "packet_common_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "tick_end": "packet_tick_end", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_select_bundle_item": [ + "packet_arm_animation": [ "container", [ { - "name": "slotId", - "type": "varint" - }, - { - "name": "selectedItemIndex", + "name": "hand", "type": "varint" } ] ], - "packet_set_difficulty": [ + "packet_block_dig": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "status", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" + }, + { + "name": "sequence", + "type": "varint" } ] ], - "packet_message_acknowledgement": [ + "packet_block_place": [ "container", [ { - "name": "count", + "name": "hand", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "varint" + }, + { + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" + }, + { + "name": "worldBorderHit", + "type": "bool" + }, + { + "name": "sequence", "type": "varint" } ] @@ -8288,93 +8494,8 @@ "container", [ { - "name": "actionId", - "type": "varint" - } - ] - ], - "packet_tick_end": [ - "container", - [] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "text", - "type": "string" - } - ] - ], - "packet_configuration_acknowledged": [ - "container", - [] - ], - "packet_enchant_item": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "enchantment", - "type": "varint" - } - ] - ], - "packet_window_click": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] - }, - { - "name": "cursorItem", - "type": "Slot" + "name": "actionId", + "type": "varint" } ] ], @@ -8387,19 +8508,23 @@ } ] ], - "packet_set_slot_state": [ + "packet_configuration_acknowledged": [ + "container", + [] + ], + "packet_craft_recipe_request": [ "container", [ { - "name": "slot_id", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "window_id", - "type": "ContainerID" + "name": "recipeId", + "type": "varint" }, { - "name": "state", + "name": "makeAll", "type": "bool" } ] @@ -8426,6 +8551,15 @@ } ] ], + "packet_displayed_recipe": [ + "container", + [ + { + "name": "recipeId", + "type": "varint" + } + ] + ], "packet_edit_book": [ "container", [ @@ -8452,86 +8586,42 @@ } ] ], - "packet_query_entity_nbt": [ + "packet_enchant_item": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "entityId", + "name": "enchantment", "type": "varint" } ] ], - "packet_use_entity": [ + "packet_entity_action": [ "container", [ { - "name": "target", + "name": "entityId", "type": "varint" }, { - "name": "mouse", + "name": "actionId", "type": "varint" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { - "name": "sneaking", - "type": "bool" + "name": "flags", + "type": "MovementFlags" } ] ], @@ -8552,81 +8642,30 @@ } ] ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_lock_difficulty": [ + "packet_held_item_slot": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "slotId", + "type": "i16" } ] ], - "MovementFlags": [ - "bitflags", - { - "type": "u8", - "flags": [ - "onGround", - "hasHorizontalCollision" - ] - } - ], - "packet_position": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "flags", - "type": "MovementFlags" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_position_look": [ + "packet_lock_difficulty": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "flags", - "type": "MovementFlags" + "name": "locked", + "type": "bool" } ] ], @@ -8647,50 +8686,21 @@ } ] ], - "packet_flying": [ - "container", - [ - { - "name": "flags", - "type": "MovementFlags" - } - ] - ], - "packet_vehicle_move": [ + "packet_message_acknowledgement": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "count", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_name_item": [ "container", [ { - "name": "leftPaddle", - "type": "bool" - }, - { - "name": "rightPaddle", - "type": "bool" + "name": "name", + "type": "string" } ] ], @@ -8712,99 +8722,111 @@ } ] ], - "packet_craft_recipe_request": [ + "packet_player_input": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "recipeId", - "type": "varint" - }, - { - "name": "makeAll", - "type": "bool" + "name": "inputs", + "type": [ + "bitflags", + { + "flags": [ + "forward", + "backward", + "left", + "right", + "jump", + "shift", + "sprint" + ], + "type": "u8" + } + ] } ] ], - "packet_abilities": [ + "packet_pong": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "id", + "type": "i32" } ] ], - "packet_block_dig": [ + "packet_position": [ "container", [ { - "name": "status", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "location", - "type": "position" + "name": "y", + "type": "f64" }, { - "name": "face", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "sequence", - "type": "varint" + "name": "flags", + "type": "MovementFlags" } ] ], - "packet_entity_action": [ + "packet_position_look": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "actionId", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "jumpBoost", - "type": "varint" + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "flags", + "type": "MovementFlags" } ] ], - "packet_player_input": [ + "packet_query_block_nbt": [ "container", [ { - "name": "inputs", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "forward", - "backward", - "left", - "right", - "jump", - "shift", - "sprint" - ] - } - ] + "name": "transactionId", + "type": "varint" + }, + { + "name": "location", + "type": "position" } ] ], - "packet_pong": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "id", - "type": "i32" + "name": "transactionId", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" } ] ], @@ -8825,24 +8847,6 @@ } ] ], - "packet_displayed_recipe": [ - "container", - [ - { - "name": "recipeId", - "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] - ], "packet_resource_pack_receive": [ "container", [ @@ -8856,25 +8860,16 @@ } ] ], - "packet_advancement_tab": [ + "packet_select_bundle_item": [ "container", [ { - "name": "action", + "name": "slotId", "type": "varint" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "selectedItemIndex", + "type": "varint" } ] ], @@ -8906,15 +8901,93 @@ } ] ], - "packet_held_item_slot": [ + "packet_set_creative_slot": [ "container", [ { - "name": "slotId", + "name": "slot", "type": "i16" + }, + { + "name": "item", + "type": "Slot" + } + ] + ], + "packet_set_difficulty": [ + "container", + [ + { + "name": "newDifficulty", + "type": "u8" + } + ] + ], + "packet_set_slot_state": [ + "container", + [ + { + "name": "slot_id", + "type": "varint" + }, + { + "name": "window_id", + "type": "ContainerID" + }, + { + "name": "state", + "type": "bool" + } + ] + ], + "packet_spectate": [ + "container", + [ + { + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ + { + "name": "leftPaddle", + "type": "bool" + }, + { + "name": "rightPaddle", + "type": "bool" + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "text", + "type": "string" + } + ] + ], + "packet_teleport_confirm": [ + "container", + [ + { + "name": "teleportId", + "type": "varint" } ] ], + "packet_tick_end": [ + "container", + [] + ], "packet_update_command_block": [ "container", [ @@ -8953,19 +9026,6 @@ } ] ], - "packet_set_creative_slot": [ - "container", - [ - { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" - } - ] - ], "packet_update_jigsaw_block": [ "container", [ @@ -9003,6 +9063,35 @@ } ] ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], "packet_update_structure_block": [ "container", [ @@ -9072,255 +9161,166 @@ } ] ], - "packet_update_sign": [ + "packet_use_entity": [ "container", [ { - "name": "location", - "type": "position" + "name": "target", + "type": "varint" }, { - "name": "isFrontText", - "type": "bool" + "name": "mouse", + "type": "varint" }, { - "name": "text1", - "type": "string" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "text2", - "type": "string" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "text3", - "type": "string" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "text4", - "type": "string" + "name": "sneaking", + "type": "bool" } ] ], - "packet_arm_animation": [ + "packet_use_item": [ "container", [ { "name": "hand", "type": "varint" - } - ] - ], - "packet_spectate": [ - "container", - [ + }, { - "name": "target", - "type": "UUID" + "name": "sequence", + "type": "varint" + }, + { + "name": "rotation", + "type": "vec2f" } ] ], - "packet_block_place": [ + "packet_vehicle_move": [ "container", [ { - "name": "hand", - "type": "varint" - }, - { - "name": "location", - "type": "position" + "name": "x", + "type": "f64" }, { - "name": "direction", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "cursorX", - "type": "f32" + "name": "z", + "type": "f64" }, { - "name": "cursorY", + "name": "yaw", "type": "f32" }, { - "name": "cursorZ", + "name": "pitch", "type": "f32" - }, - { - "name": "insideBlock", - "type": "bool" - }, - { - "name": "worldBorderHit", - "type": "bool" - }, - { - "name": "sequence", - "type": "varint" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "sequence", + "name": "stateId", "type": "varint" }, { - "name": "rotation", - "type": "vec2f" - } - ] - ], - "packet": [ - "container", - [ + "name": "slot", + "type": "i16" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "select_bundle_item", - "0x03": "set_difficulty", - "0x04": "message_acknowledgement", - "0x05": "chat_command", - "0x06": "chat_command_signed", - "0x07": "chat_message", - "0x08": "chat_session_update", - "0x09": "chunk_batch_received", - "0x0a": "client_command", - "0x0b": "tick_end", - "0x0c": "settings", - "0x0d": "tab_complete", - "0x0e": "configuration_acknowledged", - "0x0f": "enchant_item", - "0x10": "window_click", - "0x11": "close_window", - "0x12": "set_slot_state", - "0x13": "cookie_response", - "0x14": "custom_payload", - "0x15": "debug_sample_subscription", - "0x16": "edit_book", - "0x17": "query_entity_nbt", - "0x18": "use_entity", - "0x19": "generate_structure", - "0x1a": "keep_alive", - "0x1b": "lock_difficulty", - "0x1c": "position", - "0x1d": "position_look", - "0x1e": "look", - "0x1f": "flying", - "0x20": "vehicle_move", - "0x21": "steer_boat", - "0x22": "pick_item", - "0x23": "ping_request", - "0x24": "craft_recipe_request", - "0x25": "abilities", - "0x26": "block_dig", - "0x27": "entity_action", - "0x28": "player_input", - "0x29": "pong", - "0x2a": "recipe_book", - "0x2b": "displayed_recipe", - "0x2c": "name_item", - "0x2d": "resource_pack_receive", - "0x2e": "advancement_tab", - "0x2f": "select_trade", - "0x30": "set_beacon_effect", - "0x31": "held_item_slot", - "0x32": "update_command_block", - "0x33": "update_command_block_minecart", - "0x34": "set_creative_slot", - "0x35": "update_jigsaw_block", - "0x36": "update_structure_block", - "0x37": "update_sign", - "0x38": "arm_animation", - "0x39": "spectate", - "0x3a": "block_place", - "0x3b": "use_item" - } - } - ] + "name": "mouseButton", + "type": "i8" }, { - "name": "params", + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "select_bundle_item": "packet_select_bundle_item", - "set_difficulty": "packet_set_difficulty", - "message_acknowledgement": "packet_message_acknowledgement", - "chat_command": "packet_chat_command", - "chat_command_signed": "packet_chat_command_signed", - "chat_message": "packet_chat_message", - "chat_session_update": "packet_chat_session_update", - "chunk_batch_received": "packet_chunk_batch_received", - "client_command": "packet_client_command", - "tick_end": "packet_tick_end", - "settings": "packet_common_settings", - "tab_complete": "packet_tab_complete", - "configuration_acknowledged": "packet_configuration_acknowledged", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "set_slot_state": "packet_set_slot_state", - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "debug_sample_subscription": "packet_debug_sample_subscription", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "pick_item": "packet_pick_item", - "ping_request": "packet_ping_request", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "player_input": "packet_player_input", - "pong": "packet_pong", - "recipe_book": "packet_recipe_book", - "displayed_recipe": "packet_displayed_recipe", - "name_item": "packet_name_item", - "resource_pack_receive": "packet_resource_pack_receive", - "advancement_tab": "packet_advancement_tab", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "held_item_slot": "packet_held_item_slot", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_structure_block": "packet_update_structure_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" + } + ] + ] } ] + }, + { + "name": "cursorItem", + "type": "Slot" } ] ] diff --git a/data/pc/1.21.4/protocol.json b/data/pc/1.21.4/protocol.json index e302e9772..92f3f0cf5 100644 --- a/data/pc/1.21.4/protocol.json +++ b/data/pc/1.21.4/protocol.json @@ -1,130 +1,156 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "anonymousNbt": "native", - "anonOptionalNbt": "native", - "registryEntryHolder": "native", - "registryEntryHolderSet": "native", - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec2f": [ + "ArmorTrimMaterial": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetName", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "ingredientId", + "type": "varint" + }, + { + "name": "overrideArmorAssets", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + }, + { + "name": "description", + "type": "anonymousNbt" } ] ], - "vec3f": [ + "ArmorTrimPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "templateItemId", + "type": "varint" }, { - "name": "z", - "type": "f32" + "name": "description", + "type": "anonymousNbt" + }, + { + "name": "decal", + "type": "bool" } ] ], - "vec4f": [ + "BannerPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" - }, + "name": "translationKey", + "type": "string" + } + ] + ], + "BannerPatternLayer": [ + "container", + [ { - "name": "z", - "type": "f32" + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "BannerPattern" + } + } + ] }, { - "name": "w", - "type": "f32" + "name": "colorId", + "type": "varint" } ] ], - "vec3f64": [ + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "ContainerID": "varint", + "EntityMetadataPaintingVariant": [ "container", [ { - "name": "x", - "type": "f64" + "name": "width", + "type": "i32" }, { - "name": "y", - "type": "f64" + "name": "height", + "type": "i32" }, { - "name": "z", - "type": "f64" + "name": "assetId", + "type": "string" + }, + { + "name": "title", + "type": [ + "option", + "anonymousNbt" + ] + }, + { + "name": "author", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "vec3i16": [ + "EntityMetadataWolfVariant": [ "container", [ { - "name": "x", - "type": "i16" + "name": "wildTexture", + "type": "string" }, { - "name": "y", - "type": "i16" + "name": "tameTexture", + "type": "string" }, { - "name": "z", - "type": "i16" + "name": "angryTexture", + "type": "string" + }, + { + "name": "biome", + "type": "IDSet" } ] ], @@ -141,2762 +167,616 @@ } } ], - "ContainerID": "varint", - "SlotComponentType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "custom_data", - "1": "max_stack_size", - "2": "max_damage", - "3": "damage", - "4": "unbreakable", - "5": "custom_name", - "6": "item_name", - "7": "item_model", - "8": "lore", - "9": "rarity", - "10": "enchantments", - "11": "can_place_on", - "12": "can_break", - "13": "attribute_modifiers", - "14": "custom_model_data", - "15": "hide_additional_tooltip", - "16": "hide_tooltip", - "17": "repair_cost", - "18": "creative_slot_lock", - "19": "enchantment_glint_override", - "20": "intangible_projectile", - "21": "food", - "22": "consumable", - "23": "use_remainder", - "24": "use_cooldown", - "25": "damage_resistant", - "26": "tool", - "27": "enchantable", - "28": "equippable", - "29": "repairable", - "30": "glider", - "31": "tooltip_style", - "32": "death_protection", - "33": "stored_enchantments", - "34": "dyed_color", - "35": "map_color", - "36": "map_id", - "37": "map_decorations", - "38": "map_post_processing", - "39": "charged_projectiles", - "40": "bundle_contents", - "41": "potion_contents", - "42": "suspicious_stew_effects", - "43": "writable_book_content", - "44": "written_book_content", - "45": "trim", - "46": "debug_stick_state", - "47": "entity_data", - "48": "bucket_entity_data", - "49": "block_entity_data", - "50": "instrument", - "51": "ominous_bottle_amplifier", - "52": "jukebox_playable", - "53": "recipes", - "54": "lodestone_tracker", - "55": "firework_explosion", - "56": "fireworks", - "57": "profile", - "58": "note_block_sound", - "59": "banner_patterns", - "60": "base_color", - "61": "pot_decorations", - "62": "container", - "63": "block_state", - "64": "bees", - "65": "lock", - "66": "container_loot" - } - } + "InstrumentData": [ + "container", + [ + { + "name": "soundEvent", + "type": "ItemSoundHolder" + }, + { + "name": "useDuration", + "type": "f32" + }, + { + "name": "range", + "type": "f32" + }, + { + "name": "description", + "type": "anonymousNbt" + } + ] ], - "SlotComponent": [ + "ItemBlockPredicate": [ "container", [ { - "name": "type", - "type": "SlotComponentType" + "name": "blockSet", + "type": [ + "option", + [ + "registryEntryHolderSet", + { + "base": { + "name": "name", + "type": "string" + }, + "otherwise": { + "name": "blockIds", + "type": "varint" + } + } + ] + ] }, { - "name": "data", + "name": "properties", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": "ItemBlockProperty" + } + ] + ] + }, + { + "name": "nbt", + "type": "anonOptionalNbt" + } + ] + ], + "ItemBlockProperty": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "isExactMatch", + "type": "bool" + }, + { + "name": "value", "type": [ "switch", { - "compareTo": "type", + "compareTo": "isExactMatch", "fields": { - "custom_data": "anonymousNbt", - "max_stack_size": "varint", - "max_damage": "varint", - "damage": "varint", - "unbreakable": "bool", - "custom_name": "anonymousNbt", - "item_name": "anonymousNbt", - "item_model": "string", - "lore": [ - "array", - { - "countType": "varint", - "type": "anonOptionalNbt" - } - ], - "rarity": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "common", - "1": "uncommon", - "2": "rare", - "3": "epic" - } - } - ], - "enchantments": [ + "false": [ "container", [ { - "name": "enchantments", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] - } - ] + "name": "minValue", + "type": "string" }, { - "name": "showTooltip", - "type": "bool" + "name": "maxValue", + "type": "string" } ] ], - "can_place_on": [ + "true": [ "container", [ { - "name": "predicates", + "name": "exactValue", + "type": "string" + } + ] + ] + } + } + ] + } + ] + ], + "ItemBookPage": [ + "container", + [ + { + "name": "content", + "type": "string" + }, + { + "name": "filteredContent", + "type": [ + "option", + "string" + ] + } + ] + ], + "ItemConsumeEffect": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "apply_effects", + "1": "remove_effects", + "2": "clear_all_effects", + "3": "teleport_randomly", + "4": "play_sound" + }, + "type": "varint" + } + ] + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "apply_effects": [ + "container", + [ + { + "name": "effects", "type": [ "array", { "countType": "varint", - "type": "ItemBlockPredicate" + "type": "ItemPotionEffect" } ] }, { - "name": "showTooltip", - "type": "bool" + "name": "probability", + "type": "f32" } ] ], - "can_break": [ + "clear_all_effects": "void", + "play_sound": [ "container", [ { - "name": "predicates", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBlockPredicate" - } - ] - }, + "name": "sound", + "type": "ItemSoundHolder" + } + ] + ], + "remove_effects": [ + "container", + [ { - "name": "showTooltip", - "type": "bool" + "name": "effects", + "type": "IDSet" } ] ], - "attribute_modifiers": [ + "teleport_randomly": [ "container", [ { - "name": "attributes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "typeId", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "operation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "add", - "1": "multiply_base", - "2": "multiply_total" - } - } - ] - }, - { - "name": "slot", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "any", - "1": "main_hand", - "2": "off_hand", - "3": "hand", - "4": "feet", - "5": "legs", - "6": "chest", - "7": "head", - "8": "armor", - "9": "body" - } - } - ] - } - ] - ] - } - ] - }, - { - "name": "showTooltip", - "type": "bool" - } - ] - ], - "custom_model_data": [ - "container", - [ - { - "name": "floats", - "type": [ - "array", - { - "countType": "varint", - "type": "f32" - } - ] - }, - { - "name": "flags", - "type": [ - "array", - { - "countType": "varint", - "type": "bool" - } - ] - }, - { - "name": "strings", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "colors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - } - ] - ], - "hide_additional_tooltip": "void", - "hide_tooltip": "void", - "repair_cost": "varint", - "creative_slot_lock": "void", - "enchantment_glint_override": "bool", - "intangible_projectile": "anonymousNbt", - "food": [ - "container", - [ - { - "name": "nutrition", - "type": "varint" - }, - { - "name": "saturationModifier", - "type": "f32" - }, - { - "name": "canAlwaysEat", - "type": "bool" - } - ] - ], - "consumable": [ - "container", - [ - { - "name": "consume_seconds", - "type": "f32" - }, - { - "name": "animation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "none", - "1": "eat", - "2": "drink", - "3": "block", - "4": "bow", - "5": "spear", - "6": "crossbow", - "7": "spyglass", - "8": "toot_horn", - "9": "brush" - } - } - ] - }, - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "makes_particles", - "type": "bool" - }, - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemConsumeEffect" - } - ] - } - ] - ], - "use_remainder": "Slot", - "use_cooldown": [ - "container", - [ - { - "name": "seconds", - "type": "f32" - }, - { - "name": "cooldownGroup", - "type": [ - "option", - "string" - ] - } - ] - ], - "damage_resistant": "string", - "tool": [ - "container", - [ - { - "name": "rules", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "blocks", - "type": "IDSet" - }, - { - "name": "speed", - "type": [ - "option", - "f32" - ] - }, - { - "name": "correctDropForBlocks", - "type": [ - "option", - "bool" - ] - } - ] - ] - } - ] - }, - { - "name": "defaultMiningSpeed", + "name": "diameter", "type": "f32" - }, - { - "name": "damagePerBlock", - "type": "varint" } ] - ], - "enchantable": "varint", - "equippable": [ - "container", - [ - { - "name": "slot", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "main_hand", - "1": "off_hand", - "2": "feet", - "3": "legs", - "4": "chest", - "5": "head", - "6": "body" - } - } - ] - }, - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "model", - "type": [ - "option", - "string" - ] - }, - { - "name": "cameraOverlay", - "type": [ - "option", - "string" - ] - }, - { - "name": "allowedEntities", - "type": [ - "option", - "IDSet" - ] - }, - { - "name": "dispensable", - "type": "bool" - }, - { - "name": "swappable", - "type": "bool" - }, - { - "name": "damageable", - "type": "bool" - } - ] - ], - "repairable": [ - "container", - [ - { - "name": "items", - "type": "IDSet" - } - ] - ], - "glider": "void", - "tooltip_style": "string", - "death_protection": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemConsumeEffect" - } - ] - } - ] - ], - "stored_enchantments": [ - "container", - [ - { - "name": "enchantments", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] - } - ] - }, - { - "name": "showInTooltip", - "type": "bool" - } - ] - ], - "dyed_color": [ - "container", - [ - { - "name": "color", - "type": "i32" - }, - { - "name": "showTooltip", - "type": "bool" - } - ] - ], - "map_color": "i32", - "map_id": "varint", - "map_decorations": "anonymousNbt", - "map_post_processing": "varint", - "charged_projectiles": [ - "container", - [ - { - "name": "projectiles", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "bundle_contents": [ - "container", - [ - { - "name": "contents", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "potion_contents": [ - "container", - [ - { - "name": "potionId", - "type": [ - "option", - "varint" - ] - }, - { - "name": "customColor", - "type": [ - "option", - "i32" - ] - }, - { - "name": "customEffects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemPotionEffect" - } - ] - }, - { - "name": "customName", - "type": [ - "option", - "string" - ] - } - ] - ], - "suspicious_stew_effects": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "effect", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "writable_book_content": [ - "container", - [ - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBookPage" - } - ] - } - ] - ], - "written_book_content": [ - "container", - [ - { - "name": "rawTitle", - "type": "string" - }, - { - "name": "filteredTitle", - "type": [ - "option", - "string" - ] - }, - { - "name": "author", - "type": "string" - }, - { - "name": "generation", - "type": "varint" - }, - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemWrittenBookPage" - } - ] - }, - { - "name": "resolved", - "type": "bool" - } - ] - ], - "trim": [ - "container", - [ - { - "name": "material", - "type": [ - "registryEntryHolder", - { - "baseName": "materialId", - "otherwise": { - "name": "data", - "type": "ArmorTrimMaterial" - } - } - ] - }, - { - "name": "pattern", - "type": [ - "registryEntryHolder", - { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "ArmorTrimPattern" - } - } - ] - }, - { - "name": "showInTooltip", - "type": "bool" - } - ] - ], - "debug_stick_state": "anonymousNbt", - "entity_data": "anonymousNbt", - "bucket_entity_data": "anonymousNbt", - "block_entity_data": "anonymousNbt", - "instrument": [ - "registryEntryHolder", - { - "baseName": "instrumentId", - "otherwise": { - "name": "data", - "type": "InstrumentData" - } - } - ], - "ominous_bottle_amplifier": "varint", - "jukebox_playable": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "song", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "songId", - "otherwise": { - "name": "data", - "type": "JukeboxSongData" - } - } - ], - "false": "string" - } - } - ] - }, - { - "name": "showInTooltip", - "type": "bool" - } - ] - ], - "recipes": "anonymousNbt", - "lodestone_tracker": [ - "container", - [ - { - "name": "globalPosition", - "type": [ - "option", - [ - "container", - [ - { - "name": "dimension", - "type": "string" - }, - { - "name": "position", - "type": "position" - } - ] - ] - ] - }, - { - "name": "tracked", - "type": "bool" - } - ] - ], - "firework_explosion": "ItemFireworkExplosion", - "fireworks": [ - "container", - [ - { - "name": "flightDuration", - "type": "varint" - }, - { - "name": "explosions", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemFireworkExplosion" - } - ] - } - ] - ], - "profile": [ - "container", - [ - { - "name": "name", - "type": [ - "option", - "string" - ] - }, - { - "name": "uuid", - "type": [ - "option", - "UUID" - ] - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "note_block_sound": "string", - "banner_patterns": [ - "container", - [ - { - "name": "layers", - "type": [ - "array", - { - "countType": "varint", - "type": "BannerPatternLayer" - } - ] - } - ] - ], - "base_color": "varint", - "pot_decorations": [ - "container", - [ - { - "name": "decorations", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "container": [ - "container", - [ - { - "name": "contents", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "block_state": [ - "container", - [ - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] - } - ] - ], - "bees": [ - "container", - [ - { - "name": "bees", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "nbtData", - "type": "anonymousNbt" - }, - { - "name": "ticksInHive", - "type": "varint" - }, - { - "name": "minTicksInHive", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "lock": "anonymousNbt", - "container_loot": "anonymousNbt" - } - } - ] - } - ] - ], - "ItemSoundEvent": [ - "container", - [ - { - "name": "soundName", - "type": "string" - }, - { - "name": "fixedRange", - "type": [ - "option", - "f32" - ] - } - ] - ], - "ItemSoundHolder": [ - "registryEntryHolder", - { - "baseName": "soundId", - "otherwise": { - "name": "data", - "type": "ItemSoundEvent" - } - } - ], - "ItemFireworkExplosion": [ - "container", - [ - { - "name": "shape", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "small_ball", - "1": "large_ball", - "2": "star", - "3": "creeper", - "4": "burst" - } - } - ] - }, - { - "name": "colors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "fadeColors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "hasTrail", - "type": "bool" - }, - { - "name": "hasTwinkle", - "type": "bool" - } - ] - ], - "ItemEffectDetail": [ - "container", - [ - { - "name": "amplifier", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "ambient", - "type": "bool" - }, - { - "name": "showParticles", - "type": "bool" - }, - { - "name": "showIcon", - "type": "bool" - }, - { - "name": "hiddenEffect", - "type": [ - "option", - "ItemEffectDetail" - ] - } - ] - ], - "ItemPotionEffect": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "details", - "type": "ItemEffectDetail" - } - ] - ], - "ItemBlockProperty": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "isExactMatch", - "type": "bool" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "isExactMatch", - "fields": { - "true": [ - "container", - [ - { - "name": "exactValue", - "type": "string" - } - ] - ], - "false": [ - "container", - [ - { - "name": "minValue", - "type": "string" - }, - { - "name": "maxValue", - "type": "string" - } - ] - ] - } - } - ] - } - ] - ], - "ItemBlockPredicate": [ - "container", - [ - { - "name": "blockSet", - "type": [ - "option", - [ - "registryEntryHolderSet", - { - "base": { - "name": "name", - "type": "string" - }, - "otherwise": { - "name": "blockIds", - "type": "varint" - } - } - ] - ] - }, - { - "name": "properties", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": "ItemBlockProperty" - } - ] - ] - }, - { - "name": "nbt", - "type": "anonOptionalNbt" - } - ] - ], - "ItemBookPage": [ - "container", - [ - { - "name": "content", - "type": "string" - }, - { - "name": "filteredContent", - "type": [ - "option", - "string" - ] - } - ] - ], - "ItemWrittenBookPage": [ - "container", - [ - { - "name": "content", - "type": "anonymousNbt" - }, - { - "name": "filteredContent", - "type": "anonOptionalNbt" - } - ] - ], - "ItemConsumeEffect": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "apply_effects", - "1": "remove_effects", - "2": "clear_all_effects", - "3": "teleport_randomly", - "4": "play_sound" - } - } - ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "apply_effects": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemPotionEffect" - } - ] - }, - { - "name": "probability", - "type": "f32" - } - ] - ], - "remove_effects": [ - "container", - [ - { - "name": "effects", - "type": "IDSet" - } - ] - ], - "clear_all_effects": "void", - "teleport_randomly": [ - "container", - [ - { - "name": "diameter", - "type": "f32" - } - ] - ], - "play_sound": [ - "container", - [ - { - "name": "sound", - "type": "ItemSoundHolder" - } - ] - ] - } - } - ] - } - ] - ], - "ArmorTrimMaterial": [ - "container", - [ - { - "name": "assetName", - "type": "string" - }, - { - "name": "ingredientId", - "type": "varint" - }, - { - "name": "overrideArmorAssets", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] - }, - { - "name": "description", - "type": "anonymousNbt" - } - ] - ], - "ArmorTrimPattern": [ - "container", - [ - { - "name": "assetId", - "type": "string" - }, - { - "name": "templateItemId", - "type": "varint" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "decal", - "type": "bool" - } - ] - ], - "InstrumentData": [ - "container", - [ - { - "name": "soundEvent", - "type": "ItemSoundHolder" - }, - { - "name": "useDuration", - "type": "f32" - }, - { - "name": "range", - "type": "f32" - }, - { - "name": "description", - "type": "anonymousNbt" - } - ] - ], - "JukeboxSongData": [ - "container", - [ - { - "name": "soundEvent", - "type": "ItemSoundHolder" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "lengthInSeconds", - "type": "f32" - }, - { - "name": "comparatorOutput", - "type": "varint" - } - ] - ], - "BannerPattern": [ - "container", - [ - { - "name": "assetId", - "type": "string" - }, - { - "name": "translationKey", - "type": "string" - } - ] - ], - "BannerPatternLayer": [ - "container", - [ - { - "name": "pattern", - "type": [ - "registryEntryHolder", - { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "BannerPattern" - } - } - ] - }, - { - "name": "colorId", - "type": "varint" - } - ] - ], - "Slot": [ - "container", - [ - { - "name": "itemCount", - "type": "varint" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "itemCount", - "fields": { - "0": "void" - }, - "default": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "removedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "SlotComponent" - } - ] - }, - { - "name": "removeComponents", - "type": [ - "array", - { - "count": "removedComponentCount", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] - } - ] - } - ] - ] - } - ] - } - ] - ], - "Particle": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "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": "gust", - "24": "small_gust", - "25": "gust_emitter_large", - "26": "gust_emitter_small", - "27": "sonic_boom", - "28": "falling_dust", - "29": "firework", - "30": "fishing", - "31": "flame", - "32": "infested", - "33": "cherry_leaves", - "34": "pale_oak_leaves", - "35": "sculk_soul", - "36": "sculk_charge", - "37": "sculk_charge_pop", - "38": "soul_fire_flame", - "39": "soul", - "40": "flash", - "41": "happy_villager", - "42": "composter", - "43": "heart", - "44": "instant_effect", - "45": "item", - "46": "vibration", - "47": "trail", - "48": "item_slime", - "49": "item_cobweb", - "50": "item_snowball", - "51": "large_smoke", - "52": "lava", - "53": "mycelium", - "54": "note", - "55": "poof", - "56": "portal", - "57": "rain", - "58": "smoke", - "59": "white_smoke", - "60": "sneeze", - "61": "spit", - "62": "squid_ink", - "63": "sweep_attack", - "64": "totem_of_undying", - "65": "underwater", - "66": "splash", - "67": "witch", - "68": "bubble_pop", - "69": "current_down", - "70": "bubble_column_up", - "71": "nautilus", - "72": "dolphin", - "73": "campfire_cosy_smoke", - "74": "campfire_signal_smoke", - "75": "dripping_honey", - "76": "falling_honey", - "77": "landing_honey", - "78": "falling_nectar", - "79": "falling_spore_blossom", - "80": "ash", - "81": "crimson_spore", - "82": "warped_spore", - "83": "spore_blossom_air", - "84": "dripping_obsidian_tear", - "85": "falling_obsidian_tear", - "86": "landing_obsidian_tear", - "87": "reverse_portal", - "88": "white_ash", - "89": "small_flame", - "90": "snowflake", - "91": "dripping_dripstone_lava", - "92": "falling_dripstone_lava", - "93": "dripping_dripstone_water", - "94": "falling_dripstone_water", - "95": "glow_squid_ink", - "96": "glow", - "97": "wax_on", - "98": "wax_off", - "99": "electric_spark", - "100": "scrape", - "101": "shriek", - "102": "egg_crack", - "103": "dust_plume", - "104": "trial_spawner_detected_player", - "105": "trial_spawner_detected_player_ominous", - "106": "vault_connection", - "107": "dust_pillar", - "108": "ominous_spawning", - "109": "raid_omen", - "110": "trial_omen", - "111": "block_crumble" - } - } - ] - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "block": "varint", - "block_marker": "varint", - "falling_dust": "varint", - "dust_pillar": "varint", - "block_crumble": "varint", - "dust": [ - "container", - [ - { - "name": "red", - "type": "f32" - }, - { - "name": "green", - "type": "f32" - }, - { - "name": "blue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - } - ] - ], - "dust_color_transition": [ - "container", - [ - { - "name": "fromRed", - "type": "f32" - }, - { - "name": "fromGreen", - "type": "f32" - }, - { - "name": "fromBlue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - }, - { - "name": "toRed", - "type": "f32" - }, - { - "name": "toGreen", - "type": "f32" - }, - { - "name": "toBlue", - "type": "f32" - } - ] - ], - "entity_effect": "i32", - "item": "Slot", - "sculk_charge": "f32", - "shriek": "varint", - "vibration": [ - "container", - [ - { - "name": "positionType", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "block", - "1": "entity" - } - } - ] - }, - { - "name": "position", - "type": [ - "switch", - { - "compareTo": "positionType", - "fields": { - "block": "position", - "entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityEyeHeight", - "type": "f32" - } - ] - ] - } - } - ] - }, - { - "name": "ticks", - "type": "varint" - } - ] - ], - "trail": [ - "container", - [ - { - "name": "target", - "type": "vec3f64" - }, - { - "name": "color", - "type": "u8" - } - ] - ] - } - } - ] - } - ] - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "soundSource": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "master", - "1": "music", - "2": "record", - "3": "weather", - "4": "block", - "5": "hostile", - "6": "neutral", - "7": "player", - "8": "ambient", - "9": "voice" - } - } - ], - "packedChunkPos": [ - "container", - [ - { - "name": "z", - "type": "i32" - }, - { - "name": "x", - "type": "i32" - } - ] - ], - "previousMessages": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] - } - ] - ] - } - ], - "entityMetadataEntry": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "byte", - "1": "int", - "2": "long", - "3": "float", - "4": "string", - "5": "component", - "6": "optional_component", - "7": "item_stack", - "8": "boolean", - "9": "rotations", - "10": "block_pos", - "11": "optional_block_pos", - "12": "direction", - "13": "optional_uuid", - "14": "block_state", - "15": "optional_block_state", - "16": "compound_tag", - "17": "particle", - "18": "particles", - "19": "villager_data", - "20": "optional_unsigned_int", - "21": "pose", - "22": "cat_variant", - "23": "wolf_variant", - "24": "frog_variant", - "25": "optional_global_pos", - "26": "painting_variant", - "27": "sniffer_state", - "28": "armadillo_state", - "29": "vector3", - "30": "quaternion" - } - } - ] - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "byte": "i8", - "int": "varint", - "long": "varlong", - "float": "f32", - "string": "string", - "component": "anonymousNbt", - "optional_component": [ - "option", - "anonymousNbt" - ], - "item_stack": "Slot", - "boolean": "bool", - "rotations": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "block_pos": "position", - "optional_block_pos": [ - "option", - "position" - ], - "direction": "varint", - "optional_uuid": [ - "option", - "UUID" - ], - "block_state": "varint", - "optional_block_state": "optvarint", - "compound_tag": "anonymousNbt", - "particle": "Particle", - "particles": [ - "array", - { - "countType": "varint", - "type": "Particle" - } - ], - "villager_data": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "optional_unsigned_int": "optvarint", - "pose": "varint", - "cat_variant": "varint", - "wolf_variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "EntityMetadataWolfVariant" - } - } - ], - "frog_variant": "varint", - "optional_global_pos": [ - "option", - "string" - ], - "painting_variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "EntityMetadataPaintingVariant" - } - } - ], - "sniffer_state": "varint", - "armadillo_state": "varint", - "vector3": "vec3f", - "quaternion": "vec4f" - } - } - ] - } - ] - ], - "EntityMetadataPaintingVariant": [ - "container", - [ - { - "name": "width", - "type": "i32" - }, - { - "name": "height", - "type": "i32" - }, - { - "name": "assetId", - "type": "string" - }, - { - "name": "title", - "type": [ - "option", - "anonymousNbt" - ] - }, - { - "name": "author", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ], - "EntityMetadataWolfVariant": [ - "container", - [ - { - "name": "wildTexture", - "type": "string" - }, - { - "name": "tameTexture", - "type": "string" - }, - { - "name": "angryTexture", - "type": "string" - }, - { - "name": "biome", - "type": "IDSet" - } - ] - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": "entityMetadataEntry" - } - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "chunkBlockEntity": [ - "container", - [ - { - "anon": true, - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "nbtData", - "type": "anonOptionalNbt" - } - ] - ], - "chat_session": [ - "option", - [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "publicKey", - "type": [ - "container", - [ - { - "name": "expireTime", - "type": "i64" - }, - { - "name": "keyBytes", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "keySignature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] - } - ] - ] - ], - "game_profile": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "extraNodeData", - "type": [ - "switch", - { - "compareTo": "flags/command_node_type", - "fields": { - "0": "void", - "1": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] - ], - "2": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "parser", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "brigadier:bool", - "1": "brigadier:float", - "2": "brigadier:double", - "3": "brigadier:integer", - "4": "brigadier:long", - "5": "brigadier:string", - "6": "minecraft:entity", - "7": "minecraft:game_profile", - "8": "minecraft:block_pos", - "9": "minecraft:column_pos", - "10": "minecraft:vec3", - "11": "minecraft:vec2", - "12": "minecraft:block_state", - "13": "minecraft:block_predicate", - "14": "minecraft:item_stack", - "15": "minecraft:item_predicate", - "16": "minecraft:color", - "17": "minecraft:component", - "18": "minecraft:style", - "19": "minecraft:message", - "20": "minecraft:nbt", - "21": "minecraft:nbt_tag", - "22": "minecraft:nbt_path", - "23": "minecraft:objective", - "24": "minecraft:objective_criteria", - "25": "minecraft:operation", - "26": "minecraft:particle", - "27": "minecraft:angle", - "28": "minecraft:rotation", - "29": "minecraft:scoreboard_slot", - "30": "minecraft:score_holder", - "31": "minecraft:swizzle", - "32": "minecraft:team", - "33": "minecraft:item_slot", - "34": "minecraft:item_slots", - "35": "minecraft:resource_location", - "36": "minecraft:function", - "37": "minecraft:entity_anchor", - "38": "minecraft:int_range", - "39": "minecraft:float_range", - "40": "minecraft:dimension", - "41": "minecraft:gamemode", - "42": "minecraft:time", - "43": "minecraft:resource_or_tag", - "44": "minecraft:resource_or_tag_key", - "45": "minecraft:resource", - "46": "minecraft:resource_key", - "47": "minecraft:template_mirror", - "48": "minecraft:template_rotation", - "49": "minecraft:heightmap", - "50": "minecraft:loot_table", - "51": "minecraft:loot_predicate", - "52": "minecraft:loot_modifier", - "53": "minecraft:uuid" - } - } - ] - }, - { - "name": "properties", - "type": [ - "switch", - { - "compareTo": "parser", - "fields": { - "brigadier:bool": "void", - "brigadier:float": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "min", - "type": [ - "switch", - { - "compareTo": "flags/min_present", - "fields": { - "1": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "max", - "type": [ - "switch", - { - "compareTo": "flags/max_present", - "fields": { - "1": "f32" - }, - "default": "void" - } - ] - } - ] - ], - "brigadier:double": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "min", - "type": [ - "switch", - { - "compareTo": "flags/min_present", - "fields": { - "1": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "max", - "type": [ - "switch", - { - "compareTo": "flags/max_present", - "fields": { - "1": "f64" - }, - "default": "void" - } - ] - } - ] - ], - "brigadier:integer": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "min", - "type": [ - "switch", - { - "compareTo": "flags/min_present", - "fields": { - "1": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "max", - "type": [ - "switch", - { - "compareTo": "flags/max_present", - "fields": { - "1": "i32" - }, - "default": "void" - } - ] - } - ] - ], - "brigadier:long": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "min", - "type": [ - "switch", - { - "compareTo": "flags/min_present", - "fields": { - "1": "i64" - }, - "default": "void" - } - ] - }, - { - "name": "max", - "type": [ - "switch", - { - "compareTo": "flags/max_present", - "fields": { - "1": "i64" - }, - "default": "void" - } - ] - } - ] - ], - "brigadier:string": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "SINGLE_WORD", - "1": "QUOTABLE_PHRASE", - "2": "GREEDY_PHRASE" - } - } - ], - "minecraft:entity": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ], - "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", - "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", - "minecraft:message": "void", - "minecraft:nbt": "void", - "minecraft:nbt_path": "void", - "minecraft:objective": "void", - "minecraft:objective_criteria": "void", - "minecraft:operation": "void", - "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:dimension": "void", - "minecraft:gamemode": "void", - "minecraft:time": [ - "container", - [ - { - "name": "min", - "type": "i32" - } - ] - ], - "minecraft:resource_or_tag": [ - "container", - [ - { - "name": "registry", - "type": "string" - } - ] - ], - "minecraft:resource_or_tag_key": [ - "container", - [ - { - "name": "registry", - "type": "string" - } - ] - ], - "minecraft:resource": [ + ] + } + } + ] + } + ] + ], + "ItemEffectDetail": [ + "container", + [ + { + "name": "amplifier", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "ambient", + "type": "bool" + }, + { + "name": "showParticles", + "type": "bool" + }, + { + "name": "showIcon", + "type": "bool" + }, + { + "name": "hiddenEffect", + "type": [ + "option", + "ItemEffectDetail" + ] + } + ] + ], + "ItemFireworkExplosion": [ + "container", + [ + { + "name": "shape", + "type": [ + "mapper", + { + "mappings": { + "0": "small_ball", + "1": "large_ball", + "2": "star", + "3": "creeper", + "4": "burst" + }, + "type": "varint" + } + ] + }, + { + "name": "colors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] + }, + { + "name": "fadeColors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] + }, + { + "name": "hasTrail", + "type": "bool" + }, + { + "name": "hasTwinkle", + "type": "bool" + } + ] + ], + "ItemPotionEffect": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "details", + "type": "ItemEffectDetail" + } + ] + ], + "ItemSoundEvent": [ + "container", + [ + { + "name": "soundName", + "type": "string" + }, + { + "name": "fixedRange", + "type": [ + "option", + "f32" + ] + } + ] + ], + "ItemSoundHolder": [ + "registryEntryHolder", + { + "baseName": "soundId", + "otherwise": { + "name": "data", + "type": "ItemSoundEvent" + } + } + ], + "ItemWrittenBookPage": [ + "container", + [ + { + "name": "content", + "type": "anonymousNbt" + }, + { + "name": "filteredContent", + "type": "anonOptionalNbt" + } + ] + ], + "JukeboxSongData": [ + "container", + [ + { + "name": "soundEvent", + "type": "ItemSoundHolder" + }, + { + "name": "description", + "type": "anonymousNbt" + }, + { + "name": "lengthInSeconds", + "type": "f32" + }, + { + "name": "comparatorOutput", + "type": "varint" + } + ] + ], + "Particle": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "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": "gust", + "24": "small_gust", + "25": "gust_emitter_large", + "26": "gust_emitter_small", + "27": "sonic_boom", + "28": "falling_dust", + "29": "firework", + "30": "fishing", + "31": "flame", + "32": "infested", + "33": "cherry_leaves", + "34": "pale_oak_leaves", + "35": "sculk_soul", + "36": "sculk_charge", + "37": "sculk_charge_pop", + "38": "soul_fire_flame", + "39": "soul", + "40": "flash", + "41": "happy_villager", + "42": "composter", + "43": "heart", + "44": "instant_effect", + "45": "item", + "46": "vibration", + "47": "trail", + "48": "item_slime", + "49": "item_cobweb", + "50": "item_snowball", + "51": "large_smoke", + "52": "lava", + "53": "mycelium", + "54": "note", + "55": "poof", + "56": "portal", + "57": "rain", + "58": "smoke", + "59": "white_smoke", + "60": "sneeze", + "61": "spit", + "62": "squid_ink", + "63": "sweep_attack", + "64": "totem_of_undying", + "65": "underwater", + "66": "splash", + "67": "witch", + "68": "bubble_pop", + "69": "current_down", + "70": "bubble_column_up", + "71": "nautilus", + "72": "dolphin", + "73": "campfire_cosy_smoke", + "74": "campfire_signal_smoke", + "75": "dripping_honey", + "76": "falling_honey", + "77": "landing_honey", + "78": "falling_nectar", + "79": "falling_spore_blossom", + "80": "ash", + "81": "crimson_spore", + "82": "warped_spore", + "83": "spore_blossom_air", + "84": "dripping_obsidian_tear", + "85": "falling_obsidian_tear", + "86": "landing_obsidian_tear", + "87": "reverse_portal", + "88": "white_ash", + "89": "small_flame", + "90": "snowflake", + "91": "dripping_dripstone_lava", + "92": "falling_dripstone_lava", + "93": "dripping_dripstone_water", + "94": "falling_dripstone_water", + "95": "glow_squid_ink", + "96": "glow", + "97": "wax_on", + "98": "wax_off", + "99": "electric_spark", + "100": "scrape", + "101": "shriek", + "102": "egg_crack", + "103": "dust_plume", + "104": "trial_spawner_detected_player", + "105": "trial_spawner_detected_player_ominous", + "106": "vault_connection", + "107": "dust_pillar", + "108": "ominous_spawning", + "109": "raid_omen", + "110": "trial_omen", + "111": "block_crumble" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "block": "varint", + "block_crumble": "varint", + "block_marker": "varint", + "dust": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "dust_color_transition": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "dust_pillar": "varint", + "entity_effect": "i32", + "falling_dust": "varint", + "item": "Slot", + "sculk_charge": "f32", + "shriek": "varint", + "trail": [ + "container", + [ + { + "name": "target", + "type": "vec3f64" + }, + { + "name": "color", + "type": "u8" + } + ] + ], + "vibration": [ + "container", + [ + { + "name": "positionType", + "type": [ + "mapper", + { + "mappings": { + "0": "block", + "1": "entity" + }, + "type": "varint" + } + ] + }, + { + "name": "position", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "block": "position", + "entity": [ "container", [ { - "name": "registry", - "type": "string" - } - ] - ], - "minecraft:resource_key": [ - "container", - [ + "name": "entityId", + "type": "varint" + }, { - "name": "registry", - "type": "string" + "name": "entityEyeHeight", + "type": "f32" } ] - ], - "minecraft:template_mirror": "void", - "minecraft:template_rotation": "void", - "minecraft:heightmap": "void", - "minecraft:uuid": "void" + ] } } ] }, { - "name": "suggestionType", - "type": [ - "switch", - { - "compareTo": "../flags/has_custom_suggestions", - "fields": { - "1": "string" - }, - "default": "void" - } - ] + "name": "ticks", + "type": "varint" } ] ] @@ -2906,1087 +786,2238 @@ } ] ], - "packet_common_settings": [ - "container", - [ - { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" - }, - { - "name": "enableTextFiltering", - "type": "bool" - }, - { - "name": "enableServerListing", - "type": "bool" - }, - { - "name": "particleStatus", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "all", - "1": "decreased", - "2": "minimal" - } - } - ] - } - ] - ], - "packet_common_cookie_request": [ - "container", - [ - { - "name": "cookie", - "type": "string" - } - ] - ], - "packet_common_store_cookie": [ - "container", - [ - { - "name": "key", - "type": "string" + "ServerLinkType": [ + "mapper", + { + "mappings": { + "0": "bug_report", + "1": "community_guidelines", + "2": "support", + "3": "status", + "4": "feedback", + "5": "community", + "6": "website", + "7": "forums", + "8": "news", + "9": "announcements" }, - { - "name": "value", - "type": "ByteArray" - } - ] + "type": "varint" + } ], - "packet_common_transfer": [ + "Slot": [ "container", [ { - "name": "host", - "type": "string" - }, - { - "name": "port", + "name": "itemCount", "type": "varint" - } - ] - ], - "packet_common_cookie_response": [ - "container", - [ - { - "name": "key", - "type": "string" }, { - "name": "value", - "type": [ - "option", - "ByteArray" - ] - } - ] - ], - "packet_common_select_known_packs": [ - "container", - [ - { - "name": "packs", + "anon": true, "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ + "compareTo": "itemCount", + "default": [ "container", [ { - "name": "namespace", - "type": "string" + "name": "itemId", + "type": "varint" }, { - "name": "id", - "type": "string" + "name": "addedComponentCount", + "type": "varint" }, { - "name": "version", - "type": "string" - } - ] - ] - } - ] - } - ] - ], - "packet_common_custom_report_details": [ - "container", - [ - { - "name": "details", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ + "name": "removedComponentCount", + "type": "varint" + }, { - "name": "key", - "type": "string" + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "SlotComponent" + } + ] }, { - "name": "value", - "type": "string" + "name": "removeComponents", + "type": [ + "array", + { + "count": "removedComponentCount", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] } - ] - ] - } - ] - } - ] - ], - "packet_common_remove_resource_pack": [ - "container", - [ - { - "name": "uuid", - "type": [ - "option", - "UUID" + ] + ], + "fields": { + "0": "void" + } + } ] } ] ], - "packet_common_add_resource_pack": [ + "SlotComponent": [ "container", [ { - "name": "uuid", - "type": "UUID" - }, - { - "name": "url", - "type": "string" - }, - { - "name": "hash", - "type": "string" - }, - { - "name": "forced", - "type": "bool" + "name": "type", + "type": "SlotComponentType" }, { - "name": "promptMessage", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ], - "ServerLinkType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "bug_report", - "1": "community_guidelines", - "2": "support", - "3": "status", - "4": "feedback", - "5": "community", - "6": "website", - "7": "forums", - "8": "news", - "9": "announcements" - } - } - ], - "packet_common_server_links": [ - "container", - [ - { - "name": "links", + "name": "data", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "hasKnownType", - "type": "bool" - }, - { - "name": "knownType", - "type": [ - "switch", - { - "compareTo": "hasKnownType", - "fields": { - "true": "ServerLinkType" + "compareTo": "type", + "fields": { + "attribute_modifiers": [ + "container", + [ + { + "name": "attributes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "typeId", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "operation", + "type": [ + "mapper", + { + "mappings": { + "0": "add", + "1": "multiply_base", + "2": "multiply_total" + }, + "type": "varint" + } + ] + }, + { + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "any", + "1": "main_hand", + "2": "off_hand", + "3": "hand", + "4": "feet", + "5": "legs", + "6": "chest", + "7": "head", + "8": "armor", + "9": "body" + }, + "type": "varint" + } + ] + } + ] + ] + } + ] + }, + { + "name": "showTooltip", + "type": "bool" + } + ] + ], + "banner_patterns": [ + "container", + [ + { + "name": "layers", + "type": [ + "array", + { + "countType": "varint", + "type": "BannerPatternLayer" + } + ] + } + ] + ], + "base_color": "varint", + "bees": [ + "container", + [ + { + "name": "bees", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "nbtData", + "type": "anonymousNbt" + }, + { + "name": "ticksInHive", + "type": "varint" + }, + { + "name": "minTicksInHive", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "block_entity_data": "anonymousNbt", + "block_state": [ + "container", + [ + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + } + ] + ], + "bucket_entity_data": "anonymousNbt", + "bundle_contents": [ + "container", + [ + { + "name": "contents", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "can_break": [ + "container", + [ + { + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" + } + ] + }, + { + "name": "showTooltip", + "type": "bool" + } + ] + ], + "can_place_on": [ + "container", + [ + { + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" } - } - ] - }, - { - "name": "unknownType", - "type": [ - "switch", - { - "compareTo": "hasKnownType", - "fields": { - "false": "anonymousNbt" + ] + }, + { + "name": "showTooltip", + "type": "bool" + } + ] + ], + "charged_projectiles": [ + "container", + [ + { + "name": "projectiles", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "consumable": [ + "container", + [ + { + "name": "consume_seconds", + "type": "f32" + }, + { + "name": "animation", + "type": [ + "mapper", + { + "mappings": { + "0": "none", + "1": "eat", + "2": "drink", + "3": "block", + "4": "bow", + "5": "spear", + "6": "crossbow", + "7": "spyglass", + "8": "toot_horn", + "9": "brush" + }, + "type": "varint" + } + ] + }, + { + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "makes_particles", + "type": "bool" + }, + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemConsumeEffect" + } + ] + } + ] + ], + "container": [ + "container", + [ + { + "name": "contents", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "container_loot": "anonymousNbt", + "creative_slot_lock": "void", + "custom_data": "anonymousNbt", + "custom_model_data": [ + "container", + [ + { + "name": "floats", + "type": [ + "array", + { + "countType": "varint", + "type": "f32" + } + ] + }, + { + "name": "flags", + "type": [ + "array", + { + "countType": "varint", + "type": "bool" + } + ] + }, + { + "name": "strings", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "colors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] + } + ] + ], + "custom_name": "anonymousNbt", + "damage": "varint", + "damage_resistant": "string", + "death_protection": [ + "container", + [ + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemConsumeEffect" + } + ] + } + ] + ], + "debug_stick_state": "anonymousNbt", + "dyed_color": [ + "container", + [ + { + "name": "color", + "type": "i32" + }, + { + "name": "showTooltip", + "type": "bool" + } + ] + ], + "enchantable": "varint", + "enchantment_glint_override": "bool", + "enchantments": [ + "container", + [ + { + "name": "enchantments", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] + } + ] + }, + { + "name": "showTooltip", + "type": "bool" + } + ] + ], + "entity_data": "anonymousNbt", + "equippable": [ + "container", + [ + { + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "main_hand", + "1": "off_hand", + "2": "feet", + "3": "legs", + "4": "chest", + "5": "head", + "6": "body" + }, + "type": "varint" + } + ] + }, + { + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "model", + "type": [ + "option", + "string" + ] + }, + { + "name": "cameraOverlay", + "type": [ + "option", + "string" + ] + }, + { + "name": "allowedEntities", + "type": [ + "option", + "IDSet" + ] + }, + { + "name": "dispensable", + "type": "bool" + }, + { + "name": "swappable", + "type": "bool" + }, + { + "name": "damageable", + "type": "bool" + } + ] + ], + "firework_explosion": "ItemFireworkExplosion", + "fireworks": [ + "container", + [ + { + "name": "flightDuration", + "type": "varint" + }, + { + "name": "explosions", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemFireworkExplosion" } - } - ] - }, + ] + } + ] + ], + "food": [ + "container", + [ + { + "name": "nutrition", + "type": "varint" + }, + { + "name": "saturationModifier", + "type": "f32" + }, + { + "name": "canAlwaysEat", + "type": "bool" + } + ] + ], + "glider": "void", + "hide_additional_tooltip": "void", + "hide_tooltip": "void", + "instrument": [ + "registryEntryHolder", { - "name": "link", - "type": "string" - } - ] - ] - } - ] - } - ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": {} - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } - } - ] - } - ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "baseName": "instrumentId", + "otherwise": { + "name": "data", + "type": "InstrumentData" + } } - } - ] - } - ] - ] - } - } - }, - "login": { - "toClient": { - "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_encryption_begin": [ - "container", - [ - { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "verifyToken", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "shouldAuthenticate", - "type": "bool" - } - ] - ], - "packet_success": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "username", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" + ], + "intangible_projectile": "anonymousNbt", + "item_model": "string", + "item_name": "anonymousNbt", + "jukebox_playable": [ + "container", + [ + { + "name": "hasHolder", + "type": "bool" + }, + { + "name": "song", + "type": [ + "switch", + { + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "songId", + "otherwise": { + "name": "data", + "type": "JukeboxSongData" + } + } + ] + } + } + ] + }, + { + "name": "showInTooltip", + "type": "bool" + } + ] + ], + "lock": "anonymousNbt", + "lodestone_tracker": [ + "container", + [ + { + "name": "globalPosition", + "type": [ + "option", + [ + "container", + [ + { + "name": "dimension", + "type": "string" + }, + { + "name": "position", + "type": "position" + } + ] ] - } - ] + ] + }, + { + "name": "tracked", + "type": "bool" + } + ] + ], + "lore": [ + "array", + { + "countType": "varint", + "type": "anonOptionalNbt" + } + ], + "map_color": "i32", + "map_decorations": "anonymousNbt", + "map_id": "varint", + "map_post_processing": "varint", + "max_damage": "varint", + "max_stack_size": "varint", + "note_block_sound": "string", + "ominous_bottle_amplifier": "varint", + "pot_decorations": [ + "container", + [ + { + "name": "decorations", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "potion_contents": [ + "container", + [ + { + "name": "potionId", + "type": [ + "option", + "varint" + ] + }, + { + "name": "customColor", + "type": [ + "option", + "i32" + ] + }, + { + "name": "customEffects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemPotionEffect" + } + ] + }, + { + "name": "customName", + "type": [ + "option", + "string" + ] + } + ] + ], + "profile": [ + "container", + [ + { + "name": "name", + "type": [ + "option", + "string" + ] + }, + { + "name": "uuid", + "type": [ + "option", + "UUID" + ] + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + } ] - } - ] - } - ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], - "packet_login_plugin_request": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request", - "0x05": "cookie_request" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "disconnect": "packet_disconnect", - "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request", - "cookie_request": "packet_common_cookie_request" + ], + "rarity": [ + "mapper", + { + "mappings": { + "0": "common", + "1": "uncommon", + "2": "rare", + "3": "epic" + }, + "type": "varint" } - } - ] + ], + "recipes": "anonymousNbt", + "repair_cost": "varint", + "repairable": [ + "container", + [ + { + "name": "items", + "type": "IDSet" + } + ] + ], + "stored_enchantments": [ + "container", + [ + { + "name": "enchantments", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] + } + ] + }, + { + "name": "showInTooltip", + "type": "bool" + } + ] + ], + "suspicious_stew_effects": [ + "container", + [ + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "effect", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "tool": [ + "container", + [ + { + "name": "rules", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "blocks", + "type": "IDSet" + }, + { + "name": "speed", + "type": [ + "option", + "f32" + ] + }, + { + "name": "correctDropForBlocks", + "type": [ + "option", + "bool" + ] + } + ] + ] + } + ] + }, + { + "name": "defaultMiningSpeed", + "type": "f32" + }, + { + "name": "damagePerBlock", + "type": "varint" + } + ] + ], + "tooltip_style": "string", + "trim": [ + "container", + [ + { + "name": "material", + "type": [ + "registryEntryHolder", + { + "baseName": "materialId", + "otherwise": { + "name": "data", + "type": "ArmorTrimMaterial" + } + } + ] + }, + { + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "ArmorTrimPattern" + } + } + ] + }, + { + "name": "showInTooltip", + "type": "bool" + } + ] + ], + "unbreakable": "bool", + "use_cooldown": [ + "container", + [ + { + "name": "seconds", + "type": "f32" + }, + { + "name": "cooldownGroup", + "type": [ + "option", + "string" + ] + } + ] + ], + "use_remainder": "Slot", + "writable_book_content": [ + "container", + [ + { + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBookPage" + } + ] + } + ] + ], + "written_book_content": [ + "container", + [ + { + "name": "rawTitle", + "type": "string" + }, + { + "name": "filteredTitle", + "type": [ + "option", + "string" + ] + }, + { + "name": "author", + "type": "string" + }, + { + "name": "generation", + "type": "varint" + }, + { + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemWrittenBookPage" + } + ] + }, + { + "name": "resolved", + "type": "bool" + } + ] + ] + } } ] - ] + } + ] + ], + "SlotComponentType": [ + "mapper", + { + "mappings": { + "0": "custom_data", + "1": "max_stack_size", + "2": "max_damage", + "3": "damage", + "4": "unbreakable", + "5": "custom_name", + "6": "item_name", + "7": "item_model", + "8": "lore", + "9": "rarity", + "10": "enchantments", + "11": "can_place_on", + "12": "can_break", + "13": "attribute_modifiers", + "14": "custom_model_data", + "15": "hide_additional_tooltip", + "16": "hide_tooltip", + "17": "repair_cost", + "18": "creative_slot_lock", + "19": "enchantment_glint_override", + "20": "intangible_projectile", + "21": "food", + "22": "consumable", + "23": "use_remainder", + "24": "use_cooldown", + "25": "damage_resistant", + "26": "tool", + "27": "enchantable", + "28": "equippable", + "29": "repairable", + "30": "glider", + "31": "tooltip_style", + "32": "death_protection", + "33": "stored_enchantments", + "34": "dyed_color", + "35": "map_color", + "36": "map_id", + "37": "map_decorations", + "38": "map_post_processing", + "39": "charged_projectiles", + "40": "bundle_contents", + "41": "potion_contents", + "42": "suspicious_stew_effects", + "43": "writable_book_content", + "44": "written_book_content", + "45": "trim", + "46": "debug_stick_state", + "47": "entity_data", + "48": "bucket_entity_data", + "49": "block_entity_data", + "50": "instrument", + "51": "ominous_bottle_amplifier", + "52": "jukebox_playable", + "53": "recipes", + "54": "lodestone_tracker", + "55": "firework_explosion", + "56": "fireworks", + "57": "profile", + "58": "note_block_sound", + "59": "banner_patterns", + "60": "base_color", + "61": "pot_decorations", + "62": "container", + "63": "block_state", + "64": "bees", + "65": "lock", + "66": "container_loot" + }, + "type": "varint" } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - }, - { - "name": "playerUUID", - "type": "UUID" - } - ] - ], - "packet_encryption_begin": [ - "container", - [ - { - "name": "sharedSecret", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "verifyToken", - "type": [ - "buffer", + ], + "UUID": "native", + "anonOptionalNbt": "native", + "anonymousNbt": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "chat_session": [ + "option", + [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "publicKey", + "type": [ + "container", + [ { - "countType": "varint" - } - ] - } - ] - ], - "packet_login_plugin_response": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "data", - "type": [ - "option", - "restBuffer" - ] - } - ] - ], - "packet_login_acknowledged": [ - "container", - [] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", + "name": "expireTime", + "type": "i64" + }, { - "type": "varint", - "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response", - "0x03": "login_acknowledged", - "0x04": "cookie_response" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", + "name": "keyBytes", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, { - "compareTo": "name", - "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response", - "login_acknowledged": "packet_login_acknowledged", - "cookie_response": "packet_common_cookie_response" - } + "name": "keySignature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] - } - ] + ] + } ] - } - } - }, - "configuration": { - "toClient": { - "types": { - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } + ] + ], + "chunkBlockEntity": [ + "container", + [ + { + "anon": true, + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 + } + ] ] - ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" + } + ] + ], + "command_node": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 3 + }, + { + "name": "has_custom_suggestions", + "signed": false, + "size": 1 + }, + { + "name": "has_redirect_node", + "signed": false, + "size": 1 + }, + { + "name": "has_command", + "signed": false, + "size": 1 + }, + { + "name": "command_node_type", + "signed": false, + "size": 2 + } + ] ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ + }, + { + "name": "children", + "type": [ + "array", { - "name": "keepAliveId", - "type": "i64" + "countType": "varint", + "type": "varint" } ] - ], - "packet_ping": [ - "container", - [ + }, + { + "name": "redirectNode", + "type": [ + "switch", { - "name": "id", - "type": "i32" + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } } ] - ], - "packet_reset_chat": [ - "container", - [] - ], - "packet_registry_data": [ - "container", - [ - { - "name": "id", - "type": "string" - }, + }, + { + "name": "extraNodeData", + "type": [ + "switch", { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "option", - "anonymousNbt" - ] - } - ] + "compareTo": "flags/command_node_type", + "fields": { + "0": "void", + "1": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "2": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "parser", + "type": [ + "mapper", + { + "mappings": { + "0": "brigadier:bool", + "1": "brigadier:float", + "2": "brigadier:double", + "3": "brigadier:integer", + "4": "brigadier:long", + "5": "brigadier:string", + "6": "minecraft:entity", + "7": "minecraft:game_profile", + "8": "minecraft:block_pos", + "9": "minecraft:column_pos", + "10": "minecraft:vec3", + "11": "minecraft:vec2", + "12": "minecraft:block_state", + "13": "minecraft:block_predicate", + "14": "minecraft:item_stack", + "15": "minecraft:item_predicate", + "16": "minecraft:color", + "17": "minecraft:component", + "18": "minecraft:style", + "19": "minecraft:message", + "20": "minecraft:nbt", + "21": "minecraft:nbt_tag", + "22": "minecraft:nbt_path", + "23": "minecraft:objective", + "24": "minecraft:objective_criteria", + "25": "minecraft:operation", + "26": "minecraft:particle", + "27": "minecraft:angle", + "28": "minecraft:rotation", + "29": "minecraft:scoreboard_slot", + "30": "minecraft:score_holder", + "31": "minecraft:swizzle", + "32": "minecraft:team", + "33": "minecraft:item_slot", + "34": "minecraft:item_slots", + "35": "minecraft:resource_location", + "36": "minecraft:function", + "37": "minecraft:entity_anchor", + "38": "minecraft:int_range", + "39": "minecraft:float_range", + "40": "minecraft:dimension", + "41": "minecraft:gamemode", + "42": "minecraft:time", + "43": "minecraft:resource_or_tag", + "44": "minecraft:resource_or_tag_key", + "45": "minecraft:resource", + "46": "minecraft:resource_key", + "47": "minecraft:template_mirror", + "48": "minecraft:template_rotation", + "49": "minecraft:heightmap", + "50": "minecraft:loot_table", + "51": "minecraft:loot_predicate", + "52": "minecraft:loot_modifier", + "53": "minecraft:uuid" + }, + "type": "varint" + } + ] + }, + { + "name": "properties", + "type": [ + "switch", + { + "compareTo": "parser", + "fields": { + "brigadier:bool": "void", + "brigadier:double": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "max_present", + "signed": false, + "size": 1 + }, + { + "name": "min_present", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "default": "void", + "fields": { + "1": "f64" + } + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "default": "void", + "fields": { + "1": "f64" + } + } + ] + } + ] + ], + "brigadier:float": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "max_present", + "signed": false, + "size": 1 + }, + { + "name": "min_present", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "default": "void", + "fields": { + "1": "f32" + } + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "default": "void", + "fields": { + "1": "f32" + } + } + ] + } + ] + ], + "brigadier:integer": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "max_present", + "signed": false, + "size": 1 + }, + { + "name": "min_present", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "default": "void", + "fields": { + "1": "i32" + } + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "default": "void", + "fields": { + "1": "i32" + } + } + ] + } + ] + ], + "brigadier:long": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "max_present", + "signed": false, + "size": 1 + }, + { + "name": "min_present", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "default": "void", + "fields": { + "1": "i64" + } + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "default": "void", + "fields": { + "1": "i64" + } + } + ] + } + ] + ], + "brigadier:string": [ + "mapper", + { + "mappings": { + "0": "SINGLE_WORD", + "1": "QUOTABLE_PHRASE", + "2": "GREEDY_PHRASE" + }, + "type": "varint" + } + ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", + "minecraft:entity": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "onlyAllowPlayers", + "signed": false, + "size": 1 + }, + { + "name": "onlyAllowEntities", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:entity_anchor": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", + "minecraft:game_profile": "void", + "minecraft:gamemode": "void", + "minecraft:heightmap": "void", + "minecraft:int_range": "void", + "minecraft:item_predicate": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", + "minecraft:message": "void", + "minecraft:nbt": "void", + "minecraft:nbt_path": "void", + "minecraft:objective": "void", + "minecraft:objective_criteria": "void", + "minecraft:operation": "void", + "minecraft:particle": "void", + "minecraft:resource": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:resource_key": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:resource_or_tag_key": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:template_mirror": "void", + "minecraft:template_rotation": "void", + "minecraft:time": [ + "container", + [ + { + "name": "min", + "type": "i32" + } + ] + ], + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" + } + } + ] + }, + { + "name": "suggestionType", + "type": [ + "switch", + { + "compareTo": "../flags/has_custom_suggestions", + "default": "void", + "fields": { + "1": "string" + } + } + ] + } ] - } - ] + ] + } } ] - ], - "packet_feature_flags": [ - "container", - [ + } + ] + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": "entityMetadataEntry" + } + ], + "entityMetadataEntry": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": [ + "mapper", { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "mappings": { + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "compound_tag", + "17": "particle", + "18": "particles", + "19": "villager_data", + "20": "optional_unsigned_int", + "21": "pose", + "22": "cat_variant", + "23": "wolf_variant", + "24": "frog_variant", + "25": "optional_global_pos", + "26": "painting_variant", + "27": "sniffer_state", + "28": "armadillo_state", + "29": "vector3", + "30": "quaternion" + }, + "type": "varint" } ] - ], - "packet_tags": [ - "container", - [ + }, + { + "name": "value", + "type": [ + "switch", { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] + "compareTo": "type", + "fields": { + "armadillo_state": "varint", + "block_pos": "position", + "block_state": "varint", + "boolean": "bool", + "byte": "i8", + "cat_variant": "varint", + "component": "anonymousNbt", + "compound_tag": "anonymousNbt", + "direction": "varint", + "float": "f32", + "frog_variant": "varint", + "int": "varint", + "item_stack": "Slot", + "long": "varlong", + "optional_block_pos": [ + "option", + "position" + ], + "optional_block_state": "optvarint", + "optional_component": [ + "option", + "anonymousNbt" + ], + "optional_global_pos": [ + "option", + "string" + ], + "optional_unsigned_int": "optvarint", + "optional_uuid": [ + "option", + "UUID" + ], + "painting_variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "EntityMetadataPaintingVariant" + } + } + ], + "particle": "Particle", + "particles": [ + "array", + { + "countType": "varint", + "type": "Particle" + } + ], + "pose": "varint", + "quaternion": "vec4f", + "rotations": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } ] - } - ] - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links" + ], + "sniffer_state": "varint", + "string": "string", + "vector3": "vec3f", + "villager_data": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "wolf_variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "EntityMetadataWolfVariant" + } } - } - ] - }, + ] + } + } + ] + } + ] + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "game_profile": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", { - "name": "params", + "countType": "varint", "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "cookie_request": "packet_common_cookie_request", - "custom_payload": "packet_custom_payload", - "disconnect": "packet_disconnect", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "reset_chat": "packet_reset_chat", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "store_cookie": "packet_common_store_cookie", - "transfer": "packet_common_transfer", - "feature_flags": "packet_feature_flags", - "tags": "packet_tags", - "select_known_packs": "packet_common_select_known_packs", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links" + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] } - } + ] ] } ] - ] + } + ] + ], + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "Slot" } - }, - "toServer": { - "types": { - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } + ], + "option": "native", + "optvarint": "varint", + "packedChunkPos": [ + "container", + [ + { + "name": "z", + "type": "i32" + }, + { + "name": "x", + "type": "i32" + } + ] + ], + "packet_common_add_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "url", + "type": "string" + }, + { + "name": "hash", + "type": "string" + }, + { + "name": "forced", + "type": "bool" + }, + { + "name": "promptMessage", + "type": [ + "option", + "anonymousNbt" ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } + } + ] + ], + "packet_common_cookie_request": [ + "container", + [ + { + "name": "cookie", + "type": "string" + } + ] + ], + "packet_common_cookie_response": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "ByteArray" ] - ], - "packet_pong": [ - "container", - [ + } + ] + ], + "packet_common_custom_report_details": [ + "container", + [ + { + "name": "details", + "type": [ + "array", { - "name": "id", - "type": "i32" + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] } ] - ], - "packet_resource_pack_receive": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, + } + ] + ], + "packet_common_remove_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": [ + "option", + "UUID" + ] + } + ] + ], + "packet_common_select_known_packs": [ + "container", + [ + { + "name": "packs", + "type": [ + "array", { - "name": "result", - "type": "varint" + "countType": "varint", + "type": [ + "container", + [ + { + "name": "namespace", + "type": "string" + }, + { + "name": "id", + "type": "string" + }, + { + "name": "version", + "type": "string" + } + ] + ] } ] - ], - "packet": [ - "container", - [ + } + ] + ], + "packet_common_server_links": [ + "container", + [ + { + "name": "links", + "type": [ + "array", { - "name": "name", + "countType": "varint", "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_report_details", - "0x09": "server_links" + "container", + [ + { + "name": "hasKnownType", + "type": "bool" + }, + { + "name": "knownType", + "type": [ + "switch", + { + "compareTo": "hasKnownType", + "fields": { + "true": "ServerLinkType" + } + } + ] + }, + { + "name": "unknownType", + "type": [ + "switch", + { + "compareTo": "hasKnownType", + "fields": { + "false": "anonymousNbt" + } + } + ] + }, + { + "name": "link", + "type": "string" } - } + ] ] - }, + } + ] + } + ] + ], + "packet_common_settings": [ + "container", + [ + { + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", + "type": "varint" + }, + { + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" + }, + { + "name": "enableTextFiltering", + "type": "bool" + }, + { + "name": "enableServerListing", + "type": "bool" + }, + { + "name": "particleStatus", + "type": [ + "mapper", { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "settings": "packet_common_settings", - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links" - } - } - ] + "mappings": { + "0": "all", + "1": "decreased", + "2": "minimal" + }, + "type": "varint" } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "SlotDisplay": [ + } + ] + ], + "packet_common_store_cookie": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "ByteArray" + } + ] + ], + "packet_common_transfer": [ + "container", + [ + { + "name": "host", + "type": "string" + }, + { + "name": "port", + "type": "varint" + } + ] + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "previousMessages": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "empty", - "1": "any_fuel", - "2": "item", - "3": "item_stack", - "4": "tag", - "5": "smithing_trim", - "6": "with_remainder", - "7": "composite" - } - } - ] + "name": "id", + "type": "varint" }, { - "name": "data", + "name": "signature", "type": [ "switch", { - "compareTo": "type", + "compareTo": "id", + "default": "void", "fields": { - "empty": "void", - "any_fuel": "void", - "item": "varint", - "item_stack": "Slot", - "tag": "string", - "smithing_trim": [ - "container", - [ - { - "name": "base", - "type": "SlotDisplay" - }, - { - "name": "material", - "type": "SlotDisplay" - }, - { - "name": "pattern", - "type": "SlotDisplay" - } - ] - ], - "with_remainder": [ - "container", - [ - { - "name": "input", - "type": "SlotDisplay" - }, - { - "name": "remainder", - "type": "SlotDisplay" - } - ] - ], - "composite": [ - "array", + "0": [ + "buffer", { - "countType": "varint", - "type": "SlotDisplay" + "count": 256 } ] } @@ -3994,592 +3025,738 @@ ] } ] - ], - "RecipeDisplay": [ + ] + } + ], + "pstring": "native", + "registryEntryHolder": "native", + "registryEntryHolderSet": "native", + "restBuffer": "native", + "soundSource": [ + "mapper", + { + "mappings": { + "0": "master", + "1": "music", + "2": "record", + "3": "weather", + "4": "block", + "5": "hostile", + "6": "neutral", + "7": "player", + "8": "ambient", + "9": "voice" + }, + "type": "varint" + } + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "crafting_shapeless", - "1": "crafting_shaped", - "2": "furnace", - "3": "stonecutter", - "4": "smithing" - } - } - ] + "name": "tagName", + "type": "string" }, { - "name": "data", + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "type", - "fields": { - "crafting_shapeless": [ - "container", - [ - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "furnace": [ - "container", - [ - { - "name": "ingredient", - "type": "SlotDisplay" - }, - { - "name": "fuel", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "experience", - "type": "f32" - } - ] - ], - "stonecutter": [ - "container", - [ - { - "name": "ingredient", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "smithing": [ - "container", - [ - { - "name": "template", - "type": "SlotDisplay" - }, - { - "name": "base", - "type": "SlotDisplay" - }, - { - "name": "addition", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ] - } + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec2f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + } + ] + ], + "vec3f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + } + ] + ], + "vec3f64": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "vec4f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "w", + "type": "f32" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": {}, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": {} } ] } ] - ], - "SpawnInfo": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ - { - "name": "dimension", - "type": "varint" - }, { "name": "name", - "type": "string" - }, - { - "name": "hashedSeed", - "type": "i64" - }, - { - "name": "gamemode", "type": [ "mapper", { - "type": "i8", "mappings": { - "0": "survival", - "1": "creative", - "2": "adventure", - "3": "spectator" - } + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" } ] }, { - "name": "previousGamemode", - "type": "u8" - }, - { - "name": "isDebug", - "type": "bool" - }, - { - "name": "isFlat", - "type": "bool" - }, - { - "name": "death", + "name": "params", "type": [ - "option", - [ - "container", - [ - { - "name": "dimensionName", - "type": "string" - }, - { - "name": "location", - "type": "position" - } - ] - ] + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } ] - }, - { - "name": "portalCooldown", - "type": "varint" - }, - { - "name": "seaLevel", - "type": "varint" } ] ], - "packet_spawn_entity": [ + "packet_legacy_server_list_ping": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, + "name": "payload", + "type": "u8" + } + ] + ], + "packet_set_protocol": [ + "container", + [ { - "name": "type", + "name": "protocolVersion", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" + "name": "serverHost", + "type": "string" }, { - "name": "headPitch", - "type": "i8" + "name": "serverPort", + "type": "u16" }, { - "name": "objectData", + "name": "nextState", "type": "varint" + } + ] + ] + } + } + }, + "status": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" + } + ] }, { - "name": "velocity", - "type": "vec3i16" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "server_info": "packet_server_info" + } + } + ] } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_ping": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, + "name": "time", + "type": "i64" + } + ] + ], + "packet_server_info": [ + "container", + [ { - "name": "y", - "type": "f64" - }, + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" + } + ] }, { - "name": "count", - "type": "i16" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } + } + ] } ] ], - "packet_animation": [ + "packet_ping": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "animation", - "type": "u8" + "name": "time", + "type": "i64" } ] ], - "packet_statistics": [ + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "entries", + "name": "name", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request", + "0x05": "cookie_request" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "cookie_request": "packet_common_cookie_request", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" + } } ] } ] ], - "packet_acknowledge_player_digging": [ + "packet_compress": [ "container", [ { - "name": "sequenceId", + "name": "threshold", "type": "varint" } ] ], - "packet_block_break_animation": [ + "packet_disconnect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "reason", + "type": "string" } ] ], - "packet_tile_entity_data": [ + "packet_encryption_begin": [ "container", [ { - "name": "location", - "type": "position" + "name": "serverId", + "type": "string" }, { - "name": "action", - "type": "varint" + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "nbtData", - "type": "anonOptionalNbt" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "shouldAuthenticate", + "type": "bool" } ] ], - "packet_block_action": [ + "packet_login_plugin_request": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "byte1", - "type": "u8" + "name": "messageId", + "type": "varint" }, { - "name": "byte2", - "type": "u8" + "name": "channel", + "type": "string" }, { - "name": "blockId", - "type": "varint" + "name": "data", + "type": "restBuffer" } ] ], - "packet_block_change": [ + "packet_success": [ "container", [ { - "name": "location", - "type": "position" + "name": "uuid", + "type": "UUID" }, { - "name": "type", - "type": "varint" + "name": "username", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] } ] - ], - "packet_boss_bar": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response", + "0x03": "login_acknowledged", + "0x04": "cookie_response" + }, + "type": "varint" + } + ] }, { - "name": "title", + "name": "params", "type": [ "switch", { - "compareTo": "action", + "compareTo": "name", "fields": { - "0": "anonymousNbt", - "3": "anonymousNbt" - }, - "default": "void" + "cookie_response": "packet_common_cookie_response", + "encryption_begin": "packet_encryption_begin", + "login_acknowledged": "packet_login_acknowledged", + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" + } + } + ] + } + ] + ], + "packet_encryption_begin": [ + "container", + [ + { + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" } ] }, { - "name": "health", + "name": "verifyToken", "type": [ - "switch", + "buffer", { - "compareTo": "action", - "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" + "countType": "varint" } ] + } + ] + ], + "packet_login_acknowledged": [ + "container", + [] + ], + "packet_login_plugin_response": [ + "container", + [ + { + "name": "messageId", + "type": "varint" }, { - "name": "color", + "name": "data", "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" - } + "option", + "restBuffer" ] + } + ] + ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" }, { - "name": "dividers", + "name": "playerUUID", + "type": "UUID" + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", "type": [ - "switch", + "mapper", { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" + "mappings": { + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links" }, - "default": "void" + "type": "varint" } ] }, { - "name": "flags", + "name": "params", "type": [ "switch", { - "compareTo": "action", + "compareTo": "name", "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" + "add_resource_pack": "packet_common_add_resource_pack", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" + } } ] } ] ], - "packet_difficulty": [ + "packet_custom_payload": [ "container", [ { - "name": "difficulty", - "type": "u8" + "name": "channel", + "type": "string" }, { - "name": "difficultyLocked", - "type": "bool" + "name": "data", + "type": "restBuffer" } ] ], - "packet_chunk_batch_finished": [ + "packet_disconnect": [ "container", [ { - "name": "batchSize", - "type": "varint" + "name": "reason", + "type": "anonymousNbt" } ] ], - "packet_chunk_batch_start": [ - "container", - [] - ], - "packet_chunk_biomes": [ + "packet_feature_flags": [ "container", [ { - "name": "biomes", + "name": "features", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "position", - "type": "packedChunkPos" - }, - { - "name": "data", - "type": "ByteArray" - } - ] - ] + "type": "string" } ] } ] ], - "packet_clear_titles": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "reset", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_tab_complete": [ + "packet_ping": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_registry_data": [ + "container", + [ { - "name": "length", - "type": "varint" + "name": "id", + "type": "string" }, { - "name": "matches", + "name": "entries", "type": [ "array", { @@ -4588,11 +3765,11 @@ "container", [ { - "name": "match", + "name": "key", "type": "string" }, { - "name": "tooltip", + "name": "value", "type": [ "option", "anonymousNbt" @@ -4605,945 +3782,1426 @@ } ] ], - "packet_declare_commands": [ + "packet_reset_chat": [ + "container", + [] + ], + "packet_tags": [ "container", [ { - "name": "nodes", + "name": "tags", "type": [ "array", { "countType": "varint", - "type": "command_node" + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] - }, - { - "name": "rootIndex", - "type": "varint" - } - ] - ], - "packet_close_window": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" } ] - ], - "packet_window_items": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_report_details", + "0x09": "server_links" + }, + "type": "varint" + } + ] }, { - "name": "items", + "name": "params", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "Slot" + "compareTo": "name", + "fields": { + "cookie_response": "packet_common_cookie_response", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "settings": "packet_common_settings" + } } ] + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" }, { - "name": "carriedItem", - "type": "Slot" + "name": "data", + "type": "restBuffer" } ] ], - "packet_craft_progress_bar": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "property", - "type": "i16" - }, - { - "name": "value", - "type": "i16" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_set_slot": [ + "packet_pong": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" + "name": "id", + "type": "i32" } ] ], - "packet_set_cooldown": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "cooldownGroup", - "type": "string" + "name": "uuid", + "type": "UUID" }, { - "name": "cooldownTicks", + "name": "result", "type": "varint" } ] - ], - "packet_chat_suggestions": [ + ] + } + } + }, + "play": { + "toClient": { + "types": { + "ChatType": [ "container", [ { - "name": "action", - "type": "varint" + "name": "translationKey", + "type": "string" }, { - "name": "entries", + "name": "parameters", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "ChatTypeParameterType" } ] + }, + { + "name": "style", + "type": "anonymousNbt" } ] ], - "packet_custom_payload": [ + "ChatTypeParameterType": [ + "mapper", + { + "mappings": { + "0": "content", + "1": "sender", + "2": "target" + }, + "type": "varint" + } + ], + "ChatTypes": [ "container", [ { - "name": "channel", - "type": "string" + "name": "chat", + "type": "ChatType" }, { - "name": "data", - "type": "restBuffer" + "name": "narration", + "type": "ChatType" } ] ], - "packet_damage_event": [ + "ChatTypesHolder": [ + "registryEntryHolder", + { + "baseName": "chatType", + "otherwise": { + "name": "data", + "type": "ChatTypes" + } + } + ], + "PositionUpdateRelatives": [ + "bitflags", + { + "flags": [ + "x", + "y", + "z", + "yaw", + "pitch", + "dx", + "dy", + "dz", + "yawDelta" + ], + "type": "u32" + } + ], + "RecipeDisplay": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "sourceTypeId", - "type": "varint" - }, - { - "name": "sourceCauseId", - "type": "varint" - }, - { - "name": "sourceDirectId", - "type": "varint" + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "crafting_shapeless", + "1": "crafting_shaped", + "2": "furnace", + "3": "stonecutter", + "4": "smithing" + }, + "type": "varint" + } + ] }, { - "name": "sourcePosition", + "name": "data", "type": [ - "option", - "vec3f64" + "switch", + { + "compareTo": "type", + "fields": { + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ] + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "crafting_shapeless": [ + "container", + [ + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ] + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "furnace": [ + "container", + [ + { + "name": "ingredient", + "type": "SlotDisplay" + }, + { + "name": "fuel", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "experience", + "type": "f32" + } + ] + ], + "smithing": [ + "container", + [ + { + "name": "template", + "type": "SlotDisplay" + }, + { + "name": "base", + "type": "SlotDisplay" + }, + { + "name": "addition", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "stonecutter": [ + "container", + [ + { + "name": "ingredient", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ] + } + } ] } ] ], - "packet_debug_sample": [ + "SlotDisplay": [ "container", [ { - "name": "sample", + "name": "type", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": "i64" + "mappings": { + "0": "empty", + "1": "any_fuel", + "2": "item", + "3": "item_stack", + "4": "tag", + "5": "smithing_trim", + "6": "with_remainder", + "7": "composite" + }, + "type": "varint" } ] }, { - "name": "type", - "type": "varint" - } - ] - ], - "packet_hide_message": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "signature", + "name": "data", "type": [ "switch", { - "compareTo": "id", + "compareTo": "type", "fields": { - "0": [ - "buffer", + "any_fuel": "void", + "composite": [ + "array", { - "count": 256 + "countType": "varint", + "type": "SlotDisplay" } + ], + "empty": "void", + "item": "varint", + "item_stack": "Slot", + "smithing_trim": [ + "container", + [ + { + "name": "base", + "type": "SlotDisplay" + }, + { + "name": "material", + "type": "SlotDisplay" + }, + { + "name": "pattern", + "type": "SlotDisplay" + } + ] + ], + "tag": "string", + "with_remainder": [ + "container", + [ + { + "name": "input", + "type": "SlotDisplay" + }, + { + "name": "remainder", + "type": "SlotDisplay" + } + ] ] - }, - "default": "void" + } } ] } ] ], - "packet_kick_disconnect": [ + "SpawnInfo": [ "container", [ { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "ChatTypeParameterType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "content", - "1": "sender", - "2": "target" - } - } - ], - "ChatType": [ - "container", - [ + "name": "dimension", + "type": "varint" + }, { - "name": "translationKey", + "name": "name", "type": "string" }, { - "name": "parameters", + "name": "hashedSeed", + "type": "i64" + }, + { + "name": "gamemode", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": "ChatTypeParameterType" + "mappings": { + "0": "survival", + "1": "creative", + "2": "adventure", + "3": "spectator" + }, + "type": "i8" } ] }, { - "name": "style", - "type": "anonymousNbt" - } - ] - ], - "ChatTypes": [ - "container", - [ - { - "name": "chat", - "type": "ChatType" - }, - { - "name": "narration", - "type": "ChatType" - } - ] - ], - "ChatTypesHolder": [ - "registryEntryHolder", - { - "baseName": "chatType", - "otherwise": { - "name": "data", - "type": "ChatTypes" - } - } - ], - "packet_profileless_chat": [ - "container", - [ - { - "name": "message", - "type": "anonymousNbt" + "name": "previousGamemode", + "type": "u8" }, { - "name": "type", - "type": "ChatTypesHolder" + "name": "isDebug", + "type": "bool" }, { - "name": "name", - "type": "anonymousNbt" + "name": "isFlat", + "type": "bool" }, { - "name": "target", + "name": "death", "type": [ "option", - "anonymousNbt" + [ + "container", + [ + { + "name": "dimensionName", + "type": "string" + }, + { + "name": "location", + "type": "position" + } + ] + ] ] - } - ] - ], - "packet_entity_status": [ - "container", - [ - { - "name": "entityId", - "type": "i32" - }, - { - "name": "entityStatus", - "type": "i8" - } - ] - ], - "packet_sync_entity_position": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "dx", - "type": "f64" - }, - { - "name": "dy", - "type": "f64" - }, - { - "name": "dz", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" }, { - "name": "pitch", - "type": "f32" + "name": "portalCooldown", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "seaLevel", + "type": "varint" } ] ], - "packet_explosion": [ + "packet": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "spawn_entity_experience_orb", + "0x03": "animation", + "0x04": "statistics", + "0x05": "acknowledge_player_digging", + "0x06": "block_break_animation", + "0x07": "tile_entity_data", + "0x08": "block_action", + "0x09": "block_change", + "0x0a": "boss_bar", + "0x0b": "difficulty", + "0x0c": "chunk_batch_finished", + "0x0d": "chunk_batch_start", + "0x0e": "chunk_biomes", + "0x0f": "clear_titles", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "close_window", + "0x13": "window_items", + "0x14": "craft_progress_bar", + "0x15": "set_slot", + "0x16": "cookie_request", + "0x17": "set_cooldown", + "0x18": "chat_suggestions", + "0x19": "custom_payload", + "0x1a": "damage_event", + "0x1b": "debug_sample", + "0x1c": "hide_message", + "0x1d": "kick_disconnect", + "0x1e": "profileless_chat", + "0x1f": "entity_status", + "0x20": "sync_entity_position", + "0x21": "explosion", + "0x22": "unload_chunk", + "0x23": "game_state_change", + "0x24": "open_horse_window", + "0x25": "hurt_animation", + "0x26": "initialize_world_border", + "0x27": "keep_alive", + "0x28": "map_chunk", + "0x29": "world_event", + "0x2a": "world_particles", + "0x2b": "update_light", + "0x2c": "login", + "0x2d": "map", + "0x2e": "trade_list", + "0x2f": "rel_entity_move", + "0x30": "entity_move_look", + "0x31": "move_minecart", + "0x32": "entity_look", + "0x33": "vehicle_move", + "0x34": "open_book", + "0x35": "open_window", + "0x36": "open_sign_entity", + "0x37": "ping", + "0x38": "ping_response", + "0x39": "craft_recipe_response", + "0x3a": "abilities", + "0x3b": "player_chat", + "0x3c": "end_combat_event", + "0x3d": "enter_combat_event", + "0x3e": "death_combat_event", + "0x3f": "player_remove", + "0x40": "player_info", + "0x41": "face_player", + "0x42": "position", + "0x43": "player_rotation", + "0x44": "recipe_book_add", + "0x45": "recipe_book_remove", + "0x46": "recipe_book_settings", + "0x47": "entity_destroy", + "0x48": "remove_entity_effect", + "0x49": "reset_score", + "0x4a": "remove_resource_pack", + "0x4b": "add_resource_pack", + "0x4c": "respawn", + "0x4d": "entity_head_rotation", + "0x4e": "multi_block_change", + "0x4f": "select_advancement_tab", + "0x50": "server_data", + "0x51": "action_bar", + "0x52": "world_border_center", + "0x53": "world_border_lerp_size", + "0x54": "world_border_size", + "0x55": "world_border_warning_delay", + "0x56": "world_border_warning_reach", + "0x57": "camera", + "0x58": "update_view_position", + "0x59": "update_view_distance", + "0x5a": "set_cursor_item", + "0x5b": "spawn_position", + "0x5c": "scoreboard_display_objective", + "0x5d": "entity_metadata", + "0x5e": "attach_entity", + "0x5f": "entity_velocity", + "0x60": "entity_equipment", + "0x61": "experience", + "0x62": "update_health", + "0x63": "held_item_slot", + "0x64": "scoreboard_objective", + "0x65": "set_passengers", + "0x66": "set_player_inventory", + "0x67": "teams", + "0x68": "scoreboard_score", + "0x69": "simulation_distance", + "0x6a": "set_title_subtitle", + "0x6b": "update_time", + "0x6c": "set_title_text", + "0x6d": "set_title_time", + "0x6e": "entity_sound_effect", + "0x6f": "sound_effect", + "0x70": "start_configuration", + "0x71": "stop_sound", + "0x72": "store_cookie", + "0x73": "system_chat", + "0x74": "playerlist_header", + "0x75": "nbt_query_response", + "0x76": "collect", + "0x77": "entity_teleport", + "0x78": "set_ticking_state", + "0x79": "step_tick", + "0x7a": "transfer", + "0x7b": "advancements", + "0x7c": "entity_update_attributes", + "0x7d": "entity_effect", + "0x7e": "declare_recipes", + "0x7f": "tags", + "0x80": "set_projectile_power", + "0x81": "custom_report_details", + "0x82": "server_links" + }, + "type": "varint" + } + ] }, { - "name": "playerKnockback", + "name": "params", "type": [ - "option", - "vec3f64" + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "add_resource_pack": "packet_common_add_resource_pack", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "bundle_delimiter": "void", + "camera": "packet_camera", + "chat_suggestions": "packet_chat_suggestions", + "chunk_batch_finished": "packet_chunk_batch_finished", + "chunk_batch_start": "packet_chunk_batch_start", + "chunk_biomes": "packet_chunk_biomes", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "cookie_request": "packet_common_cookie_request", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "damage_event": "packet_damage_event", + "death_combat_event": "packet_death_combat_event", + "debug_sample": "packet_debug_sample", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "hide_message": "packet_hide_message", + "hurt_animation": "packet_hurt_animation", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "move_minecart": "packet_move_minecart", + "multi_block_change": "packet_multi_block_change", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "ping_response": "packet_ping_response", + "player_chat": "packet_player_chat", + "player_info": "packet_player_info", + "player_remove": "packet_player_remove", + "player_rotation": "packet_player_rotation", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "profileless_chat": "packet_profileless_chat", + "recipe_book_add": "packet_recipe_book_add", + "recipe_book_remove": "packet_recipe_book_remove", + "recipe_book_settings": "packet_recipe_book_settings", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_score": "packet_reset_score", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "server_data": "packet_server_data", + "server_links": "packet_common_server_links", + "set_cooldown": "packet_set_cooldown", + "set_cursor_item": "packet_set_cursor_item", + "set_passengers": "packet_set_passengers", + "set_player_inventory": "packet_set_player_inventory", + "set_projectile_power": "packet_set_projectile_power", + "set_slot": "packet_set_slot", + "set_ticking_state": "packet_set_ticking_state", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_position": "packet_spawn_position", + "start_configuration": "packet_start_configuration", + "statistics": "packet_statistics", + "step_tick": "packet_step_tick", + "stop_sound": "packet_stop_sound", + "store_cookie": "packet_common_store_cookie", + "sync_entity_position": "packet_sync_entity_position", + "system_chat": "packet_system_chat", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "trade_list": "packet_trade_list", + "transfer": "packet_common_transfer", + "unload_chunk": "packet_unload_chunk", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } ] - }, - { - "name": "explosionParticle", - "type": "Particle" - }, - { - "name": "sound", - "type": "ItemSoundHolder" - } - ] - ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkZ", - "type": "i32" - }, - { - "name": "chunkX", - "type": "i32" } ] ], - "packet_game_state_change": [ + "packet_abilities": [ "container", [ { - "name": "reason", - "type": "u8" + "name": "flags", + "type": "i8" }, { - "name": "gameMode", + "name": "flyingSpeed", "type": "f32" - } - ] - ], - "packet_open_horse_window": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "nbSlots", - "type": "varint" - }, - { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_hurt_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" }, { - "name": "yaw", + "name": "walkingSpeed", "type": "f32" } ] ], - "packet_initialize_world_border": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "oldDiameter", - "type": "f64" - }, - { - "name": "newDiameter", - "type": "f64" - }, - { - "name": "speed", - "type": "varint" - }, - { - "name": "portalTeleportBoundary", - "type": "varint" - }, - { - "name": "warningBlocks", - "type": "varint" - }, - { - "name": "warningTime", + "name": "sequenceId", "type": "varint" } ] ], - "packet_keep_alive": [ + "packet_action_bar": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "text", + "type": "anonymousNbt" } ] ], - "packet_map_chunk": [ + "packet_advancements": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "heightmaps", - "type": "anonymousNbt" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "chunkBlockEntity" - } - ] - }, - { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "reset", + "type": "bool" }, { - "name": "emptyBlockLightMask", + "name": "advancementMapping", "type": [ "array", { "countType": "varint", - "type": "i64" + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "container", + [ + { + "name": "parentId", + "type": [ + "option", + "string" + ] + }, + { + "name": "displayData", + "type": [ + "option", + [ + "container", + [ + { + "name": "title", + "type": "anonymousNbt" + }, + { + "name": "description", + "type": "anonymousNbt" + }, + { + "name": "icon", + "type": "Slot" + }, + { + "name": "frameType", + "type": "varint" + }, + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 29 + }, + { + "name": "hidden", + "signed": false, + "size": 1 + }, + { + "name": "show_toast", + "signed": false, + "size": 1 + }, + { + "name": "has_background_texture", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "backgroundTexture", + "type": [ + "switch", + { + "compareTo": "flags/has_background_texture", + "default": "void", + "fields": { + "1": "string" + } + } + ] + }, + { + "name": "xCord", + "type": "f32" + }, + { + "name": "yCord", + "type": "f32" + } + ] + ] + ] + }, + { + "name": "requirements", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + }, + { + "name": "sendsTelemtryData", + "type": "bool" + } + ] + ] + } + ] + ] } ] }, { - "name": "skyLight", + "name": "identifiers", "type": [ "array", { "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] + "type": "string" } ] }, { - "name": "blockLight", + "name": "progressMapping", "type": [ "array", { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "criterionIdentifier", + "type": "string" + }, + { + "name": "criterionProgress", + "type": [ + "option", + "i64" + ] + } + ] + ] + } + ] + } + ] ] } ] } ] ], - "packet_world_event": [ + "packet_animation": [ "container", [ { - "name": "effectId", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "location", - "type": "position" - }, + "name": "animation", + "type": "u8" + } + ] + ], + "packet_attach_entity": [ + "container", + [ { - "name": "data", + "name": "entityId", "type": "i32" }, { - "name": "global", - "type": "bool" + "name": "vehicleId", + "type": "i32" } ] ], - "packet_world_particles": [ + "packet_block_action": [ "container", [ { - "name": "longDistance", - "type": "bool" - }, - { - "name": "alwaysShow", - "type": "bool" - }, - { - "name": "x", - "type": "f64" + "name": "location", + "type": "position" }, { - "name": "y", - "type": "f64" + "name": "byte1", + "type": "u8" }, { - "name": "z", - "type": "f64" + "name": "byte2", + "type": "u8" }, { - "name": "offsetX", - "type": "f32" - }, + "name": "blockId", + "type": "varint" + } + ] + ], + "packet_block_break_animation": [ + "container", + [ { - "name": "offsetY", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "offsetZ", - "type": "f32" + "name": "location", + "type": "position" }, { - "name": "velocityOffset", - "type": "f32" - }, + "name": "destroyStage", + "type": "i8" + } + ] + ], + "packet_block_change": [ + "container", + [ { - "name": "amount", - "type": "i32" + "name": "location", + "type": "position" }, { - "name": "particle", - "type": "Particle" + "name": "type", + "type": "varint" } ] ], - "packet_update_light": [ + "packet_boss_bar": [ "container", [ { - "name": "chunkX", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "chunkZ", + "name": "action", "type": "varint" }, { - "name": "skyLightMask", + "name": "title", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "action", + "default": "void", + "fields": { + "0": "anonymousNbt", + "3": "anonymousNbt" + } } ] }, { - "name": "blockLightMask", + "name": "health", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } } ] }, { - "name": "emptySkyLightMask", + "name": "color", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } } ] }, { - "name": "emptyBlockLightMask", + "name": "dividers", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "flags", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } } ] + } + ] + ], + "packet_camera": [ + "container", + [ + { + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat_suggestions": [ + "container", + [ + { + "name": "action", + "type": "varint" }, { - "name": "skyLight", + "name": "entries", "type": [ "array", { "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] + "type": "string" } ] - }, + } + ] + ], + "packet_chunk_batch_finished": [ + "container", + [ { - "name": "blockLight", + "name": "batchSize", + "type": "varint" + } + ] + ], + "packet_chunk_batch_start": [ + "container", + [] + ], + "packet_chunk_biomes": [ + "container", + [ + { + "name": "biomes", "type": [ "array", { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } + "container", + [ + { + "name": "position", + "type": "packedChunkPos" + }, + { + "name": "data", + "type": "ByteArray" + } + ] ] } ] } ] ], - "packet_login": [ + "packet_clear_titles": [ "container", [ { - "name": "entityId", - "type": "i32" - }, - { - "name": "isHardcore", + "name": "reset", "type": "bool" - }, + } + ] + ], + "packet_close_window": [ + "container", + [ { - "name": "worldNames", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, + "name": "windowId", + "type": "ContainerID" + } + ] + ], + "packet_collect": [ + "container", + [ { - "name": "maxPlayers", + "name": "collectedEntityId", "type": "varint" }, { - "name": "viewDistance", + "name": "collectorEntityId", "type": "varint" }, { - "name": "simulationDistance", + "name": "pickupItemCount", "type": "varint" - }, + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ { - "name": "reducedDebugInfo", - "type": "bool" + "name": "windowId", + "type": "ContainerID" }, { - "name": "enableRespawnScreen", - "type": "bool" + "name": "property", + "type": "i16" }, { - "name": "doLimitedCrafting", - "type": "bool" + "name": "value", + "type": "i16" + } + ] + ], + "packet_craft_recipe_response": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" }, { - "name": "worldState", - "type": "SpawnInfo" + "name": "recipeDisplay", + "type": "RecipeDisplay" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" }, { - "name": "enforcesSecureChat", - "type": "bool" + "name": "data", + "type": "restBuffer" } ] ], - "packet_map": [ + "packet_damage_event": [ "container", [ { - "name": "itemDamage", + "name": "entityId", "type": "varint" }, { - "name": "scale", - "type": "i8" + "name": "sourceTypeId", + "type": "varint" }, { - "name": "locked", - "type": "bool" + "name": "sourceCauseId", + "type": "varint" }, { - "name": "icons", + "name": "sourceDirectId", + "type": "varint" + }, + { + "name": "sourcePosition", "type": [ "option", - [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "i8" - }, - { - "name": "z", - "type": "i8" - }, - { - "name": "direction", - "type": "u8" - }, - { - "name": "displayName", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] + "vec3f64" ] - }, + } + ] + ], + "packet_death_combat_event": [ + "container", + [ { - "name": "columns", - "type": "u8" + "name": "playerId", + "type": "varint" }, { - "name": "rows", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] - }, + "name": "message", + "type": "anonymousNbt" + } + ] + ], + "packet_debug_sample": [ + "container", + [ { - "name": "x", + "name": "sample", "type": [ - "switch", + "array", { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" + "countType": "varint", + "type": "i64" } ] }, { - "name": "y", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] - }, + "name": "type", + "type": "varint" + } + ] + ], + "packet_declare_commands": [ + "container", + [ { - "name": "data", + "name": "nodes", "type": [ - "switch", + "array", { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] + "countType": "varint", + "type": "command_node" } ] + }, + { + "name": "rootIndex", + "type": "varint" } ] ], - "packet_trade_list": [ + "packet_declare_recipes": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "trades", + "name": "recipes", "type": [ "array", { @@ -5552,149 +5210,90 @@ "container", [ { - "name": "inputItem1", - "type": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "SlotComponent" - } - ] - } - ] - ] - }, - { - "name": "outputItem", - "type": "Slot" + "name": "name", + "type": "string" }, { - "name": "inputItem2", + "name": "items", "type": [ - "option", - [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "SlotComponent" - } - ] - } - ] - ] + "array", + { + "countType": "varint", + "type": "varint" + } ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, + } + ] + ] + } + ] + }, + { + "name": "stoneCutterRecipes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ { - "name": "priceMultiplier", - "type": "f32" + "name": "input", + "type": "IDSet" }, { - "name": "demand", - "type": "i32" + "name": "slotDisplay", + "type": "SlotDisplay" } ] ] } ] - }, - { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" - }, + } + ] + ], + "packet_difficulty": [ + "container", + [ { - "name": "isRegularVillager", - "type": "bool" + "name": "difficulty", + "type": "u8" }, { - "name": "canRestock", + "name": "difficultyLocked", "type": "bool" } ] ], - "packet_rel_entity_move": [ + "packet_end_combat_event": [ "container", [ { - "name": "entityId", + "name": "duration", "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, + } + ] + ], + "packet_enter_combat_event": [ + "container", + [] + ], + "packet_entity_destroy": [ + "container", + [ { - "name": "onGround", - "type": "bool" + "name": "entityIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_entity_effect": [ "container", [ { @@ -5702,32 +5301,24 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" + "name": "effectId", + "type": "varint" }, { - "name": "yaw", - "type": "i8" + "name": "amplifier", + "type": "varint" }, { - "name": "pitch", - "type": "i8" + "name": "duration", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "flags", + "type": "u8" } ] ], - "packet_move_minecart": [ + "packet_entity_equipment": [ "container", [ { @@ -5735,33 +5326,20 @@ "type": "varint" }, { - "name": "steps", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "varint", "type": [ "container", [ { - "name": "position", - "type": "vec3f" - }, - { - "name": "movement", - "type": "vec3f" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "slot", + "type": "i8" }, { - "name": "weight", - "type": "f32" + "name": "item", + "type": "Slot" } ] ] @@ -5770,7 +5348,7 @@ } ] ], - "packet_entity_look": [ + "packet_entity_head_rotation": [ "container", [ { @@ -5778,404 +5356,298 @@ "type": "varint" }, { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "headYaw", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_entity_look": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "entityId", + "type": "varint" }, { "name": "yaw", - "type": "f32" + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_open_book": [ + "packet_entity_metadata": [ "container", [ { - "name": "hand", + "name": "entityId", "type": "varint" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_open_window": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", + "name": "entityId", "type": "varint" }, { - "name": "inventoryType", - "type": "varint" + "name": "dX", + "type": "i16" }, { - "name": "windowTitle", - "type": "anonymousNbt" - } - ] - ], - "packet_open_sign_entity": [ - "container", - [ + "name": "dY", + "type": "i16" + }, { - "name": "location", - "type": "position" + "name": "dZ", + "type": "i16" }, { - "name": "isFrontText", - "type": "bool" - } - ] - ], - "packet_ping": [ - "container", - [ + "name": "yaw", + "type": "i8" + }, { - "name": "id", - "type": "i32" - } - ] - ], - "packet_ping_response": [ - "container", - [ + "name": "pitch", + "type": "i8" + }, { - "name": "id", - "type": "i64" + "name": "onGround", + "type": "bool" } ] ], - "packet_craft_recipe_response": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "sound", + "type": "ItemSoundHolder" }, { - "name": "recipeDisplay", - "type": "RecipeDisplay" - } - ] - ], - "packet_abilities": [ - "container", - [ + "name": "soundCategory", + "type": "soundSource" + }, { - "name": "flags", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "flyingSpeed", + "name": "volume", "type": "f32" }, { - "name": "walkingSpeed", + "name": "pitch", "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], - "packet_player_chat": [ + "packet_entity_status": [ "container", [ { - "name": "senderUuid", - "type": "UUID" + "name": "entityId", + "type": "i32" }, { - "name": "index", + "name": "entityStatus", + "type": "i8" + } + ] + ], + "packet_entity_teleport": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "signature", - "type": [ - "option", - [ - "buffer", - { - "count": 256 - } - ] - ] + "name": "x", + "type": "f64" }, { - "name": "plainMessage", - "type": "string" + "name": "y", + "type": "f64" }, { - "name": "timestamp", - "type": "i64" + "name": "z", + "type": "f64" }, { - "name": "salt", - "type": "i64" + "name": "yaw", + "type": "i8" }, { - "name": "previousMessages", - "type": "previousMessages" + "name": "pitch", + "type": "i8" }, { - "name": "unsignedChatContent", - "type": [ - "option", - "anonymousNbt" - ] - }, + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ { - "name": "filterType", + "name": "entityId", "type": "varint" }, { - "name": "filterTypeMask", + "name": "properties", "type": [ - "switch", + "array", { - "compareTo": "filterType", - "fields": { - "2": [ - "array", + "countType": "varint", + "type": [ + "container", + [ { - "countType": "varint", - "type": "i64" + "name": "key", + "type": [ + "mapper", + { + "mappings": { + "0": "generic.armor", + "1": "generic.armor_toughness", + "2": "generic.attack_damage", + "3": "generic.attack_knockback", + "4": "generic.attack_speed", + "5": "player.block_break_speed", + "6": "player.block_interaction_range", + "7": "player.entity_interaction_range", + "8": "generic.fall_damage_multiplier", + "9": "generic.flying_speed", + "10": "generic.follow_range", + "11": "generic.gravity", + "12": "generic.jump_strength", + "13": "generic.knockback_resistance", + "14": "generic.luck", + "15": "generic.max_absorption", + "16": "generic.max_health", + "17": "generic.movement_speed", + "18": "generic.safe_fall_distance", + "19": "generic.scale", + "20": "zombie.spawn_reinforcements", + "21": "generic.step_height" + }, + "type": "varint" + } + ] + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] } ] - }, - "default": "void" + ] } ] - }, - { - "name": "type", - "type": "ChatTypesHolder" - }, - { - "name": "networkName", - "type": "anonymousNbt" - }, - { - "name": "networkTargetName", - "type": [ - "option", - "anonymousNbt" - ] } ] ], - "packet_end_combat_event": [ + "packet_entity_velocity": [ "container", [ { - "name": "duration", + "name": "entityId", "type": "varint" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ + "packet_experience": [ "container", [ { - "name": "playerId", + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", "type": "varint" }, { - "name": "message", - "type": "anonymousNbt" + "name": "totalExperience", + "type": "varint" } ] ], - "packet_player_remove": [ + "packet_explosion": [ "container", [ { - "name": "players", - "type": [ - "array", - { - "countType": "varint", - "type": "UUID" - } - ] - } - ] - ], - "packet_player_info": [ - "container", - [ + "name": "x", + "type": "f64" + }, { - "name": "action", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name", - "update_hat", - "update_list_order" - ] - } - ] + "name": "y", + "type": "f64" }, { - "name": "data", + "name": "z", + "type": "f64" + }, + { + "name": "playerKnockback", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "player", - "type": [ - "switch", - { - "compareTo": "../action/add_player", - "fields": { - "true": "game_profile" - }, - "default": "void" - } - ] - }, - { - "name": "chatSession", - "type": [ - "switch", - { - "compareTo": "../action/initialize_chat", - "fields": { - "true": "chat_session" - }, - "default": "void" - } - ] - }, - { - "name": "gamemode", - "type": [ - "switch", - { - "compareTo": "../action/update_game_mode", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "listed", - "type": [ - "switch", - { - "compareTo": "../action/update_listed", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "latency", - "type": [ - "switch", - { - "compareTo": "../action/update_latency", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "displayName", - "type": [ - "switch", - { - "compareTo": "../action/update_display_name", - "fields": { - "true": [ - "option", - "anonymousNbt" - ] - }, - "default": "void" - } - ] - }, - { - "name": "listPriority", - "type": [ - "switch", - { - "compareTo": "../action/update_list_order", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "showHat", - "type": [ - "switch", - { - "compareTo": "../action/update_hat", - "fields": { - "true": "bool" - }, - "default": "void" - } - ] - } - ] - ] - } + "option", + "vec3f64" ] + }, + { + "name": "explosionParticle", + "type": "Particle" + }, + { + "name": "sound", + "type": "ItemSoundHolder" } ] ], @@ -6208,10 +5680,10 @@ "switch", { "compareTo": "isEntity", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -6221,45 +5693,82 @@ "switch", { "compareTo": "isEntity", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } + } + ] + } + ] + ], + "packet_game_state_change": [ + "container", + [ + { + "name": "reason", + "type": "u8" + }, + { + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] + ], + "packet_hide_message": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "signature", + "type": [ + "switch", + { + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] + } } ] } ] ], - "PositionUpdateRelatives": [ - "bitflags", - { - "type": "u32", - "flags": [ - "x", - "y", - "z", - "yaw", - "pitch", - "dx", - "dy", - "dz", - "yawDelta" - ] - } - ], - "packet_position": [ + "packet_hurt_animation": [ "container", [ { - "name": "teleportId", + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, + "name": "yaw", + "type": "f32" + } + ] + ], + "packet_initialize_world_border": [ + "container", + [ { - "name": "y", + "name": "x", "type": "f64" }, { @@ -6267,247 +5776,331 @@ "type": "f64" }, { - "name": "dx", + "name": "oldDiameter", "type": "f64" }, { - "name": "dy", + "name": "newDiameter", "type": "f64" }, { - "name": "dz", - "type": "f64" + "name": "speed", + "type": "varint" }, { - "name": "yaw", - "type": "f32" + "name": "portalTeleportBoundary", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "warningBlocks", + "type": "varint" }, { - "name": "flags", - "type": "PositionUpdateRelatives" + "name": "warningTime", + "type": "varint" } ] ], - "packet_player_rotation": [ + "packet_keep_alive": [ "container", [ { - "name": "yaw", - "type": "f32" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "pitch", - "type": "f32" + "name": "reason", + "type": "anonymousNbt" } ] ], - "packet_recipe_book_add": [ + "packet_login": [ "container", [ { - "name": "entries", + "name": "entityId", + "type": "i32" + }, + { + "name": "isHardcore", + "type": "bool" + }, + { + "name": "worldNames", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "recipe", - "type": [ - "container", - [ - { - "name": "displayId", - "type": "varint" - }, - { - "name": "display", - "type": "RecipeDisplay" - }, - { - "name": "group", - "type": "optvarint" - }, - { - "name": "category", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "crafting_building_blocks", - "1": "crafting_redstone", - "2": "crafting_equipment", - "3": "crafting_misc", - "4": "furnace_food", - "5": "furnace_blocks", - "6": "furnace_misc", - "7": "blast_furnace_blocks", - "8": "blast_furnace_misc", - "9": "smoker_food", - "10": "stonecutter", - "11": "smithing", - "12": "campfire" - } - } - ] - }, - { - "name": "craftingRequirements", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": "IDSet" - } - ] - ] - } + "type": "string" + } + ] + }, + { + "name": "maxPlayers", + "type": "varint" + }, + { + "name": "viewDistance", + "type": "varint" + }, + { + "name": "simulationDistance", + "type": "varint" + }, + { + "name": "reducedDebugInfo", + "type": "bool" + }, + { + "name": "enableRespawnScreen", + "type": "bool" + }, + { + "name": "doLimitedCrafting", + "type": "bool" + }, + { + "name": "worldState", + "type": "SpawnInfo" + }, + { + "name": "enforcesSecureChat", + "type": "bool" + } + ] + ], + "packet_map": [ + "container", + [ + { + "name": "itemDamage", + "type": "varint" + }, + { + "name": "scale", + "type": "i8" + }, + { + "name": "locked", + "type": "bool" + }, + { + "name": "icons", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + }, + { + "name": "direction", + "type": "u8" + }, + { + "name": "displayName", + "type": [ + "option", + "anonymousNbt" ] - ] - }, - { - "name": "flags", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "notification", - "highlight" - ] - } - ] - } + } + ] ] - ] + } + ] + ] + }, + { + "name": "columns", + "type": "u8" + }, + { + "name": "rows", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } } ] }, { - "name": "replace", - "type": "bool" - } - ] - ], - "packet_recipe_book_remove": [ - "container", - [ + "name": "x", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } + } + ] + }, { - "name": "recipeIds", + "name": "y", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "varint" + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_recipe_book_settings": [ + "packet_map_chunk": [ "container", [ { - "name": "craftingGuiOpen", - "type": "bool" + "name": "x", + "type": "i32" }, { - "name": "craftingFilteringCraftable", - "type": "bool" + "name": "z", + "type": "i32" }, { - "name": "smeltingGuiOpen", - "type": "bool" + "name": "heightmaps", + "type": "anonymousNbt" }, { - "name": "smeltingFilteringCraftable", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "blastGuiOpen", - "type": "bool" + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "chunkBlockEntity" + } + ] }, { - "name": "blastFilteringCraftable", - "type": "bool" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "smokerGuiOpen", - "type": "bool" + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "smokerFilteringCraftable", - "type": "bool" - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", + "name": "emptySkyLightMask", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": "i64" } ] - } - ] - ], - "packet_remove_entity_effect": [ - "container", - [ - { - "name": "entityId", - "type": "varint" }, { - "name": "effectId", - "type": "varint" - } - ] - ], - "packet_reset_score": [ - "container", - [ - { - "name": "entity_name", - "type": "string" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "objective_name", + "name": "skyLight", "type": [ - "option", - "string" + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } ] - } - ] - ], - "packet_respawn": [ - "container", - [ - { - "name": "worldState", - "type": "SpawnInfo" }, { - "name": "copyMetadata", - "type": "u8" + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], - "packet_entity_head_rotation": [ + "packet_move_minecart": [ "container", [ { @@ -6515,8 +6108,38 @@ "type": "varint" }, { - "name": "headYaw", - "type": "i8" + "name": "steps", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "position", + "type": "vec3f" + }, + { + "name": "movement", + "type": "vec3f" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "weight", + "type": "f32" + } + ] + ] + } + ] } ] ], @@ -6530,18 +6153,18 @@ [ { "name": "x", - "size": 22, - "signed": true + "signed": true, + "size": 22 }, { "name": "z", - "size": 22, - "signed": true + "signed": true, + "size": 22 }, { "name": "y", - "size": 20, - "signed": true + "signed": true, + "size": 20 } ] ] @@ -6558,193 +6181,584 @@ } ] ], - "packet_select_advancement_tab": [ + "packet_nbt_query_response": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] + "name": "transactionId", + "type": "varint" + }, + { + "name": "nbt", + "type": "anonOptionalNbt" } ] ], - "packet_server_data": [ + "packet_open_book": [ "container", [ { - "name": "motd", - "type": "anonymousNbt" - }, - { - "name": "iconBytes", - "type": [ - "option", - "ByteArray" - ] + "name": "hand", + "type": "varint" } ] ], - "packet_action_bar": [ + "packet_open_horse_window": [ "container", [ { - "name": "text", - "type": "anonymousNbt" + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "packet_world_border_center": [ + "packet_open_sign_entity": [ "container", [ { - "name": "x", - "type": "f64" + "name": "location", + "type": "position" }, { - "name": "z", - "type": "f64" + "name": "isFrontText", + "type": "bool" } ] ], - "packet_world_border_lerp_size": [ + "packet_open_window": [ "container", [ { - "name": "oldDiameter", - "type": "f64" + "name": "windowId", + "type": "varint" }, { - "name": "newDiameter", - "type": "f64" + "name": "inventoryType", + "type": "varint" }, { - "name": "speed", - "type": "varint" + "name": "windowTitle", + "type": "anonymousNbt" } ] ], - "packet_world_border_size": [ + "packet_ping": [ "container", [ { - "name": "diameter", - "type": "f64" + "name": "id", + "type": "i32" } ] ], - "packet_world_border_warning_delay": [ + "packet_ping_response": [ "container", [ { - "name": "warningTime", - "type": "varint" + "name": "id", + "type": "i64" } ] ], - "packet_world_border_warning_reach": [ + "packet_player_chat": [ "container", [ { - "name": "warningBlocks", + "name": "senderUuid", + "type": "UUID" + }, + { + "name": "index", + "type": "varint" + }, + { + "name": "signature", + "type": [ + "option", + [ + "buffer", + { + "count": 256 + } + ] + ] + }, + { + "name": "plainMessage", + "type": "string" + }, + { + "name": "timestamp", + "type": "i64" + }, + { + "name": "salt", + "type": "i64" + }, + { + "name": "previousMessages", + "type": "previousMessages" + }, + { + "name": "unsignedChatContent", + "type": [ + "option", + "anonymousNbt" + ] + }, + { + "name": "filterType", "type": "varint" + }, + { + "name": "filterTypeMask", + "type": [ + "switch", + { + "compareTo": "filterType", + "default": "void", + "fields": { + "2": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + } + } + ] + }, + { + "name": "type", + "type": "ChatTypesHolder" + }, + { + "name": "networkName", + "type": "anonymousNbt" + }, + { + "name": "networkTargetName", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ], + "packet_player_info": [ + "container", + [ + { + "name": "action", + "type": [ + "bitflags", + { + "flags": [ + "add_player", + "initialize_chat", + "update_game_mode", + "update_listed", + "update_latency", + "update_display_name", + "update_hat", + "update_list_order" + ], + "type": "u8" + } + ] + }, + { + "name": "data", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "player", + "type": [ + "switch", + { + "compareTo": "../action/add_player", + "default": "void", + "fields": { + "true": "game_profile" + } + } + ] + }, + { + "name": "chatSession", + "type": [ + "switch", + { + "compareTo": "../action/initialize_chat", + "default": "void", + "fields": { + "true": "chat_session" + } + } + ] + }, + { + "name": "gamemode", + "type": [ + "switch", + { + "compareTo": "../action/update_game_mode", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "listed", + "type": [ + "switch", + { + "compareTo": "../action/update_listed", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "latency", + "type": [ + "switch", + { + "compareTo": "../action/update_latency", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "displayName", + "type": [ + "switch", + { + "compareTo": "../action/update_display_name", + "default": "void", + "fields": { + "true": [ + "option", + "anonymousNbt" + ] + } + } + ] + }, + { + "name": "listPriority", + "type": [ + "switch", + { + "compareTo": "../action/update_list_order", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "showHat", + "type": [ + "switch", + { + "compareTo": "../action/update_hat", + "default": "void", + "fields": { + "true": "bool" + } + } + ] + } + ] + ] + } + ] } ] ], - "packet_camera": [ + "packet_player_remove": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "players", + "type": [ + "array", + { + "countType": "varint", + "type": "UUID" + } + ] } ] ], - "packet_update_view_position": [ + "packet_player_rotation": [ "container", [ { - "name": "chunkX", - "type": "varint" + "name": "yaw", + "type": "f32" }, { - "name": "chunkZ", - "type": "varint" + "name": "pitch", + "type": "f32" } ] ], - "packet_update_view_distance": [ + "packet_playerlist_header": [ "container", [ { - "name": "viewDistance", - "type": "varint" + "name": "header", + "type": "anonymousNbt" + }, + { + "name": "footer", + "type": "anonymousNbt" } ] ], - "packet_set_cursor_item": [ + "packet_position": [ "container", [ { - "name": "contents", - "type": "Slot" + "name": "teleportId", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "dx", + "type": "f64" + }, + { + "name": "dy", + "type": "f64" + }, + { + "name": "dz", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "flags", + "type": "PositionUpdateRelatives" } ] ], - "packet_spawn_position": [ + "packet_profileless_chat": [ "container", [ { - "name": "location", - "type": "position" + "name": "message", + "type": "anonymousNbt" }, { - "name": "angle", - "type": "f32" + "name": "type", + "type": "ChatTypesHolder" + }, + { + "name": "name", + "type": "anonymousNbt" + }, + { + "name": "target", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "packet_scoreboard_display_objective": [ + "packet_recipe_book_add": [ "container", [ { - "name": "position", - "type": "varint" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "recipe", + "type": [ + "container", + [ + { + "name": "displayId", + "type": "varint" + }, + { + "name": "display", + "type": "RecipeDisplay" + }, + { + "name": "group", + "type": "optvarint" + }, + { + "name": "category", + "type": [ + "mapper", + { + "mappings": { + "0": "crafting_building_blocks", + "1": "crafting_redstone", + "2": "crafting_equipment", + "3": "crafting_misc", + "4": "furnace_food", + "5": "furnace_blocks", + "6": "furnace_misc", + "7": "blast_furnace_blocks", + "8": "blast_furnace_misc", + "9": "smoker_food", + "10": "stonecutter", + "11": "smithing", + "12": "campfire" + }, + "type": "varint" + } + ] + }, + { + "name": "craftingRequirements", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": "IDSet" + } + ] + ] + } + ] + ] + }, + { + "name": "flags", + "type": [ + "bitflags", + { + "flags": [ + "notification", + "highlight" + ], + "type": "u8" + } + ] + } + ] + ] + } + ] }, { - "name": "name", - "type": "string" + "name": "replace", + "type": "bool" } ] ], - "packet_entity_metadata": [ + "packet_recipe_book_remove": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "metadata", - "type": "entityMetadata" + "name": "recipeIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_attach_entity": [ + "packet_recipe_book_settings": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "craftingGuiOpen", + "type": "bool" }, { - "name": "vehicleId", - "type": "i32" + "name": "craftingFilteringCraftable", + "type": "bool" + }, + { + "name": "smeltingGuiOpen", + "type": "bool" + }, + { + "name": "smeltingFilteringCraftable", + "type": "bool" + }, + { + "name": "blastGuiOpen", + "type": "bool" + }, + { + "name": "blastFilteringCraftable", + "type": "bool" + }, + { + "name": "smokerGuiOpen", + "type": "bool" + }, + { + "name": "smokerFilteringCraftable", + "type": "bool" } ] ], - "packet_entity_velocity": [ + "packet_rel_entity_move": [ "container", [ { @@ -6752,12 +6766,24 @@ "type": "varint" }, { - "name": "velocity", - "type": "vec3i16" + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_entity_equipment": [ + "packet_remove_entity_effect": [ "container", [ { @@ -6765,68 +6791,50 @@ "type": "varint" }, { - "name": "equipments", - "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] + "name": "effectId", + "type": "varint" } ] ], - "packet_experience": [ + "packet_reset_score": [ "container", [ { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" + "name": "entity_name", + "type": "string" }, { - "name": "totalExperience", - "type": "varint" + "name": "objective_name", + "type": [ + "option", + "string" + ] } ] ], - "packet_update_health": [ + "packet_respawn": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" + "name": "worldState", + "type": "SpawnInfo" }, { - "name": "foodSaturation", - "type": "f32" + "name": "copyMetadata", + "type": "u8" } ] ], - "packet_held_item_slot": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "slot", + "name": "position", "type": "varint" + }, + { + "name": "name", + "type": "string" } ] ], @@ -6847,11 +6855,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ] }, @@ -6861,11 +6869,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -6875,6 +6883,7 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": [ "option", @@ -6884,8 +6893,7 @@ "option", "varint" ] - }, - "default": "void" + } } ] }, @@ -6895,335 +6903,492 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": [ "switch", { "compareTo": "number_format", + "default": "void", "fields": { "1": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ], "2": [ "switch", { "compareTo": "number_format", + "default": "void", "fields": { "1": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ] - }, - "default": "void" + } + } + ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" + }, + { + "name": "scoreName", + "type": "string" + }, + { + "name": "value", + "type": "varint" + }, + { + "name": "display_name", + "type": [ + "option", + "anonymousNbt" + ] + }, + { + "name": "number_format", + "type": [ + "option", + "varint" + ] + }, + { + "name": "styling", + "type": [ + "switch", + { + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ + { + "name": "id", + "type": [ + "option", + "string" + ] + } + ] + ], + "packet_server_data": [ + "container", + [ + { + "name": "motd", + "type": "anonymousNbt" + }, + { + "name": "iconBytes", + "type": [ + "option", + "ByteArray" + ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "cooldownGroup", + "type": "string" + }, + { + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_cursor_item": [ + "container", + [ + { + "name": "contents", + "type": "Slot" + } + ] + ], + "packet_set_passengers": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_set_passengers": [ + "packet_set_player_inventory": [ + "container", + [ + { + "name": "slotId", + "type": "varint" + }, + { + "name": "contents", + "type": "Slot" + } + ] + ], + "packet_set_projectile_power": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "accelerationPower", + "type": "f64" + } + ] + ], + "packet_set_slot": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "stateId", + "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" + } + ] + ], + "packet_set_ticking_state": [ + "container", + [ + { + "name": "tick_rate", + "type": "f32" + }, + { + "name": "is_frozen", + "type": "bool" + } + ] + ], + "packet_set_title_subtitle": [ + "container", + [ + { + "name": "text", + "type": "anonymousNbt" + } + ] + ], + "packet_set_title_text": [ + "container", + [ + { + "name": "text", + "type": "anonymousNbt" + } + ] + ], + "packet_set_title_time": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "fadeIn", + "type": "i32" }, { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "stay", + "type": "i32" + }, + { + "name": "fadeOut", + "type": "i32" } ] ], - "packet_set_player_inventory": [ + "packet_simulation_distance": [ "container", [ { - "name": "slotId", + "name": "distance", "type": "varint" + } + ] + ], + "packet_sound_effect": [ + "container", + [ + { + "name": "sound", + "type": "ItemSoundHolder" }, { - "name": "contents", - "type": "Slot" + "name": "soundCategory", + "type": "soundSource" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], - "packet_teams": [ + "packet_spawn_entity": [ "container", [ { - "name": "team", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "mode", + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", "type": "i8" }, { - "name": "name", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "friendlyFire", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" - } - ] + "name": "headPitch", + "type": "i8" }, { - "name": "nameTagVisibility", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "objectData", + "type": "varint" }, { - "name": "collisionRule", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_spawn_entity_experience_orb": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "formatting", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "x", + "type": "f64" }, { - "name": "prefix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] + "name": "y", + "type": "f64" }, { - "name": "suffix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] + "name": "z", + "type": "f64" }, { - "name": "players", + "name": "count", + "type": "i16" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "angle", + "type": "f32" + } + ] + ], + "packet_start_configuration": [ + "container", + [] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "mode", - "fields": { - "0": [ - "array", + "countType": "varint", + "type": [ + "container", + [ { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", + "name": "categoryId", + "type": "varint" + }, { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", + "name": "statisticId", + "type": "varint" + }, { - "countType": "varint", - "type": "string" + "name": "value", + "type": "varint" } ] - }, - "default": "void" + ] } ] } ] ], - "packet_scoreboard_score": [ + "packet_step_tick": [ "container", [ { - "name": "itemName", - "type": "string" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", + "name": "tick_steps", "type": "varint" - }, + } + ] + ], + "packet_stop_sound": [ + "container", + [ { - "name": "display_name", - "type": [ - "option", - "anonymousNbt" - ] + "name": "flags", + "type": "i8" }, { - "name": "number_format", + "name": "source", "type": [ - "option", - "varint" + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "1": "varint", + "3": "varint" + } + } ] }, { - "name": "styling", + "name": "sound", "type": [ "switch", { - "compareTo": "number_format", + "compareTo": "flags", + "default": "void", "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" + "2": "string", + "3": "string" + } } ] } ] ], - "packet_simulation_distance": [ + "packet_sync_entity_position": [ "container", [ { - "name": "distance", + "name": "entityId", "type": "varint" - } - ] - ], - "packet_set_title_subtitle": [ - "container", - [ - { - "name": "text", - "type": "anonymousNbt" - } - ] - ], - "packet_update_time": [ - "container", - [ - { - "name": "age", - "type": "i64" }, { - "name": "time", - "type": "i64" + "name": "x", + "type": "f64" }, { - "name": "tickDayTime", - "type": "bool" - } - ] - ], - "packet_set_title_text": [ - "container", - [ - { - "name": "text", - "type": "anonymousNbt" - } - ] - ], - "packet_set_title_time": [ - "container", - [ - { - "name": "fadeIn", - "type": "i32" + "name": "y", + "type": "f64" }, { - "name": "stay", - "type": "i32" + "name": "z", + "type": "f64" }, { - "name": "fadeOut", - "type": "i32" - } - ] - ], - "packet_entity_sound_effect": [ - "container", - [ - { - "name": "sound", - "type": "ItemSoundHolder" + "name": "dx", + "type": "f64" }, { - "name": "soundCategory", - "type": "soundSource" + "name": "dy", + "type": "f64" }, { - "name": "entityId", - "type": "varint" + "name": "dz", + "type": "f64" }, { - "name": "volume", + "name": "yaw", "type": "f32" }, { @@ -7231,596 +7396,734 @@ "type": "f32" }, { - "name": "seed", - "type": "i64" + "name": "onGround", + "type": "bool" } ] ], - "packet_sound_effect": [ + "packet_system_chat": [ "container", [ { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "soundCategory", - "type": "soundSource" - }, - { - "name": "x", - "type": "i32" + "name": "content", + "type": "anonymousNbt" }, { - "name": "y", - "type": "i32" - }, + "name": "isActionBar", + "type": "bool" + } + ] + ], + "packet_tab_complete": [ + "container", + [ { - "name": "z", - "type": "i32" + "name": "transactionId", + "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "start", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "length", + "type": "varint" }, { - "name": "seed", - "type": "i64" + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] + } + ] } ] ], - "packet_start_configuration": [ + "packet_tags": [ "container", - [] + [ + { + "name": "tags", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] + } + ] + } + ] ], - "packet_stop_sound": [ + "packet_teams": [ "container", [ { - "name": "flags", + "name": "team", + "type": "string" + }, + { + "name": "mode", "type": "i8" }, { - "name": "source", + "name": "name", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] + }, + { + "name": "friendlyFire", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "i8", + "2": "i8" + } + } + ] + }, + { + "name": "nameTagVisibility", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "collisionRule", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "mode", + "default": "void", "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "sound", + "name": "formatting", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "mode", + "default": "void", "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] - } - ] - ], - "packet_system_chat": [ - "container", - [ - { - "name": "content", - "type": "anonymousNbt" }, { - "name": "isActionBar", - "type": "bool" - } - ] - ], - "packet_playerlist_header": [ - "container", - [ - { - "name": "header", - "type": "anonymousNbt" + "name": "prefix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] }, { - "name": "footer", - "type": "anonymousNbt" - } - ] - ], - "packet_nbt_query_response": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" + "name": "suffix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] }, { - "name": "nbt", - "type": "anonOptionalNbt" + "name": "players", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "3": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + } + ] } ] ], - "packet_collect": [ + "packet_tile_entity_data": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" + "name": "location", + "type": "position" }, { - "name": "collectorEntityId", + "name": "action", "type": "varint" }, { - "name": "pickupItemCount", - "type": "varint" + "name": "nbtData", + "type": "anonOptionalNbt" } ] ], - "packet_entity_teleport": [ + "packet_trade_list": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" + "name": "windowId", + "type": "ContainerID" }, { - "name": "y", - "type": "f64" + "name": "trades", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "SlotComponent" + } + ] + } + ] + ] + }, + { + "name": "outputItem", + "type": "Slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "SlotComponent" + } + ] + } + ] + ] + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] + } + ] }, { - "name": "z", - "type": "f64" + "name": "villagerLevel", + "type": "varint" }, { - "name": "yaw", - "type": "i8" + "name": "experience", + "type": "varint" }, - { - "name": "pitch", - "type": "i8" + { + "name": "isRegularVillager", + "type": "bool" }, { - "name": "onGround", + "name": "canRestock", "type": "bool" } ] ], - "packet_set_ticking_state": [ + "packet_unload_chunk": [ "container", [ { - "name": "tick_rate", - "type": "f32" + "name": "chunkZ", + "type": "i32" }, { - "name": "is_frozen", - "type": "bool" + "name": "chunkX", + "type": "i32" } ] ], - "packet_step_tick": [ + "packet_update_health": [ "container", [ { - "name": "tick_steps", + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" + }, + { + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_advancements": [ + "packet_update_light": [ "container", [ { - "name": "reset", - "type": "bool" + "name": "chunkX", + "type": "varint" }, { - "name": "advancementMapping", + "name": "chunkZ", + "type": "varint" + }, + { + "name": "skyLightMask", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "container", - [ - { - "name": "parentId", - "type": [ - "option", - "string" - ] - }, - { - "name": "displayData", - "type": [ - "option", - [ - "container", - [ - { - "name": "title", - "type": "anonymousNbt" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "icon", - "type": "Slot" - }, - { - "name": "frameType", - "type": "varint" - }, - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "backgroundTexture", - "type": [ - "switch", - { - "compareTo": "flags/has_background_texture", - "fields": { - "1": "string" - }, - "default": "void" - } - ] - }, - { - "name": "xCord", - "type": "f32" - }, - { - "name": "yCord", - "type": "f32" - } - ] - ] - ] - }, - { - "name": "requirements", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - }, - { - "name": "sendsTelemtryData", - "type": "bool" - } - ] - ] - } - ] - ] + "type": "i64" } ] }, { - "name": "identifiers", + "name": "blockLightMask", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "i64" } ] }, { - "name": "progressMapping", + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "skyLight", "type": [ "array", { "countType": "varint", "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "criterionIdentifier", - "type": "string" - }, - { - "name": "criterionProgress", - "type": [ - "option", - "i64" - ] - } - ] - ] - } - ] - } - ] + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] + }, + { + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] } ] ], - "packet_entity_update_attributes": [ + "packet_update_time": [ + "container", + [ + { + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + }, + { + "name": "tickDayTime", + "type": "bool" + } + ] + ], + "packet_update_view_distance": [ + "container", + [ + { + "name": "viewDistance", + "type": "varint" + } + ] + ], + "packet_update_view_position": [ "container", [ { - "name": "entityId", + "name": "chunkX", "type": "varint" }, { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "generic.armor", - "1": "generic.armor_toughness", - "2": "generic.attack_damage", - "3": "generic.attack_knockback", - "4": "generic.attack_speed", - "5": "player.block_break_speed", - "6": "player.block_interaction_range", - "7": "player.entity_interaction_range", - "8": "generic.fall_damage_multiplier", - "9": "generic.flying_speed", - "10": "generic.follow_range", - "11": "generic.gravity", - "12": "generic.jump_strength", - "13": "generic.knockback_resistance", - "14": "generic.luck", - "15": "generic.max_absorption", - "16": "generic.max_health", - "17": "generic.movement_speed", - "18": "generic.safe_fall_distance", - "19": "generic.scale", - "20": "zombie.spawn_reinforcements", - "21": "generic.step_height" - } - } - ] - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "string" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] - } - ] + "name": "chunkZ", + "type": "varint" } ] ], - "packet_entity_effect": [ + "packet_vehicle_move": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "effectId", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "amplifier", - "type": "varint" + "name": "z", + "type": "f64" }, { - "name": "duration", - "type": "varint" + "name": "yaw", + "type": "f32" }, { - "name": "flags", - "type": "u8" + "name": "pitch", + "type": "f32" } ] ], - "packet_declare_recipes": [ + "packet_window_items": [ "container", [ { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ] + "name": "windowId", + "type": "ContainerID" }, { - "name": "stoneCutterRecipes", + "name": "stateId", + "type": "varint" + }, + { + "name": "items", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "input", - "type": "IDSet" - }, - { - "name": "slotDisplay", - "type": "SlotDisplay" - } - ] - ] + "type": "Slot" } ] + }, + { + "name": "carriedItem", + "type": "Slot" } ] ], - "packet_tags": [ + "packet_world_border_center": [ "container", [ { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] - } - ] + "name": "x", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_set_projectile_power": [ + "packet_world_border_lerp_size": [ + "container", + [ + { + "name": "oldDiameter", + "type": "f64" + }, + { + "name": "newDiameter", + "type": "f64" + }, + { + "name": "speed", + "type": "varint" + } + ] + ], + "packet_world_border_size": [ + "container", + [ + { + "name": "diameter", + "type": "f64" + } + ] + ], + "packet_world_border_warning_delay": [ + "container", + [ + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_world_border_warning_reach": [ + "container", + [ + { + "name": "warningBlocks", + "type": "varint" + } + ] + ], + "packet_world_event": [ + "container", + [ + { + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" + } + ] + ], + "packet_world_particles": [ "container", [ { - "name": "id", - "type": "varint" + "name": "longDistance", + "type": "bool" + }, + { + "name": "alwaysShow", + "type": "bool" + }, + { + "name": "x", + "type": "f64" }, { - "name": "accelerationPower", + "name": "y", + "type": "f64" + }, + { + "name": "z", "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "velocityOffset", + "type": "f32" + }, + { + "name": "amount", + "type": "i32" + }, + { + "name": "particle", + "type": "Particle" } ] + ] + } + }, + "toServer": { + "types": { + "MovementFlags": [ + "bitflags", + { + "flags": [ + "onGround", + "hasHorizontalCollision" + ], + "type": "u8" + } ], "packet": [ "container", @@ -7830,340 +8133,247 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "spawn_entity_experience_orb", - "0x03": "animation", - "0x04": "statistics", - "0x05": "acknowledge_player_digging", - "0x06": "block_break_animation", - "0x07": "tile_entity_data", - "0x08": "block_action", - "0x09": "block_change", - "0x0a": "boss_bar", - "0x0b": "difficulty", - "0x0c": "chunk_batch_finished", - "0x0d": "chunk_batch_start", - "0x0e": "chunk_biomes", - "0x0f": "clear_titles", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "close_window", - "0x13": "window_items", - "0x14": "craft_progress_bar", - "0x15": "set_slot", - "0x16": "cookie_request", - "0x17": "set_cooldown", - "0x18": "chat_suggestions", - "0x19": "custom_payload", - "0x1a": "damage_event", - "0x1b": "debug_sample", - "0x1c": "hide_message", - "0x1d": "kick_disconnect", - "0x1e": "profileless_chat", - "0x1f": "entity_status", - "0x20": "sync_entity_position", - "0x21": "explosion", - "0x22": "unload_chunk", - "0x23": "game_state_change", - "0x24": "open_horse_window", - "0x25": "hurt_animation", - "0x26": "initialize_world_border", - "0x27": "keep_alive", - "0x28": "map_chunk", - "0x29": "world_event", - "0x2a": "world_particles", - "0x2b": "update_light", - "0x2c": "login", - "0x2d": "map", - "0x2e": "trade_list", - "0x2f": "rel_entity_move", - "0x30": "entity_move_look", - "0x31": "move_minecart", - "0x32": "entity_look", - "0x33": "vehicle_move", - "0x34": "open_book", - "0x35": "open_window", - "0x36": "open_sign_entity", - "0x37": "ping", - "0x38": "ping_response", - "0x39": "craft_recipe_response", - "0x3a": "abilities", - "0x3b": "player_chat", - "0x3c": "end_combat_event", - "0x3d": "enter_combat_event", - "0x3e": "death_combat_event", - "0x3f": "player_remove", - "0x40": "player_info", - "0x41": "face_player", - "0x42": "position", - "0x43": "player_rotation", - "0x44": "recipe_book_add", - "0x45": "recipe_book_remove", - "0x46": "recipe_book_settings", - "0x47": "entity_destroy", - "0x48": "remove_entity_effect", - "0x49": "reset_score", - "0x4a": "remove_resource_pack", - "0x4b": "add_resource_pack", - "0x4c": "respawn", - "0x4d": "entity_head_rotation", - "0x4e": "multi_block_change", - "0x4f": "select_advancement_tab", - "0x50": "server_data", - "0x51": "action_bar", - "0x52": "world_border_center", - "0x53": "world_border_lerp_size", - "0x54": "world_border_size", - "0x55": "world_border_warning_delay", - "0x56": "world_border_warning_reach", - "0x57": "camera", - "0x58": "update_view_position", - "0x59": "update_view_distance", - "0x5a": "set_cursor_item", - "0x5b": "spawn_position", - "0x5c": "scoreboard_display_objective", - "0x5d": "entity_metadata", - "0x5e": "attach_entity", - "0x5f": "entity_velocity", - "0x60": "entity_equipment", - "0x61": "experience", - "0x62": "update_health", - "0x63": "held_item_slot", - "0x64": "scoreboard_objective", - "0x65": "set_passengers", - "0x66": "set_player_inventory", - "0x67": "teams", - "0x68": "scoreboard_score", - "0x69": "simulation_distance", - "0x6a": "set_title_subtitle", - "0x6b": "update_time", - "0x6c": "set_title_text", - "0x6d": "set_title_time", - "0x6e": "entity_sound_effect", - "0x6f": "sound_effect", - "0x70": "start_configuration", - "0x71": "stop_sound", - "0x72": "store_cookie", - "0x73": "system_chat", - "0x74": "playerlist_header", - "0x75": "nbt_query_response", - "0x76": "collect", - "0x77": "entity_teleport", - "0x78": "set_ticking_state", - "0x79": "step_tick", - "0x7a": "transfer", - "0x7b": "advancements", - "0x7c": "entity_update_attributes", - "0x7d": "entity_effect", - "0x7e": "declare_recipes", - "0x7f": "tags", - "0x80": "set_projectile_power", - "0x81": "custom_report_details", - "0x82": "server_links" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "select_bundle_item", + "0x03": "set_difficulty", + "0x04": "message_acknowledgement", + "0x05": "chat_command", + "0x06": "chat_command_signed", + "0x07": "chat_message", + "0x08": "chat_session_update", + "0x09": "chunk_batch_received", + "0x0a": "client_command", + "0x0b": "tick_end", + "0x0c": "settings", + "0x0d": "tab_complete", + "0x0e": "configuration_acknowledged", + "0x0f": "enchant_item", + "0x10": "window_click", + "0x11": "close_window", + "0x12": "set_slot_state", + "0x13": "cookie_response", + "0x14": "custom_payload", + "0x15": "debug_sample_subscription", + "0x16": "edit_book", + "0x17": "query_entity_nbt", + "0x18": "use_entity", + "0x19": "generate_structure", + "0x1a": "keep_alive", + "0x1b": "lock_difficulty", + "0x1c": "position", + "0x1d": "position_look", + "0x1e": "look", + "0x1f": "flying", + "0x20": "vehicle_move", + "0x21": "steer_boat", + "0x22": "pick_item_from_block", + "0x23": "pick_item_from_entity", + "0x24": "ping_request", + "0x25": "craft_recipe_request", + "0x26": "abilities", + "0x27": "block_dig", + "0x28": "entity_action", + "0x29": "player_input", + "0x2a": "player_loaded", + "0x2b": "pong", + "0x2c": "recipe_book", + "0x2d": "displayed_recipe", + "0x2e": "name_item", + "0x2f": "resource_pack_receive", + "0x30": "advancement_tab", + "0x31": "select_trade", + "0x32": "set_beacon_effect", + "0x33": "held_item_slot", + "0x34": "update_command_block", + "0x35": "update_command_block_minecart", + "0x36": "set_creative_slot", + "0x37": "update_jigsaw_block", + "0x38": "update_structure_block", + "0x39": "update_sign", + "0x3a": "arm_animation", + "0x3b": "spectate", + "0x3c": "block_place", + "0x3d": "use_item" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat_command": "packet_chat_command", + "chat_command_signed": "packet_chat_command_signed", + "chat_message": "packet_chat_message", + "chat_session_update": "packet_chat_session_update", + "chunk_batch_received": "packet_chunk_batch_received", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "configuration_acknowledged": "packet_configuration_acknowledged", + "cookie_response": "packet_common_cookie_response", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_payload": "packet_custom_payload", + "debug_sample_subscription": "packet_debug_sample_subscription", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "message_acknowledgement": "packet_message_acknowledgement", + "name_item": "packet_name_item", + "pick_item_from_block": "packet_pick_item_from_block", + "pick_item_from_entity": "packet_pick_item_from_entity", + "ping_request": "packet_ping_request", + "player_input": "packet_player_input", + "player_loaded": "packet_player_loaded", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_bundle_item": "packet_select_bundle_item", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "set_slot_state": "packet_set_slot_state", + "settings": "packet_common_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "tick_end": "packet_tick_end", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] + } + ] + ], + "packet_abilities": [ + "container", + [ + { + "name": "flags", + "type": "i8" + } + ] + ], + "packet_advancement_tab": [ + "container", + [ + { + "name": "action", + "type": "varint" }, { - "name": "params", + "name": "tabId", "type": [ "switch", { - "compareTo": "name", + "compareTo": "action", "fields": { - "bundle_delimiter": "void", - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "animation": "packet_animation", - "statistics": "packet_statistics", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "chunk_batch_finished": "packet_chunk_batch_finished", - "chunk_batch_start": "packet_chunk_batch_start", - "chunk_biomes": "packet_chunk_biomes", - "clear_titles": "packet_clear_titles", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "close_window": "packet_close_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "cookie_request": "packet_common_cookie_request", - "set_cooldown": "packet_set_cooldown", - "chat_suggestions": "packet_chat_suggestions", - "custom_payload": "packet_custom_payload", - "damage_event": "packet_damage_event", - "debug_sample": "packet_debug_sample", - "hide_message": "packet_hide_message", - "kick_disconnect": "packet_kick_disconnect", - "profileless_chat": "packet_profileless_chat", - "entity_status": "packet_entity_status", - "sync_entity_position": "packet_sync_entity_position", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "hurt_animation": "packet_hurt_animation", - "initialize_world_border": "packet_initialize_world_border", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "move_minecart": "packet_move_minecart", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_window": "packet_open_window", - "open_sign_entity": "packet_open_sign_entity", - "ping": "packet_ping", - "ping_response": "packet_ping_response", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "player_chat": "packet_player_chat", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_remove": "packet_player_remove", - "player_info": "packet_player_info", - "face_player": "packet_face_player", - "position": "packet_position", - "player_rotation": "packet_player_rotation", - "recipe_book_add": "packet_recipe_book_add", - "recipe_book_remove": "packet_recipe_book_remove", - "recipe_book_settings": "packet_recipe_book_settings", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "reset_score": "packet_reset_score", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "respawn": "packet_respawn", - "entity_head_rotation": "packet_entity_head_rotation", - "multi_block_change": "packet_multi_block_change", - "select_advancement_tab": "packet_select_advancement_tab", - "server_data": "packet_server_data", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "camera": "packet_camera", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "set_cursor_item": "packet_set_cursor_item", - "held_item_slot": "packet_held_item_slot", - "spawn_position": "packet_spawn_position", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "set_player_inventory": "packet_set_player_inventory", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "set_title_subtitle": "packet_set_title_subtitle", - "update_time": "packet_update_time", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time", - "entity_sound_effect": "packet_entity_sound_effect", - "sound_effect": "packet_sound_effect", - "start_configuration": "packet_start_configuration", - "stop_sound": "packet_stop_sound", - "store_cookie": "packet_common_store_cookie", - "system_chat": "packet_system_chat", - "playerlist_header": "packet_playerlist_header", - "nbt_query_response": "packet_nbt_query_response", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "set_ticking_state": "packet_set_ticking_state", - "step_tick": "packet_step_tick", - "transfer": "packet_common_transfer", - "advancements": "packet_advancements", - "entity_update_attributes": "packet_entity_update_attributes", - "entity_effect": "packet_entity_effect", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "set_projectile_power": "packet_set_projectile_power", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links" + "0": "string", + "1": "void" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_arm_animation": [ "container", [ { - "name": "teleportId", + "name": "hand", "type": "varint" } ] ], - "packet_query_block_nbt": [ + "packet_block_dig": [ "container", [ { - "name": "transactionId", + "name": "status", "type": "varint" }, { "name": "location", "type": "position" + }, + { + "name": "face", + "type": "i8" + }, + { + "name": "sequence", + "type": "varint" } ] ], - "packet_select_bundle_item": [ + "packet_block_place": [ "container", [ { - "name": "slotId", + "name": "hand", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", "type": "varint" }, { - "name": "selectedItemIndex", - "type": "varint" - } - ] - ], - "packet_set_difficulty": [ - "container", - [ + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" + }, { - "name": "newDifficulty", - "type": "u8" - } - ] - ], - "packet_message_acknowledgement": [ - "container", - [ + "name": "worldBorderHit", + "type": "bool" + }, { - "name": "count", + "name": "sequence", "type": "varint" } ] @@ -8315,384 +8525,179 @@ } ] ], - "packet_tick_end": [ - "container", - [] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "text", - "type": "string" - } - ] - ], - "packet_configuration_acknowledged": [ - "container", - [] - ], - "packet_enchant_item": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "enchantment", - "type": "varint" - } - ] - ], - "packet_window_click": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] - }, - { - "name": "cursorItem", - "type": "Slot" - } - ] - ], "packet_close_window": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - } - ] - ], - "packet_set_slot_state": [ - "container", - [ - { - "name": "slot_id", - "type": "varint" - }, - { - "name": "window_id", - "type": "ContainerID" - }, - { - "name": "state", - "type": "bool" - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_debug_sample_subscription": [ - "container", - [ - { - "name": "type", - "type": "varint" - } - ] - ], - "packet_edit_book": [ - "container", - [ - { - "name": "hand", - "type": "varint" - }, - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "title", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_query_entity_nbt": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_use_entity": [ - "container", - [ - { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, + "container", + [ { - "name": "sneaking", - "type": "bool" + "name": "windowId", + "type": "ContainerID" } ] ], - "packet_generate_structure": [ + "packet_configuration_acknowledged": [ + "container", + [] + ], + "packet_craft_recipe_request": [ "container", [ { - "name": "location", - "type": "position" + "name": "windowId", + "type": "ContainerID" }, { - "name": "levels", + "name": "recipeId", "type": "varint" }, { - "name": "keepJigsaws", + "name": "makeAll", "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_custom_payload": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_lock_difficulty": [ + "packet_debug_sample_subscription": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "type", + "type": "varint" } ] ], - "MovementFlags": [ - "bitflags", - { - "type": "u8", - "flags": [ - "onGround", - "hasHorizontalCollision" - ] - } - ], - "packet_position": [ + "packet_displayed_recipe": [ "container", [ { - "name": "x", - "type": "f64" - }, + "name": "recipeId", + "type": "varint" + } + ] + ], + "packet_edit_book": [ + "container", + [ { - "name": "y", - "type": "f64" + "name": "hand", + "type": "varint" }, { - "name": "z", - "type": "f64" + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] }, { - "name": "flags", - "type": "MovementFlags" + "name": "title", + "type": [ + "option", + "string" + ] } ] ], - "packet_position_look": [ + "packet_enchant_item": [ "container", [ { - "name": "x", - "type": "f64" + "name": "windowId", + "type": "ContainerID" }, { - "name": "y", - "type": "f64" - }, + "name": "enchantment", + "type": "varint" + } + ] + ], + "packet_entity_action": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "entityId", + "type": "varint" }, { - "name": "yaw", - "type": "f32" + "name": "actionId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { "name": "flags", "type": "MovementFlags" } ] ], - "packet_look": [ + "packet_generate_structure": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "location", + "type": "position" }, { - "name": "pitch", - "type": "f32" + "name": "levels", + "type": "varint" }, { - "name": "flags", - "type": "MovementFlags" + "name": "keepJigsaws", + "type": "bool" } ] ], - "packet_flying": [ + "packet_held_item_slot": [ "container", [ { - "name": "flags", - "type": "MovementFlags" + "name": "slotId", + "type": "i16" } ] ], - "packet_vehicle_move": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_lock_difficulty": [ + "container", + [ { - "name": "z", - "type": "f64" - }, + "name": "locked", + "type": "bool" + } + ] + ], + "packet_look": [ + "container", + [ { "name": "yaw", "type": "f32" @@ -8702,21 +8707,26 @@ "type": "f32" }, { - "name": "onGround", - "type": "bool" + "name": "flags", + "type": "MovementFlags" } ] ], - "packet_steer_boat": [ + "packet_message_acknowledgement": [ "container", [ { - "name": "leftPaddle", - "type": "bool" - }, + "name": "count", + "type": "varint" + } + ] + ], + "packet_name_item": [ + "container", + [ { - "name": "rightPaddle", - "type": "bool" + "name": "name", + "type": "string" } ] ], @@ -8755,106 +8765,118 @@ } ] ], - "packet_craft_recipe_request": [ + "packet_player_input": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "inputs", + "type": [ + "bitflags", + { + "flags": [ + "forward", + "backward", + "left", + "right", + "jump", + "shift", + "sprint" + ], + "type": "u8" + } + ] + } + ] + ], + "packet_player_loaded": [ + "container", + [] + ], + "packet_pong": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], + "packet_position": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "recipeId", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "makeAll", - "type": "bool" + "name": "z", + "type": "f64" + }, + { + "name": "flags", + "type": "MovementFlags" } ] ], - "packet_abilities": [ + "packet_position_look": [ "container", [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, { "name": "flags", - "type": "i8" + "type": "MovementFlags" } ] ], - "packet_block_dig": [ + "packet_query_block_nbt": [ "container", [ { - "name": "status", + "name": "transactionId", "type": "varint" }, { "name": "location", "type": "position" - }, - { - "name": "face", - "type": "i8" - }, - { - "name": "sequence", - "type": "varint" } ] ], - "packet_entity_action": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", + "name": "transactionId", "type": "varint" }, { - "name": "jumpBoost", + "name": "entityId", "type": "varint" } ] ], - "packet_player_input": [ - "container", - [ - { - "name": "inputs", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "forward", - "backward", - "left", - "right", - "jump", - "shift", - "sprint" - ] - } - ] - } - ] - ], - "packet_player_loaded": [ - "container", - [] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], "packet_recipe_book": [ "container", [ @@ -8872,24 +8894,6 @@ } ] ], - "packet_displayed_recipe": [ - "container", - [ - { - "name": "recipeId", - "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] - ], "packet_resource_pack_receive": [ "container", [ @@ -8903,25 +8907,16 @@ } ] ], - "packet_advancement_tab": [ + "packet_select_bundle_item": [ "container", [ { - "name": "action", + "name": "slotId", "type": "varint" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "selectedItemIndex", + "type": "varint" } ] ], @@ -8953,15 +8948,93 @@ } ] ], - "packet_held_item_slot": [ + "packet_set_creative_slot": [ "container", [ { - "name": "slotId", + "name": "slot", "type": "i16" + }, + { + "name": "item", + "type": "Slot" + } + ] + ], + "packet_set_difficulty": [ + "container", + [ + { + "name": "newDifficulty", + "type": "u8" + } + ] + ], + "packet_set_slot_state": [ + "container", + [ + { + "name": "slot_id", + "type": "varint" + }, + { + "name": "window_id", + "type": "ContainerID" + }, + { + "name": "state", + "type": "bool" + } + ] + ], + "packet_spectate": [ + "container", + [ + { + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ + { + "name": "leftPaddle", + "type": "bool" + }, + { + "name": "rightPaddle", + "type": "bool" + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "text", + "type": "string" + } + ] + ], + "packet_teleport_confirm": [ + "container", + [ + { + "name": "teleportId", + "type": "varint" } ] ], + "packet_tick_end": [ + "container", + [] + ], "packet_update_command_block": [ "container", [ @@ -9000,19 +9073,6 @@ } ] ], - "packet_set_creative_slot": [ - "container", - [ - { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" - } - ] - ], "packet_update_jigsaw_block": [ "container", [ @@ -9050,6 +9110,35 @@ } ] ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], "packet_update_structure_block": [ "container", [ @@ -9119,259 +9208,170 @@ } ] ], - "packet_update_sign": [ + "packet_use_entity": [ "container", [ { - "name": "location", - "type": "position" + "name": "target", + "type": "varint" }, { - "name": "isFrontText", - "type": "bool" + "name": "mouse", + "type": "varint" }, { - "name": "text1", - "type": "string" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "text2", - "type": "string" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "text3", - "type": "string" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "text4", - "type": "string" + "name": "sneaking", + "type": "bool" } ] ], - "packet_arm_animation": [ + "packet_use_item": [ "container", [ { "name": "hand", "type": "varint" - } - ] - ], - "packet_spectate": [ - "container", - [ + }, { - "name": "target", - "type": "UUID" + "name": "sequence", + "type": "varint" + }, + { + "name": "rotation", + "type": "vec2f" } ] ], - "packet_block_place": [ + "packet_vehicle_move": [ "container", [ { - "name": "hand", - "type": "varint" - }, - { - "name": "location", - "type": "position" + "name": "x", + "type": "f64" }, { - "name": "direction", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "cursorX", - "type": "f32" + "name": "z", + "type": "f64" }, { - "name": "cursorY", + "name": "yaw", "type": "f32" }, { - "name": "cursorZ", + "name": "pitch", "type": "f32" }, { - "name": "insideBlock", - "type": "bool" - }, - { - "name": "worldBorderHit", + "name": "onGround", "type": "bool" - }, - { - "name": "sequence", - "type": "varint" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "sequence", + "name": "stateId", "type": "varint" }, { - "name": "rotation", - "type": "vec2f" - } - ] - ], - "packet": [ - "container", - [ + "name": "slot", + "type": "i16" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "select_bundle_item", - "0x03": "set_difficulty", - "0x04": "message_acknowledgement", - "0x05": "chat_command", - "0x06": "chat_command_signed", - "0x07": "chat_message", - "0x08": "chat_session_update", - "0x09": "chunk_batch_received", - "0x0a": "client_command", - "0x0b": "tick_end", - "0x0c": "settings", - "0x0d": "tab_complete", - "0x0e": "configuration_acknowledged", - "0x0f": "enchant_item", - "0x10": "window_click", - "0x11": "close_window", - "0x12": "set_slot_state", - "0x13": "cookie_response", - "0x14": "custom_payload", - "0x15": "debug_sample_subscription", - "0x16": "edit_book", - "0x17": "query_entity_nbt", - "0x18": "use_entity", - "0x19": "generate_structure", - "0x1a": "keep_alive", - "0x1b": "lock_difficulty", - "0x1c": "position", - "0x1d": "position_look", - "0x1e": "look", - "0x1f": "flying", - "0x20": "vehicle_move", - "0x21": "steer_boat", - "0x22": "pick_item_from_block", - "0x23": "pick_item_from_entity", - "0x24": "ping_request", - "0x25": "craft_recipe_request", - "0x26": "abilities", - "0x27": "block_dig", - "0x28": "entity_action", - "0x29": "player_input", - "0x2a": "player_loaded", - "0x2b": "pong", - "0x2c": "recipe_book", - "0x2d": "displayed_recipe", - "0x2e": "name_item", - "0x2f": "resource_pack_receive", - "0x30": "advancement_tab", - "0x31": "select_trade", - "0x32": "set_beacon_effect", - "0x33": "held_item_slot", - "0x34": "update_command_block", - "0x35": "update_command_block_minecart", - "0x36": "set_creative_slot", - "0x37": "update_jigsaw_block", - "0x38": "update_structure_block", - "0x39": "update_sign", - "0x3a": "arm_animation", - "0x3b": "spectate", - "0x3c": "block_place", - "0x3d": "use_item" - } - } - ] + "name": "mouseButton", + "type": "i8" }, { - "name": "params", + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "select_bundle_item": "packet_select_bundle_item", - "set_difficulty": "packet_set_difficulty", - "message_acknowledgement": "packet_message_acknowledgement", - "chat_command": "packet_chat_command", - "chat_command_signed": "packet_chat_command_signed", - "chat_message": "packet_chat_message", - "chat_session_update": "packet_chat_session_update", - "chunk_batch_received": "packet_chunk_batch_received", - "client_command": "packet_client_command", - "tick_end": "packet_tick_end", - "settings": "packet_common_settings", - "tab_complete": "packet_tab_complete", - "configuration_acknowledged": "packet_configuration_acknowledged", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "set_slot_state": "packet_set_slot_state", - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "debug_sample_subscription": "packet_debug_sample_subscription", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "pick_item_from_block": "packet_pick_item_from_block", - "pick_item_from_entity": "packet_pick_item_from_entity", - "ping_request": "packet_ping_request", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "player_input": "packet_player_input", - "player_loaded": "packet_player_loaded", - "pong": "packet_pong", - "recipe_book": "packet_recipe_book", - "displayed_recipe": "packet_displayed_recipe", - "name_item": "packet_name_item", - "resource_pack_receive": "packet_resource_pack_receive", - "advancement_tab": "packet_advancement_tab", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "held_item_slot": "packet_held_item_slot", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_structure_block": "packet_update_structure_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" + } + ] + ] } ] + }, + { + "name": "cursorItem", + "type": "Slot" } ] ] diff --git a/data/pc/1.21.5/protocol.json b/data/pc/1.21.5/protocol.json index e4c3ad905..b89ef0f67 100644 --- a/data/pc/1.21.5/protocol.json +++ b/data/pc/1.21.5/protocol.json @@ -1,147 +1,206 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "anonymousNbt": "native", - "anonOptionalNbt": "native", - "registryEntryHolder": "native", - "registryEntryHolderSet": "native", - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec2f": [ + "ArmorTrimMaterial": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetBase", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "overrideArmorAssets", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + }, + { + "name": "description", + "type": "anonymousNbt" } ] ], - "vec3f": [ + "ArmorTrimPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "description", + "type": "anonymousNbt" }, { - "name": "z", - "type": "f32" + "name": "decal", + "type": "bool" } ] ], - "vec4f": [ + "BannerPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" - }, + "name": "translationKey", + "type": "string" + } + ] + ], + "BannerPatternLayer": [ + "container", + [ { - "name": "z", - "type": "f32" + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "BannerPattern" + } + } + ] }, { - "name": "w", - "type": "f32" + "name": "colorId", + "type": "varint" } ] ], - "vec3f64": [ + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "ContainerID": "varint", + "DataComponentMatchers": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "exactMatchers", + "type": "ExactComponentMatcher" }, { - "name": "z", - "type": "f64" + "name": "partialMatchers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "vec3i": [ + "EntityMetadataPaintingVariant": [ "container", [ { - "name": "x", - "type": "varint" + "name": "width", + "type": "i32" }, { - "name": "y", - "type": "varint" + "name": "height", + "type": "i32" }, { - "name": "z", - "type": "varint" + "name": "assetId", + "type": "string" + }, + { + "name": "title", + "type": [ + "option", + "anonymousNbt" + ] + }, + { + "name": "author", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "vec3i16": [ + "ExactComponentMatcher": [ + "array", + { + "countType": "varint", + "type": "SlotComponent" + } + ], + "HashedSlot": [ "container", [ { - "name": "x", - "type": "i16" + "name": "itemId", + "type": "varint" }, { - "name": "y", - "type": "i16" + "name": "itemCount", + "type": "varint" }, { - "name": "z", - "type": "i16" + "name": "components", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + }, + { + "name": "hash", + "type": "i32" + } + ] + ] + } + ] + }, + { + "name": "removeComponents", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] } ] ], @@ -158,1295 +217,210 @@ } } ], - "ContainerID": "varint", - "SlotComponentType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "custom_data", - "1": "max_stack_size", - "2": "max_damage", - "3": "damage", - "4": "unbreakable", - "5": "custom_name", - "6": "item_name", - "7": "item_model", - "8": "lore", - "9": "rarity", - "10": "enchantments", - "11": "can_place_on", - "12": "can_break", - "13": "attribute_modifiers", - "14": "custom_model_data", - "15": "tooltip_display", - "16": "repair_cost", - "17": "creative_slot_lock", - "18": "enchantment_glint_override", - "19": "intangible_projectile", - "20": "food", - "21": "consumable", - "22": "use_remainder", - "23": "use_cooldown", - "24": "damage_resistant", - "25": "tool", - "26": "weapon", - "27": "enchantable", - "28": "equippable", - "29": "repairable", - "30": "glider", - "31": "tooltip_style", - "32": "death_protection", - "33": "blocks_attacks", - "34": "stored_enchantments", - "35": "dyed_color", - "36": "map_color", - "37": "map_id", - "38": "map_decorations", - "39": "map_post_processing", - "40": "charged_projectiles", - "41": "bundle_contents", - "42": "potion_contents", - "43": "potion_duration_scale", - "44": "suspicious_stew_effects", - "45": "writable_book_content", - "46": "written_book_content", - "47": "trim", - "48": "debug_stick_state", - "49": "entity_data", - "50": "bucket_entity_data", - "51": "block_entity_data", - "52": "instrument", - "53": "provides_trim_material", - "54": "ominous_bottle_amplifier", - "55": "jukebox_playable", - "56": "provides_banner_patterns", - "57": "recipes", - "58": "lodestone_tracker", - "59": "firework_explosion", - "60": "fireworks", - "61": "profile", - "62": "note_block_sound", - "63": "banner_patterns", - "64": "base_color", - "65": "pot_decorations", - "66": "container", - "67": "block_state", - "68": "bees", - "69": "lock", - "70": "container_loot", - "71": "break_sound", - "72": "villager/variant", - "73": "wolf/variant", - "74": "wolf/sound_variant", - "75": "wolf/collar", - "76": "fox/variant", - "77": "salmon/size", - "78": "parrot/variant", - "79": "tropical_fish/pattern", - "80": "tropical_fish/base_color", - "81": "tropical_fish/pattern_color", - "82": "mooshroom/variant", - "83": "rabbit/variant", - "84": "pig/variant", - "85": "cow/variant", - "86": "chicken/variant", - "87": "frog/variant", - "88": "horse/variant", - "89": "painting/variant", - "90": "llama/variant", - "91": "axolotl/variant", - "92": "cat/variant", - "93": "cat/collar", - "94": "sheep/color", - "95": "shulker/color" + "InstrumentData": [ + "container", + [ + { + "name": "soundEvent", + "type": "ItemSoundHolder" + }, + { + "name": "useDuration", + "type": "f32" + }, + { + "name": "range", + "type": "f32" + }, + { + "name": "description", + "type": "anonymousNbt" } - } + ] ], - "SlotComponent": [ + "ItemBlockPredicate": [ "container", [ { - "name": "type", - "type": "SlotComponentType" + "name": "blockSet", + "type": [ + "option", + [ + "registryEntryHolderSet", + { + "base": { + "name": "name", + "type": "string" + }, + "otherwise": { + "name": "blockIds", + "type": "varint" + } + } + ] + ] }, { - "name": "data", + "name": "properties", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": "ItemBlockProperty" + } + ] + ] + }, + { + "name": "nbt", + "type": "anonOptionalNbt" + }, + { + "name": "components", + "type": "DataComponentMatchers" + } + ] + ], + "ItemBlockProperty": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "isExactMatch", + "type": "bool" + }, + { + "name": "value", "type": [ "switch", { - "compareTo": "type", + "compareTo": "isExactMatch", "fields": { - "custom_data": "anonymousNbt", - "max_stack_size": "varint", - "max_damage": "varint", - "damage": "varint", - "unbreakable": "void", - "custom_name": "anonymousNbt", - "item_name": "anonymousNbt", - "item_model": "string", - "lore": [ - "array", - { - "countType": "varint", - "type": "anonymousNbt" - } - ], - "rarity": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "common", - "1": "uncommon", - "2": "rare", - "3": "epic" - } - } - ], - "enchantments": [ + "false": [ "container", [ { - "name": "enchantments", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "can_place_on": [ - "container", - [ + "name": "minValue", + "type": "string" + }, { - "name": "predicates", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBlockPredicate" - } - ] + "name": "maxValue", + "type": "string" } ] ], - "can_break": [ + "true": [ "container", [ { - "name": "predicates", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBlockPredicate" - } - ] + "name": "exactValue", + "type": "string" } ] - ], - "attribute_modifiers": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "typeId", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "operation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "add", - "1": "multiply_base", - "2": "multiply_total" - } - } - ] - }, - { - "name": "slot", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "any", - "1": "main_hand", - "2": "off_hand", - "3": "hand", - "4": "feet", - "5": "legs", - "6": "chest", - "7": "head", - "8": "armor", - "9": "body", - "10": "saddle" - } - } - ] - } - ] - ] - } - ], - "custom_model_data": [ + ] + } + } + ] + } + ] + ], + "ItemBookPage": [ + "container", + [ + { + "name": "content", + "type": "string" + }, + { + "name": "filteredContent", + "type": [ + "option", + "string" + ] + } + ] + ], + "ItemConsumeEffect": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "apply_effects", + "1": "remove_effects", + "2": "clear_all_effects", + "3": "teleport_randomly", + "4": "play_sound" + }, + "type": "varint" + } + ] + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "apply_effects": [ "container", [ { - "name": "floats", - "type": [ - "array", - { - "countType": "varint", - "type": "f32" - } - ] - }, - { - "name": "flags", - "type": [ - "array", - { - "countType": "varint", - "type": "bool" - } - ] - }, - { - "name": "strings", + "name": "effects", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "ItemPotionEffect" } ] }, { - "name": "colors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] + "name": "probability", + "type": "f32" } ] ], - "tooltip_display": [ + "clear_all_effects": "void", + "play_sound": [ "container", [ { - "name": "hideTooltip", - "type": "bool" - }, - { - "name": "hiddenComponents", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "sound", + "type": "ItemSoundHolder" } ] ], - "repair_cost": "varint", - "creative_slot_lock": "void", - "enchantment_glint_override": "bool", - "intangible_projectile": "void", - "blocks_attacks": [ + "remove_effects": [ "container", [ { - "name": "blockDelaySeconds", - "type": "f32" - }, - { - "name": "disableCooldownScale", - "type": "f32" - }, - { - "name": "damageReductions", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalBlockingAngle", - "type": "f32" - }, - { - "name": "type", - "type": [ - "option", - "IDSet" - ] - }, - { - "name": "base", - "type": "f32" - }, - { - "name": "factor", - "type": "f32" - } - ] - ] - } - ] - }, - { - "name": "itemDamage", - "type": [ - "container", - [ - { - "name": "threshold", - "type": "f32" - }, - { - "name": "base", - "type": "f32" - }, - { - "name": "factor", - "type": "f32" - } - ] - ] - }, - { - "name": "bypassedBy", - "type": [ - "option", - "string" - ] - }, - { - "name": "blockSound", - "type": [ - "option", - "ItemSoundHolder" - ] - }, - { - "name": "disableSound", - "type": [ - "option", - "ItemSoundHolder" - ] + "name": "effects", + "type": "IDSet" } ] ], - "food": [ + "teleport_randomly": [ "container", [ { - "name": "nutrition", - "type": "varint" - }, - { - "name": "saturationModifier", + "name": "diameter", "type": "f32" - }, - { - "name": "canAlwaysEat", - "type": "bool" } ] - ], - "consumable": [ - "container", - [ - { - "name": "consume_seconds", - "type": "f32" - }, - { - "name": "animation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "none", - "1": "eat", - "2": "drink", - "3": "block", - "4": "bow", - "5": "spear", - "6": "crossbow", - "7": "spyglass", - "8": "toot_horn", - "9": "brush", - "10": "bundle" - } - } - ] - }, - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "makes_particles", - "type": "bool" - }, - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemConsumeEffect" - } - ] - } - ] - ], - "use_remainder": "Slot", - "use_cooldown": [ - "container", - [ - { - "name": "seconds", - "type": "f32" - }, - { - "name": "cooldownGroup", - "type": [ - "option", - "string" - ] - } - ] - ], - "damage_resistant": "string", - "tool": [ - "container", - [ - { - "name": "rules", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "blocks", - "type": "IDSet" - }, - { - "name": "speed", - "type": [ - "option", - "f32" - ] - }, - { - "name": "correctDropForBlocks", - "type": [ - "option", - "bool" - ] - } - ] - ] - } - ] - }, - { - "name": "defaultMiningSpeed", - "type": "f32" - }, - { - "name": "damagePerBlock", - "type": "varint" - }, - { - "name": "canDestroyBlocksInCreative", - "type": "bool" - } - ] - ], - "weapon": [ - "container", - [ - { - "name": "itemDamagePerAttack", - "type": "varint" - }, - { - "name": "disableBlockingForSeconds", - "type": "f32" - } - ] - ], - "enchantable": "varint", - "equippable": [ - "container", - [ - { - "name": "slot", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "main_hand", - "1": "off_hand", - "2": "feet", - "3": "legs", - "4": "chest", - "5": "head", - "6": "body", - "7": "saddle" - } - } - ] - }, - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "model", - "type": [ - "option", - "string" - ] - }, - { - "name": "cameraOverlay", - "type": [ - "option", - "string" - ] - }, - { - "name": "allowedEntities", - "type": [ - "option", - "IDSet" - ] - }, - { - "name": "dispensable", - "type": "bool" - }, - { - "name": "swappable", - "type": "bool" - }, - { - "name": "damageable", - "type": "bool" - }, - { - "name": "equipOnInteract", - "type": "bool" - } - ] - ], - "repairable": [ - "container", - [ - { - "name": "items", - "type": "IDSet" - } - ] - ], - "glider": "void", - "tooltip_style": "string", - "death_protection": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemConsumeEffect" - } - ] - } - ] - ], - "stored_enchantments": [ - "container", - [ - { - "name": "enchantments", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "dyed_color": "i32", - "map_color": "i32", - "map_id": "varint", - "map_decorations": "anonymousNbt", - "map_post_processing": "varint", - "potion_duration_scale": "f32", - "charged_projectiles": [ - "container", - [ - { - "name": "projectiles", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "bundle_contents": [ - "container", - [ - { - "name": "contents", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "potion_contents": [ - "container", - [ - { - "name": "potionId", - "type": [ - "option", - "varint" - ] - }, - { - "name": "customColor", - "type": [ - "option", - "i32" - ] - }, - { - "name": "customEffects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemPotionEffect" - } - ] - }, - { - "name": "customName", - "type": [ - "option", - "string" - ] - } - ] - ], - "suspicious_stew_effects": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "effect", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "writable_book_content": [ - "container", - [ - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBookPage" - } - ] - } - ] - ], - "written_book_content": [ - "container", - [ - { - "name": "rawTitle", - "type": "string" - }, - { - "name": "filteredTitle", - "type": [ - "option", - "string" - ] - }, - { - "name": "author", - "type": "string" - }, - { - "name": "generation", - "type": "varint" - }, - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemWrittenBookPage" - } - ] - }, - { - "name": "resolved", - "type": "bool" - } - ] - ], - "trim": [ - "container", - [ - { - "name": "material", - "type": [ - "registryEntryHolder", - { - "baseName": "materialId", - "otherwise": { - "name": "data", - "type": "ArmorTrimMaterial" - } - } - ] - }, - { - "name": "pattern", - "type": [ - "registryEntryHolder", - { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "ArmorTrimPattern" - } - } - ] - } - ] - ], - "debug_stick_state": "anonymousNbt", - "entity_data": "anonymousNbt", - "bucket_entity_data": "anonymousNbt", - "block_entity_data": "anonymousNbt", - "instrument": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "instrumentId", - "otherwise": { - "name": "data", - "type": "InstrumentData" - } - } - ], - "false": "string" - } - } - ] - } - ] - ], - "provides_trim_material": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "material", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "materialId", - "otherwise": { - "name": "data", - "type": "ArmorTrimMaterial" - } - } - ], - "false": "string" - } - } - ] - } - ] - ], - "ominous_bottle_amplifier": "varint", - "jukebox_playable": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "song", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "songId", - "otherwise": { - "name": "data", - "type": "JukeboxSongData" - } - } - ], - "false": "string" - } - } - ] - } - ] - ], - "provides_banner_patterns": "string", - "recipes": "anonymousNbt", - "lodestone_tracker": [ - "container", - [ - { - "name": "globalPosition", - "type": [ - "option", - [ - "container", - [ - { - "name": "dimension", - "type": "string" - }, - { - "name": "position", - "type": "position" - } - ] - ] - ] - }, - { - "name": "tracked", - "type": "bool" - } - ] - ], - "firework_explosion": "ItemFireworkExplosion", - "fireworks": [ - "container", - [ - { - "name": "flightDuration", - "type": "varint" - }, - { - "name": "explosions", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemFireworkExplosion" - } - ] - } - ] - ], - "profile": [ - "container", - [ - { - "name": "name", - "type": [ - "option", - "string" - ] - }, - { - "name": "uuid", - "type": [ - "option", - "UUID" - ] - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "note_block_sound": "string", - "banner_patterns": [ - "container", - [ - { - "name": "layers", - "type": [ - "array", - { - "countType": "varint", - "type": "BannerPatternLayer" - } - ] - } - ] - ], - "base_color": "varint", - "pot_decorations": [ - "container", - [ - { - "name": "decorations", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "container": [ - "container", - [ - { - "name": "contents", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "block_state": [ - "container", - [ - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] - } - ] - ], - "bees": [ - "container", - [ - { - "name": "bees", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "nbtData", - "type": "anonymousNbt" - }, - { - "name": "ticksInHive", - "type": "varint" - }, - { - "name": "minTicksInHive", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "lock": "anonymousNbt", - "container_loot": "anonymousNbt", - "break_sound": "ItemSoundHolder", - "villager/variant": "varint", - "wolf/variant": "varint", - "wolf/sound_variant": "varint", - "wolf/collar": "varint", - "fox/variant": "varint", - "salmon/size": "varint", - "parrot/variant": "varint", - "tropical_fish/pattern": "varint", - "tropical_fish/base_color": "varint", - "tropical_fish/pattern_color": "varint", - "mooshroom/variant": "varint", - "rabbit/variant": "varint", - "pig/variant": "varint", - "cow/variant": "varint", - "chicken/variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "string" - } - } - ], - "frog/variant": "varint", - "horse/variant": "varint", - "painting/variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "data", - "type": "EntityMetadataPaintingVariant" - } - } - ], - "llama/variant": "varint", - "axolotl/variant": "varint", - "cat/variant": "varint", - "cat/collar": "varint", - "sheep/color": "varint", - "shulker/color": "varint" - } - } - ] - } - ] - ], - "ItemSoundEvent": [ - "container", - [ - { - "name": "soundName", - "type": "string" - }, - { - "name": "fixedRange", - "type": [ - "option", - "f32" - ] - } - ] - ], - "ItemSoundHolder": [ - "registryEntryHolder", - { - "baseName": "soundId", - "otherwise": { - "name": "data", - "type": "ItemSoundEvent" - } - } - ], - "ItemFireworkExplosion": [ - "container", - [ - { - "name": "shape", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "small_ball", - "1": "large_ball", - "2": "star", - "3": "creeper", - "4": "burst" + ] } } ] - }, - { - "name": "colors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "fadeColors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "hasTrail", - "type": "bool" - }, - { - "name": "hasTwinkle", - "type": "bool" } ] ], @@ -1476,320 +450,110 @@ { "name": "hiddenEffect", "type": [ - "option", - "ItemEffectDetail" - ] - } - ] - ], - "ItemPotionEffect": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "details", - "type": "ItemEffectDetail" - } - ] - ], - "ItemBlockProperty": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "isExactMatch", - "type": "bool" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "isExactMatch", - "fields": { - "true": [ - "container", - [ - { - "name": "exactValue", - "type": "string" - } - ] - ], - "false": [ - "container", - [ - { - "name": "minValue", - "type": "string" - }, - { - "name": "maxValue", - "type": "string" - } - ] - ] - } - } - ] - } - ] - ], - "ExactComponentMatcher": [ - "array", - { - "countType": "varint", - "type": "SlotComponent" - } - ], - "DataComponentMatchers": [ - "container", - [ - { - "name": "exactMatchers", - "type": "ExactComponentMatcher" - }, - { - "name": "partialMatchers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "ItemBlockPredicate": [ - "container", - [ - { - "name": "blockSet", - "type": [ - "option", - [ - "registryEntryHolderSet", - { - "base": { - "name": "name", - "type": "string" - }, - "otherwise": { - "name": "blockIds", - "type": "varint" - } - } - ] - ] - }, - { - "name": "properties", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": "ItemBlockProperty" - } - ] - ] - }, - { - "name": "nbt", - "type": "anonOptionalNbt" - }, - { - "name": "components", - "type": "DataComponentMatchers" - } - ] - ], - "ItemBookPage": [ - "container", - [ - { - "name": "content", - "type": "string" - }, - { - "name": "filteredContent", - "type": [ - "option", - "string" - ] - } - ] - ], - "ItemWrittenBookPage": [ - "container", - [ - { - "name": "content", - "type": "anonymousNbt" - }, - { - "name": "filteredContent", - "type": "anonOptionalNbt" + "option", + "ItemEffectDetail" + ] } ] ], - "ItemConsumeEffect": [ + "ItemFireworkExplosion": [ "container", [ { - "name": "type", + "name": "shape", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "apply_effects", - "1": "remove_effects", - "2": "clear_all_effects", - "3": "teleport_randomly", - "4": "play_sound" - } + "0": "small_ball", + "1": "large_ball", + "2": "star", + "3": "creeper", + "4": "burst" + }, + "type": "varint" } ] }, { - "anon": true, + "name": "colors", "type": [ - "switch", + "array", { - "compareTo": "type", - "fields": { - "apply_effects": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemPotionEffect" - } - ] - }, - { - "name": "probability", - "type": "f32" - } - ] - ], - "remove_effects": [ - "container", - [ - { - "name": "effects", - "type": "IDSet" - } - ] - ], - "clear_all_effects": "void", - "teleport_randomly": [ - "container", - [ - { - "name": "diameter", - "type": "f32" - } - ] - ], - "play_sound": [ - "container", - [ - { - "name": "sound", - "type": "ItemSoundHolder" - } - ] - ] - } + "countType": "varint", + "type": "i32" } ] - } - ] - ], - "ArmorTrimMaterial": [ - "container", - [ - { - "name": "assetBase", - "type": "string" }, { - "name": "overrideArmorAssets", + "name": "fadeColors", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] + "type": "i32" } ] }, { - "name": "description", - "type": "anonymousNbt" + "name": "hasTrail", + "type": "bool" + }, + { + "name": "hasTwinkle", + "type": "bool" } ] ], - "ArmorTrimPattern": [ + "ItemPotionEffect": [ "container", [ { - "name": "assetId", - "type": "string" - }, - { - "name": "description", - "type": "anonymousNbt" + "name": "id", + "type": "varint" }, { - "name": "decal", - "type": "bool" + "name": "details", + "type": "ItemEffectDetail" } ] ], - "InstrumentData": [ + "ItemSoundEvent": [ "container", [ { - "name": "soundEvent", - "type": "ItemSoundHolder" + "name": "soundName", + "type": "string" }, { - "name": "useDuration", - "type": "f32" - }, + "name": "fixedRange", + "type": [ + "option", + "f32" + ] + } + ] + ], + "ItemSoundHolder": [ + "registryEntryHolder", + { + "baseName": "soundId", + "otherwise": { + "name": "data", + "type": "ItemSoundEvent" + } + } + ], + "ItemWrittenBookPage": [ + "container", + [ { - "name": "range", - "type": "f32" + "name": "content", + "type": "anonymousNbt" }, { - "name": "description", - "type": "anonymousNbt" + "name": "filteredContent", + "type": "anonOptionalNbt" } ] ], @@ -1814,121 +578,290 @@ } ] ], - "BannerPattern": [ - "container", - [ - { - "name": "assetId", - "type": "string" - }, - { - "name": "translationKey", - "type": "string" - } - ] - ], - "BannerPatternLayer": [ + "Particle": [ "container", [ { - "name": "pattern", + "name": "type", "type": [ - "registryEntryHolder", + "mapper", { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "BannerPattern" - } + "mappings": { + "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": "gust", + "24": "small_gust", + "25": "gust_emitter_large", + "26": "gust_emitter_small", + "27": "sonic_boom", + "28": "falling_dust", + "29": "firework", + "30": "fishing", + "31": "flame", + "32": "infested", + "33": "cherry_leaves", + "34": "pale_oak_leaves", + "35": "tinted_leaves", + "36": "sculk_soul", + "37": "sculk_charge", + "38": "sculk_charge_pop", + "39": "soul_fire_flame", + "40": "soul", + "41": "flash", + "42": "happy_villager", + "43": "composter", + "44": "heart", + "45": "instant_effect", + "46": "item", + "47": "vibration", + "48": "trail", + "49": "item_slime", + "50": "item_cobweb", + "51": "item_snowball", + "52": "large_smoke", + "53": "lava", + "54": "mycelium", + "55": "note", + "56": "poof", + "57": "portal", + "58": "rain", + "59": "smoke", + "60": "white_smoke", + "61": "sneeze", + "62": "spit", + "63": "squid_ink", + "64": "sweep_attack", + "65": "totem_of_undying", + "66": "underwater", + "67": "splash", + "68": "witch", + "69": "bubble_pop", + "70": "current_down", + "71": "bubble_column_up", + "72": "nautilus", + "73": "dolphin", + "74": "campfire_cosy_smoke", + "75": "campfire_signal_smoke", + "76": "dripping_honey", + "77": "falling_honey", + "78": "landing_honey", + "79": "falling_nectar", + "80": "falling_spore_blossom", + "81": "ash", + "82": "crimson_spore", + "83": "warped_spore", + "84": "spore_blossom_air", + "85": "dripping_obsidian_tear", + "86": "falling_obsidian_tear", + "87": "landing_obsidian_tear", + "88": "reverse_portal", + "89": "white_ash", + "90": "small_flame", + "91": "snowflake", + "92": "dripping_dripstone_lava", + "93": "falling_dripstone_lava", + "94": "dripping_dripstone_water", + "95": "falling_dripstone_water", + "96": "glow_squid_ink", + "97": "glow", + "98": "wax_on", + "99": "wax_off", + "100": "electric_spark", + "101": "scrape", + "102": "shriek", + "103": "egg_crack", + "104": "dust_plume", + "105": "trial_spawner_detected_player", + "106": "trial_spawner_detected_player_ominous", + "107": "vault_connection", + "108": "dust_pillar", + "109": "ominous_spawning", + "110": "raid_omen", + "111": "trial_omen", + "112": "block_crumble", + "113": "firefly" + }, + "type": "varint" } ] }, - { - "name": "colorId", - "type": "varint" - } - ] - ], - "UntrustedSlotComponent": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - }, { "name": "data", - "type": "ByteArray" - } - ] - ], - "UntrustedSlot": [ - "container", - [ - { - "name": "itemCount", - "type": "varint" - }, - { - "anon": true, "type": [ "switch", { - "compareTo": "itemCount", + "compareTo": "type", "fields": { - "0": "void", - "false": "void" - }, - "default": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "removedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "UntrustedSlotComponent" - } - ] - }, - { - "name": "removeComponents", - "type": [ - "array", - { - "count": "removedComponentCount", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] - } - ] - } + "block": "varint", + "block_crumble": "varint", + "block_marker": "varint", + "dust": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "dust_color_transition": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "dust_pillar": "varint", + "entity_effect": "i32", + "falling_dust": "varint", + "firefly": "void", + "item": "Slot", + "sculk_charge": "f32", + "shriek": "varint", + "tinted_leaves": "i32", + "trail": [ + "container", + [ + { + "name": "target", + "type": "vec3f64" + }, + { + "name": "color", + "type": "u8" + } + ] + ], + "vibration": [ + "container", + [ + { + "name": "positionType", + "type": [ + "mapper", + { + "mappings": { + "0": "block", + "1": "entity" + }, + "type": "varint" + } + ] + }, + { + "name": "position", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "block": "position", + "entity": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "entityEyeHeight", + "type": "f32" + } + ] + ] + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] ] - ] + } } ] } ] ], + "ServerLinkType": [ + "mapper", + { + "mappings": { + "0": "bug_report", + "1": "community_guidelines", + "2": "support", + "3": "status", + "4": "feedback", + "5": "community", + "6": "website", + "7": "forums", + "8": "news", + "9": "announcements" + }, + "type": "varint" + } + ], "Slot": [ "container", [ @@ -1942,9 +875,6 @@ "switch", { "compareTo": "itemCount", - "fields": { - "0": "void" - }, "default": [ "container", [ @@ -1989,680 +919,1319 @@ ] } ] - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "HashedSlot": [ + "SlotComponent": [ "container", [ { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" + "name": "type", + "type": "SlotComponentType" }, { - "name": "components", + "name": "data", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - }, + "compareTo": "type", + "fields": { + "attribute_modifiers": [ + "array", { - "name": "hash", - "type": "i32" + "countType": "varint", + "type": [ + "container", + [ + { + "name": "typeId", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "operation", + "type": [ + "mapper", + { + "mappings": { + "0": "add", + "1": "multiply_base", + "2": "multiply_total" + }, + "type": "varint" + } + ] + }, + { + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "any", + "1": "main_hand", + "2": "off_hand", + "3": "hand", + "4": "feet", + "5": "legs", + "6": "chest", + "7": "head", + "8": "armor", + "9": "body", + "10": "saddle" + }, + "type": "varint" + } + ] + } + ] + ] } - ] - ] - } - ] - }, - { - "name": "removeComponents", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ + ], + "axolotl/variant": "varint", + "banner_patterns": [ + "container", + [ + { + "name": "layers", + "type": [ + "array", + { + "countType": "varint", + "type": "BannerPatternLayer" + } + ] + } + ] + ], + "base_color": "varint", + "bees": [ + "container", + [ + { + "name": "bees", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "nbtData", + "type": "anonymousNbt" + }, + { + "name": "ticksInHive", + "type": "varint" + }, + { + "name": "minTicksInHive", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "block_entity_data": "anonymousNbt", + "block_state": [ + "container", + [ + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + } + ] + ], + "blocks_attacks": [ + "container", + [ + { + "name": "blockDelaySeconds", + "type": "f32" + }, + { + "name": "disableCooldownScale", + "type": "f32" + }, + { + "name": "damageReductions", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalBlockingAngle", + "type": "f32" + }, + { + "name": "type", + "type": [ + "option", + "IDSet" + ] + }, + { + "name": "base", + "type": "f32" + }, + { + "name": "factor", + "type": "f32" + } + ] + ] + } + ] + }, + { + "name": "itemDamage", + "type": [ + "container", + [ + { + "name": "threshold", + "type": "f32" + }, + { + "name": "base", + "type": "f32" + }, + { + "name": "factor", + "type": "f32" + } + ] + ] + }, + { + "name": "bypassedBy", + "type": [ + "option", + "string" + ] + }, + { + "name": "blockSound", + "type": [ + "option", + "ItemSoundHolder" + ] + }, + { + "name": "disableSound", + "type": [ + "option", + "ItemSoundHolder" + ] + } + ] + ], + "break_sound": "ItemSoundHolder", + "bucket_entity_data": "anonymousNbt", + "bundle_contents": [ + "container", + [ + { + "name": "contents", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "can_break": [ + "container", + [ + { + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" + } + ] + } + ] + ], + "can_place_on": [ + "container", + [ + { + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" + } + ] + } + ] + ], + "cat/collar": "varint", + "cat/variant": "varint", + "charged_projectiles": [ + "container", + [ + { + "name": "projectiles", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "chicken/variant": [ + "registryEntryHolder", { - "name": "type", - "type": "SlotComponentType" + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "string" + } } - ] - ] - } - ] - } - ] - ], - "Particle": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "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": "gust", - "24": "small_gust", - "25": "gust_emitter_large", - "26": "gust_emitter_small", - "27": "sonic_boom", - "28": "falling_dust", - "29": "firework", - "30": "fishing", - "31": "flame", - "32": "infested", - "33": "cherry_leaves", - "34": "pale_oak_leaves", - "35": "tinted_leaves", - "36": "sculk_soul", - "37": "sculk_charge", - "38": "sculk_charge_pop", - "39": "soul_fire_flame", - "40": "soul", - "41": "flash", - "42": "happy_villager", - "43": "composter", - "44": "heart", - "45": "instant_effect", - "46": "item", - "47": "vibration", - "48": "trail", - "49": "item_slime", - "50": "item_cobweb", - "51": "item_snowball", - "52": "large_smoke", - "53": "lava", - "54": "mycelium", - "55": "note", - "56": "poof", - "57": "portal", - "58": "rain", - "59": "smoke", - "60": "white_smoke", - "61": "sneeze", - "62": "spit", - "63": "squid_ink", - "64": "sweep_attack", - "65": "totem_of_undying", - "66": "underwater", - "67": "splash", - "68": "witch", - "69": "bubble_pop", - "70": "current_down", - "71": "bubble_column_up", - "72": "nautilus", - "73": "dolphin", - "74": "campfire_cosy_smoke", - "75": "campfire_signal_smoke", - "76": "dripping_honey", - "77": "falling_honey", - "78": "landing_honey", - "79": "falling_nectar", - "80": "falling_spore_blossom", - "81": "ash", - "82": "crimson_spore", - "83": "warped_spore", - "84": "spore_blossom_air", - "85": "dripping_obsidian_tear", - "86": "falling_obsidian_tear", - "87": "landing_obsidian_tear", - "88": "reverse_portal", - "89": "white_ash", - "90": "small_flame", - "91": "snowflake", - "92": "dripping_dripstone_lava", - "93": "falling_dripstone_lava", - "94": "dripping_dripstone_water", - "95": "falling_dripstone_water", - "96": "glow_squid_ink", - "97": "glow", - "98": "wax_on", - "99": "wax_off", - "100": "electric_spark", - "101": "scrape", - "102": "shriek", - "103": "egg_crack", - "104": "dust_plume", - "105": "trial_spawner_detected_player", - "106": "trial_spawner_detected_player_ominous", - "107": "vault_connection", - "108": "dust_pillar", - "109": "ominous_spawning", - "110": "raid_omen", - "111": "trial_omen", - "112": "block_crumble", - "113": "firefly" - } - } - ] - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "block": "varint", - "block_marker": "varint", - "falling_dust": "varint", - "dust_pillar": "varint", - "block_crumble": "varint", - "dust": [ + ], + "consumable": [ + "container", + [ + { + "name": "consume_seconds", + "type": "f32" + }, + { + "name": "animation", + "type": [ + "mapper", + { + "mappings": { + "0": "none", + "1": "eat", + "2": "drink", + "3": "block", + "4": "bow", + "5": "spear", + "6": "crossbow", + "7": "spyglass", + "8": "toot_horn", + "9": "brush", + "10": "bundle" + }, + "type": "varint" + } + ] + }, + { + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "makes_particles", + "type": "bool" + }, + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemConsumeEffect" + } + ] + } + ] + ], + "container": [ + "container", + [ + { + "name": "contents", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "container_loot": "anonymousNbt", + "cow/variant": "varint", + "creative_slot_lock": "void", + "custom_data": "anonymousNbt", + "custom_model_data": [ + "container", + [ + { + "name": "floats", + "type": [ + "array", + { + "countType": "varint", + "type": "f32" + } + ] + }, + { + "name": "flags", + "type": [ + "array", + { + "countType": "varint", + "type": "bool" + } + ] + }, + { + "name": "strings", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "colors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] + } + ] + ], + "custom_name": "anonymousNbt", + "damage": "varint", + "damage_resistant": "string", + "death_protection": [ + "container", + [ + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemConsumeEffect" + } + ] + } + ] + ], + "debug_stick_state": "anonymousNbt", + "dyed_color": "i32", + "enchantable": "varint", + "enchantment_glint_override": "bool", + "enchantments": [ + "container", + [ + { + "name": "enchantments", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "entity_data": "anonymousNbt", + "equippable": [ + "container", + [ + { + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "main_hand", + "1": "off_hand", + "2": "feet", + "3": "legs", + "4": "chest", + "5": "head", + "6": "body", + "7": "saddle" + }, + "type": "varint" + } + ] + }, + { + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "model", + "type": [ + "option", + "string" + ] + }, + { + "name": "cameraOverlay", + "type": [ + "option", + "string" + ] + }, + { + "name": "allowedEntities", + "type": [ + "option", + "IDSet" + ] + }, + { + "name": "dispensable", + "type": "bool" + }, + { + "name": "swappable", + "type": "bool" + }, + { + "name": "damageable", + "type": "bool" + }, + { + "name": "equipOnInteract", + "type": "bool" + } + ] + ], + "firework_explosion": "ItemFireworkExplosion", + "fireworks": [ + "container", + [ + { + "name": "flightDuration", + "type": "varint" + }, + { + "name": "explosions", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemFireworkExplosion" + } + ] + } + ] + ], + "food": [ + "container", + [ + { + "name": "nutrition", + "type": "varint" + }, + { + "name": "saturationModifier", + "type": "f32" + }, + { + "name": "canAlwaysEat", + "type": "bool" + } + ] + ], + "fox/variant": "varint", + "frog/variant": "varint", + "glider": "void", + "horse/variant": "varint", + "instrument": [ + "container", + [ + { + "name": "hasHolder", + "type": "bool" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "instrumentId", + "otherwise": { + "name": "data", + "type": "InstrumentData" + } + } + ] + } + } + ] + } + ] + ], + "intangible_projectile": "void", + "item_model": "string", + "item_name": "anonymousNbt", + "jukebox_playable": [ "container", [ { - "name": "red", - "type": "f32" + "name": "hasHolder", + "type": "bool" }, { - "name": "green", - "type": "f32" - }, + "name": "song", + "type": [ + "switch", + { + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "songId", + "otherwise": { + "name": "data", + "type": "JukeboxSongData" + } + } + ] + } + } + ] + } + ] + ], + "llama/variant": "varint", + "lock": "anonymousNbt", + "lodestone_tracker": [ + "container", + [ { - "name": "blue", - "type": "f32" + "name": "globalPosition", + "type": [ + "option", + [ + "container", + [ + { + "name": "dimension", + "type": "string" + }, + { + "name": "position", + "type": "position" + } + ] + ] + ] }, { - "name": "scale", - "type": "f32" + "name": "tracked", + "type": "bool" } ] ], - "dust_color_transition": [ + "lore": [ + "array", + { + "countType": "varint", + "type": "anonymousNbt" + } + ], + "map_color": "i32", + "map_decorations": "anonymousNbt", + "map_id": "varint", + "map_post_processing": "varint", + "max_damage": "varint", + "max_stack_size": "varint", + "mooshroom/variant": "varint", + "note_block_sound": "string", + "ominous_bottle_amplifier": "varint", + "painting/variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "data", + "type": "EntityMetadataPaintingVariant" + } + } + ], + "parrot/variant": "varint", + "pig/variant": "varint", + "pot_decorations": [ "container", [ { - "name": "fromRed", - "type": "f32" + "name": "decorations", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "potion_contents": [ + "container", + [ + { + "name": "potionId", + "type": [ + "option", + "varint" + ] }, { - "name": "fromGreen", - "type": "f32" + "name": "customColor", + "type": [ + "option", + "i32" + ] }, { - "name": "fromBlue", - "type": "f32" + "name": "customEffects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemPotionEffect" + } + ] }, { - "name": "scale", - "type": "f32" + "name": "customName", + "type": [ + "option", + "string" + ] + } + ] + ], + "potion_duration_scale": "f32", + "profile": [ + "container", + [ + { + "name": "name", + "type": [ + "option", + "string" + ] }, { - "name": "toRed", - "type": "f32" + "name": "uuid", + "type": [ + "option", + "UUID" + ] }, { - "name": "toGreen", - "type": "f32" + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + } + ] + ], + "provides_banner_patterns": "string", + "provides_trim_material": [ + "container", + [ + { + "name": "hasHolder", + "type": "bool" + }, + { + "name": "material", + "type": [ + "switch", + { + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "materialId", + "otherwise": { + "name": "data", + "type": "ArmorTrimMaterial" + } + } + ] + } + } + ] + } + ] + ], + "rabbit/variant": "varint", + "rarity": [ + "mapper", + { + "mappings": { + "0": "common", + "1": "uncommon", + "2": "rare", + "3": "epic" }, + "type": "varint" + } + ], + "recipes": "anonymousNbt", + "repair_cost": "varint", + "repairable": [ + "container", + [ { - "name": "toBlue", - "type": "f32" + "name": "items", + "type": "IDSet" } ] ], - "entity_effect": "i32", - "item": "Slot", - "sculk_charge": "f32", - "shriek": "varint", - "vibration": [ + "salmon/size": "varint", + "sheep/color": "varint", + "shulker/color": "varint", + "stored_enchantments": [ "container", [ { - "name": "positionType", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "block", - "1": "entity" - } - } - ] - }, - { - "name": "position", + "name": "enchantments", "type": [ - "switch", + "array", { - "compareTo": "positionType", - "fields": { - "block": "position", - "entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityEyeHeight", - "type": "f32" - } - ] + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } ] - } + ] } ] - }, - { - "name": "ticks", - "type": "varint" } ] ], - "trail": [ + "suspicious_stew_effects": [ "container", [ { - "name": "target", - "type": "vec3f64" - }, - { - "name": "color", - "type": "u8" - } - ] - ], - "tinted_leaves": "i32", - "firefly": "void" - } - } - ] - } - ] - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "soundSource": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "master", - "1": "music", - "2": "record", - "3": "weather", - "4": "block", - "5": "hostile", - "6": "neutral", - "7": "player", - "8": "ambient", - "9": "voice" - } - } - ], - "packedChunkPos": [ - "container", - [ - { - "name": "z", - "type": "i32" - }, - { - "name": "x", - "type": "i32" - } - ] - ], - "previousMessages": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] - } - ] - ] - } - ], - "entityMetadataEntry": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "byte", - "1": "int", - "2": "long", - "3": "float", - "4": "string", - "5": "component", - "6": "optional_component", - "7": "item_stack", - "8": "boolean", - "9": "rotations", - "10": "block_pos", - "11": "optional_block_pos", - "12": "direction", - "13": "optional_uuid", - "14": "block_state", - "15": "optional_block_state", - "16": "compound_tag", - "17": "particle", - "18": "particles", - "19": "villager_data", - "20": "optional_unsigned_int", - "21": "pose", - "22": "cat_variant", - "23": "cow_variant", - "24": "wolf_variant", - "25": "wolf_sound_variant", - "26": "frog_variant", - "27": "pig_variant", - "28": "chicken_variant", - "29": "optional_global_pos", - "30": "painting_variant", - "31": "sniffer_state", - "32": "armadillo_state", - "33": "vector3", - "34": "quaternion" - } - } - ] - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "byte": "i8", - "int": "varint", - "long": "varlong", - "float": "f32", - "string": "string", - "component": "anonymousNbt", - "optional_component": [ - "option", - "anonymousNbt" + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "effect", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + } + ] + ] + } + ] + } + ] ], - "item_stack": "Slot", - "boolean": "bool", - "rotations": [ + "tool": [ "container", [ { - "name": "pitch", - "type": "f32" + "name": "rules", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "blocks", + "type": "IDSet" + }, + { + "name": "speed", + "type": [ + "option", + "f32" + ] + }, + { + "name": "correctDropForBlocks", + "type": [ + "option", + "bool" + ] + } + ] + ] + } + ] }, { - "name": "yaw", + "name": "defaultMiningSpeed", "type": "f32" }, { - "name": "roll", - "type": "f32" + "name": "damagePerBlock", + "type": "varint" + }, + { + "name": "canDestroyBlocksInCreative", + "type": "bool" } ] ], - "block_pos": "position", - "optional_block_pos": [ - "option", - "position" - ], - "direction": "varint", - "optional_uuid": [ - "option", - "UUID" + "tooltip_display": [ + "container", + [ + { + "name": "hideTooltip", + "type": "bool" + }, + { + "name": "hiddenComponents", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] ], - "block_state": "varint", - "optional_block_state": "optvarint", - "compound_tag": "anonymousNbt", - "particle": "Particle", - "particles": [ - "array", - { - "countType": "varint", - "type": "Particle" - } + "tooltip_style": "string", + "trim": [ + "container", + [ + { + "name": "material", + "type": [ + "registryEntryHolder", + { + "baseName": "materialId", + "otherwise": { + "name": "data", + "type": "ArmorTrimMaterial" + } + } + ] + }, + { + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "ArmorTrimPattern" + } + } + ] + } + ] ], - "villager_data": [ + "tropical_fish/base_color": "varint", + "tropical_fish/pattern": "varint", + "tropical_fish/pattern_color": "varint", + "unbreakable": "void", + "use_cooldown": [ "container", [ { - "name": "villagerType", - "type": "varint" + "name": "seconds", + "type": "f32" }, { - "name": "villagerProfession", + "name": "cooldownGroup", + "type": [ + "option", + "string" + ] + } + ] + ], + "use_remainder": "Slot", + "villager/variant": "varint", + "weapon": [ + "container", + [ + { + "name": "itemDamagePerAttack", "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "disableBlockingForSeconds", + "type": "f32" } ] ], - "optional_unsigned_int": "optvarint", - "pose": "varint", - "cat_variant": "varint", - "cow_variant": "varint", - "wolf_variant": "varint", - "wolf_sound_variant": "varint", - "frog_variant": "varint", - "pig_variant": "varint", - "chicken_variant": "varint", - "optional_global_pos": [ - "option", - "string" - ], - "painting_variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "EntityMetadataPaintingVariant" + "wolf/collar": "varint", + "wolf/sound_variant": "varint", + "wolf/variant": "varint", + "writable_book_content": [ + "container", + [ + { + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBookPage" + } + ] } - } + ] ], - "sniffer_state": "varint", - "armadillo_state": "varint", - "vector3": "vec3f", - "quaternion": "vec4f" - } - } - ] - } - ] - ], - "EntityMetadataPaintingVariant": [ - "container", - [ - { - "name": "width", - "type": "i32" - }, - { - "name": "height", - "type": "i32" - }, - { - "name": "assetId", - "type": "string" - }, - { - "name": "title", - "type": [ - "option", - "anonymousNbt" - ] - }, - { - "name": "author", - "type": [ - "option", - "anonymousNbt" + "written_book_content": [ + "container", + [ + { + "name": "rawTitle", + "type": "string" + }, + { + "name": "filteredTitle", + "type": [ + "option", + "string" + ] + }, + { + "name": "author", + "type": "string" + }, + { + "name": "generation", + "type": "varint" + }, + { + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemWrittenBookPage" + } + ] + }, + { + "name": "resolved", + "type": "bool" + } + ] + ] + } + } ] } ] ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": "entityMetadataEntry" - } - ], - "tags": [ - "array", + "SlotComponentType": [ + "mapper", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] + "mappings": { + "0": "custom_data", + "1": "max_stack_size", + "2": "max_damage", + "3": "damage", + "4": "unbreakable", + "5": "custom_name", + "6": "item_name", + "7": "item_model", + "8": "lore", + "9": "rarity", + "10": "enchantments", + "11": "can_place_on", + "12": "can_break", + "13": "attribute_modifiers", + "14": "custom_model_data", + "15": "tooltip_display", + "16": "repair_cost", + "17": "creative_slot_lock", + "18": "enchantment_glint_override", + "19": "intangible_projectile", + "20": "food", + "21": "consumable", + "22": "use_remainder", + "23": "use_cooldown", + "24": "damage_resistant", + "25": "tool", + "26": "weapon", + "27": "enchantable", + "28": "equippable", + "29": "repairable", + "30": "glider", + "31": "tooltip_style", + "32": "death_protection", + "33": "blocks_attacks", + "34": "stored_enchantments", + "35": "dyed_color", + "36": "map_color", + "37": "map_id", + "38": "map_decorations", + "39": "map_post_processing", + "40": "charged_projectiles", + "41": "bundle_contents", + "42": "potion_contents", + "43": "potion_duration_scale", + "44": "suspicious_stew_effects", + "45": "writable_book_content", + "46": "written_book_content", + "47": "trim", + "48": "debug_stick_state", + "49": "entity_data", + "50": "bucket_entity_data", + "51": "block_entity_data", + "52": "instrument", + "53": "provides_trim_material", + "54": "ominous_bottle_amplifier", + "55": "jukebox_playable", + "56": "provides_banner_patterns", + "57": "recipes", + "58": "lodestone_tracker", + "59": "firework_explosion", + "60": "fireworks", + "61": "profile", + "62": "note_block_sound", + "63": "banner_patterns", + "64": "base_color", + "65": "pot_decorations", + "66": "container", + "67": "block_state", + "68": "bees", + "69": "lock", + "70": "container_loot", + "71": "break_sound", + "72": "villager/variant", + "73": "wolf/variant", + "74": "wolf/sound_variant", + "75": "wolf/collar", + "76": "fox/variant", + "77": "salmon/size", + "78": "parrot/variant", + "79": "tropical_fish/pattern", + "80": "tropical_fish/base_color", + "81": "tropical_fish/pattern_color", + "82": "mooshroom/variant", + "83": "rabbit/variant", + "84": "pig/variant", + "85": "cow/variant", + "86": "chicken/variant", + "87": "frog/variant", + "88": "horse/variant", + "89": "painting/variant", + "90": "llama/variant", + "91": "axolotl/variant", + "92": "cat/variant", + "93": "cat/collar", + "94": "sheep/color", + "95": "shulker/color" + }, + "type": "varint" } ], - "chunkBlockEntity": [ + "UUID": "native", + "UntrustedSlot": [ "container", [ + { + "name": "itemCount", + "type": "varint" + }, { "anon": true, "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false + "switch", + { + "compareTo": "itemCount", + "default": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "removedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "UntrustedSlotComponent" + } + ] + }, + { + "name": "removeComponents", + "type": [ + "array", + { + "count": "removedComponentCount", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] + } + ] + ], + "fields": { + "0": "void", + "false": "void" } - ] + } ] - }, - { - "name": "y", - "type": "i16" - }, + } + ] + ], + "UntrustedSlotComponent": [ + "container", + [ { "name": "type", - "type": "varint" + "type": "SlotComponentType" }, { - "name": "nbtData", - "type": "anonOptionalNbt" + "name": "data", + "type": "ByteArray" } ] ], + "anonOptionalNbt": "native", + "anonymousNbt": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", "chat_session": [ "option", [ @@ -2704,42 +2273,39 @@ } ] ] - ], - "game_profile": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } + ], + "chunkBlockEntity": [ + "container", + [ + { + "anon": true, + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 + } + ] ] + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" } ] ], @@ -2753,28 +2319,28 @@ [ { "name": "unused", - "size": 3, - "signed": false + "signed": false, + "size": 3 }, { "name": "has_custom_suggestions", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_redirect_node", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "command_node_type", - "size": 2, - "signed": false + "signed": false, + "size": 2 } ] ] @@ -2795,10 +2361,10 @@ "switch", { "compareTo": "flags/has_redirect_node", + "default": "void", "fields": { "1": "varint" - }, - "default": "void" + } } ] }, @@ -2831,7 +2397,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "brigadier:bool", "1": "brigadier:float", @@ -2888,7 +2453,8 @@ "52": "minecraft:loot_predicate", "53": "minecraft:loot_modifier", "54": "minecraft:uuid" - } + }, + "type": "varint" } ] }, @@ -2900,7 +2466,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -2910,18 +2476,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -2932,10 +2498,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -2945,16 +2511,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -2964,18 +2530,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -2986,10 +2552,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -2999,10 +2565,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -3018,18 +2584,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -3040,10 +2606,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -3053,10 +2619,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -3072,18 +2638,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -3094,10 +2660,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -3107,10 +2673,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -3119,45 +2685,52 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:gamemode": "void", + "minecraft:heightmap": "void", + "minecraft:int_range": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", "minecraft:nbt": "void", "minecraft:nbt_path": "void", @@ -3165,43 +2738,25 @@ "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", + "minecraft:resource": [ + "container", [ { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false + "name": "registry", + "type": "string" } ] ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:dimension": "void", - "minecraft:gamemode": "void", - "minecraft:time": [ + "minecraft:resource_key": [ "container", [ { - "name": "min", - "type": "i32" + "name": "registry", + "type": "string" } ] ], + "minecraft:resource_location": "void", "minecraft:resource_or_tag": [ "container", [ @@ -3220,7 +2775,7 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_selector": [ "container", [ { @@ -3229,136 +2784,333 @@ } ] ], - "minecraft:resource_key": [ - "container", + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", [ { - "name": "registry", - "type": "string" + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 } ] ], - "minecraft:resource_selector": [ + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:template_mirror": "void", + "minecraft:template_rotation": "void", + "minecraft:time": [ "container", [ { - "name": "registry", - "type": "string" + "name": "min", + "type": "i32" } ] ], - "minecraft:template_mirror": "void", - "minecraft:template_rotation": "void", - "minecraft:heightmap": "void", - "minecraft:uuid": "void" + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" + } + } + ] + }, + { + "name": "suggestionType", + "type": [ + "switch", + { + "compareTo": "../flags/has_custom_suggestions", + "default": "void", + "fields": { + "1": "string" } } ] + } + ] + ] + } + } + ] + } + ] + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": "entityMetadataEntry" + } + ], + "entityMetadataEntry": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "compound_tag", + "17": "particle", + "18": "particles", + "19": "villager_data", + "20": "optional_unsigned_int", + "21": "pose", + "22": "cat_variant", + "23": "cow_variant", + "24": "wolf_variant", + "25": "wolf_sound_variant", + "26": "frog_variant", + "27": "pig_variant", + "28": "chicken_variant", + "29": "optional_global_pos", + "30": "painting_variant", + "31": "sniffer_state", + "32": "armadillo_state", + "33": "vector3", + "34": "quaternion" + }, + "type": "varint" + } + ] + }, + { + "name": "value", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "armadillo_state": "varint", + "block_pos": "position", + "block_state": "varint", + "boolean": "bool", + "byte": "i8", + "cat_variant": "varint", + "chicken_variant": "varint", + "component": "anonymousNbt", + "compound_tag": "anonymousNbt", + "cow_variant": "varint", + "direction": "varint", + "float": "f32", + "frog_variant": "varint", + "int": "varint", + "item_stack": "Slot", + "long": "varlong", + "optional_block_pos": [ + "option", + "position" + ], + "optional_block_state": "optvarint", + "optional_component": [ + "option", + "anonymousNbt" + ], + "optional_global_pos": [ + "option", + "string" + ], + "optional_unsigned_int": "optvarint", + "optional_uuid": [ + "option", + "UUID" + ], + "painting_variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "EntityMetadataPaintingVariant" + } + } + ], + "particle": "Particle", + "particles": [ + "array", + { + "countType": "varint", + "type": "Particle" + } + ], + "pig_variant": "varint", + "pose": "varint", + "quaternion": "vec4f", + "rotations": [ + "container", + [ + { + "name": "pitch", + "type": "f32" }, { - "name": "suggestionType", - "type": [ - "switch", - { - "compareTo": "../flags/has_custom_suggestions", - "fields": { - "1": "string" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" } ] - ] + ], + "sniffer_state": "varint", + "string": "string", + "vector3": "vec3f", + "villager_data": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "wolf_sound_variant": "varint", + "wolf_variant": "varint" } } ] } ] ], - "packet_common_settings": [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "game_profile": [ "container", [ { - "name": "locale", + "name": "name", "type": "string" }, { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" - }, - { - "name": "enableTextFiltering", - "type": "bool" - }, - { - "name": "enableServerListing", - "type": "bool" - }, - { - "name": "particleStatus", + "name": "properties", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0": "all", - "1": "decreased", - "2": "minimal" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], - "packet_common_cookie_request": [ + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ], + "option": "native", + "optvarint": "varint", + "packedChunkPos": [ "container", [ { - "name": "cookie", - "type": "string" + "name": "z", + "type": "i32" + }, + { + "name": "x", + "type": "i32" } ] ], - "packet_common_store_cookie": [ + "packet_common_add_resource_pack": [ "container", [ { - "name": "key", + "name": "uuid", + "type": "UUID" + }, + { + "name": "url", "type": "string" }, { - "name": "value", - "type": "ByteArray" + "name": "hash", + "type": "string" + }, + { + "name": "forced", + "type": "bool" + }, + { + "name": "promptMessage", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "packet_common_transfer": [ + "packet_common_cookie_request": [ "container", [ { - "name": "host", + "name": "cookie", "type": "string" - }, - { - "name": "port", - "type": "varint" } ] ], @@ -3378,37 +3130,6 @@ } ] ], - "packet_common_select_known_packs": [ - "container", - [ - { - "name": "packs", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "namespace", - "type": "string" - }, - { - "name": "id", - "type": "string" - }, - { - "name": "version", - "type": "string" - } - ] - ] - } - ] - } - ] - ], "packet_common_custom_report_details": [ "container", [ @@ -3443,56 +3164,41 @@ "name": "uuid", "type": [ "option", - "UUID" - ] - } - ] - ], - "packet_common_add_resource_pack": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "url", - "type": "string" - }, - { - "name": "hash", - "type": "string" - }, - { - "name": "forced", - "type": "bool" - }, - { - "name": "promptMessage", - "type": [ - "option", - "anonymousNbt" + "UUID" ] } ] ], - "ServerLinkType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "bug_report", - "1": "community_guidelines", - "2": "support", - "3": "status", - "4": "feedback", - "5": "community", - "6": "website", - "7": "forums", - "8": "news", - "9": "announcements" + "packet_common_select_known_packs": [ + "container", + [ + { + "name": "packs", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "namespace", + "type": "string" + }, + { + "name": "id", + "type": "string" + }, + { + "name": "version", + "type": "string" + } + ] + ] + } + ] } - } + ] ], "packet_common_server_links": [ "container", @@ -3544,198 +3250,129 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": {} - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, + ], + "packet_common_settings": [ + "container", + [ + { + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", + "type": "varint" + }, + { + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" + }, + { + "name": "enableTextFiltering", + "type": "bool" + }, + { + "name": "enableServerListing", + "type": "bool" + }, + { + "name": "particleStatus", + "type": [ + "mapper", { - "name": "nextState", + "mappings": { + "0": "all", + "1": "decreased", + "2": "minimal" + }, "type": "varint" } ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } - } - ] - } - ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ + } + ] + ], + "packet_common_store_cookie": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "ByteArray" + } + ] + ], + "packet_common_transfer": [ + "container", + [ + { + "name": "host", + "type": "string" + }, + { + "name": "port", + "type": "varint" + } + ] + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "previousMessages": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } - } - ] + "name": "id", + "type": "varint" }, { - "name": "params", + "name": "signature", "type": [ "switch", { - "compareTo": "name", + "compareTo": "id", + "default": "void", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "0": [ + "buffer", + { + "count": 256 + } + ] } } ] @@ -3743,119 +3380,175 @@ ] ] } - } - }, - "login": { - "toClient": { - "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_encryption_begin": [ - "container", - [ - { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "verifyToken", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "shouldAuthenticate", - "type": "bool" - } - ] - ], - "packet_success": [ + ], + "pstring": "native", + "registryEntryHolder": "native", + "registryEntryHolderSet": "native", + "restBuffer": "native", + "soundSource": [ + "mapper", + { + "mappings": { + "0": "master", + "1": "music", + "2": "record", + "3": "weather", + "4": "block", + "5": "hostile", + "6": "neutral", + "7": "player", + "8": "ambient", + "9": "voice" + }, + "type": "varint" + } + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "uuid", - "type": "UUID" - }, - { - "name": "username", + "name": "tagName", "type": "string" }, { - "name": "properties", + "name": "entries", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] + "type": "varint" } ] } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], - "packet_login_plugin_request": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec2f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + } + ] + ], + "vec3f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + } + ] + ], + "vec3f64": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "vec3i": [ + "container", + [ + { + "name": "x", + "type": "varint" + }, + { + "name": "y", + "type": "varint" + }, + { + "name": "z", + "type": "varint" + } + ] + ], + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "vec4f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "w", + "type": "f32" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { "packet": [ "container", [ @@ -3864,15 +3557,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request", - "0x05": "cookie_request" - } + "mappings": {}, + "type": "varint" } ] }, @@ -3882,14 +3568,7 @@ "switch", { "compareTo": "name", - "fields": { - "disconnect": "packet_disconnect", - "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request", - "cookie_request": "packet_common_cookie_request" - } + "fields": {} } ] } @@ -3899,62 +3578,73 @@ }, "toServer": { "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - }, - { - "name": "playerUUID", - "type": "UUID" - } - ] - ], - "packet_encryption_begin": [ + "packet": [ "container", [ { - "name": "sharedSecret", + "name": "name", "type": [ - "buffer", + "mapper", { - "countType": "varint" + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" } ] }, { - "name": "verifyToken", + "name": "params", "type": [ - "buffer", + "switch", { - "countType": "varint" + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } } ] } ] ], - "packet_login_plugin_response": [ + "packet_legacy_server_list_ping": [ "container", [ { - "name": "messageId", + "name": "payload", + "type": "u8" + } + ] + ], + "packet_set_protocol": [ + "container", + [ + { + "name": "protocolVersion", "type": "varint" }, { - "name": "data", - "type": [ - "option", - "restBuffer" - ] + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], - "packet_login_acknowledged": [ - "container", - [] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -3963,14 +3653,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response", - "0x03": "login_acknowledged", - "0x04": "cookie_response" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -3981,147 +3668,86 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response", - "login_acknowledged": "packet_login_acknowledged", - "cookie_response": "packet_common_cookie_response" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - } - }, - "configuration": { - "toClient": { - "types": { - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] ], - "packet_keep_alive": [ + "packet_ping": [ "container", [ { - "name": "keepAliveId", + "name": "time", "type": "i64" } ] ], - "packet_ping": [ + "packet_server_info": [ "container", [ { - "name": "id", - "type": "i32" + "name": "response", + "type": "string" } ] - ], - "packet_reset_chat": [ - "container", - [] - ], - "packet_registry_data": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "id", - "type": "string" - }, - { - "name": "entries", + "name": "name", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] + "mappings": { + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" } ] - } - ] - ], - "packet_feature_flags": [ - "container", - [ + }, { - "name": "features", + "name": "params", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } } ] } ] ], - "packet_tags": [ + "packet_ping": [ "container", [ { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] - } - ] + "name": "time", + "type": "i64" } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -4130,26 +3756,15 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links" - } + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request", + "0x05": "cookie_request" + }, + "type": "varint" } ] }, @@ -4160,69 +3775,85 @@ { "compareTo": "name", "fields": { + "compress": "packet_compress", "cookie_request": "packet_common_cookie_request", - "custom_payload": "packet_custom_payload", "disconnect": "packet_disconnect", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "reset_chat": "packet_reset_chat", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "store_cookie": "packet_common_store_cookie", - "transfer": "packet_common_transfer", - "feature_flags": "packet_feature_flags", - "tags": "packet_tags", - "select_known_packs": "packet_common_select_known_packs", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links" + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_custom_payload": [ + ], + "packet_compress": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "threshold", + "type": "varint" } ] ], - "packet_finish_configuration": [ + "packet_disconnect": [ "container", - [] + [ + { + "name": "reason", + "type": "string" + } + ] ], - "packet_keep_alive": [ + "packet_encryption_begin": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "serverId", + "type": "string" + }, + { + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "shouldAuthenticate", + "type": "bool" } ] ], - "packet_pong": [ + "packet_login_plugin_request": [ "container", [ { - "name": "id", - "type": "i32" + "name": "messageId", + "type": "varint" + }, + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_resource_pack_receive": [ + "packet_success": [ "container", [ { @@ -4230,11 +3861,44 @@ "type": "UUID" }, { - "name": "result", - "type": "varint" + "name": "username", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -4243,19 +3907,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_report_details", - "0x09": "server_links" - } + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response", + "0x03": "login_acknowledged", + "0x04": "cookie_response" + }, + "type": "varint" } ] }, @@ -4266,407 +3925,206 @@ { "compareTo": "name", "fields": { - "settings": "packet_common_settings", "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links" + "encryption_begin": "packet_encryption_begin", + "login_acknowledged": "packet_login_acknowledged", + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "SlotDisplay": [ + ], + "packet_encryption_begin": [ "container", [ { - "name": "type", + "name": "sharedSecret", "type": [ - "mapper", + "buffer", { - "type": "varint", - "mappings": { - "0": "empty", - "1": "any_fuel", - "2": "item", - "3": "item_stack", - "4": "tag", - "5": "smithing_trim", - "6": "with_remainder", - "7": "composite" - } + "countType": "varint" + } + ] + }, + { + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" } ] + } + ] + ], + "packet_login_acknowledged": [ + "container", + [] + ], + "packet_login_plugin_response": [ + "container", + [ + { + "name": "messageId", + "type": "varint" }, { "name": "data", "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "empty": "void", - "any_fuel": "void", - "item": "varint", - "item_stack": "Slot", - "tag": "string", - "smithing_trim": [ - "container", - [ - { - "name": "base", - "type": "SlotDisplay" - }, - { - "name": "material", - "type": "SlotDisplay" - }, - { - "name": "pattern", - "type": [ - "registryEntryHolder", - { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "ArmorTrimPattern" - } - } - ] - } - ] - ], - "with_remainder": [ - "container", - [ - { - "name": "input", - "type": "SlotDisplay" - }, - { - "name": "remainder", - "type": "SlotDisplay" - } - ] - ], - "composite": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - } - } + "option", + "restBuffer" ] } ] ], - "RecipeDisplay": [ + "packet_login_start": [ "container", [ { - "name": "type", + "name": "username", + "type": "string" + }, + { + "name": "playerUUID", + "type": "UUID" + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "crafting_shapeless", - "1": "crafting_shaped", - "2": "furnace", - "3": "stonecutter", - "4": "smithing" - } + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links" + }, + "type": "varint" } ] }, { - "name": "data", + "name": "params", "type": [ "switch", { - "compareTo": "type", + "compareTo": "name", "fields": { - "crafting_shapeless": [ - "container", - [ - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "furnace": [ - "container", - [ - { - "name": "ingredient", - "type": "SlotDisplay" - }, - { - "name": "fuel", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "experience", - "type": "f32" - } - ] - ], - "stonecutter": [ - "container", - [ - { - "name": "ingredient", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "smithing": [ - "container", - [ - { - "name": "template", - "type": "SlotDisplay" - }, - { - "name": "base", - "type": "SlotDisplay" - }, - { - "name": "addition", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ] + "add_resource_pack": "packet_common_add_resource_pack", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" } } ] } ] ], - "SpawnInfo": [ + "packet_custom_payload": [ "container", [ { - "name": "dimension", - "type": "varint" - }, - { - "name": "name", + "name": "channel", "type": "string" }, { - "name": "hashedSeed", - "type": "i64" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_disconnect": [ + "container", + [ { - "name": "gamemode", + "name": "reason", + "type": "anonymousNbt" + } + ] + ], + "packet_feature_flags": [ + "container", + [ + { + "name": "features", "type": [ - "mapper", + "array", { - "type": "i8", - "mappings": { - "0": "survival", - "1": "creative", - "2": "adventure", - "3": "spectator" - } + "countType": "varint", + "type": "string" } ] - }, - { - "name": "previousGamemode", - "type": "u8" - }, - { - "name": "isDebug", - "type": "bool" - }, - { - "name": "isFlat", - "type": "bool" - }, - { - "name": "death", - "type": [ - "option", - [ - "container", - [ - { - "name": "dimensionName", - "type": "string" - }, - { - "name": "location", - "type": "position" - } - ] - ] - ] - }, - { - "name": "portalCooldown", - "type": "varint" - }, - { - "name": "seaLevel", - "type": "varint" } ] ], - "packet_spawn_entity": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "objectData", - "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_animation": [ + "packet_ping": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "animation", - "type": "u8" + "name": "id", + "type": "i32" } ] ], - "packet_statistics": [ + "packet_registry_data": [ "container", [ + { + "name": "id", + "type": "string" + }, { "name": "entries", "type": [ @@ -4677,16 +4135,46 @@ "container", [ { - "name": "categoryId", - "type": "varint" + "name": "key", + "type": "string" }, { - "name": "statisticId", - "type": "varint" + "name": "value", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] + } + ] + } + ] + ], + "packet_reset_chat": [ + "container", + [] + ], + "packet_tags": [ + "container", + [ + { + "name": "tags", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" }, { - "name": "value", - "type": "varint" + "name": "tags", + "type": "tags" } ] ] @@ -4694,690 +4182,1283 @@ ] } ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_report_details", + "0x09": "server_links" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "cookie_response": "packet_common_cookie_response", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "settings": "packet_common_settings" + } + } + ] + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] ], - "packet_acknowledge_player_digging": [ + "packet_pong": [ "container", [ { - "name": "sequenceId", - "type": "varint" + "name": "id", + "type": "i32" } ] ], - "packet_block_break_animation": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "location", - "type": "position" + "name": "uuid", + "type": "UUID" }, { - "name": "destroyStage", - "type": "i8" + "name": "result", + "type": "varint" } ] - ], - "packet_tile_entity_data": [ + ] + } + } + }, + "play": { + "toClient": { + "types": { + "ChatType": [ "container", [ { - "name": "location", - "type": "position" + "name": "translationKey", + "type": "string" }, { - "name": "action", - "type": "varint" + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "ChatTypeParameterType" + } + ] }, { - "name": "nbtData", - "type": "anonOptionalNbt" + "name": "style", + "type": "anonymousNbt" } ] ], - "packet_block_action": [ + "ChatTypeParameterType": [ + "mapper", + { + "mappings": { + "0": "content", + "1": "sender", + "2": "target" + }, + "type": "varint" + } + ], + "ChatTypes": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "byte1", - "type": "u8" - }, - { - "name": "byte2", - "type": "u8" + "name": "chat", + "type": "ChatType" }, { - "name": "blockId", - "type": "varint" + "name": "narration", + "type": "ChatType" } ] ], - "packet_block_change": [ + "ChatTypesHolder": [ + "registryEntryHolder", + { + "baseName": "chatType", + "otherwise": { + "name": "data", + "type": "ChatTypes" + } + } + ], + "PositionUpdateRelatives": [ + "bitflags", + { + "flags": [ + "x", + "y", + "z", + "yaw", + "pitch", + "dx", + "dy", + "dz", + "yawDelta" + ], + "type": "u32" + } + ], + "RecipeDisplay": [ "container", [ { - "name": "location", - "type": "position" + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "crafting_shapeless", + "1": "crafting_shaped", + "2": "furnace", + "3": "stonecutter", + "4": "smithing" + }, + "type": "varint" + } + ] }, { - "name": "type", - "type": "varint" + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ] + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "crafting_shapeless": [ + "container", + [ + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ] + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "furnace": [ + "container", + [ + { + "name": "ingredient", + "type": "SlotDisplay" + }, + { + "name": "fuel", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "experience", + "type": "f32" + } + ] + ], + "smithing": [ + "container", + [ + { + "name": "template", + "type": "SlotDisplay" + }, + { + "name": "base", + "type": "SlotDisplay" + }, + { + "name": "addition", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "stonecutter": [ + "container", + [ + { + "name": "ingredient", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ] + } + } + ] } ] ], - "packet_boss_bar": [ + "SlotDisplay": [ "container", [ { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "title", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "anonymousNbt", - "3": "anonymousNbt" - }, - "default": "void" - } - ] - }, - { - "name": "health", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "color", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "dividers", + "name": "type", "type": [ - "switch", + "mapper", { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" + "mappings": { + "0": "empty", + "1": "any_fuel", + "2": "item", + "3": "item_stack", + "4": "tag", + "5": "smithing_trim", + "6": "with_remainder", + "7": "composite" }, - "default": "void" + "type": "varint" } ] }, { - "name": "flags", + "name": "data", "type": [ "switch", { - "compareTo": "action", + "compareTo": "type", "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] - } - ] - ], - "packet_difficulty": [ - "container", - [ - { - "name": "difficulty", - "type": "u8" - }, - { - "name": "difficultyLocked", - "type": "bool" - } - ] - ], - "packet_chunk_batch_finished": [ - "container", - [ - { - "name": "batchSize", - "type": "varint" - } - ] - ], - "packet_chunk_batch_start": [ - "container", - [] - ], - "packet_chunk_biomes": [ - "container", - [ - { - "name": "biomes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "position", - "type": "packedChunkPos" - }, + "any_fuel": "void", + "composite": [ + "array", { - "name": "data", - "type": "ByteArray" + "countType": "varint", + "type": "SlotDisplay" } + ], + "empty": "void", + "item": "varint", + "item_stack": "Slot", + "smithing_trim": [ + "container", + [ + { + "name": "base", + "type": "SlotDisplay" + }, + { + "name": "material", + "type": "SlotDisplay" + }, + { + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "ArmorTrimPattern" + } + } + ] + } + ] + ], + "tag": "string", + "with_remainder": [ + "container", + [ + { + "name": "input", + "type": "SlotDisplay" + }, + { + "name": "remainder", + "type": "SlotDisplay" + } + ] ] - ] + } } ] } ] ], - "packet_clear_titles": [ - "container", - [ - { - "name": "reset", - "type": "bool" - } - ] - ], - "packet_tab_complete": [ + "SpawnInfo": [ "container", [ { - "name": "transactionId", + "name": "dimension", "type": "varint" }, { - "name": "start", - "type": "varint" + "name": "name", + "type": "string" }, { - "name": "length", - "type": "varint" + "name": "hashedSeed", + "type": "i64" }, { - "name": "matches", + "name": "gamemode", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] + "mappings": { + "0": "survival", + "1": "creative", + "2": "adventure", + "3": "spectator" + }, + "type": "i8" } ] - } - ] - ], - "packet_declare_commands": [ - "container", - [ + }, { - "name": "nodes", + "name": "previousGamemode", + "type": "u8" + }, + { + "name": "isDebug", + "type": "bool" + }, + { + "name": "isFlat", + "type": "bool" + }, + { + "name": "death", "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } + "option", + [ + "container", + [ + { + "name": "dimensionName", + "type": "string" + }, + { + "name": "location", + "type": "position" + } + ] + ] ] }, { - "name": "rootIndex", + "name": "portalCooldown", "type": "varint" - } - ] - ], - "packet_close_window": [ - "container", - [ + }, { - "name": "windowId", - "type": "ContainerID" + "name": "seaLevel", + "type": "varint" } ] ], - "packet_window_items": [ + "packet": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "animation", + "0x03": "statistics", + "0x04": "acknowledge_player_digging", + "0x05": "block_break_animation", + "0x06": "tile_entity_data", + "0x07": "block_action", + "0x08": "block_change", + "0x09": "boss_bar", + "0x0a": "difficulty", + "0x0b": "chunk_batch_finished", + "0x0c": "chunk_batch_start", + "0x0d": "chunk_biomes", + "0x0e": "clear_titles", + "0x0f": "tab_complete", + "0x10": "declare_commands", + "0x11": "close_window", + "0x12": "window_items", + "0x13": "craft_progress_bar", + "0x14": "set_slot", + "0x15": "cookie_request", + "0x16": "set_cooldown", + "0x17": "chat_suggestions", + "0x18": "custom_payload", + "0x19": "damage_event", + "0x1a": "debug_sample", + "0x1b": "hide_message", + "0x1c": "kick_disconnect", + "0x1d": "profileless_chat", + "0x1e": "entity_status", + "0x1f": "sync_entity_position", + "0x20": "explosion", + "0x21": "unload_chunk", + "0x22": "game_state_change", + "0x23": "open_horse_window", + "0x24": "hurt_animation", + "0x25": "initialize_world_border", + "0x26": "keep_alive", + "0x27": "map_chunk", + "0x28": "world_event", + "0x29": "world_particles", + "0x2a": "update_light", + "0x2b": "login", + "0x2c": "map", + "0x2d": "trade_list", + "0x2e": "rel_entity_move", + "0x2f": "entity_move_look", + "0x30": "move_minecart", + "0x31": "entity_look", + "0x32": "vehicle_move", + "0x33": "open_book", + "0x34": "open_window", + "0x35": "open_sign_entity", + "0x36": "ping", + "0x37": "ping_response", + "0x38": "craft_recipe_response", + "0x39": "abilities", + "0x3a": "player_chat", + "0x3b": "end_combat_event", + "0x3c": "enter_combat_event", + "0x3d": "death_combat_event", + "0x3e": "player_remove", + "0x3f": "player_info", + "0x40": "face_player", + "0x41": "position", + "0x42": "player_rotation", + "0x43": "recipe_book_add", + "0x44": "recipe_book_remove", + "0x45": "recipe_book_settings", + "0x46": "entity_destroy", + "0x47": "remove_entity_effect", + "0x48": "reset_score", + "0x49": "remove_resource_pack", + "0x4a": "add_resource_pack", + "0x4b": "respawn", + "0x4c": "entity_head_rotation", + "0x4d": "multi_block_change", + "0x4e": "select_advancement_tab", + "0x4f": "server_data", + "0x50": "action_bar", + "0x51": "world_border_center", + "0x52": "world_border_lerp_size", + "0x53": "world_border_size", + "0x54": "world_border_warning_delay", + "0x55": "world_border_warning_reach", + "0x56": "camera", + "0x57": "update_view_position", + "0x58": "update_view_distance", + "0x59": "set_cursor_item", + "0x5a": "spawn_position", + "0x5b": "scoreboard_display_objective", + "0x5c": "entity_metadata", + "0x5d": "attach_entity", + "0x5e": "entity_velocity", + "0x5f": "entity_equipment", + "0x60": "experience", + "0x61": "update_health", + "0x62": "held_item_slot", + "0x63": "scoreboard_objective", + "0x64": "set_passengers", + "0x65": "set_player_inventory", + "0x66": "teams", + "0x67": "scoreboard_score", + "0x68": "simulation_distance", + "0x69": "set_title_subtitle", + "0x6a": "update_time", + "0x6b": "set_title_text", + "0x6c": "set_title_time", + "0x6d": "entity_sound_effect", + "0x6e": "sound_effect", + "0x6f": "start_configuration", + "0x70": "stop_sound", + "0x71": "store_cookie", + "0x72": "system_chat", + "0x73": "playerlist_header", + "0x74": "nbt_query_response", + "0x75": "collect", + "0x76": "entity_teleport", + "0x77": "test_instance_block_status", + "0x78": "set_ticking_state", + "0x79": "step_tick", + "0x7a": "transfer", + "0x7b": "advancements", + "0x7c": "entity_update_attributes", + "0x7d": "entity_effect", + "0x7e": "declare_recipes", + "0x7f": "tags", + "0x80": "set_projectile_power", + "0x81": "custom_report_details", + "0x82": "server_links" + }, + "type": "varint" + } + ] }, { - "name": "items", + "name": "params", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "Slot" + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "add_resource_pack": "packet_common_add_resource_pack", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "bundle_delimiter": "void", + "camera": "packet_camera", + "chat_suggestions": "packet_chat_suggestions", + "chunk_batch_finished": "packet_chunk_batch_finished", + "chunk_batch_start": "packet_chunk_batch_start", + "chunk_biomes": "packet_chunk_biomes", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "cookie_request": "packet_common_cookie_request", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "damage_event": "packet_damage_event", + "death_combat_event": "packet_death_combat_event", + "debug_sample": "packet_debug_sample", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "hide_message": "packet_hide_message", + "hurt_animation": "packet_hurt_animation", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "move_minecart": "packet_move_minecart", + "multi_block_change": "packet_multi_block_change", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "ping_response": "packet_ping_response", + "player_chat": "packet_player_chat", + "player_info": "packet_player_info", + "player_remove": "packet_player_remove", + "player_rotation": "packet_player_rotation", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "profileless_chat": "packet_profileless_chat", + "recipe_book_add": "packet_recipe_book_add", + "recipe_book_remove": "packet_recipe_book_remove", + "recipe_book_settings": "packet_recipe_book_settings", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_score": "packet_reset_score", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "server_data": "packet_server_data", + "server_links": "packet_common_server_links", + "set_cooldown": "packet_set_cooldown", + "set_cursor_item": "packet_set_cursor_item", + "set_passengers": "packet_set_passengers", + "set_player_inventory": "packet_set_player_inventory", + "set_projectile_power": "packet_set_projectile_power", + "set_slot": "packet_set_slot", + "set_ticking_state": "packet_set_ticking_state", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_position": "packet_spawn_position", + "start_configuration": "packet_start_configuration", + "statistics": "packet_statistics", + "step_tick": "packet_step_tick", + "stop_sound": "packet_stop_sound", + "store_cookie": "packet_common_store_cookie", + "sync_entity_position": "packet_sync_entity_position", + "system_chat": "packet_system_chat", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "test_instance_block_status": "packet_test_instance_block_status", + "tile_entity_data": "packet_tile_entity_data", + "trade_list": "packet_trade_list", + "transfer": "packet_common_transfer", + "unload_chunk": "packet_unload_chunk", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } } ] - }, - { - "name": "carriedItem", - "type": "Slot" } ] ], - "packet_craft_progress_bar": [ + "packet_abilities": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "flags", + "type": "i8" }, { - "name": "property", - "type": "i16" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "value", - "type": "i16" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_set_slot": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", + "name": "sequenceId", "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" } ] ], - "packet_set_cooldown": [ + "packet_action_bar": [ "container", [ { - "name": "cooldownGroup", - "type": "string" - }, - { - "name": "cooldownTicks", - "type": "varint" + "name": "text", + "type": "anonymousNbt" } ] ], - "packet_chat_suggestions": [ + "packet_advancements": [ "container", [ { - "name": "action", - "type": "varint" + "name": "reset", + "type": "bool" }, { - "name": "entries", + "name": "advancementMapping", "type": [ "array", { "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_damage_event": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "sourceTypeId", - "type": "varint" - }, - { - "name": "sourceCauseId", - "type": "varint" - }, - { - "name": "sourceDirectId", - "type": "varint" - }, - { - "name": "sourcePosition", - "type": [ - "option", - "vec3f64" + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "container", + [ + { + "name": "parentId", + "type": [ + "option", + "string" + ] + }, + { + "name": "displayData", + "type": [ + "option", + [ + "container", + [ + { + "name": "title", + "type": "anonymousNbt" + }, + { + "name": "description", + "type": "anonymousNbt" + }, + { + "name": "icon", + "type": "Slot" + }, + { + "name": "frameType", + "type": "varint" + }, + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 29 + }, + { + "name": "hidden", + "signed": false, + "size": 1 + }, + { + "name": "show_toast", + "signed": false, + "size": 1 + }, + { + "name": "has_background_texture", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "backgroundTexture", + "type": [ + "switch", + { + "compareTo": "flags/has_background_texture", + "default": "void", + "fields": { + "1": "string" + } + } + ] + }, + { + "name": "xCord", + "type": "f32" + }, + { + "name": "yCord", + "type": "f32" + } + ] + ] + ] + }, + { + "name": "requirements", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + }, + { + "name": "sendsTelemtryData", + "type": "bool" + } + ] + ] + } + ] + ] + } ] - } - ] - ], - "packet_debug_sample": [ - "container", - [ + }, { - "name": "sample", + "name": "identifiers", "type": [ "array", { "countType": "varint", - "type": "i64" + "type": "string" } ] }, { - "name": "type", - "type": "varint" - } - ] - ], - "packet_hide_message": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "signature", + "name": "progressMapping", "type": [ - "switch", + "array", { - "compareTo": "id", - "fields": { - "0": [ - "buffer", + "countType": "varint", + "type": [ + "container", + [ { - "count": 256 + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "criterionIdentifier", + "type": "string" + }, + { + "name": "criterionProgress", + "type": [ + "option", + "i64" + ] + } + ] + ] + } + ] } ] - }, - "default": "void" + ] } ] - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ + }, { - "name": "reason", - "type": "anonymousNbt" + "name": "showAdvancements", + "type": "bool" } ] ], - "ChatTypeParameterType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "content", - "1": "sender", - "2": "target" - } - } - ], - "ChatType": [ + "packet_animation": [ "container", [ { - "name": "translationKey", - "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "ChatTypeParameterType" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "style", - "type": "anonymousNbt" + "name": "animation", + "type": "u8" } ] ], - "ChatTypes": [ + "packet_attach_entity": [ "container", [ { - "name": "chat", - "type": "ChatType" + "name": "entityId", + "type": "i32" }, { - "name": "narration", - "type": "ChatType" + "name": "vehicleId", + "type": "i32" } ] ], - "ChatTypesHolder": [ - "registryEntryHolder", - { - "baseName": "chatType", - "otherwise": { - "name": "data", - "type": "ChatTypes" - } - } - ], - "packet_profileless_chat": [ + "packet_block_action": [ "container", [ { - "name": "message", - "type": "anonymousNbt" + "name": "location", + "type": "position" }, { - "name": "type", - "type": "ChatTypesHolder" + "name": "byte1", + "type": "u8" }, { - "name": "name", - "type": "anonymousNbt" + "name": "byte2", + "type": "u8" }, { - "name": "target", - "type": [ - "option", - "anonymousNbt" - ] + "name": "blockId", + "type": "varint" } ] ], - "packet_entity_status": [ + "packet_block_break_animation": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", "type": "i8" } ] ], - "packet_sync_entity_position": [ + "packet_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" + "name": "location", + "type": "position" }, { - "name": "y", - "type": "f64" - }, + "name": "type", + "type": "varint" + } + ] + ], + "packet_boss_bar": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "entityUUID", + "type": "UUID" }, { - "name": "dx", - "type": "f64" + "name": "action", + "type": "varint" }, { - "name": "dy", - "type": "f64" + "name": "title", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "anonymousNbt", + "3": "anonymousNbt" + } + } + ] }, { - "name": "dz", - "type": "f64" + "name": "health", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } + } + ] }, { - "name": "yaw", - "type": "f32" + "name": "color", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "pitch", - "type": "f32" + "name": "dividers", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "flags", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } + } + ] } ] ], - "packet_explosion": [ + "packet_camera": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat_suggestions": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "action", + "type": "varint" }, { - "name": "playerKnockback", + "name": "entries", "type": [ - "option", - "vec3f64" + "array", + { + "countType": "varint", + "type": "string" + } ] - }, + } + ] + ], + "packet_chunk_batch_finished": [ + "container", + [ { - "name": "explosionParticle", - "type": "Particle" - }, + "name": "batchSize", + "type": "varint" + } + ] + ], + "packet_chunk_batch_start": [ + "container", + [] + ], + "packet_chunk_biomes": [ + "container", + [ { - "name": "sound", - "type": "ItemSoundHolder" + "name": "biomes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "position", + "type": "packedChunkPos" + }, + { + "name": "data", + "type": "ByteArray" + } + ] + ] + } + ] } ] ], - "packet_unload_chunk": [ + "packet_clear_titles": [ "container", [ { - "name": "chunkZ", - "type": "i32" - }, + "name": "reset", + "type": "bool" + } + ] + ], + "packet_close_window": [ + "container", + [ { - "name": "chunkX", - "type": "i32" + "name": "windowId", + "type": "ContainerID" } ] ], - "packet_game_state_change": [ + "packet_collect": [ "container", [ { - "name": "reason", - "type": "u8" + "name": "collectedEntityId", + "type": "varint" }, { - "name": "gameMode", - "type": "f32" + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" } ] ], - "packet_open_horse_window": [ + "packet_craft_progress_bar": [ "container", [ { @@ -5385,139 +5466,87 @@ "type": "ContainerID" }, { - "name": "nbSlots", - "type": "varint" + "name": "property", + "type": "i16" }, { - "name": "entityId", - "type": "i32" + "name": "value", + "type": "i16" } ] ], - "packet_hurt_animation": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "yaw", - "type": "f32" + "name": "recipeDisplay", + "type": "RecipeDisplay" } ] ], - "packet_initialize_world_border": [ + "packet_custom_payload": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "channel", + "type": "string" }, { - "name": "oldDiameter", - "type": "f64" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_damage_event": [ + "container", + [ { - "name": "newDiameter", - "type": "f64" + "name": "entityId", + "type": "varint" }, { - "name": "speed", + "name": "sourceTypeId", "type": "varint" }, { - "name": "portalTeleportBoundary", + "name": "sourceCauseId", "type": "varint" }, { - "name": "warningBlocks", + "name": "sourceDirectId", "type": "varint" }, { - "name": "warningTime", - "type": "varint" + "name": "sourcePosition", + "type": [ + "option", + "vec3f64" + ] } ] ], - "packet_keep_alive": [ + "packet_death_combat_event": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "playerId", + "type": "varint" + }, + { + "name": "message", + "type": "anonymousNbt" } ] ], - "packet_map_chunk": [ + "packet_debug_sample": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "heightmaps", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "varint" - }, - { - "name": "data", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - } - ] - ] - } - ] - }, - { - "name": "chunkData", - "type": "ByteArray" - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "chunkBlockEntity" - } - ] - }, - { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "blockLightMask", + "name": "sample", "type": [ "array", { @@ -5527,396 +5556,345 @@ ] }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, + "name": "type", + "type": "varint" + } + ] + ], + "packet_declare_commands": [ + "container", + [ { - "name": "emptyBlockLightMask", + "name": "nodes", "type": [ "array", { "countType": "varint", - "type": "i64" + "type": "command_node" } ] }, { - "name": "skyLight", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "items", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] ] } ] }, { - "name": "blockLight", + "name": "stoneCutterRecipes", "type": [ "array", { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } + "container", + [ + { + "name": "input", + "type": "IDSet" + }, + { + "name": "slotDisplay", + "type": "SlotDisplay" + } + ] ] } ] } ] ], - "packet_world_event": [ + "packet_difficulty": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "difficulty", + "type": "u8" }, { - "name": "global", + "name": "difficultyLocked", "type": "bool" } ] ], - "packet_world_particles": [ + "packet_end_combat_event": [ "container", [ { - "name": "longDistance", - "type": "bool" - }, - { - "name": "alwaysShow", - "type": "bool" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + "name": "duration", + "type": "varint" + } + ] + ], + "packet_enter_combat_event": [ + "container", + [] + ], + "packet_entity_destroy": [ + "container", + [ { - "name": "offsetX", - "type": "f32" - }, + "name": "entityIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "packet_entity_effect": [ + "container", + [ { - "name": "offsetY", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "offsetZ", - "type": "f32" + "name": "effectId", + "type": "varint" }, { - "name": "velocityOffset", - "type": "f32" + "name": "amplifier", + "type": "varint" }, { - "name": "amount", - "type": "i32" + "name": "duration", + "type": "varint" }, { - "name": "particle", - "type": "Particle" + "name": "flags", + "type": "u8" } ] ], - "packet_update_light": [ + "packet_entity_equipment": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", + "name": "entityId", "type": "varint" }, { - "name": "skyLightMask", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "varint", - "type": "i64" + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "Slot" + } + ] + ] } ] - }, + } + ] + ], + "packet_entity_head_rotation": [ + "container", + [ { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_metadata": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_login": [ + "packet_entity_move_look": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "isHardcore", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "worldNames", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "dY", + "type": "i16" }, { - "name": "maxPlayers", - "type": "varint" + "name": "dZ", + "type": "i16" }, { - "name": "viewDistance", - "type": "varint" + "name": "yaw", + "type": "i8" }, { - "name": "simulationDistance", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "reducedDebugInfo", + "name": "onGround", "type": "bool" + } + ] + ], + "packet_entity_sound_effect": [ + "container", + [ + { + "name": "sound", + "type": "ItemSoundHolder" }, { - "name": "enableRespawnScreen", - "type": "bool" + "name": "soundCategory", + "type": "soundSource" }, { - "name": "doLimitedCrafting", - "type": "bool" + "name": "entityId", + "type": "varint" }, { - "name": "worldState", - "type": "SpawnInfo" + "name": "volume", + "type": "f32" }, { - "name": "enforcesSecureChat", - "type": "bool" + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], - "packet_map": [ + "packet_entity_status": [ "container", [ { - "name": "itemDamage", - "type": "varint" + "name": "entityId", + "type": "i32" }, { - "name": "scale", + "name": "entityStatus", "type": "i8" - }, + } + ] + ], + "packet_entity_teleport": [ + "container", + [ { - "name": "locked", - "type": "bool" + "name": "entityId", + "type": "varint" }, { - "name": "icons", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "i8" - }, - { - "name": "z", - "type": "i8" - }, - { - "name": "direction", - "type": "u8" - }, - { - "name": "displayName", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] - ] + "name": "x", + "type": "f64" }, { - "name": "columns", - "type": "u8" + "name": "y", + "type": "f64" }, { - "name": "rows", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "name": "z", + "type": "f64" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "y", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "data", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_trade_list": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "entityId", + "type": "varint" }, { - "name": "trades", + "name": "properties", "type": [ "array", { @@ -5925,205 +5903,243 @@ "container", [ { - "name": "inputItem1", - "type": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" - }, - { - "name": "components", - "type": "ExactComponentMatcher" - } - ] - ] - }, - { - "name": "outputItem", - "type": "Slot" - }, - { - "name": "inputItem2", + "name": "key", "type": [ - "option", - [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" - }, - { - "name": "components", - "type": "ExactComponentMatcher" - } - ] - ] + "mapper", + { + "mappings": { + "0": "generic.armor", + "1": "generic.armor_toughness", + "2": "generic.attack_damage", + "3": "generic.attack_knockback", + "4": "generic.attack_speed", + "5": "player.block_break_speed", + "6": "player.block_interaction_range", + "7": "camera_distance", + "8": "explosion_knockback_resistance", + "9": "player.entity_interaction_range", + "10": "generic.fall_damage_multiplier", + "11": "generic.flying_speed", + "12": "generic.follow_range", + "13": "generic.gravity", + "14": "generic.jump_strength", + "15": "generic.knockback_resistance", + "16": "generic.luck", + "17": "generic.max_absorption", + "18": "generic.max_health", + "19": "generic.movement_speed", + "20": "generic.safe_fall_distance", + "21": "generic.scale", + "22": "zombie.spawn_reinforcements", + "23": "generic.step_height", + "24": "submerged_mining_speed", + "25": "sweeping_damage_ratio", + "26": "tempt_range" + }, + "type": "varint" + } ] }, { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" + "name": "value", + "type": "f64" }, { - "name": "demand", - "type": "i32" + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] } ] ] } ] - }, + } + ] + ], + "packet_entity_velocity": [ + "container", + [ { - "name": "villagerLevel", + "name": "entityId", "type": "varint" }, { - "name": "experience", - "type": "varint" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" }, { - "name": "isRegularVillager", - "type": "bool" + "name": "level", + "type": "varint" }, { - "name": "canRestock", - "type": "bool" + "name": "totalExperience", + "type": "varint" } ] ], - "packet_rel_entity_move": [ + "packet_explosion": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "dX", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "dY", - "type": "i16" + "name": "z", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "playerKnockback", + "type": [ + "option", + "vec3f64" + ] }, { - "name": "onGround", - "type": "bool" + "name": "explosionParticle", + "type": "Particle" + }, + { + "name": "sound", + "type": "ItemSoundHolder" } ] ], - "packet_entity_move_look": [ + "packet_face_player": [ "container", [ { - "name": "entityId", + "name": "feet_eyes", "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dY", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "z", + "type": "f64" }, { - "name": "yaw", - "type": "i8" + "name": "isEntity", + "type": "bool" }, { - "name": "pitch", - "type": "i8" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "entity_feet_eyes", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] } ] ], - "packet_move_minecart": [ + "packet_game_state_change": [ "container", [ { - "name": "entityId", + "name": "reason", + "type": "u8" + }, + { + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] + ], + "packet_hide_message": [ + "container", + [ + { + "name": "id", "type": "varint" }, { - "name": "steps", + "name": "signature", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "position", - "type": "vec3f" - }, - { - "name": "movement", - "type": "vec3f" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", { - "name": "weight", - "type": "f32" + "count": 256 } ] - ] + } } ] } ] ], - "packet_entity_look": [ + "packet_hurt_animation": [ "container", [ { @@ -6132,285 +6148,374 @@ }, { "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "type": "f32" } ] ], - "packet_vehicle_move": [ + "packet_initialize_world_border": [ "container", [ { "name": "x", "type": "f64" }, - { - "name": "y", - "type": "f64" - }, { "name": "z", "type": "f64" }, { - "name": "yaw", - "type": "f32" + "name": "oldDiameter", + "type": "f64" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_open_book": [ - "container", - [ + "name": "newDiameter", + "type": "f64" + }, { - "name": "hand", + "name": "speed", "type": "varint" - } - ] - ], - "packet_open_window": [ - "container", - [ + }, { - "name": "windowId", + "name": "portalTeleportBoundary", "type": "varint" }, { - "name": "inventoryType", + "name": "warningBlocks", "type": "varint" }, { - "name": "windowTitle", - "type": "anonymousNbt" + "name": "warningTime", + "type": "varint" } ] ], - "packet_open_sign_entity": [ + "packet_keep_alive": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "isFrontText", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_ping": [ + "packet_kick_disconnect": [ "container", [ { - "name": "id", - "type": "i32" + "name": "reason", + "type": "anonymousNbt" } ] ], - "packet_ping_response": [ + "packet_login": [ "container", [ { - "name": "id", - "type": "i64" - } - ] - ], - "packet_craft_recipe_response": [ - "container", - [ + "name": "entityId", + "type": "i32" + }, { - "name": "windowId", - "type": "ContainerID" + "name": "isHardcore", + "type": "bool" }, { - "name": "recipeDisplay", - "type": "RecipeDisplay" - } - ] - ], - "packet_abilities": [ - "container", - [ + "name": "worldNames", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, { - "name": "flags", - "type": "i8" + "name": "maxPlayers", + "type": "varint" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "viewDistance", + "type": "varint" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "simulationDistance", + "type": "varint" + }, + { + "name": "reducedDebugInfo", + "type": "bool" + }, + { + "name": "enableRespawnScreen", + "type": "bool" + }, + { + "name": "doLimitedCrafting", + "type": "bool" + }, + { + "name": "worldState", + "type": "SpawnInfo" + }, + { + "name": "enforcesSecureChat", + "type": "bool" } ] ], - "packet_player_chat": [ + "packet_map": [ "container", [ { - "name": "globalIndex", + "name": "itemDamage", "type": "varint" }, { - "name": "senderUuid", - "type": "UUID" + "name": "scale", + "type": "i8" }, { - "name": "index", - "type": "varint" + "name": "locked", + "type": "bool" }, { - "name": "signature", + "name": "icons", "type": [ "option", [ - "buffer", + "array", { - "count": 256 + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + }, + { + "name": "direction", + "type": "u8" + }, + { + "name": "displayName", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] } ] ] }, { - "name": "plainMessage", - "type": "string" + "name": "columns", + "type": "u8" }, { - "name": "timestamp", - "type": "i64" + "name": "rows", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } + } + ] }, { - "name": "salt", - "type": "i64" + "name": "x", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } + } + ] }, { - "name": "previousMessages", - "type": "previousMessages" + "name": "y", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } + } + ] + } + ] + ], + "packet_map_chunk": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "heightmaps", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "varint" + }, + { + "name": "data", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + } + ] + ] + } + ] + }, + { + "name": "chunkData", + "type": "ByteArray" + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "chunkBlockEntity" + } + ] }, { - "name": "unsignedChatContent", + "name": "skyLightMask", "type": [ - "option", - "anonymousNbt" + "array", + { + "countType": "varint", + "type": "i64" + } ] }, { - "name": "filterType", - "type": "varint" - }, - { - "name": "filterTypeMask", + "name": "blockLightMask", "type": [ - "switch", + "array", { - "compareTo": "filterType", - "fields": { - "2": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - "default": "void" + "countType": "varint", + "type": "i64" } ] }, { - "name": "type", - "type": "ChatTypesHolder" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "networkName", - "type": "anonymousNbt" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "networkTargetName", + "name": "skyLight", "type": [ - "option", - "anonymousNbt" + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } ] - } - ] - ], - "packet_end_combat_event": [ - "container", - [ - { - "name": "duration", - "type": "varint" - } - ] - ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ - "container", - [ - { - "name": "playerId", - "type": "varint" }, { - "name": "message", - "type": "anonymousNbt" - } - ] - ], - "packet_player_remove": [ - "container", - [ - { - "name": "players", + "name": "blockLight", "type": [ "array", { "countType": "varint", - "type": "UUID" + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] } ] } ] ], - "packet_player_info": [ + "packet_move_minecart": [ "container", [ { - "name": "action", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name", - "update_hat", - "update_list_order" - ] - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "data", + "name": "steps", "type": [ "array", { @@ -6419,115 +6524,24 @@ "container", [ { - "name": "uuid", - "type": "UUID" - }, - { - "name": "player", - "type": [ - "switch", - { - "compareTo": "../action/add_player", - "fields": { - "true": "game_profile" - }, - "default": "void" - } - ] - }, - { - "name": "chatSession", - "type": [ - "switch", - { - "compareTo": "../action/initialize_chat", - "fields": { - "true": "chat_session" - }, - "default": "void" - } - ] - }, - { - "name": "gamemode", - "type": [ - "switch", - { - "compareTo": "../action/update_game_mode", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "listed", - "type": [ - "switch", - { - "compareTo": "../action/update_listed", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] + "name": "position", + "type": "vec3f" }, { - "name": "latency", - "type": [ - "switch", - { - "compareTo": "../action/update_latency", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] + "name": "movement", + "type": "vec3f" }, { - "name": "displayName", - "type": [ - "switch", - { - "compareTo": "../action/update_display_name", - "fields": { - "true": [ - "option", - "anonymousNbt" - ] - }, - "default": "void" - } - ] + "name": "yaw", + "type": "f32" }, { - "name": "listPriority", - "type": [ - "switch", - { - "compareTo": "../action/update_list_order", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "f32" }, { - "name": "showHat", - "type": [ - "switch", - { - "compareTo": "../action/update_hat", - "fields": { - "true": "bool" - }, - "default": "void" - } - ] + "name": "weight", + "type": "f32" } ] ] @@ -6536,546 +6550,626 @@ } ] ], - "packet_face_player": [ - "container", - [ - { - "name": "feet_eyes", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, + "packet_multi_block_change": [ + "container", + [ { - "name": "entityId", + "name": "chunkCoordinates", "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 }, - "default": "void" - } + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] ] }, { - "name": "entity_feet_eyes", + "name": "records", "type": [ - "switch", + "array", { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] } ] ], - "PositionUpdateRelatives": [ - "bitflags", - { - "type": "u32", - "flags": [ - "x", - "y", - "z", - "yaw", - "pitch", - "dx", - "dy", - "dz", - "yawDelta" - ] - } - ], - "packet_position": [ + "packet_nbt_query_response": [ "container", [ { - "name": "teleportId", + "name": "transactionId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + "name": "nbt", + "type": "anonOptionalNbt" + } + ] + ], + "packet_open_book": [ + "container", + [ { - "name": "dx", - "type": "f64" - }, + "name": "hand", + "type": "varint" + } + ] + ], + "packet_open_horse_window": [ + "container", + [ { - "name": "dy", - "type": "f64" + "name": "windowId", + "type": "ContainerID" }, { - "name": "dz", - "type": "f64" + "name": "nbSlots", + "type": "varint" }, { - "name": "yaw", - "type": "f32" - }, + "name": "entityId", + "type": "i32" + } + ] + ], + "packet_open_sign_entity": [ + "container", + [ { - "name": "pitch", - "type": "f32" + "name": "location", + "type": "position" }, { - "name": "flags", - "type": "PositionUpdateRelatives" + "name": "isFrontText", + "type": "bool" } ] ], - "packet_player_rotation": [ + "packet_open_window": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "windowId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "inventoryType", + "type": "varint" + }, + { + "name": "windowTitle", + "type": "anonymousNbt" } ] ], - "packet_recipe_book_add": [ + "packet_ping": [ "container", [ { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "recipe", - "type": [ - "container", - [ - { - "name": "displayId", - "type": "varint" - }, - { - "name": "display", - "type": "RecipeDisplay" - }, - { - "name": "group", - "type": "optvarint" - }, - { - "name": "category", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "crafting_building_blocks", - "1": "crafting_redstone", - "2": "crafting_equipment", - "3": "crafting_misc", - "4": "furnace_food", - "5": "furnace_blocks", - "6": "furnace_misc", - "7": "blast_furnace_blocks", - "8": "blast_furnace_misc", - "9": "smoker_food", - "10": "stonecutter", - "11": "smithing", - "12": "campfire" - } - } - ] - }, - { - "name": "craftingRequirements", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": "IDSet" - } - ] - ] - } - ] - ] - }, - { - "name": "flags", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "notification", - "highlight" - ] - } - ] - } - ] - ] - } - ] - }, - { - "name": "replace", - "type": "bool" + "name": "id", + "type": "i32" } ] ], - "packet_recipe_book_remove": [ + "packet_ping_response": [ "container", [ { - "name": "recipeIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "id", + "type": "i64" } ] ], - "packet_recipe_book_settings": [ + "packet_player_chat": [ "container", [ { - "name": "craftingGuiOpen", - "type": "bool" + "name": "globalIndex", + "type": "varint" }, { - "name": "craftingFilteringCraftable", - "type": "bool" + "name": "senderUuid", + "type": "UUID" }, { - "name": "smeltingGuiOpen", - "type": "bool" + "name": "index", + "type": "varint" }, { - "name": "smeltingFilteringCraftable", - "type": "bool" + "name": "signature", + "type": [ + "option", + [ + "buffer", + { + "count": 256 + } + ] + ] }, { - "name": "blastGuiOpen", - "type": "bool" + "name": "plainMessage", + "type": "string" + }, + { + "name": "timestamp", + "type": "i64" }, { - "name": "blastFilteringCraftable", - "type": "bool" + "name": "salt", + "type": "i64" }, { - "name": "smokerGuiOpen", - "type": "bool" + "name": "previousMessages", + "type": "previousMessages" }, { - "name": "smokerFilteringCraftable", - "type": "bool" - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", + "name": "unsignedChatContent", "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } + "option", + "anonymousNbt" ] - } - ] - ], - "packet_remove_entity_effect": [ - "container", - [ - { - "name": "entityId", - "type": "varint" }, { - "name": "effectId", + "name": "filterType", "type": "varint" - } - ] - ], - "packet_reset_score": [ - "container", - [ - { - "name": "entity_name", - "type": "string" }, { - "name": "objective_name", + "name": "filterTypeMask", "type": [ - "option", - "string" + "switch", + { + "compareTo": "filterType", + "default": "void", + "fields": { + "2": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + } + } ] - } - ] - ], - "packet_respawn": [ - "container", - [ - { - "name": "worldState", - "type": "SpawnInfo" }, { - "name": "copyMetadata", - "type": "u8" - } - ] - ], - "packet_entity_head_rotation": [ - "container", - [ + "name": "type", + "type": "ChatTypesHolder" + }, { - "name": "entityId", - "type": "varint" + "name": "networkName", + "type": "anonymousNbt" }, { - "name": "headYaw", - "type": "i8" + "name": "networkTargetName", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "packet_multi_block_change": [ + "packet_player_info": [ "container", [ { - "name": "chunkCoordinates", + "name": "action", "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] + "bitflags", + { + "flags": [ + "add_player", + "initialize_chat", + "update_game_mode", + "update_listed", + "update_latency", + "update_display_name", + "update_hat", + "update_list_order" + ], + "type": "u8" + } ] }, { - "name": "records", + "name": "data", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "player", + "type": [ + "switch", + { + "compareTo": "../action/add_player", + "default": "void", + "fields": { + "true": "game_profile" + } + } + ] + }, + { + "name": "chatSession", + "type": [ + "switch", + { + "compareTo": "../action/initialize_chat", + "default": "void", + "fields": { + "true": "chat_session" + } + } + ] + }, + { + "name": "gamemode", + "type": [ + "switch", + { + "compareTo": "../action/update_game_mode", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "listed", + "type": [ + "switch", + { + "compareTo": "../action/update_listed", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "latency", + "type": [ + "switch", + { + "compareTo": "../action/update_latency", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "displayName", + "type": [ + "switch", + { + "compareTo": "../action/update_display_name", + "default": "void", + "fields": { + "true": [ + "option", + "anonymousNbt" + ] + } + } + ] + }, + { + "name": "listPriority", + "type": [ + "switch", + { + "compareTo": "../action/update_list_order", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "showHat", + "type": [ + "switch", + { + "compareTo": "../action/update_hat", + "default": "void", + "fields": { + "true": "bool" + } + } + ] + } + ] + ] } ] } ] ], - "packet_select_advancement_tab": [ + "packet_player_remove": [ "container", [ { - "name": "id", + "name": "players", "type": [ - "option", - "string" + "array", + { + "countType": "varint", + "type": "UUID" + } ] } ] ], - "packet_server_data": [ + "packet_player_rotation": [ "container", [ { - "name": "motd", - "type": "anonymousNbt" + "name": "yaw", + "type": "f32" }, - { - "name": "iconBytes", - "type": [ - "option", - "ByteArray" - ] + { + "name": "pitch", + "type": "f32" } ] ], - "packet_action_bar": [ + "packet_playerlist_header": [ "container", [ { - "name": "text", + "name": "header", + "type": "anonymousNbt" + }, + { + "name": "footer", "type": "anonymousNbt" } ] ], - "packet_world_border_center": [ + "packet_position": [ "container", [ + { + "name": "teleportId", + "type": "varint" + }, { "name": "x", "type": "f64" }, { - "name": "z", + "name": "y", "type": "f64" - } - ] - ], - "packet_world_border_lerp_size": [ - "container", - [ + }, { - "name": "oldDiameter", + "name": "z", "type": "f64" }, { - "name": "newDiameter", + "name": "dx", "type": "f64" }, { - "name": "speed", - "type": "varint" - } - ] - ], - "packet_world_border_size": [ - "container", - [ + "name": "dy", + "type": "f64" + }, { - "name": "diameter", + "name": "dz", "type": "f64" - } - ] - ], - "packet_world_border_warning_delay": [ - "container", - [ + }, { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_world_border_warning_reach": [ - "container", - [ + "name": "yaw", + "type": "f32" + }, { - "name": "warningBlocks", - "type": "varint" - } - ] - ], - "packet_camera": [ - "container", - [ + "name": "pitch", + "type": "f32" + }, { - "name": "cameraId", - "type": "varint" + "name": "flags", + "type": "PositionUpdateRelatives" } ] ], - "packet_update_view_position": [ + "packet_profileless_chat": [ "container", [ { - "name": "chunkX", - "type": "varint" + "name": "message", + "type": "anonymousNbt" }, { - "name": "chunkZ", - "type": "varint" + "name": "type", + "type": "ChatTypesHolder" + }, + { + "name": "name", + "type": "anonymousNbt" + }, + { + "name": "target", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "packet_update_view_distance": [ + "packet_recipe_book_add": [ "container", [ { - "name": "viewDistance", - "type": "varint" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "recipe", + "type": [ + "container", + [ + { + "name": "displayId", + "type": "varint" + }, + { + "name": "display", + "type": "RecipeDisplay" + }, + { + "name": "group", + "type": "optvarint" + }, + { + "name": "category", + "type": [ + "mapper", + { + "mappings": { + "0": "crafting_building_blocks", + "1": "crafting_redstone", + "2": "crafting_equipment", + "3": "crafting_misc", + "4": "furnace_food", + "5": "furnace_blocks", + "6": "furnace_misc", + "7": "blast_furnace_blocks", + "8": "blast_furnace_misc", + "9": "smoker_food", + "10": "stonecutter", + "11": "smithing", + "12": "campfire" + }, + "type": "varint" + } + ] + }, + { + "name": "craftingRequirements", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": "IDSet" + } + ] + ] + } + ] + ] + }, + { + "name": "flags", + "type": [ + "bitflags", + { + "flags": [ + "notification", + "highlight" + ], + "type": "u8" + } + ] + } + ] + ] + } + ] + }, + { + "name": "replace", + "type": "bool" } ] ], - "packet_set_cursor_item": [ + "packet_recipe_book_remove": [ "container", [ { - "name": "contents", - "type": "Slot" + "name": "recipeIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_spawn_position": [ + "packet_recipe_book_settings": [ "container", [ { - "name": "location", - "type": "position" + "name": "craftingGuiOpen", + "type": "bool" }, { - "name": "angle", - "type": "f32" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + "name": "craftingFilteringCraftable", + "type": "bool" + }, { - "name": "position", - "type": "varint" + "name": "smeltingGuiOpen", + "type": "bool" }, { - "name": "name", - "type": "string" + "name": "smeltingFilteringCraftable", + "type": "bool" + }, + { + "name": "blastGuiOpen", + "type": "bool" + }, + { + "name": "blastFilteringCraftable", + "type": "bool" + }, + { + "name": "smokerGuiOpen", + "type": "bool" + }, + { + "name": "smokerFilteringCraftable", + "type": "bool" } ] ], - "packet_entity_metadata": [ + "packet_rel_entity_move": [ "container", [ { @@ -7083,25 +7177,24 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "entityId", - "type": "i32" + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" }, { - "name": "vehicleId", - "type": "i32" + "name": "onGround", + "type": "bool" } ] ], - "packet_entity_velocity": [ + "packet_remove_entity_effect": [ "container", [ { @@ -7109,81 +7202,50 @@ "type": "varint" }, { - "name": "velocity", - "type": "vec3i16" + "name": "effectId", + "type": "varint" } ] ], - "packet_entity_equipment": [ + "packet_reset_score": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entity_name", + "type": "string" }, { - "name": "equipments", + "name": "objective_name", "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } + "option", + "string" ] } ] ], - "packet_experience": [ + "packet_respawn": [ "container", [ { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" + "name": "worldState", + "type": "SpawnInfo" }, { - "name": "totalExperience", - "type": "varint" + "name": "copyMetadata", + "type": "u8" } ] ], - "packet_update_health": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", + "name": "position", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ - { - "name": "slot", - "type": "varint" + "name": "name", + "type": "string" } ] ], @@ -7204,11 +7266,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ] }, @@ -7218,11 +7280,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -7232,6 +7294,7 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": [ "option", @@ -7241,8 +7304,7 @@ "option", "varint" ] - }, - "default": "void" + } } ] }, @@ -7252,957 +7314,1198 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": [ "switch", { "compareTo": "number_format", + "default": "void", "fields": { "1": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ], "2": [ "switch", { "compareTo": "number_format", + "default": "void", "fields": { "1": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" + } } ] - }, - "default": "void" + } + } + ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" + }, + { + "name": "scoreName", + "type": "string" + }, + { + "name": "value", + "type": "varint" + }, + { + "name": "display_name", + "type": [ + "option", + "anonymousNbt" + ] + }, + { + "name": "number_format", + "type": [ + "option", + "varint" + ] + }, + { + "name": "styling", + "type": [ + "switch", + { + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ + { + "name": "id", + "type": [ + "option", + "string" + ] + } + ] + ], + "packet_server_data": [ + "container", + [ + { + "name": "motd", + "type": "anonymousNbt" + }, + { + "name": "iconBytes", + "type": [ + "option", + "ByteArray" + ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "cooldownGroup", + "type": "string" + }, + { + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_cursor_item": [ + "container", + [ + { + "name": "contents", + "type": "Slot" + } + ] + ], + "packet_set_passengers": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_set_passengers": [ + "packet_set_player_inventory": [ + "container", + [ + { + "name": "slotId", + "type": "varint" + }, + { + "name": "contents", + "type": "Slot" + } + ] + ], + "packet_set_projectile_power": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "accelerationPower", + "type": "f64" + } + ] + ], + "packet_set_slot": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "stateId", + "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" + } + ] + ], + "packet_set_ticking_state": [ + "container", + [ + { + "name": "tick_rate", + "type": "f32" + }, + { + "name": "is_frozen", + "type": "bool" + } + ] + ], + "packet_set_title_subtitle": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "text", + "type": "anonymousNbt" + } + ] + ], + "packet_set_title_text": [ + "container", + [ + { + "name": "text", + "type": "anonymousNbt" + } + ] + ], + "packet_set_title_time": [ + "container", + [ + { + "name": "fadeIn", + "type": "i32" }, { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "stay", + "type": "i32" + }, + { + "name": "fadeOut", + "type": "i32" } ] ], - "packet_set_player_inventory": [ + "packet_simulation_distance": [ "container", [ { - "name": "slotId", + "name": "distance", "type": "varint" + } + ] + ], + "packet_sound_effect": [ + "container", + [ + { + "name": "sound", + "type": "ItemSoundHolder" }, { - "name": "contents", - "type": "Slot" + "name": "soundCategory", + "type": "soundSource" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], - "packet_teams": [ + "packet_spawn_entity": [ "container", [ { - "name": "team", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "mode", - "type": "i8" + "name": "objectUUID", + "type": "UUID" }, { - "name": "name", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] + "name": "type", + "type": "varint" }, { - "name": "friendlyFire", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" - } - ] + "name": "x", + "type": "f64" }, { - "name": "nameTagVisibility", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "y", + "type": "f64" }, { - "name": "collisionRule", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "z", + "type": "f64" }, { - "name": "formatting", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "prefix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "suffix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] + "name": "headPitch", + "type": "i8" }, { - "name": "players", + "name": "objectData", + "type": "varint" + }, + { + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "angle", + "type": "f32" + } + ] + ], + "packet_start_configuration": [ + "container", + [] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "mode", - "fields": { - "0": [ - "array", + "countType": "varint", + "type": [ + "container", + [ { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", + "name": "categoryId", + "type": "varint" + }, { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", + "name": "statisticId", + "type": "varint" + }, { - "countType": "varint", - "type": "string" + "name": "value", + "type": "varint" } ] - }, - "default": "void" + ] } ] } ] ], - "packet_scoreboard_score": [ + "packet_step_tick": [ + "container", + [ + { + "name": "tick_steps", + "type": "varint" + } + ] + ], + "packet_stop_sound": [ "container", [ { - "name": "itemName", - "type": "string" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": "varint" - }, - { - "name": "display_name", - "type": [ - "option", - "anonymousNbt" - ] + "name": "flags", + "type": "i8" }, { - "name": "number_format", + "name": "source", "type": [ - "option", - "varint" + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "1": "varint", + "3": "varint" + } + } ] }, { - "name": "styling", + "name": "sound", "type": [ "switch", { - "compareTo": "number_format", + "compareTo": "flags", + "default": "void", "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" + "2": "string", + "3": "string" + } } ] } ] ], - "packet_simulation_distance": [ + "packet_sync_entity_position": [ "container", [ { - "name": "distance", + "name": "entityId", "type": "varint" - } - ] - ], - "packet_set_title_subtitle": [ - "container", - [ + }, { - "name": "text", - "type": "anonymousNbt" - } - ] - ], - "packet_update_time": [ - "container", - [ + "name": "x", + "type": "f64" + }, { - "name": "age", - "type": "i64" + "name": "y", + "type": "f64" }, { - "name": "time", - "type": "i64" + "name": "z", + "type": "f64" }, { - "name": "tickDayTime", + "name": "dx", + "type": "f64" + }, + { + "name": "dy", + "type": "f64" + }, + { + "name": "dz", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", "type": "bool" } ] ], - "packet_set_title_text": [ + "packet_system_chat": [ "container", [ { - "name": "text", + "name": "content", "type": "anonymousNbt" - } - ] - ], - "packet_set_title_time": [ - "container", - [ - { - "name": "fadeIn", - "type": "i32" - }, - { - "name": "stay", - "type": "i32" }, { - "name": "fadeOut", - "type": "i32" + "name": "isActionBar", + "type": "bool" } ] ], - "packet_entity_sound_effect": [ + "packet_tab_complete": [ "container", [ { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "soundCategory", - "type": "soundSource" + "name": "transactionId", + "type": "varint" }, { - "name": "entityId", + "name": "start", "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "length", + "type": "varint" }, { - "name": "pitch", - "type": "f32" - }, + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] + } + ] + } + ] + ], + "packet_tags": [ + "container", + [ { - "name": "seed", - "type": "i64" + "name": "tags", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] + } + ] } ] ], - "packet_sound_effect": [ + "packet_teams": [ "container", [ { - "name": "sound", - "type": "ItemSoundHolder" + "name": "team", + "type": "string" }, { - "name": "soundCategory", - "type": "soundSource" + "name": "mode", + "type": "i8" }, { - "name": "x", - "type": "i32" + "name": "name", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] }, { - "name": "y", - "type": "i32" + "name": "friendlyFire", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "i8", + "2": "i8" + } + } + ] }, { - "name": "z", - "type": "i32" + "name": "nameTagVisibility", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "volume", - "type": "f32" + "name": "collisionRule", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "pitch", - "type": "f32" + "name": "formatting", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "seed", - "type": "i64" - } - ] - ], - "packet_start_configuration": [ - "container", - [] - ], - "packet_stop_sound": [ - "container", - [ - { - "name": "flags", - "type": "i8" + "name": "prefix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] }, { - "name": "source", + "name": "suffix", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "mode", + "default": "void", "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" + "0": "anonymousNbt", + "2": "anonymousNbt" + } } ] }, { - "name": "sound", + "name": "players", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "mode", + "default": "void", "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "3": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_system_chat": [ + "packet_test_instance_block_status": [ "container", [ { - "name": "content", + "name": "status", "type": "anonymousNbt" }, { - "name": "isActionBar", - "type": "bool" + "name": "size", + "type": [ + "option", + "vec3i" + ] } ] ], - "packet_playerlist_header": [ + "packet_tile_entity_data": [ "container", [ { - "name": "header", - "type": "anonymousNbt" + "name": "location", + "type": "position" }, { - "name": "footer", - "type": "anonymousNbt" - } - ] - ], - "packet_nbt_query_response": [ - "container", - [ - { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "nbt", + "name": "nbtData", "type": "anonOptionalNbt" } ] ], - "packet_collect": [ + "packet_trade_list": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "trades", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "components", + "type": "ExactComponentMatcher" + } + ] + ] + }, + { + "name": "outputItem", + "type": "Slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "components", + "type": "ExactComponentMatcher" + } + ] + ] + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] + } + ] }, { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ - { - "name": "entityId", + "name": "villagerLevel", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" + "name": "experience", + "type": "varint" }, { - "name": "pitch", - "type": "i8" + "name": "isRegularVillager", + "type": "bool" }, { - "name": "onGround", + "name": "canRestock", "type": "bool" } ] ], - "packet_test_instance_block_status": [ + "packet_unload_chunk": [ "container", [ { - "name": "status", - "type": "anonymousNbt" + "name": "chunkZ", + "type": "i32" }, { - "name": "size", - "type": [ - "option", - "vec3i" - ] + "name": "chunkX", + "type": "i32" } ] ], - "packet_set_ticking_state": [ + "packet_update_health": [ "container", [ { - "name": "tick_rate", + "name": "health", "type": "f32" }, { - "name": "is_frozen", - "type": "bool" - } - ] - ], - "packet_step_tick": [ - "container", - [ - { - "name": "tick_steps", + "name": "food", "type": "varint" + }, + { + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_advancements": [ + "packet_update_light": [ "container", [ { - "name": "reset", - "type": "bool" + "name": "chunkX", + "type": "varint" }, { - "name": "advancementMapping", + "name": "chunkZ", + "type": "varint" + }, + { + "name": "skyLightMask", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "container", - [ - { - "name": "parentId", - "type": [ - "option", - "string" - ] - }, - { - "name": "displayData", - "type": [ - "option", - [ - "container", - [ - { - "name": "title", - "type": "anonymousNbt" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "icon", - "type": "Slot" - }, - { - "name": "frameType", - "type": "varint" - }, - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "backgroundTexture", - "type": [ - "switch", - { - "compareTo": "flags/has_background_texture", - "fields": { - "1": "string" - }, - "default": "void" - } - ] - }, - { - "name": "xCord", - "type": "f32" - }, - { - "name": "yCord", - "type": "f32" - } - ] - ] - ] - }, - { - "name": "requirements", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - }, - { - "name": "sendsTelemtryData", - "type": "bool" - } - ] - ] - } - ] - ] + "type": "i64" } ] }, { - "name": "identifiers", + "name": "blockLightMask", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "i64" } ] }, { - "name": "progressMapping", + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "skyLight", "type": [ "array", { "countType": "varint", "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "criterionIdentifier", - "type": "string" - }, - { - "name": "criterionProgress", - "type": [ - "option", - "i64" - ] - } - ] - ] - } - ] - } - ] + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] + }, + { + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] + } + ] + ], + "packet_update_time": [ + "container", + [ + { + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + }, + { + "name": "tickDayTime", + "type": "bool" + } + ] + ], + "packet_update_view_distance": [ + "container", + [ + { + "name": "viewDistance", + "type": "varint" + } + ] + ], + "packet_update_view_position": [ + "container", + [ + { + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "showAdvancements", - "type": "bool" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_entity_update_attributes": [ + "packet_window_items": [ "container", [ { - "name": "entityId", + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "stateId", "type": "varint" }, { - "name": "properties", + "name": "items", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "generic.armor", - "1": "generic.armor_toughness", - "2": "generic.attack_damage", - "3": "generic.attack_knockback", - "4": "generic.attack_speed", - "5": "player.block_break_speed", - "6": "player.block_interaction_range", - "7": "camera_distance", - "8": "explosion_knockback_resistance", - "9": "player.entity_interaction_range", - "10": "generic.fall_damage_multiplier", - "11": "generic.flying_speed", - "12": "generic.follow_range", - "13": "generic.gravity", - "14": "generic.jump_strength", - "15": "generic.knockback_resistance", - "16": "generic.luck", - "17": "generic.max_absorption", - "18": "generic.max_health", - "19": "generic.movement_speed", - "20": "generic.safe_fall_distance", - "21": "generic.scale", - "22": "zombie.spawn_reinforcements", - "23": "generic.step_height", - "24": "submerged_mining_speed", - "25": "sweeping_damage_ratio", - "26": "tempt_range" - } - } - ] - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "string" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "type": "Slot" } ] + }, + { + "name": "carriedItem", + "type": "Slot" } ] ], - "packet_entity_effect": [ + "packet_world_border_center": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "effectId", - "type": "varint" + "name": "z", + "type": "f64" + } + ] + ], + "packet_world_border_lerp_size": [ + "container", + [ + { + "name": "oldDiameter", + "type": "f64" }, { - "name": "amplifier", - "type": "varint" + "name": "newDiameter", + "type": "f64" }, { - "name": "duration", + "name": "speed", "type": "varint" - }, + } + ] + ], + "packet_world_border_size": [ + "container", + [ { - "name": "flags", - "type": "u8" + "name": "diameter", + "type": "f64" } ] ], - "packet_declare_recipes": [ + "packet_world_border_warning_delay": [ "container", [ { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ] - }, + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_world_border_warning_reach": [ + "container", + [ { - "name": "stoneCutterRecipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "input", - "type": "IDSet" - }, - { - "name": "slotDisplay", - "type": "SlotDisplay" - } - ] - ] - } - ] + "name": "warningBlocks", + "type": "varint" } ] ], - "packet_tags": [ + "packet_world_event": [ "container", [ { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] - } - ] + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" } ] ], - "packet_set_projectile_power": [ + "packet_world_particles": [ "container", [ { - "name": "id", - "type": "varint" + "name": "longDistance", + "type": "bool" + }, + { + "name": "alwaysShow", + "type": "bool" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" }, { - "name": "accelerationPower", - "type": "f64" + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "velocityOffset", + "type": "f32" + }, + { + "name": "amount", + "type": "i32" + }, + { + "name": "particle", + "type": "Particle" } ] + ] + } + }, + "toServer": { + "types": { + "MovementFlags": [ + "bitflags", + { + "flags": [ + "onGround", + "hasHorizontalCollision" + ], + "type": "u8" + } ], "packet": [ "container", @@ -8212,340 +8515,251 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "animation", - "0x03": "statistics", - "0x04": "acknowledge_player_digging", - "0x05": "block_break_animation", - "0x06": "tile_entity_data", - "0x07": "block_action", - "0x08": "block_change", - "0x09": "boss_bar", - "0x0a": "difficulty", - "0x0b": "chunk_batch_finished", - "0x0c": "chunk_batch_start", - "0x0d": "chunk_biomes", - "0x0e": "clear_titles", - "0x0f": "tab_complete", - "0x10": "declare_commands", + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "select_bundle_item", + "0x03": "set_difficulty", + "0x04": "message_acknowledgement", + "0x05": "chat_command", + "0x06": "chat_command_signed", + "0x07": "chat_message", + "0x08": "chat_session_update", + "0x09": "chunk_batch_received", + "0x0a": "client_command", + "0x0b": "tick_end", + "0x0c": "settings", + "0x0d": "tab_complete", + "0x0e": "configuration_acknowledged", + "0x0f": "enchant_item", + "0x10": "window_click", "0x11": "close_window", - "0x12": "window_items", - "0x13": "craft_progress_bar", - "0x14": "set_slot", - "0x15": "cookie_request", - "0x16": "set_cooldown", - "0x17": "chat_suggestions", - "0x18": "custom_payload", - "0x19": "damage_event", - "0x1a": "debug_sample", - "0x1b": "hide_message", - "0x1c": "kick_disconnect", - "0x1d": "profileless_chat", - "0x1e": "entity_status", - "0x1f": "sync_entity_position", - "0x20": "explosion", - "0x21": "unload_chunk", - "0x22": "game_state_change", - "0x23": "open_horse_window", - "0x24": "hurt_animation", - "0x25": "initialize_world_border", - "0x26": "keep_alive", - "0x27": "map_chunk", - "0x28": "world_event", - "0x29": "world_particles", - "0x2a": "update_light", - "0x2b": "login", - "0x2c": "map", - "0x2d": "trade_list", - "0x2e": "rel_entity_move", - "0x2f": "entity_move_look", - "0x30": "move_minecart", - "0x31": "entity_look", - "0x32": "vehicle_move", - "0x33": "open_book", - "0x34": "open_window", - "0x35": "open_sign_entity", - "0x36": "ping", - "0x37": "ping_response", - "0x38": "craft_recipe_response", - "0x39": "abilities", - "0x3a": "player_chat", - "0x3b": "end_combat_event", - "0x3c": "enter_combat_event", - "0x3d": "death_combat_event", - "0x3e": "player_remove", - "0x3f": "player_info", - "0x40": "face_player", - "0x41": "position", - "0x42": "player_rotation", - "0x43": "recipe_book_add", - "0x44": "recipe_book_remove", - "0x45": "recipe_book_settings", - "0x46": "entity_destroy", - "0x47": "remove_entity_effect", - "0x48": "reset_score", - "0x49": "remove_resource_pack", - "0x4a": "add_resource_pack", - "0x4b": "respawn", - "0x4c": "entity_head_rotation", - "0x4d": "multi_block_change", - "0x4e": "select_advancement_tab", - "0x4f": "server_data", - "0x50": "action_bar", - "0x51": "world_border_center", - "0x52": "world_border_lerp_size", - "0x53": "world_border_size", - "0x54": "world_border_warning_delay", - "0x55": "world_border_warning_reach", - "0x56": "camera", - "0x57": "update_view_position", - "0x58": "update_view_distance", - "0x59": "set_cursor_item", - "0x5a": "spawn_position", - "0x5b": "scoreboard_display_objective", - "0x5c": "entity_metadata", - "0x5d": "attach_entity", - "0x5e": "entity_velocity", - "0x5f": "entity_equipment", - "0x60": "experience", - "0x61": "update_health", - "0x62": "held_item_slot", - "0x63": "scoreboard_objective", - "0x64": "set_passengers", - "0x65": "set_player_inventory", - "0x66": "teams", - "0x67": "scoreboard_score", - "0x68": "simulation_distance", - "0x69": "set_title_subtitle", - "0x6a": "update_time", - "0x6b": "set_title_text", - "0x6c": "set_title_time", - "0x6d": "entity_sound_effect", - "0x6e": "sound_effect", - "0x6f": "start_configuration", - "0x70": "stop_sound", - "0x71": "store_cookie", - "0x72": "system_chat", - "0x73": "playerlist_header", - "0x74": "nbt_query_response", - "0x75": "collect", - "0x76": "entity_teleport", - "0x77": "test_instance_block_status", - "0x78": "set_ticking_state", - "0x79": "step_tick", - "0x7a": "transfer", - "0x7b": "advancements", - "0x7c": "entity_update_attributes", - "0x7d": "entity_effect", - "0x7e": "declare_recipes", - "0x7f": "tags", - "0x80": "set_projectile_power", - "0x81": "custom_report_details", - "0x82": "server_links" + "0x12": "set_slot_state", + "0x13": "cookie_response", + "0x14": "custom_payload", + "0x15": "debug_sample_subscription", + "0x16": "edit_book", + "0x17": "query_entity_nbt", + "0x18": "use_entity", + "0x19": "generate_structure", + "0x1a": "keep_alive", + "0x1b": "lock_difficulty", + "0x1c": "position", + "0x1d": "position_look", + "0x1e": "look", + "0x1f": "flying", + "0x20": "vehicle_move", + "0x21": "steer_boat", + "0x22": "pick_item_from_block", + "0x23": "pick_item_from_entity", + "0x24": "ping_request", + "0x25": "craft_recipe_request", + "0x26": "abilities", + "0x27": "block_dig", + "0x28": "entity_action", + "0x29": "player_input", + "0x2a": "player_loaded", + "0x2b": "pong", + "0x2c": "recipe_book", + "0x2d": "displayed_recipe", + "0x2e": "name_item", + "0x2f": "resource_pack_receive", + "0x30": "advancement_tab", + "0x31": "select_trade", + "0x32": "set_beacon_effect", + "0x33": "held_item_slot", + "0x34": "update_command_block", + "0x35": "update_command_block_minecart", + "0x36": "set_creative_slot", + "0x37": "update_jigsaw_block", + "0x38": "update_structure_block", + "0x39": "set_test_block", + "0x3a": "update_sign", + "0x3b": "arm_animation", + "0x3c": "test_instance_block_action", + "0x3d": "spectate", + "0x3e": "block_place", + "0x3f": "use_item" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat_command": "packet_chat_command", + "chat_command_signed": "packet_chat_command_signed", + "chat_message": "packet_chat_message", + "chat_session_update": "packet_chat_session_update", + "chunk_batch_received": "packet_chunk_batch_received", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "configuration_acknowledged": "packet_configuration_acknowledged", + "cookie_response": "packet_common_cookie_response", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_payload": "packet_custom_payload", + "debug_sample_subscription": "packet_debug_sample_subscription", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "message_acknowledgement": "packet_message_acknowledgement", + "name_item": "packet_name_item", + "pick_item_from_block": "packet_pick_item_from_block", + "pick_item_from_entity": "packet_pick_item_from_entity", + "ping_request": "packet_ping_request", + "player_input": "packet_player_input", + "player_loaded": "packet_player_loaded", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_bundle_item": "packet_select_bundle_item", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "set_slot_state": "packet_set_slot_state", + "set_test_block": "packet_set_test_block", + "settings": "packet_common_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "test_instance_block_action": "packet_test_instance_block_action", + "tick_end": "packet_tick_end", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] + } + ] + ], + "packet_abilities": [ + "container", + [ + { + "name": "flags", + "type": "i8" + } + ] + ], + "packet_advancement_tab": [ + "container", + [ + { + "name": "action", + "type": "varint" }, { - "name": "params", + "name": "tabId", "type": [ "switch", { - "compareTo": "name", + "compareTo": "action", "fields": { - "bundle_delimiter": "void", - "spawn_entity": "packet_spawn_entity", - "animation": "packet_animation", - "statistics": "packet_statistics", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "chunk_batch_finished": "packet_chunk_batch_finished", - "chunk_batch_start": "packet_chunk_batch_start", - "chunk_biomes": "packet_chunk_biomes", - "clear_titles": "packet_clear_titles", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "close_window": "packet_close_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "cookie_request": "packet_common_cookie_request", - "set_cooldown": "packet_set_cooldown", - "chat_suggestions": "packet_chat_suggestions", - "custom_payload": "packet_custom_payload", - "damage_event": "packet_damage_event", - "debug_sample": "packet_debug_sample", - "hide_message": "packet_hide_message", - "kick_disconnect": "packet_kick_disconnect", - "profileless_chat": "packet_profileless_chat", - "entity_status": "packet_entity_status", - "sync_entity_position": "packet_sync_entity_position", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "hurt_animation": "packet_hurt_animation", - "initialize_world_border": "packet_initialize_world_border", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "move_minecart": "packet_move_minecart", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_window": "packet_open_window", - "open_sign_entity": "packet_open_sign_entity", - "ping": "packet_ping", - "ping_response": "packet_ping_response", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "player_chat": "packet_player_chat", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_remove": "packet_player_remove", - "player_info": "packet_player_info", - "face_player": "packet_face_player", - "position": "packet_position", - "player_rotation": "packet_player_rotation", - "recipe_book_add": "packet_recipe_book_add", - "recipe_book_remove": "packet_recipe_book_remove", - "recipe_book_settings": "packet_recipe_book_settings", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "reset_score": "packet_reset_score", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "respawn": "packet_respawn", - "entity_head_rotation": "packet_entity_head_rotation", - "multi_block_change": "packet_multi_block_change", - "select_advancement_tab": "packet_select_advancement_tab", - "server_data": "packet_server_data", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "camera": "packet_camera", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "set_cursor_item": "packet_set_cursor_item", - "held_item_slot": "packet_held_item_slot", - "spawn_position": "packet_spawn_position", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "set_player_inventory": "packet_set_player_inventory", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "set_title_subtitle": "packet_set_title_subtitle", - "update_time": "packet_update_time", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time", - "entity_sound_effect": "packet_entity_sound_effect", - "sound_effect": "packet_sound_effect", - "start_configuration": "packet_start_configuration", - "stop_sound": "packet_stop_sound", - "store_cookie": "packet_common_store_cookie", - "system_chat": "packet_system_chat", - "playerlist_header": "packet_playerlist_header", - "nbt_query_response": "packet_nbt_query_response", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "test_instance_block_status": "packet_test_instance_block_status", - "set_ticking_state": "packet_set_ticking_state", - "step_tick": "packet_step_tick", - "transfer": "packet_common_transfer", - "advancements": "packet_advancements", - "entity_update_attributes": "packet_entity_update_attributes", - "entity_effect": "packet_entity_effect", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "set_projectile_power": "packet_set_projectile_power", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links" + "0": "string", + "1": "void" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_arm_animation": [ "container", [ { - "name": "teleportId", + "name": "hand", "type": "varint" } ] ], - "packet_query_block_nbt": [ + "packet_block_dig": [ "container", [ { - "name": "transactionId", + "name": "status", "type": "varint" }, { "name": "location", "type": "position" + }, + { + "name": "face", + "type": "i8" + }, + { + "name": "sequence", + "type": "varint" } ] ], - "packet_select_bundle_item": [ + "packet_block_place": [ "container", [ { - "name": "slotId", + "name": "hand", "type": "varint" }, { - "name": "selectedItemIndex", + "name": "location", + "type": "position" + }, + { + "name": "direction", "type": "varint" - } - ] - ], - "packet_set_difficulty": [ - "container", - [ + }, + { + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" + }, { - "name": "newDifficulty", - "type": "u8" - } - ] - ], - "packet_message_acknowledgement": [ - "container", - [ + "name": "worldBorderHit", + "type": "bool" + }, { - "name": "count", + "name": "sequence", "type": "varint" } ] @@ -8705,20 +8919,12 @@ } ] ], - "packet_tick_end": [ - "container", - [] - ], - "packet_tab_complete": [ + "packet_close_window": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "text", - "type": "string" + "name": "windowId", + "type": "ContainerID" } ] ], @@ -8726,7 +8932,7 @@ "container", [] ], - "packet_enchant_item": [ + "packet_craft_recipe_request": [ "container", [ { @@ -8734,269 +8940,260 @@ "type": "ContainerID" }, { - "name": "enchantment", + "name": "recipeId", "type": "varint" + }, + { + "name": "makeAll", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "channel", + "type": "string" }, { - "name": "stateId", - "type": "varint" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_debug_sample_subscription": [ + "container", + [ { - "name": "slot", - "type": "i16" - }, + "name": "type", + "type": "varint" + } + ] + ], + "packet_displayed_recipe": [ + "container", + [ { - "name": "mouseButton", - "type": "i8" - }, + "name": "recipeId", + "type": "varint" + } + ] + ], + "packet_edit_book": [ + "container", + [ { - "name": "mode", + "name": "hand", "type": "varint" }, { - "name": "changedSlots", + "name": "pages", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": [ - "option", - "HashedSlot" - ] - } - ] - ] + "type": "string" } ] }, { - "name": "cursorItem", + "name": "title", "type": [ "option", - "HashedSlot" + "string" ] } ] ], - "packet_close_window": [ + "packet_enchant_item": [ "container", [ { "name": "windowId", "type": "ContainerID" + }, + { + "name": "enchantment", + "type": "varint" } ] ], - "packet_set_slot_state": [ + "packet_entity_action": [ "container", [ { - "name": "slot_id", + "name": "entityId", "type": "varint" }, { - "name": "window_id", - "type": "ContainerID" + "name": "actionId", + "type": "varint" }, { - "name": "state", - "type": "bool" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_custom_payload": [ + "packet_flying": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "flags", + "type": "MovementFlags" } ] ], - "packet_debug_sample_subscription": [ + "packet_generate_structure": [ "container", [ { - "name": "type", + "name": "location", + "type": "position" + }, + { + "name": "levels", "type": "varint" + }, + { + "name": "keepJigsaws", + "type": "bool" } ] ], - "packet_edit_book": [ + "packet_held_item_slot": [ "container", [ { - "name": "hand", - "type": "varint" - }, - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "title", - "type": [ - "option", - "string" - ] + "name": "slotId", + "type": "i16" } ] ], - "packet_query_entity_nbt": [ + "packet_keep_alive": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "entityId", - "type": "varint" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_use_entity": [ + "packet_lock_difficulty": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" - }, + "name": "locked", + "type": "bool" + } + ] + ], + "packet_look": [ + "container", + [ { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "f32" }, { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "f32" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, + "name": "flags", + "type": "MovementFlags" + } + ] + ], + "packet_message_acknowledgement": [ + "container", + [ { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, + "name": "count", + "type": "varint" + } + ] + ], + "packet_name_item": [ + "container", + [ { - "name": "sneaking", - "type": "bool" + "name": "name", + "type": "string" } ] ], - "packet_generate_structure": [ + "packet_pick_item_from_block": [ "container", [ { - "name": "location", + "name": "position", "type": "position" }, { - "name": "levels", + "name": "includeData", + "type": "bool" + } + ] + ], + "packet_pick_item_from_entity": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "keepJigsaws", + "name": "includeData", "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_ping_request": [ "container", [ { - "name": "keepAliveId", + "name": "id", "type": "i64" } ] ], - "packet_lock_difficulty": [ + "packet_player_input": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "inputs", + "type": [ + "bitflags", + { + "flags": [ + "forward", + "backward", + "left", + "right", + "jump", + "shift", + "sprint" + ], + "type": "u8" + } + ] } ] ], - "MovementFlags": [ - "bitflags", - { - "type": "u8", - "flags": [ - "onGround", - "hasHorizontalCollision" - ] - } + "packet_player_loaded": [ + "container", + [] + ], + "packet_pong": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] ], "packet_position": [ "container", @@ -9048,315 +9245,257 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "flags", - "type": "MovementFlags" - } - ] - ], - "packet_flying": [ - "container", - [ - { - "name": "flags", - "type": "MovementFlags" + "name": "location", + "type": "position" } ] ], - "packet_vehicle_move": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_recipe_book": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "bookId", + "type": "varint" }, { - "name": "rightPaddle", + "name": "bookOpen", "type": "bool" - } - ] - ], - "packet_pick_item_from_block": [ - "container", - [ - { - "name": "position", - "type": "position" }, { - "name": "includeData", + "name": "filterActive", "type": "bool" } ] ], - "packet_pick_item_from_entity": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "uuid", + "type": "UUID" }, { - "name": "includeData", - "type": "bool" - } - ] - ], - "packet_ping_request": [ - "container", - [ - { - "name": "id", - "type": "i64" + "name": "result", + "type": "varint" } ] ], - "packet_craft_recipe_request": [ + "packet_select_bundle_item": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "recipeId", + "name": "slotId", "type": "varint" }, { - "name": "makeAll", - "type": "bool" + "name": "selectedItemIndex", + "type": "varint" } ] ], - "packet_abilities": [ + "packet_select_trade": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "slot", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "primary_effect", + "type": [ + "option", + "varint" + ] }, { - "name": "sequence", - "type": "varint" + "name": "secondary_effect", + "type": [ + "option", + "varint" + ] } ] ], - "packet_entity_action": [ + "packet_set_creative_slot": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "slot", + "type": "i16" }, { - "name": "jumpBoost", - "type": "varint" - } - ] - ], - "packet_player_input": [ - "container", - [ - { - "name": "inputs", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "forward", - "backward", - "left", - "right", - "jump", - "shift", - "sprint" - ] - } - ] + "name": "item", + "type": "UntrustedSlot" } ] ], - "packet_player_loaded": [ - "container", - [] - ], - "packet_pong": [ + "packet_set_difficulty": [ "container", [ { - "name": "id", - "type": "i32" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_recipe_book": [ + "packet_set_slot_state": [ "container", [ { - "name": "bookId", + "name": "slot_id", "type": "varint" }, { - "name": "bookOpen", - "type": "bool" + "name": "window_id", + "type": "ContainerID" }, { - "name": "filterActive", + "name": "state", "type": "bool" } ] ], - "packet_displayed_recipe": [ + "packet_set_test_block": [ "container", [ { - "name": "recipeId", + "name": "position", + "type": "position" + }, + { + "name": "mode", "type": "varint" + }, + { + "name": "message", + "type": "string" } ] ], - "packet_name_item": [ + "packet_spectate": [ "container", [ { - "name": "name", - "type": "string" + "name": "target", + "type": "UUID" } ] ], - "packet_resource_pack_receive": [ + "packet_steer_boat": [ "container", [ { - "name": "uuid", - "type": "UUID" + "name": "leftPaddle", + "type": "bool" }, { - "name": "result", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], - "packet_advancement_tab": [ + "packet_tab_complete": [ "container", [ { - "name": "action", + "name": "transactionId", "type": "varint" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "text", + "type": "string" } ] ], - "packet_select_trade": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slot", + "name": "teleportId", "type": "varint" } ] ], - "packet_set_beacon_effect": [ + "packet_test_instance_block_action": [ "container", [ { - "name": "primary_effect", - "type": [ - "option", - "varint" - ] + "name": "pos", + "type": "position" }, { - "name": "secondary_effect", + "name": "action", + "type": "varint" + }, + { + "name": "data", "type": [ - "option", - "varint" + "container", + [ + { + "name": "test", + "type": [ + "option", + "string" + ] + }, + { + "name": "size", + "type": "vec3i" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "ignoreEntities", + "type": "bool" + }, + { + "name": "status", + "type": "varint" + }, + { + "name": "errorMessage", + "type": [ + "option", + "anonymousNbt" + ] + } + ] ] } ] ], - "packet_held_item_slot": [ + "packet_tick_end": [ "container", - [ - { - "name": "slotId", - "type": "i16" - } - ] + [] ], "packet_update_command_block": [ "container", @@ -9396,19 +9535,6 @@ } ] ], - "packet_set_creative_slot": [ - "container", - [ - { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "UntrustedSlot" - } - ] - ], "packet_update_jigsaw_block": [ "container", [ @@ -9446,6 +9572,35 @@ } ] ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], "packet_update_structure_block": [ "container", [ @@ -9514,134 +9669,89 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ignore_entities", "1": "show_air", "2": "show_bounding_box", "3": "strict" - } + }, + "type": "u8" } ] } ] ], - "packet_set_test_block": [ + "packet_use_entity": [ "container", [ { - "name": "position", - "type": "position" - }, - { - "name": "mode", + "name": "target", "type": "varint" }, { - "name": "message", - "type": "string" - } - ] - ], - "packet_update_sign": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "isFrontText", - "type": "bool" - }, - { - "name": "text1", - "type": "string" - }, - { - "name": "text2", - "type": "string" - }, - { - "name": "text3", - "type": "string" - }, - { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ - { - "name": "hand", + "name": "mouse", "type": "varint" - } - ] - ], - "packet_spectate": [ - "container", - [ - { - "name": "target", - "type": "UUID" - } - ] - ], - "packet_test_instance_block_action": [ - "container", - [ - { - "name": "pos", - "type": "position" }, { - "name": "action", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "data", + "name": "y", "type": [ - "container", - [ - { - "name": "test", - "type": [ - "option", - "string" - ] - }, - { - "name": "size", - "type": "vec3i" - }, - { - "name": "rotation", - "type": "varint" - }, - { - "name": "ignoreEntities", - "type": "bool" - }, - { - "name": "status", - "type": "varint" - }, - { - "name": "errorMessage", - "type": [ - "option", - "anonymousNbt" - ] + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" } - ] + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } ] + }, + { + "name": "sneaking", + "type": "bool" } ] ], - "packet_block_place": [ + "packet_use_item": [ "container", [ { @@ -9649,207 +9759,97 @@ "type": "varint" }, { - "name": "location", - "type": "position" + "name": "sequence", + "type": "varint" }, { - "name": "direction", - "type": "varint" + "name": "rotation", + "type": "vec2f" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": "f64" }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": "f64" }, { - "name": "cursorZ", + "name": "yaw", "type": "f32" }, { - "name": "insideBlock", - "type": "bool" + "name": "pitch", + "type": "f32" }, { - "name": "worldBorderHit", + "name": "onGround", "type": "bool" - }, - { - "name": "sequence", - "type": "varint" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "sequence", + "name": "stateId", "type": "varint" }, { - "name": "rotation", - "type": "vec2f" - } - ] - ], - "packet": [ - "container", - [ + "name": "slot", + "type": "i16" + }, { - "name": "name", + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "select_bundle_item", - "0x03": "set_difficulty", - "0x04": "message_acknowledgement", - "0x05": "chat_command", - "0x06": "chat_command_signed", - "0x07": "chat_message", - "0x08": "chat_session_update", - "0x09": "chunk_batch_received", - "0x0a": "client_command", - "0x0b": "tick_end", - "0x0c": "settings", - "0x0d": "tab_complete", - "0x0e": "configuration_acknowledged", - "0x0f": "enchant_item", - "0x10": "window_click", - "0x11": "close_window", - "0x12": "set_slot_state", - "0x13": "cookie_response", - "0x14": "custom_payload", - "0x15": "debug_sample_subscription", - "0x16": "edit_book", - "0x17": "query_entity_nbt", - "0x18": "use_entity", - "0x19": "generate_structure", - "0x1a": "keep_alive", - "0x1b": "lock_difficulty", - "0x1c": "position", - "0x1d": "position_look", - "0x1e": "look", - "0x1f": "flying", - "0x20": "vehicle_move", - "0x21": "steer_boat", - "0x22": "pick_item_from_block", - "0x23": "pick_item_from_entity", - "0x24": "ping_request", - "0x25": "craft_recipe_request", - "0x26": "abilities", - "0x27": "block_dig", - "0x28": "entity_action", - "0x29": "player_input", - "0x2a": "player_loaded", - "0x2b": "pong", - "0x2c": "recipe_book", - "0x2d": "displayed_recipe", - "0x2e": "name_item", - "0x2f": "resource_pack_receive", - "0x30": "advancement_tab", - "0x31": "select_trade", - "0x32": "set_beacon_effect", - "0x33": "held_item_slot", - "0x34": "update_command_block", - "0x35": "update_command_block_minecart", - "0x36": "set_creative_slot", - "0x37": "update_jigsaw_block", - "0x38": "update_structure_block", - "0x39": "set_test_block", - "0x3a": "update_sign", - "0x3b": "arm_animation", - "0x3c": "test_instance_block_action", - "0x3d": "spectate", - "0x3e": "block_place", - "0x3f": "use_item" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": [ + "option", + "HashedSlot" + ] + } + ] + ] } ] }, { - "name": "params", + "name": "cursorItem", "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "select_bundle_item": "packet_select_bundle_item", - "set_difficulty": "packet_set_difficulty", - "message_acknowledgement": "packet_message_acknowledgement", - "chat_command": "packet_chat_command", - "chat_command_signed": "packet_chat_command_signed", - "chat_message": "packet_chat_message", - "chat_session_update": "packet_chat_session_update", - "chunk_batch_received": "packet_chunk_batch_received", - "client_command": "packet_client_command", - "tick_end": "packet_tick_end", - "settings": "packet_common_settings", - "tab_complete": "packet_tab_complete", - "configuration_acknowledged": "packet_configuration_acknowledged", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "set_slot_state": "packet_set_slot_state", - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "debug_sample_subscription": "packet_debug_sample_subscription", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "pick_item_from_block": "packet_pick_item_from_block", - "pick_item_from_entity": "packet_pick_item_from_entity", - "ping_request": "packet_ping_request", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "player_input": "packet_player_input", - "player_loaded": "packet_player_loaded", - "pong": "packet_pong", - "recipe_book": "packet_recipe_book", - "displayed_recipe": "packet_displayed_recipe", - "name_item": "packet_name_item", - "resource_pack_receive": "packet_resource_pack_receive", - "advancement_tab": "packet_advancement_tab", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "held_item_slot": "packet_held_item_slot", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_structure_block": "packet_update_structure_block", - "set_test_block": "packet_set_test_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "test_instance_block_action": "packet_test_instance_block_action", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } - } + "option", + "HashedSlot" ] } ] diff --git a/data/pc/1.21.6/protocol.json b/data/pc/1.21.6/protocol.json index 54c1ec1e8..580de9f31 100644 --- a/data/pc/1.21.6/protocol.json +++ b/data/pc/1.21.6/protocol.json @@ -1,147 +1,206 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "anonymousNbt": "native", - "anonOptionalNbt": "native", - "registryEntryHolder": "native", - "registryEntryHolderSet": "native", - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec2f": [ + "ArmorTrimMaterial": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetBase", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "overrideArmorAssets", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + }, + { + "name": "description", + "type": "anonymousNbt" } ] ], - "vec3f": [ + "ArmorTrimPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "description", + "type": "anonymousNbt" }, { - "name": "z", - "type": "f32" + "name": "decal", + "type": "bool" } ] ], - "vec4f": [ + "BannerPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" - }, + "name": "translationKey", + "type": "string" + } + ] + ], + "BannerPatternLayer": [ + "container", + [ { - "name": "z", - "type": "f32" + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "BannerPattern" + } + } + ] }, { - "name": "w", - "type": "f32" + "name": "colorId", + "type": "varint" } ] ], - "vec3f64": [ + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "ContainerID": "varint", + "DataComponentMatchers": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "exactMatchers", + "type": "ExactComponentMatcher" }, { - "name": "z", - "type": "f64" + "name": "partialMatchers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "vec3i": [ + "EntityMetadataPaintingVariant": [ "container", [ { - "name": "x", - "type": "varint" + "name": "width", + "type": "i32" }, { - "name": "y", - "type": "varint" + "name": "height", + "type": "i32" }, { - "name": "z", - "type": "varint" + "name": "assetId", + "type": "string" + }, + { + "name": "title", + "type": [ + "option", + "anonymousNbt" + ] + }, + { + "name": "author", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "vec3i16": [ + "ExactComponentMatcher": [ + "array", + { + "countType": "varint", + "type": "SlotComponent" + } + ], + "HashedSlot": [ "container", [ { - "name": "x", - "type": "i16" + "name": "itemId", + "type": "varint" }, { - "name": "y", - "type": "i16" + "name": "itemCount", + "type": "varint" }, { - "name": "z", - "type": "i16" + "name": "components", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + }, + { + "name": "hash", + "type": "i32" + } + ] + ] + } + ] + }, + { + "name": "removeComponents", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] } ] ], @@ -158,1601 +217,204 @@ } } ], - "ContainerID": "varint", - "SlotComponentType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "custom_data", - "1": "max_stack_size", - "2": "max_damage", - "3": "damage", - "4": "unbreakable", - "5": "custom_name", - "6": "item_name", - "7": "item_model", - "8": "lore", - "9": "rarity", - "10": "enchantments", - "11": "can_place_on", - "12": "can_break", - "13": "attribute_modifiers", - "14": "custom_model_data", - "15": "tooltip_display", - "16": "repair_cost", - "17": "creative_slot_lock", - "18": "enchantment_glint_override", - "19": "intangible_projectile", - "20": "food", - "21": "consumable", - "22": "use_remainder", - "23": "use_cooldown", - "24": "damage_resistant", - "25": "tool", - "26": "weapon", - "27": "enchantable", - "28": "equippable", - "29": "repairable", - "30": "glider", - "31": "tooltip_style", - "32": "death_protection", - "33": "blocks_attacks", - "34": "stored_enchantments", - "35": "dyed_color", - "36": "map_color", - "37": "map_id", - "38": "map_decorations", - "39": "map_post_processing", - "40": "charged_projectiles", - "41": "bundle_contents", - "42": "potion_contents", - "43": "potion_duration_scale", - "44": "suspicious_stew_effects", - "45": "writable_book_content", - "46": "written_book_content", - "47": "trim", - "48": "debug_stick_state", - "49": "entity_data", - "50": "bucket_entity_data", - "51": "block_entity_data", - "52": "instrument", - "53": "provides_trim_material", - "54": "ominous_bottle_amplifier", - "55": "jukebox_playable", - "56": "provides_banner_patterns", - "57": "recipes", - "58": "lodestone_tracker", - "59": "firework_explosion", - "60": "fireworks", - "61": "profile", - "62": "note_block_sound", - "63": "banner_patterns", - "64": "base_color", - "65": "pot_decorations", - "66": "container", - "67": "block_state", - "68": "bees", - "69": "lock", - "70": "container_loot", - "71": "break_sound", - "72": "villager/variant", - "73": "wolf/variant", - "74": "wolf/sound_variant", - "75": "wolf/collar", - "76": "fox/variant", - "77": "salmon/size", - "78": "parrot/variant", - "79": "tropical_fish/pattern", - "80": "tropical_fish/base_color", - "81": "tropical_fish/pattern_color", - "82": "mooshroom/variant", - "83": "rabbit/variant", - "84": "pig/variant", - "85": "cow/variant", - "86": "chicken/variant", - "87": "frog/variant", - "88": "horse/variant", - "89": "painting/variant", - "90": "llama/variant", - "91": "axolotl/variant", - "92": "cat/variant", - "93": "cat/collar", - "94": "sheep/color", - "95": "shulker/color" + "InstrumentData": [ + "container", + [ + { + "name": "soundEvent", + "type": "ItemSoundHolder" + }, + { + "name": "useDuration", + "type": "f32" + }, + { + "name": "range", + "type": "f32" + }, + { + "name": "description", + "type": "anonymousNbt" } - } + ] ], - "SlotComponent": [ + "ItemBlockPredicate": [ "container", [ { - "name": "type", - "type": "SlotComponentType" + "name": "blockSet", + "type": [ + "option", + [ + "registryEntryHolderSet", + { + "base": { + "name": "name", + "type": "string" + }, + "otherwise": { + "name": "blockIds", + "type": "varint" + } + } + ] + ] }, { - "name": "data", + "name": "properties", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": "ItemBlockProperty" + } + ] + ] + }, + { + "name": "nbt", + "type": "anonOptionalNbt" + }, + { + "name": "components", + "type": "DataComponentMatchers" + } + ] + ], + "ItemBlockProperty": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "isExactMatch", + "type": "bool" + }, + { + "name": "value", "type": [ "switch", { - "compareTo": "type", + "compareTo": "isExactMatch", "fields": { - "custom_data": "anonymousNbt", - "max_stack_size": "varint", - "max_damage": "varint", - "damage": "varint", - "unbreakable": "void", - "custom_name": "anonymousNbt", - "item_name": "anonymousNbt", - "item_model": "string", - "lore": [ - "array", - { - "countType": "varint", - "type": "anonymousNbt" - } - ], - "rarity": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "common", - "1": "uncommon", - "2": "rare", - "3": "epic" - } - } - ], - "enchantments": [ + "false": [ "container", [ { - "name": "enchantments", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "stored_enchantments": [ - "container", - [ + "name": "minValue", + "type": "string" + }, { - "name": "enchantments", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] - } - ] + "name": "maxValue", + "type": "string" } ] ], - "can_place_on": [ + "true": [ "container", [ { - "name": "predicates", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBlockPredicate" - } - ] + "name": "exactValue", + "type": "string" } ] - ], - "can_break": [ - "container", - [ - { - "name": "predicates", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBlockPredicate" - } - ] - } - ] - ], - "attribute_modifiers": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "typeId", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "operation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "add", - "1": "multiply_base", - "2": "multiply_total" - } - } - ] - }, - { - "name": "slot", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "any", - "1": "main_hand", - "2": "off_hand", - "3": "hand", - "4": "feet", - "5": "legs", - "6": "chest", - "7": "head", - "8": "armor", - "9": "body", - "10": "saddle" - } - } - ] - }, - { - "name": "display", - "type": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "default", - "1": "hidden", - "2": "override" - } - } - ] - }, - { - "name": "component", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "override": "anonymousNbt" - } - } - ] - } - ] - ] - } - ] - ] - } - ], - "custom_model_data": [ + ] + } + } + ] + } + ] + ], + "ItemBookPage": [ + "container", + [ + { + "name": "content", + "type": "string" + }, + { + "name": "filteredContent", + "type": [ + "option", + "string" + ] + } + ] + ], + "ItemConsumeEffect": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "apply_effects", + "1": "remove_effects", + "2": "clear_all_effects", + "3": "teleport_randomly", + "4": "play_sound" + }, + "type": "varint" + } + ] + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "apply_effects": [ "container", [ { - "name": "floats", - "type": [ - "array", - { - "countType": "varint", - "type": "f32" - } - ] - }, - { - "name": "flags", - "type": [ - "array", - { - "countType": "varint", - "type": "bool" - } - ] - }, - { - "name": "strings", + "name": "effects", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "ItemPotionEffect" } ] }, { - "name": "colors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] + "name": "probability", + "type": "f32" } ] ], - "tooltip_display": [ + "clear_all_effects": "void", + "play_sound": [ "container", [ { - "name": "hideTooltip", - "type": "bool" - }, - { - "name": "hiddenComponents", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "sound", + "type": "ItemSoundHolder" } ] ], - "repair_cost": "varint", - "creative_slot_lock": "void", - "enchantment_glint_override": "bool", - "intangible_projectile": "void", - "blocks_attacks": [ + "remove_effects": [ "container", [ { - "name": "blockDelaySeconds", - "type": "f32" - }, + "name": "effects", + "type": "IDSet" + } + ] + ], + "teleport_randomly": [ + "container", + [ { - "name": "disableCooldownScale", + "name": "diameter", "type": "f32" - }, - { - "name": "damageReductions", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalBlockingAngle", - "type": "f32" - }, - { - "name": "type", - "type": [ - "option", - "IDSet" - ] - }, - { - "name": "base", - "type": "f32" - }, - { - "name": "factor", - "type": "f32" - } - ] - ] - } - ] - }, - { - "name": "itemDamage", - "type": [ - "container", - [ - { - "name": "threshold", - "type": "f32" - }, - { - "name": "base", - "type": "f32" - }, - { - "name": "factor", - "type": "f32" - } - ] - ] - }, - { - "name": "bypassedBy", - "type": [ - "option", - "string" - ] - }, - { - "name": "blockSound", - "type": [ - "option", - "ItemSoundHolder" - ] - }, - { - "name": "disableSound", - "type": [ - "option", - "ItemSoundHolder" - ] - } - ] - ], - "food": [ - "container", - [ - { - "name": "nutrition", - "type": "varint" - }, - { - "name": "saturationModifier", - "type": "f32" - }, - { - "name": "canAlwaysEat", - "type": "bool" - } - ] - ], - "consumable": [ - "container", - [ - { - "name": "consume_seconds", - "type": "f32" - }, - { - "name": "animation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "none", - "1": "eat", - "2": "drink", - "3": "block", - "4": "bow", - "5": "spear", - "6": "crossbow", - "7": "spyglass", - "8": "toot_horn", - "9": "brush", - "10": "bundle" - } - } - ] - }, - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "makes_particles", - "type": "bool" - }, - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemConsumeEffect" - } - ] - } - ] - ], - "use_remainder": "Slot", - "use_cooldown": [ - "container", - [ - { - "name": "seconds", - "type": "f32" - }, - { - "name": "cooldownGroup", - "type": [ - "option", - "string" - ] - } - ] - ], - "damage_resistant": "string", - "tool": [ - "container", - [ - { - "name": "rules", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "blocks", - "type": "IDSet" - }, - { - "name": "speed", - "type": [ - "option", - "f32" - ] - }, - { - "name": "correctDropForBlocks", - "type": [ - "option", - "bool" - ] - } - ] - ] - } - ] - }, - { - "name": "defaultMiningSpeed", - "type": "f32" - }, - { - "name": "damagePerBlock", - "type": "varint" - }, - { - "name": "canDestroyBlocksInCreative", - "type": "bool" - } - ] - ], - "weapon": [ - "container", - [ - { - "name": "itemDamagePerAttack", - "type": "varint" - }, - { - "name": "disableBlockingForSeconds", - "type": "f32" - } - ] - ], - "enchantable": "varint", - "equippable": [ - "container", - [ - { - "name": "slot", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "main_hand", - "1": "off_hand", - "2": "feet", - "3": "legs", - "4": "chest", - "5": "head", - "6": "body", - "7": "saddle" - } - } - ] - }, - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "model", - "type": [ - "option", - "string" - ] - }, - { - "name": "cameraOverlay", - "type": [ - "option", - "string" - ] - }, - { - "name": "allowedEntities", - "type": [ - "option", - "IDSet" - ] - }, - { - "name": "dispensable", - "type": "bool" - }, - { - "name": "swappable", - "type": "bool" - }, - { - "name": "damageable", - "type": "bool" - }, - { - "name": "equipOnInteract", - "type": "bool" - }, - { - "name": "shearable", - "type": "bool" - }, - { - "name": "shearingSound", - "type": "ItemSoundHolder" - } - ] - ], - "repairable": [ - "container", - [ - { - "name": "items", - "type": "IDSet" - } - ] - ], - "glider": "void", - "tooltip_style": "string", - "death_protection": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemConsumeEffect" - } - ] - } - ] - ], - "dyed_color": "i32", - "map_color": "i32", - "map_id": "varint", - "map_decorations": "anonymousNbt", - "map_post_processing": "varint", - "potion_duration_scale": "f32", - "charged_projectiles": [ - "container", - [ - { - "name": "projectiles", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "bundle_contents": [ - "container", - [ - { - "name": "contents", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "potion_contents": [ - "container", - [ - { - "name": "potionId", - "type": [ - "option", - "varint" - ] - }, - { - "name": "customColor", - "type": [ - "option", - "i32" - ] - }, - { - "name": "customEffects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemPotionEffect" - } - ] - }, - { - "name": "customName", - "type": [ - "option", - "string" - ] - } - ] - ], - "suspicious_stew_effects": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "effect", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "writable_book_content": [ - "container", - [ - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBookPage" - } - ] - } - ] - ], - "written_book_content": [ - "container", - [ - { - "name": "rawTitle", - "type": "string" - }, - { - "name": "filteredTitle", - "type": [ - "option", - "string" - ] - }, - { - "name": "author", - "type": "string" - }, - { - "name": "generation", - "type": "varint" - }, - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemWrittenBookPage" - } - ] - }, - { - "name": "resolved", - "type": "bool" - } - ] - ], - "trim": [ - "container", - [ - { - "name": "material", - "type": [ - "registryEntryHolder", - { - "baseName": "materialId", - "otherwise": { - "name": "data", - "type": "ArmorTrimMaterial" - } - } - ] - }, - { - "name": "pattern", - "type": [ - "registryEntryHolder", - { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "ArmorTrimPattern" - } - } - ] - } - ] - ], - "debug_stick_state": "anonymousNbt", - "entity_data": "anonymousNbt", - "bucket_entity_data": "anonymousNbt", - "block_entity_data": "anonymousNbt", - "instrument": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "instrumentId", - "otherwise": { - "name": "data", - "type": "InstrumentData" - } - } - ], - "false": "string" - } - } - ] - } - ] - ], - "provides_trim_material": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "material", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "materialId", - "otherwise": { - "name": "data", - "type": "ArmorTrimMaterial" - } - } - ], - "false": "string" - } - } - ] - } - ] - ], - "ominous_bottle_amplifier": "varint", - "jukebox_playable": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "song", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "songId", - "otherwise": { - "name": "data", - "type": "JukeboxSongData" - } - } - ], - "false": "string" - } - } - ] - } - ] - ], - "provides_banner_patterns": "string", - "recipes": "anonymousNbt", - "lodestone_tracker": [ - "container", - [ - { - "name": "globalPosition", - "type": [ - "option", - [ - "container", - [ - { - "name": "dimension", - "type": "string" - }, - { - "name": "position", - "type": "position" - } - ] - ] - ] - }, - { - "name": "tracked", - "type": "bool" - } - ] - ], - "firework_explosion": "ItemFireworkExplosion", - "fireworks": [ - "container", - [ - { - "name": "flightDuration", - "type": "varint" - }, - { - "name": "explosions", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemFireworkExplosion" - } - ] - } - ] - ], - "profile": [ - "container", - [ - { - "name": "name", - "type": [ - "option", - "string" - ] - }, - { - "name": "uuid", - "type": [ - "option", - "UUID" - ] - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "note_block_sound": "string", - "banner_patterns": [ - "container", - [ - { - "name": "layers", - "type": [ - "array", - { - "countType": "varint", - "type": "BannerPatternLayer" - } - ] - } - ] - ], - "base_color": "varint", - "pot_decorations": [ - "container", - [ - { - "name": "decorations", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "container": [ - "container", - [ - { - "name": "contents", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "block_state": [ - "container", - [ - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] - } - ] - ], - "bees": [ - "container", - [ - { - "name": "bees", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "nbtData", - "type": "anonymousNbt" - }, - { - "name": "ticksInHive", - "type": "varint" - }, - { - "name": "minTicksInHive", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "lock": "anonymousNbt", - "container_loot": "anonymousNbt", - "break_sound": "ItemSoundHolder", - "villager/variant": "varint", - "wolf/variant": "varint", - "wolf/sound_variant": "varint", - "wolf/collar": "varint", - "fox/variant": "varint", - "salmon/size": "varint", - "parrot/variant": "varint", - "tropical_fish/pattern": "varint", - "tropical_fish/base_color": "varint", - "tropical_fish/pattern_color": "varint", - "mooshroom/variant": "varint", - "rabbit/variant": "varint", - "pig/variant": "varint", - "cow/variant": "varint", - "chicken/variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "string" - } - } - ], - "frog/variant": "varint", - "horse/variant": "varint", - "painting/variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "data", - "type": "EntityMetadataPaintingVariant" - } - } - ], - "llama/variant": "varint", - "axolotl/variant": "varint", - "cat/variant": "varint", - "cat/collar": "varint", - "sheep/color": "varint", - "shulker/color": "varint" - } - } - ] - } - ] - ], - "ItemSoundEvent": [ - "container", - [ - { - "name": "soundName", - "type": "string" - }, - { - "name": "fixedRange", - "type": [ - "option", - "f32" - ] - } - ] - ], - "ItemSoundHolder": [ - "registryEntryHolder", - { - "baseName": "soundId", - "otherwise": { - "name": "data", - "type": "ItemSoundEvent" - } - } - ], - "ItemFireworkExplosion": [ - "container", - [ - { - "name": "shape", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "small_ball", - "1": "large_ball", - "2": "star", - "3": "creeper", - "4": "burst" - } - } - ] - }, - { - "name": "colors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "fadeColors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "hasTrail", - "type": "bool" - }, - { - "name": "hasTwinkle", - "type": "bool" - } - ] - ], - "ItemEffectDetail": [ - "container", - [ - { - "name": "amplifier", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "ambient", - "type": "bool" - }, - { - "name": "showParticles", - "type": "bool" - }, - { - "name": "showIcon", - "type": "bool" - }, - { - "name": "hiddenEffect", - "type": [ - "option", - "ItemEffectDetail" - ] - } - ] - ], - "ItemPotionEffect": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "details", - "type": "ItemEffectDetail" - } - ] - ], - "ItemBlockProperty": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "isExactMatch", - "type": "bool" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "isExactMatch", - "fields": { - "true": [ - "container", - [ - { - "name": "exactValue", - "type": "string" - } - ] - ], - "false": [ - "container", - [ - { - "name": "minValue", - "type": "string" - }, - { - "name": "maxValue", - "type": "string" - } - ] - ] - } - } - ] - } - ] - ], - "ExactComponentMatcher": [ - "array", - { - "countType": "varint", - "type": "SlotComponent" - } - ], - "DataComponentMatchers": [ - "container", - [ - { - "name": "exactMatchers", - "type": "ExactComponentMatcher" - }, - { - "name": "partialMatchers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "ItemBlockPredicate": [ - "container", - [ - { - "name": "blockSet", - "type": [ - "option", - [ - "registryEntryHolderSet", - { - "base": { - "name": "name", - "type": "string" - }, - "otherwise": { - "name": "blockIds", - "type": "varint" - } - } - ] - ] - }, - { - "name": "properties", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": "ItemBlockProperty" - } - ] - ] - }, - { - "name": "nbt", - "type": "anonOptionalNbt" - }, - { - "name": "components", - "type": "DataComponentMatchers" - } - ] - ], - "ItemBookPage": [ - "container", - [ - { - "name": "content", - "type": "string" - }, - { - "name": "filteredContent", - "type": [ - "option", - "string" - ] - } - ] - ], - "ItemWrittenBookPage": [ - "container", - [ - { - "name": "content", - "type": "anonymousNbt" - }, - { - "name": "filteredContent", - "type": "anonOptionalNbt" - } - ] - ], - "ItemConsumeEffect": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "apply_effects", - "1": "remove_effects", - "2": "clear_all_effects", - "3": "teleport_randomly", - "4": "play_sound" - } - } - ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "apply_effects": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemPotionEffect" - } - ] - }, - { - "name": "probability", - "type": "f32" - } - ] - ], - "remove_effects": [ - "container", - [ - { - "name": "effects", - "type": "IDSet" - } - ] - ], - "clear_all_effects": "void", - "teleport_randomly": [ - "container", - [ - { - "name": "diameter", - "type": "f32" - } - ] - ], - "play_sound": [ - "container", - [ - { - "name": "sound", - "type": "ItemSoundHolder" } ] ] @@ -1762,331 +424,157 @@ } ] ], - "ArmorTrimMaterial": [ - "container", - [ - { - "name": "assetBase", - "type": "string" - }, - { - "name": "overrideArmorAssets", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] - }, - { - "name": "description", - "type": "anonymousNbt" - } - ] - ], - "ArmorTrimPattern": [ + "ItemEffectDetail": [ "container", [ { - "name": "assetId", - "type": "string" + "name": "amplifier", + "type": "varint" }, { - "name": "description", - "type": "anonymousNbt" + "name": "duration", + "type": "varint" }, { - "name": "decal", + "name": "ambient", "type": "bool" - } - ] - ], - "InstrumentData": [ - "container", - [ - { - "name": "soundEvent", - "type": "ItemSoundHolder" }, { - "name": "useDuration", - "type": "f32" + "name": "showParticles", + "type": "bool" }, { - "name": "range", - "type": "f32" + "name": "showIcon", + "type": "bool" }, { - "name": "description", - "type": "anonymousNbt" + "name": "hiddenEffect", + "type": [ + "option", + "ItemEffectDetail" + ] } ] ], - "JukeboxSongData": [ + "ItemFireworkExplosion": [ "container", [ { - "name": "soundEvent", - "type": "ItemSoundHolder" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "lengthInSeconds", - "type": "f32" + "name": "shape", + "type": [ + "mapper", + { + "mappings": { + "0": "small_ball", + "1": "large_ball", + "2": "star", + "3": "creeper", + "4": "burst" + }, + "type": "varint" + } + ] }, { - "name": "comparatorOutput", - "type": "varint" - } - ] - ], - "BannerPattern": [ - "container", - [ - { - "name": "assetId", - "type": "string" + "name": "colors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] }, { - "name": "translationKey", - "type": "string" - } - ] - ], - "BannerPatternLayer": [ - "container", - [ - { - "name": "pattern", + "name": "fadeColors", "type": [ - "registryEntryHolder", + "array", { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "BannerPattern" - } + "countType": "varint", + "type": "i32" } ] }, { - "name": "colorId", - "type": "varint" + "name": "hasTrail", + "type": "bool" + }, + { + "name": "hasTwinkle", + "type": "bool" } ] ], - "UntrustedSlotComponent": [ + "ItemPotionEffect": [ "container", [ { - "name": "type", - "type": "SlotComponentType" + "name": "id", + "type": "varint" }, { - "name": "data", - "type": "ByteArray" + "name": "details", + "type": "ItemEffectDetail" } ] ], - "UntrustedSlot": [ + "ItemSoundEvent": [ "container", [ { - "name": "itemCount", - "type": "varint" + "name": "soundName", + "type": "string" }, { - "anon": true, + "name": "fixedRange", "type": [ - "switch", - { - "compareTo": "itemCount", - "fields": { - "0": "void", - "false": "void" - }, - "default": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "removedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "UntrustedSlotComponent" - } - ] - }, - { - "name": "removeComponents", - "type": [ - "array", - { - "count": "removedComponentCount", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] - } - ] - } - ] - ] - } + "option", + "f32" ] } - ] + ] + ], + "ItemSoundHolder": [ + "registryEntryHolder", + { + "baseName": "soundId", + "otherwise": { + "name": "data", + "type": "ItemSoundEvent" + } + } ], - "Slot": [ + "ItemWrittenBookPage": [ "container", [ { - "name": "itemCount", - "type": "varint" + "name": "content", + "type": "anonymousNbt" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "itemCount", - "fields": { - "0": "void" - }, - "default": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "removedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "SlotComponent" - } - ] - }, - { - "name": "removeComponents", - "type": [ - "array", - { - "count": "removedComponentCount", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] - } - ] - } - ] - ] - } - ] + "name": "filteredContent", + "type": "anonOptionalNbt" } ] ], - "HashedSlot": [ + "JukeboxSongData": [ "container", [ { - "name": "itemId", - "type": "varint" + "name": "soundEvent", + "type": "ItemSoundHolder" }, { - "name": "itemCount", - "type": "varint" + "name": "description", + "type": "anonymousNbt" }, { - "name": "components", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - }, - { - "name": "hash", - "type": "i32" - } - ] - ] - } - ] + "name": "lengthInSeconds", + "type": "f32" }, { - "name": "removeComponents", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] - } - ] + "name": "comparatorOutput", + "type": "varint" } ] ], @@ -2098,7 +586,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "angry_villager", "1": "block", @@ -2214,9 +701,239 @@ "111": "trial_omen", "112": "block_crumble", "113": "firefly" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "block": "varint", + "block_crumble": "varint", + "block_marker": "varint", + "dust": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "dust_color_transition": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "dust_pillar": "varint", + "entity_effect": "i32", + "falling_dust": "varint", + "firefly": "void", + "item": "Slot", + "sculk_charge": "f32", + "shriek": "varint", + "tinted_leaves": "i32", + "trail": [ + "container", + [ + { + "name": "target", + "type": "vec3f64" + }, + { + "name": "color", + "type": "u8" + } + ] + ], + "vibration": [ + "container", + [ + { + "name": "positionType", + "type": [ + "mapper", + { + "mappings": { + "0": "block", + "1": "entity" + }, + "type": "varint" + } + ] + }, + { + "name": "position", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "block": "position", + "entity": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "entityEyeHeight", + "type": "f32" + } + ] + ] + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] + ] + } + } + ] + } + ] + ], + "ServerLinkType": [ + "mapper", + { + "mappings": { + "0": "bug_report", + "1": "community_guidelines", + "2": "support", + "3": "status", + "4": "feedback", + "5": "community", + "6": "website", + "7": "forums", + "8": "news", + "9": "announcements" + }, + "type": "varint" + } + ], + "Slot": [ + "container", + [ + { + "name": "itemCount", + "type": "varint" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "itemCount", + "default": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "removedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "SlotComponent" + } + ] + }, + { + "name": "removeComponents", + "type": [ + "array", + { + "count": "removedComponentCount", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] + } + ] + ], + "fields": { + "0": "void" } } ] + } + ] + ], + "SlotComponent": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" }, { "name": "data", @@ -2225,2043 +942,2508 @@ { "compareTo": "type", "fields": { - "block": "varint", - "block_marker": "varint", - "falling_dust": "varint", - "dust_pillar": "varint", - "block_crumble": "varint", - "dust": [ + "attribute_modifiers": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "typeId", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "operation", + "type": [ + "mapper", + { + "mappings": { + "0": "add", + "1": "multiply_base", + "2": "multiply_total" + }, + "type": "varint" + } + ] + }, + { + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "any", + "1": "main_hand", + "2": "off_hand", + "3": "hand", + "4": "feet", + "5": "legs", + "6": "chest", + "7": "head", + "8": "armor", + "9": "body", + "10": "saddle" + }, + "type": "varint" + } + ] + }, + { + "name": "display", + "type": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "default", + "1": "hidden", + "2": "override" + }, + "type": "varint" + } + ] + }, + { + "name": "component", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "override": "anonymousNbt" + } + } + ] + } + ] + ] + } + ] + ] + } + ], + "axolotl/variant": "varint", + "banner_patterns": [ "container", [ { - "name": "red", - "type": "f32" - }, - { - "name": "green", - "type": "f32" - }, - { - "name": "blue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" + "name": "layers", + "type": [ + "array", + { + "countType": "varint", + "type": "BannerPatternLayer" + } + ] } ] ], - "dust_color_transition": [ + "base_color": "varint", + "bees": [ "container", [ { - "name": "fromRed", - "type": "f32" - }, - { - "name": "fromGreen", - "type": "f32" - }, - { - "name": "fromBlue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - }, - { - "name": "toRed", - "type": "f32" - }, - { - "name": "toGreen", - "type": "f32" - }, - { - "name": "toBlue", - "type": "f32" + "name": "bees", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "nbtData", + "type": "anonymousNbt" + }, + { + "name": "ticksInHive", + "type": "varint" + }, + { + "name": "minTicksInHive", + "type": "varint" + } + ] + ] + } + ] } ] ], - "entity_effect": "i32", - "item": "Slot", - "sculk_charge": "f32", - "shriek": "varint", - "vibration": [ + "block_entity_data": "anonymousNbt", + "block_state": [ "container", [ { - "name": "positionType", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "block", - "1": "entity" - } - } - ] - }, - { - "name": "position", + "name": "properties", "type": [ - "switch", + "array", { - "compareTo": "positionType", - "fields": { - "block": "position", - "entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityEyeHeight", - "type": "f32" - } - ] + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + } ] - } + ] } ] - }, - { - "name": "ticks", - "type": "varint" } ] ], - "trail": [ + "blocks_attacks": [ "container", [ { - "name": "target", - "type": "vec3f64" + "name": "blockDelaySeconds", + "type": "f32" }, { - "name": "color", - "type": "u8" - } - ] - ], - "tinted_leaves": "i32", - "firefly": "void" - } - } - ] - } - ] - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "soundSource": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "master", - "1": "music", - "2": "record", - "3": "weather", - "4": "block", - "5": "hostile", - "6": "neutral", - "7": "player", - "8": "ambient", - "9": "voice", - "10": "ui" - } - } - ], - "packedChunkPos": [ - "container", - [ - { - "name": "z", - "type": "i32" - }, - { - "name": "x", - "type": "i32" - } - ] - ], - "previousMessages": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] - } - ] - ] - } - ], - "entityMetadataEntry": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "byte", - "1": "int", - "2": "long", - "3": "float", - "4": "string", - "5": "component", - "6": "optional_component", - "7": "item_stack", - "8": "boolean", - "9": "rotations", - "10": "block_pos", - "11": "optional_block_pos", - "12": "direction", - "13": "optional_uuid", - "14": "block_state", - "15": "optional_block_state", - "16": "compound_tag", - "17": "particle", - "18": "particles", - "19": "villager_data", - "20": "optional_unsigned_int", - "21": "pose", - "22": "cat_variant", - "23": "cow_variant", - "24": "wolf_variant", - "25": "wolf_sound_variant", - "26": "frog_variant", - "27": "pig_variant", - "28": "chicken_variant", - "29": "optional_global_pos", - "30": "painting_variant", - "31": "sniffer_state", - "32": "armadillo_state", - "33": "vector3", - "34": "quaternion" - } - } - ] - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "byte": "i8", - "int": "varint", - "long": "varlong", - "float": "f32", - "string": "string", - "component": "anonymousNbt", - "optional_component": [ - "option", - "anonymousNbt" - ], - "item_stack": "Slot", - "boolean": "bool", - "rotations": [ - "container", - [ + "name": "disableCooldownScale", + "type": "f32" + }, + { + "name": "damageReductions", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalBlockingAngle", + "type": "f32" + }, + { + "name": "type", + "type": [ + "option", + "IDSet" + ] + }, + { + "name": "base", + "type": "f32" + }, + { + "name": "factor", + "type": "f32" + } + ] + ] + } + ] + }, { - "name": "pitch", - "type": "f32" + "name": "itemDamage", + "type": [ + "container", + [ + { + "name": "threshold", + "type": "f32" + }, + { + "name": "base", + "type": "f32" + }, + { + "name": "factor", + "type": "f32" + } + ] + ] }, { - "name": "yaw", - "type": "f32" + "name": "bypassedBy", + "type": [ + "option", + "string" + ] }, { - "name": "roll", - "type": "f32" + "name": "blockSound", + "type": [ + "option", + "ItemSoundHolder" + ] + }, + { + "name": "disableSound", + "type": [ + "option", + "ItemSoundHolder" + ] } ] ], - "block_pos": "position", - "optional_block_pos": [ - "option", - "position" - ], - "direction": "varint", - "optional_uuid": [ - "option", - "UUID" - ], - "block_state": "varint", - "optional_block_state": "optvarint", - "compound_tag": "anonymousNbt", - "particle": "Particle", - "particles": [ - "array", - { - "countType": "varint", - "type": "Particle" - } - ], - "villager_data": [ + "break_sound": "ItemSoundHolder", + "bucket_entity_data": "anonymousNbt", + "bundle_contents": [ "container", [ { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" + "name": "contents", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] } ] ], - "optional_unsigned_int": "optvarint", - "pose": "varint", - "cat_variant": "varint", - "cow_variant": "varint", - "wolf_variant": "varint", - "wolf_sound_variant": "varint", - "frog_variant": "varint", - "pig_variant": "varint", - "chicken_variant": "varint", - "optional_global_pos": [ - "option", - "string" - ], - "painting_variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "EntityMetadataPaintingVariant" - } - } - ], - "sniffer_state": "varint", - "armadillo_state": "varint", - "vector3": "vec3f", - "quaternion": "vec4f" - } - } - ] - } - ] - ], - "EntityMetadataPaintingVariant": [ - "container", - [ - { - "name": "width", - "type": "i32" - }, - { - "name": "height", - "type": "i32" - }, - { - "name": "assetId", - "type": "string" - }, - { - "name": "title", - "type": [ - "option", - "anonymousNbt" - ] - }, - { - "name": "author", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": "entityMetadataEntry" - } - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "chunkBlockEntity": [ - "container", - [ - { - "anon": true, - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "nbtData", - "type": "anonOptionalNbt" - } - ] - ], - "chat_session": [ - "option", - [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "publicKey", - "type": [ - "container", - [ - { - "name": "expireTime", - "type": "i64" - }, - { - "name": "keyBytes", - "type": [ - "buffer", + "can_break": [ + "container", + [ { - "countType": "varint" + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" + } + ] } ] - }, - { - "name": "keySignature", - "type": [ - "buffer", + ], + "can_place_on": [ + "container", + [ { - "countType": "varint" + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" + } + ] } ] - } - ] - ] - } - ] - ] - ], - "game_profile": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 2, - "signed": false - }, - { - "name": "allows_restricted", - "size": 1, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "extraNodeData", - "type": [ - "switch", - { - "compareTo": "flags/command_node_type", - "fields": { - "0": "void", - "1": [ + ], + "cat/collar": "varint", + "cat/variant": "varint", + "charged_projectiles": [ "container", [ { - "name": "name", - "type": "string" + "name": "projectiles", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] } ] ], - "2": [ + "chicken/variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "string" + } + } + ], + "consumable": [ "container", [ { - "name": "name", - "type": "string" + "name": "consume_seconds", + "type": "f32" }, { - "name": "parser", + "name": "animation", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "brigadier:bool", - "1": "brigadier:float", - "2": "brigadier:double", - "3": "brigadier:integer", - "4": "brigadier:long", - "5": "brigadier:string", - "6": "minecraft:entity", - "7": "minecraft:game_profile", - "8": "minecraft:block_pos", - "9": "minecraft:column_pos", - "10": "minecraft:vec3", - "11": "minecraft:vec2", - "12": "minecraft:block_state", - "13": "minecraft:block_predicate", - "14": "minecraft:item_stack", - "15": "minecraft:item_predicate", - "16": "minecraft:color", - "17": "minecraft:hex_color", - "18": "minecraft:component", - "19": "minecraft:style", - "20": "minecraft:message", - "21": "minecraft:nbt", - "22": "minecraft:nbt_tag", - "23": "minecraft:nbt_path", - "24": "minecraft:objective", - "25": "minecraft:objective_criteria", - "26": "minecraft:operation", - "27": "minecraft:particle", - "28": "minecraft:angle", - "29": "minecraft:rotation", - "30": "minecraft:scoreboard_slot", - "31": "minecraft:score_holder", - "32": "minecraft:swizzle", - "33": "minecraft:team", - "34": "minecraft:item_slot", - "35": "minecraft:item_slots", - "36": "minecraft:resource_location", - "37": "minecraft:function", - "38": "minecraft:entity_anchor", - "39": "minecraft:int_range", - "40": "minecraft:float_range", - "41": "minecraft:dimension", - "42": "minecraft:gamemode", - "43": "minecraft:time", - "44": "minecraft:resource_or_tag", - "45": "minecraft:resource_or_tag_key", - "46": "minecraft:resource", - "47": "minecraft:resource_key", - "48": "minecraft:resource_selector", - "49": "minecraft:template_mirror", - "50": "minecraft:template_rotation", - "51": "minecraft:heightmap", - "52": "minecraft:loot_table", - "53": "minecraft:loot_predicate", - "54": "minecraft:loot_modifier", - "55": "minecraft:dialog", - "56": "minecraft:uuid" - } + "0": "none", + "1": "eat", + "2": "drink", + "3": "block", + "4": "bow", + "5": "spear", + "6": "crossbow", + "7": "spyglass", + "8": "toot_horn", + "9": "brush", + "10": "bundle" + }, + "type": "varint" + } + ] + }, + { + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "makes_particles", + "type": "bool" + }, + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemConsumeEffect" + } + ] + } + ] + ], + "container": [ + "container", + [ + { + "name": "contents", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "container_loot": "anonymousNbt", + "cow/variant": "varint", + "creative_slot_lock": "void", + "custom_data": "anonymousNbt", + "custom_model_data": [ + "container", + [ + { + "name": "floats", + "type": [ + "array", + { + "countType": "varint", + "type": "f32" } ] }, { - "name": "properties", + "name": "flags", "type": [ - "switch", + "array", { - "compareTo": "parser", - "fields": { - "brigadier:bool": "void", - "brigadier:float": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "min", - "type": [ - "switch", - { - "compareTo": "flags/min_present", - "fields": { - "1": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "max", - "type": [ - "switch", - { - "compareTo": "flags/max_present", - "fields": { - "1": "f32" - }, - "default": "void" - } - ] - } - ] - ], - "brigadier:double": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "min", - "type": [ - "switch", - { - "compareTo": "flags/min_present", - "fields": { - "1": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "max", - "type": [ - "switch", - { - "compareTo": "flags/max_present", - "fields": { - "1": "f64" - }, - "default": "void" - } - ] - } - ] - ], - "brigadier:integer": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "min", - "type": [ - "switch", - { - "compareTo": "flags/min_present", - "fields": { - "1": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "max", - "type": [ - "switch", - { - "compareTo": "flags/max_present", - "fields": { - "1": "i32" - }, - "default": "void" - } - ] - } - ] - ], - "brigadier:long": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "min", - "type": [ - "switch", - { - "compareTo": "flags/min_present", - "fields": { - "1": "i64" - }, - "default": "void" - } - ] - }, - { - "name": "max", - "type": [ - "switch", - { - "compareTo": "flags/max_present", - "fields": { - "1": "i64" - }, - "default": "void" - } - ] - } - ] - ], - "brigadier:string": [ - "mapper", + "countType": "varint", + "type": "bool" + } + ] + }, + { + "name": "strings", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "colors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] + } + ] + ], + "custom_name": "anonymousNbt", + "damage": "varint", + "damage_resistant": "string", + "death_protection": [ + "container", + [ + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemConsumeEffect" + } + ] + } + ] + ], + "debug_stick_state": "anonymousNbt", + "dyed_color": "i32", + "enchantable": "varint", + "enchantment_glint_override": "bool", + "enchantments": [ + "container", + [ + { + "name": "enchantments", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ { - "type": "varint", - "mappings": { - "0": "SINGLE_WORD", - "1": "QUOTABLE_PHRASE", - "2": "GREEDY_PHRASE" - } + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" } - ], - "minecraft:entity": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ], - "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", - "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:hex_color": "void", - "minecraft:component": "void", - "minecraft:message": "void", - "minecraft:nbt": "void", - "minecraft:nbt_path": "void", - "minecraft:objective": "void", - "minecraft:objective_criteria": "void", - "minecraft:operation": "void", - "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:dimension": "void", - "minecraft:gamemode": "void", - "minecraft:time": [ - "container", - [ - { - "name": "min", - "type": "i32" - } - ] - ], - "minecraft:resource_or_tag": [ - "container", - [ - { - "name": "registry", - "type": "string" - } - ] - ], - "minecraft:resource_or_tag_key": [ - "container", - [ - { - "name": "registry", - "type": "string" - } - ] - ], - "minecraft:resource": [ - "container", - [ - { - "name": "registry", - "type": "string" - } - ] - ], - "minecraft:resource_key": [ - "container", - [ - { - "name": "registry", - "type": "string" + ] + ] + } + ] + } + ] + ], + "entity_data": "anonymousNbt", + "equippable": [ + "container", + [ + { + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "main_hand", + "1": "off_hand", + "2": "feet", + "3": "legs", + "4": "chest", + "5": "head", + "6": "body", + "7": "saddle" + }, + "type": "varint" + } + ] + }, + { + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "model", + "type": [ + "option", + "string" + ] + }, + { + "name": "cameraOverlay", + "type": [ + "option", + "string" + ] + }, + { + "name": "allowedEntities", + "type": [ + "option", + "IDSet" + ] + }, + { + "name": "dispensable", + "type": "bool" + }, + { + "name": "swappable", + "type": "bool" + }, + { + "name": "damageable", + "type": "bool" + }, + { + "name": "equipOnInteract", + "type": "bool" + }, + { + "name": "shearable", + "type": "bool" + }, + { + "name": "shearingSound", + "type": "ItemSoundHolder" + } + ] + ], + "firework_explosion": "ItemFireworkExplosion", + "fireworks": [ + "container", + [ + { + "name": "flightDuration", + "type": "varint" + }, + { + "name": "explosions", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemFireworkExplosion" + } + ] + } + ] + ], + "food": [ + "container", + [ + { + "name": "nutrition", + "type": "varint" + }, + { + "name": "saturationModifier", + "type": "f32" + }, + { + "name": "canAlwaysEat", + "type": "bool" + } + ] + ], + "fox/variant": "varint", + "frog/variant": "varint", + "glider": "void", + "horse/variant": "varint", + "instrument": [ + "container", + [ + { + "name": "hasHolder", + "type": "bool" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "instrumentId", + "otherwise": { + "name": "data", + "type": "InstrumentData" } - ] - ], - "minecraft:resource_selector": [ - "container", - [ - { - "name": "registry", - "type": "string" + } + ] + } + } + ] + } + ] + ], + "intangible_projectile": "void", + "item_model": "string", + "item_name": "anonymousNbt", + "jukebox_playable": [ + "container", + [ + { + "name": "hasHolder", + "type": "bool" + }, + { + "name": "song", + "type": [ + "switch", + { + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "songId", + "otherwise": { + "name": "data", + "type": "JukeboxSongData" } - ] - ], - "minecraft:template_mirror": "void", - "minecraft:template_rotation": "void", - "minecraft:heightmap": "void", - "minecraft:dialog": "void", - "minecraft:uuid": "void" + } + ] } } ] + } + ] + ], + "llama/variant": "varint", + "lock": "anonymousNbt", + "lodestone_tracker": [ + "container", + [ + { + "name": "globalPosition", + "type": [ + "option", + [ + "container", + [ + { + "name": "dimension", + "type": "string" + }, + { + "name": "position", + "type": "position" + } + ] + ] + ] }, { - "name": "suggestionType", + "name": "tracked", + "type": "bool" + } + ] + ], + "lore": [ + "array", + { + "countType": "varint", + "type": "anonymousNbt" + } + ], + "map_color": "i32", + "map_decorations": "anonymousNbt", + "map_id": "varint", + "map_post_processing": "varint", + "max_damage": "varint", + "max_stack_size": "varint", + "mooshroom/variant": "varint", + "note_block_sound": "string", + "ominous_bottle_amplifier": "varint", + "painting/variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "data", + "type": "EntityMetadataPaintingVariant" + } + } + ], + "parrot/variant": "varint", + "pig/variant": "varint", + "pot_decorations": [ + "container", + [ + { + "name": "decorations", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "potion_contents": [ + "container", + [ + { + "name": "potionId", + "type": [ + "option", + "varint" + ] + }, + { + "name": "customColor", + "type": [ + "option", + "i32" + ] + }, + { + "name": "customEffects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemPotionEffect" + } + ] + }, + { + "name": "customName", + "type": [ + "option", + "string" + ] + } + ] + ], + "potion_duration_scale": "f32", + "profile": [ + "container", + [ + { + "name": "name", + "type": [ + "option", + "string" + ] + }, + { + "name": "uuid", + "type": [ + "option", + "UUID" + ] + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + } + ] + ], + "provides_banner_patterns": "string", + "provides_trim_material": [ + "container", + [ + { + "name": "hasHolder", + "type": "bool" + }, + { + "name": "material", "type": [ "switch", { - "compareTo": "../flags/has_custom_suggestions", + "compareTo": "hasHolder", "fields": { - "1": "string" - }, - "default": "void" + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "materialId", + "otherwise": { + "name": "data", + "type": "ArmorTrimMaterial" + } + } + ] + } } ] } ] - ] - } - } - ] - } - ] - ], - "packet_common_settings": [ - "container", - [ - { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" - }, - { - "name": "enableTextFiltering", - "type": "bool" - }, - { - "name": "enableServerListing", - "type": "bool" - }, - { - "name": "particleStatus", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "all", - "1": "decreased", - "2": "minimal" - } - } - ] - } - ] - ], - "packet_common_cookie_request": [ - "container", - [ - { - "name": "cookie", - "type": "string" - } - ] - ], - "packet_common_store_cookie": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "ByteArray" - } - ] - ], - "packet_common_transfer": [ - "container", - [ - { - "name": "host", - "type": "string" - }, - { - "name": "port", - "type": "varint" - } - ] - ], - "packet_common_cookie_response": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "option", - "ByteArray" - ] - } - ] - ], - "packet_common_select_known_packs": [ - "container", - [ - { - "name": "packs", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "namespace", - "type": "string" - }, - { - "name": "id", - "type": "string" - }, - { - "name": "version", - "type": "string" - } - ] - ] - } - ] - } - ] - ], - "packet_common_custom_report_details": [ - "container", - [ - { - "name": "details", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] - } - ] - ], - "packet_common_remove_resource_pack": [ - "container", - [ - { - "name": "uuid", - "type": [ - "option", - "UUID" - ] - } - ] - ], - "packet_common_add_resource_pack": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "url", - "type": "string" - }, - { - "name": "hash", - "type": "string" - }, - { - "name": "forced", - "type": "bool" - }, - { - "name": "promptMessage", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ], - "ServerLinkType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "bug_report", - "1": "community_guidelines", - "2": "support", - "3": "status", - "4": "feedback", - "5": "community", - "6": "website", - "7": "forums", - "8": "news", - "9": "announcements" - } - } - ], - "packet_common_server_links": [ - "container", - [ - { - "name": "links", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "hasKnownType", - "type": "bool" - }, + ], + "rabbit/variant": "varint", + "rarity": [ + "mapper", { - "name": "knownType", - "type": [ - "switch", - { - "compareTo": "hasKnownType", - "fields": { - "true": "ServerLinkType" + "mappings": { + "0": "common", + "1": "uncommon", + "2": "rare", + "3": "epic" + }, + "type": "varint" + } + ], + "recipes": "anonymousNbt", + "repair_cost": "varint", + "repairable": [ + "container", + [ + { + "name": "items", + "type": "IDSet" + } + ] + ], + "salmon/size": "varint", + "sheep/color": "varint", + "shulker/color": "varint", + "stored_enchantments": [ + "container", + [ + { + "name": "enchantments", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] } - } - ] - }, - { - "name": "unknownType", - "type": [ - "switch", - { - "compareTo": "hasKnownType", - "fields": { - "false": "anonymousNbt" + ] + } + ] + ], + "suspicious_stew_effects": [ + "container", + [ + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "effect", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "tool": [ + "container", + [ + { + "name": "rules", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "blocks", + "type": "IDSet" + }, + { + "name": "speed", + "type": [ + "option", + "f32" + ] + }, + { + "name": "correctDropForBlocks", + "type": [ + "option", + "bool" + ] + } + ] + ] + } + ] + }, + { + "name": "defaultMiningSpeed", + "type": "f32" + }, + { + "name": "damagePerBlock", + "type": "varint" + }, + { + "name": "canDestroyBlocksInCreative", + "type": "bool" + } + ] + ], + "tooltip_display": [ + "container", + [ + { + "name": "hideTooltip", + "type": "bool" + }, + { + "name": "hiddenComponents", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "tooltip_style": "string", + "trim": [ + "container", + [ + { + "name": "material", + "type": [ + "registryEntryHolder", + { + "baseName": "materialId", + "otherwise": { + "name": "data", + "type": "ArmorTrimMaterial" + } + } + ] + }, + { + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "ArmorTrimPattern" + } + } + ] + } + ] + ], + "tropical_fish/base_color": "varint", + "tropical_fish/pattern": "varint", + "tropical_fish/pattern_color": "varint", + "unbreakable": "void", + "use_cooldown": [ + "container", + [ + { + "name": "seconds", + "type": "f32" + }, + { + "name": "cooldownGroup", + "type": [ + "option", + "string" + ] + } + ] + ], + "use_remainder": "Slot", + "villager/variant": "varint", + "weapon": [ + "container", + [ + { + "name": "itemDamagePerAttack", + "type": "varint" + }, + { + "name": "disableBlockingForSeconds", + "type": "f32" + } + ] + ], + "wolf/collar": "varint", + "wolf/sound_variant": "varint", + "wolf/variant": "varint", + "writable_book_content": [ + "container", + [ + { + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBookPage" + } + ] + } + ] + ], + "written_book_content": [ + "container", + [ + { + "name": "rawTitle", + "type": "string" + }, + { + "name": "filteredTitle", + "type": [ + "option", + "string" + ] + }, + { + "name": "author", + "type": "string" + }, + { + "name": "generation", + "type": "varint" + }, + { + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemWrittenBookPage" } - } - ] - }, - { - "name": "link", - "type": "string" - } + ] + }, + { + "name": "resolved", + "type": "bool" + } + ] ] - ] + } } ] } ] ], - "packet_common_clear_dialog": [ - "container", - [] - ], - "packet_common_custom_click_action": [ - "container", - [ - { - "name": "id", - "type": "string" - }, - { - "name": "nbt", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": {} - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } - } - ] - } - ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } - } - ] - } - ] - ] + "SlotComponentType": [ + "mapper", + { + "mappings": { + "0": "custom_data", + "1": "max_stack_size", + "2": "max_damage", + "3": "damage", + "4": "unbreakable", + "5": "custom_name", + "6": "item_name", + "7": "item_model", + "8": "lore", + "9": "rarity", + "10": "enchantments", + "11": "can_place_on", + "12": "can_break", + "13": "attribute_modifiers", + "14": "custom_model_data", + "15": "tooltip_display", + "16": "repair_cost", + "17": "creative_slot_lock", + "18": "enchantment_glint_override", + "19": "intangible_projectile", + "20": "food", + "21": "consumable", + "22": "use_remainder", + "23": "use_cooldown", + "24": "damage_resistant", + "25": "tool", + "26": "weapon", + "27": "enchantable", + "28": "equippable", + "29": "repairable", + "30": "glider", + "31": "tooltip_style", + "32": "death_protection", + "33": "blocks_attacks", + "34": "stored_enchantments", + "35": "dyed_color", + "36": "map_color", + "37": "map_id", + "38": "map_decorations", + "39": "map_post_processing", + "40": "charged_projectiles", + "41": "bundle_contents", + "42": "potion_contents", + "43": "potion_duration_scale", + "44": "suspicious_stew_effects", + "45": "writable_book_content", + "46": "written_book_content", + "47": "trim", + "48": "debug_stick_state", + "49": "entity_data", + "50": "bucket_entity_data", + "51": "block_entity_data", + "52": "instrument", + "53": "provides_trim_material", + "54": "ominous_bottle_amplifier", + "55": "jukebox_playable", + "56": "provides_banner_patterns", + "57": "recipes", + "58": "lodestone_tracker", + "59": "firework_explosion", + "60": "fireworks", + "61": "profile", + "62": "note_block_sound", + "63": "banner_patterns", + "64": "base_color", + "65": "pot_decorations", + "66": "container", + "67": "block_state", + "68": "bees", + "69": "lock", + "70": "container_loot", + "71": "break_sound", + "72": "villager/variant", + "73": "wolf/variant", + "74": "wolf/sound_variant", + "75": "wolf/collar", + "76": "fox/variant", + "77": "salmon/size", + "78": "parrot/variant", + "79": "tropical_fish/pattern", + "80": "tropical_fish/base_color", + "81": "tropical_fish/pattern_color", + "82": "mooshroom/variant", + "83": "rabbit/variant", + "84": "pig/variant", + "85": "cow/variant", + "86": "chicken/variant", + "87": "frog/variant", + "88": "horse/variant", + "89": "painting/variant", + "90": "llama/variant", + "91": "axolotl/variant", + "92": "cat/variant", + "93": "cat/collar", + "94": "sheep/color", + "95": "shulker/color" + }, + "type": "varint" } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ - "container", - [ + ], + "UUID": "native", + "UntrustedSlot": [ + "container", + [ + { + "name": "itemCount", + "type": "varint" + }, + { + "anon": true, + "type": [ + "switch", { - "name": "time", - "type": "i64" + "compareTo": "itemCount", + "default": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "removedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "UntrustedSlotComponent" + } + ] + }, + { + "name": "removeComponents", + "type": [ + "array", + { + "count": "removedComponentCount", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] + } + ] + ], + "fields": { + "0": "void", + "false": "void" + } } ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", + } + ] + ], + "UntrustedSlotComponent": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + }, + { + "name": "data", + "type": "ByteArray" + } + ] + ], + "anonOptionalNbt": "native", + "anonymousNbt": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "chat_session": [ + "option", + [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "publicKey", + "type": [ + "container", + [ { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", + "name": "expireTime", + "type": "i64" + }, { - "compareTo": "name", - "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" - } + "name": "keyBytes", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "keySignature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] - } - ] + ] + } ] - } - } - }, - "login": { - "toClient": { - "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } + ] + ], + "chunkBlockEntity": [ + "container", + [ + { + "anon": true, + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 + } + ] + ] + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" + } + ] + ], + "command_node": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 2 + }, + { + "name": "allows_restricted", + "signed": false, + "size": 1 + }, + { + "name": "has_custom_suggestions", + "signed": false, + "size": 1 + }, + { + "name": "has_redirect_node", + "signed": false, + "size": 1 + }, + { + "name": "has_command", + "signed": false, + "size": 1 + }, + { + "name": "command_node_type", + "signed": false, + "size": 2 + } + ] ] - ], - "packet_encryption_begin": [ - "container", - [ - { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "verifyToken", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, + }, + { + "name": "children", + "type": [ + "array", { - "name": "shouldAuthenticate", - "type": "bool" + "countType": "varint", + "type": "varint" } ] - ], - "packet_success": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "username", - "type": "string" - }, + }, + { + "name": "redirectNode", + "type": [ + "switch", { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } } ] - ], - "packet_compress": [ - "container", - [ + }, + { + "name": "extraNodeData", + "type": [ + "switch", { - "name": "threshold", - "type": "varint" + "compareTo": "flags/command_node_type", + "fields": { + "0": "void", + "1": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "2": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "parser", + "type": [ + "mapper", + { + "mappings": { + "0": "brigadier:bool", + "1": "brigadier:float", + "2": "brigadier:double", + "3": "brigadier:integer", + "4": "brigadier:long", + "5": "brigadier:string", + "6": "minecraft:entity", + "7": "minecraft:game_profile", + "8": "minecraft:block_pos", + "9": "minecraft:column_pos", + "10": "minecraft:vec3", + "11": "minecraft:vec2", + "12": "minecraft:block_state", + "13": "minecraft:block_predicate", + "14": "minecraft:item_stack", + "15": "minecraft:item_predicate", + "16": "minecraft:color", + "17": "minecraft:hex_color", + "18": "minecraft:component", + "19": "minecraft:style", + "20": "minecraft:message", + "21": "minecraft:nbt", + "22": "minecraft:nbt_tag", + "23": "minecraft:nbt_path", + "24": "minecraft:objective", + "25": "minecraft:objective_criteria", + "26": "minecraft:operation", + "27": "minecraft:particle", + "28": "minecraft:angle", + "29": "minecraft:rotation", + "30": "minecraft:scoreboard_slot", + "31": "minecraft:score_holder", + "32": "minecraft:swizzle", + "33": "minecraft:team", + "34": "minecraft:item_slot", + "35": "minecraft:item_slots", + "36": "minecraft:resource_location", + "37": "minecraft:function", + "38": "minecraft:entity_anchor", + "39": "minecraft:int_range", + "40": "minecraft:float_range", + "41": "minecraft:dimension", + "42": "minecraft:gamemode", + "43": "minecraft:time", + "44": "minecraft:resource_or_tag", + "45": "minecraft:resource_or_tag_key", + "46": "minecraft:resource", + "47": "minecraft:resource_key", + "48": "minecraft:resource_selector", + "49": "minecraft:template_mirror", + "50": "minecraft:template_rotation", + "51": "minecraft:heightmap", + "52": "minecraft:loot_table", + "53": "minecraft:loot_predicate", + "54": "minecraft:loot_modifier", + "55": "minecraft:dialog", + "56": "minecraft:uuid" + }, + "type": "varint" + } + ] + }, + { + "name": "properties", + "type": [ + "switch", + { + "compareTo": "parser", + "fields": { + "brigadier:bool": "void", + "brigadier:double": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "max_present", + "signed": false, + "size": 1 + }, + { + "name": "min_present", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "default": "void", + "fields": { + "1": "f64" + } + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "default": "void", + "fields": { + "1": "f64" + } + } + ] + } + ] + ], + "brigadier:float": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "max_present", + "signed": false, + "size": 1 + }, + { + "name": "min_present", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "default": "void", + "fields": { + "1": "f32" + } + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "default": "void", + "fields": { + "1": "f32" + } + } + ] + } + ] + ], + "brigadier:integer": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "max_present", + "signed": false, + "size": 1 + }, + { + "name": "min_present", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "default": "void", + "fields": { + "1": "i32" + } + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "default": "void", + "fields": { + "1": "i32" + } + } + ] + } + ] + ], + "brigadier:long": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "max_present", + "signed": false, + "size": 1 + }, + { + "name": "min_present", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "default": "void", + "fields": { + "1": "i64" + } + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "default": "void", + "fields": { + "1": "i64" + } + } + ] + } + ] + ], + "brigadier:string": [ + "mapper", + { + "mappings": { + "0": "SINGLE_WORD", + "1": "QUOTABLE_PHRASE", + "2": "GREEDY_PHRASE" + }, + "type": "varint" + } + ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dialog": "void", + "minecraft:dimension": "void", + "minecraft:entity": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "onlyAllowPlayers", + "signed": false, + "size": 1 + }, + { + "name": "onlyAllowEntities", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:entity_anchor": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", + "minecraft:game_profile": "void", + "minecraft:gamemode": "void", + "minecraft:heightmap": "void", + "minecraft:hex_color": "void", + "minecraft:int_range": "void", + "minecraft:item_predicate": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", + "minecraft:message": "void", + "minecraft:nbt": "void", + "minecraft:nbt_path": "void", + "minecraft:objective": "void", + "minecraft:objective_criteria": "void", + "minecraft:operation": "void", + "minecraft:particle": "void", + "minecraft:resource": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:resource_key": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:resource_or_tag_key": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:resource_selector": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:template_mirror": "void", + "minecraft:template_rotation": "void", + "minecraft:time": [ + "container", + [ + { + "name": "min", + "type": "i32" + } + ] + ], + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" + } + } + ] + }, + { + "name": "suggestionType", + "type": [ + "switch", + { + "compareTo": "../flags/has_custom_suggestions", + "default": "void", + "fields": { + "1": "string" + } + } + ] + } + ] + ] + } } ] - ], - "packet_login_plugin_request": [ - "container", - [ + } + ] + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": "entityMetadataEntry" + } + ], + "entityMetadataEntry": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": [ + "mapper", { - "name": "messageId", + "mappings": { + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "compound_tag", + "17": "particle", + "18": "particles", + "19": "villager_data", + "20": "optional_unsigned_int", + "21": "pose", + "22": "cat_variant", + "23": "cow_variant", + "24": "wolf_variant", + "25": "wolf_sound_variant", + "26": "frog_variant", + "27": "pig_variant", + "28": "chicken_variant", + "29": "optional_global_pos", + "30": "painting_variant", + "31": "sniffer_state", + "32": "armadillo_state", + "33": "vector3", + "34": "quaternion" + }, "type": "varint" - }, - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" } ] - ], - "packet": [ - "container", - [ + }, + { + "name": "value", + "type": [ + "switch", { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request", - "0x05": "cookie_request" + "compareTo": "type", + "fields": { + "armadillo_state": "varint", + "block_pos": "position", + "block_state": "varint", + "boolean": "bool", + "byte": "i8", + "cat_variant": "varint", + "chicken_variant": "varint", + "component": "anonymousNbt", + "compound_tag": "anonymousNbt", + "cow_variant": "varint", + "direction": "varint", + "float": "f32", + "frog_variant": "varint", + "int": "varint", + "item_stack": "Slot", + "long": "varlong", + "optional_block_pos": [ + "option", + "position" + ], + "optional_block_state": "optvarint", + "optional_component": [ + "option", + "anonymousNbt" + ], + "optional_global_pos": [ + "option", + "string" + ], + "optional_unsigned_int": "optvarint", + "optional_uuid": [ + "option", + "UUID" + ], + "painting_variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "EntityMetadataPaintingVariant" + } } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "disconnect": "packet_disconnect", - "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request", - "cookie_request": "packet_common_cookie_request" + ], + "particle": "Particle", + "particles": [ + "array", + { + "countType": "varint", + "type": "Particle" } - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - }, - { - "name": "playerUUID", - "type": "UUID" - } - ] - ], - "packet_encryption_begin": [ - "container", - [ - { - "name": "sharedSecret", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "verifyToken", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ], - "packet_login_plugin_response": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "data", - "type": [ - "option", - "restBuffer" - ] + ], + "pig_variant": "varint", + "pose": "varint", + "quaternion": "vec4f", + "rotations": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "sniffer_state": "varint", + "string": "string", + "vector3": "vec3f", + "villager_data": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "wolf_sound_variant": "varint", + "wolf_variant": "varint" + } } ] - ], - "packet_login_acknowledged": [ - "container", - [] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response", - "0x03": "login_acknowledged", - "0x04": "cookie_response" - } - } - ] - }, + } + ] + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "game_profile": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", { - "name": "params", + "countType": "varint", "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response", - "login_acknowledged": "packet_login_acknowledged", - "cookie_response": "packet_common_cookie_response" + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] } - } + ] ] } ] - ] + } + ] + ], + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "Slot" } - } - }, - "configuration": { - "toClient": { - "types": { - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } + ], + "option": "native", + "optvarint": "varint", + "packedChunkPos": [ + "container", + [ + { + "name": "z", + "type": "i32" + }, + { + "name": "x", + "type": "i32" + } + ] + ], + "packet_common_add_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "url", + "type": "string" + }, + { + "name": "hash", + "type": "string" + }, + { + "name": "forced", + "type": "bool" + }, + { + "name": "promptMessage", + "type": [ + "option", + "anonymousNbt" ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } + } + ] + ], + "packet_common_clear_dialog": [ + "container", + [] + ], + "packet_common_cookie_request": [ + "container", + [ + { + "name": "cookie", + "type": "string" + } + ] + ], + "packet_common_cookie_response": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "ByteArray" ] - ], - "packet_ping": [ - "container", - [ - { - "name": "id", - "type": "i32" - } + } + ] + ], + "packet_common_custom_click_action": [ + "container", + [ + { + "name": "id", + "type": "string" + }, + { + "name": "nbt", + "type": [ + "option", + "anonymousNbt" ] - ], - "packet_reset_chat": [ - "container", - [] - ], - "packet_registry_data": [ - "container", - [ - { - "name": "id", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } + } + ] + ], + "packet_common_custom_report_details": [ + "container", + [ + { + "name": "details", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] ] } ] - ], - "packet_feature_flags": [ - "container", - [ + } + ] + ], + "packet_common_remove_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": [ + "option", + "UUID" + ] + } + ] + ], + "packet_common_select_known_packs": [ + "container", + [ + { + "name": "packs", + "type": [ + "array", { - "name": "features", + "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "string" - } + "container", + [ + { + "name": "namespace", + "type": "string" + }, + { + "name": "id", + "type": "string" + }, + { + "name": "version", + "type": "string" + } + ] ] } ] - ], - "packet_tags": [ - "container", - [ + } + ] + ], + "packet_common_server_links": [ + "container", + [ + { + "name": "links", + "type": [ + "array", { - "name": "tags", + "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ + "container", + [ + { + "name": "hasKnownType", + "type": "bool" + }, + { + "name": "knownType", + "type": [ + "switch", { - "name": "tagType", - "type": "string" - }, + "compareTo": "hasKnownType", + "fields": { + "true": "ServerLinkType" + } + } + ] + }, + { + "name": "unknownType", + "type": [ + "switch", { - "name": "tags", - "type": "tags" + "compareTo": "hasKnownType", + "fields": { + "false": "anonymousNbt" + } } ] - ] - } + }, + { + "name": "link", + "type": "string" + } + ] ] } ] - ], - "packet_show_dialog": [ - "container", - [ + } + ] + ], + "packet_common_settings": [ + "container", + [ + { + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", + "type": "varint" + }, + { + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" + }, + { + "name": "enableTextFiltering", + "type": "bool" + }, + { + "name": "enableServerListing", + "type": "bool" + }, + { + "name": "particleStatus", + "type": [ + "mapper", { - "name": "dialog", - "type": "anonymousNbt" + "mappings": { + "0": "all", + "1": "decreased", + "2": "minimal" + }, + "type": "varint" } ] - ], - "packet": [ + } + ] + ], + "packet_common_store_cookie": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "ByteArray" + } + ] + ], + "packet_common_transfer": [ + "container", + [ + { + "name": "host", + "type": "string" + }, + { + "name": "port", + "type": "varint" + } + ] + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "previousMessages": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links", - "0x11": "clear_dialog", - "0x12": "show_dialog" - } - } - ] + "name": "id", + "type": "varint" }, { - "name": "params", + "name": "signature", "type": [ "switch", { - "compareTo": "name", + "compareTo": "id", + "default": "void", "fields": { - "cookie_request": "packet_common_cookie_request", - "custom_payload": "packet_custom_payload", - "disconnect": "packet_disconnect", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "reset_chat": "packet_reset_chat", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "store_cookie": "packet_common_store_cookie", - "transfer": "packet_common_transfer", - "feature_flags": "packet_feature_flags", - "tags": "packet_tags", - "select_known_packs": "packet_common_select_known_packs", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links", - "clear_dialog": "packet_common_clear_dialog", - "show_dialog": "packet_show_dialog" + "0": [ + "buffer", + { + "count": 256 + } + ] } } ] @@ -4269,57 +3451,176 @@ ] ] } - }, - "toServer": { - "types": { - "packet_custom_payload": [ + ], + "pstring": "native", + "registryEntryHolder": "native", + "registryEntryHolderSet": "native", + "restBuffer": "native", + "soundSource": [ + "mapper", + { + "mappings": { + "0": "master", + "1": "music", + "2": "record", + "3": "weather", + "4": "block", + "5": "hostile", + "6": "neutral", + "7": "player", + "8": "ambient", + "9": "voice", + "10": "ui" + }, + "type": "varint" + } + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "channel", + "name": "tagName", "type": "string" }, { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_resource_pack_receive": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "result", - "type": "varint" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] - ], + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec2f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + } + ] + ], + "vec3f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + } + ] + ], + "vec3f64": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "vec3i": [ + "container", + [ + { + "name": "x", + "type": "varint" + }, + { + "name": "y", + "type": "varint" + }, + { + "name": "z", + "type": "varint" + } + ] + ], + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "vec4f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "w", + "type": "f32" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { "packet": [ "container", [ @@ -4328,18 +3629,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_click_action" - } + "mappings": {}, + "type": "varint" } ] }, @@ -4348,410 +3639,305 @@ "type": [ "switch", { - "compareTo": "name", - "fields": { - "settings": "packet_common_settings", - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "custom_click_action": "packet_common_custom_click_action" - } + "compareTo": "name", + "fields": {} } ] } ] ] } - } - }, - "play": { - "toClient": { + }, + "toServer": { "types": { - "SlotDisplay": [ + "packet": [ "container", [ { - "name": "type", + "name": "name", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "empty", - "1": "any_fuel", - "2": "item", - "3": "item_stack", - "4": "tag", - "5": "smithing_trim", - "6": "with_remainder", - "7": "composite" - } + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" } ] }, { - "name": "data", + "name": "params", "type": [ "switch", { - "compareTo": "type", + "compareTo": "name", "fields": { - "empty": "void", - "any_fuel": "void", - "item": "varint", - "item_stack": "Slot", - "tag": "string", - "smithing_trim": [ - "container", - [ - { - "name": "base", - "type": "SlotDisplay" - }, - { - "name": "material", - "type": "SlotDisplay" - }, - { - "name": "pattern", - "type": [ - "registryEntryHolder", - { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "ArmorTrimPattern" - } - } - ] - } - ] - ], - "with_remainder": [ - "container", - [ - { - "name": "input", - "type": "SlotDisplay" - }, - { - "name": "remainder", - "type": "SlotDisplay" - } - ] - ], - "composite": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] ], - "RecipeDisplay": [ + "packet_legacy_server_list_ping": [ "container", [ { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "crafting_shapeless", - "1": "crafting_shaped", - "2": "furnace", - "3": "stonecutter", - "4": "smithing" - } - } - ] + "name": "payload", + "type": "u8" + } + ] + ], + "packet_set_protocol": [ + "container", + [ + { + "name": "protocolVersion", + "type": "varint" }, { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "crafting_shapeless": [ - "container", - [ - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "furnace": [ - "container", - [ - { - "name": "ingredient", - "type": "SlotDisplay" - }, - { - "name": "fuel", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "experience", - "type": "f32" - } - ] - ], - "stonecutter": [ - "container", - [ - { - "name": "ingredient", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "smithing": [ - "container", - [ - { - "name": "template", - "type": "SlotDisplay" - }, - { - "name": "base", - "type": "SlotDisplay" - }, - { - "name": "addition", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ] + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" + } + ] + ] + } + } + }, + "status": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] ], - "SpawnInfo": [ + "packet_ping": [ "container", [ { - "name": "dimension", - "type": "varint" - }, + "name": "time", + "type": "i64" + } + ] + ], + "packet_server_info": [ + "container", + [ { - "name": "name", + "name": "response", "type": "string" - }, - { - "name": "hashedSeed", - "type": "i64" - }, + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "gamemode", + "name": "name", "type": [ "mapper", { - "type": "i8", "mappings": { - "0": "survival", - "1": "creative", - "2": "adventure", - "3": "spectator" - } + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" } ] }, { - "name": "previousGamemode", - "type": "u8" - }, - { - "name": "isDebug", - "type": "bool" - }, - { - "name": "isFlat", - "type": "bool" - }, - { - "name": "death", + "name": "params", "type": [ - "option", - [ - "container", - [ - { - "name": "dimensionName", - "type": "string" - }, - { - "name": "location", - "type": "position" - } - ] - ] + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } + } ] - }, - { - "name": "portalCooldown", - "type": "varint" - }, + } + ] + ], + "packet_ping": [ + "container", + [ { - "name": "seaLevel", - "type": "varint" + "name": "time", + "type": "i64" } ] ], - "packet_spawn_entity": [ + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request", + "0x05": "cookie_request" + }, + "type": "varint" + } + ] }, { - "name": "objectUUID", - "type": "UUID" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "cookie_request": "packet_common_cookie_request", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ { - "name": "type", + "name": "threshold", "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + } + ] + ], + "packet_disconnect": [ + "container", + [ { - "name": "pitch", - "type": "i8" - }, + "name": "reason", + "type": "string" + } + ] + ], + "packet_encryption_begin": [ + "container", + [ { - "name": "yaw", - "type": "i8" + "name": "serverId", + "type": "string" }, { - "name": "headPitch", - "type": "i8" + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "objectData", - "type": "varint" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "velocity", - "type": "vec3i16" + "name": "shouldAuthenticate", + "type": "bool" } ] ], - "packet_animation": [ + "packet_login_plugin_request": [ "container", [ { - "name": "entityId", + "name": "messageId", "type": "varint" }, { - "name": "animation", - "type": "u8" + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_statistics": [ + "packet_success": [ "container", [ { - "name": "entries", + "name": "uuid", + "type": "UUID" + }, + { + "name": "username", + "type": "string" + }, + { + "name": "properties", "type": [ "array", { @@ -4760,16 +3946,19 @@ "container", [ { - "name": "categoryId", - "type": "varint" + "name": "name", + "type": "string" }, { - "name": "statisticId", - "type": "varint" + "name": "value", + "type": "string" }, { - "name": "value", - "type": "varint" + "name": "signature", + "type": [ + "option", + "string" + ] } ] ] @@ -4777,209 +3966,243 @@ ] } ] - ], - "packet_acknowledge_player_digging": [ - "container", - [ - { - "name": "sequenceId", - "type": "varint" - } - ] - ], - "packet_block_break_animation": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "location", - "type": "position" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response", + "0x03": "login_acknowledged", + "0x04": "cookie_response" + }, + "type": "varint" + } + ] }, { - "name": "destroyStage", - "type": "i8" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "cookie_response": "packet_common_cookie_response", + "encryption_begin": "packet_encryption_begin", + "login_acknowledged": "packet_login_acknowledged", + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" + } + } + ] } ] ], - "packet_tile_entity_data": [ + "packet_encryption_begin": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "nbtData", - "type": "anonOptionalNbt" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_block_action": [ + "packet_login_acknowledged": [ + "container", + [] + ], + "packet_login_plugin_response": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "byte1", - "type": "u8" - }, - { - "name": "byte2", - "type": "u8" + "name": "messageId", + "type": "varint" }, { - "name": "blockId", - "type": "varint" + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_block_change": [ + "packet_login_start": [ "container", [ { - "name": "location", - "type": "position" + "name": "username", + "type": "string" }, { - "name": "type", - "type": "varint" + "name": "playerUUID", + "type": "UUID" } ] - ], - "packet_boss_bar": [ + ] + } + } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "title", + "name": "name", "type": [ - "switch", + "mapper", { - "compareTo": "action", - "fields": { - "0": "anonymousNbt", - "3": "anonymousNbt" + "mappings": { + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links", + "0x11": "clear_dialog", + "0x12": "show_dialog" }, - "default": "void" + "type": "varint" } ] }, { - "name": "health", + "name": "params", "type": [ "switch", { - "compareTo": "action", + "compareTo": "name", "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" + "add_resource_pack": "packet_common_add_resource_pack", + "clear_dialog": "packet_common_clear_dialog", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "show_dialog": "packet_show_dialog", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" + } } ] - }, + } + ] + ], + "packet_custom_payload": [ + "container", + [ { - "name": "color", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "channel", + "type": "string" }, { - "name": "dividers", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_disconnect": [ + "container", + [ { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] + "name": "reason", + "type": "anonymousNbt" } ] ], - "packet_difficulty": [ + "packet_feature_flags": [ "container", [ { - "name": "difficulty", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "peaceful", - "1": "easy", - "2": "normal", - "3": "hard" - } + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" } ] - }, - { - "name": "difficultyLocked", - "type": "bool" } ] ], - "packet_chunk_batch_finished": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "batchSize", - "type": "varint" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_chunk_batch_start": [ + "packet_ping": [ "container", - [] + [ + { + "name": "id", + "type": "i32" + } + ] ], - "packet_chunk_biomes": [ + "packet_registry_data": [ "container", [ { - "name": "biomes", + "name": "id", + "type": "string" + }, + { + "name": "entries", "type": [ "array", { @@ -4988,12 +4211,15 @@ "container", [ { - "name": "position", - "type": "packedChunkPos" + "name": "key", + "type": "string" }, { - "name": "data", - "type": "ByteArray" + "name": "value", + "type": [ + "option", + "anonymousNbt" + ] } ] ] @@ -5002,32 +4228,24 @@ } ] ], - "packet_clear_titles": [ + "packet_reset_chat": [ + "container", + [] + ], + "packet_show_dialog": [ "container", [ { - "name": "reset", - "type": "bool" + "name": "dialog", + "type": "anonymousNbt" } ] ], - "packet_tab_complete": [ + "packet_tags": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", - "type": "varint" - }, - { - "name": "matches", + "name": "tags", "type": [ "array", { @@ -5036,15 +4254,12 @@ "container", [ { - "name": "match", + "name": "tagType", "type": "string" }, { - "name": "tooltip", - "type": [ - "option", - "anonymousNbt" - ] + "name": "tags", + "type": "tags" } ] ] @@ -5052,745 +4267,1388 @@ ] } ] - ], - "packet_declare_commands": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "nodes", + "name": "name", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": "command_node" + "mappings": { + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_click_action" + }, + "type": "varint" } ] }, { - "name": "rootIndex", - "type": "varint" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "cookie_response": "packet_common_cookie_response", + "custom_click_action": "packet_common_custom_click_action", + "custom_payload": "packet_custom_payload", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "select_known_packs": "packet_common_select_known_packs", + "settings": "packet_common_settings" + } + } + ] } ] ], - "packet_close_window": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_window_items": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_pong": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], + "packet_resource_pack_receive": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" }, { - "name": "stateId", + "name": "result", "type": "varint" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "ChatType": [ + "container", + [ + { + "name": "translationKey", + "type": "string" }, { - "name": "items", + "name": "parameters", "type": [ "array", { "countType": "varint", - "type": "Slot" + "type": "ChatTypeParameterType" } ] }, { - "name": "carriedItem", - "type": "Slot" + "name": "style", + "type": "anonymousNbt" } ] ], - "packet_craft_progress_bar": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "property", - "type": "i16" + "ChatTypeParameterType": [ + "mapper", + { + "mappings": { + "0": "content", + "1": "sender", + "2": "target" }, - { - "name": "value", - "type": "i16" - } - ] + "type": "varint" + } ], - "packet_set_slot": [ + "ChatTypes": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" + "name": "chat", + "type": "ChatType" }, { - "name": "item", - "type": "Slot" + "name": "narration", + "type": "ChatType" } ] ], - "packet_set_cooldown": [ + "ChatTypesHolder": [ + "registryEntryHolder", + { + "baseName": "chatType", + "otherwise": { + "name": "data", + "type": "ChatTypes" + } + } + ], + "PositionUpdateRelatives": [ + "bitflags", + { + "flags": [ + "x", + "y", + "z", + "yaw", + "pitch", + "dx", + "dy", + "dz", + "yawDelta" + ], + "type": "u32" + } + ], + "RecipeBookSetting": [ "container", [ { - "name": "cooldownGroup", - "type": "string" + "name": "open", + "type": "bool" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "filtering", + "type": "bool" } ] ], - "packet_chat_suggestions": [ + "RecipeDisplay": [ "container", [ { - "name": "action", - "type": "varint" - }, - { - "name": "entries", + "name": "type", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": "string" + "mappings": { + "0": "crafting_shapeless", + "1": "crafting_shaped", + "2": "furnace", + "3": "stonecutter", + "4": "smithing" + }, + "type": "varint" } ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" }, { "name": "data", - "type": "restBuffer" + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ] + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "crafting_shapeless": [ + "container", + [ + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ] + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "furnace": [ + "container", + [ + { + "name": "ingredient", + "type": "SlotDisplay" + }, + { + "name": "fuel", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "experience", + "type": "f32" + } + ] + ], + "smithing": [ + "container", + [ + { + "name": "template", + "type": "SlotDisplay" + }, + { + "name": "base", + "type": "SlotDisplay" + }, + { + "name": "addition", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "stonecutter": [ + "container", + [ + { + "name": "ingredient", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ] + } + } + ] } ] ], - "packet_damage_event": [ + "SlotDisplay": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "sourceTypeId", - "type": "varint" - }, - { - "name": "sourceCauseId", - "type": "varint" - }, - { - "name": "sourceDirectId", - "type": "varint" + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "empty", + "1": "any_fuel", + "2": "item", + "3": "item_stack", + "4": "tag", + "5": "smithing_trim", + "6": "with_remainder", + "7": "composite" + }, + "type": "varint" + } + ] }, { - "name": "sourcePosition", + "name": "data", "type": [ - "option", - "vec3f64" + "switch", + { + "compareTo": "type", + "fields": { + "any_fuel": "void", + "composite": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ], + "empty": "void", + "item": "varint", + "item_stack": "Slot", + "smithing_trim": [ + "container", + [ + { + "name": "base", + "type": "SlotDisplay" + }, + { + "name": "material", + "type": "SlotDisplay" + }, + { + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "ArmorTrimPattern" + } + } + ] + } + ] + ], + "tag": "string", + "with_remainder": [ + "container", + [ + { + "name": "input", + "type": "SlotDisplay" + }, + { + "name": "remainder", + "type": "SlotDisplay" + } + ] + ] + } + } ] } ] ], - "packet_debug_sample": [ + "SpawnInfo": [ "container", [ { - "name": "sample", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "dimension", + "type": "varint" }, { - "name": "type", - "type": "varint" - } - ] - ], - "packet_hide_message": [ - "container", - [ + "name": "name", + "type": "string" + }, { - "name": "id", - "type": "varint" + "name": "hashedSeed", + "type": "i64" }, { - "name": "signature", + "name": "gamemode", "type": [ - "switch", + "mapper", { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] + "mappings": { + "0": "survival", + "1": "creative", + "2": "adventure", + "3": "spectator" }, - "default": "void" + "type": "i8" } ] - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ + }, { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "ChatTypeParameterType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "content", - "1": "sender", - "2": "target" - } - } - ], - "ChatType": [ - "container", - [ + "name": "previousGamemode", + "type": "u8" + }, { - "name": "translationKey", - "type": "string" + "name": "isDebug", + "type": "bool" }, { - "name": "parameters", + "name": "isFlat", + "type": "bool" + }, + { + "name": "death", "type": [ - "array", - { - "countType": "varint", - "type": "ChatTypeParameterType" - } + "option", + [ + "container", + [ + { + "name": "dimensionName", + "type": "string" + }, + { + "name": "location", + "type": "position" + } + ] + ] ] }, { - "name": "style", - "type": "anonymousNbt" - } - ] - ], - "ChatTypes": [ - "container", - [ - { - "name": "chat", - "type": "ChatType" + "name": "portalCooldown", + "type": "varint" }, { - "name": "narration", - "type": "ChatType" + "name": "seaLevel", + "type": "varint" } ] ], - "ChatTypesHolder": [ - "registryEntryHolder", - { - "baseName": "chatType", - "otherwise": { - "name": "data", - "type": "ChatTypes" - } - } - ], - "packet_profileless_chat": [ + "packet": [ "container", [ - { - "name": "message", - "type": "anonymousNbt" - }, - { - "name": "type", - "type": "ChatTypesHolder" - }, { "name": "name", - "type": "anonymousNbt" - }, - { - "name": "target", "type": [ - "option", - "anonymousNbt" + "mapper", + { + "mappings": { + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "animation", + "0x03": "statistics", + "0x04": "acknowledge_player_digging", + "0x05": "block_break_animation", + "0x06": "tile_entity_data", + "0x07": "block_action", + "0x08": "block_change", + "0x09": "boss_bar", + "0x0a": "difficulty", + "0x0b": "chunk_batch_finished", + "0x0c": "chunk_batch_start", + "0x0d": "chunk_biomes", + "0x0e": "clear_titles", + "0x0f": "tab_complete", + "0x10": "declare_commands", + "0x11": "close_window", + "0x12": "window_items", + "0x13": "craft_progress_bar", + "0x14": "set_slot", + "0x15": "cookie_request", + "0x16": "set_cooldown", + "0x17": "chat_suggestions", + "0x18": "custom_payload", + "0x19": "damage_event", + "0x1a": "debug_sample", + "0x1b": "hide_message", + "0x1c": "kick_disconnect", + "0x1d": "profileless_chat", + "0x1e": "entity_status", + "0x1f": "sync_entity_position", + "0x20": "explosion", + "0x21": "unload_chunk", + "0x22": "game_state_change", + "0x23": "open_horse_window", + "0x24": "hurt_animation", + "0x25": "initialize_world_border", + "0x26": "keep_alive", + "0x27": "map_chunk", + "0x28": "world_event", + "0x29": "world_particles", + "0x2a": "update_light", + "0x2b": "login", + "0x2c": "map", + "0x2d": "trade_list", + "0x2e": "rel_entity_move", + "0x2f": "entity_move_look", + "0x30": "move_minecart", + "0x31": "entity_look", + "0x32": "vehicle_move", + "0x33": "open_book", + "0x34": "open_window", + "0x35": "open_sign_entity", + "0x36": "ping", + "0x37": "ping_response", + "0x38": "craft_recipe_response", + "0x39": "abilities", + "0x3a": "player_chat", + "0x3b": "end_combat_event", + "0x3c": "enter_combat_event", + "0x3d": "death_combat_event", + "0x3e": "player_remove", + "0x3f": "player_info", + "0x40": "face_player", + "0x41": "position", + "0x42": "player_rotation", + "0x43": "recipe_book_add", + "0x44": "recipe_book_remove", + "0x45": "recipe_book_settings", + "0x46": "entity_destroy", + "0x47": "remove_entity_effect", + "0x48": "reset_score", + "0x49": "remove_resource_pack", + "0x4a": "add_resource_pack", + "0x4b": "respawn", + "0x4c": "entity_head_rotation", + "0x4d": "multi_block_change", + "0x4e": "select_advancement_tab", + "0x4f": "server_data", + "0x50": "action_bar", + "0x51": "world_border_center", + "0x52": "world_border_lerp_size", + "0x53": "world_border_size", + "0x54": "world_border_warning_delay", + "0x55": "world_border_warning_reach", + "0x56": "camera", + "0x57": "update_view_position", + "0x58": "update_view_distance", + "0x59": "set_cursor_item", + "0x5a": "spawn_position", + "0x5b": "scoreboard_display_objective", + "0x5c": "entity_metadata", + "0x5d": "attach_entity", + "0x5e": "entity_velocity", + "0x5f": "entity_equipment", + "0x60": "experience", + "0x61": "update_health", + "0x62": "held_item_slot", + "0x63": "scoreboard_objective", + "0x64": "set_passengers", + "0x65": "set_player_inventory", + "0x66": "teams", + "0x67": "scoreboard_score", + "0x68": "simulation_distance", + "0x69": "set_title_subtitle", + "0x6a": "update_time", + "0x6b": "set_title_text", + "0x6c": "set_title_time", + "0x6d": "entity_sound_effect", + "0x6e": "sound_effect", + "0x6f": "start_configuration", + "0x70": "stop_sound", + "0x71": "store_cookie", + "0x72": "system_chat", + "0x73": "playerlist_header", + "0x74": "nbt_query_response", + "0x75": "collect", + "0x76": "entity_teleport", + "0x77": "test_instance_block_status", + "0x78": "set_ticking_state", + "0x79": "step_tick", + "0x7a": "transfer", + "0x7b": "advancements", + "0x7c": "entity_update_attributes", + "0x7d": "entity_effect", + "0x7e": "declare_recipes", + "0x7f": "tags", + "0x80": "set_projectile_power", + "0x81": "custom_report_details", + "0x82": "server_links", + "0x83": "tracked_waypoint", + "0x84": "clear_dialog", + "0x85": "show_dialog" + }, + "type": "varint" + } ] - } - ] - ], - "packet_entity_status": [ - "container", - [ - { - "name": "entityId", - "type": "i32" - }, - { - "name": "entityStatus", - "type": "i8" - } - ] - ], - "packet_sync_entity_position": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "dx", - "type": "f64" - }, - { - "name": "dy", - "type": "f64" - }, - { - "name": "dz", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_explosion": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" }, { - "name": "playerKnockback", + "name": "params", "type": [ - "option", - "vec3f64" + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "add_resource_pack": "packet_common_add_resource_pack", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "bundle_delimiter": "void", + "camera": "packet_camera", + "chat_suggestions": "packet_chat_suggestions", + "chunk_batch_finished": "packet_chunk_batch_finished", + "chunk_batch_start": "packet_chunk_batch_start", + "chunk_biomes": "packet_chunk_biomes", + "clear_dialog": "packet_common_clear_dialog", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "cookie_request": "packet_common_cookie_request", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "damage_event": "packet_damage_event", + "death_combat_event": "packet_death_combat_event", + "debug_sample": "packet_debug_sample", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "hide_message": "packet_hide_message", + "hurt_animation": "packet_hurt_animation", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "move_minecart": "packet_move_minecart", + "multi_block_change": "packet_multi_block_change", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "ping_response": "packet_ping_response", + "player_chat": "packet_player_chat", + "player_info": "packet_player_info", + "player_remove": "packet_player_remove", + "player_rotation": "packet_player_rotation", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "profileless_chat": "packet_profileless_chat", + "recipe_book_add": "packet_recipe_book_add", + "recipe_book_remove": "packet_recipe_book_remove", + "recipe_book_settings": "packet_recipe_book_settings", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_score": "packet_reset_score", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "server_data": "packet_server_data", + "server_links": "packet_common_server_links", + "set_cooldown": "packet_set_cooldown", + "set_cursor_item": "packet_set_cursor_item", + "set_passengers": "packet_set_passengers", + "set_player_inventory": "packet_set_player_inventory", + "set_projectile_power": "packet_set_projectile_power", + "set_slot": "packet_set_slot", + "set_ticking_state": "packet_set_ticking_state", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "show_dialog": "packet_show_dialog", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_position": "packet_spawn_position", + "start_configuration": "packet_start_configuration", + "statistics": "packet_statistics", + "step_tick": "packet_step_tick", + "stop_sound": "packet_stop_sound", + "store_cookie": "packet_common_store_cookie", + "sync_entity_position": "packet_sync_entity_position", + "system_chat": "packet_system_chat", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "test_instance_block_status": "packet_test_instance_block_status", + "tile_entity_data": "packet_tile_entity_data", + "tracked_waypoint": "packet_tracked_waypoint", + "trade_list": "packet_trade_list", + "transfer": "packet_common_transfer", + "unload_chunk": "packet_unload_chunk", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } ] + } + ] + ], + "packet_abilities": [ + "container", + [ + { + "name": "flags", + "type": "i8" }, { - "name": "explosionParticle", - "type": "Particle" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "sound", - "type": "ItemSoundHolder" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_unload_chunk": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "chunkZ", - "type": "i32" - }, + "name": "sequenceId", + "type": "varint" + } + ] + ], + "packet_action_bar": [ + "container", + [ { - "name": "chunkX", - "type": "i32" + "name": "text", + "type": "anonymousNbt" } ] ], - "packet_game_state_change": [ + "packet_advancements": [ "container", [ { - "name": "reason", + "name": "reset", + "type": "bool" + }, + { + "name": "advancementMapping", "type": [ - "mapper", + "array", { - "type": "u8", - "mappings": { - "0": "no_respawn_block_available", - "1": "start_raining", - "2": "stop_raining", - "3": "change_game_mode", - "4": "win_game", - "5": "demo_event", - "6": "play_arrow_hit_sound", - "7": "rain_level_change", - "8": "thunder_level_change", - "9": "puffer_fish_sting", - "10": "guardian_elder_effect", - "11": "immediate_respawn", - "12": "limited_crafting", - "13": "level_chunks_load_start" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "container", + [ + { + "name": "parentId", + "type": [ + "option", + "string" + ] + }, + { + "name": "displayData", + "type": [ + "option", + [ + "container", + [ + { + "name": "title", + "type": "anonymousNbt" + }, + { + "name": "description", + "type": "anonymousNbt" + }, + { + "name": "icon", + "type": "Slot" + }, + { + "name": "frameType", + "type": "varint" + }, + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 29 + }, + { + "name": "hidden", + "signed": false, + "size": 1 + }, + { + "name": "show_toast", + "signed": false, + "size": 1 + }, + { + "name": "has_background_texture", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "backgroundTexture", + "type": [ + "switch", + { + "compareTo": "flags/has_background_texture", + "default": "void", + "fields": { + "1": "string" + } + } + ] + }, + { + "name": "xCord", + "type": "f32" + }, + { + "name": "yCord", + "type": "f32" + } + ] + ] + ] + }, + { + "name": "requirements", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + }, + { + "name": "sendsTelemtryData", + "type": "bool" + } + ] + ] + } + ] + ] } ] }, { - "name": "gameMode", - "type": "f32" + "name": "identifiers", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "progressMapping", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "criterionIdentifier", + "type": "string" + }, + { + "name": "criterionProgress", + "type": [ + "option", + "i64" + ] + } + ] + ] + } + ] + } + ] + ] + } + ] + }, + { + "name": "showAdvancements", + "type": "bool" } ] ], - "packet_open_horse_window": [ + "packet_animation": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "nbSlots", + "name": "entityId", "type": "varint" }, { - "name": "entityId", - "type": "i32" + "name": "animation", + "type": "u8" } ] ], - "packet_hurt_animation": [ + "packet_attach_entity": [ "container", [ { "name": "entityId", - "type": "varint" + "type": "i32" }, { - "name": "yaw", - "type": "f32" + "name": "vehicleId", + "type": "i32" } ] ], - "packet_initialize_world_border": [ + "packet_block_action": [ "container", - [ - { - "name": "x", - "type": "f64" - }, + [ { - "name": "z", - "type": "f64" + "name": "location", + "type": "position" }, { - "name": "oldDiameter", - "type": "f64" + "name": "byte1", + "type": "u8" }, { - "name": "newDiameter", - "type": "f64" + "name": "byte2", + "type": "u8" }, { - "name": "speed", + "name": "blockId", "type": "varint" - }, + } + ] + ], + "packet_block_break_animation": [ + "container", + [ { - "name": "portalTeleportBoundary", + "name": "entityId", "type": "varint" }, { - "name": "warningBlocks", - "type": "varint" + "name": "location", + "type": "position" }, { - "name": "warningTime", - "type": "varint" + "name": "destroyStage", + "type": "i8" } ] ], - "packet_keep_alive": [ + "packet_block_change": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "location", + "type": "position" + }, + { + "name": "type", + "type": "varint" } ] ], - "packet_map_chunk": [ + "packet_boss_bar": [ "container", [ { - "name": "x", - "type": "i32" + "name": "entityUUID", + "type": "UUID" }, { - "name": "z", - "type": "i32" + "name": "action", + "type": "varint" }, { - "name": "heightmaps", + "name": "title", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "world_surface_wg", - "1": "world_surface", - "2": "ocean_floor_wg", - "3": "ocean_floor", - "4": "motion_blocking", - "5": "motion_blocking_no_leaves" - } - } - ] - }, - { - "name": "data", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "anonymousNbt", + "3": "anonymousNbt" + } } ] }, { - "name": "chunkData", - "type": "ByteArray" - }, - { - "name": "blockEntities", + "name": "health", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "chunkBlockEntity" + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } } ] }, { - "name": "skyLightMask", + "name": "color", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } } ] }, { - "name": "blockLightMask", + "name": "dividers", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } } ] }, { - "name": "emptySkyLightMask", + "name": "flags", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } } ] - }, + } + ] + ], + "packet_camera": [ + "container", + [ { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat_suggestions": [ + "container", + [ + { + "name": "action", + "type": "varint" }, { - "name": "skyLight", + "name": "entries", "type": [ "array", { "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] + "type": "string" } ] - }, + } + ] + ], + "packet_chunk_batch_finished": [ + "container", + [ { - "name": "blockLight", + "name": "batchSize", + "type": "varint" + } + ] + ], + "packet_chunk_batch_start": [ + "container", + [] + ], + "packet_chunk_biomes": [ + "container", + [ + { + "name": "biomes", "type": [ "array", { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } + "container", + [ + { + "name": "position", + "type": "packedChunkPos" + }, + { + "name": "data", + "type": "ByteArray" + } + ] ] } ] } ] ], - "packet_world_event": [ + "packet_clear_titles": [ "container", [ { - "name": "effectId", - "type": "i32" + "name": "reset", + "type": "bool" + } + ] + ], + "packet_close_window": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", + "type": "varint" }, { - "name": "location", - "type": "position" + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" }, { - "name": "data", - "type": "i32" + "name": "property", + "type": "i16" }, { - "name": "global", - "type": "bool" + "name": "value", + "type": "i16" } ] ], - "packet_world_particles": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "longDistance", - "type": "bool" - }, - { - "name": "alwaysShow", - "type": "bool" - }, - { - "name": "x", - "type": "f64" + "name": "windowId", + "type": "ContainerID" }, { - "name": "y", - "type": "f64" - }, + "name": "recipeDisplay", + "type": "RecipeDisplay" + } + ] + ], + "packet_custom_payload": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "channel", + "type": "string" }, { - "name": "offsetX", - "type": "f32" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_damage_event": [ + "container", + [ { - "name": "offsetY", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "offsetZ", - "type": "f32" + "name": "sourceTypeId", + "type": "varint" }, { - "name": "velocityOffset", - "type": "f32" + "name": "sourceCauseId", + "type": "varint" }, { - "name": "amount", - "type": "i32" + "name": "sourceDirectId", + "type": "varint" }, { - "name": "particle", - "type": "Particle" + "name": "sourcePosition", + "type": [ + "option", + "vec3f64" + ] } ] ], - "packet_update_light": [ + "packet_death_combat_event": [ "container", [ { - "name": "chunkX", + "name": "playerId", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" - }, + "name": "message", + "type": "anonymousNbt" + } + ] + ], + "packet_debug_sample": [ + "container", + [ { - "name": "skyLightMask", + "name": "sample", "type": [ "array", { @@ -5800,251 +5658,356 @@ ] }, { - "name": "blockLightMask", + "name": "type", + "type": "varint" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", "type": [ "array", { "countType": "varint", - "type": "i64" + "type": "command_node" } ] }, { - "name": "emptySkyLightMask", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { "countType": "varint", - "type": "i64" + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "items", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] } ] }, { - "name": "emptyBlockLightMask", + "name": "stoneCutterRecipes", "type": [ "array", { "countType": "varint", - "type": "i64" + "type": [ + "container", + [ + { + "name": "input", + "type": "IDSet" + }, + { + "name": "slotDisplay", + "type": "SlotDisplay" + } + ] + ] + } + ] + } + ] + ], + "packet_difficulty": [ + "container", + [ + { + "name": "difficulty", + "type": [ + "mapper", + { + "mappings": { + "0": "peaceful", + "1": "easy", + "2": "normal", + "3": "hard" + }, + "type": "varint" } ] }, { - "name": "skyLight", + "name": "difficultyLocked", + "type": "bool" + } + ] + ], + "packet_end_combat_event": [ + "container", + [ + { + "name": "duration", + "type": "varint" + } + ] + ], + "packet_enter_combat_event": [ + "container", + [] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] + "type": "varint" } ] + } + ] + ], + "packet_entity_effect": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "blockLight", + "name": "effectId", + "type": "varint" + }, + { + "name": "amplifier", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] + ], + "packet_entity_equipment": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "Slot" + } + ] ] } ] } ] ], - "packet_login": [ + "packet_entity_head_rotation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "isHardcore", - "type": "bool" + "name": "yaw", + "type": "i8" }, { - "name": "worldNames", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "maxPlayers", + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_metadata": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "viewDistance", + "name": "metadata", + "type": "entityMetadata" + } + ] + ], + "packet_entity_move_look": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "simulationDistance", - "type": "varint" + "name": "dX", + "type": "i16" }, { - "name": "reducedDebugInfo", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "enableRespawnScreen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "doLimitedCrafting", - "type": "bool" + "name": "yaw", + "type": "i8" }, { - "name": "worldState", - "type": "SpawnInfo" + "name": "pitch", + "type": "i8" }, { - "name": "enforcesSecureChat", + "name": "onGround", "type": "bool" } ] ], - "packet_map": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "itemDamage", - "type": "varint" + "name": "sound", + "type": "ItemSoundHolder" }, { - "name": "scale", - "type": "i8" + "name": "soundCategory", + "type": "soundSource" }, { - "name": "locked", - "type": "bool" + "name": "entityId", + "type": "varint" }, { - "name": "icons", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "i8" - }, - { - "name": "z", - "type": "i8" - }, - { - "name": "direction", - "type": "u8" - }, - { - "name": "displayName", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] - ] + "name": "volume", + "type": "f32" }, { - "name": "columns", - "type": "u8" + "name": "pitch", + "type": "f32" }, { - "name": "rows", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "name": "seed", + "type": "i64" + } + ] + ], + "packet_entity_status": [ + "container", + [ + { + "name": "entityId", + "type": "i32" + }, + { + "name": "entityStatus", + "type": "i8" + } + ] + ], + "packet_entity_teleport": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { "name": "x", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "type": "f64" }, { "name": "y", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "type": "f64" }, { - "name": "data", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_trade_list": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "entityId", + "type": "varint" }, { - "name": "trades", + "name": "properties", "type": [ "array", { @@ -6053,205 +6016,268 @@ "container", [ { - "name": "inputItem1", + "name": "key", "type": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" + "mapper", + { + "mappings": { + "0": "generic.armor", + "1": "generic.armor_toughness", + "2": "generic.attack_damage", + "3": "generic.attack_knockback", + "4": "generic.attack_speed", + "5": "player.block_break_speed", + "6": "player.block_interaction_range", + "7": "burning_time", + "8": "camera_distance", + "9": "explosion_knockback_resistance", + "10": "player.entity_interaction_range", + "11": "generic.fall_damage_multiplier", + "12": "generic.flying_speed", + "13": "generic.follow_range", + "14": "generic.gravity", + "15": "generic.jump_strength", + "16": "generic.knockback_resistance", + "17": "generic.luck", + "18": "generic.max_absorption", + "19": "generic.max_health", + "20": "generic.movement_speed", + "21": "generic.safe_fall_distance", + "22": "generic.scale", + "23": "zombie.spawn_reinforcements", + "24": "generic.step_height", + "25": "submerged_mining_speed", + "26": "sweeping_damage_ratio", + "27": "tempt_range", + "28": "water_movement_efficiency", + "29": "waypoint_transmit_range", + "30": "waypoint_receive_range" }, - { - "name": "components", - "type": "ExactComponentMatcher" - } - ] + "type": "varint" + } ] }, { - "name": "outputItem", - "type": "Slot" + "name": "value", + "type": "f64" }, { - "name": "inputItem2", + "name": "modifiers", "type": [ - "option", - [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" - }, - { - "name": "components", - "type": "ExactComponentMatcher" - } + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] ] - ] + } ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" } ] ] } ] - }, + } + ] + ], + "packet_entity_velocity": [ + "container", + [ { - "name": "villagerLevel", + "name": "entityId", "type": "varint" }, { - "name": "experience", - "type": "varint" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" }, { - "name": "isRegularVillager", - "type": "bool" + "name": "level", + "type": "varint" }, { - "name": "canRestock", - "type": "bool" + "name": "totalExperience", + "type": "varint" } ] ], - "packet_rel_entity_move": [ + "packet_explosion": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "dX", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "dY", - "type": "i16" + "name": "z", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "playerKnockback", + "type": [ + "option", + "vec3f64" + ] }, { - "name": "onGround", - "type": "bool" + "name": "explosionParticle", + "type": "Particle" + }, + { + "name": "sound", + "type": "ItemSoundHolder" } ] ], - "packet_entity_move_look": [ + "packet_face_player": [ "container", [ { - "name": "entityId", + "name": "feet_eyes", "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dY", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "z", + "type": "f64" }, { - "name": "yaw", - "type": "i8" + "name": "isEntity", + "type": "bool" }, { - "name": "pitch", - "type": "i8" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "entity_feet_eyes", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] } ] ], - "packet_move_minecart": [ + "packet_game_state_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "steps", + "name": "reason", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "position", - "type": "vec3f" - }, - { - "name": "movement", - "type": "vec3f" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, + "mappings": { + "0": "no_respawn_block_available", + "1": "start_raining", + "2": "stop_raining", + "3": "change_game_mode", + "4": "win_game", + "5": "demo_event", + "6": "play_arrow_hit_sound", + "7": "rain_level_change", + "8": "thunder_level_change", + "9": "puffer_fish_sting", + "10": "guardian_elder_effect", + "11": "immediate_respawn", + "12": "limited_crafting", + "13": "level_chunks_load_start" + }, + "type": "u8" + } + ] + }, + { + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] + ], + "packet_hide_message": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "signature", + "type": [ + "switch", + { + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", { - "name": "weight", - "type": "f32" + "count": 256 } ] - ] + } } ] } ] ], - "packet_entity_look": [ + "packet_hurt_animation": [ "container", [ { @@ -6260,19 +6286,11 @@ }, { "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "type": "f32" } ] ], - "packet_vehicle_move": [ + "packet_initialize_world_border": [ "container", [ { @@ -6280,265 +6298,375 @@ "type": "f64" }, { - "name": "y", + "name": "z", "type": "f64" }, { - "name": "z", + "name": "oldDiameter", "type": "f64" }, { - "name": "yaw", - "type": "f32" + "name": "newDiameter", + "type": "f64" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_open_book": [ - "container", - [ - { - "name": "hand", + "name": "speed", "type": "varint" - } - ] - ], - "packet_open_window": [ - "container", - [ + }, { - "name": "windowId", + "name": "portalTeleportBoundary", "type": "varint" }, { - "name": "inventoryType", + "name": "warningBlocks", "type": "varint" }, { - "name": "windowTitle", - "type": "anonymousNbt" + "name": "warningTime", + "type": "varint" } ] ], - "packet_open_sign_entity": [ + "packet_keep_alive": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "isFrontText", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_ping": [ + "packet_kick_disconnect": [ "container", [ { - "name": "id", - "type": "i32" + "name": "reason", + "type": "anonymousNbt" } ] ], - "packet_ping_response": [ + "packet_login": [ "container", [ { - "name": "id", - "type": "i64" - } - ] - ], - "packet_craft_recipe_response": [ - "container", - [ + "name": "entityId", + "type": "i32" + }, { - "name": "windowId", - "type": "ContainerID" + "name": "isHardcore", + "type": "bool" }, { - "name": "recipeDisplay", - "type": "RecipeDisplay" - } - ] - ], - "packet_abilities": [ - "container", - [ + "name": "worldNames", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, { - "name": "flags", - "type": "i8" + "name": "maxPlayers", + "type": "varint" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "viewDistance", + "type": "varint" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "simulationDistance", + "type": "varint" + }, + { + "name": "reducedDebugInfo", + "type": "bool" + }, + { + "name": "enableRespawnScreen", + "type": "bool" + }, + { + "name": "doLimitedCrafting", + "type": "bool" + }, + { + "name": "worldState", + "type": "SpawnInfo" + }, + { + "name": "enforcesSecureChat", + "type": "bool" } ] ], - "packet_player_chat": [ + "packet_map": [ "container", [ { - "name": "globalIndex", + "name": "itemDamage", "type": "varint" }, { - "name": "senderUuid", - "type": "UUID" + "name": "scale", + "type": "i8" }, { - "name": "index", - "type": "varint" + "name": "locked", + "type": "bool" }, { - "name": "signature", + "name": "icons", "type": [ "option", [ - "buffer", + "array", { - "count": 256 + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + }, + { + "name": "direction", + "type": "u8" + }, + { + "name": "displayName", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] } ] ] - }, + }, + { + "name": "columns", + "type": "u8" + }, + { + "name": "rows", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } + } + ] + } + ] + ], + "packet_map_chunk": [ + "container", + [ { - "name": "plainMessage", - "type": "string" + "name": "x", + "type": "i32" }, { - "name": "timestamp", - "type": "i64" + "name": "z", + "type": "i32" }, { - "name": "salt", - "type": "i64" + "name": "heightmaps", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "world_surface_wg", + "1": "world_surface", + "2": "ocean_floor_wg", + "3": "ocean_floor", + "4": "motion_blocking", + "5": "motion_blocking_no_leaves" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + } + ] + ] + } + ] }, { - "name": "previousMessages", - "type": "previousMessages" + "name": "chunkData", + "type": "ByteArray" }, { - "name": "unsignedChatContent", + "name": "blockEntities", "type": [ - "option", - "anonymousNbt" + "array", + { + "countType": "varint", + "type": "chunkBlockEntity" + } ] }, { - "name": "filterType", - "type": "varint" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "filterTypeMask", + "name": "blockLightMask", "type": [ - "switch", + "array", { - "compareTo": "filterType", - "fields": { - "2": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - "default": "void" + "countType": "varint", + "type": "i64" } ] }, { - "name": "type", - "type": "ChatTypesHolder" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "networkName", - "type": "anonymousNbt" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "networkTargetName", + "name": "skyLight", "type": [ - "option", - "anonymousNbt" + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } ] - } - ] - ], - "packet_end_combat_event": [ - "container", - [ - { - "name": "duration", - "type": "varint" - } - ] - ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ - "container", - [ - { - "name": "playerId", - "type": "varint" }, { - "name": "message", - "type": "anonymousNbt" - } - ] - ], - "packet_player_remove": [ - "container", - [ - { - "name": "players", + "name": "blockLight", "type": [ "array", { "countType": "varint", - "type": "UUID" + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] } ] } ] ], - "packet_player_info": [ + "packet_move_minecart": [ "container", [ { - "name": "action", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name", - "update_hat", - "update_list_order" - ] - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "data", + "name": "steps", "type": [ "array", { @@ -6546,116 +6674,25 @@ "type": [ "container", [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "player", - "type": [ - "switch", - { - "compareTo": "../action/add_player", - "fields": { - "true": "game_profile" - }, - "default": "void" - } - ] - }, - { - "name": "chatSession", - "type": [ - "switch", - { - "compareTo": "../action/initialize_chat", - "fields": { - "true": "chat_session" - }, - "default": "void" - } - ] - }, - { - "name": "gamemode", - "type": [ - "switch", - { - "compareTo": "../action/update_game_mode", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "listed", - "type": [ - "switch", - { - "compareTo": "../action/update_listed", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "latency", - "type": [ - "switch", - { - "compareTo": "../action/update_latency", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] + { + "name": "position", + "type": "vec3f" }, { - "name": "displayName", - "type": [ - "switch", - { - "compareTo": "../action/update_display_name", - "fields": { - "true": [ - "option", - "anonymousNbt" - ] - }, - "default": "void" - } - ] + "name": "movement", + "type": "vec3f" }, { - "name": "listPriority", - "type": [ - "switch", - { - "compareTo": "../action/update_list_order", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "f32" }, { - "name": "showHat", - "type": [ - "switch", - { - "compareTo": "../action/update_hat", - "fields": { - "true": "bool" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "f32" + }, + { + "name": "weight", + "type": "f32" } ] ] @@ -6664,543 +6701,610 @@ } ] ], - "packet_face_player": [ + "packet_multi_block_change": [ "container", [ { - "name": "feet_eyes", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, - { - "name": "entityId", + "name": "chunkCoordinates", "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 }, - "default": "void" - } + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] ] }, { - "name": "entity_feet_eyes", + "name": "records", "type": [ - "switch", + "array", { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] } ] ], - "PositionUpdateRelatives": [ - "bitflags", - { - "type": "u32", - "flags": [ - "x", - "y", - "z", - "yaw", - "pitch", - "dx", - "dy", - "dz", - "yawDelta" - ] - } - ], - "packet_position": [ + "packet_nbt_query_response": [ "container", [ { - "name": "teleportId", + "name": "transactionId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "dx", - "type": "f64" - }, - { - "name": "dy", - "type": "f64" - }, - { - "name": "dz", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "flags", - "type": "PositionUpdateRelatives" + "name": "nbt", + "type": "anonOptionalNbt" } ] ], - "packet_player_rotation": [ + "packet_open_book": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "hand", + "type": "varint" } ] ], - "packet_recipe_book_add": [ + "packet_open_horse_window": [ "container", [ { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "recipe", - "type": [ - "container", - [ - { - "name": "displayId", - "type": "varint" - }, - { - "name": "display", - "type": "RecipeDisplay" - }, - { - "name": "group", - "type": "optvarint" - }, - { - "name": "category", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "crafting_building_blocks", - "1": "crafting_redstone", - "2": "crafting_equipment", - "3": "crafting_misc", - "4": "furnace_food", - "5": "furnace_blocks", - "6": "furnace_misc", - "7": "blast_furnace_blocks", - "8": "blast_furnace_misc", - "9": "smoker_food", - "10": "stonecutter", - "11": "smithing", - "12": "campfire" - } - } - ] - }, - { - "name": "craftingRequirements", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": "IDSet" - } - ] - ] - } - ] - ] - }, - { - "name": "flags", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "notification", - "highlight" - ] - } - ] - } - ] - ] - } - ] + "name": "windowId", + "type": "ContainerID" }, { - "name": "replace", - "type": "bool" - } - ] - ], - "packet_recipe_book_remove": [ - "container", - [ - { - "name": "recipeIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "RecipeBookSetting": [ + "packet_open_sign_entity": [ "container", [ { - "name": "open", - "type": "bool" + "name": "location", + "type": "position" }, { - "name": "filtering", + "name": "isFrontText", "type": "bool" } ] ], - "packet_recipe_book_settings": [ + "packet_open_window": [ "container", [ { - "name": "crafting", - "type": "RecipeBookSetting" + "name": "windowId", + "type": "varint" }, { - "name": "furnace", - "type": "RecipeBookSetting" + "name": "inventoryType", + "type": "varint" }, { - "name": "blast", - "type": "RecipeBookSetting" - }, + "name": "windowTitle", + "type": "anonymousNbt" + } + ] + ], + "packet_ping": [ + "container", + [ { - "name": "smoker", - "type": "RecipeBookSetting" + "name": "id", + "type": "i32" } ] ], - "packet_entity_destroy": [ + "packet_ping_response": [ "container", [ { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "id", + "type": "i64" } ] ], - "packet_remove_entity_effect": [ + "packet_player_chat": [ "container", [ { - "name": "entityId", + "name": "globalIndex", "type": "varint" }, { - "name": "effectId", + "name": "senderUuid", + "type": "UUID" + }, + { + "name": "index", + "type": "varint" + }, + { + "name": "signature", + "type": [ + "option", + [ + "buffer", + { + "count": 256 + } + ] + ] + }, + { + "name": "plainMessage", + "type": "string" + }, + { + "name": "timestamp", + "type": "i64" + }, + { + "name": "salt", + "type": "i64" + }, + { + "name": "previousMessages", + "type": "previousMessages" + }, + { + "name": "unsignedChatContent", + "type": [ + "option", + "anonymousNbt" + ] + }, + { + "name": "filterType", "type": "varint" + }, + { + "name": "filterTypeMask", + "type": [ + "switch", + { + "compareTo": "filterType", + "default": "void", + "fields": { + "2": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + } + } + ] + }, + { + "name": "type", + "type": "ChatTypesHolder" + }, + { + "name": "networkName", + "type": "anonymousNbt" + }, + { + "name": "networkTargetName", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "packet_reset_score": [ + "packet_player_info": [ "container", [ { - "name": "entity_name", - "type": "string" + "name": "action", + "type": [ + "bitflags", + { + "flags": [ + "add_player", + "initialize_chat", + "update_game_mode", + "update_listed", + "update_latency", + "update_display_name", + "update_hat", + "update_list_order" + ], + "type": "u8" + } + ] }, { - "name": "objective_name", + "name": "data", "type": [ - "option", - "string" + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "player", + "type": [ + "switch", + { + "compareTo": "../action/add_player", + "default": "void", + "fields": { + "true": "game_profile" + } + } + ] + }, + { + "name": "chatSession", + "type": [ + "switch", + { + "compareTo": "../action/initialize_chat", + "default": "void", + "fields": { + "true": "chat_session" + } + } + ] + }, + { + "name": "gamemode", + "type": [ + "switch", + { + "compareTo": "../action/update_game_mode", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "listed", + "type": [ + "switch", + { + "compareTo": "../action/update_listed", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "latency", + "type": [ + "switch", + { + "compareTo": "../action/update_latency", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "displayName", + "type": [ + "switch", + { + "compareTo": "../action/update_display_name", + "default": "void", + "fields": { + "true": [ + "option", + "anonymousNbt" + ] + } + } + ] + }, + { + "name": "listPriority", + "type": [ + "switch", + { + "compareTo": "../action/update_list_order", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "showHat", + "type": [ + "switch", + { + "compareTo": "../action/update_hat", + "default": "void", + "fields": { + "true": "bool" + } + } + ] + } + ] + ] + } ] } ] ], - "packet_respawn": [ - "container", - [ - { - "name": "worldState", - "type": "SpawnInfo" - }, - { - "name": "copyMetadata", - "type": "u8" - } - ] - ], - "packet_entity_head_rotation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "headYaw", - "type": "i8" - } - ] - ], - "packet_multi_block_change": [ + "packet_player_remove": [ "container", [ { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] - }, - { - "name": "records", + "name": "players", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": "UUID" } ] } ] ], - "packet_select_advancement_tab": [ + "packet_player_rotation": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_server_data": [ + "packet_playerlist_header": [ "container", [ { - "name": "motd", + "name": "header", "type": "anonymousNbt" }, { - "name": "iconBytes", - "type": [ - "option", - "ByteArray" - ] - } - ] - ], - "packet_action_bar": [ - "container", - [ - { - "name": "text", + "name": "footer", "type": "anonymousNbt" } ] ], - "packet_world_border_center": [ + "packet_position": [ "container", [ + { + "name": "teleportId", + "type": "varint" + }, { "name": "x", "type": "f64" }, { - "name": "z", + "name": "y", "type": "f64" - } - ] - ], - "packet_world_border_lerp_size": [ - "container", - [ + }, { - "name": "oldDiameter", + "name": "z", "type": "f64" }, { - "name": "newDiameter", + "name": "dx", "type": "f64" }, { - "name": "speed", - "type": "varint" - } - ] - ], - "packet_world_border_size": [ - "container", - [ + "name": "dy", + "type": "f64" + }, { - "name": "diameter", + "name": "dz", "type": "f64" - } - ] - ], - "packet_world_border_warning_delay": [ - "container", - [ + }, { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_world_border_warning_reach": [ - "container", - [ + "name": "yaw", + "type": "f32" + }, { - "name": "warningBlocks", - "type": "varint" + "name": "pitch", + "type": "f32" + }, + { + "name": "flags", + "type": "PositionUpdateRelatives" } ] ], - "packet_camera": [ + "packet_profileless_chat": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "message", + "type": "anonymousNbt" + }, + { + "name": "type", + "type": "ChatTypesHolder" + }, + { + "name": "name", + "type": "anonymousNbt" + }, + { + "name": "target", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "packet_update_view_position": [ + "packet_recipe_book_add": [ "container", [ { - "name": "chunkX", - "type": "varint" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "recipe", + "type": [ + "container", + [ + { + "name": "displayId", + "type": "varint" + }, + { + "name": "display", + "type": "RecipeDisplay" + }, + { + "name": "group", + "type": "optvarint" + }, + { + "name": "category", + "type": [ + "mapper", + { + "mappings": { + "0": "crafting_building_blocks", + "1": "crafting_redstone", + "2": "crafting_equipment", + "3": "crafting_misc", + "4": "furnace_food", + "5": "furnace_blocks", + "6": "furnace_misc", + "7": "blast_furnace_blocks", + "8": "blast_furnace_misc", + "9": "smoker_food", + "10": "stonecutter", + "11": "smithing", + "12": "campfire" + }, + "type": "varint" + } + ] + }, + { + "name": "craftingRequirements", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": "IDSet" + } + ] + ] + } + ] + ] + }, + { + "name": "flags", + "type": [ + "bitflags", + { + "flags": [ + "notification", + "highlight" + ], + "type": "u8" + } + ] + } + ] + ] + } + ] }, { - "name": "chunkZ", - "type": "varint" - } - ] - ], - "packet_update_view_distance": [ - "container", - [ - { - "name": "viewDistance", - "type": "varint" + "name": "replace", + "type": "bool" } ] ], - "packet_set_cursor_item": [ + "packet_recipe_book_remove": [ "container", [ { - "name": "contents", - "type": "Slot" + "name": "recipeIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_spawn_position": [ + "packet_recipe_book_settings": [ "container", [ { - "name": "location", - "type": "position" + "name": "crafting", + "type": "RecipeBookSetting" }, { - "name": "angle", - "type": "f32" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + "name": "furnace", + "type": "RecipeBookSetting" + }, { - "name": "position", - "type": "varint" + "name": "blast", + "type": "RecipeBookSetting" }, { - "name": "name", - "type": "string" + "name": "smoker", + "type": "RecipeBookSetting" } ] ], - "packet_entity_metadata": [ + "packet_rel_entity_move": [ "container", [ { @@ -7208,25 +7312,24 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "entityId", - "type": "i32" + "name": "dY", + "type": "i16" }, { - "name": "vehicleId", - "type": "i32" + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_entity_velocity": [ + "packet_remove_entity_effect": [ "container", [ { @@ -7234,81 +7337,50 @@ "type": "varint" }, { - "name": "velocity", - "type": "vec3i16" + "name": "effectId", + "type": "varint" } ] ], - "packet_entity_equipment": [ + "packet_reset_score": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entity_name", + "type": "string" }, { - "name": "equipments", + "name": "objective_name", "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } + "option", + "string" ] } ] ], - "packet_experience": [ + "packet_respawn": [ "container", [ { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" + "name": "worldState", + "type": "SpawnInfo" }, { - "name": "totalExperience", - "type": "varint" + "name": "copyMetadata", + "type": "u8" } ] ], - "packet_update_health": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", + "name": "position", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ - { - "name": "slot", - "type": "varint" + "name": "name", + "type": "string" } ] ], @@ -7329,309 +7401,79 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" - } - ] - }, - { - "name": "type", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "number_format", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "option", - "varint" - ], - "2": [ - "option", - "varint" - ] - }, - "default": "void" - } - ] - }, - { - "name": "styling", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "switch", - { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ], - "2": [ - "switch", - { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_set_passengers": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_set_player_inventory": [ - "container", - [ - { - "name": "slotId", - "type": "varint" - }, - { - "name": "contents", - "type": "Slot" - } - ] - ], - "packet_teams": [ - "container", - [ - { - "name": "team", - "type": "string" + } + } + ] }, { - "name": "mode", + "name": "type", "type": [ - "mapper", + "switch", { - "type": "i8", - "mappings": { - "0": "add", - "1": "remove", - "2": "change", - "3": "join", - "4": "leave" + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" } } ] }, { - "anon": true, + "name": "number_format", "type": [ "switch", { - "compareTo": "mode", + "compareTo": "action", + "default": "void", "fields": { - "add": [ - "container", - [ - { - "name": "name", - "type": "anonymousNbt" - }, - { - "name": "flags", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "friendly_fire", - "see_friendly_invisible" - ] - } - ] - }, - { - "name": "nameTagVisibility", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "always", - "1": "never", - "2": "hide_for_other_teams", - "3": "hide_for_own_team" - } - } - ] - }, - { - "name": "collisionRule", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "always", - "1": "never", - "2": "push_other_teams", - "3": "push_own_team" - } - } - ] - }, - { - "name": "formatting", - "type": "varint" - }, - { - "name": "prefix", - "type": "anonymousNbt" - }, - { - "name": "suffix", - "type": "anonymousNbt" - } - ] + "0": [ + "option", + "varint" ], - "change": [ - "container", - [ - { - "name": "name", - "type": "anonymousNbt" - }, - { - "name": "flags", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "friendly_fire", - "see_friendly_invisible" - ] - } - ] - }, - { - "name": "nameTagVisibility", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "always", - "1": "never", - "2": "hide_for_other_teams", - "3": "hide_for_own_team" - } - } - ] - }, - { - "name": "collisionRule", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "always", - "1": "never", - "2": "push_other_teams", - "3": "push_own_team" - } - } - ] - }, - { - "name": "formatting", - "type": "varint" - }, - { - "name": "prefix", - "type": "anonymousNbt" - }, - { - "name": "suffix", - "type": "anonymousNbt" - } - ] + "2": [ + "option", + "varint" ] - }, - "default": "void" + } } ] }, { - "name": "players", + "name": "styling", "type": [ "switch", { - "compareTo": "mode", + "compareTo": "action", + "default": "void", "fields": { - "add": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "join": [ - "array", + "0": [ + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } } ], - "leave": [ - "array", + "2": [ + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } } ] - }, - "default": "void" + } } ] } @@ -7671,52 +7513,155 @@ "type": [ "switch", { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ + { + "name": "id", + "type": [ + "option", + "string" + ] + } + ] + ], + "packet_server_data": [ + "container", + [ + { + "name": "motd", + "type": "anonymousNbt" + }, + { + "name": "iconBytes", + "type": [ + "option", + "ByteArray" + ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "cooldownGroup", + "type": "string" + }, + { + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_cursor_item": [ + "container", + [ + { + "name": "contents", + "type": "Slot" + } + ] + ], + "packet_set_passengers": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_simulation_distance": [ + "packet_set_player_inventory": [ "container", [ { - "name": "distance", + "name": "slotId", "type": "varint" + }, + { + "name": "contents", + "type": "Slot" } ] ], - "packet_set_title_subtitle": [ + "packet_set_projectile_power": [ "container", [ { - "name": "text", - "type": "anonymousNbt" + "name": "id", + "type": "varint" + }, + { + "name": "accelerationPower", + "type": "f64" } ] ], - "packet_update_time": [ + "packet_set_slot": [ "container", [ { - "name": "age", - "type": "i64" + "name": "windowId", + "type": "ContainerID" }, { - "name": "time", - "type": "i64" + "name": "stateId", + "type": "varint" }, { - "name": "tickDayTime", + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" + } + ] + ], + "packet_set_ticking_state": [ + "container", + [ + { + "name": "tick_rate", + "type": "f32" + }, + { + "name": "is_frozen", "type": "bool" } ] ], + "packet_set_title_subtitle": [ + "container", + [ + { + "name": "text", + "type": "anonymousNbt" + } + ] + ], "packet_set_title_text": [ "container", [ @@ -7743,7 +7688,34 @@ } ] ], - "packet_entity_sound_effect": [ + "packet_show_dialog": [ + "container", + [ + { + "name": "dialog", + "type": [ + "registryEntryHolder", + { + "baseName": "dialog", + "otherwise": { + "name": "data", + "type": "anonymousNbt" + } + } + ] + } + ] + ], + "packet_simulation_distance": [ + "container", + [ + { + "name": "distance", + "type": "varint" + } + ] + ], + "packet_sound_effect": [ "container", [ { @@ -7755,8 +7727,16 @@ "type": "soundSource" }, { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" }, { "name": "volume", @@ -7772,40 +7752,65 @@ } ] ], - "packet_sound_effect": [ + "packet_spawn_entity": [ "container", [ { - "name": "sound", - "type": "ItemSoundHolder" + "name": "entityId", + "type": "varint" }, { - "name": "soundCategory", - "type": "soundSource" + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "pitch", + "type": "i8" }, { - "name": "pitch", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "seed", - "type": "i64" + "name": "headPitch", + "type": "i8" + }, + { + "name": "objectData", + "type": "varint" + }, + { + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "angle", + "type": "f32" } ] ], @@ -7813,6 +7818,46 @@ "container", [] ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_step_tick": [ + "container", + [ + { + "name": "tick_steps", + "type": "varint" + } + ] + ], "packet_stop_sound": [ "container", [ @@ -7826,11 +7871,11 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "1": "varint", "3": "varint" - }, - "default": "void" + } } ] }, @@ -7840,102 +7885,338 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "2": "string", "3": "string" - }, - "default": "void" + } } ] } ] ], - "packet_system_chat": [ + "packet_sync_entity_position": [ "container", [ { - "name": "content", - "type": "anonymousNbt" + "name": "entityId", + "type": "varint" }, { - "name": "isActionBar", - "type": "bool" - } - ] - ], - "packet_playerlist_header": [ - "container", - [ + "name": "x", + "type": "f64" + }, { - "name": "header", - "type": "anonymousNbt" + "name": "y", + "type": "f64" }, { - "name": "footer", - "type": "anonymousNbt" + "name": "z", + "type": "f64" + }, + { + "name": "dx", + "type": "f64" + }, + { + "name": "dy", + "type": "f64" + }, + { + "name": "dz", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_nbt_query_response": [ + "packet_system_chat": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "content", + "type": "anonymousNbt" }, { - "name": "nbt", - "type": "anonOptionalNbt" + "name": "isActionBar", + "type": "bool" } ] ], - "packet_collect": [ + "packet_tab_complete": [ "container", [ { - "name": "collectedEntityId", + "name": "transactionId", "type": "varint" }, { - "name": "collectorEntityId", + "name": "start", "type": "varint" }, { - "name": "pickupItemCount", + "name": "length", "type": "varint" + }, + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] + } + ] } ] ], - "packet_entity_teleport": [ + "packet_tags": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, + "name": "tags", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] + } + ] + } + ] + ], + "packet_teams": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "team", + "type": "string" }, { - "name": "yaw", - "type": "i8" + "name": "mode", + "type": [ + "mapper", + { + "mappings": { + "0": "add", + "1": "remove", + "2": "change", + "3": "join", + "4": "leave" + }, + "type": "i8" + } + ] }, { - "name": "pitch", - "type": "i8" + "anon": true, + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "add": [ + "container", + [ + { + "name": "name", + "type": "anonymousNbt" + }, + { + "name": "flags", + "type": [ + "bitflags", + { + "flags": [ + "friendly_fire", + "see_friendly_invisible" + ], + "type": "u8" + } + ] + }, + { + "name": "nameTagVisibility", + "type": [ + "mapper", + { + "mappings": { + "0": "always", + "1": "never", + "2": "hide_for_other_teams", + "3": "hide_for_own_team" + }, + "type": "varint" + } + ] + }, + { + "name": "collisionRule", + "type": [ + "mapper", + { + "mappings": { + "0": "always", + "1": "never", + "2": "push_other_teams", + "3": "push_own_team" + }, + "type": "varint" + } + ] + }, + { + "name": "formatting", + "type": "varint" + }, + { + "name": "prefix", + "type": "anonymousNbt" + }, + { + "name": "suffix", + "type": "anonymousNbt" + } + ] + ], + "change": [ + "container", + [ + { + "name": "name", + "type": "anonymousNbt" + }, + { + "name": "flags", + "type": [ + "bitflags", + { + "flags": [ + "friendly_fire", + "see_friendly_invisible" + ], + "type": "u8" + } + ] + }, + { + "name": "nameTagVisibility", + "type": [ + "mapper", + { + "mappings": { + "0": "always", + "1": "never", + "2": "hide_for_other_teams", + "3": "hide_for_own_team" + }, + "type": "varint" + } + ] + }, + { + "name": "collisionRule", + "type": [ + "mapper", + { + "mappings": { + "0": "always", + "1": "never", + "2": "push_other_teams", + "3": "push_own_team" + }, + "type": "varint" + } + ] + }, + { + "name": "formatting", + "type": "varint" + }, + { + "name": "prefix", + "type": "anonymousNbt" + }, + { + "name": "suffix", + "type": "anonymousNbt" + } + ] + ] + } + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "players", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "add": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "join": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "leave": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + } + ] } ] ], @@ -7955,232 +8236,168 @@ } ] ], - "packet_set_ticking_state": [ + "packet_tile_entity_data": [ "container", [ { - "name": "tick_rate", - "type": "f32" + "name": "location", + "type": "position" }, { - "name": "is_frozen", - "type": "bool" - } - ] - ], - "packet_step_tick": [ - "container", - [ - { - "name": "tick_steps", + "name": "action", "type": "varint" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" } ] ], - "packet_advancements": [ + "packet_tracked_waypoint": [ "container", [ { - "name": "reset", - "type": "bool" + "name": "operation", + "type": [ + "mapper", + { + "mappings": { + "0": "track", + "1": "untrack", + "2": "update" + }, + "type": "varint" + } + ] }, { - "name": "advancementMapping", + "name": "waypoint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, + "container", + [ + { + "name": "hasUUID", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", { - "name": "value", - "type": [ - "container", - [ - { - "name": "parentId", - "type": [ - "option", - "string" - ] - }, - { - "name": "displayData", - "type": [ - "option", - [ - "container", - [ - { - "name": "title", - "type": "anonymousNbt" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "icon", - "type": "Slot" - }, - { - "name": "frameType", - "type": "varint" - }, - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "backgroundTexture", - "type": [ - "switch", - { - "compareTo": "flags/has_background_texture", - "fields": { - "1": "string" - }, - "default": "void" - } - ] - }, - { - "name": "xCord", - "type": "f32" - }, - { - "name": "yCord", - "type": "f32" - } - ] - ] - ] - }, - { - "name": "requirements", - "type": [ - "array", + "compareTo": "hasUUID", + "fields": { + "false": [ + "container", + [ + { + "name": "id", + "type": "string" + } + ] + ], + "true": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + } + ] + ] + } + } + ] + }, + { + "name": "icon", + "type": [ + "container", + [ + { + "name": "style", + "type": "string" + }, + { + "name": "color", + "type": [ + "option", + [ + "container", + [ { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "red", + "type": "u8" + }, + { + "name": "green", + "type": "u8" + }, + { + "name": "blue", + "type": "u8" } ] - }, - { - "name": "sendsTelemtryData", - "type": "bool" - } + ] ] - ] - } + } + ] ] - ] - } - ] - }, - { - "name": "identifiers", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "progressMapping", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ + }, + { + "name": "type", + "type": [ + "mapper", { - "name": "key", - "type": "string" - }, + "mappings": { + "0": "empty", + "1": "vec3i", + "2": "chunk", + "3": "azimuth" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "switch", { - "name": "value", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "criterionIdentifier", - "type": "string" - }, - { - "name": "criterionProgress", - "type": [ - "option", - "i64" - ] - } - ] + "compareTo": "type", + "fields": { + "azimuth": "f32", + "chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" + } ] - } - ] + ], + "vec3i": "vec3i" + } } ] - ] - } + } + ] ] - }, - { - "name": "showAdvancements", - "type": "bool" } ] ], - "packet_entity_update_attributes": [ + "packet_trade_list": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "properties", + "name": "trades", "type": [ "array", { @@ -8189,503 +8406,527 @@ "container", [ { - "name": "key", + "name": "inputItem1", "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "generic.armor", - "1": "generic.armor_toughness", - "2": "generic.attack_damage", - "3": "generic.attack_knockback", - "4": "generic.attack_speed", - "5": "player.block_break_speed", - "6": "player.block_interaction_range", - "7": "burning_time", - "8": "camera_distance", - "9": "explosion_knockback_resistance", - "10": "player.entity_interaction_range", - "11": "generic.fall_damage_multiplier", - "12": "generic.flying_speed", - "13": "generic.follow_range", - "14": "generic.gravity", - "15": "generic.jump_strength", - "16": "generic.knockback_resistance", - "17": "generic.luck", - "18": "generic.max_absorption", - "19": "generic.max_health", - "20": "generic.movement_speed", - "21": "generic.safe_fall_distance", - "22": "generic.scale", - "23": "zombie.spawn_reinforcements", - "24": "generic.step_height", - "25": "submerged_mining_speed", - "26": "sweeping_damage_ratio", - "27": "tempt_range", - "28": "water_movement_efficiency", - "29": "waypoint_transmit_range", - "30": "waypoint_receive_range" + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "components", + "type": "ExactComponentMatcher" } - } + ] ] }, { - "name": "value", - "type": "f64" + "name": "outputItem", + "type": "Slot" }, { - "name": "modifiers", + "name": "inputItem2", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "string" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] + "option", + [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "components", + "type": "ExactComponentMatcher" + } ] - } + ] ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" } ] ] } ] + }, + { + "name": "villagerLevel", + "type": "varint" + }, + { + "name": "experience", + "type": "varint" + }, + { + "name": "isRegularVillager", + "type": "bool" + }, + { + "name": "canRestock", + "type": "bool" } ] ], - "packet_entity_effect": [ + "packet_unload_chunk": [ "container", [ { - "name": "entityId", + "name": "chunkZ", + "type": "i32" + }, + { + "name": "chunkX", + "type": "i32" + } + ] + ], + "packet_update_health": [ + "container", + [ + { + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" }, { - "name": "effectId", + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_light": [ + "container", + [ + { + "name": "chunkX", "type": "varint" }, { - "name": "amplifier", + "name": "chunkZ", "type": "varint" }, { - "name": "duration", - "type": "varint" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "flags", - "type": "u8" - } - ] - ], - "packet_declare_recipes": [ - "container", - [ - { - "name": "recipes", + "name": "skyLight", "type": [ "array", { "countType": "varint", "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] }, { - "name": "stoneCutterRecipes", + "name": "blockLight", "type": [ "array", { "countType": "varint", "type": [ - "container", - [ - { - "name": "input", - "type": "IDSet" - }, - { - "name": "slotDisplay", - "type": "SlotDisplay" - } - ] + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] } ] ], - "packet_tags": [ + "packet_update_time": [ "container", [ { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] - } - ] + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + }, + { + "name": "tickDayTime", + "type": "bool" } ] ], - "packet_set_projectile_power": [ + "packet_update_view_distance": [ "container", [ { - "name": "id", + "name": "viewDistance", + "type": "varint" + } + ] + ], + "packet_update_view_position": [ + "container", + [ + { + "name": "chunkX", "type": "varint" }, { - "name": "accelerationPower", - "type": "f64" + "name": "chunkZ", + "type": "varint" } ] ], - "packet_tracked_waypoint": [ + "packet_vehicle_move": [ "container", [ { - "name": "operation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "track", - "1": "untrack", - "2": "update" - } - } - ] + "name": "x", + "type": "f64" }, { - "name": "waypoint", - "type": [ - "container", - [ - { - "name": "hasUUID", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "hasUUID", - "fields": { - "true": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - } - ] - ], - "false": [ - "container", - [ - { - "name": "id", - "type": "string" - } - ] - ] - } - } - ] - }, - { - "name": "icon", - "type": [ - "container", - [ - { - "name": "style", - "type": "string" - }, - { - "name": "color", - "type": [ - "option", - [ - "container", - [ - { - "name": "red", - "type": "u8" - }, - { - "name": "green", - "type": "u8" - }, - { - "name": "blue", - "type": "u8" - } - ] - ] - ] - } - ] - ] - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "empty", - "1": "vec3i", - "2": "chunk", - "3": "azimuth" - } - } - ] - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "vec3i": "vec3i", - "chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - } - ] - ], - "azimuth": "f32" - } - } - ] - } - ] - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_show_dialog": [ + "packet_window_items": [ "container", [ { - "name": "dialog", + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "stateId", + "type": "varint" + }, + { + "name": "items", "type": [ - "registryEntryHolder", + "array", { - "baseName": "dialog", - "otherwise": { - "name": "data", - "type": "anonymousNbt" - } + "countType": "varint", + "type": "Slot" } ] + }, + { + "name": "carriedItem", + "type": "Slot" } ] ], - "packet": [ + "packet_world_border_center": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "animation", - "0x03": "statistics", - "0x04": "acknowledge_player_digging", - "0x05": "block_break_animation", - "0x06": "tile_entity_data", - "0x07": "block_action", - "0x08": "block_change", - "0x09": "boss_bar", - "0x0a": "difficulty", - "0x0b": "chunk_batch_finished", - "0x0c": "chunk_batch_start", - "0x0d": "chunk_biomes", - "0x0e": "clear_titles", - "0x0f": "tab_complete", - "0x10": "declare_commands", - "0x11": "close_window", - "0x12": "window_items", - "0x13": "craft_progress_bar", - "0x14": "set_slot", - "0x15": "cookie_request", - "0x16": "set_cooldown", - "0x17": "chat_suggestions", - "0x18": "custom_payload", - "0x19": "damage_event", - "0x1a": "debug_sample", - "0x1b": "hide_message", - "0x1c": "kick_disconnect", - "0x1d": "profileless_chat", - "0x1e": "entity_status", - "0x1f": "sync_entity_position", - "0x20": "explosion", - "0x21": "unload_chunk", - "0x22": "game_state_change", - "0x23": "open_horse_window", - "0x24": "hurt_animation", - "0x25": "initialize_world_border", - "0x26": "keep_alive", - "0x27": "map_chunk", - "0x28": "world_event", - "0x29": "world_particles", - "0x2a": "update_light", - "0x2b": "login", - "0x2c": "map", - "0x2d": "trade_list", - "0x2e": "rel_entity_move", - "0x2f": "entity_move_look", - "0x30": "move_minecart", - "0x31": "entity_look", - "0x32": "vehicle_move", - "0x33": "open_book", - "0x34": "open_window", - "0x35": "open_sign_entity", - "0x36": "ping", - "0x37": "ping_response", - "0x38": "craft_recipe_response", - "0x39": "abilities", - "0x3a": "player_chat", - "0x3b": "end_combat_event", - "0x3c": "enter_combat_event", - "0x3d": "death_combat_event", - "0x3e": "player_remove", - "0x3f": "player_info", - "0x40": "face_player", - "0x41": "position", - "0x42": "player_rotation", - "0x43": "recipe_book_add", - "0x44": "recipe_book_remove", - "0x45": "recipe_book_settings", - "0x46": "entity_destroy", - "0x47": "remove_entity_effect", - "0x48": "reset_score", - "0x49": "remove_resource_pack", - "0x4a": "add_resource_pack", - "0x4b": "respawn", - "0x4c": "entity_head_rotation", - "0x4d": "multi_block_change", - "0x4e": "select_advancement_tab", - "0x4f": "server_data", - "0x50": "action_bar", - "0x51": "world_border_center", - "0x52": "world_border_lerp_size", - "0x53": "world_border_size", - "0x54": "world_border_warning_delay", - "0x55": "world_border_warning_reach", - "0x56": "camera", - "0x57": "update_view_position", - "0x58": "update_view_distance", - "0x59": "set_cursor_item", - "0x5a": "spawn_position", - "0x5b": "scoreboard_display_objective", - "0x5c": "entity_metadata", - "0x5d": "attach_entity", - "0x5e": "entity_velocity", - "0x5f": "entity_equipment", - "0x60": "experience", - "0x61": "update_health", - "0x62": "held_item_slot", - "0x63": "scoreboard_objective", - "0x64": "set_passengers", - "0x65": "set_player_inventory", - "0x66": "teams", - "0x67": "scoreboard_score", - "0x68": "simulation_distance", - "0x69": "set_title_subtitle", - "0x6a": "update_time", - "0x6b": "set_title_text", - "0x6c": "set_title_time", - "0x6d": "entity_sound_effect", - "0x6e": "sound_effect", - "0x6f": "start_configuration", - "0x70": "stop_sound", - "0x71": "store_cookie", - "0x72": "system_chat", - "0x73": "playerlist_header", - "0x74": "nbt_query_response", - "0x75": "collect", - "0x76": "entity_teleport", - "0x77": "test_instance_block_status", - "0x78": "set_ticking_state", - "0x79": "step_tick", - "0x7a": "transfer", - "0x7b": "advancements", - "0x7c": "entity_update_attributes", - "0x7d": "entity_effect", - "0x7e": "declare_recipes", - "0x7f": "tags", - "0x80": "set_projectile_power", - "0x81": "custom_report_details", - "0x82": "server_links", - "0x83": "tracked_waypoint", - "0x84": "clear_dialog", - "0x85": "show_dialog" - } + "name": "x", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_world_border_lerp_size": [ + "container", + [ + { + "name": "oldDiameter", + "type": "f64" + }, + { + "name": "newDiameter", + "type": "f64" + }, + { + "name": "speed", + "type": "varint" + } + ] + ], + "packet_world_border_size": [ + "container", + [ + { + "name": "diameter", + "type": "f64" + } + ] + ], + "packet_world_border_warning_delay": [ + "container", + [ + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_world_border_warning_reach": [ + "container", + [ + { + "name": "warningBlocks", + "type": "varint" + } + ] + ], + "packet_world_event": [ + "container", + [ + { + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" + } + ] + ], + "packet_world_particles": [ + "container", + [ + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "alwaysShow", + "type": "bool" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "velocityOffset", + "type": "f32" + }, + { + "name": "amount", + "type": "i32" + }, + { + "name": "particle", + "type": "Particle" + } + ] + ] + } + }, + "toServer": { + "types": { + "MovementFlags": [ + "bitflags", + { + "flags": [ + "onGround", + "hasHorizontalCollision" + ], + "type": "u8" + } + ], + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "select_bundle_item", + "0x03": "set_difficulty", + "0x04": "change_gamemode", + "0x05": "message_acknowledgement", + "0x06": "chat_command", + "0x07": "chat_command_signed", + "0x08": "chat_message", + "0x09": "chat_session_update", + "0x0a": "chunk_batch_received", + "0x0b": "client_command", + "0x0c": "tick_end", + "0x0d": "settings", + "0x0e": "tab_complete", + "0x0f": "configuration_acknowledged", + "0x10": "enchant_item", + "0x11": "window_click", + "0x12": "close_window", + "0x13": "set_slot_state", + "0x14": "cookie_response", + "0x15": "custom_payload", + "0x16": "debug_sample_subscription", + "0x17": "edit_book", + "0x18": "query_entity_nbt", + "0x19": "use_entity", + "0x1a": "generate_structure", + "0x1b": "keep_alive", + "0x1c": "lock_difficulty", + "0x1d": "position", + "0x1e": "position_look", + "0x1f": "look", + "0x20": "flying", + "0x21": "vehicle_move", + "0x22": "steer_boat", + "0x23": "pick_item_from_block", + "0x24": "pick_item_from_entity", + "0x25": "ping_request", + "0x26": "craft_recipe_request", + "0x27": "abilities", + "0x28": "block_dig", + "0x29": "entity_action", + "0x2a": "player_input", + "0x2b": "player_loaded", + "0x2c": "pong", + "0x2d": "recipe_book", + "0x2e": "displayed_recipe", + "0x2f": "name_item", + "0x30": "resource_pack_receive", + "0x31": "advancement_tab", + "0x32": "select_trade", + "0x33": "set_beacon_effect", + "0x34": "held_item_slot", + "0x35": "update_command_block", + "0x36": "update_command_block_minecart", + "0x37": "set_creative_slot", + "0x38": "update_jigsaw_block", + "0x39": "update_structure_block", + "0x3a": "set_test_block", + "0x3b": "update_sign", + "0x3c": "arm_animation", + "0x3d": "spectate", + "0x3e": "test_instance_block_action", + "0x3f": "block_place", + "0x40": "use_item", + "0x41": "custom_click_action" + }, + "type": "varint" } ] }, @@ -8693,205 +8934,180 @@ "name": "params", "type": [ "switch", - { - "compareTo": "name", - "fields": { - "bundle_delimiter": "void", - "spawn_entity": "packet_spawn_entity", - "animation": "packet_animation", - "statistics": "packet_statistics", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "chunk_batch_finished": "packet_chunk_batch_finished", - "chunk_batch_start": "packet_chunk_batch_start", - "chunk_biomes": "packet_chunk_biomes", - "clear_titles": "packet_clear_titles", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "close_window": "packet_close_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "cookie_request": "packet_common_cookie_request", - "set_cooldown": "packet_set_cooldown", - "chat_suggestions": "packet_chat_suggestions", - "custom_payload": "packet_custom_payload", - "damage_event": "packet_damage_event", - "debug_sample": "packet_debug_sample", - "hide_message": "packet_hide_message", - "kick_disconnect": "packet_kick_disconnect", - "profileless_chat": "packet_profileless_chat", - "entity_status": "packet_entity_status", - "sync_entity_position": "packet_sync_entity_position", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "hurt_animation": "packet_hurt_animation", - "initialize_world_border": "packet_initialize_world_border", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "move_minecart": "packet_move_minecart", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_window": "packet_open_window", - "open_sign_entity": "packet_open_sign_entity", - "ping": "packet_ping", - "ping_response": "packet_ping_response", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "player_chat": "packet_player_chat", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_remove": "packet_player_remove", - "player_info": "packet_player_info", - "face_player": "packet_face_player", - "position": "packet_position", - "player_rotation": "packet_player_rotation", - "recipe_book_add": "packet_recipe_book_add", - "recipe_book_remove": "packet_recipe_book_remove", - "recipe_book_settings": "packet_recipe_book_settings", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "reset_score": "packet_reset_score", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "respawn": "packet_respawn", - "entity_head_rotation": "packet_entity_head_rotation", - "multi_block_change": "packet_multi_block_change", - "select_advancement_tab": "packet_select_advancement_tab", - "server_data": "packet_server_data", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "camera": "packet_camera", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "set_cursor_item": "packet_set_cursor_item", - "held_item_slot": "packet_held_item_slot", - "spawn_position": "packet_spawn_position", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "set_player_inventory": "packet_set_player_inventory", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "set_title_subtitle": "packet_set_title_subtitle", - "update_time": "packet_update_time", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time", - "entity_sound_effect": "packet_entity_sound_effect", - "sound_effect": "packet_sound_effect", - "start_configuration": "packet_start_configuration", - "stop_sound": "packet_stop_sound", - "store_cookie": "packet_common_store_cookie", - "system_chat": "packet_system_chat", - "playerlist_header": "packet_playerlist_header", - "nbt_query_response": "packet_nbt_query_response", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "test_instance_block_status": "packet_test_instance_block_status", - "set_ticking_state": "packet_set_ticking_state", - "step_tick": "packet_step_tick", - "transfer": "packet_common_transfer", - "advancements": "packet_advancements", - "entity_update_attributes": "packet_entity_update_attributes", - "entity_effect": "packet_entity_effect", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "set_projectile_power": "packet_set_projectile_power", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links", - "tracked_waypoint": "packet_tracked_waypoint", - "clear_dialog": "packet_common_clear_dialog", - "show_dialog": "packet_show_dialog" + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "change_gamemode": "packet_change_gamemode", + "chat_command": "packet_chat_command", + "chat_command_signed": "packet_chat_command_signed", + "chat_message": "packet_chat_message", + "chat_session_update": "packet_chat_session_update", + "chunk_batch_received": "packet_chunk_batch_received", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "configuration_acknowledged": "packet_configuration_acknowledged", + "cookie_response": "packet_common_cookie_response", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_click_action": "packet_common_custom_click_action", + "custom_payload": "packet_custom_payload", + "debug_sample_subscription": "packet_debug_sample_subscription", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "message_acknowledgement": "packet_message_acknowledgement", + "name_item": "packet_name_item", + "pick_item_from_block": "packet_pick_item_from_block", + "pick_item_from_entity": "packet_pick_item_from_entity", + "ping_request": "packet_ping_request", + "player_input": "packet_player_input", + "player_loaded": "packet_player_loaded", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_bundle_item": "packet_select_bundle_item", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "set_slot_state": "packet_set_slot_state", + "set_test_block": "packet_set_test_block", + "settings": "packet_common_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "test_instance_block_action": "packet_test_instance_block_action", + "tick_end": "packet_tick_end", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_select_bundle_item": [ + "packet_arm_animation": [ "container", [ { - "name": "slotId", + "name": "hand", + "type": "varint" + } + ] + ], + "packet_block_dig": [ + "container", + [ + { + "name": "status", "type": "varint" }, { - "name": "selectedItemIndex", + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" + }, + { + "name": "sequence", "type": "varint" } ] ], - "packet_set_difficulty": [ + "packet_block_place": [ "container", [ { - "name": "newDifficulty", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "peaceful", - "1": "easy", - "2": "normal", - "3": "hard" - } - } - ] + "name": "hand", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "varint" + }, + { + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" + }, + { + "name": "worldBorderHit", + "type": "bool" + }, + { + "name": "sequence", + "type": "varint" } ] ], @@ -8903,27 +9119,18 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "survival", "1": "creative", "2": "adventure", "3": "spectator" - } + }, + "type": "varint" } ] } ] ], - "packet_message_acknowledgement": [ - "container", - [ - { - "name": "count", - "type": "varint" - } - ] - ], "packet_chat_command": [ "container", [ @@ -9048,125 +9255,34 @@ "type": "UUID" }, { - "name": "expireTime", - "type": "i64" - }, - { - "name": "publicKey", - "type": "ByteArray" - }, - { - "name": "signature", - "type": "ByteArray" - } - ] - ], - "packet_chunk_batch_received": [ - "container", - [ - { - "name": "chunksPerTick", - "type": "f32" - } - ] - ], - "packet_client_command": [ - "container", - [ - { - "name": "actionId", - "type": "varint" - } - ] - ], - "packet_tick_end": [ - "container", - [] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "text", - "type": "string" - } - ] - ], - "packet_configuration_acknowledged": [ - "container", - [] - ], - "packet_enchant_item": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "enchantment", - "type": "varint" - } - ] - ], - "packet_window_click": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" + "name": "expireTime", + "type": "i64" }, { - "name": "mouseButton", - "type": "i8" + "name": "publicKey", + "type": "ByteArray" }, { - "name": "mode", - "type": "varint" - }, + "name": "signature", + "type": "ByteArray" + } + ] + ], + "packet_chunk_batch_received": [ + "container", + [ { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": [ - "option", - "HashedSlot" - ] - } - ] - ] - } - ] - }, + "name": "chunksPerTick", + "type": "f32" + } + ] + ], + "packet_client_command": [ + "container", + [ { - "name": "cursorItem", - "type": [ - "option", - "HashedSlot" - ] + "name": "actionId", + "type": "varint" } ] ], @@ -9179,19 +9295,23 @@ } ] ], - "packet_set_slot_state": [ + "packet_configuration_acknowledged": [ + "container", + [] + ], + "packet_craft_recipe_request": [ "container", [ { - "name": "slot_id", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "window_id", - "type": "ContainerID" + "name": "recipeId", + "type": "varint" }, { - "name": "state", + "name": "makeAll", "type": "bool" } ] @@ -9218,6 +9338,15 @@ } ] ], + "packet_displayed_recipe": [ + "container", + [ + { + "name": "recipeId", + "type": "varint" + } + ] + ], "packet_edit_book": [ "container", [ @@ -9244,134 +9373,209 @@ } ] ], - "packet_query_entity_nbt": [ + "packet_enchant_item": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "entityId", + "name": "enchantment", "type": "varint" } ] ], - "packet_use_entity": [ + "packet_entity_action": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "entityId", "type": "varint" }, { - "name": "x", + "name": "actionId", "type": [ - "switch", + "mapper", { - "compareTo": "mouse", - "fields": { - "2": "f32" + "mappings": { + "0": "leave_bed", + "1": "start_sprinting", + "2": "stop_sprinting", + "3": "start_horse_jump", + "4": "stop_horse_jump", + "5": "open_vehicle_inventory", + "6": "start_elytra_flying" }, - "default": "void" + "type": "varint" } ] }, { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "flags", + "type": "MovementFlags" + } + ] + ], + "packet_generate_structure": [ + "container", + [ + { + "name": "location", + "type": "position" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "levels", + "type": "varint" }, { - "name": "sneaking", + "name": "keepJigsaws", "type": "bool" } ] ], - "packet_generate_structure": [ + "packet_held_item_slot": [ "container", [ { - "name": "location", + "name": "slotId", + "type": "i16" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_lock_difficulty": [ + "container", + [ + { + "name": "locked", + "type": "bool" + } + ] + ], + "packet_look": [ + "container", + [ + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "flags", + "type": "MovementFlags" + } + ] + ], + "packet_message_acknowledgement": [ + "container", + [ + { + "name": "count", + "type": "varint" + } + ] + ], + "packet_name_item": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item_from_block": [ + "container", + [ + { + "name": "position", "type": "position" }, { - "name": "levels", + "name": "includeData", + "type": "bool" + } + ] + ], + "packet_pick_item_from_entity": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "keepJigsaws", + "name": "includeData", "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_ping_request": [ + "container", + [ + { + "name": "id", + "type": "i64" + } + ] + ], + "packet_player_input": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "inputs", + "type": [ + "bitflags", + { + "flags": [ + "forward", + "backward", + "left", + "right", + "jump", + "shift", + "sprint" + ], + "type": "u8" + } + ] } ] ], - "packet_lock_difficulty": [ + "packet_player_loaded": [ + "container", + [] + ], + "packet_pong": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "id", + "type": "i32" } ] ], - "MovementFlags": [ - "bitflags", - { - "type": "u8", - "flags": [ - "onGround", - "hasHorizontalCollision" - ] - } - ], "packet_position": [ "container", [ @@ -9422,329 +9626,268 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "flags", - "type": "MovementFlags" - } - ] - ], - "packet_flying": [ - "container", - [ - { - "name": "flags", - "type": "MovementFlags" + "name": "location", + "type": "position" } ] ], - "packet_vehicle_move": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_recipe_book": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "bookId", + "type": "varint" }, { - "name": "rightPaddle", + "name": "bookOpen", "type": "bool" - } - ] - ], - "packet_pick_item_from_block": [ - "container", - [ - { - "name": "position", - "type": "position" }, { - "name": "includeData", + "name": "filterActive", "type": "bool" } ] ], - "packet_pick_item_from_entity": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "uuid", + "type": "UUID" }, { - "name": "includeData", - "type": "bool" - } - ] - ], - "packet_ping_request": [ - "container", - [ - { - "name": "id", - "type": "i64" + "name": "result", + "type": "varint" } ] ], - "packet_craft_recipe_request": [ + "packet_select_bundle_item": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "recipeId", + "name": "slotId", "type": "varint" }, { - "name": "makeAll", - "type": "bool" + "name": "selectedItemIndex", + "type": "varint" } ] ], - "packet_abilities": [ + "packet_select_trade": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "slot", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "primary_effect", + "type": [ + "option", + "varint" + ] }, { - "name": "sequence", - "type": "varint" + "name": "secondary_effect", + "type": [ + "option", + "varint" + ] } ] ], - "packet_entity_action": [ + "packet_set_creative_slot": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "leave_bed", - "1": "start_sprinting", - "2": "stop_sprinting", - "3": "start_horse_jump", - "4": "stop_horse_jump", - "5": "open_vehicle_inventory", - "6": "start_elytra_flying" - } - } - ] + "name": "slot", + "type": "i16" }, { - "name": "jumpBoost", - "type": "varint" + "name": "item", + "type": "UntrustedSlot" } ] ], - "packet_player_input": [ + "packet_set_difficulty": [ "container", [ { - "name": "inputs", + "name": "newDifficulty", "type": [ - "bitflags", + "mapper", { - "type": "u8", - "flags": [ - "forward", - "backward", - "left", - "right", - "jump", - "shift", - "sprint" - ] + "mappings": { + "0": "peaceful", + "1": "easy", + "2": "normal", + "3": "hard" + }, + "type": "varint" } ] } ] ], - "packet_player_loaded": [ - "container", - [] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_recipe_book": [ + "packet_set_slot_state": [ "container", [ { - "name": "bookId", + "name": "slot_id", "type": "varint" }, { - "name": "bookOpen", - "type": "bool" + "name": "window_id", + "type": "ContainerID" }, { - "name": "filterActive", + "name": "state", "type": "bool" } ] ], - "packet_displayed_recipe": [ + "packet_set_test_block": [ "container", [ { - "name": "recipeId", + "name": "position", + "type": "position" + }, + { + "name": "mode", "type": "varint" + }, + { + "name": "message", + "type": "string" } ] ], - "packet_name_item": [ + "packet_spectate": [ "container", [ { - "name": "name", - "type": "string" + "name": "target", + "type": "UUID" } ] ], - "packet_resource_pack_receive": [ + "packet_steer_boat": [ "container", [ { - "name": "uuid", - "type": "UUID" + "name": "leftPaddle", + "type": "bool" }, { - "name": "result", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], - "packet_advancement_tab": [ + "packet_tab_complete": [ "container", [ { - "name": "action", + "name": "transactionId", "type": "varint" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "text", + "type": "string" } ] ], - "packet_select_trade": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slot", + "name": "teleportId", "type": "varint" } ] ], - "packet_set_beacon_effect": [ + "packet_test_instance_block_action": [ "container", [ { - "name": "primary_effect", - "type": [ - "option", - "varint" - ] + "name": "pos", + "type": "position" }, { - "name": "secondary_effect", + "name": "action", + "type": "varint" + }, + { + "name": "data", "type": [ - "option", - "varint" + "container", + [ + { + "name": "test", + "type": [ + "option", + "string" + ] + }, + { + "name": "size", + "type": "vec3i" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "ignoreEntities", + "type": "bool" + }, + { + "name": "status", + "type": "varint" + }, + { + "name": "errorMessage", + "type": [ + "option", + "anonymousNbt" + ] + } + ] ] } ] ], - "packet_held_item_slot": [ + "packet_tick_end": [ "container", - [ - { - "name": "slotId", - "type": "i16" - } - ] + [] ], "packet_update_command_block": [ "container", @@ -9784,19 +9927,6 @@ } ] ], - "packet_set_creative_slot": [ - "container", - [ - { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "UntrustedSlot" - } - ] - ], "packet_update_jigsaw_block": [ "container", [ @@ -9834,6 +9964,35 @@ } ] ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], "packet_update_structure_block": [ "container", [ @@ -9902,134 +10061,89 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ignore_entities", "1": "show_air", "2": "show_bounding_box", "3": "strict" - } + }, + "type": "u8" } ] } ] ], - "packet_set_test_block": [ + "packet_use_entity": [ "container", [ { - "name": "position", - "type": "position" - }, - { - "name": "mode", + "name": "target", "type": "varint" }, { - "name": "message", - "type": "string" - } - ] - ], - "packet_update_sign": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "isFrontText", - "type": "bool" - }, - { - "name": "text1", - "type": "string" - }, - { - "name": "text2", - "type": "string" - }, - { - "name": "text3", - "type": "string" - }, - { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ - { - "name": "hand", + "name": "mouse", "type": "varint" - } - ] - ], - "packet_spectate": [ - "container", - [ - { - "name": "target", - "type": "UUID" - } - ] - ], - "packet_test_instance_block_action": [ - "container", - [ - { - "name": "pos", - "type": "position" }, { - "name": "action", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "data", + "name": "y", "type": [ - "container", - [ - { - "name": "test", - "type": [ - "option", - "string" - ] - }, - { - "name": "size", - "type": "vec3i" - }, - { - "name": "rotation", - "type": "varint" - }, - { - "name": "ignoreEntities", - "type": "bool" - }, - { - "name": "status", - "type": "varint" - }, - { - "name": "errorMessage", - "type": [ - "option", - "anonymousNbt" - ] + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" } - ] + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } ] + }, + { + "name": "sneaking", + "type": "bool" } ] ], - "packet_block_place": [ + "packet_use_item": [ "container", [ { @@ -10037,211 +10151,97 @@ "type": "varint" }, { - "name": "location", - "type": "position" + "name": "sequence", + "type": "varint" }, { - "name": "direction", - "type": "varint" + "name": "rotation", + "type": "vec2f" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": "f64" }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": "f64" }, { - "name": "cursorZ", + "name": "yaw", "type": "f32" }, { - "name": "insideBlock", - "type": "bool" + "name": "pitch", + "type": "f32" }, { - "name": "worldBorderHit", + "name": "onGround", "type": "bool" - }, - { - "name": "sequence", - "type": "varint" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "sequence", + "name": "stateId", "type": "varint" }, { - "name": "rotation", - "type": "vec2f" - } - ] - ], - "packet": [ - "container", - [ + "name": "slot", + "type": "i16" + }, { - "name": "name", + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "select_bundle_item", - "0x03": "set_difficulty", - "0x04": "change_gamemode", - "0x05": "message_acknowledgement", - "0x06": "chat_command", - "0x07": "chat_command_signed", - "0x08": "chat_message", - "0x09": "chat_session_update", - "0x0a": "chunk_batch_received", - "0x0b": "client_command", - "0x0c": "tick_end", - "0x0d": "settings", - "0x0e": "tab_complete", - "0x0f": "configuration_acknowledged", - "0x10": "enchant_item", - "0x11": "window_click", - "0x12": "close_window", - "0x13": "set_slot_state", - "0x14": "cookie_response", - "0x15": "custom_payload", - "0x16": "debug_sample_subscription", - "0x17": "edit_book", - "0x18": "query_entity_nbt", - "0x19": "use_entity", - "0x1a": "generate_structure", - "0x1b": "keep_alive", - "0x1c": "lock_difficulty", - "0x1d": "position", - "0x1e": "position_look", - "0x1f": "look", - "0x20": "flying", - "0x21": "vehicle_move", - "0x22": "steer_boat", - "0x23": "pick_item_from_block", - "0x24": "pick_item_from_entity", - "0x25": "ping_request", - "0x26": "craft_recipe_request", - "0x27": "abilities", - "0x28": "block_dig", - "0x29": "entity_action", - "0x2a": "player_input", - "0x2b": "player_loaded", - "0x2c": "pong", - "0x2d": "recipe_book", - "0x2e": "displayed_recipe", - "0x2f": "name_item", - "0x30": "resource_pack_receive", - "0x31": "advancement_tab", - "0x32": "select_trade", - "0x33": "set_beacon_effect", - "0x34": "held_item_slot", - "0x35": "update_command_block", - "0x36": "update_command_block_minecart", - "0x37": "set_creative_slot", - "0x38": "update_jigsaw_block", - "0x39": "update_structure_block", - "0x3a": "set_test_block", - "0x3b": "update_sign", - "0x3c": "arm_animation", - "0x3d": "spectate", - "0x3e": "test_instance_block_action", - "0x3f": "block_place", - "0x40": "use_item", - "0x41": "custom_click_action" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": [ + "option", + "HashedSlot" + ] + } + ] + ] } ] }, { - "name": "params", + "name": "cursorItem", "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "select_bundle_item": "packet_select_bundle_item", - "set_difficulty": "packet_set_difficulty", - "change_gamemode": "packet_change_gamemode", - "message_acknowledgement": "packet_message_acknowledgement", - "chat_command": "packet_chat_command", - "chat_command_signed": "packet_chat_command_signed", - "chat_message": "packet_chat_message", - "chat_session_update": "packet_chat_session_update", - "chunk_batch_received": "packet_chunk_batch_received", - "client_command": "packet_client_command", - "tick_end": "packet_tick_end", - "settings": "packet_common_settings", - "tab_complete": "packet_tab_complete", - "configuration_acknowledged": "packet_configuration_acknowledged", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "set_slot_state": "packet_set_slot_state", - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "debug_sample_subscription": "packet_debug_sample_subscription", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "pick_item_from_block": "packet_pick_item_from_block", - "pick_item_from_entity": "packet_pick_item_from_entity", - "ping_request": "packet_ping_request", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "player_input": "packet_player_input", - "player_loaded": "packet_player_loaded", - "pong": "packet_pong", - "recipe_book": "packet_recipe_book", - "displayed_recipe": "packet_displayed_recipe", - "name_item": "packet_name_item", - "resource_pack_receive": "packet_resource_pack_receive", - "advancement_tab": "packet_advancement_tab", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "held_item_slot": "packet_held_item_slot", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_structure_block": "packet_update_structure_block", - "set_test_block": "packet_set_test_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "test_instance_block_action": "packet_test_instance_block_action", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "custom_click_action": "packet_common_custom_click_action" - } - } + "option", + "HashedSlot" ] } ] diff --git a/data/pc/1.21.8/protocol.json b/data/pc/1.21.8/protocol.json index 17fd75d0d..a897ef857 100644 --- a/data/pc/1.21.8/protocol.json +++ b/data/pc/1.21.8/protocol.json @@ -1,147 +1,206 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "anonymousNbt": "native", - "anonOptionalNbt": "native", - "registryEntryHolder": "native", - "registryEntryHolderSet": "native", - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec2f": [ + "ArmorTrimMaterial": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetBase", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "overrideArmorAssets", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + }, + { + "name": "description", + "type": "anonymousNbt" } ] ], - "vec3f": [ + "ArmorTrimPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "description", + "type": "anonymousNbt" }, { - "name": "z", - "type": "f32" + "name": "decal", + "type": "bool" } ] ], - "vec4f": [ + "BannerPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" - }, + "name": "translationKey", + "type": "string" + } + ] + ], + "BannerPatternLayer": [ + "container", + [ { - "name": "z", - "type": "f32" + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "BannerPattern" + } + } + ] }, { - "name": "w", - "type": "f32" + "name": "colorId", + "type": "varint" } ] ], - "vec3f64": [ + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "ContainerID": "varint", + "DataComponentMatchers": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "exactMatchers", + "type": "ExactComponentMatcher" }, { - "name": "z", - "type": "f64" + "name": "partialMatchers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "vec3i": [ + "EntityMetadataPaintingVariant": [ "container", [ { - "name": "x", - "type": "varint" + "name": "width", + "type": "i32" }, { - "name": "y", - "type": "varint" + "name": "height", + "type": "i32" }, { - "name": "z", - "type": "varint" + "name": "assetId", + "type": "string" + }, + { + "name": "title", + "type": [ + "option", + "anonymousNbt" + ] + }, + { + "name": "author", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "vec3i16": [ + "ExactComponentMatcher": [ + "array", + { + "countType": "varint", + "type": "SlotComponent" + } + ], + "HashedSlot": [ "container", [ { - "name": "x", - "type": "i16" + "name": "itemId", + "type": "varint" }, { - "name": "y", - "type": "i16" + "name": "itemCount", + "type": "varint" }, { - "name": "z", - "type": "i16" + "name": "components", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + }, + { + "name": "hash", + "type": "i32" + } + ] + ] + } + ] + }, + { + "name": "removeComponents", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] } ] ], @@ -158,1601 +217,204 @@ } } ], - "ContainerID": "varint", - "SlotComponentType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "custom_data", - "1": "max_stack_size", - "2": "max_damage", - "3": "damage", - "4": "unbreakable", - "5": "custom_name", - "6": "item_name", - "7": "item_model", - "8": "lore", - "9": "rarity", - "10": "enchantments", - "11": "can_place_on", - "12": "can_break", - "13": "attribute_modifiers", - "14": "custom_model_data", - "15": "tooltip_display", - "16": "repair_cost", - "17": "creative_slot_lock", - "18": "enchantment_glint_override", - "19": "intangible_projectile", - "20": "food", - "21": "consumable", - "22": "use_remainder", - "23": "use_cooldown", - "24": "damage_resistant", - "25": "tool", - "26": "weapon", - "27": "enchantable", - "28": "equippable", - "29": "repairable", - "30": "glider", - "31": "tooltip_style", - "32": "death_protection", - "33": "blocks_attacks", - "34": "stored_enchantments", - "35": "dyed_color", - "36": "map_color", - "37": "map_id", - "38": "map_decorations", - "39": "map_post_processing", - "40": "charged_projectiles", - "41": "bundle_contents", - "42": "potion_contents", - "43": "potion_duration_scale", - "44": "suspicious_stew_effects", - "45": "writable_book_content", - "46": "written_book_content", - "47": "trim", - "48": "debug_stick_state", - "49": "entity_data", - "50": "bucket_entity_data", - "51": "block_entity_data", - "52": "instrument", - "53": "provides_trim_material", - "54": "ominous_bottle_amplifier", - "55": "jukebox_playable", - "56": "provides_banner_patterns", - "57": "recipes", - "58": "lodestone_tracker", - "59": "firework_explosion", - "60": "fireworks", - "61": "profile", - "62": "note_block_sound", - "63": "banner_patterns", - "64": "base_color", - "65": "pot_decorations", - "66": "container", - "67": "block_state", - "68": "bees", - "69": "lock", - "70": "container_loot", - "71": "break_sound", - "72": "villager/variant", - "73": "wolf/variant", - "74": "wolf/sound_variant", - "75": "wolf/collar", - "76": "fox/variant", - "77": "salmon/size", - "78": "parrot/variant", - "79": "tropical_fish/pattern", - "80": "tropical_fish/base_color", - "81": "tropical_fish/pattern_color", - "82": "mooshroom/variant", - "83": "rabbit/variant", - "84": "pig/variant", - "85": "cow/variant", - "86": "chicken/variant", - "87": "frog/variant", - "88": "horse/variant", - "89": "painting/variant", - "90": "llama/variant", - "91": "axolotl/variant", - "92": "cat/variant", - "93": "cat/collar", - "94": "sheep/color", - "95": "shulker/color" + "InstrumentData": [ + "container", + [ + { + "name": "soundEvent", + "type": "ItemSoundHolder" + }, + { + "name": "useDuration", + "type": "f32" + }, + { + "name": "range", + "type": "f32" + }, + { + "name": "description", + "type": "anonymousNbt" } - } + ] ], - "SlotComponent": [ + "ItemBlockPredicate": [ "container", [ { - "name": "type", - "type": "SlotComponentType" + "name": "blockSet", + "type": [ + "option", + [ + "registryEntryHolderSet", + { + "base": { + "name": "name", + "type": "string" + }, + "otherwise": { + "name": "blockIds", + "type": "varint" + } + } + ] + ] }, { - "name": "data", + "name": "properties", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": "ItemBlockProperty" + } + ] + ] + }, + { + "name": "nbt", + "type": "anonOptionalNbt" + }, + { + "name": "components", + "type": "DataComponentMatchers" + } + ] + ], + "ItemBlockProperty": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "isExactMatch", + "type": "bool" + }, + { + "name": "value", "type": [ "switch", { - "compareTo": "type", + "compareTo": "isExactMatch", "fields": { - "custom_data": "anonymousNbt", - "max_stack_size": "varint", - "max_damage": "varint", - "damage": "varint", - "unbreakable": "void", - "custom_name": "anonymousNbt", - "item_name": "anonymousNbt", - "item_model": "string", - "lore": [ - "array", - { - "countType": "varint", - "type": "anonymousNbt" - } - ], - "rarity": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "common", - "1": "uncommon", - "2": "rare", - "3": "epic" - } - } - ], - "enchantments": [ + "false": [ "container", [ { - "name": "enchantments", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "stored_enchantments": [ - "container", - [ + "name": "minValue", + "type": "string" + }, { - "name": "enchantments", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] - } - ] + "name": "maxValue", + "type": "string" } ] ], - "can_place_on": [ + "true": [ "container", [ { - "name": "predicates", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBlockPredicate" - } - ] + "name": "exactValue", + "type": "string" } ] - ], - "can_break": [ - "container", - [ - { - "name": "predicates", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBlockPredicate" - } - ] - } - ] - ], - "attribute_modifiers": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "typeId", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "operation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "add", - "1": "multiply_base", - "2": "multiply_total" - } - } - ] - }, - { - "name": "slot", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "any", - "1": "main_hand", - "2": "off_hand", - "3": "hand", - "4": "feet", - "5": "legs", - "6": "chest", - "7": "head", - "8": "armor", - "9": "body", - "10": "saddle" - } - } - ] - }, - { - "name": "display", - "type": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "default", - "1": "hidden", - "2": "override" - } - } - ] - }, - { - "name": "component", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "override": "anonymousNbt" - } - } - ] - } - ] - ] - } - ] - ] - } - ], - "custom_model_data": [ + ] + } + } + ] + } + ] + ], + "ItemBookPage": [ + "container", + [ + { + "name": "content", + "type": "string" + }, + { + "name": "filteredContent", + "type": [ + "option", + "string" + ] + } + ] + ], + "ItemConsumeEffect": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "apply_effects", + "1": "remove_effects", + "2": "clear_all_effects", + "3": "teleport_randomly", + "4": "play_sound" + }, + "type": "varint" + } + ] + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "apply_effects": [ "container", [ { - "name": "floats", - "type": [ - "array", - { - "countType": "varint", - "type": "f32" - } - ] - }, - { - "name": "flags", - "type": [ - "array", - { - "countType": "varint", - "type": "bool" - } - ] - }, - { - "name": "strings", + "name": "effects", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "ItemPotionEffect" } ] }, { - "name": "colors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] + "name": "probability", + "type": "f32" } ] ], - "tooltip_display": [ + "clear_all_effects": "void", + "play_sound": [ "container", [ { - "name": "hideTooltip", - "type": "bool" - }, - { - "name": "hiddenComponents", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "sound", + "type": "ItemSoundHolder" } ] ], - "repair_cost": "varint", - "creative_slot_lock": "void", - "enchantment_glint_override": "bool", - "intangible_projectile": "void", - "blocks_attacks": [ + "remove_effects": [ "container", [ { - "name": "blockDelaySeconds", - "type": "f32" - }, + "name": "effects", + "type": "IDSet" + } + ] + ], + "teleport_randomly": [ + "container", + [ { - "name": "disableCooldownScale", + "name": "diameter", "type": "f32" - }, - { - "name": "damageReductions", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalBlockingAngle", - "type": "f32" - }, - { - "name": "type", - "type": [ - "option", - "IDSet" - ] - }, - { - "name": "base", - "type": "f32" - }, - { - "name": "factor", - "type": "f32" - } - ] - ] - } - ] - }, - { - "name": "itemDamage", - "type": [ - "container", - [ - { - "name": "threshold", - "type": "f32" - }, - { - "name": "base", - "type": "f32" - }, - { - "name": "factor", - "type": "f32" - } - ] - ] - }, - { - "name": "bypassedBy", - "type": [ - "option", - "string" - ] - }, - { - "name": "blockSound", - "type": [ - "option", - "ItemSoundHolder" - ] - }, - { - "name": "disableSound", - "type": [ - "option", - "ItemSoundHolder" - ] - } - ] - ], - "food": [ - "container", - [ - { - "name": "nutrition", - "type": "varint" - }, - { - "name": "saturationModifier", - "type": "f32" - }, - { - "name": "canAlwaysEat", - "type": "bool" - } - ] - ], - "consumable": [ - "container", - [ - { - "name": "consume_seconds", - "type": "f32" - }, - { - "name": "animation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "none", - "1": "eat", - "2": "drink", - "3": "block", - "4": "bow", - "5": "spear", - "6": "crossbow", - "7": "spyglass", - "8": "toot_horn", - "9": "brush", - "10": "bundle" - } - } - ] - }, - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "makes_particles", - "type": "bool" - }, - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemConsumeEffect" - } - ] - } - ] - ], - "use_remainder": "Slot", - "use_cooldown": [ - "container", - [ - { - "name": "seconds", - "type": "f32" - }, - { - "name": "cooldownGroup", - "type": [ - "option", - "string" - ] - } - ] - ], - "damage_resistant": "string", - "tool": [ - "container", - [ - { - "name": "rules", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "blocks", - "type": "IDSet" - }, - { - "name": "speed", - "type": [ - "option", - "f32" - ] - }, - { - "name": "correctDropForBlocks", - "type": [ - "option", - "bool" - ] - } - ] - ] - } - ] - }, - { - "name": "defaultMiningSpeed", - "type": "f32" - }, - { - "name": "damagePerBlock", - "type": "varint" - }, - { - "name": "canDestroyBlocksInCreative", - "type": "bool" - } - ] - ], - "weapon": [ - "container", - [ - { - "name": "itemDamagePerAttack", - "type": "varint" - }, - { - "name": "disableBlockingForSeconds", - "type": "f32" - } - ] - ], - "enchantable": "varint", - "equippable": [ - "container", - [ - { - "name": "slot", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "main_hand", - "1": "off_hand", - "2": "feet", - "3": "legs", - "4": "chest", - "5": "head", - "6": "body", - "7": "saddle" - } - } - ] - }, - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "model", - "type": [ - "option", - "string" - ] - }, - { - "name": "cameraOverlay", - "type": [ - "option", - "string" - ] - }, - { - "name": "allowedEntities", - "type": [ - "option", - "IDSet" - ] - }, - { - "name": "dispensable", - "type": "bool" - }, - { - "name": "swappable", - "type": "bool" - }, - { - "name": "damageable", - "type": "bool" - }, - { - "name": "equipOnInteract", - "type": "bool" - }, - { - "name": "shearable", - "type": "bool" - }, - { - "name": "shearingSound", - "type": "ItemSoundHolder" - } - ] - ], - "repairable": [ - "container", - [ - { - "name": "items", - "type": "IDSet" - } - ] - ], - "glider": "void", - "tooltip_style": "string", - "death_protection": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemConsumeEffect" - } - ] - } - ] - ], - "dyed_color": "i32", - "map_color": "i32", - "map_id": "varint", - "map_decorations": "anonymousNbt", - "map_post_processing": "varint", - "potion_duration_scale": "f32", - "charged_projectiles": [ - "container", - [ - { - "name": "projectiles", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "bundle_contents": [ - "container", - [ - { - "name": "contents", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "potion_contents": [ - "container", - [ - { - "name": "potionId", - "type": [ - "option", - "varint" - ] - }, - { - "name": "customColor", - "type": [ - "option", - "i32" - ] - }, - { - "name": "customEffects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemPotionEffect" - } - ] - }, - { - "name": "customName", - "type": [ - "option", - "string" - ] - } - ] - ], - "suspicious_stew_effects": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "effect", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "writable_book_content": [ - "container", - [ - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBookPage" - } - ] - } - ] - ], - "written_book_content": [ - "container", - [ - { - "name": "rawTitle", - "type": "string" - }, - { - "name": "filteredTitle", - "type": [ - "option", - "string" - ] - }, - { - "name": "author", - "type": "string" - }, - { - "name": "generation", - "type": "varint" - }, - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemWrittenBookPage" - } - ] - }, - { - "name": "resolved", - "type": "bool" - } - ] - ], - "trim": [ - "container", - [ - { - "name": "material", - "type": [ - "registryEntryHolder", - { - "baseName": "materialId", - "otherwise": { - "name": "data", - "type": "ArmorTrimMaterial" - } - } - ] - }, - { - "name": "pattern", - "type": [ - "registryEntryHolder", - { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "ArmorTrimPattern" - } - } - ] - } - ] - ], - "debug_stick_state": "anonymousNbt", - "entity_data": "anonymousNbt", - "bucket_entity_data": "anonymousNbt", - "block_entity_data": "anonymousNbt", - "instrument": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "instrumentId", - "otherwise": { - "name": "data", - "type": "InstrumentData" - } - } - ], - "false": "string" - } - } - ] - } - ] - ], - "provides_trim_material": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "material", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "materialId", - "otherwise": { - "name": "data", - "type": "ArmorTrimMaterial" - } - } - ], - "false": "string" - } - } - ] - } - ] - ], - "ominous_bottle_amplifier": "varint", - "jukebox_playable": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "song", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "songId", - "otherwise": { - "name": "data", - "type": "JukeboxSongData" - } - } - ], - "false": "string" - } - } - ] - } - ] - ], - "provides_banner_patterns": "string", - "recipes": "anonymousNbt", - "lodestone_tracker": [ - "container", - [ - { - "name": "globalPosition", - "type": [ - "option", - [ - "container", - [ - { - "name": "dimension", - "type": "string" - }, - { - "name": "position", - "type": "position" - } - ] - ] - ] - }, - { - "name": "tracked", - "type": "bool" - } - ] - ], - "firework_explosion": "ItemFireworkExplosion", - "fireworks": [ - "container", - [ - { - "name": "flightDuration", - "type": "varint" - }, - { - "name": "explosions", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemFireworkExplosion" - } - ] - } - ] - ], - "profile": [ - "container", - [ - { - "name": "name", - "type": [ - "option", - "string" - ] - }, - { - "name": "uuid", - "type": [ - "option", - "UUID" - ] - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "note_block_sound": "string", - "banner_patterns": [ - "container", - [ - { - "name": "layers", - "type": [ - "array", - { - "countType": "varint", - "type": "BannerPatternLayer" - } - ] - } - ] - ], - "base_color": "varint", - "pot_decorations": [ - "container", - [ - { - "name": "decorations", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "container": [ - "container", - [ - { - "name": "contents", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "block_state": [ - "container", - [ - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] - } - ] - ], - "bees": [ - "container", - [ - { - "name": "bees", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "nbtData", - "type": "anonymousNbt" - }, - { - "name": "ticksInHive", - "type": "varint" - }, - { - "name": "minTicksInHive", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "lock": "anonymousNbt", - "container_loot": "anonymousNbt", - "break_sound": "ItemSoundHolder", - "villager/variant": "varint", - "wolf/variant": "varint", - "wolf/sound_variant": "varint", - "wolf/collar": "varint", - "fox/variant": "varint", - "salmon/size": "varint", - "parrot/variant": "varint", - "tropical_fish/pattern": "varint", - "tropical_fish/base_color": "varint", - "tropical_fish/pattern_color": "varint", - "mooshroom/variant": "varint", - "rabbit/variant": "varint", - "pig/variant": "varint", - "cow/variant": "varint", - "chicken/variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "string" - } - } - ], - "frog/variant": "varint", - "horse/variant": "varint", - "painting/variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "data", - "type": "EntityMetadataPaintingVariant" - } - } - ], - "llama/variant": "varint", - "axolotl/variant": "varint", - "cat/variant": "varint", - "cat/collar": "varint", - "sheep/color": "varint", - "shulker/color": "varint" - } - } - ] - } - ] - ], - "ItemSoundEvent": [ - "container", - [ - { - "name": "soundName", - "type": "string" - }, - { - "name": "fixedRange", - "type": [ - "option", - "f32" - ] - } - ] - ], - "ItemSoundHolder": [ - "registryEntryHolder", - { - "baseName": "soundId", - "otherwise": { - "name": "data", - "type": "ItemSoundEvent" - } - } - ], - "ItemFireworkExplosion": [ - "container", - [ - { - "name": "shape", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "small_ball", - "1": "large_ball", - "2": "star", - "3": "creeper", - "4": "burst" - } - } - ] - }, - { - "name": "colors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "fadeColors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "hasTrail", - "type": "bool" - }, - { - "name": "hasTwinkle", - "type": "bool" - } - ] - ], - "ItemEffectDetail": [ - "container", - [ - { - "name": "amplifier", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "ambient", - "type": "bool" - }, - { - "name": "showParticles", - "type": "bool" - }, - { - "name": "showIcon", - "type": "bool" - }, - { - "name": "hiddenEffect", - "type": [ - "option", - "ItemEffectDetail" - ] - } - ] - ], - "ItemPotionEffect": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "details", - "type": "ItemEffectDetail" - } - ] - ], - "ItemBlockProperty": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "isExactMatch", - "type": "bool" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "isExactMatch", - "fields": { - "true": [ - "container", - [ - { - "name": "exactValue", - "type": "string" - } - ] - ], - "false": [ - "container", - [ - { - "name": "minValue", - "type": "string" - }, - { - "name": "maxValue", - "type": "string" - } - ] - ] - } - } - ] - } - ] - ], - "ExactComponentMatcher": [ - "array", - { - "countType": "varint", - "type": "SlotComponent" - } - ], - "DataComponentMatchers": [ - "container", - [ - { - "name": "exactMatchers", - "type": "ExactComponentMatcher" - }, - { - "name": "partialMatchers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "ItemBlockPredicate": [ - "container", - [ - { - "name": "blockSet", - "type": [ - "option", - [ - "registryEntryHolderSet", - { - "base": { - "name": "name", - "type": "string" - }, - "otherwise": { - "name": "blockIds", - "type": "varint" - } - } - ] - ] - }, - { - "name": "properties", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": "ItemBlockProperty" - } - ] - ] - }, - { - "name": "nbt", - "type": "anonOptionalNbt" - }, - { - "name": "components", - "type": "DataComponentMatchers" - } - ] - ], - "ItemBookPage": [ - "container", - [ - { - "name": "content", - "type": "string" - }, - { - "name": "filteredContent", - "type": [ - "option", - "string" - ] - } - ] - ], - "ItemWrittenBookPage": [ - "container", - [ - { - "name": "content", - "type": "anonymousNbt" - }, - { - "name": "filteredContent", - "type": "anonOptionalNbt" - } - ] - ], - "ItemConsumeEffect": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "apply_effects", - "1": "remove_effects", - "2": "clear_all_effects", - "3": "teleport_randomly", - "4": "play_sound" - } - } - ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "apply_effects": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemPotionEffect" - } - ] - }, - { - "name": "probability", - "type": "f32" - } - ] - ], - "remove_effects": [ - "container", - [ - { - "name": "effects", - "type": "IDSet" - } - ] - ], - "clear_all_effects": "void", - "teleport_randomly": [ - "container", - [ - { - "name": "diameter", - "type": "f32" - } - ] - ], - "play_sound": [ - "container", - [ - { - "name": "sound", - "type": "ItemSoundHolder" } ] ] @@ -1762,331 +424,157 @@ } ] ], - "ArmorTrimMaterial": [ - "container", - [ - { - "name": "assetBase", - "type": "string" - }, - { - "name": "overrideArmorAssets", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] - }, - { - "name": "description", - "type": "anonymousNbt" - } - ] - ], - "ArmorTrimPattern": [ + "ItemEffectDetail": [ "container", [ { - "name": "assetId", - "type": "string" + "name": "amplifier", + "type": "varint" }, { - "name": "description", - "type": "anonymousNbt" + "name": "duration", + "type": "varint" }, { - "name": "decal", + "name": "ambient", "type": "bool" - } - ] - ], - "InstrumentData": [ - "container", - [ - { - "name": "soundEvent", - "type": "ItemSoundHolder" }, { - "name": "useDuration", - "type": "f32" + "name": "showParticles", + "type": "bool" }, { - "name": "range", - "type": "f32" + "name": "showIcon", + "type": "bool" }, { - "name": "description", - "type": "anonymousNbt" + "name": "hiddenEffect", + "type": [ + "option", + "ItemEffectDetail" + ] } ] ], - "JukeboxSongData": [ + "ItemFireworkExplosion": [ "container", [ { - "name": "soundEvent", - "type": "ItemSoundHolder" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "lengthInSeconds", - "type": "f32" + "name": "shape", + "type": [ + "mapper", + { + "mappings": { + "0": "small_ball", + "1": "large_ball", + "2": "star", + "3": "creeper", + "4": "burst" + }, + "type": "varint" + } + ] }, { - "name": "comparatorOutput", - "type": "varint" - } - ] - ], - "BannerPattern": [ - "container", - [ - { - "name": "assetId", - "type": "string" + "name": "colors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] }, { - "name": "translationKey", - "type": "string" - } - ] - ], - "BannerPatternLayer": [ - "container", - [ - { - "name": "pattern", + "name": "fadeColors", "type": [ - "registryEntryHolder", + "array", { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "BannerPattern" - } + "countType": "varint", + "type": "i32" } ] }, { - "name": "colorId", - "type": "varint" + "name": "hasTrail", + "type": "bool" + }, + { + "name": "hasTwinkle", + "type": "bool" } ] ], - "UntrustedSlotComponent": [ + "ItemPotionEffect": [ "container", [ { - "name": "type", - "type": "SlotComponentType" + "name": "id", + "type": "varint" }, { - "name": "data", - "type": "ByteArray" + "name": "details", + "type": "ItemEffectDetail" } ] ], - "UntrustedSlot": [ + "ItemSoundEvent": [ "container", [ { - "name": "itemCount", - "type": "varint" + "name": "soundName", + "type": "string" }, { - "anon": true, + "name": "fixedRange", "type": [ - "switch", - { - "compareTo": "itemCount", - "fields": { - "0": "void", - "false": "void" - }, - "default": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "removedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "UntrustedSlotComponent" - } - ] - }, - { - "name": "removeComponents", - "type": [ - "array", - { - "count": "removedComponentCount", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] - } - ] - } - ] - ] - } + "option", + "f32" ] } - ] + ] + ], + "ItemSoundHolder": [ + "registryEntryHolder", + { + "baseName": "soundId", + "otherwise": { + "name": "data", + "type": "ItemSoundEvent" + } + } ], - "Slot": [ + "ItemWrittenBookPage": [ "container", [ { - "name": "itemCount", - "type": "varint" + "name": "content", + "type": "anonymousNbt" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "itemCount", - "fields": { - "0": "void" - }, - "default": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "removedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "SlotComponent" - } - ] - }, - { - "name": "removeComponents", - "type": [ - "array", - { - "count": "removedComponentCount", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] - } - ] - } - ] - ] - } - ] + "name": "filteredContent", + "type": "anonOptionalNbt" } ] ], - "HashedSlot": [ + "JukeboxSongData": [ "container", [ { - "name": "itemId", - "type": "varint" + "name": "soundEvent", + "type": "ItemSoundHolder" }, { - "name": "itemCount", - "type": "varint" + "name": "description", + "type": "anonymousNbt" }, { - "name": "components", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - }, - { - "name": "hash", - "type": "i32" - } - ] - ] - } - ] + "name": "lengthInSeconds", + "type": "f32" }, { - "name": "removeComponents", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] - } - ] + "name": "comparatorOutput", + "type": "varint" } ] ], @@ -2098,7 +586,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "angry_villager", "1": "block", @@ -2214,9 +701,239 @@ "111": "trial_omen", "112": "block_crumble", "113": "firefly" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "block": "varint", + "block_crumble": "varint", + "block_marker": "varint", + "dust": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "dust_color_transition": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "dust_pillar": "varint", + "entity_effect": "i32", + "falling_dust": "varint", + "firefly": "void", + "item": "Slot", + "sculk_charge": "f32", + "shriek": "varint", + "tinted_leaves": "i32", + "trail": [ + "container", + [ + { + "name": "target", + "type": "vec3f64" + }, + { + "name": "color", + "type": "u8" + } + ] + ], + "vibration": [ + "container", + [ + { + "name": "positionType", + "type": [ + "mapper", + { + "mappings": { + "0": "block", + "1": "entity" + }, + "type": "varint" + } + ] + }, + { + "name": "position", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "block": "position", + "entity": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "entityEyeHeight", + "type": "f32" + } + ] + ] + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] + ] + } + } + ] + } + ] + ], + "ServerLinkType": [ + "mapper", + { + "mappings": { + "0": "bug_report", + "1": "community_guidelines", + "2": "support", + "3": "status", + "4": "feedback", + "5": "community", + "6": "website", + "7": "forums", + "8": "news", + "9": "announcements" + }, + "type": "varint" + } + ], + "Slot": [ + "container", + [ + { + "name": "itemCount", + "type": "varint" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "itemCount", + "default": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "removedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "SlotComponent" + } + ] + }, + { + "name": "removeComponents", + "type": [ + "array", + { + "count": "removedComponentCount", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] + } + ] + ], + "fields": { + "0": "void" } } ] + } + ] + ], + "SlotComponent": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" }, { "name": "data", @@ -2225,2040 +942,2505 @@ { "compareTo": "type", "fields": { - "block": "varint", - "block_marker": "varint", - "falling_dust": "varint", - "dust_pillar": "varint", - "block_crumble": "varint", - "dust": [ + "attribute_modifiers": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "typeId", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "operation", + "type": [ + "mapper", + { + "mappings": { + "0": "add", + "1": "multiply_base", + "2": "multiply_total" + }, + "type": "varint" + } + ] + }, + { + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "any", + "1": "main_hand", + "2": "off_hand", + "3": "hand", + "4": "feet", + "5": "legs", + "6": "chest", + "7": "head", + "8": "armor", + "9": "body", + "10": "saddle" + }, + "type": "varint" + } + ] + }, + { + "name": "display", + "type": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "default", + "1": "hidden", + "2": "override" + }, + "type": "varint" + } + ] + }, + { + "name": "component", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "override": "anonymousNbt" + } + } + ] + } + ] + ] + } + ] + ] + } + ], + "axolotl/variant": "varint", + "banner_patterns": [ "container", [ { - "name": "red", - "type": "f32" - }, - { - "name": "green", - "type": "f32" - }, - { - "name": "blue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" + "name": "layers", + "type": [ + "array", + { + "countType": "varint", + "type": "BannerPatternLayer" + } + ] } ] ], - "dust_color_transition": [ + "base_color": "varint", + "bees": [ "container", [ { - "name": "fromRed", - "type": "f32" - }, - { - "name": "fromGreen", - "type": "f32" - }, - { - "name": "fromBlue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - }, - { - "name": "toRed", - "type": "f32" - }, - { - "name": "toGreen", - "type": "f32" - }, - { - "name": "toBlue", - "type": "f32" + "name": "bees", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "nbtData", + "type": "anonymousNbt" + }, + { + "name": "ticksInHive", + "type": "varint" + }, + { + "name": "minTicksInHive", + "type": "varint" + } + ] + ] + } + ] } ] ], - "entity_effect": "i32", - "item": "Slot", - "sculk_charge": "f32", - "shriek": "varint", - "vibration": [ + "block_entity_data": "anonymousNbt", + "block_state": [ "container", [ { - "name": "positionType", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "block", - "1": "entity" - } - } - ] - }, - { - "name": "position", + "name": "properties", "type": [ - "switch", + "array", { - "compareTo": "positionType", - "fields": { - "block": "position", - "entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityEyeHeight", - "type": "f32" - } - ] + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + } ] - } + ] } ] - }, - { - "name": "ticks", - "type": "varint" } ] ], - "trail": [ + "blocks_attacks": [ "container", [ { - "name": "target", - "type": "vec3f64" + "name": "blockDelaySeconds", + "type": "f32" }, { - "name": "color", - "type": "u8" - } - ] - ], - "tinted_leaves": "i32", - "firefly": "void" - } - } - ] - } - ] - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "soundSource": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "master", - "1": "music", - "2": "record", - "3": "weather", - "4": "block", - "5": "hostile", - "6": "neutral", - "7": "player", - "8": "ambient", - "9": "voice", - "10": "ui" - } - } - ], - "packedChunkPos": [ - "container", - [ - { - "name": "z", - "type": "i32" - }, - { - "name": "x", - "type": "i32" - } - ] - ], - "previousMessages": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] - } - ] - ] - } - ], - "entityMetadataEntry": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "byte", - "1": "int", - "2": "long", - "3": "float", - "4": "string", - "5": "component", - "6": "optional_component", - "7": "item_stack", - "8": "boolean", - "9": "rotations", - "10": "block_pos", - "11": "optional_block_pos", - "12": "direction", - "13": "optional_uuid", - "14": "block_state", - "15": "optional_block_state", - "16": "compound_tag", - "17": "particle", - "18": "particles", - "19": "villager_data", - "20": "optional_unsigned_int", - "21": "pose", - "22": "cat_variant", - "23": "cow_variant", - "24": "wolf_variant", - "25": "wolf_sound_variant", - "26": "frog_variant", - "27": "pig_variant", - "28": "chicken_variant", - "29": "optional_global_pos", - "30": "painting_variant", - "31": "sniffer_state", - "32": "armadillo_state", - "33": "vector3", - "34": "quaternion" - } - } - ] - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "byte": "i8", - "int": "varint", - "long": "varlong", - "float": "f32", - "string": "string", - "component": "anonymousNbt", - "optional_component": [ - "option", - "anonymousNbt" - ], - "item_stack": "Slot", - "boolean": "bool", - "rotations": [ - "container", - [ + "name": "disableCooldownScale", + "type": "f32" + }, + { + "name": "damageReductions", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalBlockingAngle", + "type": "f32" + }, + { + "name": "type", + "type": [ + "option", + "IDSet" + ] + }, + { + "name": "base", + "type": "f32" + }, + { + "name": "factor", + "type": "f32" + } + ] + ] + } + ] + }, { - "name": "pitch", - "type": "f32" + "name": "itemDamage", + "type": [ + "container", + [ + { + "name": "threshold", + "type": "f32" + }, + { + "name": "base", + "type": "f32" + }, + { + "name": "factor", + "type": "f32" + } + ] + ] }, { - "name": "yaw", - "type": "f32" + "name": "bypassedBy", + "type": [ + "option", + "string" + ] }, { - "name": "roll", - "type": "f32" + "name": "blockSound", + "type": [ + "option", + "ItemSoundHolder" + ] + }, + { + "name": "disableSound", + "type": [ + "option", + "ItemSoundHolder" + ] } ] ], - "block_pos": "position", - "optional_block_pos": [ - "option", - "position" - ], - "direction": "varint", - "optional_uuid": [ - "option", - "UUID" - ], - "block_state": "varint", - "optional_block_state": "optvarint", - "compound_tag": "anonymousNbt", - "particle": "Particle", - "particles": [ - "array", - { - "countType": "varint", - "type": "Particle" - } - ], - "villager_data": [ + "break_sound": "ItemSoundHolder", + "bucket_entity_data": "anonymousNbt", + "bundle_contents": [ "container", [ { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" + "name": "contents", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] } ] ], - "optional_unsigned_int": "optvarint", - "pose": "varint", - "cat_variant": "varint", - "cow_variant": "varint", - "wolf_variant": "varint", - "wolf_sound_variant": "varint", - "frog_variant": "varint", - "pig_variant": "varint", - "chicken_variant": "varint", - "optional_global_pos": [ - "option", - "string" - ], - "painting_variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "EntityMetadataPaintingVariant" - } - } - ], - "sniffer_state": "varint", - "armadillo_state": "varint", - "vector3": "vec3f", - "quaternion": "vec4f" - } - } - ] - } - ] - ], - "EntityMetadataPaintingVariant": [ - "container", - [ - { - "name": "width", - "type": "i32" - }, - { - "name": "height", - "type": "i32" - }, - { - "name": "assetId", - "type": "string" - }, - { - "name": "title", - "type": [ - "option", - "anonymousNbt" - ] - }, - { - "name": "author", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": "entityMetadataEntry" - } - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "chunkBlockEntity": [ - "container", - [ - { - "anon": true, - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "nbtData", - "type": "anonOptionalNbt" - } - ] - ], - "chat_session": [ - "option", - [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "publicKey", - "type": [ - "container", - [ - { - "name": "expireTime", - "type": "i64" - }, - { - "name": "keyBytes", - "type": [ - "buffer", + "can_break": [ + "container", + [ { - "countType": "varint" + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" + } + ] } ] - }, - { - "name": "keySignature", - "type": [ - "buffer", + ], + "can_place_on": [ + "container", + [ { - "countType": "varint" + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" + } + ] } ] - } - ] - ] - } - ] - ] - ], - "game_profile": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - } - ] - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 2, - "signed": false - }, - { - "name": "allows_restricted", - "size": 1, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "extraNodeData", - "type": [ - "switch", - { - "compareTo": "flags/command_node_type", - "fields": { - "0": "void", - "1": [ + ], + "cat/collar": "varint", + "cat/variant": "varint", + "charged_projectiles": [ "container", [ { - "name": "name", - "type": "string" + "name": "projectiles", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] } ] ], - "2": [ + "chicken/variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "string" + } + } + ], + "consumable": [ "container", [ { - "name": "name", - "type": "string" + "name": "consume_seconds", + "type": "f32" }, { - "name": "parser", + "name": "animation", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "brigadier:bool", - "1": "brigadier:float", - "2": "brigadier:double", - "3": "brigadier:integer", - "4": "brigadier:long", - "5": "brigadier:string", - "6": "minecraft:entity", - "7": "minecraft:game_profile", - "8": "minecraft:block_pos", - "9": "minecraft:column_pos", - "10": "minecraft:vec3", - "11": "minecraft:vec2", - "12": "minecraft:block_state", - "13": "minecraft:block_predicate", - "14": "minecraft:item_stack", - "15": "minecraft:item_predicate", - "16": "minecraft:color", - "17": "minecraft:hex_color", - "18": "minecraft:component", - "19": "minecraft:style", - "20": "minecraft:message", - "21": "minecraft:nbt", - "22": "minecraft:nbt_tag", - "23": "minecraft:nbt_path", - "24": "minecraft:objective", - "25": "minecraft:objective_criteria", - "26": "minecraft:operation", - "27": "minecraft:particle", - "28": "minecraft:angle", - "29": "minecraft:rotation", - "30": "minecraft:scoreboard_slot", - "31": "minecraft:score_holder", - "32": "minecraft:swizzle", - "33": "minecraft:team", - "34": "minecraft:item_slot", - "35": "minecraft:item_slots", - "36": "minecraft:resource_location", - "37": "minecraft:function", - "38": "minecraft:entity_anchor", - "39": "minecraft:int_range", - "40": "minecraft:float_range", - "41": "minecraft:dimension", - "42": "minecraft:gamemode", - "43": "minecraft:time", - "44": "minecraft:resource_or_tag", - "45": "minecraft:resource_or_tag_key", - "46": "minecraft:resource", - "47": "minecraft:resource_key", - "48": "minecraft:resource_selector", - "49": "minecraft:template_mirror", - "50": "minecraft:template_rotation", - "51": "minecraft:heightmap", - "52": "minecraft:loot_table", - "53": "minecraft:loot_predicate", - "54": "minecraft:loot_modifier", - "55": "minecraft:dialog", - "56": "minecraft:uuid" - } + "0": "none", + "1": "eat", + "2": "drink", + "3": "block", + "4": "bow", + "5": "spear", + "6": "crossbow", + "7": "spyglass", + "8": "toot_horn", + "9": "brush", + "10": "bundle" + }, + "type": "varint" + } + ] + }, + { + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "makes_particles", + "type": "bool" + }, + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemConsumeEffect" + } + ] + } + ] + ], + "container": [ + "container", + [ + { + "name": "contents", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "container_loot": "anonymousNbt", + "cow/variant": "varint", + "creative_slot_lock": "void", + "custom_data": "anonymousNbt", + "custom_model_data": [ + "container", + [ + { + "name": "floats", + "type": [ + "array", + { + "countType": "varint", + "type": "f32" } ] }, { - "name": "properties", + "name": "flags", "type": [ - "switch", + "array", { - "compareTo": "parser", - "fields": { - "brigadier:bool": "void", - "brigadier:float": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "min", - "type": [ - "switch", - { - "compareTo": "flags/min_present", - "fields": { - "1": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "max", - "type": [ - "switch", - { - "compareTo": "flags/max_present", - "fields": { - "1": "f32" - }, - "default": "void" - } - ] - } - ] - ], - "brigadier:double": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "min", - "type": [ - "switch", - { - "compareTo": "flags/min_present", - "fields": { - "1": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "max", - "type": [ - "switch", - { - "compareTo": "flags/max_present", - "fields": { - "1": "f64" - }, - "default": "void" - } - ] - } - ] - ], - "brigadier:integer": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "min", - "type": [ - "switch", - { - "compareTo": "flags/min_present", - "fields": { - "1": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "max", - "type": [ - "switch", - { - "compareTo": "flags/max_present", - "fields": { - "1": "i32" - }, - "default": "void" - } - ] - } - ] - ], - "brigadier:long": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "min", - "type": [ - "switch", - { - "compareTo": "flags/min_present", - "fields": { - "1": "i64" - }, - "default": "void" - } - ] - }, - { - "name": "max", - "type": [ - "switch", - { - "compareTo": "flags/max_present", - "fields": { - "1": "i64" - }, - "default": "void" - } - ] - } - ] - ], - "brigadier:string": [ - "mapper", + "countType": "varint", + "type": "bool" + } + ] + }, + { + "name": "strings", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "colors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] + } + ] + ], + "custom_name": "anonymousNbt", + "damage": "varint", + "damage_resistant": "string", + "death_protection": [ + "container", + [ + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemConsumeEffect" + } + ] + } + ] + ], + "debug_stick_state": "anonymousNbt", + "dyed_color": "i32", + "enchantable": "varint", + "enchantment_glint_override": "bool", + "enchantments": [ + "container", + [ + { + "name": "enchantments", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ { - "type": "varint", - "mappings": { - "0": "SINGLE_WORD", - "1": "QUOTABLE_PHRASE", - "2": "GREEDY_PHRASE" - } + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" } - ], - "minecraft:entity": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ], - "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", - "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:hex_color": "void", - "minecraft:component": "void", - "minecraft:message": "void", - "minecraft:nbt": "void", - "minecraft:nbt_path": "void", - "minecraft:objective": "void", - "minecraft:objective_criteria": "void", - "minecraft:operation": "void", - "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:dimension": "void", - "minecraft:gamemode": "void", - "minecraft:time": [ - "container", - [ - { - "name": "min", - "type": "i32" - } - ] - ], - "minecraft:resource_or_tag": [ - "container", - [ - { - "name": "registry", - "type": "string" - } - ] - ], - "minecraft:resource_or_tag_key": [ - "container", - [ - { - "name": "registry", - "type": "string" - } - ] - ], - "minecraft:resource": [ - "container", - [ - { - "name": "registry", - "type": "string" - } - ] - ], - "minecraft:resource_key": [ - "container", - [ - { - "name": "registry", - "type": "string" + ] + ] + } + ] + } + ] + ], + "entity_data": "anonymousNbt", + "equippable": [ + "container", + [ + { + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "main_hand", + "1": "off_hand", + "2": "feet", + "3": "legs", + "4": "chest", + "5": "head", + "6": "body", + "7": "saddle" + }, + "type": "varint" + } + ] + }, + { + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "model", + "type": [ + "option", + "string" + ] + }, + { + "name": "cameraOverlay", + "type": [ + "option", + "string" + ] + }, + { + "name": "allowedEntities", + "type": [ + "option", + "IDSet" + ] + }, + { + "name": "dispensable", + "type": "bool" + }, + { + "name": "swappable", + "type": "bool" + }, + { + "name": "damageable", + "type": "bool" + }, + { + "name": "equipOnInteract", + "type": "bool" + }, + { + "name": "shearable", + "type": "bool" + }, + { + "name": "shearingSound", + "type": "ItemSoundHolder" + } + ] + ], + "firework_explosion": "ItemFireworkExplosion", + "fireworks": [ + "container", + [ + { + "name": "flightDuration", + "type": "varint" + }, + { + "name": "explosions", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemFireworkExplosion" + } + ] + } + ] + ], + "food": [ + "container", + [ + { + "name": "nutrition", + "type": "varint" + }, + { + "name": "saturationModifier", + "type": "f32" + }, + { + "name": "canAlwaysEat", + "type": "bool" + } + ] + ], + "fox/variant": "varint", + "frog/variant": "varint", + "glider": "void", + "horse/variant": "varint", + "instrument": [ + "container", + [ + { + "name": "hasHolder", + "type": "bool" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "instrumentId", + "otherwise": { + "name": "data", + "type": "InstrumentData" } - ] - ], - "minecraft:resource_selector": [ - "container", - [ - { - "name": "registry", - "type": "string" + } + ] + } + } + ] + } + ] + ], + "intangible_projectile": "void", + "item_model": "string", + "item_name": "anonymousNbt", + "jukebox_playable": [ + "container", + [ + { + "name": "hasHolder", + "type": "bool" + }, + { + "name": "song", + "type": [ + "switch", + { + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "songId", + "otherwise": { + "name": "data", + "type": "JukeboxSongData" } - ] - ], - "minecraft:template_mirror": "void", - "minecraft:template_rotation": "void", - "minecraft:heightmap": "void", - "minecraft:dialog": "void", - "minecraft:uuid": "void" + } + ] } } ] + } + ] + ], + "llama/variant": "varint", + "lock": "anonymousNbt", + "lodestone_tracker": [ + "container", + [ + { + "name": "globalPosition", + "type": [ + "option", + [ + "container", + [ + { + "name": "dimension", + "type": "string" + }, + { + "name": "position", + "type": "position" + } + ] + ] + ] }, { - "name": "suggestionType", + "name": "tracked", + "type": "bool" + } + ] + ], + "lore": [ + "array", + { + "countType": "varint", + "type": "anonymousNbt" + } + ], + "map_color": "i32", + "map_decorations": "anonymousNbt", + "map_id": "varint", + "map_post_processing": "varint", + "max_damage": "varint", + "max_stack_size": "varint", + "mooshroom/variant": "varint", + "note_block_sound": "string", + "ominous_bottle_amplifier": "varint", + "painting/variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "data", + "type": "EntityMetadataPaintingVariant" + } + } + ], + "parrot/variant": "varint", + "pig/variant": "varint", + "pot_decorations": [ + "container", + [ + { + "name": "decorations", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "potion_contents": [ + "container", + [ + { + "name": "potionId", + "type": [ + "option", + "varint" + ] + }, + { + "name": "customColor", + "type": [ + "option", + "i32" + ] + }, + { + "name": "customEffects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemPotionEffect" + } + ] + }, + { + "name": "customName", + "type": [ + "option", + "string" + ] + } + ] + ], + "potion_duration_scale": "f32", + "profile": [ + "container", + [ + { + "name": "name", + "type": [ + "option", + "string" + ] + }, + { + "name": "uuid", + "type": [ + "option", + "UUID" + ] + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + } + ] + ], + "provides_banner_patterns": "string", + "provides_trim_material": [ + "container", + [ + { + "name": "hasHolder", + "type": "bool" + }, + { + "name": "material", "type": [ "switch", { - "compareTo": "../flags/has_custom_suggestions", + "compareTo": "hasHolder", "fields": { - "1": "string" - }, - "default": "void" + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "materialId", + "otherwise": { + "name": "data", + "type": "ArmorTrimMaterial" + } + } + ] + } } ] } ] - ] - } - } - ] - } - ] - ], - "packet_common_settings": [ - "container", - [ - { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" - }, - { - "name": "enableTextFiltering", - "type": "bool" - }, - { - "name": "enableServerListing", - "type": "bool" - }, - { - "name": "particleStatus", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "all", - "1": "decreased", - "2": "minimal" - } - } - ] - } - ] - ], - "packet_common_cookie_request": [ - "container", - [ - { - "name": "cookie", - "type": "string" - } - ] - ], - "packet_common_store_cookie": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "ByteArray" - } - ] - ], - "packet_common_transfer": [ - "container", - [ - { - "name": "host", - "type": "string" - }, - { - "name": "port", - "type": "varint" - } - ] - ], - "packet_common_cookie_response": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "ByteArray" - } - ] - ], - "packet_common_select_known_packs": [ - "container", - [ - { - "name": "packs", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "namespace", - "type": "string" - }, - { - "name": "id", - "type": "string" - }, - { - "name": "version", - "type": "string" - } - ] - ] - } - ] - } - ] - ], - "packet_common_custom_report_details": [ - "container", - [ - { - "name": "details", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] - } - ] - ], - "packet_common_remove_resource_pack": [ - "container", - [ - { - "name": "uuid", - "type": [ - "option", - "UUID" - ] - } - ] - ], - "packet_common_add_resource_pack": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "url", - "type": "string" - }, - { - "name": "hash", - "type": "string" - }, - { - "name": "forced", - "type": "bool" - }, - { - "name": "promptMessage", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ], - "ServerLinkType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "bug_report", - "1": "community_guidelines", - "2": "support", - "3": "status", - "4": "feedback", - "5": "community", - "6": "website", - "7": "forums", - "8": "news", - "9": "announcements" - } - } - ], - "packet_common_server_links": [ - "container", - [ - { - "name": "links", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "hasKnownType", - "type": "bool" - }, + ], + "rabbit/variant": "varint", + "rarity": [ + "mapper", { - "name": "knownType", - "type": [ - "switch", - { - "compareTo": "hasKnownType", - "fields": { - "true": "ServerLinkType" + "mappings": { + "0": "common", + "1": "uncommon", + "2": "rare", + "3": "epic" + }, + "type": "varint" + } + ], + "recipes": "anonymousNbt", + "repair_cost": "varint", + "repairable": [ + "container", + [ + { + "name": "items", + "type": "IDSet" + } + ] + ], + "salmon/size": "varint", + "sheep/color": "varint", + "shulker/color": "varint", + "stored_enchantments": [ + "container", + [ + { + "name": "enchantments", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] } - } - ] - }, - { - "name": "unknownType", - "type": [ - "switch", - { - "compareTo": "hasKnownType", - "fields": { - "false": "anonymousNbt" + ] + } + ] + ], + "suspicious_stew_effects": [ + "container", + [ + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "effect", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "tool": [ + "container", + [ + { + "name": "rules", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "blocks", + "type": "IDSet" + }, + { + "name": "speed", + "type": [ + "option", + "f32" + ] + }, + { + "name": "correctDropForBlocks", + "type": [ + "option", + "bool" + ] + } + ] + ] + } + ] + }, + { + "name": "defaultMiningSpeed", + "type": "f32" + }, + { + "name": "damagePerBlock", + "type": "varint" + }, + { + "name": "canDestroyBlocksInCreative", + "type": "bool" + } + ] + ], + "tooltip_display": [ + "container", + [ + { + "name": "hideTooltip", + "type": "bool" + }, + { + "name": "hiddenComponents", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "tooltip_style": "string", + "trim": [ + "container", + [ + { + "name": "material", + "type": [ + "registryEntryHolder", + { + "baseName": "materialId", + "otherwise": { + "name": "data", + "type": "ArmorTrimMaterial" + } + } + ] + }, + { + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "ArmorTrimPattern" + } + } + ] + } + ] + ], + "tropical_fish/base_color": "varint", + "tropical_fish/pattern": "varint", + "tropical_fish/pattern_color": "varint", + "unbreakable": "void", + "use_cooldown": [ + "container", + [ + { + "name": "seconds", + "type": "f32" + }, + { + "name": "cooldownGroup", + "type": [ + "option", + "string" + ] + } + ] + ], + "use_remainder": "Slot", + "villager/variant": "varint", + "weapon": [ + "container", + [ + { + "name": "itemDamagePerAttack", + "type": "varint" + }, + { + "name": "disableBlockingForSeconds", + "type": "f32" + } + ] + ], + "wolf/collar": "varint", + "wolf/sound_variant": "varint", + "wolf/variant": "varint", + "writable_book_content": [ + "container", + [ + { + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBookPage" + } + ] + } + ] + ], + "written_book_content": [ + "container", + [ + { + "name": "rawTitle", + "type": "string" + }, + { + "name": "filteredTitle", + "type": [ + "option", + "string" + ] + }, + { + "name": "author", + "type": "string" + }, + { + "name": "generation", + "type": "varint" + }, + { + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemWrittenBookPage" } - } - ] - }, - { - "name": "link", - "type": "string" - } + ] + }, + { + "name": "resolved", + "type": "bool" + } + ] ] - ] + } } ] } ] ], - "packet_common_clear_dialog": [ - "container", - [] - ], - "packet_common_custom_click_action": [ - "container", - [ - { - "name": "id", - "type": "string" - }, - { - "name": "nbt", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": {} - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } - } - ] - } - ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } - } - ] - } - ] - ] + "SlotComponentType": [ + "mapper", + { + "mappings": { + "0": "custom_data", + "1": "max_stack_size", + "2": "max_damage", + "3": "damage", + "4": "unbreakable", + "5": "custom_name", + "6": "item_name", + "7": "item_model", + "8": "lore", + "9": "rarity", + "10": "enchantments", + "11": "can_place_on", + "12": "can_break", + "13": "attribute_modifiers", + "14": "custom_model_data", + "15": "tooltip_display", + "16": "repair_cost", + "17": "creative_slot_lock", + "18": "enchantment_glint_override", + "19": "intangible_projectile", + "20": "food", + "21": "consumable", + "22": "use_remainder", + "23": "use_cooldown", + "24": "damage_resistant", + "25": "tool", + "26": "weapon", + "27": "enchantable", + "28": "equippable", + "29": "repairable", + "30": "glider", + "31": "tooltip_style", + "32": "death_protection", + "33": "blocks_attacks", + "34": "stored_enchantments", + "35": "dyed_color", + "36": "map_color", + "37": "map_id", + "38": "map_decorations", + "39": "map_post_processing", + "40": "charged_projectiles", + "41": "bundle_contents", + "42": "potion_contents", + "43": "potion_duration_scale", + "44": "suspicious_stew_effects", + "45": "writable_book_content", + "46": "written_book_content", + "47": "trim", + "48": "debug_stick_state", + "49": "entity_data", + "50": "bucket_entity_data", + "51": "block_entity_data", + "52": "instrument", + "53": "provides_trim_material", + "54": "ominous_bottle_amplifier", + "55": "jukebox_playable", + "56": "provides_banner_patterns", + "57": "recipes", + "58": "lodestone_tracker", + "59": "firework_explosion", + "60": "fireworks", + "61": "profile", + "62": "note_block_sound", + "63": "banner_patterns", + "64": "base_color", + "65": "pot_decorations", + "66": "container", + "67": "block_state", + "68": "bees", + "69": "lock", + "70": "container_loot", + "71": "break_sound", + "72": "villager/variant", + "73": "wolf/variant", + "74": "wolf/sound_variant", + "75": "wolf/collar", + "76": "fox/variant", + "77": "salmon/size", + "78": "parrot/variant", + "79": "tropical_fish/pattern", + "80": "tropical_fish/base_color", + "81": "tropical_fish/pattern_color", + "82": "mooshroom/variant", + "83": "rabbit/variant", + "84": "pig/variant", + "85": "cow/variant", + "86": "chicken/variant", + "87": "frog/variant", + "88": "horse/variant", + "89": "painting/variant", + "90": "llama/variant", + "91": "axolotl/variant", + "92": "cat/variant", + "93": "cat/collar", + "94": "sheep/color", + "95": "shulker/color" + }, + "type": "varint" } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ - "container", - [ + ], + "UUID": "native", + "UntrustedSlot": [ + "container", + [ + { + "name": "itemCount", + "type": "varint" + }, + { + "anon": true, + "type": [ + "switch", { - "name": "time", - "type": "i64" + "compareTo": "itemCount", + "default": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "removedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "UntrustedSlotComponent" + } + ] + }, + { + "name": "removeComponents", + "type": [ + "array", + { + "count": "removedComponentCount", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] + } + ] + ], + "fields": { + "0": "void", + "false": "void" + } } ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", + } + ] + ], + "UntrustedSlotComponent": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + }, + { + "name": "data", + "type": "ByteArray" + } + ] + ], + "anonOptionalNbt": "native", + "anonymousNbt": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "chat_session": [ + "option", + [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "publicKey", + "type": [ + "container", + [ { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", + "name": "expireTime", + "type": "i64" + }, { - "compareTo": "name", - "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" - } + "name": "keyBytes", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "keySignature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] - } - ] + ] + } ] - } - } - }, - "login": { - "toClient": { - "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } + ] + ], + "chunkBlockEntity": [ + "container", + [ + { + "anon": true, + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 + } + ] + ] + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" + } + ] + ], + "command_node": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 2 + }, + { + "name": "allows_restricted", + "signed": false, + "size": 1 + }, + { + "name": "has_custom_suggestions", + "signed": false, + "size": 1 + }, + { + "name": "has_redirect_node", + "signed": false, + "size": 1 + }, + { + "name": "has_command", + "signed": false, + "size": 1 + }, + { + "name": "command_node_type", + "signed": false, + "size": 2 + } + ] ] - ], - "packet_encryption_begin": [ - "container", - [ - { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "verifyToken", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, + }, + { + "name": "children", + "type": [ + "array", { - "name": "shouldAuthenticate", - "type": "bool" + "countType": "varint", + "type": "varint" } ] - ], - "packet_success": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "username", - "type": "string" - }, + }, + { + "name": "redirectNode", + "type": [ + "switch", { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } } ] - ], - "packet_compress": [ - "container", - [ + }, + { + "name": "extraNodeData", + "type": [ + "switch", { - "name": "threshold", - "type": "varint" + "compareTo": "flags/command_node_type", + "fields": { + "0": "void", + "1": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "2": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "parser", + "type": [ + "mapper", + { + "mappings": { + "0": "brigadier:bool", + "1": "brigadier:float", + "2": "brigadier:double", + "3": "brigadier:integer", + "4": "brigadier:long", + "5": "brigadier:string", + "6": "minecraft:entity", + "7": "minecraft:game_profile", + "8": "minecraft:block_pos", + "9": "minecraft:column_pos", + "10": "minecraft:vec3", + "11": "minecraft:vec2", + "12": "minecraft:block_state", + "13": "minecraft:block_predicate", + "14": "minecraft:item_stack", + "15": "minecraft:item_predicate", + "16": "minecraft:color", + "17": "minecraft:hex_color", + "18": "minecraft:component", + "19": "minecraft:style", + "20": "minecraft:message", + "21": "minecraft:nbt", + "22": "minecraft:nbt_tag", + "23": "minecraft:nbt_path", + "24": "minecraft:objective", + "25": "minecraft:objective_criteria", + "26": "minecraft:operation", + "27": "minecraft:particle", + "28": "minecraft:angle", + "29": "minecraft:rotation", + "30": "minecraft:scoreboard_slot", + "31": "minecraft:score_holder", + "32": "minecraft:swizzle", + "33": "minecraft:team", + "34": "minecraft:item_slot", + "35": "minecraft:item_slots", + "36": "minecraft:resource_location", + "37": "minecraft:function", + "38": "minecraft:entity_anchor", + "39": "minecraft:int_range", + "40": "minecraft:float_range", + "41": "minecraft:dimension", + "42": "minecraft:gamemode", + "43": "minecraft:time", + "44": "minecraft:resource_or_tag", + "45": "minecraft:resource_or_tag_key", + "46": "minecraft:resource", + "47": "minecraft:resource_key", + "48": "minecraft:resource_selector", + "49": "minecraft:template_mirror", + "50": "minecraft:template_rotation", + "51": "minecraft:heightmap", + "52": "minecraft:loot_table", + "53": "minecraft:loot_predicate", + "54": "minecraft:loot_modifier", + "55": "minecraft:dialog", + "56": "minecraft:uuid" + }, + "type": "varint" + } + ] + }, + { + "name": "properties", + "type": [ + "switch", + { + "compareTo": "parser", + "fields": { + "brigadier:bool": "void", + "brigadier:double": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "max_present", + "signed": false, + "size": 1 + }, + { + "name": "min_present", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "default": "void", + "fields": { + "1": "f64" + } + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "default": "void", + "fields": { + "1": "f64" + } + } + ] + } + ] + ], + "brigadier:float": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "max_present", + "signed": false, + "size": 1 + }, + { + "name": "min_present", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "default": "void", + "fields": { + "1": "f32" + } + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "default": "void", + "fields": { + "1": "f32" + } + } + ] + } + ] + ], + "brigadier:integer": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "max_present", + "signed": false, + "size": 1 + }, + { + "name": "min_present", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "default": "void", + "fields": { + "1": "i32" + } + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "default": "void", + "fields": { + "1": "i32" + } + } + ] + } + ] + ], + "brigadier:long": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "max_present", + "signed": false, + "size": 1 + }, + { + "name": "min_present", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "default": "void", + "fields": { + "1": "i64" + } + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "default": "void", + "fields": { + "1": "i64" + } + } + ] + } + ] + ], + "brigadier:string": [ + "mapper", + { + "mappings": { + "0": "SINGLE_WORD", + "1": "QUOTABLE_PHRASE", + "2": "GREEDY_PHRASE" + }, + "type": "varint" + } + ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dialog": "void", + "minecraft:dimension": "void", + "minecraft:entity": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 6 + }, + { + "name": "onlyAllowPlayers", + "signed": false, + "size": 1 + }, + { + "name": "onlyAllowEntities", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:entity_anchor": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", + "minecraft:game_profile": "void", + "minecraft:gamemode": "void", + "minecraft:heightmap": "void", + "minecraft:hex_color": "void", + "minecraft:int_range": "void", + "minecraft:item_predicate": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", + "minecraft:message": "void", + "minecraft:nbt": "void", + "minecraft:nbt_path": "void", + "minecraft:objective": "void", + "minecraft:objective_criteria": "void", + "minecraft:operation": "void", + "minecraft:particle": "void", + "minecraft:resource": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:resource_key": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:resource_or_tag_key": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:resource_selector": [ + "container", + [ + { + "name": "registry", + "type": "string" + } + ] + ], + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:template_mirror": "void", + "minecraft:template_rotation": "void", + "minecraft:time": [ + "container", + [ + { + "name": "min", + "type": "i32" + } + ] + ], + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" + } + } + ] + }, + { + "name": "suggestionType", + "type": [ + "switch", + { + "compareTo": "../flags/has_custom_suggestions", + "default": "void", + "fields": { + "1": "string" + } + } + ] + } + ] + ] + } } ] - ], - "packet_login_plugin_request": [ - "container", - [ + } + ] + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": "entityMetadataEntry" + } + ], + "entityMetadataEntry": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": [ + "mapper", { - "name": "messageId", + "mappings": { + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "compound_tag", + "17": "particle", + "18": "particles", + "19": "villager_data", + "20": "optional_unsigned_int", + "21": "pose", + "22": "cat_variant", + "23": "cow_variant", + "24": "wolf_variant", + "25": "wolf_sound_variant", + "26": "frog_variant", + "27": "pig_variant", + "28": "chicken_variant", + "29": "optional_global_pos", + "30": "painting_variant", + "31": "sniffer_state", + "32": "armadillo_state", + "33": "vector3", + "34": "quaternion" + }, "type": "varint" - }, - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" } ] - ], - "packet": [ - "container", - [ + }, + { + "name": "value", + "type": [ + "switch", { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request", - "0x05": "cookie_request" + "compareTo": "type", + "fields": { + "armadillo_state": "varint", + "block_pos": "position", + "block_state": "varint", + "boolean": "bool", + "byte": "i8", + "cat_variant": "varint", + "chicken_variant": "varint", + "component": "anonymousNbt", + "compound_tag": "anonymousNbt", + "cow_variant": "varint", + "direction": "varint", + "float": "f32", + "frog_variant": "varint", + "int": "varint", + "item_stack": "Slot", + "long": "varlong", + "optional_block_pos": [ + "option", + "position" + ], + "optional_block_state": "optvarint", + "optional_component": [ + "option", + "anonymousNbt" + ], + "optional_global_pos": [ + "option", + "string" + ], + "optional_unsigned_int": "optvarint", + "optional_uuid": [ + "option", + "UUID" + ], + "painting_variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "EntityMetadataPaintingVariant" + } } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "disconnect": "packet_disconnect", - "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request", - "cookie_request": "packet_common_cookie_request" + ], + "particle": "Particle", + "particles": [ + "array", + { + "countType": "varint", + "type": "Particle" } - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - }, - { - "name": "playerUUID", - "type": "UUID" - } - ] - ], - "packet_encryption_begin": [ - "container", - [ - { - "name": "sharedSecret", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "verifyToken", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ], - "packet_login_plugin_response": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "data", - "type": [ - "option", - "restBuffer" - ] + ], + "pig_variant": "varint", + "pose": "varint", + "quaternion": "vec4f", + "rotations": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "sniffer_state": "varint", + "string": "string", + "vector3": "vec3f", + "villager_data": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "wolf_sound_variant": "varint", + "wolf_variant": "varint" + } } ] - ], - "packet_login_acknowledged": [ - "container", - [] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response", - "0x03": "login_acknowledged", - "0x04": "cookie_response" - } - } - ] - }, + } + ] + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "game_profile": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", { - "name": "params", + "countType": "varint", "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response", - "login_acknowledged": "packet_login_acknowledged", - "cookie_response": "packet_common_cookie_response" + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] } - } + ] ] } ] - ] + } + ] + ], + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "Slot" } - } - }, - "configuration": { - "toClient": { - "types": { - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } + ], + "option": "native", + "optvarint": "varint", + "packedChunkPos": [ + "container", + [ + { + "name": "z", + "type": "i32" + }, + { + "name": "x", + "type": "i32" + } + ] + ], + "packet_common_add_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "url", + "type": "string" + }, + { + "name": "hash", + "type": "string" + }, + { + "name": "forced", + "type": "bool" + }, + { + "name": "promptMessage", + "type": [ + "option", + "anonymousNbt" ] - ], - "packet_ping": [ - "container", - [ - { - "name": "id", - "type": "i32" - } + } + ] + ], + "packet_common_clear_dialog": [ + "container", + [] + ], + "packet_common_cookie_request": [ + "container", + [ + { + "name": "cookie", + "type": "string" + } + ] + ], + "packet_common_cookie_response": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "ByteArray" + } + ] + ], + "packet_common_custom_click_action": [ + "container", + [ + { + "name": "id", + "type": "string" + }, + { + "name": "nbt", + "type": [ + "option", + "anonymousNbt" ] - ], - "packet_reset_chat": [ - "container", - [] - ], - "packet_registry_data": [ - "container", - [ - { - "name": "id", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } + } + ] + ], + "packet_common_custom_report_details": [ + "container", + [ + { + "name": "details", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] ] } ] - ], - "packet_feature_flags": [ - "container", - [ + } + ] + ], + "packet_common_remove_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": [ + "option", + "UUID" + ] + } + ] + ], + "packet_common_select_known_packs": [ + "container", + [ + { + "name": "packs", + "type": [ + "array", { - "name": "features", + "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "string" - } + "container", + [ + { + "name": "namespace", + "type": "string" + }, + { + "name": "id", + "type": "string" + }, + { + "name": "version", + "type": "string" + } + ] ] } ] - ], - "packet_tags": [ - "container", - [ + } + ] + ], + "packet_common_server_links": [ + "container", + [ + { + "name": "links", + "type": [ + "array", { - "name": "tags", + "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ + "container", + [ + { + "name": "hasKnownType", + "type": "bool" + }, + { + "name": "knownType", + "type": [ + "switch", { - "name": "tagType", - "type": "string" - }, + "compareTo": "hasKnownType", + "fields": { + "true": "ServerLinkType" + } + } + ] + }, + { + "name": "unknownType", + "type": [ + "switch", { - "name": "tags", - "type": "tags" + "compareTo": "hasKnownType", + "fields": { + "false": "anonymousNbt" + } } ] - ] - } + }, + { + "name": "link", + "type": "string" + } + ] ] } ] - ], - "packet_show_dialog": [ - "container", - [ + } + ] + ], + "packet_common_settings": [ + "container", + [ + { + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", + "type": "varint" + }, + { + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" + }, + { + "name": "enableTextFiltering", + "type": "bool" + }, + { + "name": "enableServerListing", + "type": "bool" + }, + { + "name": "particleStatus", + "type": [ + "mapper", { - "name": "dialog", - "type": "anonymousNbt" + "mappings": { + "0": "all", + "1": "decreased", + "2": "minimal" + }, + "type": "varint" } ] - ], - "packet": [ + } + ] + ], + "packet_common_store_cookie": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "ByteArray" + } + ] + ], + "packet_common_transfer": [ + "container", + [ + { + "name": "host", + "type": "string" + }, + { + "name": "port", + "type": "varint" + } + ] + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "previousMessages": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links", - "0x11": "clear_dialog", - "0x12": "show_dialog" - } - } - ] + "name": "id", + "type": "varint" }, { - "name": "params", + "name": "signature", "type": [ "switch", { - "compareTo": "name", + "compareTo": "id", + "default": "void", "fields": { - "cookie_request": "packet_common_cookie_request", - "custom_payload": "packet_custom_payload", - "disconnect": "packet_disconnect", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "reset_chat": "packet_reset_chat", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "store_cookie": "packet_common_store_cookie", - "transfer": "packet_common_transfer", - "feature_flags": "packet_feature_flags", - "tags": "packet_tags", - "select_known_packs": "packet_common_select_known_packs", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links", - "clear_dialog": "packet_common_clear_dialog", - "show_dialog": "packet_show_dialog" + "0": [ + "buffer", + { + "count": 256 + } + ] } } ] @@ -4266,57 +3448,176 @@ ] ] } - }, - "toServer": { - "types": { - "packet_custom_payload": [ + ], + "pstring": "native", + "registryEntryHolder": "native", + "registryEntryHolderSet": "native", + "restBuffer": "native", + "soundSource": [ + "mapper", + { + "mappings": { + "0": "master", + "1": "music", + "2": "record", + "3": "weather", + "4": "block", + "5": "hostile", + "6": "neutral", + "7": "player", + "8": "ambient", + "9": "voice", + "10": "ui" + }, + "type": "varint" + } + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "channel", + "name": "tagName", "type": "string" }, { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_resource_pack_receive": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "result", - "type": "varint" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] - ], + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec2f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + } + ] + ], + "vec3f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + } + ] + ], + "vec3f64": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "vec3i": [ + "container", + [ + { + "name": "x", + "type": "varint" + }, + { + "name": "y", + "type": "varint" + }, + { + "name": "z", + "type": "varint" + } + ] + ], + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "vec4f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "w", + "type": "f32" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { "packet": [ "container", [ @@ -4325,18 +3626,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_click_action" - } + "mappings": {}, + "type": "varint" } ] }, @@ -4345,410 +3636,305 @@ "type": [ "switch", { - "compareTo": "name", - "fields": { - "settings": "packet_common_settings", - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "custom_click_action": "packet_common_custom_click_action" - } + "compareTo": "name", + "fields": {} } ] } ] ] } - } - }, - "play": { - "toClient": { + }, + "toServer": { "types": { - "SlotDisplay": [ + "packet": [ "container", [ { - "name": "type", + "name": "name", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "empty", - "1": "any_fuel", - "2": "item", - "3": "item_stack", - "4": "tag", - "5": "smithing_trim", - "6": "with_remainder", - "7": "composite" - } + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" } ] }, { - "name": "data", + "name": "params", "type": [ "switch", { - "compareTo": "type", + "compareTo": "name", "fields": { - "empty": "void", - "any_fuel": "void", - "item": "varint", - "item_stack": "Slot", - "tag": "string", - "smithing_trim": [ - "container", - [ - { - "name": "base", - "type": "SlotDisplay" - }, - { - "name": "material", - "type": "SlotDisplay" - }, - { - "name": "pattern", - "type": [ - "registryEntryHolder", - { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "ArmorTrimPattern" - } - } - ] - } - ] - ], - "with_remainder": [ - "container", - [ - { - "name": "input", - "type": "SlotDisplay" - }, - { - "name": "remainder", - "type": "SlotDisplay" - } - ] - ], - "composite": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] ], - "RecipeDisplay": [ + "packet_legacy_server_list_ping": [ "container", [ { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "crafting_shapeless", - "1": "crafting_shaped", - "2": "furnace", - "3": "stonecutter", - "4": "smithing" - } - } - ] + "name": "payload", + "type": "u8" + } + ] + ], + "packet_set_protocol": [ + "container", + [ + { + "name": "protocolVersion", + "type": "varint" }, { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "crafting_shapeless": [ - "container", - [ - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "furnace": [ - "container", - [ - { - "name": "ingredient", - "type": "SlotDisplay" - }, - { - "name": "fuel", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "experience", - "type": "f32" - } - ] - ], - "stonecutter": [ - "container", - [ - { - "name": "ingredient", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "smithing": [ - "container", - [ - { - "name": "template", - "type": "SlotDisplay" - }, - { - "name": "base", - "type": "SlotDisplay" - }, - { - "name": "addition", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ] + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" + } + ] + ] + } + } + }, + "status": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] ], - "SpawnInfo": [ + "packet_ping": [ "container", [ { - "name": "dimension", - "type": "varint" - }, + "name": "time", + "type": "i64" + } + ] + ], + "packet_server_info": [ + "container", + [ { - "name": "name", + "name": "response", "type": "string" - }, - { - "name": "hashedSeed", - "type": "i64" - }, + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "gamemode", + "name": "name", "type": [ "mapper", { - "type": "i8", "mappings": { - "0": "survival", - "1": "creative", - "2": "adventure", - "3": "spectator" - } + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" } ] }, { - "name": "previousGamemode", - "type": "u8" - }, - { - "name": "isDebug", - "type": "bool" - }, - { - "name": "isFlat", - "type": "bool" - }, - { - "name": "death", + "name": "params", "type": [ - "option", - [ - "container", - [ - { - "name": "dimensionName", - "type": "string" - }, - { - "name": "location", - "type": "position" - } - ] - ] + "switch", + { + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "ping_start": "packet_ping_start" + } + } ] - }, - { - "name": "portalCooldown", - "type": "varint" - }, + } + ] + ], + "packet_ping": [ + "container", + [ { - "name": "seaLevel", - "type": "varint" + "name": "time", + "type": "i64" } ] ], - "packet_spawn_entity": [ + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request", + "0x05": "cookie_request" + }, + "type": "varint" + } + ] }, { - "name": "objectUUID", - "type": "UUID" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "cookie_request": "packet_common_cookie_request", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ { - "name": "type", + "name": "threshold", "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + } + ] + ], + "packet_disconnect": [ + "container", + [ { - "name": "pitch", - "type": "i8" - }, + "name": "reason", + "type": "string" + } + ] + ], + "packet_encryption_begin": [ + "container", + [ { - "name": "yaw", - "type": "i8" + "name": "serverId", + "type": "string" }, { - "name": "headPitch", - "type": "i8" + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "objectData", - "type": "varint" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "velocity", - "type": "vec3i16" + "name": "shouldAuthenticate", + "type": "bool" } ] ], - "packet_animation": [ + "packet_login_plugin_request": [ "container", [ { - "name": "entityId", + "name": "messageId", "type": "varint" }, { - "name": "animation", - "type": "u8" + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_statistics": [ + "packet_success": [ "container", [ { - "name": "entries", + "name": "uuid", + "type": "UUID" + }, + { + "name": "username", + "type": "string" + }, + { + "name": "properties", "type": [ "array", { @@ -4757,16 +3943,19 @@ "container", [ { - "name": "categoryId", - "type": "varint" + "name": "name", + "type": "string" }, { - "name": "statisticId", - "type": "varint" + "name": "value", + "type": "string" }, { - "name": "value", - "type": "varint" + "name": "signature", + "type": [ + "option", + "string" + ] } ] ] @@ -4774,209 +3963,243 @@ ] } ] - ], - "packet_acknowledge_player_digging": [ - "container", - [ - { - "name": "sequenceId", - "type": "varint" - } - ] - ], - "packet_block_break_animation": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "location", - "type": "position" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response", + "0x03": "login_acknowledged", + "0x04": "cookie_response" + }, + "type": "varint" + } + ] }, { - "name": "destroyStage", - "type": "i8" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "cookie_response": "packet_common_cookie_response", + "encryption_begin": "packet_encryption_begin", + "login_acknowledged": "packet_login_acknowledged", + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" + } + } + ] } ] ], - "packet_tile_entity_data": [ + "packet_encryption_begin": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "nbtData", - "type": "anonOptionalNbt" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_block_action": [ + "packet_login_acknowledged": [ + "container", + [] + ], + "packet_login_plugin_response": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "byte1", - "type": "u8" - }, - { - "name": "byte2", - "type": "u8" + "name": "messageId", + "type": "varint" }, { - "name": "blockId", - "type": "varint" + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_block_change": [ + "packet_login_start": [ "container", [ { - "name": "location", - "type": "position" + "name": "username", + "type": "string" }, { - "name": "type", - "type": "varint" + "name": "playerUUID", + "type": "UUID" } ] - ], - "packet_boss_bar": [ + ] + } + } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "title", + "name": "name", "type": [ - "switch", + "mapper", { - "compareTo": "action", - "fields": { - "0": "anonymousNbt", - "3": "anonymousNbt" + "mappings": { + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links", + "0x11": "clear_dialog", + "0x12": "show_dialog" }, - "default": "void" + "type": "varint" } ] }, { - "name": "health", + "name": "params", "type": [ "switch", { - "compareTo": "action", + "compareTo": "name", "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" + "add_resource_pack": "packet_common_add_resource_pack", + "clear_dialog": "packet_common_clear_dialog", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "show_dialog": "packet_show_dialog", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" + } } ] - }, + } + ] + ], + "packet_custom_payload": [ + "container", + [ { - "name": "color", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "channel", + "type": "string" }, { - "name": "dividers", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_disconnect": [ + "container", + [ { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] + "name": "reason", + "type": "anonymousNbt" } ] ], - "packet_difficulty": [ + "packet_feature_flags": [ "container", [ { - "name": "difficulty", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "peaceful", - "1": "easy", - "2": "normal", - "3": "hard" - } + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" } ] - }, - { - "name": "difficultyLocked", - "type": "bool" } ] ], - "packet_chunk_batch_finished": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "batchSize", - "type": "varint" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_chunk_batch_start": [ + "packet_ping": [ "container", - [] + [ + { + "name": "id", + "type": "i32" + } + ] ], - "packet_chunk_biomes": [ + "packet_registry_data": [ "container", [ { - "name": "biomes", + "name": "id", + "type": "string" + }, + { + "name": "entries", "type": [ "array", { @@ -4985,12 +4208,15 @@ "container", [ { - "name": "position", - "type": "packedChunkPos" + "name": "key", + "type": "string" }, { - "name": "data", - "type": "ByteArray" + "name": "value", + "type": [ + "option", + "anonymousNbt" + ] } ] ] @@ -4999,32 +4225,24 @@ } ] ], - "packet_clear_titles": [ + "packet_reset_chat": [ + "container", + [] + ], + "packet_show_dialog": [ "container", [ { - "name": "reset", - "type": "bool" + "name": "dialog", + "type": "anonymousNbt" } ] ], - "packet_tab_complete": [ + "packet_tags": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", - "type": "varint" - }, - { - "name": "matches", + "name": "tags", "type": [ "array", { @@ -5033,15 +4251,12 @@ "container", [ { - "name": "match", + "name": "tagType", "type": "string" }, { - "name": "tooltip", - "type": [ - "option", - "anonymousNbt" - ] + "name": "tags", + "type": "tags" } ] ] @@ -5049,745 +4264,1388 @@ ] } ] - ], - "packet_declare_commands": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "nodes", + "name": "name", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": "command_node" + "mappings": { + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_click_action" + }, + "type": "varint" } ] }, { - "name": "rootIndex", - "type": "varint" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "cookie_response": "packet_common_cookie_response", + "custom_click_action": "packet_common_custom_click_action", + "custom_payload": "packet_custom_payload", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "select_known_packs": "packet_common_select_known_packs", + "settings": "packet_common_settings" + } + } + ] } ] ], - "packet_close_window": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_window_items": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_pong": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], + "packet_resource_pack_receive": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" }, { - "name": "stateId", + "name": "result", "type": "varint" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "ChatType": [ + "container", + [ + { + "name": "translationKey", + "type": "string" }, { - "name": "items", + "name": "parameters", "type": [ "array", { "countType": "varint", - "type": "Slot" + "type": "ChatTypeParameterType" } ] }, { - "name": "carriedItem", - "type": "Slot" + "name": "style", + "type": "anonymousNbt" } ] ], - "packet_craft_progress_bar": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "property", - "type": "i16" + "ChatTypeParameterType": [ + "mapper", + { + "mappings": { + "0": "content", + "1": "sender", + "2": "target" }, - { - "name": "value", - "type": "i16" - } - ] + "type": "varint" + } ], - "packet_set_slot": [ + "ChatTypes": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" + "name": "chat", + "type": "ChatType" }, { - "name": "item", - "type": "Slot" + "name": "narration", + "type": "ChatType" } ] ], - "packet_set_cooldown": [ + "ChatTypesHolder": [ + "registryEntryHolder", + { + "baseName": "chatType", + "otherwise": { + "name": "data", + "type": "ChatTypes" + } + } + ], + "PositionUpdateRelatives": [ + "bitflags", + { + "flags": [ + "x", + "y", + "z", + "yaw", + "pitch", + "dx", + "dy", + "dz", + "yawDelta" + ], + "type": "u32" + } + ], + "RecipeBookSetting": [ "container", [ { - "name": "cooldownGroup", - "type": "string" + "name": "open", + "type": "bool" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "filtering", + "type": "bool" } ] ], - "packet_chat_suggestions": [ + "RecipeDisplay": [ "container", [ { - "name": "action", - "type": "varint" - }, - { - "name": "entries", + "name": "type", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": "string" + "mappings": { + "0": "crafting_shapeless", + "1": "crafting_shaped", + "2": "furnace", + "3": "stonecutter", + "4": "smithing" + }, + "type": "varint" } ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" }, { "name": "data", - "type": "restBuffer" + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ] + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "crafting_shapeless": [ + "container", + [ + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ] + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "furnace": [ + "container", + [ + { + "name": "ingredient", + "type": "SlotDisplay" + }, + { + "name": "fuel", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "experience", + "type": "f32" + } + ] + ], + "smithing": [ + "container", + [ + { + "name": "template", + "type": "SlotDisplay" + }, + { + "name": "base", + "type": "SlotDisplay" + }, + { + "name": "addition", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "stonecutter": [ + "container", + [ + { + "name": "ingredient", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ] + } + } + ] } ] ], - "packet_damage_event": [ + "SlotDisplay": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "sourceTypeId", - "type": "varint" - }, - { - "name": "sourceCauseId", - "type": "varint" - }, - { - "name": "sourceDirectId", - "type": "varint" + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "empty", + "1": "any_fuel", + "2": "item", + "3": "item_stack", + "4": "tag", + "5": "smithing_trim", + "6": "with_remainder", + "7": "composite" + }, + "type": "varint" + } + ] }, { - "name": "sourcePosition", + "name": "data", "type": [ - "option", - "vec3f64" + "switch", + { + "compareTo": "type", + "fields": { + "any_fuel": "void", + "composite": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ], + "empty": "void", + "item": "varint", + "item_stack": "Slot", + "smithing_trim": [ + "container", + [ + { + "name": "base", + "type": "SlotDisplay" + }, + { + "name": "material", + "type": "SlotDisplay" + }, + { + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "ArmorTrimPattern" + } + } + ] + } + ] + ], + "tag": "string", + "with_remainder": [ + "container", + [ + { + "name": "input", + "type": "SlotDisplay" + }, + { + "name": "remainder", + "type": "SlotDisplay" + } + ] + ] + } + } ] } ] ], - "packet_debug_sample": [ + "SpawnInfo": [ "container", [ { - "name": "sample", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "dimension", + "type": "varint" }, { - "name": "type", - "type": "varint" - } - ] - ], - "packet_hide_message": [ - "container", - [ + "name": "name", + "type": "string" + }, { - "name": "id", - "type": "varint" + "name": "hashedSeed", + "type": "i64" }, { - "name": "signature", + "name": "gamemode", "type": [ - "switch", + "mapper", { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] + "mappings": { + "0": "survival", + "1": "creative", + "2": "adventure", + "3": "spectator" }, - "default": "void" + "type": "i8" } ] - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ + }, { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "ChatTypeParameterType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "content", - "1": "sender", - "2": "target" - } - } - ], - "ChatType": [ - "container", - [ + "name": "previousGamemode", + "type": "u8" + }, { - "name": "translationKey", - "type": "string" + "name": "isDebug", + "type": "bool" }, { - "name": "parameters", + "name": "isFlat", + "type": "bool" + }, + { + "name": "death", "type": [ - "array", - { - "countType": "varint", - "type": "ChatTypeParameterType" - } + "option", + [ + "container", + [ + { + "name": "dimensionName", + "type": "string" + }, + { + "name": "location", + "type": "position" + } + ] + ] ] }, { - "name": "style", - "type": "anonymousNbt" - } - ] - ], - "ChatTypes": [ - "container", - [ - { - "name": "chat", - "type": "ChatType" + "name": "portalCooldown", + "type": "varint" }, { - "name": "narration", - "type": "ChatType" + "name": "seaLevel", + "type": "varint" } ] ], - "ChatTypesHolder": [ - "registryEntryHolder", - { - "baseName": "chatType", - "otherwise": { - "name": "data", - "type": "ChatTypes" - } - } - ], - "packet_profileless_chat": [ + "packet": [ "container", [ - { - "name": "message", - "type": "anonymousNbt" - }, - { - "name": "type", - "type": "ChatTypesHolder" - }, { "name": "name", - "type": "anonymousNbt" - }, - { - "name": "target", "type": [ - "option", - "anonymousNbt" + "mapper", + { + "mappings": { + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "animation", + "0x03": "statistics", + "0x04": "acknowledge_player_digging", + "0x05": "block_break_animation", + "0x06": "tile_entity_data", + "0x07": "block_action", + "0x08": "block_change", + "0x09": "boss_bar", + "0x0a": "difficulty", + "0x0b": "chunk_batch_finished", + "0x0c": "chunk_batch_start", + "0x0d": "chunk_biomes", + "0x0e": "clear_titles", + "0x0f": "tab_complete", + "0x10": "declare_commands", + "0x11": "close_window", + "0x12": "window_items", + "0x13": "craft_progress_bar", + "0x14": "set_slot", + "0x15": "cookie_request", + "0x16": "set_cooldown", + "0x17": "chat_suggestions", + "0x18": "custom_payload", + "0x19": "damage_event", + "0x1a": "debug_sample", + "0x1b": "hide_message", + "0x1c": "kick_disconnect", + "0x1d": "profileless_chat", + "0x1e": "entity_status", + "0x1f": "sync_entity_position", + "0x20": "explosion", + "0x21": "unload_chunk", + "0x22": "game_state_change", + "0x23": "open_horse_window", + "0x24": "hurt_animation", + "0x25": "initialize_world_border", + "0x26": "keep_alive", + "0x27": "map_chunk", + "0x28": "world_event", + "0x29": "world_particles", + "0x2a": "update_light", + "0x2b": "login", + "0x2c": "map", + "0x2d": "trade_list", + "0x2e": "rel_entity_move", + "0x2f": "entity_move_look", + "0x30": "move_minecart", + "0x31": "entity_look", + "0x32": "vehicle_move", + "0x33": "open_book", + "0x34": "open_window", + "0x35": "open_sign_entity", + "0x36": "ping", + "0x37": "ping_response", + "0x38": "craft_recipe_response", + "0x39": "abilities", + "0x3a": "player_chat", + "0x3b": "end_combat_event", + "0x3c": "enter_combat_event", + "0x3d": "death_combat_event", + "0x3e": "player_remove", + "0x3f": "player_info", + "0x40": "face_player", + "0x41": "position", + "0x42": "player_rotation", + "0x43": "recipe_book_add", + "0x44": "recipe_book_remove", + "0x45": "recipe_book_settings", + "0x46": "entity_destroy", + "0x47": "remove_entity_effect", + "0x48": "reset_score", + "0x49": "remove_resource_pack", + "0x4a": "add_resource_pack", + "0x4b": "respawn", + "0x4c": "entity_head_rotation", + "0x4d": "multi_block_change", + "0x4e": "select_advancement_tab", + "0x4f": "server_data", + "0x50": "action_bar", + "0x51": "world_border_center", + "0x52": "world_border_lerp_size", + "0x53": "world_border_size", + "0x54": "world_border_warning_delay", + "0x55": "world_border_warning_reach", + "0x56": "camera", + "0x57": "update_view_position", + "0x58": "update_view_distance", + "0x59": "set_cursor_item", + "0x5a": "spawn_position", + "0x5b": "scoreboard_display_objective", + "0x5c": "entity_metadata", + "0x5d": "attach_entity", + "0x5e": "entity_velocity", + "0x5f": "entity_equipment", + "0x60": "experience", + "0x61": "update_health", + "0x62": "held_item_slot", + "0x63": "scoreboard_objective", + "0x64": "set_passengers", + "0x65": "set_player_inventory", + "0x66": "teams", + "0x67": "scoreboard_score", + "0x68": "simulation_distance", + "0x69": "set_title_subtitle", + "0x6a": "update_time", + "0x6b": "set_title_text", + "0x6c": "set_title_time", + "0x6d": "entity_sound_effect", + "0x6e": "sound_effect", + "0x6f": "start_configuration", + "0x70": "stop_sound", + "0x71": "store_cookie", + "0x72": "system_chat", + "0x73": "playerlist_header", + "0x74": "nbt_query_response", + "0x75": "collect", + "0x76": "entity_teleport", + "0x77": "test_instance_block_status", + "0x78": "set_ticking_state", + "0x79": "step_tick", + "0x7a": "transfer", + "0x7b": "advancements", + "0x7c": "entity_update_attributes", + "0x7d": "entity_effect", + "0x7e": "declare_recipes", + "0x7f": "tags", + "0x80": "set_projectile_power", + "0x81": "custom_report_details", + "0x82": "server_links", + "0x83": "tracked_waypoint", + "0x84": "clear_dialog", + "0x85": "show_dialog" + }, + "type": "varint" + } ] - } - ] - ], - "packet_entity_status": [ - "container", - [ - { - "name": "entityId", - "type": "i32" - }, - { - "name": "entityStatus", - "type": "i8" - } - ] - ], - "packet_sync_entity_position": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "dx", - "type": "f64" - }, - { - "name": "dy", - "type": "f64" - }, - { - "name": "dz", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_explosion": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" }, { - "name": "playerKnockback", + "name": "params", "type": [ - "option", - "vec3f64" + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "add_resource_pack": "packet_common_add_resource_pack", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "bundle_delimiter": "void", + "camera": "packet_camera", + "chat_suggestions": "packet_chat_suggestions", + "chunk_batch_finished": "packet_chunk_batch_finished", + "chunk_batch_start": "packet_chunk_batch_start", + "chunk_biomes": "packet_chunk_biomes", + "clear_dialog": "packet_common_clear_dialog", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "cookie_request": "packet_common_cookie_request", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "damage_event": "packet_damage_event", + "death_combat_event": "packet_death_combat_event", + "debug_sample": "packet_debug_sample", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "hide_message": "packet_hide_message", + "hurt_animation": "packet_hurt_animation", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "move_minecart": "packet_move_minecart", + "multi_block_change": "packet_multi_block_change", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "ping_response": "packet_ping_response", + "player_chat": "packet_player_chat", + "player_info": "packet_player_info", + "player_remove": "packet_player_remove", + "player_rotation": "packet_player_rotation", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "profileless_chat": "packet_profileless_chat", + "recipe_book_add": "packet_recipe_book_add", + "recipe_book_remove": "packet_recipe_book_remove", + "recipe_book_settings": "packet_recipe_book_settings", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_score": "packet_reset_score", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "server_data": "packet_server_data", + "server_links": "packet_common_server_links", + "set_cooldown": "packet_set_cooldown", + "set_cursor_item": "packet_set_cursor_item", + "set_passengers": "packet_set_passengers", + "set_player_inventory": "packet_set_player_inventory", + "set_projectile_power": "packet_set_projectile_power", + "set_slot": "packet_set_slot", + "set_ticking_state": "packet_set_ticking_state", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "show_dialog": "packet_show_dialog", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_position": "packet_spawn_position", + "start_configuration": "packet_start_configuration", + "statistics": "packet_statistics", + "step_tick": "packet_step_tick", + "stop_sound": "packet_stop_sound", + "store_cookie": "packet_common_store_cookie", + "sync_entity_position": "packet_sync_entity_position", + "system_chat": "packet_system_chat", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "test_instance_block_status": "packet_test_instance_block_status", + "tile_entity_data": "packet_tile_entity_data", + "tracked_waypoint": "packet_tracked_waypoint", + "trade_list": "packet_trade_list", + "transfer": "packet_common_transfer", + "unload_chunk": "packet_unload_chunk", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } ] + } + ] + ], + "packet_abilities": [ + "container", + [ + { + "name": "flags", + "type": "i8" }, { - "name": "explosionParticle", - "type": "Particle" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "sound", - "type": "ItemSoundHolder" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_unload_chunk": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "chunkZ", - "type": "i32" - }, + "name": "sequenceId", + "type": "varint" + } + ] + ], + "packet_action_bar": [ + "container", + [ { - "name": "chunkX", - "type": "i32" + "name": "text", + "type": "anonymousNbt" } ] ], - "packet_game_state_change": [ + "packet_advancements": [ "container", [ { - "name": "reason", + "name": "reset", + "type": "bool" + }, + { + "name": "advancementMapping", "type": [ - "mapper", + "array", { - "type": "u8", - "mappings": { - "0": "no_respawn_block_available", - "1": "start_raining", - "2": "stop_raining", - "3": "change_game_mode", - "4": "win_game", - "5": "demo_event", - "6": "play_arrow_hit_sound", - "7": "rain_level_change", - "8": "thunder_level_change", - "9": "puffer_fish_sting", - "10": "guardian_elder_effect", - "11": "immediate_respawn", - "12": "limited_crafting", - "13": "level_chunks_load_start" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "container", + [ + { + "name": "parentId", + "type": [ + "option", + "string" + ] + }, + { + "name": "displayData", + "type": [ + "option", + [ + "container", + [ + { + "name": "title", + "type": "anonymousNbt" + }, + { + "name": "description", + "type": "anonymousNbt" + }, + { + "name": "icon", + "type": "Slot" + }, + { + "name": "frameType", + "type": "varint" + }, + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 29 + }, + { + "name": "hidden", + "signed": false, + "size": 1 + }, + { + "name": "show_toast", + "signed": false, + "size": 1 + }, + { + "name": "has_background_texture", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "backgroundTexture", + "type": [ + "switch", + { + "compareTo": "flags/has_background_texture", + "default": "void", + "fields": { + "1": "string" + } + } + ] + }, + { + "name": "xCord", + "type": "f32" + }, + { + "name": "yCord", + "type": "f32" + } + ] + ] + ] + }, + { + "name": "requirements", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + }, + { + "name": "sendsTelemtryData", + "type": "bool" + } + ] + ] + } + ] + ] } ] }, { - "name": "gameMode", - "type": "f32" + "name": "identifiers", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "progressMapping", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "criterionIdentifier", + "type": "string" + }, + { + "name": "criterionProgress", + "type": [ + "option", + "i64" + ] + } + ] + ] + } + ] + } + ] + ] + } + ] + }, + { + "name": "showAdvancements", + "type": "bool" } ] ], - "packet_open_horse_window": [ + "packet_animation": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "nbSlots", + "name": "entityId", "type": "varint" }, { - "name": "entityId", - "type": "i32" + "name": "animation", + "type": "u8" } ] ], - "packet_hurt_animation": [ + "packet_attach_entity": [ "container", [ { "name": "entityId", - "type": "varint" + "type": "i32" }, { - "name": "yaw", - "type": "f32" + "name": "vehicleId", + "type": "i32" } ] ], - "packet_initialize_world_border": [ + "packet_block_action": [ "container", - [ - { - "name": "x", - "type": "f64" - }, + [ { - "name": "z", - "type": "f64" + "name": "location", + "type": "position" }, { - "name": "oldDiameter", - "type": "f64" + "name": "byte1", + "type": "u8" }, { - "name": "newDiameter", - "type": "f64" + "name": "byte2", + "type": "u8" }, { - "name": "speed", + "name": "blockId", "type": "varint" - }, + } + ] + ], + "packet_block_break_animation": [ + "container", + [ { - "name": "portalTeleportBoundary", + "name": "entityId", "type": "varint" }, { - "name": "warningBlocks", - "type": "varint" + "name": "location", + "type": "position" }, { - "name": "warningTime", - "type": "varint" + "name": "destroyStage", + "type": "i8" } ] ], - "packet_keep_alive": [ + "packet_block_change": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "location", + "type": "position" + }, + { + "name": "type", + "type": "varint" } ] ], - "packet_map_chunk": [ + "packet_boss_bar": [ "container", [ { - "name": "x", - "type": "i32" + "name": "entityUUID", + "type": "UUID" }, { - "name": "z", - "type": "i32" + "name": "action", + "type": "varint" }, { - "name": "heightmaps", + "name": "title", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "world_surface_wg", - "1": "world_surface", - "2": "ocean_floor_wg", - "3": "ocean_floor", - "4": "motion_blocking", - "5": "motion_blocking_no_leaves" - } - } - ] - }, - { - "name": "data", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "anonymousNbt", + "3": "anonymousNbt" + } } ] }, { - "name": "chunkData", - "type": "ByteArray" - }, - { - "name": "blockEntities", + "name": "health", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "chunkBlockEntity" + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } } ] }, { - "name": "skyLightMask", + "name": "color", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } } ] }, { - "name": "blockLightMask", + "name": "dividers", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } } ] }, { - "name": "emptySkyLightMask", + "name": "flags", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } } ] - }, + } + ] + ], + "packet_camera": [ + "container", + [ { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat_suggestions": [ + "container", + [ + { + "name": "action", + "type": "varint" }, { - "name": "skyLight", + "name": "entries", "type": [ "array", { "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] + "type": "string" } ] - }, + } + ] + ], + "packet_chunk_batch_finished": [ + "container", + [ { - "name": "blockLight", + "name": "batchSize", + "type": "varint" + } + ] + ], + "packet_chunk_batch_start": [ + "container", + [] + ], + "packet_chunk_biomes": [ + "container", + [ + { + "name": "biomes", "type": [ "array", { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } + "container", + [ + { + "name": "position", + "type": "packedChunkPos" + }, + { + "name": "data", + "type": "ByteArray" + } + ] ] } ] } ] ], - "packet_world_event": [ + "packet_clear_titles": [ "container", [ { - "name": "effectId", - "type": "i32" + "name": "reset", + "type": "bool" + } + ] + ], + "packet_close_window": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", + "type": "varint" }, { - "name": "location", - "type": "position" + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" }, { - "name": "data", - "type": "i32" + "name": "property", + "type": "i16" }, { - "name": "global", - "type": "bool" + "name": "value", + "type": "i16" } ] ], - "packet_world_particles": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "longDistance", - "type": "bool" - }, - { - "name": "alwaysShow", - "type": "bool" - }, - { - "name": "x", - "type": "f64" + "name": "windowId", + "type": "ContainerID" }, { - "name": "y", - "type": "f64" - }, + "name": "recipeDisplay", + "type": "RecipeDisplay" + } + ] + ], + "packet_custom_payload": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "channel", + "type": "string" }, { - "name": "offsetX", - "type": "f32" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_damage_event": [ + "container", + [ { - "name": "offsetY", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "offsetZ", - "type": "f32" + "name": "sourceTypeId", + "type": "varint" }, { - "name": "velocityOffset", - "type": "f32" + "name": "sourceCauseId", + "type": "varint" }, { - "name": "amount", - "type": "i32" + "name": "sourceDirectId", + "type": "varint" }, { - "name": "particle", - "type": "Particle" + "name": "sourcePosition", + "type": [ + "option", + "vec3f64" + ] } ] ], - "packet_update_light": [ + "packet_death_combat_event": [ "container", [ { - "name": "chunkX", + "name": "playerId", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" - }, + "name": "message", + "type": "anonymousNbt" + } + ] + ], + "packet_debug_sample": [ + "container", + [ { - "name": "skyLightMask", + "name": "sample", "type": [ "array", { @@ -5797,251 +5655,356 @@ ] }, { - "name": "blockLightMask", + "name": "type", + "type": "varint" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", "type": [ "array", { "countType": "varint", - "type": "i64" + "type": "command_node" } ] }, { - "name": "emptySkyLightMask", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { "countType": "varint", - "type": "i64" + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "items", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] } ] }, { - "name": "emptyBlockLightMask", + "name": "stoneCutterRecipes", "type": [ "array", { "countType": "varint", - "type": "i64" + "type": [ + "container", + [ + { + "name": "input", + "type": "IDSet" + }, + { + "name": "slotDisplay", + "type": "SlotDisplay" + } + ] + ] + } + ] + } + ] + ], + "packet_difficulty": [ + "container", + [ + { + "name": "difficulty", + "type": [ + "mapper", + { + "mappings": { + "0": "peaceful", + "1": "easy", + "2": "normal", + "3": "hard" + }, + "type": "varint" } ] }, { - "name": "skyLight", + "name": "difficultyLocked", + "type": "bool" + } + ] + ], + "packet_end_combat_event": [ + "container", + [ + { + "name": "duration", + "type": "varint" + } + ] + ], + "packet_enter_combat_event": [ + "container", + [] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] + "type": "varint" } ] + } + ] + ], + "packet_entity_effect": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "blockLight", + "name": "effectId", + "type": "varint" + }, + { + "name": "amplifier", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] + ], + "packet_entity_equipment": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "Slot" + } + ] ] } ] } ] ], - "packet_login": [ + "packet_entity_head_rotation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "isHardcore", - "type": "bool" + "name": "yaw", + "type": "i8" }, { - "name": "worldNames", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "maxPlayers", + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_metadata": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "viewDistance", + "name": "metadata", + "type": "entityMetadata" + } + ] + ], + "packet_entity_move_look": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "simulationDistance", - "type": "varint" + "name": "dX", + "type": "i16" }, { - "name": "reducedDebugInfo", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "enableRespawnScreen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "doLimitedCrafting", - "type": "bool" + "name": "yaw", + "type": "i8" }, { - "name": "worldState", - "type": "SpawnInfo" + "name": "pitch", + "type": "i8" }, { - "name": "enforcesSecureChat", + "name": "onGround", "type": "bool" } ] ], - "packet_map": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "itemDamage", - "type": "varint" + "name": "sound", + "type": "ItemSoundHolder" }, { - "name": "scale", - "type": "i8" + "name": "soundCategory", + "type": "soundSource" }, { - "name": "locked", - "type": "bool" + "name": "entityId", + "type": "varint" }, { - "name": "icons", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "i8" - }, - { - "name": "z", - "type": "i8" - }, - { - "name": "direction", - "type": "u8" - }, - { - "name": "displayName", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] - ] + "name": "volume", + "type": "f32" }, { - "name": "columns", - "type": "u8" + "name": "pitch", + "type": "f32" }, { - "name": "rows", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "name": "seed", + "type": "i64" + } + ] + ], + "packet_entity_status": [ + "container", + [ + { + "name": "entityId", + "type": "i32" + }, + { + "name": "entityStatus", + "type": "i8" + } + ] + ], + "packet_entity_teleport": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { "name": "x", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "type": "f64" }, { "name": "y", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "type": "f64" }, { - "name": "data", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_trade_list": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "entityId", + "type": "varint" }, { - "name": "trades", + "name": "properties", "type": [ "array", { @@ -6050,205 +6013,268 @@ "container", [ { - "name": "inputItem1", + "name": "key", "type": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" + "mapper", + { + "mappings": { + "0": "generic.armor", + "1": "generic.armor_toughness", + "2": "generic.attack_damage", + "3": "generic.attack_knockback", + "4": "generic.attack_speed", + "5": "player.block_break_speed", + "6": "player.block_interaction_range", + "7": "burning_time", + "8": "camera_distance", + "9": "explosion_knockback_resistance", + "10": "player.entity_interaction_range", + "11": "generic.fall_damage_multiplier", + "12": "generic.flying_speed", + "13": "generic.follow_range", + "14": "generic.gravity", + "15": "generic.jump_strength", + "16": "generic.knockback_resistance", + "17": "generic.luck", + "18": "generic.max_absorption", + "19": "generic.max_health", + "20": "generic.movement_speed", + "21": "generic.safe_fall_distance", + "22": "generic.scale", + "23": "zombie.spawn_reinforcements", + "24": "generic.step_height", + "25": "submerged_mining_speed", + "26": "sweeping_damage_ratio", + "27": "tempt_range", + "28": "water_movement_efficiency", + "29": "waypoint_transmit_range", + "30": "waypoint_receive_range" }, - { - "name": "components", - "type": "ExactComponentMatcher" - } - ] + "type": "varint" + } ] }, { - "name": "outputItem", - "type": "Slot" + "name": "value", + "type": "f64" }, { - "name": "inputItem2", + "name": "modifiers", "type": [ - "option", - [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" - }, - { - "name": "components", - "type": "ExactComponentMatcher" - } + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] ] - ] + } ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" } ] ] } ] - }, + } + ] + ], + "packet_entity_velocity": [ + "container", + [ { - "name": "villagerLevel", + "name": "entityId", "type": "varint" }, { - "name": "experience", - "type": "varint" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" }, { - "name": "isRegularVillager", - "type": "bool" + "name": "level", + "type": "varint" }, { - "name": "canRestock", - "type": "bool" + "name": "totalExperience", + "type": "varint" } ] ], - "packet_rel_entity_move": [ + "packet_explosion": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "dX", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "dY", - "type": "i16" + "name": "z", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "playerKnockback", + "type": [ + "option", + "vec3f64" + ] }, { - "name": "onGround", - "type": "bool" + "name": "explosionParticle", + "type": "Particle" + }, + { + "name": "sound", + "type": "ItemSoundHolder" } ] ], - "packet_entity_move_look": [ + "packet_face_player": [ "container", [ { - "name": "entityId", + "name": "feet_eyes", "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dY", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "z", + "type": "f64" }, { - "name": "yaw", - "type": "i8" + "name": "isEntity", + "type": "bool" }, { - "name": "pitch", - "type": "i8" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "entity_feet_eyes", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] } ] ], - "packet_move_minecart": [ + "packet_game_state_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "steps", + "name": "reason", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "position", - "type": "vec3f" - }, - { - "name": "movement", - "type": "vec3f" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, + "mappings": { + "0": "no_respawn_block_available", + "1": "start_raining", + "2": "stop_raining", + "3": "change_game_mode", + "4": "win_game", + "5": "demo_event", + "6": "play_arrow_hit_sound", + "7": "rain_level_change", + "8": "thunder_level_change", + "9": "puffer_fish_sting", + "10": "guardian_elder_effect", + "11": "immediate_respawn", + "12": "limited_crafting", + "13": "level_chunks_load_start" + }, + "type": "u8" + } + ] + }, + { + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] + ], + "packet_hide_message": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "signature", + "type": [ + "switch", + { + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", { - "name": "weight", - "type": "f32" + "count": 256 } ] - ] + } } ] } ] ], - "packet_entity_look": [ + "packet_hurt_animation": [ "container", [ { @@ -6257,19 +6283,11 @@ }, { "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "type": "f32" } ] ], - "packet_vehicle_move": [ + "packet_initialize_world_border": [ "container", [ { @@ -6277,265 +6295,375 @@ "type": "f64" }, { - "name": "y", + "name": "z", "type": "f64" }, { - "name": "z", + "name": "oldDiameter", "type": "f64" }, { - "name": "yaw", - "type": "f32" + "name": "newDiameter", + "type": "f64" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_open_book": [ - "container", - [ - { - "name": "hand", + "name": "speed", "type": "varint" - } - ] - ], - "packet_open_window": [ - "container", - [ + }, { - "name": "windowId", + "name": "portalTeleportBoundary", "type": "varint" }, { - "name": "inventoryType", + "name": "warningBlocks", "type": "varint" }, { - "name": "windowTitle", - "type": "anonymousNbt" + "name": "warningTime", + "type": "varint" } ] ], - "packet_open_sign_entity": [ + "packet_keep_alive": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "isFrontText", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_ping": [ + "packet_kick_disconnect": [ "container", [ { - "name": "id", - "type": "i32" + "name": "reason", + "type": "anonymousNbt" } ] ], - "packet_ping_response": [ + "packet_login": [ "container", [ { - "name": "id", - "type": "i64" - } - ] - ], - "packet_craft_recipe_response": [ - "container", - [ + "name": "entityId", + "type": "i32" + }, { - "name": "windowId", - "type": "ContainerID" + "name": "isHardcore", + "type": "bool" }, { - "name": "recipeDisplay", - "type": "RecipeDisplay" - } - ] - ], - "packet_abilities": [ - "container", - [ + "name": "worldNames", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, { - "name": "flags", - "type": "i8" + "name": "maxPlayers", + "type": "varint" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "viewDistance", + "type": "varint" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "simulationDistance", + "type": "varint" + }, + { + "name": "reducedDebugInfo", + "type": "bool" + }, + { + "name": "enableRespawnScreen", + "type": "bool" + }, + { + "name": "doLimitedCrafting", + "type": "bool" + }, + { + "name": "worldState", + "type": "SpawnInfo" + }, + { + "name": "enforcesSecureChat", + "type": "bool" } ] ], - "packet_player_chat": [ + "packet_map": [ "container", [ { - "name": "globalIndex", + "name": "itemDamage", "type": "varint" }, { - "name": "senderUuid", - "type": "UUID" + "name": "scale", + "type": "i8" }, { - "name": "index", - "type": "varint" + "name": "locked", + "type": "bool" }, { - "name": "signature", + "name": "icons", "type": [ "option", [ - "buffer", + "array", { - "count": 256 + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + }, + { + "name": "direction", + "type": "u8" + }, + { + "name": "displayName", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] } ] ] - }, + }, + { + "name": "columns", + "type": "u8" + }, + { + "name": "rows", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } + } + ] + } + ] + ], + "packet_map_chunk": [ + "container", + [ { - "name": "plainMessage", - "type": "string" + "name": "x", + "type": "i32" }, { - "name": "timestamp", - "type": "i64" + "name": "z", + "type": "i32" }, { - "name": "salt", - "type": "i64" + "name": "heightmaps", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "world_surface_wg", + "1": "world_surface", + "2": "ocean_floor_wg", + "3": "ocean_floor", + "4": "motion_blocking", + "5": "motion_blocking_no_leaves" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + } + ] + ] + } + ] }, { - "name": "previousMessages", - "type": "previousMessages" + "name": "chunkData", + "type": "ByteArray" }, { - "name": "unsignedChatContent", + "name": "blockEntities", "type": [ - "option", - "anonymousNbt" + "array", + { + "countType": "varint", + "type": "chunkBlockEntity" + } ] }, { - "name": "filterType", - "type": "varint" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "filterTypeMask", + "name": "blockLightMask", "type": [ - "switch", + "array", { - "compareTo": "filterType", - "fields": { - "2": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - "default": "void" + "countType": "varint", + "type": "i64" } ] }, { - "name": "type", - "type": "ChatTypesHolder" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "networkName", - "type": "anonymousNbt" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "networkTargetName", + "name": "skyLight", "type": [ - "option", - "anonymousNbt" + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } ] - } - ] - ], - "packet_end_combat_event": [ - "container", - [ - { - "name": "duration", - "type": "varint" - } - ] - ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ - "container", - [ - { - "name": "playerId", - "type": "varint" }, { - "name": "message", - "type": "anonymousNbt" - } - ] - ], - "packet_player_remove": [ - "container", - [ - { - "name": "players", + "name": "blockLight", "type": [ "array", { "countType": "varint", - "type": "UUID" + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] } ] } ] ], - "packet_player_info": [ + "packet_move_minecart": [ "container", [ { - "name": "action", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name", - "update_hat", - "update_list_order" - ] - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "data", + "name": "steps", "type": [ "array", { @@ -6543,116 +6671,25 @@ "type": [ "container", [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "player", - "type": [ - "switch", - { - "compareTo": "../action/add_player", - "fields": { - "true": "game_profile" - }, - "default": "void" - } - ] - }, - { - "name": "chatSession", - "type": [ - "switch", - { - "compareTo": "../action/initialize_chat", - "fields": { - "true": "chat_session" - }, - "default": "void" - } - ] - }, - { - "name": "gamemode", - "type": [ - "switch", - { - "compareTo": "../action/update_game_mode", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "listed", - "type": [ - "switch", - { - "compareTo": "../action/update_listed", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "latency", - "type": [ - "switch", - { - "compareTo": "../action/update_latency", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] + { + "name": "position", + "type": "vec3f" }, { - "name": "displayName", - "type": [ - "switch", - { - "compareTo": "../action/update_display_name", - "fields": { - "true": [ - "option", - "anonymousNbt" - ] - }, - "default": "void" - } - ] + "name": "movement", + "type": "vec3f" }, { - "name": "listPriority", - "type": [ - "switch", - { - "compareTo": "../action/update_list_order", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "f32" }, { - "name": "showHat", - "type": [ - "switch", - { - "compareTo": "../action/update_hat", - "fields": { - "true": "bool" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "f32" + }, + { + "name": "weight", + "type": "f32" } ] ] @@ -6661,543 +6698,610 @@ } ] ], - "packet_face_player": [ + "packet_multi_block_change": [ "container", [ { - "name": "feet_eyes", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, - { - "name": "entityId", + "name": "chunkCoordinates", "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 }, - "default": "void" - } + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] ] }, { - "name": "entity_feet_eyes", + "name": "records", "type": [ - "switch", + "array", { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] } ] ], - "PositionUpdateRelatives": [ - "bitflags", - { - "type": "u32", - "flags": [ - "x", - "y", - "z", - "yaw", - "pitch", - "dx", - "dy", - "dz", - "yawDelta" - ] - } - ], - "packet_position": [ + "packet_nbt_query_response": [ "container", [ { - "name": "teleportId", + "name": "transactionId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "dx", - "type": "f64" - }, - { - "name": "dy", - "type": "f64" - }, - { - "name": "dz", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "flags", - "type": "PositionUpdateRelatives" + "name": "nbt", + "type": "anonOptionalNbt" } ] ], - "packet_player_rotation": [ + "packet_open_book": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "hand", + "type": "varint" } ] ], - "packet_recipe_book_add": [ + "packet_open_horse_window": [ "container", [ { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "recipe", - "type": [ - "container", - [ - { - "name": "displayId", - "type": "varint" - }, - { - "name": "display", - "type": "RecipeDisplay" - }, - { - "name": "group", - "type": "optvarint" - }, - { - "name": "category", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "crafting_building_blocks", - "1": "crafting_redstone", - "2": "crafting_equipment", - "3": "crafting_misc", - "4": "furnace_food", - "5": "furnace_blocks", - "6": "furnace_misc", - "7": "blast_furnace_blocks", - "8": "blast_furnace_misc", - "9": "smoker_food", - "10": "stonecutter", - "11": "smithing", - "12": "campfire" - } - } - ] - }, - { - "name": "craftingRequirements", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": "IDSet" - } - ] - ] - } - ] - ] - }, - { - "name": "flags", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "notification", - "highlight" - ] - } - ] - } - ] - ] - } - ] + "name": "windowId", + "type": "ContainerID" }, { - "name": "replace", - "type": "bool" - } - ] - ], - "packet_recipe_book_remove": [ - "container", - [ - { - "name": "recipeIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "RecipeBookSetting": [ + "packet_open_sign_entity": [ "container", [ { - "name": "open", - "type": "bool" + "name": "location", + "type": "position" }, { - "name": "filtering", + "name": "isFrontText", "type": "bool" } ] ], - "packet_recipe_book_settings": [ + "packet_open_window": [ "container", [ { - "name": "crafting", - "type": "RecipeBookSetting" + "name": "windowId", + "type": "varint" }, { - "name": "furnace", - "type": "RecipeBookSetting" + "name": "inventoryType", + "type": "varint" }, { - "name": "blast", - "type": "RecipeBookSetting" - }, + "name": "windowTitle", + "type": "anonymousNbt" + } + ] + ], + "packet_ping": [ + "container", + [ { - "name": "smoker", - "type": "RecipeBookSetting" + "name": "id", + "type": "i32" } ] ], - "packet_entity_destroy": [ + "packet_ping_response": [ "container", [ { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "id", + "type": "i64" } ] ], - "packet_remove_entity_effect": [ + "packet_player_chat": [ "container", [ { - "name": "entityId", + "name": "globalIndex", "type": "varint" }, { - "name": "effectId", + "name": "senderUuid", + "type": "UUID" + }, + { + "name": "index", + "type": "varint" + }, + { + "name": "signature", + "type": [ + "option", + [ + "buffer", + { + "count": 256 + } + ] + ] + }, + { + "name": "plainMessage", + "type": "string" + }, + { + "name": "timestamp", + "type": "i64" + }, + { + "name": "salt", + "type": "i64" + }, + { + "name": "previousMessages", + "type": "previousMessages" + }, + { + "name": "unsignedChatContent", + "type": [ + "option", + "anonymousNbt" + ] + }, + { + "name": "filterType", "type": "varint" + }, + { + "name": "filterTypeMask", + "type": [ + "switch", + { + "compareTo": "filterType", + "default": "void", + "fields": { + "2": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + } + } + ] + }, + { + "name": "type", + "type": "ChatTypesHolder" + }, + { + "name": "networkName", + "type": "anonymousNbt" + }, + { + "name": "networkTargetName", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "packet_reset_score": [ + "packet_player_info": [ "container", [ { - "name": "entity_name", - "type": "string" + "name": "action", + "type": [ + "bitflags", + { + "flags": [ + "add_player", + "initialize_chat", + "update_game_mode", + "update_listed", + "update_latency", + "update_display_name", + "update_hat", + "update_list_order" + ], + "type": "u8" + } + ] }, { - "name": "objective_name", + "name": "data", "type": [ - "option", - "string" + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "player", + "type": [ + "switch", + { + "compareTo": "../action/add_player", + "default": "void", + "fields": { + "true": "game_profile" + } + } + ] + }, + { + "name": "chatSession", + "type": [ + "switch", + { + "compareTo": "../action/initialize_chat", + "default": "void", + "fields": { + "true": "chat_session" + } + } + ] + }, + { + "name": "gamemode", + "type": [ + "switch", + { + "compareTo": "../action/update_game_mode", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "listed", + "type": [ + "switch", + { + "compareTo": "../action/update_listed", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "latency", + "type": [ + "switch", + { + "compareTo": "../action/update_latency", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "displayName", + "type": [ + "switch", + { + "compareTo": "../action/update_display_name", + "default": "void", + "fields": { + "true": [ + "option", + "anonymousNbt" + ] + } + } + ] + }, + { + "name": "listPriority", + "type": [ + "switch", + { + "compareTo": "../action/update_list_order", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "showHat", + "type": [ + "switch", + { + "compareTo": "../action/update_hat", + "default": "void", + "fields": { + "true": "bool" + } + } + ] + } + ] + ] + } ] } ] ], - "packet_respawn": [ - "container", - [ - { - "name": "worldState", - "type": "SpawnInfo" - }, - { - "name": "copyMetadata", - "type": "u8" - } - ] - ], - "packet_entity_head_rotation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "headYaw", - "type": "i8" - } - ] - ], - "packet_multi_block_change": [ + "packet_player_remove": [ "container", [ { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] - }, - { - "name": "records", + "name": "players", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": "UUID" } ] } ] ], - "packet_select_advancement_tab": [ + "packet_player_rotation": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_server_data": [ + "packet_playerlist_header": [ "container", [ { - "name": "motd", + "name": "header", "type": "anonymousNbt" }, { - "name": "iconBytes", - "type": [ - "option", - "ByteArray" - ] - } - ] - ], - "packet_action_bar": [ - "container", - [ - { - "name": "text", + "name": "footer", "type": "anonymousNbt" } ] ], - "packet_world_border_center": [ + "packet_position": [ "container", [ + { + "name": "teleportId", + "type": "varint" + }, { "name": "x", "type": "f64" }, { - "name": "z", + "name": "y", "type": "f64" - } - ] - ], - "packet_world_border_lerp_size": [ - "container", - [ + }, { - "name": "oldDiameter", + "name": "z", "type": "f64" }, { - "name": "newDiameter", + "name": "dx", "type": "f64" }, { - "name": "speed", - "type": "varint" - } - ] - ], - "packet_world_border_size": [ - "container", - [ + "name": "dy", + "type": "f64" + }, { - "name": "diameter", + "name": "dz", "type": "f64" - } - ] - ], - "packet_world_border_warning_delay": [ - "container", - [ + }, { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_world_border_warning_reach": [ - "container", - [ + "name": "yaw", + "type": "f32" + }, { - "name": "warningBlocks", - "type": "varint" + "name": "pitch", + "type": "f32" + }, + { + "name": "flags", + "type": "PositionUpdateRelatives" } ] ], - "packet_camera": [ + "packet_profileless_chat": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "message", + "type": "anonymousNbt" + }, + { + "name": "type", + "type": "ChatTypesHolder" + }, + { + "name": "name", + "type": "anonymousNbt" + }, + { + "name": "target", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "packet_update_view_position": [ + "packet_recipe_book_add": [ "container", [ { - "name": "chunkX", - "type": "varint" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "recipe", + "type": [ + "container", + [ + { + "name": "displayId", + "type": "varint" + }, + { + "name": "display", + "type": "RecipeDisplay" + }, + { + "name": "group", + "type": "optvarint" + }, + { + "name": "category", + "type": [ + "mapper", + { + "mappings": { + "0": "crafting_building_blocks", + "1": "crafting_redstone", + "2": "crafting_equipment", + "3": "crafting_misc", + "4": "furnace_food", + "5": "furnace_blocks", + "6": "furnace_misc", + "7": "blast_furnace_blocks", + "8": "blast_furnace_misc", + "9": "smoker_food", + "10": "stonecutter", + "11": "smithing", + "12": "campfire" + }, + "type": "varint" + } + ] + }, + { + "name": "craftingRequirements", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": "IDSet" + } + ] + ] + } + ] + ] + }, + { + "name": "flags", + "type": [ + "bitflags", + { + "flags": [ + "notification", + "highlight" + ], + "type": "u8" + } + ] + } + ] + ] + } + ] }, { - "name": "chunkZ", - "type": "varint" - } - ] - ], - "packet_update_view_distance": [ - "container", - [ - { - "name": "viewDistance", - "type": "varint" + "name": "replace", + "type": "bool" } ] ], - "packet_set_cursor_item": [ + "packet_recipe_book_remove": [ "container", [ { - "name": "contents", - "type": "Slot" + "name": "recipeIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_spawn_position": [ + "packet_recipe_book_settings": [ "container", [ { - "name": "location", - "type": "position" + "name": "crafting", + "type": "RecipeBookSetting" }, { - "name": "angle", - "type": "f32" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + "name": "furnace", + "type": "RecipeBookSetting" + }, { - "name": "position", - "type": "varint" + "name": "blast", + "type": "RecipeBookSetting" }, { - "name": "name", - "type": "string" + "name": "smoker", + "type": "RecipeBookSetting" } ] ], - "packet_entity_metadata": [ + "packet_rel_entity_move": [ "container", [ { @@ -7205,25 +7309,24 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "entityId", - "type": "i32" + "name": "dY", + "type": "i16" }, { - "name": "vehicleId", - "type": "i32" + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_entity_velocity": [ + "packet_remove_entity_effect": [ "container", [ { @@ -7231,81 +7334,50 @@ "type": "varint" }, { - "name": "velocity", - "type": "vec3i16" + "name": "effectId", + "type": "varint" } ] ], - "packet_entity_equipment": [ + "packet_reset_score": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entity_name", + "type": "string" }, { - "name": "equipments", + "name": "objective_name", "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } + "option", + "string" ] } ] ], - "packet_experience": [ + "packet_respawn": [ "container", [ { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" + "name": "worldState", + "type": "SpawnInfo" }, { - "name": "totalExperience", - "type": "varint" + "name": "copyMetadata", + "type": "u8" } ] ], - "packet_update_health": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", + "name": "position", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ - { - "name": "slot", - "type": "varint" + "name": "name", + "type": "string" } ] ], @@ -7326,309 +7398,79 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" - } - ] - }, - { - "name": "type", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "number_format", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "option", - "varint" - ], - "2": [ - "option", - "varint" - ] - }, - "default": "void" - } - ] - }, - { - "name": "styling", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "switch", - { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ], - "2": [ - "switch", - { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_set_passengers": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_set_player_inventory": [ - "container", - [ - { - "name": "slotId", - "type": "varint" - }, - { - "name": "contents", - "type": "Slot" - } - ] - ], - "packet_teams": [ - "container", - [ - { - "name": "team", - "type": "string" + } + } + ] }, { - "name": "mode", + "name": "type", "type": [ - "mapper", + "switch", { - "type": "i8", - "mappings": { - "0": "add", - "1": "remove", - "2": "change", - "3": "join", - "4": "leave" + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" } } ] }, { - "anon": true, + "name": "number_format", "type": [ "switch", { - "compareTo": "mode", + "compareTo": "action", + "default": "void", "fields": { - "add": [ - "container", - [ - { - "name": "name", - "type": "anonymousNbt" - }, - { - "name": "flags", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "friendly_fire", - "see_friendly_invisible" - ] - } - ] - }, - { - "name": "nameTagVisibility", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "always", - "1": "never", - "2": "hide_for_other_teams", - "3": "hide_for_own_team" - } - } - ] - }, - { - "name": "collisionRule", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "always", - "1": "never", - "2": "push_other_teams", - "3": "push_own_team" - } - } - ] - }, - { - "name": "formatting", - "type": "varint" - }, - { - "name": "prefix", - "type": "anonymousNbt" - }, - { - "name": "suffix", - "type": "anonymousNbt" - } - ] + "0": [ + "option", + "varint" ], - "change": [ - "container", - [ - { - "name": "name", - "type": "anonymousNbt" - }, - { - "name": "flags", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "friendly_fire", - "see_friendly_invisible" - ] - } - ] - }, - { - "name": "nameTagVisibility", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "always", - "1": "never", - "2": "hide_for_other_teams", - "3": "hide_for_own_team" - } - } - ] - }, - { - "name": "collisionRule", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "always", - "1": "never", - "2": "push_other_teams", - "3": "push_own_team" - } - } - ] - }, - { - "name": "formatting", - "type": "varint" - }, - { - "name": "prefix", - "type": "anonymousNbt" - }, - { - "name": "suffix", - "type": "anonymousNbt" - } - ] + "2": [ + "option", + "varint" ] - }, - "default": "void" + } } ] }, { - "name": "players", + "name": "styling", "type": [ "switch", { - "compareTo": "mode", + "compareTo": "action", + "default": "void", "fields": { - "add": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "join": [ - "array", + "0": [ + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } } ], - "leave": [ - "array", + "2": [ + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } } ] - }, - "default": "void" + } } ] } @@ -7668,52 +7510,155 @@ "type": [ "switch", { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ + { + "name": "id", + "type": [ + "option", + "string" + ] + } + ] + ], + "packet_server_data": [ + "container", + [ + { + "name": "motd", + "type": "anonymousNbt" + }, + { + "name": "iconBytes", + "type": [ + "option", + "ByteArray" + ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "cooldownGroup", + "type": "string" + }, + { + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_cursor_item": [ + "container", + [ + { + "name": "contents", + "type": "Slot" + } + ] + ], + "packet_set_passengers": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_simulation_distance": [ + "packet_set_player_inventory": [ "container", [ { - "name": "distance", + "name": "slotId", "type": "varint" + }, + { + "name": "contents", + "type": "Slot" } ] ], - "packet_set_title_subtitle": [ + "packet_set_projectile_power": [ "container", [ { - "name": "text", - "type": "anonymousNbt" + "name": "id", + "type": "varint" + }, + { + "name": "accelerationPower", + "type": "f64" } ] ], - "packet_update_time": [ + "packet_set_slot": [ "container", [ { - "name": "age", - "type": "i64" + "name": "windowId", + "type": "ContainerID" }, { - "name": "time", - "type": "i64" + "name": "stateId", + "type": "varint" }, { - "name": "tickDayTime", + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" + } + ] + ], + "packet_set_ticking_state": [ + "container", + [ + { + "name": "tick_rate", + "type": "f32" + }, + { + "name": "is_frozen", "type": "bool" } ] ], + "packet_set_title_subtitle": [ + "container", + [ + { + "name": "text", + "type": "anonymousNbt" + } + ] + ], "packet_set_title_text": [ "container", [ @@ -7740,7 +7685,34 @@ } ] ], - "packet_entity_sound_effect": [ + "packet_show_dialog": [ + "container", + [ + { + "name": "dialog", + "type": [ + "registryEntryHolder", + { + "baseName": "dialog", + "otherwise": { + "name": "data", + "type": "anonymousNbt" + } + } + ] + } + ] + ], + "packet_simulation_distance": [ + "container", + [ + { + "name": "distance", + "type": "varint" + } + ] + ], + "packet_sound_effect": [ "container", [ { @@ -7752,8 +7724,16 @@ "type": "soundSource" }, { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" }, { "name": "volume", @@ -7769,40 +7749,65 @@ } ] ], - "packet_sound_effect": [ + "packet_spawn_entity": [ "container", [ { - "name": "sound", - "type": "ItemSoundHolder" + "name": "entityId", + "type": "varint" }, { - "name": "soundCategory", - "type": "soundSource" + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "pitch", + "type": "i8" }, { - "name": "pitch", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "seed", - "type": "i64" + "name": "headPitch", + "type": "i8" + }, + { + "name": "objectData", + "type": "varint" + }, + { + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "angle", + "type": "f32" } ] ], @@ -7810,6 +7815,46 @@ "container", [] ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_step_tick": [ + "container", + [ + { + "name": "tick_steps", + "type": "varint" + } + ] + ], "packet_stop_sound": [ "container", [ @@ -7823,11 +7868,11 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "1": "varint", "3": "varint" - }, - "default": "void" + } } ] }, @@ -7837,102 +7882,338 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "2": "string", "3": "string" - }, - "default": "void" + } } ] } ] ], - "packet_system_chat": [ + "packet_sync_entity_position": [ "container", [ { - "name": "content", - "type": "anonymousNbt" + "name": "entityId", + "type": "varint" }, { - "name": "isActionBar", - "type": "bool" - } - ] - ], - "packet_playerlist_header": [ - "container", - [ + "name": "x", + "type": "f64" + }, { - "name": "header", - "type": "anonymousNbt" + "name": "y", + "type": "f64" }, { - "name": "footer", - "type": "anonymousNbt" + "name": "z", + "type": "f64" + }, + { + "name": "dx", + "type": "f64" + }, + { + "name": "dy", + "type": "f64" + }, + { + "name": "dz", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_nbt_query_response": [ + "packet_system_chat": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "content", + "type": "anonymousNbt" }, { - "name": "nbt", - "type": "anonOptionalNbt" + "name": "isActionBar", + "type": "bool" } ] ], - "packet_collect": [ + "packet_tab_complete": [ "container", [ { - "name": "collectedEntityId", + "name": "transactionId", "type": "varint" }, { - "name": "collectorEntityId", + "name": "start", "type": "varint" }, { - "name": "pickupItemCount", + "name": "length", "type": "varint" + }, + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] + } + ] } ] ], - "packet_entity_teleport": [ + "packet_tags": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, + "name": "tags", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] + } + ] + } + ] + ], + "packet_teams": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "team", + "type": "string" }, { - "name": "yaw", - "type": "i8" + "name": "mode", + "type": [ + "mapper", + { + "mappings": { + "0": "add", + "1": "remove", + "2": "change", + "3": "join", + "4": "leave" + }, + "type": "i8" + } + ] }, { - "name": "pitch", - "type": "i8" + "anon": true, + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "add": [ + "container", + [ + { + "name": "name", + "type": "anonymousNbt" + }, + { + "name": "flags", + "type": [ + "bitflags", + { + "flags": [ + "friendly_fire", + "see_friendly_invisible" + ], + "type": "u8" + } + ] + }, + { + "name": "nameTagVisibility", + "type": [ + "mapper", + { + "mappings": { + "0": "always", + "1": "never", + "2": "hide_for_other_teams", + "3": "hide_for_own_team" + }, + "type": "varint" + } + ] + }, + { + "name": "collisionRule", + "type": [ + "mapper", + { + "mappings": { + "0": "always", + "1": "never", + "2": "push_other_teams", + "3": "push_own_team" + }, + "type": "varint" + } + ] + }, + { + "name": "formatting", + "type": "varint" + }, + { + "name": "prefix", + "type": "anonymousNbt" + }, + { + "name": "suffix", + "type": "anonymousNbt" + } + ] + ], + "change": [ + "container", + [ + { + "name": "name", + "type": "anonymousNbt" + }, + { + "name": "flags", + "type": [ + "bitflags", + { + "flags": [ + "friendly_fire", + "see_friendly_invisible" + ], + "type": "u8" + } + ] + }, + { + "name": "nameTagVisibility", + "type": [ + "mapper", + { + "mappings": { + "0": "always", + "1": "never", + "2": "hide_for_other_teams", + "3": "hide_for_own_team" + }, + "type": "varint" + } + ] + }, + { + "name": "collisionRule", + "type": [ + "mapper", + { + "mappings": { + "0": "always", + "1": "never", + "2": "push_other_teams", + "3": "push_own_team" + }, + "type": "varint" + } + ] + }, + { + "name": "formatting", + "type": "varint" + }, + { + "name": "prefix", + "type": "anonymousNbt" + }, + { + "name": "suffix", + "type": "anonymousNbt" + } + ] + ] + } + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "players", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "add": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "join": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "leave": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + } + ] } ] ], @@ -7952,232 +8233,168 @@ } ] ], - "packet_set_ticking_state": [ + "packet_tile_entity_data": [ "container", [ { - "name": "tick_rate", - "type": "f32" + "name": "location", + "type": "position" }, { - "name": "is_frozen", - "type": "bool" - } - ] - ], - "packet_step_tick": [ - "container", - [ - { - "name": "tick_steps", + "name": "action", "type": "varint" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" } ] ], - "packet_advancements": [ + "packet_tracked_waypoint": [ "container", [ { - "name": "reset", - "type": "bool" + "name": "operation", + "type": [ + "mapper", + { + "mappings": { + "0": "track", + "1": "untrack", + "2": "update" + }, + "type": "varint" + } + ] }, { - "name": "advancementMapping", + "name": "waypoint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, + "container", + [ + { + "name": "hasUUID", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", { - "name": "value", - "type": [ - "container", - [ - { - "name": "parentId", - "type": [ - "option", - "string" - ] - }, - { - "name": "displayData", - "type": [ - "option", - [ - "container", - [ - { - "name": "title", - "type": "anonymousNbt" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "icon", - "type": "Slot" - }, - { - "name": "frameType", - "type": "varint" - }, - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "backgroundTexture", - "type": [ - "switch", - { - "compareTo": "flags/has_background_texture", - "fields": { - "1": "string" - }, - "default": "void" - } - ] - }, - { - "name": "xCord", - "type": "f32" - }, - { - "name": "yCord", - "type": "f32" - } - ] - ] - ] - }, - { - "name": "requirements", - "type": [ - "array", + "compareTo": "hasUUID", + "fields": { + "false": [ + "container", + [ + { + "name": "id", + "type": "string" + } + ] + ], + "true": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + } + ] + ] + } + } + ] + }, + { + "name": "icon", + "type": [ + "container", + [ + { + "name": "style", + "type": "string" + }, + { + "name": "color", + "type": [ + "option", + [ + "container", + [ { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "red", + "type": "u8" + }, + { + "name": "green", + "type": "u8" + }, + { + "name": "blue", + "type": "u8" } ] - }, - { - "name": "sendsTelemtryData", - "type": "bool" - } + ] ] - ] - } + } + ] ] - ] - } - ] - }, - { - "name": "identifiers", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "progressMapping", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ + }, + { + "name": "type", + "type": [ + "mapper", { - "name": "key", - "type": "string" - }, + "mappings": { + "0": "empty", + "1": "vec3i", + "2": "chunk", + "3": "azimuth" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "switch", { - "name": "value", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "criterionIdentifier", - "type": "string" - }, - { - "name": "criterionProgress", - "type": [ - "option", - "i64" - ] - } - ] + "compareTo": "type", + "fields": { + "azimuth": "f32", + "chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" + } ] - } - ] + ], + "vec3i": "vec3i" + } } ] - ] - } + } + ] ] - }, - { - "name": "showAdvancements", - "type": "bool" } ] ], - "packet_entity_update_attributes": [ + "packet_trade_list": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "properties", + "name": "trades", "type": [ "array", { @@ -8186,503 +8403,527 @@ "container", [ { - "name": "key", + "name": "inputItem1", "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "generic.armor", - "1": "generic.armor_toughness", - "2": "generic.attack_damage", - "3": "generic.attack_knockback", - "4": "generic.attack_speed", - "5": "player.block_break_speed", - "6": "player.block_interaction_range", - "7": "burning_time", - "8": "camera_distance", - "9": "explosion_knockback_resistance", - "10": "player.entity_interaction_range", - "11": "generic.fall_damage_multiplier", - "12": "generic.flying_speed", - "13": "generic.follow_range", - "14": "generic.gravity", - "15": "generic.jump_strength", - "16": "generic.knockback_resistance", - "17": "generic.luck", - "18": "generic.max_absorption", - "19": "generic.max_health", - "20": "generic.movement_speed", - "21": "generic.safe_fall_distance", - "22": "generic.scale", - "23": "zombie.spawn_reinforcements", - "24": "generic.step_height", - "25": "submerged_mining_speed", - "26": "sweeping_damage_ratio", - "27": "tempt_range", - "28": "water_movement_efficiency", - "29": "waypoint_transmit_range", - "30": "waypoint_receive_range" + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "components", + "type": "ExactComponentMatcher" } - } + ] ] }, { - "name": "value", - "type": "f64" + "name": "outputItem", + "type": "Slot" }, { - "name": "modifiers", + "name": "inputItem2", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "string" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] + "option", + [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "components", + "type": "ExactComponentMatcher" + } ] - } + ] ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" } ] ] } ] + }, + { + "name": "villagerLevel", + "type": "varint" + }, + { + "name": "experience", + "type": "varint" + }, + { + "name": "isRegularVillager", + "type": "bool" + }, + { + "name": "canRestock", + "type": "bool" } ] ], - "packet_entity_effect": [ + "packet_unload_chunk": [ "container", [ { - "name": "entityId", + "name": "chunkZ", + "type": "i32" + }, + { + "name": "chunkX", + "type": "i32" + } + ] + ], + "packet_update_health": [ + "container", + [ + { + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" }, { - "name": "effectId", + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_light": [ + "container", + [ + { + "name": "chunkX", "type": "varint" }, { - "name": "amplifier", + "name": "chunkZ", "type": "varint" }, { - "name": "duration", - "type": "varint" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "flags", - "type": "u8" - } - ] - ], - "packet_declare_recipes": [ - "container", - [ - { - "name": "recipes", + "name": "skyLight", "type": [ "array", { "countType": "varint", "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] }, { - "name": "stoneCutterRecipes", + "name": "blockLight", "type": [ "array", { "countType": "varint", "type": [ - "container", - [ - { - "name": "input", - "type": "IDSet" - }, - { - "name": "slotDisplay", - "type": "SlotDisplay" - } - ] + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] } ] ], - "packet_tags": [ + "packet_update_time": [ "container", [ { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] - } - ] + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + }, + { + "name": "tickDayTime", + "type": "bool" } ] ], - "packet_set_projectile_power": [ + "packet_update_view_distance": [ "container", [ { - "name": "id", + "name": "viewDistance", + "type": "varint" + } + ] + ], + "packet_update_view_position": [ + "container", + [ + { + "name": "chunkX", "type": "varint" }, { - "name": "accelerationPower", - "type": "f64" + "name": "chunkZ", + "type": "varint" } ] ], - "packet_tracked_waypoint": [ + "packet_vehicle_move": [ "container", [ { - "name": "operation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "track", - "1": "untrack", - "2": "update" - } - } - ] + "name": "x", + "type": "f64" }, { - "name": "waypoint", - "type": [ - "container", - [ - { - "name": "hasUUID", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "hasUUID", - "fields": { - "true": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - } - ] - ], - "false": [ - "container", - [ - { - "name": "id", - "type": "string" - } - ] - ] - } - } - ] - }, - { - "name": "icon", - "type": [ - "container", - [ - { - "name": "style", - "type": "string" - }, - { - "name": "color", - "type": [ - "option", - [ - "container", - [ - { - "name": "red", - "type": "u8" - }, - { - "name": "green", - "type": "u8" - }, - { - "name": "blue", - "type": "u8" - } - ] - ] - ] - } - ] - ] - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "empty", - "1": "vec3i", - "2": "chunk", - "3": "azimuth" - } - } - ] - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "vec3i": "vec3i", - "chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - } - ] - ], - "azimuth": "f32" - } - } - ] - } - ] - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_show_dialog": [ + "packet_window_items": [ "container", [ { - "name": "dialog", + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "stateId", + "type": "varint" + }, + { + "name": "items", "type": [ - "registryEntryHolder", + "array", { - "baseName": "dialog", - "otherwise": { - "name": "data", - "type": "anonymousNbt" - } + "countType": "varint", + "type": "Slot" } ] + }, + { + "name": "carriedItem", + "type": "Slot" } ] ], - "packet": [ + "packet_world_border_center": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "animation", - "0x03": "statistics", - "0x04": "acknowledge_player_digging", - "0x05": "block_break_animation", - "0x06": "tile_entity_data", - "0x07": "block_action", - "0x08": "block_change", - "0x09": "boss_bar", - "0x0a": "difficulty", - "0x0b": "chunk_batch_finished", - "0x0c": "chunk_batch_start", - "0x0d": "chunk_biomes", - "0x0e": "clear_titles", - "0x0f": "tab_complete", - "0x10": "declare_commands", - "0x11": "close_window", - "0x12": "window_items", - "0x13": "craft_progress_bar", - "0x14": "set_slot", - "0x15": "cookie_request", - "0x16": "set_cooldown", - "0x17": "chat_suggestions", - "0x18": "custom_payload", - "0x19": "damage_event", - "0x1a": "debug_sample", - "0x1b": "hide_message", - "0x1c": "kick_disconnect", - "0x1d": "profileless_chat", - "0x1e": "entity_status", - "0x1f": "sync_entity_position", - "0x20": "explosion", - "0x21": "unload_chunk", - "0x22": "game_state_change", - "0x23": "open_horse_window", - "0x24": "hurt_animation", - "0x25": "initialize_world_border", - "0x26": "keep_alive", - "0x27": "map_chunk", - "0x28": "world_event", - "0x29": "world_particles", - "0x2a": "update_light", - "0x2b": "login", - "0x2c": "map", - "0x2d": "trade_list", - "0x2e": "rel_entity_move", - "0x2f": "entity_move_look", - "0x30": "move_minecart", - "0x31": "entity_look", - "0x32": "vehicle_move", - "0x33": "open_book", - "0x34": "open_window", - "0x35": "open_sign_entity", - "0x36": "ping", - "0x37": "ping_response", - "0x38": "craft_recipe_response", - "0x39": "abilities", - "0x3a": "player_chat", - "0x3b": "end_combat_event", - "0x3c": "enter_combat_event", - "0x3d": "death_combat_event", - "0x3e": "player_remove", - "0x3f": "player_info", - "0x40": "face_player", - "0x41": "position", - "0x42": "player_rotation", - "0x43": "recipe_book_add", - "0x44": "recipe_book_remove", - "0x45": "recipe_book_settings", - "0x46": "entity_destroy", - "0x47": "remove_entity_effect", - "0x48": "reset_score", - "0x49": "remove_resource_pack", - "0x4a": "add_resource_pack", - "0x4b": "respawn", - "0x4c": "entity_head_rotation", - "0x4d": "multi_block_change", - "0x4e": "select_advancement_tab", - "0x4f": "server_data", - "0x50": "action_bar", - "0x51": "world_border_center", - "0x52": "world_border_lerp_size", - "0x53": "world_border_size", - "0x54": "world_border_warning_delay", - "0x55": "world_border_warning_reach", - "0x56": "camera", - "0x57": "update_view_position", - "0x58": "update_view_distance", - "0x59": "set_cursor_item", - "0x5a": "spawn_position", - "0x5b": "scoreboard_display_objective", - "0x5c": "entity_metadata", - "0x5d": "attach_entity", - "0x5e": "entity_velocity", - "0x5f": "entity_equipment", - "0x60": "experience", - "0x61": "update_health", - "0x62": "held_item_slot", - "0x63": "scoreboard_objective", - "0x64": "set_passengers", - "0x65": "set_player_inventory", - "0x66": "teams", - "0x67": "scoreboard_score", - "0x68": "simulation_distance", - "0x69": "set_title_subtitle", - "0x6a": "update_time", - "0x6b": "set_title_text", - "0x6c": "set_title_time", - "0x6d": "entity_sound_effect", - "0x6e": "sound_effect", - "0x6f": "start_configuration", - "0x70": "stop_sound", - "0x71": "store_cookie", - "0x72": "system_chat", - "0x73": "playerlist_header", - "0x74": "nbt_query_response", - "0x75": "collect", - "0x76": "entity_teleport", - "0x77": "test_instance_block_status", - "0x78": "set_ticking_state", - "0x79": "step_tick", - "0x7a": "transfer", - "0x7b": "advancements", - "0x7c": "entity_update_attributes", - "0x7d": "entity_effect", - "0x7e": "declare_recipes", - "0x7f": "tags", - "0x80": "set_projectile_power", - "0x81": "custom_report_details", - "0x82": "server_links", - "0x83": "tracked_waypoint", - "0x84": "clear_dialog", - "0x85": "show_dialog" - } + "name": "x", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_world_border_lerp_size": [ + "container", + [ + { + "name": "oldDiameter", + "type": "f64" + }, + { + "name": "newDiameter", + "type": "f64" + }, + { + "name": "speed", + "type": "varint" + } + ] + ], + "packet_world_border_size": [ + "container", + [ + { + "name": "diameter", + "type": "f64" + } + ] + ], + "packet_world_border_warning_delay": [ + "container", + [ + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_world_border_warning_reach": [ + "container", + [ + { + "name": "warningBlocks", + "type": "varint" + } + ] + ], + "packet_world_event": [ + "container", + [ + { + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" + } + ] + ], + "packet_world_particles": [ + "container", + [ + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "alwaysShow", + "type": "bool" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "velocityOffset", + "type": "f32" + }, + { + "name": "amount", + "type": "i32" + }, + { + "name": "particle", + "type": "Particle" + } + ] + ] + } + }, + "toServer": { + "types": { + "MovementFlags": [ + "bitflags", + { + "flags": [ + "onGround", + "hasHorizontalCollision" + ], + "type": "u8" + } + ], + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "select_bundle_item", + "0x03": "set_difficulty", + "0x04": "change_gamemode", + "0x05": "message_acknowledgement", + "0x06": "chat_command", + "0x07": "chat_command_signed", + "0x08": "chat_message", + "0x09": "chat_session_update", + "0x0a": "chunk_batch_received", + "0x0b": "client_command", + "0x0c": "tick_end", + "0x0d": "settings", + "0x0e": "tab_complete", + "0x0f": "configuration_acknowledged", + "0x10": "enchant_item", + "0x11": "window_click", + "0x12": "close_window", + "0x13": "set_slot_state", + "0x14": "cookie_response", + "0x15": "custom_payload", + "0x16": "debug_sample_subscription", + "0x17": "edit_book", + "0x18": "query_entity_nbt", + "0x19": "use_entity", + "0x1a": "generate_structure", + "0x1b": "keep_alive", + "0x1c": "lock_difficulty", + "0x1d": "position", + "0x1e": "position_look", + "0x1f": "look", + "0x20": "flying", + "0x21": "vehicle_move", + "0x22": "steer_boat", + "0x23": "pick_item_from_block", + "0x24": "pick_item_from_entity", + "0x25": "ping_request", + "0x26": "craft_recipe_request", + "0x27": "abilities", + "0x28": "block_dig", + "0x29": "entity_action", + "0x2a": "player_input", + "0x2b": "player_loaded", + "0x2c": "pong", + "0x2d": "recipe_book", + "0x2e": "displayed_recipe", + "0x2f": "name_item", + "0x30": "resource_pack_receive", + "0x31": "advancement_tab", + "0x32": "select_trade", + "0x33": "set_beacon_effect", + "0x34": "held_item_slot", + "0x35": "update_command_block", + "0x36": "update_command_block_minecart", + "0x37": "set_creative_slot", + "0x38": "update_jigsaw_block", + "0x39": "update_structure_block", + "0x3a": "set_test_block", + "0x3b": "update_sign", + "0x3c": "arm_animation", + "0x3d": "spectate", + "0x3e": "test_instance_block_action", + "0x3f": "block_place", + "0x40": "use_item", + "0x41": "custom_click_action" + }, + "type": "varint" } ] }, @@ -8690,205 +8931,180 @@ "name": "params", "type": [ "switch", - { - "compareTo": "name", - "fields": { - "bundle_delimiter": "void", - "spawn_entity": "packet_spawn_entity", - "animation": "packet_animation", - "statistics": "packet_statistics", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "chunk_batch_finished": "packet_chunk_batch_finished", - "chunk_batch_start": "packet_chunk_batch_start", - "chunk_biomes": "packet_chunk_biomes", - "clear_titles": "packet_clear_titles", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "close_window": "packet_close_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "cookie_request": "packet_common_cookie_request", - "set_cooldown": "packet_set_cooldown", - "chat_suggestions": "packet_chat_suggestions", - "custom_payload": "packet_custom_payload", - "damage_event": "packet_damage_event", - "debug_sample": "packet_debug_sample", - "hide_message": "packet_hide_message", - "kick_disconnect": "packet_kick_disconnect", - "profileless_chat": "packet_profileless_chat", - "entity_status": "packet_entity_status", - "sync_entity_position": "packet_sync_entity_position", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "hurt_animation": "packet_hurt_animation", - "initialize_world_border": "packet_initialize_world_border", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "move_minecart": "packet_move_minecart", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_window": "packet_open_window", - "open_sign_entity": "packet_open_sign_entity", - "ping": "packet_ping", - "ping_response": "packet_ping_response", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "player_chat": "packet_player_chat", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_remove": "packet_player_remove", - "player_info": "packet_player_info", - "face_player": "packet_face_player", - "position": "packet_position", - "player_rotation": "packet_player_rotation", - "recipe_book_add": "packet_recipe_book_add", - "recipe_book_remove": "packet_recipe_book_remove", - "recipe_book_settings": "packet_recipe_book_settings", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "reset_score": "packet_reset_score", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "respawn": "packet_respawn", - "entity_head_rotation": "packet_entity_head_rotation", - "multi_block_change": "packet_multi_block_change", - "select_advancement_tab": "packet_select_advancement_tab", - "server_data": "packet_server_data", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "camera": "packet_camera", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "set_cursor_item": "packet_set_cursor_item", - "held_item_slot": "packet_held_item_slot", - "spawn_position": "packet_spawn_position", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "set_player_inventory": "packet_set_player_inventory", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "set_title_subtitle": "packet_set_title_subtitle", - "update_time": "packet_update_time", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time", - "entity_sound_effect": "packet_entity_sound_effect", - "sound_effect": "packet_sound_effect", - "start_configuration": "packet_start_configuration", - "stop_sound": "packet_stop_sound", - "store_cookie": "packet_common_store_cookie", - "system_chat": "packet_system_chat", - "playerlist_header": "packet_playerlist_header", - "nbt_query_response": "packet_nbt_query_response", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "test_instance_block_status": "packet_test_instance_block_status", - "set_ticking_state": "packet_set_ticking_state", - "step_tick": "packet_step_tick", - "transfer": "packet_common_transfer", - "advancements": "packet_advancements", - "entity_update_attributes": "packet_entity_update_attributes", - "entity_effect": "packet_entity_effect", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "set_projectile_power": "packet_set_projectile_power", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links", - "tracked_waypoint": "packet_tracked_waypoint", - "clear_dialog": "packet_common_clear_dialog", - "show_dialog": "packet_show_dialog" + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "change_gamemode": "packet_change_gamemode", + "chat_command": "packet_chat_command", + "chat_command_signed": "packet_chat_command_signed", + "chat_message": "packet_chat_message", + "chat_session_update": "packet_chat_session_update", + "chunk_batch_received": "packet_chunk_batch_received", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "configuration_acknowledged": "packet_configuration_acknowledged", + "cookie_response": "packet_common_cookie_response", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_click_action": "packet_common_custom_click_action", + "custom_payload": "packet_custom_payload", + "debug_sample_subscription": "packet_debug_sample_subscription", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "message_acknowledgement": "packet_message_acknowledgement", + "name_item": "packet_name_item", + "pick_item_from_block": "packet_pick_item_from_block", + "pick_item_from_entity": "packet_pick_item_from_entity", + "ping_request": "packet_ping_request", + "player_input": "packet_player_input", + "player_loaded": "packet_player_loaded", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_bundle_item": "packet_select_bundle_item", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "set_slot_state": "packet_set_slot_state", + "set_test_block": "packet_set_test_block", + "settings": "packet_common_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "test_instance_block_action": "packet_test_instance_block_action", + "tick_end": "packet_tick_end", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_select_bundle_item": [ + "packet_arm_animation": [ "container", [ { - "name": "slotId", + "name": "hand", + "type": "varint" + } + ] + ], + "packet_block_dig": [ + "container", + [ + { + "name": "status", "type": "varint" }, { - "name": "selectedItemIndex", + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" + }, + { + "name": "sequence", "type": "varint" } ] ], - "packet_set_difficulty": [ + "packet_block_place": [ "container", [ { - "name": "newDifficulty", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "peaceful", - "1": "easy", - "2": "normal", - "3": "hard" - } - } - ] + "name": "hand", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "varint" + }, + { + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" + }, + { + "name": "worldBorderHit", + "type": "bool" + }, + { + "name": "sequence", + "type": "varint" } ] ], @@ -8900,27 +9116,18 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "survival", "1": "creative", "2": "adventure", "3": "spectator" - } + }, + "type": "varint" } ] } ] ], - "packet_message_acknowledgement": [ - "container", - [ - { - "name": "count", - "type": "varint" - } - ] - ], "packet_chat_command": [ "container", [ @@ -9045,125 +9252,34 @@ "type": "UUID" }, { - "name": "expireTime", - "type": "i64" - }, - { - "name": "publicKey", - "type": "ByteArray" - }, - { - "name": "signature", - "type": "ByteArray" - } - ] - ], - "packet_chunk_batch_received": [ - "container", - [ - { - "name": "chunksPerTick", - "type": "f32" - } - ] - ], - "packet_client_command": [ - "container", - [ - { - "name": "actionId", - "type": "varint" - } - ] - ], - "packet_tick_end": [ - "container", - [] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "text", - "type": "string" - } - ] - ], - "packet_configuration_acknowledged": [ - "container", - [] - ], - "packet_enchant_item": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "enchantment", - "type": "varint" - } - ] - ], - "packet_window_click": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" + "name": "expireTime", + "type": "i64" }, { - "name": "mouseButton", - "type": "i8" + "name": "publicKey", + "type": "ByteArray" }, { - "name": "mode", - "type": "varint" - }, + "name": "signature", + "type": "ByteArray" + } + ] + ], + "packet_chunk_batch_received": [ + "container", + [ { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": [ - "option", - "HashedSlot" - ] - } - ] - ] - } - ] - }, + "name": "chunksPerTick", + "type": "f32" + } + ] + ], + "packet_client_command": [ + "container", + [ { - "name": "cursorItem", - "type": [ - "option", - "HashedSlot" - ] + "name": "actionId", + "type": "varint" } ] ], @@ -9176,19 +9292,23 @@ } ] ], - "packet_set_slot_state": [ + "packet_configuration_acknowledged": [ + "container", + [] + ], + "packet_craft_recipe_request": [ "container", [ { - "name": "slot_id", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "window_id", - "type": "ContainerID" + "name": "recipeId", + "type": "varint" }, { - "name": "state", + "name": "makeAll", "type": "bool" } ] @@ -9215,6 +9335,15 @@ } ] ], + "packet_displayed_recipe": [ + "container", + [ + { + "name": "recipeId", + "type": "varint" + } + ] + ], "packet_edit_book": [ "container", [ @@ -9241,134 +9370,209 @@ } ] ], - "packet_query_entity_nbt": [ + "packet_enchant_item": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "entityId", + "name": "enchantment", "type": "varint" } ] ], - "packet_use_entity": [ + "packet_entity_action": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "entityId", "type": "varint" }, { - "name": "x", + "name": "actionId", "type": [ - "switch", + "mapper", { - "compareTo": "mouse", - "fields": { - "2": "f32" + "mappings": { + "0": "leave_bed", + "1": "start_sprinting", + "2": "stop_sprinting", + "3": "start_horse_jump", + "4": "stop_horse_jump", + "5": "open_vehicle_inventory", + "6": "start_elytra_flying" }, - "default": "void" + "type": "varint" } ] }, { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "flags", + "type": "MovementFlags" + } + ] + ], + "packet_generate_structure": [ + "container", + [ + { + "name": "location", + "type": "position" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "levels", + "type": "varint" }, { - "name": "sneaking", + "name": "keepJigsaws", "type": "bool" } ] ], - "packet_generate_structure": [ + "packet_held_item_slot": [ "container", [ { - "name": "location", + "name": "slotId", + "type": "i16" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_lock_difficulty": [ + "container", + [ + { + "name": "locked", + "type": "bool" + } + ] + ], + "packet_look": [ + "container", + [ + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "flags", + "type": "MovementFlags" + } + ] + ], + "packet_message_acknowledgement": [ + "container", + [ + { + "name": "count", + "type": "varint" + } + ] + ], + "packet_name_item": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item_from_block": [ + "container", + [ + { + "name": "position", "type": "position" }, { - "name": "levels", + "name": "includeData", + "type": "bool" + } + ] + ], + "packet_pick_item_from_entity": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "keepJigsaws", + "name": "includeData", "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_ping_request": [ + "container", + [ + { + "name": "id", + "type": "i64" + } + ] + ], + "packet_player_input": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "inputs", + "type": [ + "bitflags", + { + "flags": [ + "forward", + "backward", + "left", + "right", + "jump", + "shift", + "sprint" + ], + "type": "u8" + } + ] } ] ], - "packet_lock_difficulty": [ + "packet_player_loaded": [ + "container", + [] + ], + "packet_pong": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "id", + "type": "i32" } ] ], - "MovementFlags": [ - "bitflags", - { - "type": "u8", - "flags": [ - "onGround", - "hasHorizontalCollision" - ] - } - ], "packet_position": [ "container", [ @@ -9419,329 +9623,268 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "flags", - "type": "MovementFlags" - } - ] - ], - "packet_flying": [ - "container", - [ - { - "name": "flags", - "type": "MovementFlags" + "name": "location", + "type": "position" } ] ], - "packet_vehicle_move": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_recipe_book": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "bookId", + "type": "varint" }, { - "name": "rightPaddle", + "name": "bookOpen", "type": "bool" - } - ] - ], - "packet_pick_item_from_block": [ - "container", - [ - { - "name": "position", - "type": "position" }, { - "name": "includeData", + "name": "filterActive", "type": "bool" } ] ], - "packet_pick_item_from_entity": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "uuid", + "type": "UUID" }, { - "name": "includeData", - "type": "bool" - } - ] - ], - "packet_ping_request": [ - "container", - [ - { - "name": "id", - "type": "i64" + "name": "result", + "type": "varint" } ] ], - "packet_craft_recipe_request": [ + "packet_select_bundle_item": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "recipeId", + "name": "slotId", "type": "varint" }, { - "name": "makeAll", - "type": "bool" + "name": "selectedItemIndex", + "type": "varint" } ] ], - "packet_abilities": [ + "packet_select_trade": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "slot", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "primary_effect", + "type": [ + "option", + "varint" + ] }, { - "name": "sequence", - "type": "varint" + "name": "secondary_effect", + "type": [ + "option", + "varint" + ] } ] ], - "packet_entity_action": [ + "packet_set_creative_slot": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "leave_bed", - "1": "start_sprinting", - "2": "stop_sprinting", - "3": "start_horse_jump", - "4": "stop_horse_jump", - "5": "open_vehicle_inventory", - "6": "start_elytra_flying" - } - } - ] + "name": "slot", + "type": "i16" }, { - "name": "jumpBoost", - "type": "varint" + "name": "item", + "type": "UntrustedSlot" } ] ], - "packet_player_input": [ + "packet_set_difficulty": [ "container", [ { - "name": "inputs", + "name": "newDifficulty", "type": [ - "bitflags", + "mapper", { - "type": "u8", - "flags": [ - "forward", - "backward", - "left", - "right", - "jump", - "shift", - "sprint" - ] + "mappings": { + "0": "peaceful", + "1": "easy", + "2": "normal", + "3": "hard" + }, + "type": "varint" } ] } ] ], - "packet_player_loaded": [ - "container", - [] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_recipe_book": [ + "packet_set_slot_state": [ "container", [ { - "name": "bookId", + "name": "slot_id", "type": "varint" }, { - "name": "bookOpen", - "type": "bool" + "name": "window_id", + "type": "ContainerID" }, { - "name": "filterActive", + "name": "state", "type": "bool" } ] ], - "packet_displayed_recipe": [ + "packet_set_test_block": [ "container", [ { - "name": "recipeId", + "name": "position", + "type": "position" + }, + { + "name": "mode", "type": "varint" + }, + { + "name": "message", + "type": "string" } ] ], - "packet_name_item": [ + "packet_spectate": [ "container", [ { - "name": "name", - "type": "string" + "name": "target", + "type": "UUID" } ] ], - "packet_resource_pack_receive": [ + "packet_steer_boat": [ "container", [ { - "name": "uuid", - "type": "UUID" + "name": "leftPaddle", + "type": "bool" }, { - "name": "result", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], - "packet_advancement_tab": [ + "packet_tab_complete": [ "container", [ { - "name": "action", + "name": "transactionId", "type": "varint" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "text", + "type": "string" } ] ], - "packet_select_trade": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slot", + "name": "teleportId", "type": "varint" } ] ], - "packet_set_beacon_effect": [ + "packet_test_instance_block_action": [ "container", [ { - "name": "primary_effect", - "type": [ - "option", - "varint" - ] + "name": "pos", + "type": "position" }, { - "name": "secondary_effect", + "name": "action", + "type": "varint" + }, + { + "name": "data", "type": [ - "option", - "varint" + "container", + [ + { + "name": "test", + "type": [ + "option", + "string" + ] + }, + { + "name": "size", + "type": "vec3i" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "ignoreEntities", + "type": "bool" + }, + { + "name": "status", + "type": "varint" + }, + { + "name": "errorMessage", + "type": [ + "option", + "anonymousNbt" + ] + } + ] ] } ] ], - "packet_held_item_slot": [ + "packet_tick_end": [ "container", - [ - { - "name": "slotId", - "type": "i16" - } - ] + [] ], "packet_update_command_block": [ "container", @@ -9781,19 +9924,6 @@ } ] ], - "packet_set_creative_slot": [ - "container", - [ - { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "UntrustedSlot" - } - ] - ], "packet_update_jigsaw_block": [ "container", [ @@ -9831,6 +9961,35 @@ } ] ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], "packet_update_structure_block": [ "container", [ @@ -9899,134 +10058,89 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ignore_entities", "1": "show_air", "2": "show_bounding_box", "3": "strict" - } + }, + "type": "u8" } ] } ] ], - "packet_set_test_block": [ + "packet_use_entity": [ "container", [ { - "name": "position", - "type": "position" - }, - { - "name": "mode", + "name": "target", "type": "varint" }, { - "name": "message", - "type": "string" - } - ] - ], - "packet_update_sign": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "isFrontText", - "type": "bool" - }, - { - "name": "text1", - "type": "string" - }, - { - "name": "text2", - "type": "string" - }, - { - "name": "text3", - "type": "string" - }, - { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ - { - "name": "hand", + "name": "mouse", "type": "varint" - } - ] - ], - "packet_spectate": [ - "container", - [ - { - "name": "target", - "type": "UUID" - } - ] - ], - "packet_test_instance_block_action": [ - "container", - [ - { - "name": "pos", - "type": "position" }, { - "name": "action", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "data", + "name": "y", "type": [ - "container", - [ - { - "name": "test", - "type": [ - "option", - "string" - ] - }, - { - "name": "size", - "type": "vec3i" - }, - { - "name": "rotation", - "type": "varint" - }, - { - "name": "ignoreEntities", - "type": "bool" - }, - { - "name": "status", - "type": "varint" - }, - { - "name": "errorMessage", - "type": [ - "option", - "anonymousNbt" - ] + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" } - ] + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } ] + }, + { + "name": "sneaking", + "type": "bool" } ] ], - "packet_block_place": [ + "packet_use_item": [ "container", [ { @@ -10034,211 +10148,97 @@ "type": "varint" }, { - "name": "location", - "type": "position" + "name": "sequence", + "type": "varint" }, { - "name": "direction", - "type": "varint" + "name": "rotation", + "type": "vec2f" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": "f64" }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": "f64" }, { - "name": "cursorZ", + "name": "yaw", "type": "f32" }, { - "name": "insideBlock", - "type": "bool" + "name": "pitch", + "type": "f32" }, { - "name": "worldBorderHit", + "name": "onGround", "type": "bool" - }, - { - "name": "sequence", - "type": "varint" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "sequence", + "name": "stateId", "type": "varint" }, { - "name": "rotation", - "type": "vec2f" - } - ] - ], - "packet": [ - "container", - [ + "name": "slot", + "type": "i16" + }, { - "name": "name", + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "select_bundle_item", - "0x03": "set_difficulty", - "0x04": "change_gamemode", - "0x05": "message_acknowledgement", - "0x06": "chat_command", - "0x07": "chat_command_signed", - "0x08": "chat_message", - "0x09": "chat_session_update", - "0x0a": "chunk_batch_received", - "0x0b": "client_command", - "0x0c": "tick_end", - "0x0d": "settings", - "0x0e": "tab_complete", - "0x0f": "configuration_acknowledged", - "0x10": "enchant_item", - "0x11": "window_click", - "0x12": "close_window", - "0x13": "set_slot_state", - "0x14": "cookie_response", - "0x15": "custom_payload", - "0x16": "debug_sample_subscription", - "0x17": "edit_book", - "0x18": "query_entity_nbt", - "0x19": "use_entity", - "0x1a": "generate_structure", - "0x1b": "keep_alive", - "0x1c": "lock_difficulty", - "0x1d": "position", - "0x1e": "position_look", - "0x1f": "look", - "0x20": "flying", - "0x21": "vehicle_move", - "0x22": "steer_boat", - "0x23": "pick_item_from_block", - "0x24": "pick_item_from_entity", - "0x25": "ping_request", - "0x26": "craft_recipe_request", - "0x27": "abilities", - "0x28": "block_dig", - "0x29": "entity_action", - "0x2a": "player_input", - "0x2b": "player_loaded", - "0x2c": "pong", - "0x2d": "recipe_book", - "0x2e": "displayed_recipe", - "0x2f": "name_item", - "0x30": "resource_pack_receive", - "0x31": "advancement_tab", - "0x32": "select_trade", - "0x33": "set_beacon_effect", - "0x34": "held_item_slot", - "0x35": "update_command_block", - "0x36": "update_command_block_minecart", - "0x37": "set_creative_slot", - "0x38": "update_jigsaw_block", - "0x39": "update_structure_block", - "0x3a": "set_test_block", - "0x3b": "update_sign", - "0x3c": "arm_animation", - "0x3d": "spectate", - "0x3e": "test_instance_block_action", - "0x3f": "block_place", - "0x40": "use_item", - "0x41": "custom_click_action" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": [ + "option", + "HashedSlot" + ] + } + ] + ] } ] }, { - "name": "params", + "name": "cursorItem", "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "select_bundle_item": "packet_select_bundle_item", - "set_difficulty": "packet_set_difficulty", - "change_gamemode": "packet_change_gamemode", - "message_acknowledgement": "packet_message_acknowledgement", - "chat_command": "packet_chat_command", - "chat_command_signed": "packet_chat_command_signed", - "chat_message": "packet_chat_message", - "chat_session_update": "packet_chat_session_update", - "chunk_batch_received": "packet_chunk_batch_received", - "client_command": "packet_client_command", - "tick_end": "packet_tick_end", - "settings": "packet_common_settings", - "tab_complete": "packet_tab_complete", - "configuration_acknowledged": "packet_configuration_acknowledged", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "set_slot_state": "packet_set_slot_state", - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "debug_sample_subscription": "packet_debug_sample_subscription", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "pick_item_from_block": "packet_pick_item_from_block", - "pick_item_from_entity": "packet_pick_item_from_entity", - "ping_request": "packet_ping_request", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "player_input": "packet_player_input", - "player_loaded": "packet_player_loaded", - "pong": "packet_pong", - "recipe_book": "packet_recipe_book", - "displayed_recipe": "packet_displayed_recipe", - "name_item": "packet_name_item", - "resource_pack_receive": "packet_resource_pack_receive", - "advancement_tab": "packet_advancement_tab", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "held_item_slot": "packet_held_item_slot", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_structure_block": "packet_update_structure_block", - "set_test_block": "packet_set_test_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "test_instance_block_action": "packet_test_instance_block_action", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "custom_click_action": "packet_common_custom_click_action" - } - } + "option", + "HashedSlot" ] } ] diff --git a/data/pc/1.21.9/protocol.json b/data/pc/1.21.9/protocol.json index 7d3e9f747..586af5003 100644 --- a/data/pc/1.21.9/protocol.json +++ b/data/pc/1.21.9/protocol.json @@ -1,2344 +1,577 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "anonymousNbt": "native", - "anonOptionalNbt": "native", - "registryEntryHolder": "native", - "registryEntryHolderSet": "native", - "lpVec3": "native", - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec2f": [ + "ArmorTrimMaterial": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetBase", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "overrideArmorAssets", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + }, + { + "name": "description", + "type": "anonymousNbt" } ] ], - "vec3f": [ + "ArmorTrimPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "description", + "type": "anonymousNbt" }, { - "name": "z", - "type": "f32" + "name": "decal", + "type": "bool" } ] ], - "vec4f": [ + "BannerPattern": [ "container", [ { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "w", - "type": "f32" + "name": "translationKey", + "type": "string" } ] ], - "vec3f64": [ + "BannerPatternLayer": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "BannerPattern" + } + } + ] }, { - "name": "z", - "type": "f64" + "name": "colorId", + "type": "varint" } ] ], - "vec3i": [ + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "ContainerID": "varint", + "DataComponentMatchers": [ "container", [ { - "name": "x", - "type": "varint" - }, - { - "name": "y", - "type": "varint" + "name": "exactMatchers", + "type": "ExactComponentMatcher" }, { - "name": "z", - "type": "varint" + "name": "partialMatchers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "vec3i32": [ + "DebugStructureInfo": [ "container", [ { - "name": "x", - "type": "i32" + "name": "boundingBoxMin", + "type": "position" }, { - "name": "y", - "type": "i32" + "name": "boundingBoxMax", + "type": "position" }, { - "name": "z", - "type": "i32" + "name": "pieces", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "boundingBoxMin", + "type": "position" + }, + { + "name": "boundingBoxMax", + "type": "position" + }, + { + "name": "isStart", + "type": "bool" + } + ] + ] + } + ] } ] ], - "IDSet": [ - "registryEntryHolderSet", + "DebugSubscriptionDataType": [ + "mapper", { - "base": { - "name": "name", - "type": "string" + "mappings": { + "0": "DedicatedServerTickTime", + "1": "Bees", + "2": "Brains", + "3": "Breezes", + "4": "GoalSelectors", + "5": "EntityPaths", + "6": "EntityBlockIntersections", + "7": "BeeHives", + "8": "Pois", + "9": "RedstoneWireOrientations", + "10": "VillageSections", + "11": "Raids", + "12": "Structures", + "13": "GameEventListeners", + "14": "NeighborUpdates", + "15": "GameEvents" }, - "otherwise": { - "name": "ids", - "type": "varint" - } + "type": "varint" } ], - "ContainerID": "varint", - "SlotComponentType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "custom_data", - "1": "max_stack_size", - "2": "max_damage", - "3": "damage", - "4": "unbreakable", - "5": "custom_name", - "6": "item_name", - "7": "item_model", - "8": "lore", - "9": "rarity", - "10": "enchantments", - "11": "can_place_on", - "12": "can_break", - "13": "attribute_modifiers", - "14": "custom_model_data", - "15": "tooltip_display", - "16": "repair_cost", - "17": "creative_slot_lock", - "18": "enchantment_glint_override", - "19": "intangible_projectile", - "20": "food", - "21": "consumable", - "22": "use_remainder", - "23": "use_cooldown", - "24": "damage_resistant", - "25": "tool", - "26": "weapon", - "27": "enchantable", - "28": "equippable", - "29": "repairable", - "30": "glider", - "31": "tooltip_style", - "32": "death_protection", - "33": "blocks_attacks", - "34": "stored_enchantments", - "35": "dyed_color", - "36": "map_color", - "37": "map_id", - "38": "map_decorations", - "39": "map_post_processing", - "40": "charged_projectiles", - "41": "bundle_contents", - "42": "potion_contents", - "43": "potion_duration_scale", - "44": "suspicious_stew_effects", - "45": "writable_book_content", - "46": "written_book_content", - "47": "trim", - "48": "debug_stick_state", - "49": "entity_data", - "50": "bucket_entity_data", - "51": "block_entity_data", - "52": "instrument", - "53": "provides_trim_material", - "54": "ominous_bottle_amplifier", - "55": "jukebox_playable", - "56": "provides_banner_patterns", - "57": "recipes", - "58": "lodestone_tracker", - "59": "firework_explosion", - "60": "fireworks", - "61": "profile", - "62": "note_block_sound", - "63": "banner_patterns", - "64": "base_color", - "65": "pot_decorations", - "66": "container", - "67": "block_state", - "68": "bees", - "69": "lock", - "70": "container_loot", - "71": "break_sound", - "72": "villager/variant", - "73": "wolf/variant", - "74": "wolf/sound_variant", - "75": "wolf/collar", - "76": "fox/variant", - "77": "salmon/size", - "78": "parrot/variant", - "79": "tropical_fish/pattern", - "80": "tropical_fish/base_color", - "81": "tropical_fish/pattern_color", - "82": "mooshroom/variant", - "83": "rabbit/variant", - "84": "pig/variant", - "85": "cow/variant", - "86": "chicken/variant", - "87": "frog/variant", - "88": "horse/variant", - "89": "painting/variant", - "90": "llama/variant", - "91": "axolotl/variant", - "92": "cat/variant", - "93": "cat/collar", - "94": "sheep/color", - "95": "shulker/color" - } - } - ], - "SlotComponent": [ + "DebugSubscriptionEvent": [ "container", [ { "name": "type", - "type": "SlotComponentType" + "type": "DebugSubscriptionDataType" }, { - "name": "data", + "name": "value", "type": [ "switch", { "compareTo": "type", "fields": { - "custom_data": "anonymousNbt", - "max_stack_size": "varint", - "max_damage": "varint", - "damage": "varint", - "unbreakable": "void", - "custom_name": "anonymousNbt", - "item_name": "anonymousNbt", - "item_model": "string", - "lore": [ - "array", - { - "countType": "varint", - "type": "anonymousNbt" - } - ], - "rarity": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "common", - "1": "uncommon", - "2": "rare", - "3": "epic" + "BeeHives": [ + "container", + [ + { + "name": "type", + "type": "varint" + }, + { + "name": "occupantCount", + "type": "varint" + }, + { + "name": "honeyLevel", + "type": "varint" + }, + { + "name": "sedated", + "type": "bool" } - } + ] ], - "enchantments": [ + "Bees": [ "container", [ { - "name": "enchantments", + "name": "hivePos", + "type": [ + "option", + "position" + ] + }, + { + "name": "flowerPos", + "type": [ + "option", + "position" + ] + }, + { + "name": "travelTicks", + "type": "varint" + }, + { + "name": "blacklistedHives", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] + "type": "position" } ] } ] ], - "stored_enchantments": [ + "Brains": [ "container", [ { - "name": "enchantments", + "name": "name", + "type": "string" + }, + { + "name": "profession", + "type": "string" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "health", + "type": "f32" + }, + { + "name": "maxHealth", + "type": "f32" + }, + { + "name": "inventory", + "type": "string" + }, + { + "name": "wantsGolem", + "type": "bool" + }, + { + "name": "angerLevel", + "type": "i32" + }, + { + "name": "activities", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] + "type": "string" } ] - } - ] - ], - "can_place_on": [ - "container", - [ + }, { - "name": "predicates", + "name": "behaviors", "type": [ "array", { "countType": "varint", - "type": "ItemBlockPredicate" + "type": "string" } ] - } - ] - ], - "can_break": [ - "container", - [ + }, { - "name": "predicates", + "name": "memories", "type": [ "array", { "countType": "varint", - "type": "ItemBlockPredicate" + "type": "string" } ] - } - ] - ], - "attribute_modifiers": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "typeId", - "type": "varint" - }, + }, + { + "name": "gossips", + "type": [ + "array", { - "name": "name", + "countType": "varint", "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "operation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "add", - "1": "multiply_base", - "2": "multiply_total" - } - } - ] - }, - { - "name": "slot", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "any", - "1": "main_hand", - "2": "off_hand", - "3": "hand", - "4": "feet", - "5": "legs", - "6": "chest", - "7": "head", - "8": "armor", - "9": "body", - "10": "saddle" - } - } - ] - }, - { - "name": "display", - "type": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "default", - "1": "hidden", - "2": "override" - } - } - ] - }, - { - "name": "component", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "override": "anonymousNbt" - } - } - ] - } - ] - ] - } - ] - ] - } - ], - "custom_model_data": [ - "container", - [ - { - "name": "floats", - "type": [ - "array", + } + ] + }, + { + "name": "pois", + "type": [ + "array", { "countType": "varint", - "type": "f32" + "type": "position" } ] }, { - "name": "flags", + "name": "potentialPois", "type": [ "array", { "countType": "varint", - "type": "bool" + "type": "position" } ] - }, + } + ] + ], + "Breezes": [ + "container", + [ { - "name": "strings", + "name": "attackTarget", "type": [ - "array", - { - "countType": "varint", - "type": "string" - } + "option", + "varint" ] }, { - "name": "colors", + "name": "jumpTarget", "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } + "option", + "position" ] } ] ], - "tooltip_display": [ + "DedicatedServerTickTime": "void", + "EntityBlockIntersections": [ "container", [ { - "name": "hideTooltip", - "type": "bool" - }, - { - "name": "hiddenComponents", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "id", + "type": "varint" } ] ], - "repair_cost": "varint", - "creative_slot_lock": "void", - "enchantment_glint_override": "bool", - "intangible_projectile": "void", - "blocks_attacks": [ + "EntityPaths": [ "container", [ { - "name": "blockDelaySeconds", - "type": "f32" + "name": "path", + "type": "Path" }, { - "name": "disableCooldownScale", + "name": "maxNodeDistance", "type": "f32" - }, - { - "name": "damageReductions", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalBlockingAngle", - "type": "f32" - }, - { - "name": "type", - "type": [ - "option", - "IDSet" - ] - }, - { - "name": "base", - "type": "f32" - }, - { - "name": "factor", - "type": "f32" - } - ] - ] - } - ] - }, - { - "name": "itemDamage", - "type": [ - "container", - [ - { - "name": "threshold", - "type": "f32" - }, - { - "name": "base", - "type": "f32" - }, - { - "name": "factor", - "type": "f32" - } - ] - ] - }, + } + ] + ], + "GameEventListeners": [ + "container", + [ { - "name": "bypassedBy", - "type": [ - "option", - "string" - ] - }, + "name": "listenerRadius", + "type": "varint" + } + ] + ], + "GameEvents": [ + "container", + [ { - "name": "blockSound", - "type": [ - "option", - "ItemSoundHolder" - ] + "name": "event", + "type": "varint" }, { - "name": "disableSound", - "type": [ - "option", - "ItemSoundHolder" - ] + "name": "pos", + "type": "vec3f64" } ] ], - "food": [ + "GoalSelectors": [ "container", [ { - "name": "nutrition", + "name": "priority", "type": "varint" }, { - "name": "saturationModifier", - "type": "f32" + "name": "running", + "type": "bool" }, { - "name": "canAlwaysEat", - "type": "bool" + "name": "name", + "type": "string" } ] ], - "consumable": [ + "NeighborUpdates": [ "container", [ { - "name": "consume_seconds", - "type": "f32" + "name": "pos", + "type": "position" + } + ] + ], + "Pois": [ + "container", + [ + { + "name": "pos", + "type": "position" }, { - "name": "animation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "none", - "1": "eat", - "2": "drink", - "3": "block", - "4": "bow", - "5": "spear", - "6": "crossbow", - "7": "spyglass", - "8": "toot_horn", - "9": "brush", - "10": "bundle" - } - } - ] - }, - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "makes_particles", - "type": "bool" - }, - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemConsumeEffect" - } - ] - } - ] - ], - "use_remainder": "Slot", - "use_cooldown": [ - "container", - [ - { - "name": "seconds", - "type": "f32" - }, - { - "name": "cooldownGroup", - "type": [ - "option", - "string" - ] - } - ] - ], - "damage_resistant": "string", - "tool": [ - "container", - [ - { - "name": "rules", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "blocks", - "type": "IDSet" - }, - { - "name": "speed", - "type": [ - "option", - "f32" - ] - }, - { - "name": "correctDropForBlocks", - "type": [ - "option", - "bool" - ] - } - ] - ] - } - ] - }, - { - "name": "defaultMiningSpeed", - "type": "f32" - }, - { - "name": "damagePerBlock", + "name": "poiType", "type": "varint" }, { - "name": "canDestroyBlocksInCreative", - "type": "bool" - } - ] - ], - "weapon": [ - "container", - [ - { - "name": "itemDamagePerAttack", + "name": "freeTicketCount", "type": "varint" - }, - { - "name": "disableBlockingForSeconds", - "type": "f32" - } - ] - ], - "enchantable": "varint", - "equippable": [ - "container", - [ - { - "name": "slot", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "main_hand", - "1": "off_hand", - "2": "feet", - "3": "legs", - "4": "chest", - "5": "head", - "6": "body", - "7": "saddle" - } - } - ] - }, - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "model", - "type": [ - "option", - "string" - ] - }, - { - "name": "cameraOverlay", - "type": [ - "option", - "string" - ] - }, - { - "name": "allowedEntities", - "type": [ - "option", - "IDSet" - ] - }, - { - "name": "dispensable", - "type": "bool" - }, - { - "name": "swappable", - "type": "bool" - }, - { - "name": "damageable", - "type": "bool" - }, - { - "name": "equipOnInteract", - "type": "bool" - }, - { - "name": "shearable", - "type": "bool" - }, - { - "name": "shearingSound", - "type": "ItemSoundHolder" - } - ] - ], - "repairable": [ - "container", - [ - { - "name": "items", - "type": "IDSet" } ] ], - "glider": "void", - "tooltip_style": "string", - "death_protection": [ + "Raids": [ "container", [ { - "name": "effects", + "name": "positions", "type": [ "array", { "countType": "varint", - "type": "ItemConsumeEffect" + "type": "position" } ] } ] ], - "dyed_color": "i32", - "map_color": "i32", - "map_id": "varint", - "map_decorations": "anonymousNbt", - "map_post_processing": "varint", - "potion_duration_scale": "f32", - "charged_projectiles": [ + "RedstoneWireOrientations": [ "container", [ { - "name": "projectiles", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] + "name": "index", + "type": "varint" } ] ], - "bundle_contents": [ + "Structures": [ "container", [ { - "name": "contents", + "name": "structures", "type": [ "array", { "countType": "varint", - "type": "Slot" + "type": "DebugStructureInfo" } ] } ] ], - "potion_contents": [ - "container", - [ - { - "name": "potionId", - "type": [ - "option", - "varint" - ] - }, - { - "name": "customColor", - "type": [ - "option", - "i32" - ] - }, - { - "name": "customEffects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemPotionEffect" - } - ] - }, - { - "name": "customName", - "type": [ - "option", - "string" - ] - } - ] - ], - "suspicious_stew_effects": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "effect", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "writable_book_content": [ - "container", - [ - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBookPage" - } - ] - } - ] - ], - "written_book_content": [ - "container", - [ - { - "name": "rawTitle", - "type": "string" - }, - { - "name": "filteredTitle", - "type": [ - "option", - "string" - ] - }, - { - "name": "author", - "type": "string" - }, - { - "name": "generation", - "type": "varint" - }, - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemWrittenBookPage" - } - ] - }, - { - "name": "resolved", - "type": "bool" - } - ] - ], - "trim": [ - "container", - [ - { - "name": "material", - "type": [ - "registryEntryHolder", - { - "baseName": "materialId", - "otherwise": { - "name": "data", - "type": "ArmorTrimMaterial" - } - } - ] - }, - { - "name": "pattern", - "type": [ - "registryEntryHolder", - { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "ArmorTrimPattern" - } - } - ] - } - ] - ], - "debug_stick_state": "anonymousNbt", - "entity_data": [ - "container", - [ - { - "name": "type", - "type": "varint" - }, - { - "name": "data", - "type": "anonymousNbt" - } - ] - ], - "block_entity_data": [ - "container", - [ - { - "name": "type", - "type": "varint" - }, - { - "name": "data", - "type": "anonymousNbt" - } - ] - ], - "bucket_entity_data": "anonymousNbt", - "instrument": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "instrumentId", - "otherwise": { - "name": "data", - "type": "InstrumentData" - } - } - ], - "false": "string" - } - } - ] - } - ] - ], - "provides_trim_material": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "material", - "type": [ + "VillageSections": "void" + } + } + ] + } + ] + ], + "DebugSubscriptionUpdate": [ + "container", + [ + { + "name": "type", + "type": "DebugSubscriptionDataType" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "default": [ + "container", + [ + { + "name": "payload", + "type": [ + "option", + [ "switch", { - "compareTo": "hasHolder", + "compareTo": "type", "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "materialId", - "otherwise": { - "name": "data", - "type": "ArmorTrimMaterial" + "BeeHives": [ + "container", + [ + { + "name": "type", + "type": "varint" + }, + { + "name": "occupantCount", + "type": "varint" + }, + { + "name": "honeyLevel", + "type": "varint" + }, + { + "name": "sedated", + "type": "bool" } - } + ] ], - "false": "string" - } - } - ] - } - ] - ], - "ominous_bottle_amplifier": "varint", - "jukebox_playable": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "song", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "songId", - "otherwise": { - "name": "data", - "type": "JukeboxSongData" + "Bees": [ + "container", + [ + { + "name": "hivePos", + "type": [ + "option", + "position" + ] + }, + { + "name": "flowerPos", + "type": [ + "option", + "position" + ] + }, + { + "name": "travelTicks", + "type": "varint" + }, + { + "name": "blacklistedHives", + "type": [ + "array", + { + "countType": "varint", + "type": "position" + } + ] } - } - ], - "false": "string" - } - } - ] - } - ] - ], - "provides_banner_patterns": "string", - "recipes": "anonymousNbt", - "lodestone_tracker": [ - "container", - [ - { - "name": "globalPosition", - "type": [ - "option", - "GlobalPos" - ] - }, - { - "name": "tracked", - "type": "bool" - } - ] - ], - "firework_explosion": "ItemFireworkExplosion", - "fireworks": [ - "container", - [ - { - "name": "flightDuration", - "type": "varint" - }, - { - "name": "explosions", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemFireworkExplosion" - } - ] - } - ] - ], - "profile": "ResolvableProfile", - "note_block_sound": "string", - "banner_patterns": [ - "container", - [ - { - "name": "layers", - "type": [ - "array", - { - "countType": "varint", - "type": "BannerPatternLayer" - } - ] - } - ] - ], - "base_color": "varint", - "pot_decorations": [ - "container", - [ - { - "name": "decorations", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "container": [ - "container", - [ - { - "name": "contents", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "block_state": [ - "container", - [ - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] - } - ] - ], - "bees": [ - "container", - [ - { - "name": "bees", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "nbtData", - "type": "anonymousNbt" - }, - { - "name": "ticksInHive", - "type": "varint" - }, - { - "name": "minTicksInHive", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "lock": "anonymousNbt", - "container_loot": "anonymousNbt", - "break_sound": "ItemSoundHolder", - "villager/variant": "varint", - "wolf/variant": "varint", - "wolf/sound_variant": "varint", - "wolf/collar": "varint", - "fox/variant": "varint", - "salmon/size": "varint", - "parrot/variant": "varint", - "tropical_fish/pattern": "varint", - "tropical_fish/base_color": "varint", - "tropical_fish/pattern_color": "varint", - "mooshroom/variant": "varint", - "rabbit/variant": "varint", - "pig/variant": "varint", - "cow/variant": "varint", - "chicken/variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "string" - } - } - ], - "frog/variant": "varint", - "horse/variant": "varint", - "painting/variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "data", - "type": "EntityMetadataPaintingVariant" - } - } - ], - "llama/variant": "varint", - "axolotl/variant": "varint", - "cat/variant": "varint", - "cat/collar": "varint", - "sheep/color": "varint", - "shulker/color": "varint" - } - } - ] - } - ] - ], - "ItemSoundEvent": [ - "container", - [ - { - "name": "soundName", - "type": "string" - }, - { - "name": "fixedRange", - "type": [ - "option", - "f32" - ] - } - ] - ], - "ItemSoundHolder": [ - "registryEntryHolder", - { - "baseName": "soundId", - "otherwise": { - "name": "data", - "type": "ItemSoundEvent" - } - } - ], - "ItemFireworkExplosion": [ - "container", - [ - { - "name": "shape", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "small_ball", - "1": "large_ball", - "2": "star", - "3": "creeper", - "4": "burst" - } - } - ] - }, - { - "name": "colors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "fadeColors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "hasTrail", - "type": "bool" - }, - { - "name": "hasTwinkle", - "type": "bool" - } - ] - ], - "ItemEffectDetail": [ - "container", - [ - { - "name": "amplifier", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "ambient", - "type": "bool" - }, - { - "name": "showParticles", - "type": "bool" - }, - { - "name": "showIcon", - "type": "bool" - }, - { - "name": "hiddenEffect", - "type": [ - "option", - "ItemEffectDetail" - ] - } - ] - ], - "ItemPotionEffect": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "details", - "type": "ItemEffectDetail" - } - ] - ], - "ItemBlockProperty": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "isExactMatch", - "type": "bool" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "isExactMatch", - "fields": { - "true": [ - "container", - [ - { - "name": "exactValue", - "type": "string" - } - ] - ], - "false": [ - "container", - [ - { - "name": "minValue", - "type": "string" - }, - { - "name": "maxValue", - "type": "string" - } - ] - ] - } - } - ] - } - ] - ], - "ExactComponentMatcher": [ - "array", - { - "countType": "varint", - "type": "SlotComponent" - } - ], - "DataComponentMatchers": [ - "container", - [ - { - "name": "exactMatchers", - "type": "ExactComponentMatcher" - }, - { - "name": "partialMatchers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "ItemBlockPredicate": [ - "container", - [ - { - "name": "blockSet", - "type": [ - "option", - [ - "registryEntryHolderSet", - { - "base": { - "name": "name", - "type": "string" - }, - "otherwise": { - "name": "blockIds", - "type": "varint" - } - } - ] - ] - }, - { - "name": "properties", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": "ItemBlockProperty" - } - ] - ] - }, - { - "name": "nbt", - "type": "anonOptionalNbt" - }, - { - "name": "components", - "type": "DataComponentMatchers" - } - ] - ], - "ItemBookPage": [ - "container", - [ - { - "name": "content", - "type": "string" - }, - { - "name": "filteredContent", - "type": [ - "option", - "string" - ] - } - ] - ], - "ItemWrittenBookPage": [ - "container", - [ - { - "name": "content", - "type": "anonymousNbt" - }, - { - "name": "filteredContent", - "type": "anonOptionalNbt" - } - ] - ], - "ItemConsumeEffect": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "apply_effects", - "1": "remove_effects", - "2": "clear_all_effects", - "3": "teleport_randomly", - "4": "play_sound" - } - } - ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "apply_effects": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemPotionEffect" - } - ] - }, - { - "name": "probability", - "type": "f32" - } - ] - ], - "remove_effects": [ - "container", - [ - { - "name": "effects", - "type": "IDSet" - } - ] - ], - "clear_all_effects": "void", - "teleport_randomly": [ - "container", - [ - { - "name": "diameter", - "type": "f32" - } - ] - ], - "play_sound": [ - "container", - [ - { - "name": "sound", - "type": "ItemSoundHolder" - } - ] - ] - } - } - ] - } - ] - ], - "ArmorTrimMaterial": [ - "container", - [ - { - "name": "assetBase", - "type": "string" - }, - { - "name": "overrideArmorAssets", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] - }, - { - "name": "description", - "type": "anonymousNbt" - } - ] - ], - "ArmorTrimPattern": [ - "container", - [ - { - "name": "assetId", - "type": "string" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "decal", - "type": "bool" - } - ] - ], - "InstrumentData": [ - "container", - [ - { - "name": "soundEvent", - "type": "ItemSoundHolder" - }, - { - "name": "useDuration", - "type": "f32" - }, - { - "name": "range", - "type": "f32" - }, - { - "name": "description", - "type": "anonymousNbt" - } - ] - ], - "JukeboxSongData": [ - "container", - [ - { - "name": "soundEvent", - "type": "ItemSoundHolder" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "lengthInSeconds", - "type": "f32" - }, - { - "name": "comparatorOutput", - "type": "varint" - } - ] - ], - "BannerPattern": [ - "container", - [ - { - "name": "assetId", - "type": "string" - }, - { - "name": "translationKey", - "type": "string" - } - ] - ], - "BannerPatternLayer": [ - "container", - [ - { - "name": "pattern", - "type": [ - "registryEntryHolder", - { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "BannerPattern" - } - } - ] - }, - { - "name": "colorId", - "type": "varint" - } - ] - ], - "UntrustedSlotComponent": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - }, - { - "name": "data", - "type": "ByteArray" - } - ] - ], - "UntrustedSlot": [ - "container", - [ - { - "name": "itemCount", - "type": "varint" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "itemCount", - "fields": { - "0": "void", - "false": "void" - }, - "default": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "removedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "UntrustedSlotComponent" - } - ] - }, - { - "name": "removeComponents", - "type": [ - "array", - { - "count": "removedComponentCount", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] - } - ] - } - ] - ] - } - ] - } - ] - ], - "Slot": [ - "container", - [ - { - "name": "itemCount", - "type": "varint" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "itemCount", - "fields": { - "0": "void" - }, - "default": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "removedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "SlotComponent" - } - ] - }, - { - "name": "removeComponents", - "type": [ - "array", - { - "count": "removedComponentCount", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] - } - ] - } - ] - ] - } - ] - } - ] - ], - "HashedSlot": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - }, - { - "name": "hash", - "type": "i32" - } - ] - ] - } - ] - }, - { - "name": "removeComponents", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] - } - ] - } - ] - ], - "RespawnData": [ - "container", - [ - { - "name": "globalPos", - "type": "GlobalPos" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - } - ] - ], - "GlobalPos": [ - "container", - [ - { - "name": "dimensionName", - "type": "string" - }, - { - "name": "location", - "type": "position" - } - ] - ], - "DebugStructureInfo": [ - "container", - [ - { - "name": "boundingBoxMin", - "type": "position" - }, - { - "name": "boundingBoxMax", - "type": "position" - }, - { - "name": "pieces", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "boundingBoxMin", - "type": "position" - }, - { - "name": "boundingBoxMax", - "type": "position" - }, - { - "name": "isStart", - "type": "bool" - } - ] - ] - } - ] - } - ] - ], - "Node": [ - "container", - [ - { - "name": "position", - "type": "vec3i32" - }, - { - "name": "walkedDistance", - "type": "f32" - }, - { - "name": "costMalus", - "type": "f32" - }, - { - "name": "closed", - "type": "bool" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "blocked", - "1": "open", - "2": "walkable", - "3": "walkable_door", - "4": "trapdoor", - "5": "powder_snow", - "6": "danger_powder_snow", - "7": "fence", - "8": "lava", - "9": "water", - "10": "water_border", - "11": "rail", - "12": "unpassable_rail", - "13": "danger_fire", - "14": "damage_fire", - "15": "danger_other", - "16": "damage_other", - "17": "door_open", - "18": "door_wood_closed", - "19": "door_iron_closed", - "20": "breach", - "21": "leaves", - "22": "sticky_honey", - "23": "cocoa", - "24": "damage_cautious", - "25": "danger_trapdoor" - } - } - ] - }, - { - "name": "f", - "type": "f32" - } - ] - ], - "PathDebugData": [ - "container", - [ - { - "name": "openSet", - "type": [ - "array", - { - "countType": "varint", - "type": "Node" - } - ] - }, - { - "name": "closedSet", - "type": [ - "array", - { - "countType": "varint", - "type": "Node" - } - ] - }, - { - "name": "targetNodes", - "type": [ - "array", - { - "countType": "varint", - "type": "Node" - } - ] - } - ] - ], - "Path": [ - "container", - [ - { - "name": "reached", - "type": "bool" - }, - { - "name": "nextNodeIndex", - "type": "i32" - }, - { - "name": "target", - "type": "position" - }, - { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "Node" - } - ] - }, - { - "name": "debugData", - "type": "PathDebugData" - } - ] - ], - "DebugSubscriptionDataType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "DedicatedServerTickTime", - "1": "Bees", - "2": "Brains", - "3": "Breezes", - "4": "GoalSelectors", - "5": "EntityPaths", - "6": "EntityBlockIntersections", - "7": "BeeHives", - "8": "Pois", - "9": "RedstoneWireOrientations", - "10": "VillageSections", - "11": "Raids", - "12": "Structures", - "13": "GameEventListeners", - "14": "NeighborUpdates", - "15": "GameEvents" - } - } - ], - "DebugSubscriptionUpdate": [ - "container", - [ - { - "name": "type", - "type": "DebugSubscriptionDataType" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "DedicatedServerTickTime": "void" - }, - "default": [ - "container", - [ - { - "name": "payload", - "type": [ - "option", - [ - "switch", - { - "compareTo": "type", - "fields": { - "DedicatedServerTickTime": "void", - "VillageSections": "void", - "Bees": [ - "container", - [ - { - "name": "hivePos", - "type": [ - "option", - "position" - ] - }, - { - "name": "flowerPos", - "type": [ - "option", - "position" - ] - }, - { - "name": "travelTicks", - "type": "varint" - }, - { - "name": "blacklistedHives", - "type": [ - "array", - { - "countType": "varint", - "type": "position" - } - ] - } - ] + ] ], "Brains": [ "container", @@ -2456,34 +689,13 @@ } ] ], - "GoalSelectors": [ + "DedicatedServerTickTime": "void", + "EntityBlockIntersections": [ "container", [ { - "name": "goals", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "priority", - "type": "varint" - }, - { - "name": "running", - "type": "bool" - }, - { - "name": "name", - "type": "string" - } - ] - ] - } - ] + "name": "id", + "type": "varint" } ] ], @@ -2500,33 +712,65 @@ } ] ], - "EntityBlockIntersections": [ + "GameEventListeners": [ "container", [ { - "name": "id", + "name": "listenerRadius", "type": "varint" } ] ], - "BeeHives": [ + "GameEvents": [ "container", [ { - "name": "type", + "name": "event", "type": "varint" }, { - "name": "occupantCount", - "type": "varint" - }, + "name": "pos", + "type": "vec3f64" + } + ] + ], + "GoalSelectors": [ + "container", + [ { - "name": "honeyLevel", - "type": "varint" - }, + "name": "goals", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "priority", + "type": "varint" + }, + { + "name": "running", + "type": "bool" + }, + { + "name": "name", + "type": "string" + } + ] + ] + } + ] + } + ] + ], + "NeighborUpdates": [ + "container", + [ { - "name": "sedated", - "type": "bool" + "name": "pos", + "type": "position" } ] ], @@ -2547,15 +791,6 @@ } ] ], - "RedstoneWireOrientations": [ - "container", - [ - { - "name": "index", - "type": "varint" - } - ] - ], "Raids": [ "container", [ @@ -2571,6 +806,15 @@ } ] ], + "RedstoneWireOrientations": [ + "container", + [ + { + "name": "index", + "type": "varint" + } + ] + ], "Structures": [ "container", [ @@ -2586,1024 +830,2492 @@ } ] ], - "GameEventListeners": [ - "container", - [ - { - "name": "listenerRadius", - "type": "varint" - } - ] - ], - "NeighborUpdates": [ - "container", - [ - { - "name": "pos", - "type": "position" - } - ] - ], - "GameEvents": [ + "VillageSections": "void" + } + } + ] + ] + } + ] + ], + "fields": { + "DedicatedServerTickTime": "void" + } + } + ] + } + ] + ], + "EntityMetadataPaintingVariant": [ + "container", + [ + { + "name": "width", + "type": "i32" + }, + { + "name": "height", + "type": "i32" + }, + { + "name": "assetId", + "type": "string" + }, + { + "name": "title", + "type": [ + "option", + "anonymousNbt" + ] + }, + { + "name": "author", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ], + "ExactComponentMatcher": [ + "array", + { + "countType": "varint", + "type": "SlotComponent" + } + ], + "GameProfile": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": "GameProfileProperty" + } + ] + } + ] + ], + "GameProfileProperty": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ], + "GlobalPos": [ + "container", + [ + { + "name": "dimensionName", + "type": "string" + }, + { + "name": "location", + "type": "position" + } + ] + ], + "HashedSlot": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + }, + { + "name": "hash", + "type": "i32" + } + ] + ] + } + ] + }, + { + "name": "removeComponents", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] + } + ] + ], + "IDSet": [ + "registryEntryHolderSet", + { + "base": { + "name": "name", + "type": "string" + }, + "otherwise": { + "name": "ids", + "type": "varint" + } + } + ], + "InstrumentData": [ + "container", + [ + { + "name": "soundEvent", + "type": "ItemSoundHolder" + }, + { + "name": "useDuration", + "type": "f32" + }, + { + "name": "range", + "type": "f32" + }, + { + "name": "description", + "type": "anonymousNbt" + } + ] + ], + "ItemBlockPredicate": [ + "container", + [ + { + "name": "blockSet", + "type": [ + "option", + [ + "registryEntryHolderSet", + { + "base": { + "name": "name", + "type": "string" + }, + "otherwise": { + "name": "blockIds", + "type": "varint" + } + } + ] + ] + }, + { + "name": "properties", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": "ItemBlockProperty" + } + ] + ] + }, + { + "name": "nbt", + "type": "anonOptionalNbt" + }, + { + "name": "components", + "type": "DataComponentMatchers" + } + ] + ], + "ItemBlockProperty": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "isExactMatch", + "type": "bool" + }, + { + "name": "value", + "type": [ + "switch", + { + "compareTo": "isExactMatch", + "fields": { + "false": [ + "container", + [ + { + "name": "minValue", + "type": "string" + }, + { + "name": "maxValue", + "type": "string" + } + ] + ], + "true": [ + "container", + [ + { + "name": "exactValue", + "type": "string" + } + ] + ] + } + } + ] + } + ] + ], + "ItemBookPage": [ + "container", + [ + { + "name": "content", + "type": "string" + }, + { + "name": "filteredContent", + "type": [ + "option", + "string" + ] + } + ] + ], + "ItemConsumeEffect": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "apply_effects", + "1": "remove_effects", + "2": "clear_all_effects", + "3": "teleport_randomly", + "4": "play_sound" + }, + "type": "varint" + } + ] + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "apply_effects": [ + "container", + [ + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemPotionEffect" + } + ] + }, + { + "name": "probability", + "type": "f32" + } + ] + ], + "clear_all_effects": "void", + "play_sound": [ + "container", + [ + { + "name": "sound", + "type": "ItemSoundHolder" + } + ] + ], + "remove_effects": [ + "container", + [ + { + "name": "effects", + "type": "IDSet" + } + ] + ], + "teleport_randomly": [ + "container", + [ + { + "name": "diameter", + "type": "f32" + } + ] + ] + } + } + ] + } + ] + ], + "ItemEffectDetail": [ + "container", + [ + { + "name": "amplifier", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "ambient", + "type": "bool" + }, + { + "name": "showParticles", + "type": "bool" + }, + { + "name": "showIcon", + "type": "bool" + }, + { + "name": "hiddenEffect", + "type": [ + "option", + "ItemEffectDetail" + ] + } + ] + ], + "ItemFireworkExplosion": [ + "container", + [ + { + "name": "shape", + "type": [ + "mapper", + { + "mappings": { + "0": "small_ball", + "1": "large_ball", + "2": "star", + "3": "creeper", + "4": "burst" + }, + "type": "varint" + } + ] + }, + { + "name": "colors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] + }, + { + "name": "fadeColors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] + }, + { + "name": "hasTrail", + "type": "bool" + }, + { + "name": "hasTwinkle", + "type": "bool" + } + ] + ], + "ItemPotionEffect": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "details", + "type": "ItemEffectDetail" + } + ] + ], + "ItemSoundEvent": [ + "container", + [ + { + "name": "soundName", + "type": "string" + }, + { + "name": "fixedRange", + "type": [ + "option", + "f32" + ] + } + ] + ], + "ItemSoundHolder": [ + "registryEntryHolder", + { + "baseName": "soundId", + "otherwise": { + "name": "data", + "type": "ItemSoundEvent" + } + } + ], + "ItemWrittenBookPage": [ + "container", + [ + { + "name": "content", + "type": "anonymousNbt" + }, + { + "name": "filteredContent", + "type": "anonOptionalNbt" + } + ] + ], + "JukeboxSongData": [ + "container", + [ + { + "name": "soundEvent", + "type": "ItemSoundHolder" + }, + { + "name": "description", + "type": "anonymousNbt" + }, + { + "name": "lengthInSeconds", + "type": "f32" + }, + { + "name": "comparatorOutput", + "type": "varint" + } + ] + ], + "Node": [ + "container", + [ + { + "name": "position", + "type": "vec3i32" + }, + { + "name": "walkedDistance", + "type": "f32" + }, + { + "name": "costMalus", + "type": "f32" + }, + { + "name": "closed", + "type": "bool" + }, + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "blocked", + "1": "open", + "2": "walkable", + "3": "walkable_door", + "4": "trapdoor", + "5": "powder_snow", + "6": "danger_powder_snow", + "7": "fence", + "8": "lava", + "9": "water", + "10": "water_border", + "11": "rail", + "12": "unpassable_rail", + "13": "danger_fire", + "14": "damage_fire", + "15": "danger_other", + "16": "damage_other", + "17": "door_open", + "18": "door_wood_closed", + "19": "door_iron_closed", + "20": "breach", + "21": "leaves", + "22": "sticky_honey", + "23": "cocoa", + "24": "damage_cautious", + "25": "danger_trapdoor" + }, + "type": "varint" + } + ] + }, + { + "name": "f", + "type": "f32" + } + ] + ], + "PartialResolvableProfile": [ + "container", + [ + { + "name": "name", + "type": [ + "option", + "string" + ] + }, + { + "name": "uuid", + "type": [ + "option", + "UUID" + ] + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": "GameProfileProperty" + } + ] + } + ] + ], + "Particle": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "angry_villager", + "1": "block", + "2": "block_marker", + "3": "bubble", + "4": "cloud", + "5": "copper_fire_flame", + "6": "crit", + "7": "damage_indicator", + "8": "dragon_breath", + "9": "dripping_lava", + "10": "falling_lava", + "11": "landing_lava", + "12": "dripping_water", + "13": "falling_water", + "14": "dust", + "15": "dust_color_transition", + "16": "effect", + "17": "elder_guardian", + "18": "enchanted_hit", + "19": "enchant", + "20": "end_rod", + "21": "entity_effect", + "22": "explosion_emitter", + "23": "explosion", + "24": "gust", + "25": "small_gust", + "26": "gust_emitter_large", + "27": "gust_emitter_small", + "28": "sonic_boom", + "29": "falling_dust", + "30": "firework", + "31": "fishing", + "32": "flame", + "33": "infested", + "34": "cherry_leaves", + "35": "pale_oak_leaves", + "36": "tinted_leaves", + "37": "sculk_soul", + "38": "sculk_charge", + "39": "sculk_charge_pop", + "40": "soul_fire_flame", + "41": "soul", + "42": "flash", + "43": "happy_villager", + "44": "composter", + "45": "heart", + "46": "instant_effect", + "47": "item", + "48": "vibration", + "49": "trail", + "50": "item_slime", + "51": "item_cobweb", + "52": "item_snowball", + "53": "large_smoke", + "54": "lava", + "55": "mycelium", + "56": "note", + "57": "poof", + "58": "portal", + "59": "rain", + "60": "smoke", + "61": "white_smoke", + "62": "sneeze", + "63": "spit", + "64": "squid_ink", + "65": "sweep_attack", + "66": "totem_of_undying", + "67": "underwater", + "68": "splash", + "69": "witch", + "70": "bubble_pop", + "71": "current_down", + "72": "bubble_column_up", + "73": "nautilus", + "74": "dolphin", + "75": "campfire_cosy_smoke", + "76": "campfire_signal_smoke", + "77": "dripping_honey", + "78": "falling_honey", + "79": "landing_honey", + "80": "falling_nectar", + "81": "falling_spore_blossom", + "82": "ash", + "83": "crimson_spore", + "84": "warped_spore", + "85": "spore_blossom_air", + "86": "dripping_obsidian_tear", + "87": "falling_obsidian_tear", + "88": "landing_obsidian_tear", + "89": "reverse_portal", + "90": "white_ash", + "91": "small_flame", + "92": "snowflake", + "93": "dripping_dripstone_lava", + "94": "falling_dripstone_lava", + "95": "dripping_dripstone_water", + "96": "falling_dripstone_water", + "97": "glow_squid_ink", + "98": "glow", + "99": "wax_on", + "100": "wax_off", + "101": "electric_spark", + "102": "scrape", + "103": "shriek", + "104": "egg_crack", + "105": "dust_plume", + "106": "trial_spawner_detected_player", + "107": "trial_spawner_detected_player_ominous", + "108": "vault_connection", + "109": "dust_pillar", + "110": "ominous_spawning", + "111": "raid_omen", + "112": "trial_omen", + "113": "block_crumble", + "114": "firefly" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "block": "varint", + "block_crumble": "varint", + "block_marker": "varint", + "dragon_breath": [ + "container", + [ + { + "name": "power", + "type": "f32" + } + ] + ], + "dust": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "dust_color_transition": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "dust_pillar": "varint", + "effect": [ + "container", + [ + { + "name": "color", + "type": "i32" + }, + { + "name": "power", + "type": "f32" + } + ] + ], + "entity_effect": "i32", + "falling_dust": "varint", + "firefly": "void", + "flash": "i32", + "instant_effect": [ + "container", + [ + { + "name": "color", + "type": "i32" + }, + { + "name": "power", + "type": "f32" + } + ] + ], + "item": "Slot", + "sculk_charge": "f32", + "shriek": "varint", + "tinted_leaves": "i32", + "trail": [ + "container", + [ + { + "name": "target", + "type": "vec3f64" + }, + { + "name": "color", + "type": "u8" + } + ] + ], + "vibration": [ + "container", + [ + { + "name": "positionType", + "type": [ + "mapper", + { + "mappings": { + "0": "block", + "1": "entity" + }, + "type": "varint" + } + ] + }, + { + "name": "position", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "block": "position", + "entity": [ "container", [ { - "name": "event", + "name": "entityId", "type": "varint" }, { - "name": "pos", - "type": "vec3f64" + "name": "entityEyeHeight", + "type": "f32" } ] ] - } + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] + ] + } + } + ] + } + ] + ], + "Path": [ + "container", + [ + { + "name": "reached", + "type": "bool" + }, + { + "name": "nextNodeIndex", + "type": "i32" + }, + { + "name": "target", + "type": "position" + }, + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "Node" + } + ] + }, + { + "name": "debugData", + "type": "PathDebugData" + } + ] + ], + "PathDebugData": [ + "container", + [ + { + "name": "openSet", + "type": [ + "array", + { + "countType": "varint", + "type": "Node" + } + ] + }, + { + "name": "closedSet", + "type": [ + "array", + { + "countType": "varint", + "type": "Node" + } + ] + }, + { + "name": "targetNodes", + "type": [ + "array", + { + "countType": "varint", + "type": "Node" + } + ] + } + ] + ], + "PlayerSkinPatch": [ + "container", + [ + { + "name": "body", + "type": [ + "option", + "string" + ] + }, + { + "name": "cape", + "type": [ + "option", + "string" + ] + }, + { + "name": "elytra", + "type": [ + "option", + "string" + ] + }, + { + "name": "model", + "type": [ + "option", + [ + "mapper", + { + "mappings": { + "0": "wide", + "1": "slim" + }, + "type": "varint" + } + ] + ] + } + ] + ], + "ResolvableProfile": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "partial", + "1": "complete" + }, + "type": "varint" + } + ] + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "complete": "GameProfile", + "partial": "PartialResolvableProfile" + } + } + ] + }, + { + "name": "skinPatch", + "type": "PlayerSkinPatch" + } + ] + ], + "RespawnData": [ + "container", + [ + { + "name": "globalPos", + "type": "GlobalPos" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + } + ] + ], + "ServerLinkType": [ + "mapper", + { + "mappings": { + "0": "bug_report", + "1": "community_guidelines", + "2": "support", + "3": "status", + "4": "feedback", + "5": "community", + "6": "website", + "7": "forums", + "8": "news", + "9": "announcements" + }, + "type": "varint" + } + ], + "Slot": [ + "container", + [ + { + "name": "itemCount", + "type": "varint" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "itemCount", + "default": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "removedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "SlotComponent" + } + ] + }, + { + "name": "removeComponents", + "type": [ + "array", + { + "count": "removedComponentCount", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] + } + ] + ], + "fields": { + "0": "void" + } + } + ] + } + ] + ], + "SlotComponent": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "attribute_modifiers": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "typeId", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "operation", + "type": [ + "mapper", + { + "mappings": { + "0": "add", + "1": "multiply_base", + "2": "multiply_total" + }, + "type": "varint" + } + ] + }, + { + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "any", + "1": "main_hand", + "2": "off_hand", + "3": "hand", + "4": "feet", + "5": "legs", + "6": "chest", + "7": "head", + "8": "armor", + "9": "body", + "10": "saddle" + }, + "type": "varint" + } + ] + }, + { + "name": "display", + "type": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "default", + "1": "hidden", + "2": "override" + }, + "type": "varint" + } + ] + }, + { + "name": "component", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "override": "anonymousNbt" + } + } + ] + } + ] + ] } ] ] } - ] - ] - } - ] - } - ] - ], - "DebugSubscriptionEvent": [ - "container", - [ - { - "name": "type", - "type": "DebugSubscriptionDataType" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "DedicatedServerTickTime": "void", - "VillageSections": "void", - "Bees": [ + ], + "axolotl/variant": "varint", + "banner_patterns": [ "container", [ { - "name": "hivePos", + "name": "layers", "type": [ - "option", - "position" + "array", + { + "countType": "varint", + "type": "BannerPatternLayer" + } + ] + } + ] + ], + "base_color": "varint", + "bees": [ + "container", + [ + { + "name": "bees", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "nbtData", + "type": "anonymousNbt" + }, + { + "name": "ticksInHive", + "type": "varint" + }, + { + "name": "minTicksInHive", + "type": "varint" + } + ] + ] + } ] + } + ] + ], + "block_entity_data": [ + "container", + [ + { + "name": "type", + "type": "varint" }, { - "name": "flowerPos", + "name": "data", + "type": "anonymousNbt" + } + ] + ], + "block_state": [ + "container", + [ + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + } + ] + ], + "blocks_attacks": [ + "container", + [ + { + "name": "blockDelaySeconds", + "type": "f32" + }, + { + "name": "disableCooldownScale", + "type": "f32" + }, + { + "name": "damageReductions", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalBlockingAngle", + "type": "f32" + }, + { + "name": "type", + "type": [ + "option", + "IDSet" + ] + }, + { + "name": "base", + "type": "f32" + }, + { + "name": "factor", + "type": "f32" + } + ] + ] + } + ] + }, + { + "name": "itemDamage", + "type": [ + "container", + [ + { + "name": "threshold", + "type": "f32" + }, + { + "name": "base", + "type": "f32" + }, + { + "name": "factor", + "type": "f32" + } + ] + ] + }, + { + "name": "bypassedBy", "type": [ "option", - "position" + "string" ] }, { - "name": "travelTicks", - "type": "varint" + "name": "blockSound", + "type": [ + "option", + "ItemSoundHolder" + ] }, { - "name": "blacklistedHives", + "name": "disableSound", + "type": [ + "option", + "ItemSoundHolder" + ] + } + ] + ], + "break_sound": "ItemSoundHolder", + "bucket_entity_data": "anonymousNbt", + "bundle_contents": [ + "container", + [ + { + "name": "contents", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "can_break": [ + "container", + [ + { + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" + } + ] + } + ] + ], + "can_place_on": [ + "container", + [ + { + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" + } + ] + } + ] + ], + "cat/collar": "varint", + "cat/variant": "varint", + "charged_projectiles": [ + "container", + [ + { + "name": "projectiles", "type": [ "array", { "countType": "varint", - "type": "position" + "type": "Slot" } ] } ] ], - "Brains": [ + "chicken/variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "string" + } + } + ], + "consumable": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "profession", - "type": "string" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "health", + "name": "consume_seconds", "type": "f32" }, { - "name": "maxHealth", - "type": "f32" + "name": "animation", + "type": [ + "mapper", + { + "mappings": { + "0": "none", + "1": "eat", + "2": "drink", + "3": "block", + "4": "bow", + "5": "spear", + "6": "crossbow", + "7": "spyglass", + "8": "toot_horn", + "9": "brush", + "10": "bundle" + }, + "type": "varint" + } + ] }, { - "name": "inventory", - "type": "string" + "name": "sound", + "type": "ItemSoundHolder" }, { - "name": "wantsGolem", + "name": "makes_particles", "type": "bool" }, { - "name": "angerLevel", - "type": "i32" - }, - { - "name": "activities", + "name": "effects", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "ItemConsumeEffect" } ] - }, + } + ] + ], + "container": [ + "container", + [ { - "name": "behaviors", + "name": "contents", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "Slot" } ] - }, + } + ] + ], + "container_loot": "anonymousNbt", + "cow/variant": "varint", + "creative_slot_lock": "void", + "custom_data": "anonymousNbt", + "custom_model_data": [ + "container", + [ { - "name": "memories", + "name": "floats", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "f32" } ] }, { - "name": "gossips", + "name": "flags", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "bool" } ] }, { - "name": "pois", + "name": "strings", "type": [ "array", { "countType": "varint", - "type": "position" + "type": "string" } ] }, { - "name": "potentialPois", + "name": "colors", "type": [ "array", { "countType": "varint", - "type": "position" + "type": "i32" } ] } ] ], - "Breezes": [ + "custom_name": "anonymousNbt", + "damage": "varint", + "damage_resistant": "string", + "death_protection": [ "container", [ { - "name": "attackTarget", + "name": "effects", "type": [ - "option", - "varint" + "array", + { + "countType": "varint", + "type": "ItemConsumeEffect" + } ] - }, + } + ] + ], + "debug_stick_state": "anonymousNbt", + "dyed_color": "i32", + "enchantable": "varint", + "enchantment_glint_override": "bool", + "enchantments": [ + "container", + [ { - "name": "jumpTarget", + "name": "enchantments", "type": [ - "option", - "position" + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] + } ] } ] ], - "GoalSelectors": [ + "entity_data": [ "container", [ { - "name": "priority", + "name": "type", "type": "varint" }, { - "name": "running", - "type": "bool" - }, - { - "name": "name", - "type": "string" + "name": "data", + "type": "anonymousNbt" } ] ], - "EntityPaths": [ + "equippable": [ "container", [ { - "name": "path", - "type": "Path" + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "main_hand", + "1": "off_hand", + "2": "feet", + "3": "legs", + "4": "chest", + "5": "head", + "6": "body", + "7": "saddle" + }, + "type": "varint" + } + ] }, { - "name": "maxNodeDistance", - "type": "f32" - } - ] - ], - "EntityBlockIntersections": [ - "container", - [ + "name": "sound", + "type": "ItemSoundHolder" + }, { - "name": "id", - "type": "varint" - } - ] - ], - "BeeHives": [ - "container", - [ + "name": "model", + "type": [ + "option", + "string" + ] + }, { - "name": "type", - "type": "varint" + "name": "cameraOverlay", + "type": [ + "option", + "string" + ] }, { - "name": "occupantCount", - "type": "varint" + "name": "allowedEntities", + "type": [ + "option", + "IDSet" + ] }, { - "name": "honeyLevel", - "type": "varint" + "name": "dispensable", + "type": "bool" }, { - "name": "sedated", + "name": "swappable", "type": "bool" - } - ] - ], - "Pois": [ - "container", - [ + }, { - "name": "pos", - "type": "position" + "name": "damageable", + "type": "bool" }, { - "name": "poiType", - "type": "varint" + "name": "equipOnInteract", + "type": "bool" + }, + { + "name": "shearable", + "type": "bool" }, { - "name": "freeTicketCount", - "type": "varint" + "name": "shearingSound", + "type": "ItemSoundHolder" } ] ], - "RedstoneWireOrientations": [ + "firework_explosion": "ItemFireworkExplosion", + "fireworks": [ "container", [ { - "name": "index", + "name": "flightDuration", "type": "varint" - } - ] - ], - "Raids": [ - "container", - [ - { - "name": "positions", - "type": [ - "array", - { - "countType": "varint", - "type": "position" - } - ] - } - ] - ], - "Structures": [ - "container", - [ + }, { - "name": "structures", + "name": "explosions", "type": [ "array", { "countType": "varint", - "type": "DebugStructureInfo" + "type": "ItemFireworkExplosion" } ] } ] ], - "GameEventListeners": [ + "food": [ "container", [ { - "name": "listenerRadius", + "name": "nutrition", "type": "varint" + }, + { + "name": "saturationModifier", + "type": "f32" + }, + { + "name": "canAlwaysEat", + "type": "bool" } ] ], - "NeighborUpdates": [ + "fox/variant": "varint", + "frog/variant": "varint", + "glider": "void", + "horse/variant": "varint", + "instrument": [ "container", [ { - "name": "pos", - "type": "position" + "name": "hasHolder", + "type": "bool" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "instrumentId", + "otherwise": { + "name": "data", + "type": "InstrumentData" + } + } + ] + } + } + ] } ] ], - "GameEvents": [ + "intangible_projectile": "void", + "item_model": "string", + "item_name": "anonymousNbt", + "jukebox_playable": [ "container", [ { - "name": "event", - "type": "varint" + "name": "hasHolder", + "type": "bool" }, { - "name": "pos", - "type": "vec3f64" - } - ] - ] - } - } - ] - } - ] - ], - "Particle": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "angry_villager", - "1": "block", - "2": "block_marker", - "3": "bubble", - "4": "cloud", - "5": "copper_fire_flame", - "6": "crit", - "7": "damage_indicator", - "8": "dragon_breath", - "9": "dripping_lava", - "10": "falling_lava", - "11": "landing_lava", - "12": "dripping_water", - "13": "falling_water", - "14": "dust", - "15": "dust_color_transition", - "16": "effect", - "17": "elder_guardian", - "18": "enchanted_hit", - "19": "enchant", - "20": "end_rod", - "21": "entity_effect", - "22": "explosion_emitter", - "23": "explosion", - "24": "gust", - "25": "small_gust", - "26": "gust_emitter_large", - "27": "gust_emitter_small", - "28": "sonic_boom", - "29": "falling_dust", - "30": "firework", - "31": "fishing", - "32": "flame", - "33": "infested", - "34": "cherry_leaves", - "35": "pale_oak_leaves", - "36": "tinted_leaves", - "37": "sculk_soul", - "38": "sculk_charge", - "39": "sculk_charge_pop", - "40": "soul_fire_flame", - "41": "soul", - "42": "flash", - "43": "happy_villager", - "44": "composter", - "45": "heart", - "46": "instant_effect", - "47": "item", - "48": "vibration", - "49": "trail", - "50": "item_slime", - "51": "item_cobweb", - "52": "item_snowball", - "53": "large_smoke", - "54": "lava", - "55": "mycelium", - "56": "note", - "57": "poof", - "58": "portal", - "59": "rain", - "60": "smoke", - "61": "white_smoke", - "62": "sneeze", - "63": "spit", - "64": "squid_ink", - "65": "sweep_attack", - "66": "totem_of_undying", - "67": "underwater", - "68": "splash", - "69": "witch", - "70": "bubble_pop", - "71": "current_down", - "72": "bubble_column_up", - "73": "nautilus", - "74": "dolphin", - "75": "campfire_cosy_smoke", - "76": "campfire_signal_smoke", - "77": "dripping_honey", - "78": "falling_honey", - "79": "landing_honey", - "80": "falling_nectar", - "81": "falling_spore_blossom", - "82": "ash", - "83": "crimson_spore", - "84": "warped_spore", - "85": "spore_blossom_air", - "86": "dripping_obsidian_tear", - "87": "falling_obsidian_tear", - "88": "landing_obsidian_tear", - "89": "reverse_portal", - "90": "white_ash", - "91": "small_flame", - "92": "snowflake", - "93": "dripping_dripstone_lava", - "94": "falling_dripstone_lava", - "95": "dripping_dripstone_water", - "96": "falling_dripstone_water", - "97": "glow_squid_ink", - "98": "glow", - "99": "wax_on", - "100": "wax_off", - "101": "electric_spark", - "102": "scrape", - "103": "shriek", - "104": "egg_crack", - "105": "dust_plume", - "106": "trial_spawner_detected_player", - "107": "trial_spawner_detected_player_ominous", - "108": "vault_connection", - "109": "dust_pillar", - "110": "ominous_spawning", - "111": "raid_omen", - "112": "trial_omen", - "113": "block_crumble", - "114": "firefly" - } - } - ] - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "block": "varint", - "block_marker": "varint", - "falling_dust": "varint", - "dust_pillar": "varint", - "block_crumble": "varint", - "dust": [ + "name": "song", + "type": [ + "switch", + { + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "songId", + "otherwise": { + "name": "data", + "type": "JukeboxSongData" + } + } + ] + } + } + ] + } + ] + ], + "llama/variant": "varint", + "lock": "anonymousNbt", + "lodestone_tracker": [ "container", [ { - "name": "red", - "type": "f32" - }, - { - "name": "green", - "type": "f32" + "name": "globalPosition", + "type": [ + "option", + "GlobalPos" + ] }, { - "name": "blue", - "type": "f32" - }, + "name": "tracked", + "type": "bool" + } + ] + ], + "lore": [ + "array", + { + "countType": "varint", + "type": "anonymousNbt" + } + ], + "map_color": "i32", + "map_decorations": "anonymousNbt", + "map_id": "varint", + "map_post_processing": "varint", + "max_damage": "varint", + "max_stack_size": "varint", + "mooshroom/variant": "varint", + "note_block_sound": "string", + "ominous_bottle_amplifier": "varint", + "painting/variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "data", + "type": "EntityMetadataPaintingVariant" + } + } + ], + "parrot/variant": "varint", + "pig/variant": "varint", + "pot_decorations": [ + "container", + [ { - "name": "scale", - "type": "f32" + "name": "decorations", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "dust_color_transition": [ + "potion_contents": [ "container", [ { - "name": "fromRed", - "type": "f32" + "name": "potionId", + "type": [ + "option", + "varint" + ] }, { - "name": "fromGreen", - "type": "f32" + "name": "customColor", + "type": [ + "option", + "i32" + ] }, { - "name": "fromBlue", - "type": "f32" + "name": "customEffects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemPotionEffect" + } + ] }, { - "name": "scale", - "type": "f32" - }, + "name": "customName", + "type": [ + "option", + "string" + ] + } + ] + ], + "potion_duration_scale": "f32", + "profile": "ResolvableProfile", + "provides_banner_patterns": "string", + "provides_trim_material": [ + "container", + [ { - "name": "toRed", - "type": "f32" + "name": "hasHolder", + "type": "bool" }, { - "name": "toGreen", - "type": "f32" + "name": "material", + "type": [ + "switch", + { + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "materialId", + "otherwise": { + "name": "data", + "type": "ArmorTrimMaterial" + } + } + ] + } + } + ] + } + ] + ], + "rabbit/variant": "varint", + "rarity": [ + "mapper", + { + "mappings": { + "0": "common", + "1": "uncommon", + "2": "rare", + "3": "epic" }, + "type": "varint" + } + ], + "recipes": "anonymousNbt", + "repair_cost": "varint", + "repairable": [ + "container", + [ { - "name": "toBlue", - "type": "f32" + "name": "items", + "type": "IDSet" } ] ], - "entity_effect": "i32", - "item": "Slot", - "sculk_charge": "f32", - "shriek": "varint", - "vibration": [ + "salmon/size": "varint", + "sheep/color": "varint", + "shulker/color": "varint", + "stored_enchantments": [ "container", [ { - "name": "positionType", + "name": "enchantments", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0": "block", - "1": "entity" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] } ] - }, + } + ] + ], + "suspicious_stew_effects": [ + "container", + [ { - "name": "position", + "name": "effects", "type": [ - "switch", + "array", { - "compareTo": "positionType", - "fields": { - "block": "position", - "entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityEyeHeight", - "type": "f32" - } - ] + "countType": "varint", + "type": [ + "container", + [ + { + "name": "effect", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "tool": [ + "container", + [ + { + "name": "rules", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "blocks", + "type": "IDSet" + }, + { + "name": "speed", + "type": [ + "option", + "f32" + ] + }, + { + "name": "correctDropForBlocks", + "type": [ + "option", + "bool" + ] + } ] - } + ] } ] }, { - "name": "ticks", - "type": "varint" - } - ] - ], - "trail": [ - "container", - [ - { - "name": "target", - "type": "vec3f64" + "name": "defaultMiningSpeed", + "type": "f32" }, { - "name": "color", - "type": "u8" - } - ] - ], - "tinted_leaves": "i32", - "firefly": "void", - "dragon_breath": [ - "container", - [ + "name": "damagePerBlock", + "type": "varint" + }, { - "name": "power", - "type": "f32" + "name": "canDestroyBlocksInCreative", + "type": "bool" } ] ], - "effect": [ + "tooltip_display": [ "container", [ { - "name": "color", - "type": "i32" + "name": "hideTooltip", + "type": "bool" }, { - "name": "power", - "type": "f32" + "name": "hiddenComponents", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "instant_effect": [ + "tooltip_style": "string", + "trim": [ "container", [ { - "name": "color", - "type": "i32" + "name": "material", + "type": [ + "registryEntryHolder", + { + "baseName": "materialId", + "otherwise": { + "name": "data", + "type": "ArmorTrimMaterial" + } + } + ] }, { - "name": "power", - "type": "f32" + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "ArmorTrimPattern" + } + } + ] } ] ], - "flash": "i32" - } - } - ] - } - ] - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "soundSource": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "master", - "1": "music", - "2": "record", - "3": "weather", - "4": "block", - "5": "hostile", - "6": "neutral", - "7": "player", - "8": "ambient", - "9": "voice", - "10": "ui" - } - } - ], - "packedChunkPos": [ - "container", - [ - { - "name": "z", - "type": "i32" - }, - { - "name": "x", - "type": "i32" - } - ] - ], - "previousMessages": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] - } - ] - ] - } - ], - "entityMetadataEntry": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "byte", - "1": "int", - "2": "long", - "3": "float", - "4": "string", - "5": "component", - "6": "optional_component", - "7": "item_stack", - "8": "boolean", - "9": "rotations", - "10": "block_pos", - "11": "optional_block_pos", - "12": "direction", - "13": "optional_uuid", - "14": "block_state", - "15": "optional_block_state", - "16": "particle", - "17": "particles", - "18": "villager_data", - "19": "optional_unsigned_int", - "20": "pose", - "21": "cat_variant", - "22": "cow_variant", - "23": "wolf_variant", - "24": "wolf_sound_variant", - "25": "frog_variant", - "26": "pig_variant", - "27": "chicken_variant", - "28": "optional_global_pos", - "29": "painting_variant", - "30": "sniffer_state", - "31": "armadillo_state", - "32": "copper_golem_state", - "33": "weathering_copper_golem_state", - "34": "vector3", - "35": "quaternion", - "36": "resolvable_profile" - } - } - ] - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "byte": "i8", - "int": "varint", - "long": "varlong", - "float": "f32", - "string": "string", - "component": "anonymousNbt", - "optional_component": [ - "option", - "anonymousNbt" - ], - "item_stack": "Slot", - "boolean": "bool", - "rotations": [ + "tropical_fish/base_color": "varint", + "tropical_fish/pattern": "varint", + "tropical_fish/pattern_color": "varint", + "unbreakable": "void", + "use_cooldown": [ "container", [ { - "name": "pitch", + "name": "seconds", "type": "f32" }, { - "name": "yaw", - "type": "f32" + "name": "cooldownGroup", + "type": [ + "option", + "string" + ] + } + ] + ], + "use_remainder": "Slot", + "villager/variant": "varint", + "weapon": [ + "container", + [ + { + "name": "itemDamagePerAttack", + "type": "varint" }, { - "name": "roll", + "name": "disableBlockingForSeconds", "type": "f32" } ] ], - "block_pos": "position", - "optional_block_pos": [ - "option", - "position" - ], - "direction": "varint", - "optional_uuid": [ - "option", - "UUID" - ], - "block_state": "varint", - "optional_block_state": "optvarint", - "particle": "Particle", - "particles": [ - "array", - { - "countType": "varint", - "type": "Particle" - } + "wolf/collar": "varint", + "wolf/sound_variant": "varint", + "wolf/variant": "varint", + "writable_book_content": [ + "container", + [ + { + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBookPage" + } + ] + } + ] ], - "villager_data": [ + "written_book_content": [ "container", [ { - "name": "villagerType", - "type": "varint" + "name": "rawTitle", + "type": "string" }, { - "name": "villagerProfession", - "type": "varint" + "name": "filteredTitle", + "type": [ + "option", + "string" + ] }, { - "name": "level", + "name": "author", + "type": "string" + }, + { + "name": "generation", "type": "varint" + }, + { + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemWrittenBookPage" + } + ] + }, + { + "name": "resolved", + "type": "bool" } ] - ], - "optional_unsigned_int": "optvarint", - "pose": "varint", - "cat_variant": "varint", - "cow_variant": "varint", - "wolf_variant": "varint", - "wolf_sound_variant": "varint", - "frog_variant": "varint", - "pig_variant": "varint", - "chicken_variant": "varint", - "optional_global_pos": [ - "option", - "GlobalPos" - ], - "painting_variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "EntityMetadataPaintingVariant" - } - } - ], - "sniffer_state": "varint", - "armadillo_state": "varint", - "copper_golem_state": "varint", - "weathering_copper_golem_state": "varint", - "vector3": "vec3f", - "quaternion": "vec4f", - "resolvable_profile": "ResolvableProfile" + ] } } ] } ] ], - "EntityMetadataPaintingVariant": [ - "container", - [ - { - "name": "width", - "type": "i32" - }, - { - "name": "height", - "type": "i32" - }, - { - "name": "assetId", - "type": "string" - }, - { - "name": "title", - "type": [ - "option", - "anonymousNbt" - ] - }, - { - "name": "author", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": "entityMetadataEntry" - } - ], - "tags": [ - "array", + "SlotComponentType": [ + "mapper", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] + "mappings": { + "0": "custom_data", + "1": "max_stack_size", + "2": "max_damage", + "3": "damage", + "4": "unbreakable", + "5": "custom_name", + "6": "item_name", + "7": "item_model", + "8": "lore", + "9": "rarity", + "10": "enchantments", + "11": "can_place_on", + "12": "can_break", + "13": "attribute_modifiers", + "14": "custom_model_data", + "15": "tooltip_display", + "16": "repair_cost", + "17": "creative_slot_lock", + "18": "enchantment_glint_override", + "19": "intangible_projectile", + "20": "food", + "21": "consumable", + "22": "use_remainder", + "23": "use_cooldown", + "24": "damage_resistant", + "25": "tool", + "26": "weapon", + "27": "enchantable", + "28": "equippable", + "29": "repairable", + "30": "glider", + "31": "tooltip_style", + "32": "death_protection", + "33": "blocks_attacks", + "34": "stored_enchantments", + "35": "dyed_color", + "36": "map_color", + "37": "map_id", + "38": "map_decorations", + "39": "map_post_processing", + "40": "charged_projectiles", + "41": "bundle_contents", + "42": "potion_contents", + "43": "potion_duration_scale", + "44": "suspicious_stew_effects", + "45": "writable_book_content", + "46": "written_book_content", + "47": "trim", + "48": "debug_stick_state", + "49": "entity_data", + "50": "bucket_entity_data", + "51": "block_entity_data", + "52": "instrument", + "53": "provides_trim_material", + "54": "ominous_bottle_amplifier", + "55": "jukebox_playable", + "56": "provides_banner_patterns", + "57": "recipes", + "58": "lodestone_tracker", + "59": "firework_explosion", + "60": "fireworks", + "61": "profile", + "62": "note_block_sound", + "63": "banner_patterns", + "64": "base_color", + "65": "pot_decorations", + "66": "container", + "67": "block_state", + "68": "bees", + "69": "lock", + "70": "container_loot", + "71": "break_sound", + "72": "villager/variant", + "73": "wolf/variant", + "74": "wolf/sound_variant", + "75": "wolf/collar", + "76": "fox/variant", + "77": "salmon/size", + "78": "parrot/variant", + "79": "tropical_fish/pattern", + "80": "tropical_fish/base_color", + "81": "tropical_fish/pattern_color", + "82": "mooshroom/variant", + "83": "rabbit/variant", + "84": "pig/variant", + "85": "cow/variant", + "86": "chicken/variant", + "87": "frog/variant", + "88": "horse/variant", + "89": "painting/variant", + "90": "llama/variant", + "91": "axolotl/variant", + "92": "cat/variant", + "93": "cat/collar", + "94": "sheep/color", + "95": "shulker/color" + }, + "type": "varint" } ], - "chunkBlockEntity": [ + "UUID": "native", + "UntrustedSlot": [ "container", [ + { + "name": "itemCount", + "type": "varint" + }, { "anon": true, "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false + "switch", + { + "compareTo": "itemCount", + "default": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "removedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "UntrustedSlotComponent" + } + ] + }, + { + "name": "removeComponents", + "type": [ + "array", + { + "count": "removedComponentCount", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] + } + ] + ], + "fields": { + "0": "void", + "false": "void" } - ] + } ] - }, - { - "name": "y", - "type": "i16" - }, + } + ] + ], + "UntrustedSlotComponent": [ + "container", + [ { "name": "type", - "type": "varint" + "type": "SlotComponentType" }, { - "name": "nbtData", - "type": "anonOptionalNbt" + "name": "data", + "type": "ByteArray" } ] ], + "anonOptionalNbt": "native", + "anonymousNbt": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", "chat_session": [ "option", [ @@ -3626,191 +3338,58 @@ "name": "keyBytes", "type": [ "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "keySignature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ] - } - ] - ] - ], - "game_profile_name_prop": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": "GameProfileProperty" - } - ] - } - ] - ], - "GameProfile": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": "GameProfileProperty" - } - ] - } - ] - ], - "PartialResolvableProfile": [ - "container", - [ - { - "name": "name", - "type": [ - "option", - "string" - ] - }, - { - "name": "uuid", - "type": [ - "option", - "UUID" - ] - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": "GameProfileProperty" - } - ] - } - ] - ], - "GameProfileProperty": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ], - "ResolvableProfile": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "partial", - "1": "complete" - } - } - ] - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "partial": "PartialResolvableProfile", - "complete": "GameProfile" - } - } - ] - }, - { - "name": "skinPatch", - "type": "PlayerSkinPatch" - } + { + "countType": "varint" + } + ] + }, + { + "name": "keySignature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ] + } + ] ] ], - "PlayerSkinPatch": [ + "chunkBlockEntity": [ "container", [ { - "name": "body", + "anon": true, "type": [ - "option", - "string" + "bitfield", + [ + { + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 + } + ] ] }, { - "name": "cape", - "type": [ - "option", - "string" - ] + "name": "y", + "type": "i16" }, { - "name": "elytra", - "type": [ - "option", - "string" - ] + "name": "type", + "type": "varint" }, { - "name": "model", - "type": [ - "option", - [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "wide", - "1": "slim" - } - } - ] - ] + "name": "nbtData", + "type": "anonOptionalNbt" } ] ], @@ -3824,33 +3403,33 @@ [ { "name": "unused", - "size": 2, - "signed": false + "signed": false, + "size": 2 }, { "name": "allows_restricted", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_custom_suggestions", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_redirect_node", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "command_node_type", - "size": 2, - "signed": false + "signed": false, + "size": 2 } ] ] @@ -3871,10 +3450,10 @@ "switch", { "compareTo": "flags/has_redirect_node", + "default": "void", "fields": { "1": "varint" - }, - "default": "void" + } } ] }, @@ -3907,7 +3486,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "brigadier:bool", "1": "brigadier:float", @@ -3966,7 +3544,8 @@ "54": "minecraft:loot_modifier", "55": "minecraft:dialog", "56": "minecraft:uuid" - } + }, + "type": "varint" } ] }, @@ -3978,7 +3557,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -3988,18 +3567,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -4010,10 +3589,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -4023,16 +3602,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -4042,18 +3621,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -4064,10 +3643,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -4077,10 +3656,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -4096,18 +3675,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -4118,10 +3697,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -4131,10 +3710,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -4150,18 +3729,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -4172,10 +3751,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -4185,10 +3764,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -4197,46 +3776,54 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dialog": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", - "minecraft:item_predicate": "void", - "minecraft:color": "void", + "minecraft:gamemode": "void", + "minecraft:heightmap": "void", "minecraft:hex_color": "void", - "minecraft:component": "void", + "minecraft:int_range": "void", + "minecraft:item_predicate": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", "minecraft:nbt": "void", "minecraft:nbt_path": "void", @@ -4244,43 +3831,25 @@ "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", + "minecraft:resource": [ + "container", [ { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false + "name": "registry", + "type": "string" } ] ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:dimension": "void", - "minecraft:gamemode": "void", - "minecraft:time": [ + "minecraft:resource_key": [ "container", [ { - "name": "min", - "type": "i32" + "name": "registry", + "type": "string" } ] ], + "minecraft:resource_location": "void", "minecraft:resource_or_tag": [ "container", [ @@ -4299,7 +3868,7 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_selector": [ "container", [ { @@ -4308,137 +3877,323 @@ } ] ], - "minecraft:resource_key": [ - "container", + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", [ { - "name": "registry", - "type": "string" + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 } ] ], - "minecraft:resource_selector": [ + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:template_mirror": "void", + "minecraft:template_rotation": "void", + "minecraft:time": [ "container", [ { - "name": "registry", - "type": "string" + "name": "min", + "type": "i32" } ] ], - "minecraft:template_mirror": "void", - "minecraft:template_rotation": "void", - "minecraft:heightmap": "void", - "minecraft:dialog": "void", - "minecraft:uuid": "void" + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" + } + } + ] + }, + { + "name": "suggestionType", + "type": [ + "switch", + { + "compareTo": "../flags/has_custom_suggestions", + "default": "void", + "fields": { + "1": "string" } } ] + } + ] + ] + } + } + ] + } + ] + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": "entityMetadataEntry" + } + ], + "entityMetadataEntry": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "particle", + "17": "particles", + "18": "villager_data", + "19": "optional_unsigned_int", + "20": "pose", + "21": "cat_variant", + "22": "cow_variant", + "23": "wolf_variant", + "24": "wolf_sound_variant", + "25": "frog_variant", + "26": "pig_variant", + "27": "chicken_variant", + "28": "optional_global_pos", + "29": "painting_variant", + "30": "sniffer_state", + "31": "armadillo_state", + "32": "copper_golem_state", + "33": "weathering_copper_golem_state", + "34": "vector3", + "35": "quaternion", + "36": "resolvable_profile" + }, + "type": "varint" + } + ] + }, + { + "name": "value", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "armadillo_state": "varint", + "block_pos": "position", + "block_state": "varint", + "boolean": "bool", + "byte": "i8", + "cat_variant": "varint", + "chicken_variant": "varint", + "component": "anonymousNbt", + "copper_golem_state": "varint", + "cow_variant": "varint", + "direction": "varint", + "float": "f32", + "frog_variant": "varint", + "int": "varint", + "item_stack": "Slot", + "long": "varlong", + "optional_block_pos": [ + "option", + "position" + ], + "optional_block_state": "optvarint", + "optional_component": [ + "option", + "anonymousNbt" + ], + "optional_global_pos": [ + "option", + "GlobalPos" + ], + "optional_unsigned_int": "optvarint", + "optional_uuid": [ + "option", + "UUID" + ], + "painting_variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "EntityMetadataPaintingVariant" + } + } + ], + "particle": "Particle", + "particles": [ + "array", + { + "countType": "varint", + "type": "Particle" + } + ], + "pig_variant": "varint", + "pose": "varint", + "quaternion": "vec4f", + "resolvable_profile": "ResolvableProfile", + "rotations": [ + "container", + [ + { + "name": "pitch", + "type": "f32" }, { - "name": "suggestionType", - "type": [ - "switch", - { - "compareTo": "../flags/has_custom_suggestions", - "fields": { - "1": "string" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" } ] - ] + ], + "sniffer_state": "varint", + "string": "string", + "vector3": "vec3f", + "villager_data": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "weathering_copper_golem_state": "varint", + "wolf_sound_variant": "varint", + "wolf_variant": "varint" } } ] } ] ], - "packet_common_settings": [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "game_profile_name_prop": [ "container", [ { - "name": "locale", + "name": "name", "type": "string" }, { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" - }, - { - "name": "enableTextFiltering", - "type": "bool" - }, - { - "name": "enableServerListing", - "type": "bool" - }, - { - "name": "particleStatus", + "name": "properties", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0": "all", - "1": "decreased", - "2": "minimal" - } + "countType": "varint", + "type": "GameProfileProperty" } ] } ] ], - "packet_common_cookie_request": [ + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ], + "lpVec3": "native", + "option": "native", + "optvarint": "varint", + "packedChunkPos": [ "container", [ { - "name": "cookie", - "type": "string" + "name": "z", + "type": "i32" + }, + { + "name": "x", + "type": "i32" } ] ], - "packet_common_store_cookie": [ + "packet_common_add_resource_pack": [ "container", [ { - "name": "key", + "name": "uuid", + "type": "UUID" + }, + { + "name": "url", "type": "string" }, { - "name": "value", - "type": "ByteArray" + "name": "hash", + "type": "string" + }, + { + "name": "forced", + "type": "bool" + }, + { + "name": "promptMessage", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "packet_common_transfer": [ + "packet_common_clear_dialog": [ + "container", + [] + ], + "packet_common_cookie_request": [ "container", [ { - "name": "host", + "name": "cookie", "type": "string" - }, - { - "name": "port", - "type": "varint" } ] ], @@ -4458,33 +4213,18 @@ } ] ], - "packet_common_select_known_packs": [ + "packet_common_custom_click_action": [ "container", [ { - "name": "packs", + "name": "id", + "type": "string" + }, + { + "name": "nbt", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "namespace", - "type": "string" - }, - { - "name": "id", - "type": "string" - }, - { - "name": "version", - "type": "string" - } - ] - ] - } + "option", + "anonymousNbt" ] } ] @@ -4528,52 +4268,37 @@ } ] ], - "packet_common_add_resource_pack": [ + "packet_common_select_known_packs": [ "container", [ { - "name": "uuid", - "type": "UUID" - }, - { - "name": "url", - "type": "string" - }, - { - "name": "hash", - "type": "string" - }, - { - "name": "forced", - "type": "bool" - }, - { - "name": "promptMessage", + "name": "packs", "type": [ - "option", - "anonymousNbt" + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "namespace", + "type": "string" + }, + { + "name": "id", + "type": "string" + }, + { + "name": "version", + "type": "string" + } + ] + ] + } ] } ] ], - "ServerLinkType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "bug_report", - "1": "community_guidelines", - "2": "support", - "3": "status", - "4": "feedback", - "5": "community", - "6": "website", - "7": "forums", - "8": "news", - "9": "announcements" - } - } - ], "packet_common_server_links": [ "container", [ @@ -4625,217 +4350,128 @@ } ] ], - "packet_common_clear_dialog": [ - "container", - [] - ], - "packet_common_custom_click_action": [ + "packet_common_settings": [ "container", [ { - "name": "id", + "name": "locale", "type": "string" }, { - "name": "nbt", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": {} - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" - } - } - ] - } - ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ - "container", - [ - { - "name": "response", - "type": "string" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "time", - "type": "i64" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "server_info", - "0x01": "ping" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" - } - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] - ], - "packet_ping": [ - "container", - [ + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", + "type": "varint" + }, + { + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" + }, + { + "name": "enableTextFiltering", + "type": "bool" + }, + { + "name": "enableServerListing", + "type": "bool" + }, + { + "name": "particleStatus", + "type": [ + "mapper", { - "name": "time", - "type": "i64" + "mappings": { + "0": "all", + "1": "decreased", + "2": "minimal" + }, + "type": "varint" } ] - ], - "packet": [ + } + ] + ], + "packet_common_store_cookie": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "ByteArray" + } + ] + ], + "packet_common_transfer": [ + "container", + [ + { + "name": "host", + "type": "string" + }, + { + "name": "port", + "type": "varint" + } + ] + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "previousMessages": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } - } - ] + "name": "id", + "type": "varint" }, { - "name": "params", + "name": "signature", "type": [ "switch", { - "compareTo": "name", + "compareTo": "id", + "default": "void", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "0": [ + "buffer", + { + "count": 256 + } + ] } } ] @@ -4843,119 +4479,176 @@ ] ] } - } - }, - "login": { - "toClient": { - "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_encryption_begin": [ - "container", - [ - { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "verifyToken", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "shouldAuthenticate", - "type": "bool" - } - ] - ], - "packet_success": [ + ], + "pstring": "native", + "registryEntryHolder": "native", + "registryEntryHolderSet": "native", + "restBuffer": "native", + "soundSource": [ + "mapper", + { + "mappings": { + "0": "master", + "1": "music", + "2": "record", + "3": "weather", + "4": "block", + "5": "hostile", + "6": "neutral", + "7": "player", + "8": "ambient", + "9": "voice", + "10": "ui" + }, + "type": "varint" + } + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ "container", [ { - "name": "uuid", - "type": "UUID" - }, - { - "name": "username", + "name": "tagName", "type": "string" }, { - "name": "properties", + "name": "entries", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] + "type": "varint" } ] } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], - "packet_login_plugin_request": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec2f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + } + ] + ], + "vec3f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + } + ] + ], + "vec3f64": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "vec3i": [ + "container", + [ + { + "name": "x", + "type": "varint" + }, + { + "name": "y", + "type": "varint" + }, + { + "name": "z", + "type": "varint" + } + ] + ], + "vec3i32": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + } + ] + ], + "vec4f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "w", + "type": "f32" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { "packet": [ "container", [ @@ -4964,15 +4657,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request", - "0x05": "cookie_request" - } + "mappings": {}, + "type": "varint" } ] }, @@ -4982,14 +4668,7 @@ "switch", { "compareTo": "name", - "fields": { - "disconnect": "packet_disconnect", - "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request", - "cookie_request": "packet_common_cookie_request" - } + "fields": {} } ] } @@ -4999,62 +4678,6 @@ }, "toServer": { "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - }, - { - "name": "playerUUID", - "type": "UUID" - } - ] - ], - "packet_encryption_begin": [ - "container", - [ - { - "name": "sharedSecret", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "verifyToken", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ], - "packet_login_plugin_response": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "data", - "type": [ - "option", - "restBuffer" - ] - } - ] - ], - "packet_login_acknowledged": [ - "container", - [] - ], "packet": [ "container", [ @@ -5063,14 +4686,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response", - "0x03": "login_acknowledged", - "0x04": "cookie_response" - } + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" } ] }, @@ -5081,165 +4701,103 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response", - "login_acknowledged": "packet_login_acknowledged", - "cookie_response": "packet_common_cookie_response" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "configuration": { - "toClient": { - "types": { - "packet_code_of_conduct": [ - "container", - [ - { - "name": "contents", - "type": "string" - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ + "packet_legacy_server_list_ping": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "id", - "type": "i32" - } - ] - ], - "packet_reset_chat": [ - "container", - [] - ], - "packet_registry_data": [ - "container", - [ + "name": "protocolVersion", + "type": "varint" + }, { - "name": "id", + "name": "serverHost", "type": "string" }, { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], - "packet_feature_flags": [ + ] + } + } + }, + "status": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "features", + "name": "name", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": "string" + "mappings": { + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] - } - ] - ], - "packet_tags": [ - "container", - [ + }, { - "name": "tags", + "name": "params", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] + "compareTo": "name", + "fields": { + "ping": "packet_ping", + "server_info": "packet_server_info" + } } ] } ] ], - "packet_show_dialog": [ + "packet_ping": [ "container", [ { - "name": "dialog", - "type": "anonymousNbt" + "name": "time", + "type": "i64" } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -5248,29 +4806,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links", - "0x11": "clear_dialog", - "0x12": "show_dialog", - "0x13": "code_of_conduct" - } + "0x00": "ping_start", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -5281,510 +4821,470 @@ { "compareTo": "name", "fields": { - "cookie_request": "packet_common_cookie_request", - "custom_payload": "packet_custom_payload", - "disconnect": "packet_disconnect", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", "ping": "packet_ping", - "reset_chat": "packet_reset_chat", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "store_cookie": "packet_common_store_cookie", - "transfer": "packet_common_transfer", - "feature_flags": "packet_feature_flags", - "tags": "packet_tags", - "select_known_packs": "packet_common_select_known_packs", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links", - "clear_dialog": "packet_common_clear_dialog", - "show_dialog": "packet_show_dialog", - "code_of_conduct": "packet_code_of_conduct" + "ping_start": "packet_ping_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_accept_code_of_conduct": [ - "container", - [] ], - "packet_custom_payload": [ + "packet_ping": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "time", + "type": "i64" } ] ], - "packet_finish_configuration": [ + "packet_ping_start": [ "container", [] - ], - "packet_keep_alive": [ + ] + } + } + }, + "login": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request", + "0x05": "cookie_request" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "cookie_request": "packet_common_cookie_request", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" + } + } + ] } ] ], - "packet_pong": [ + "packet_compress": [ "container", [ { - "name": "id", - "type": "i32" + "name": "threshold", + "type": "varint" } ] ], - "packet_resource_pack_receive": [ + "packet_disconnect": [ "container", [ { - "name": "uuid", - "type": "UUID" - }, - { - "name": "result", - "type": "varint" + "name": "reason", + "type": "string" } ] ], - "packet": [ + "packet_encryption_begin": [ "container", [ { - "name": "name", + "name": "serverId", + "type": "string" + }, + { + "name": "publicKey", "type": [ - "mapper", + "buffer", { - "type": "varint", - "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_click_action", - "0x09": "accept_code_of_conduct" - } + "countType": "varint" } ] }, { - "name": "params", + "name": "verifyToken", "type": [ - "switch", + "buffer", { - "compareTo": "name", - "fields": { - "settings": "packet_common_settings", - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "custom_click_action": "packet_common_custom_click_action", - "accept_code_of_conduct": "packet_accept_code_of_conduct" - } + "countType": "varint" } ] + }, + { + "name": "shouldAuthenticate", + "type": "bool" } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "SlotDisplay": [ + ], + "packet_login_plugin_request": [ + "container", + [ + { + "name": "messageId", + "type": "varint" + }, + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_success": [ "container", [ { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "empty", - "1": "any_fuel", - "2": "item", - "3": "item_stack", - "4": "tag", - "5": "smithing_trim", - "6": "with_remainder", - "7": "composite" - } - } - ] + "name": "uuid", + "type": "UUID" }, { - "name": "data", + "name": "username", + "type": "string" + }, + { + "name": "properties", "type": [ - "switch", + "array", { - "compareTo": "type", - "fields": { - "empty": "void", - "any_fuel": "void", - "item": "varint", - "item_stack": "Slot", - "tag": "string", - "smithing_trim": [ - "container", - [ - { - "name": "base", - "type": "SlotDisplay" - }, - { - "name": "material", - "type": "SlotDisplay" - }, - { - "name": "pattern", - "type": [ - "registryEntryHolder", - { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "ArmorTrimPattern" - } - } - ] - } - ] - ], - "with_remainder": [ - "container", - [ - { - "name": "input", - "type": "SlotDisplay" - }, - { - "name": "remainder", - "type": "SlotDisplay" - } - ] - ], - "composite": [ - "array", + "countType": "varint", + "type": [ + "container", + [ { - "countType": "varint", - "type": "SlotDisplay" + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] } ] - } + ] } ] } ] - ], - "RecipeDisplay": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "type", + "name": "name", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "crafting_shapeless", - "1": "crafting_shaped", - "2": "furnace", - "3": "stonecutter", - "4": "smithing" - } + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response", + "0x03": "login_acknowledged", + "0x04": "cookie_response" + }, + "type": "varint" } ] }, { - "name": "data", + "name": "params", "type": [ "switch", { - "compareTo": "type", - "fields": { - "crafting_shapeless": [ - "container", - [ - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "furnace": [ - "container", - [ - { - "name": "ingredient", - "type": "SlotDisplay" - }, - { - "name": "fuel", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "experience", - "type": "f32" - } - ] - ], - "stonecutter": [ - "container", - [ - { - "name": "ingredient", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "smithing": [ - "container", - [ - { - "name": "template", - "type": "SlotDisplay" - }, - { - "name": "base", - "type": "SlotDisplay" - }, - { - "name": "addition", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ] + "compareTo": "name", + "fields": { + "cookie_response": "packet_common_cookie_response", + "encryption_begin": "packet_encryption_begin", + "login_acknowledged": "packet_login_acknowledged", + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] ], - "SpawnInfo": [ + "packet_encryption_begin": [ "container", [ { - "name": "dimension", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "hashedSeed", - "type": "i64" - }, - { - "name": "gamemode", + "name": "sharedSecret", "type": [ - "mapper", + "buffer", { - "type": "i8", - "mappings": { - "0": "survival", - "1": "creative", - "2": "adventure", - "3": "spectator" - } + "countType": "varint" } ] }, { - "name": "previousGamemode", - "type": "u8" - }, - { - "name": "isDebug", - "type": "bool" - }, - { - "name": "isFlat", - "type": "bool" - }, - { - "name": "death", + "name": "verifyToken", "type": [ - "option", - "GlobalPos" + "buffer", + { + "countType": "varint" + } ] - }, + } + ] + ], + "packet_login_acknowledged": [ + "container", + [] + ], + "packet_login_plugin_response": [ + "container", + [ { - "name": "portalCooldown", + "name": "messageId", "type": "varint" }, { - "name": "seaLevel", - "type": "varint" + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_spawn_entity": [ + "packet_login_start": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "username", + "type": "string" }, { - "name": "objectUUID", + "name": "playerUUID", "type": "UUID" - }, + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ + "container", + [ { - "name": "type", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links", + "0x11": "clear_dialog", + "0x12": "show_dialog", + "0x13": "code_of_conduct" + }, + "type": "varint" + } + ] }, { - "name": "x", - "type": "f64" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "add_resource_pack": "packet_common_add_resource_pack", + "clear_dialog": "packet_common_clear_dialog", + "code_of_conduct": "packet_code_of_conduct", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "show_dialog": "packet_show_dialog", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" + } + } + ] + } + ] + ], + "packet_code_of_conduct": [ + "container", + [ { - "name": "y", - "type": "f64" - }, + "name": "contents", + "type": "string" + } + ] + ], + "packet_custom_payload": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "channel", + "type": "string" }, { - "name": "velocity", - "type": "lpVec3" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_disconnect": [ + "container", + [ { - "name": "pitch", - "type": "i8" - }, + "name": "reason", + "type": "anonymousNbt" + } + ] + ], + "packet_feature_flags": [ + "container", + [ { - "name": "yaw", - "type": "i8" - }, + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "headPitch", - "type": "i8" + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_ping": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], + "packet_registry_data": [ + "container", + [ + { + "name": "id", + "type": "string" }, { - "name": "objectData", - "type": "varint" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] + } + ] } ] ], - "packet_animation": [ + "packet_reset_chat": [ + "container", + [] + ], + "packet_show_dialog": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "animation", - "type": "u8" + "name": "dialog", + "type": "anonymousNbt" } ] ], - "packet_statistics": [ + "packet_tags": [ "container", [ { - "name": "entries", + "name": "tags", "type": [ "array", { @@ -5793,16 +5293,12 @@ "container", [ { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" + "name": "tagType", + "type": "string" }, { - "name": "value", - "type": "varint" + "name": "tags", + "type": "tags" } ] ] @@ -5810,823 +5306,1334 @@ ] } ] - ], - "packet_acknowledge_player_digging": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "sequenceId", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_click_action", + "0x09": "accept_code_of_conduct" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "accept_code_of_conduct": "packet_accept_code_of_conduct", + "cookie_response": "packet_common_cookie_response", + "custom_click_action": "packet_common_custom_click_action", + "custom_payload": "packet_custom_payload", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "select_known_packs": "packet_common_select_known_packs", + "settings": "packet_common_settings" + } + } + ] } ] ], - "packet_block_break_animation": [ + "packet_accept_code_of_conduct": [ + "container", + [] + ], + "packet_custom_payload": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "location", - "type": "position" + "name": "channel", + "type": "string" }, { - "name": "destroyStage", - "type": "i8" + "name": "data", + "type": "restBuffer" } ] ], - "packet_tile_entity_data": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_pong": [ + "container", + [ { - "name": "nbtData", - "type": "anonOptionalNbt" + "name": "id", + "type": "i32" } ] ], - "packet_block_action": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "location", - "type": "position" + "name": "uuid", + "type": "UUID" }, { - "name": "byte1", - "type": "u8" + "name": "result", + "type": "varint" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "ChatType": [ + "container", + [ + { + "name": "translationKey", + "type": "string" }, { - "name": "byte2", - "type": "u8" + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "ChatTypeParameterType" + } + ] }, { - "name": "blockId", - "type": "varint" + "name": "style", + "type": "anonymousNbt" } ] ], - "packet_block_change": [ + "ChatTypeParameterType": [ + "mapper", + { + "mappings": { + "0": "content", + "1": "sender", + "2": "target" + }, + "type": "varint" + } + ], + "ChatTypes": [ "container", [ { - "name": "location", - "type": "position" + "name": "chat", + "type": "ChatType" }, { - "name": "type", - "type": "varint" + "name": "narration", + "type": "ChatType" } ] ], - "packet_boss_bar": [ + "ChatTypesHolder": [ + "registryEntryHolder", + { + "baseName": "chatType", + "otherwise": { + "name": "data", + "type": "ChatTypes" + } + } + ], + "ExplosionParticleEntry": [ "container", [ { - "name": "entityUUID", - "type": "UUID" + "name": "data", + "type": "ExplosionParticleInfo" }, { - "name": "action", + "name": "weight", "type": "varint" - }, + } + ] + ], + "ExplosionParticleInfo": [ + "container", + [ { - "name": "title", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "anonymousNbt", - "3": "anonymousNbt" - }, - "default": "void" - } - ] + "name": "particle", + "type": "Particle" }, { - "name": "health", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" - } - ] + "name": "scaling", + "type": "f32" }, { - "name": "color", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "speed", + "type": "f32" + } + ] + ], + "PositionUpdateRelatives": [ + "bitflags", + { + "flags": [ + "x", + "y", + "z", + "yaw", + "pitch", + "dx", + "dy", + "dz", + "yawDelta" + ], + "type": "u32" + } + ], + "RecipeBookSetting": [ + "container", + [ + { + "name": "open", + "type": "bool" }, { - "name": "dividers", + "name": "filtering", + "type": "bool" + } + ] + ], + "RecipeDisplay": [ + "container", + [ + { + "name": "type", "type": [ - "switch", + "mapper", { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" + "mappings": { + "0": "crafting_shapeless", + "1": "crafting_shaped", + "2": "furnace", + "3": "stonecutter", + "4": "smithing" }, - "default": "void" + "type": "varint" } ] }, { - "name": "flags", + "name": "data", "type": [ "switch", { - "compareTo": "action", + "compareTo": "type", "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ] + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "crafting_shapeless": [ + "container", + [ + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ] + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "furnace": [ + "container", + [ + { + "name": "ingredient", + "type": "SlotDisplay" + }, + { + "name": "fuel", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "experience", + "type": "f32" + } + ] + ], + "smithing": [ + "container", + [ + { + "name": "template", + "type": "SlotDisplay" + }, + { + "name": "base", + "type": "SlotDisplay" + }, + { + "name": "addition", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "stonecutter": [ + "container", + [ + { + "name": "ingredient", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ] + } } ] } ] ], - "packet_difficulty": [ + "SlotDisplay": [ "container", [ { - "name": "difficulty", + "name": "type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "peaceful", - "1": "easy", - "2": "normal", - "3": "hard" + "0": "empty", + "1": "any_fuel", + "2": "item", + "3": "item_stack", + "4": "tag", + "5": "smithing_trim", + "6": "with_remainder", + "7": "composite" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "any_fuel": "void", + "composite": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ], + "empty": "void", + "item": "varint", + "item_stack": "Slot", + "smithing_trim": [ + "container", + [ + { + "name": "base", + "type": "SlotDisplay" + }, + { + "name": "material", + "type": "SlotDisplay" + }, + { + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "ArmorTrimPattern" + } + } + ] + } + ] + ], + "tag": "string", + "with_remainder": [ + "container", + [ + { + "name": "input", + "type": "SlotDisplay" + }, + { + "name": "remainder", + "type": "SlotDisplay" + } + ] + ] } } ] - }, - { - "name": "difficultyLocked", - "type": "bool" } ] ], - "packet_chunk_batch_finished": [ + "SpawnInfo": [ "container", [ { - "name": "batchSize", + "name": "dimension", "type": "varint" - } - ] - ], - "packet_chunk_batch_start": [ - "container", - [] - ], - "packet_chunk_biomes": [ - "container", - [ + }, { - "name": "biomes", + "name": "name", + "type": "string" + }, + { + "name": "hashedSeed", + "type": "i64" + }, + { + "name": "gamemode", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "position", - "type": "packedChunkPos" - }, - { - "name": "data", - "type": "ByteArray" - } - ] - ] + "mappings": { + "0": "survival", + "1": "creative", + "2": "adventure", + "3": "spectator" + }, + "type": "i8" } ] - } - ] - ], - "packet_clear_titles": [ - "container", - [ - { - "name": "reset", - "type": "bool" - } - ] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" }, { - "name": "start", - "type": "varint" + "name": "previousGamemode", + "type": "u8" }, { - "name": "length", - "type": "varint" + "name": "isDebug", + "type": "bool" }, { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] - } - ] - ], - "packet_declare_commands": [ - "container", - [ + "name": "isFlat", + "type": "bool" + }, { - "name": "nodes", + "name": "death", "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } + "option", + "GlobalPos" ] }, { - "name": "rootIndex", + "name": "portalCooldown", "type": "varint" - } - ] - ], - "packet_close_window": [ - "container", - [ + }, { - "name": "windowId", - "type": "ContainerID" + "name": "seaLevel", + "type": "varint" } ] ], - "packet_window_items": [ + "packet": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "items", + "name": "name", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": "Slot" + "mappings": { + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "animation", + "0x03": "statistics", + "0x04": "acknowledge_player_digging", + "0x05": "block_break_animation", + "0x06": "tile_entity_data", + "0x07": "block_action", + "0x08": "block_change", + "0x09": "boss_bar", + "0x0a": "difficulty", + "0x0b": "chunk_batch_finished", + "0x0c": "chunk_batch_start", + "0x0d": "chunk_biomes", + "0x0e": "clear_titles", + "0x0f": "tab_complete", + "0x10": "declare_commands", + "0x11": "close_window", + "0x12": "window_items", + "0x13": "craft_progress_bar", + "0x14": "set_slot", + "0x15": "cookie_request", + "0x16": "set_cooldown", + "0x17": "chat_suggestions", + "0x18": "custom_payload", + "0x19": "damage_event", + "0x1a": "debug_block_value", + "0x1b": "debug_chunk_value", + "0x1c": "debug_entity_value", + "0x1d": "debug_event", + "0x1e": "debug_sample", + "0x1f": "hide_message", + "0x20": "kick_disconnect", + "0x21": "profileless_chat", + "0x22": "entity_status", + "0x23": "sync_entity_position", + "0x24": "explosion", + "0x25": "unload_chunk", + "0x26": "game_state_change", + "0x27": "game_test_highlight_pos", + "0x28": "open_horse_window", + "0x29": "hurt_animation", + "0x2a": "initialize_world_border", + "0x2b": "keep_alive", + "0x2c": "map_chunk", + "0x2d": "world_event", + "0x2e": "world_particles", + "0x2f": "update_light", + "0x30": "login", + "0x31": "map", + "0x32": "trade_list", + "0x33": "rel_entity_move", + "0x34": "entity_move_look", + "0x35": "move_minecart", + "0x36": "entity_look", + "0x37": "vehicle_move", + "0x38": "open_book", + "0x39": "open_window", + "0x3a": "open_sign_entity", + "0x3b": "ping", + "0x3c": "ping_response", + "0x3d": "craft_recipe_response", + "0x3e": "abilities", + "0x3f": "player_chat", + "0x40": "end_combat_event", + "0x41": "enter_combat_event", + "0x42": "death_combat_event", + "0x43": "player_remove", + "0x44": "player_info", + "0x45": "face_player", + "0x46": "position", + "0x47": "player_rotation", + "0x48": "recipe_book_add", + "0x49": "recipe_book_remove", + "0x4a": "recipe_book_settings", + "0x4b": "entity_destroy", + "0x4c": "remove_entity_effect", + "0x4d": "reset_score", + "0x4e": "remove_resource_pack", + "0x4f": "add_resource_pack", + "0x50": "respawn", + "0x51": "entity_head_rotation", + "0x52": "multi_block_change", + "0x53": "select_advancement_tab", + "0x54": "server_data", + "0x55": "action_bar", + "0x56": "world_border_center", + "0x57": "world_border_lerp_size", + "0x58": "world_border_size", + "0x59": "world_border_warning_delay", + "0x5a": "world_border_warning_reach", + "0x5b": "camera", + "0x5c": "update_view_position", + "0x5d": "update_view_distance", + "0x5e": "set_cursor_item", + "0x5f": "spawn_position", + "0x60": "scoreboard_display_objective", + "0x61": "entity_metadata", + "0x62": "attach_entity", + "0x63": "entity_velocity", + "0x64": "entity_equipment", + "0x65": "experience", + "0x66": "update_health", + "0x67": "held_item_slot", + "0x68": "scoreboard_objective", + "0x69": "set_passengers", + "0x6a": "set_player_inventory", + "0x6b": "teams", + "0x6c": "scoreboard_score", + "0x6d": "simulation_distance", + "0x6e": "set_title_subtitle", + "0x6f": "update_time", + "0x70": "set_title_text", + "0x71": "set_title_time", + "0x72": "entity_sound_effect", + "0x73": "sound_effect", + "0x74": "start_configuration", + "0x75": "stop_sound", + "0x76": "store_cookie", + "0x77": "system_chat", + "0x78": "playerlist_header", + "0x79": "nbt_query_response", + "0x7a": "collect", + "0x7b": "entity_teleport", + "0x7c": "test_instance_block_status", + "0x7d": "set_ticking_state", + "0x7e": "step_tick", + "0x7f": "transfer", + "0x80": "advancements", + "0x81": "entity_update_attributes", + "0x82": "entity_effect", + "0x83": "declare_recipes", + "0x84": "tags", + "0x85": "set_projectile_power", + "0x86": "custom_report_details", + "0x87": "server_links", + "0x88": "tracked_waypoint", + "0x89": "clear_dialog", + "0x8a": "show_dialog" + }, + "type": "varint" } ] }, { - "name": "carriedItem", - "type": "Slot" - } - ] - ], - "packet_craft_progress_bar": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "property", - "type": "i16" - }, - { - "name": "value", - "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ - { - "name": "cooldownGroup", - "type": "string" - }, - { - "name": "cooldownTicks", - "type": "varint" - } - ] - ], - "packet_chat_suggestions": [ - "container", - [ - { - "name": "action", - "type": "varint" - }, - { - "name": "entries", + "name": "params", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_damage_event": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "sourceTypeId", - "type": "varint" - }, - { - "name": "sourceCauseId", - "type": "varint" - }, - { - "name": "sourceDirectId", - "type": "varint" - }, - { - "name": "sourcePosition", - "type": [ - "option", - "vec3f64" + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "add_resource_pack": "packet_common_add_resource_pack", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "bundle_delimiter": "void", + "camera": "packet_camera", + "chat_suggestions": "packet_chat_suggestions", + "chunk_batch_finished": "packet_chunk_batch_finished", + "chunk_batch_start": "packet_chunk_batch_start", + "chunk_biomes": "packet_chunk_biomes", + "clear_dialog": "packet_common_clear_dialog", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "cookie_request": "packet_common_cookie_request", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "damage_event": "packet_damage_event", + "death_combat_event": "packet_death_combat_event", + "debug_block_value": "packet_debug_block_value", + "debug_chunk_value": "packet_debug_chunk_value", + "debug_entity_value": "packet_debug_entity_value", + "debug_event": "packet_debug_event", + "debug_sample": "packet_debug_sample", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "game_test_highlight_pos": "packet_game_test_highlight_pos", + "held_item_slot": "packet_held_item_slot", + "hide_message": "packet_hide_message", + "hurt_animation": "packet_hurt_animation", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "move_minecart": "packet_move_minecart", + "multi_block_change": "packet_multi_block_change", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "ping_response": "packet_ping_response", + "player_chat": "packet_player_chat", + "player_info": "packet_player_info", + "player_remove": "packet_player_remove", + "player_rotation": "packet_player_rotation", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "profileless_chat": "packet_profileless_chat", + "recipe_book_add": "packet_recipe_book_add", + "recipe_book_remove": "packet_recipe_book_remove", + "recipe_book_settings": "packet_recipe_book_settings", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_score": "packet_reset_score", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "server_data": "packet_server_data", + "server_links": "packet_common_server_links", + "set_cooldown": "packet_set_cooldown", + "set_cursor_item": "packet_set_cursor_item", + "set_passengers": "packet_set_passengers", + "set_player_inventory": "packet_set_player_inventory", + "set_projectile_power": "packet_set_projectile_power", + "set_slot": "packet_set_slot", + "set_ticking_state": "packet_set_ticking_state", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "show_dialog": "packet_show_dialog", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_position": "packet_spawn_position", + "start_configuration": "packet_start_configuration", + "statistics": "packet_statistics", + "step_tick": "packet_step_tick", + "stop_sound": "packet_stop_sound", + "store_cookie": "packet_common_store_cookie", + "sync_entity_position": "packet_sync_entity_position", + "system_chat": "packet_system_chat", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "test_instance_block_status": "packet_test_instance_block_status", + "tile_entity_data": "packet_tile_entity_data", + "tracked_waypoint": "packet_tracked_waypoint", + "trade_list": "packet_trade_list", + "transfer": "packet_common_transfer", + "unload_chunk": "packet_unload_chunk", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } ] } ] ], - "packet_debug_block_value": [ + "packet_abilities": [ "container", [ { - "name": "blockPos", - "type": "position" + "name": "flags", + "type": "i8" }, { - "name": "update", - "type": "DebugSubscriptionUpdate" - } - ] - ], - "packet_debug_chunk_value": [ - "container", - [ - { - "name": "chunkPos", - "type": "packedChunkPos" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "update", - "type": "DebugSubscriptionUpdate" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_debug_entity_value": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "entityId", + "name": "sequenceId", "type": "varint" - }, - { - "name": "update", - "type": "DebugSubscriptionUpdate" } ] ], - "packet_debug_event": [ + "packet_action_bar": [ "container", [ { - "name": "event", - "type": "DebugSubscriptionEvent" + "name": "text", + "type": "anonymousNbt" } ] ], - "packet_debug_sample": [ + "packet_advancements": [ "container", [ { - "name": "sample", + "name": "reset", + "type": "bool" + }, + { + "name": "advancementMapping", "type": [ "array", { "countType": "varint", - "type": "i64" + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "container", + [ + { + "name": "parentId", + "type": [ + "option", + "string" + ] + }, + { + "name": "displayData", + "type": [ + "option", + [ + "container", + [ + { + "name": "title", + "type": "anonymousNbt" + }, + { + "name": "description", + "type": "anonymousNbt" + }, + { + "name": "icon", + "type": "Slot" + }, + { + "name": "frameType", + "type": "varint" + }, + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 29 + }, + { + "name": "hidden", + "signed": false, + "size": 1 + }, + { + "name": "show_toast", + "signed": false, + "size": 1 + }, + { + "name": "has_background_texture", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "backgroundTexture", + "type": [ + "switch", + { + "compareTo": "flags/has_background_texture", + "default": "void", + "fields": { + "1": "string" + } + } + ] + }, + { + "name": "xCord", + "type": "f32" + }, + { + "name": "yCord", + "type": "f32" + } + ] + ] + ] + }, + { + "name": "requirements", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + }, + { + "name": "sendsTelemtryData", + "type": "bool" + } + ] + ] + } + ] + ] } ] }, { - "name": "type", - "type": "varint" - } - ] - ], - "packet_hide_message": [ - "container", - [ - { - "name": "id", - "type": "varint" + "name": "identifiers", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] }, { - "name": "signature", + "name": "progressMapping", "type": [ - "switch", + "array", { - "compareTo": "id", - "fields": { - "0": [ - "buffer", + "countType": "varint", + "type": [ + "container", + [ { - "count": 256 + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "criterionIdentifier", + "type": "string" + }, + { + "name": "criterionProgress", + "type": [ + "option", + "i64" + ] + } + ] + ] + } + ] } ] - }, - "default": "void" + ] } ] - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ + }, { - "name": "reason", - "type": "anonymousNbt" + "name": "showAdvancements", + "type": "bool" } ] ], - "ChatTypeParameterType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "content", - "1": "sender", - "2": "target" - } - } - ], - "ChatType": [ + "packet_animation": [ "container", [ { - "name": "translationKey", - "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "ChatTypeParameterType" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "style", - "type": "anonymousNbt" + "name": "animation", + "type": "u8" } ] ], - "ChatTypes": [ + "packet_attach_entity": [ "container", [ { - "name": "chat", - "type": "ChatType" + "name": "entityId", + "type": "i32" }, { - "name": "narration", - "type": "ChatType" + "name": "vehicleId", + "type": "i32" } ] ], - "ChatTypesHolder": [ - "registryEntryHolder", - { - "baseName": "chatType", - "otherwise": { - "name": "data", - "type": "ChatTypes" - } - } - ], - "packet_profileless_chat": [ + "packet_block_action": [ "container", [ { - "name": "message", - "type": "anonymousNbt" + "name": "location", + "type": "position" }, { - "name": "type", - "type": "ChatTypesHolder" + "name": "byte1", + "type": "u8" }, { - "name": "name", - "type": "anonymousNbt" + "name": "byte2", + "type": "u8" }, { - "name": "target", - "type": [ - "option", - "anonymousNbt" - ] + "name": "blockId", + "type": "varint" } ] ], - "packet_entity_status": [ + "packet_block_break_animation": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", "type": "i8" } ] ], - "packet_sync_entity_position": [ + "packet_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" + "name": "location", + "type": "position" }, { - "name": "y", - "type": "f64" - }, + "name": "type", + "type": "varint" + } + ] + ], + "packet_boss_bar": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "entityUUID", + "type": "UUID" }, { - "name": "dx", - "type": "f64" + "name": "action", + "type": "varint" }, { - "name": "dy", - "type": "f64" + "name": "title", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "anonymousNbt", + "3": "anonymousNbt" + } + } + ] }, { - "name": "dz", - "type": "f64" + "name": "health", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } + } + ] }, { - "name": "yaw", - "type": "f32" + "name": "color", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "pitch", - "type": "f32" + "name": "dividers", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "flags", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } + } + ] } ] ], - "ExplosionParticleInfo": [ + "packet_camera": [ "container", [ { - "name": "particle", - "type": "Particle" - }, + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat_suggestions": [ + "container", + [ { - "name": "scaling", - "type": "f32" + "name": "action", + "type": "varint" }, { - "name": "speed", - "type": "f32" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "ExplosionParticleEntry": [ + "packet_chunk_batch_finished": [ "container", [ { - "name": "data", - "type": "ExplosionParticleInfo" - }, - { - "name": "weight", + "name": "batchSize", "type": "varint" } ] ], - "packet_explosion": [ + "packet_chunk_batch_start": [ + "container", + [] + ], + "packet_chunk_biomes": [ "container", [ { - "name": "center", - "type": "vec3f64" - }, - { - "name": "radius", - "type": "f32" - }, - { - "name": "blockCount", - "type": "i32" - }, - { - "name": "playerKnockback", - "type": [ - "option", - "vec3f64" - ] - }, - { - "name": "explosionParticle", - "type": "Particle" - }, - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "blockParticles", + "name": "biomes", "type": [ "array", { "countType": "varint", - "type": "ExplosionParticleEntry" + "type": [ + "container", + [ + { + "name": "position", + "type": "packedChunkPos" + }, + { + "name": "data", + "type": "ByteArray" + } + ] + ] } ] } ] ], - "packet_unload_chunk": [ + "packet_clear_titles": [ "container", [ { - "name": "chunkZ", - "type": "i32" - }, - { - "name": "chunkX", - "type": "i32" + "name": "reset", + "type": "bool" } ] ], - "packet_game_state_change": [ + "packet_close_window": [ "container", [ { - "name": "reason", - "type": [ - "mapper", - { - "type": "u8", - "mappings": { - "0": "no_respawn_block_available", - "1": "start_raining", - "2": "stop_raining", - "3": "change_game_mode", - "4": "win_game", - "5": "demo_event", - "6": "play_arrow_hit_sound", - "7": "rain_level_change", - "8": "thunder_level_change", - "9": "puffer_fish_sting", - "10": "guardian_elder_effect", - "11": "immediate_respawn", - "12": "limited_crafting", - "13": "level_chunks_load_start" - } - } - ] - }, - { - "name": "gameMode", - "type": "f32" + "name": "windowId", + "type": "ContainerID" } ] ], - "packet_game_test_highlight_pos": [ + "packet_collect": [ "container", [ { - "name": "absolutePos", - "type": "position" + "name": "collectedEntityId", + "type": "varint" }, { - "name": "relativePos", - "type": "position" + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" } ] ], - "packet_open_horse_window": [ + "packet_craft_progress_bar": [ "container", [ { @@ -6634,142 +6641,135 @@ "type": "ContainerID" }, { - "name": "nbSlots", - "type": "varint" + "name": "property", + "type": "i16" }, { - "name": "entityId", - "type": "i32" + "name": "value", + "type": "i16" } ] ], - "packet_hurt_animation": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "yaw", - "type": "f32" + "name": "recipeDisplay", + "type": "RecipeDisplay" } ] ], - "packet_initialize_world_border": [ + "packet_custom_payload": [ "container", [ { - "name": "x", - "type": "f64" + "name": "channel", + "type": "string" }, { - "name": "z", - "type": "f64" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_damage_event": [ + "container", + [ { - "name": "oldDiameter", - "type": "f64" + "name": "entityId", + "type": "varint" }, { - "name": "newDiameter", - "type": "f64" + "name": "sourceTypeId", + "type": "varint" }, { - "name": "speed", + "name": "sourceCauseId", "type": "varint" }, { - "name": "portalTeleportBoundary", + "name": "sourceDirectId", "type": "varint" }, { - "name": "warningBlocks", + "name": "sourcePosition", + "type": [ + "option", + "vec3f64" + ] + } + ] + ], + "packet_death_combat_event": [ + "container", + [ + { + "name": "playerId", "type": "varint" }, { - "name": "warningTime", - "type": "varint" + "name": "message", + "type": "anonymousNbt" } ] ], - "packet_keep_alive": [ + "packet_debug_block_value": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "blockPos", + "type": "position" + }, + { + "name": "update", + "type": "DebugSubscriptionUpdate" } ] ], - "packet_map_chunk": [ + "packet_debug_chunk_value": [ "container", [ { - "name": "x", - "type": "i32" + "name": "chunkPos", + "type": "packedChunkPos" }, { - "name": "z", - "type": "i32" - }, + "name": "update", + "type": "DebugSubscriptionUpdate" + } + ] + ], + "packet_debug_entity_value": [ + "container", + [ { - "name": "heightmaps", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "world_surface_wg", - "1": "world_surface", - "2": "ocean_floor_wg", - "3": "ocean_floor", - "4": "motion_blocking", - "5": "motion_blocking_no_leaves" - } - } - ] - }, - { - "name": "data", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - } - ] - ] - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "chunkData", - "type": "ByteArray" - }, + "name": "update", + "type": "DebugSubscriptionUpdate" + } + ] + ], + "packet_debug_event": [ + "container", + [ { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "chunkBlockEntity" - } - ] - }, + "name": "event", + "type": "DebugSubscriptionEvent" + } + ] + ], + "packet_debug_sample": [ + "container", + [ { - "name": "skyLightMask", + "name": "sample", "type": [ "array", { @@ -6779,406 +6779,356 @@ ] }, { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, + "name": "type", + "type": "varint" + } + ] + ], + "packet_declare_commands": [ + "container", + [ { - "name": "emptySkyLightMask", + "name": "nodes", "type": [ "array", { "countType": "varint", - "type": "i64" + "type": "command_node" } ] }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ { - "name": "skyLight", + "name": "recipes", "type": [ "array", { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "items", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] ] } ] }, { - "name": "blockLight", + "name": "stoneCutterRecipes", "type": [ "array", { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } + "container", + [ + { + "name": "input", + "type": "IDSet" + }, + { + "name": "slotDisplay", + "type": "SlotDisplay" + } + ] ] } ] } ] ], - "packet_world_event": [ + "packet_difficulty": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "difficulty", + "type": [ + "mapper", + { + "mappings": { + "0": "peaceful", + "1": "easy", + "2": "normal", + "3": "hard" + }, + "type": "varint" + } + ] }, { - "name": "global", + "name": "difficultyLocked", "type": "bool" } ] ], - "packet_world_particles": [ + "packet_end_combat_event": [ "container", [ { - "name": "longDistance", - "type": "bool" - }, - { - "name": "alwaysShow", - "type": "bool" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + "name": "duration", + "type": "varint" + } + ] + ], + "packet_enter_combat_event": [ + "container", + [] + ], + "packet_entity_destroy": [ + "container", + [ { - "name": "offsetX", - "type": "f32" - }, + "name": "entityIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ], + "packet_entity_effect": [ + "container", + [ { - "name": "offsetY", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "offsetZ", - "type": "f32" + "name": "effectId", + "type": "varint" }, { - "name": "velocityOffset", - "type": "f32" + "name": "amplifier", + "type": "varint" }, { - "name": "amount", - "type": "i32" + "name": "duration", + "type": "varint" }, { - "name": "particle", - "type": "Particle" + "name": "flags", + "type": "u8" } ] ], - "packet_update_light": [ + "packet_entity_equipment": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", + "name": "entityId", "type": "varint" }, { - "name": "skyLightMask", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "varint", - "type": "i64" + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "Slot" + } + ] + ] } ] - }, + } + ] + ], + "packet_entity_head_rotation": [ + "container", + [ { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_metadata": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_login": [ + "packet_entity_move_look": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "isHardcore", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "worldNames", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "dY", + "type": "i16" }, { - "name": "maxPlayers", - "type": "varint" + "name": "dZ", + "type": "i16" }, { - "name": "viewDistance", - "type": "varint" + "name": "yaw", + "type": "i8" }, { - "name": "simulationDistance", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "reducedDebugInfo", + "name": "onGround", "type": "bool" + } + ] + ], + "packet_entity_sound_effect": [ + "container", + [ + { + "name": "sound", + "type": "ItemSoundHolder" }, { - "name": "enableRespawnScreen", - "type": "bool" + "name": "soundCategory", + "type": "soundSource" }, { - "name": "doLimitedCrafting", - "type": "bool" + "name": "entityId", + "type": "varint" }, { - "name": "worldState", - "type": "SpawnInfo" + "name": "volume", + "type": "f32" }, { - "name": "enforcesSecureChat", - "type": "bool" + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], - "packet_map": [ + "packet_entity_status": [ "container", [ { - "name": "itemDamage", - "type": "varint" + "name": "entityId", + "type": "i32" }, { - "name": "scale", + "name": "entityStatus", "type": "i8" - }, + } + ] + ], + "packet_entity_teleport": [ + "container", + [ { - "name": "locked", - "type": "bool" + "name": "entityId", + "type": "varint" }, { - "name": "icons", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "i8" - }, - { - "name": "z", - "type": "i8" - }, - { - "name": "direction", - "type": "u8" - }, - { - "name": "displayName", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] - ] + "name": "x", + "type": "f64" }, { - "name": "columns", - "type": "u8" + "name": "y", + "type": "f64" }, { - "name": "rows", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "name": "z", + "type": "f64" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "y", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "u8" - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "data", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_trade_list": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "entityId", + "type": "varint" }, { - "name": "trades", + "name": "properties", "type": [ "array", { @@ -7187,205 +7137,291 @@ "container", [ { - "name": "inputItem1", - "type": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" - }, - { - "name": "components", - "type": "ExactComponentMatcher" - } - ] - ] - }, - { - "name": "outputItem", - "type": "Slot" - }, - { - "name": "inputItem2", + "name": "key", "type": [ - "option", - [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" - }, - { - "name": "components", - "type": "ExactComponentMatcher" - } - ] - ] + "mapper", + { + "mappings": { + "0": "generic.armor", + "1": "generic.armor_toughness", + "2": "generic.attack_damage", + "3": "generic.attack_knockback", + "4": "generic.attack_speed", + "5": "player.block_break_speed", + "6": "player.block_interaction_range", + "7": "burning_time", + "8": "camera_distance", + "9": "explosion_knockback_resistance", + "10": "player.entity_interaction_range", + "11": "generic.fall_damage_multiplier", + "12": "generic.flying_speed", + "13": "generic.follow_range", + "14": "generic.gravity", + "15": "generic.jump_strength", + "16": "generic.knockback_resistance", + "17": "generic.luck", + "18": "generic.max_absorption", + "19": "generic.max_health", + "20": "generic.movement_speed", + "21": "generic.safe_fall_distance", + "22": "generic.scale", + "23": "zombie.spawn_reinforcements", + "24": "generic.step_height", + "25": "submerged_mining_speed", + "26": "sweeping_damage_ratio", + "27": "tempt_range", + "28": "water_movement_efficiency", + "29": "waypoint_transmit_range", + "30": "waypoint_receive_range" + }, + "type": "varint" + } ] }, { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" + "name": "value", + "type": "f64" }, { - "name": "demand", - "type": "i32" + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] } ] ] } ] - }, + } + ] + ], + "packet_entity_velocity": [ + "container", + [ { - "name": "villagerLevel", + "name": "entityId", "type": "varint" }, { - "name": "experience", - "type": "varint" + "name": "velocity", + "type": "lpVec3" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" }, { - "name": "isRegularVillager", - "type": "bool" + "name": "level", + "type": "varint" }, { - "name": "canRestock", - "type": "bool" + "name": "totalExperience", + "type": "varint" } ] ], - "packet_rel_entity_move": [ + "packet_explosion": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "center", + "type": "vec3f64" }, { - "name": "dX", - "type": "i16" + "name": "radius", + "type": "f32" }, { - "name": "dY", - "type": "i16" + "name": "blockCount", + "type": "i32" }, { - "name": "dZ", - "type": "i16" + "name": "playerKnockback", + "type": [ + "option", + "vec3f64" + ] }, { - "name": "onGround", - "type": "bool" + "name": "explosionParticle", + "type": "Particle" + }, + { + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "blockParticles", + "type": [ + "array", + { + "countType": "varint", + "type": "ExplosionParticleEntry" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_face_player": [ "container", [ { - "name": "entityId", + "name": "feet_eyes", "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dY", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "z", + "type": "f64" }, { - "name": "yaw", - "type": "i8" + "name": "isEntity", + "type": "bool" }, { - "name": "pitch", - "type": "i8" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "entity_feet_eyes", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] } ] ], - "packet_move_minecart": [ + "packet_game_state_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "steps", + "name": "reason", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "position", - "type": "vec3f" - }, - { - "name": "velocity", - "type": "vec3f" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, + "mappings": { + "0": "no_respawn_block_available", + "1": "start_raining", + "2": "stop_raining", + "3": "change_game_mode", + "4": "win_game", + "5": "demo_event", + "6": "play_arrow_hit_sound", + "7": "rain_level_change", + "8": "thunder_level_change", + "9": "puffer_fish_sting", + "10": "guardian_elder_effect", + "11": "immediate_respawn", + "12": "limited_crafting", + "13": "level_chunks_load_start" + }, + "type": "u8" + } + ] + }, + { + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_game_test_highlight_pos": [ + "container", + [ + { + "name": "absolutePos", + "type": "position" + }, + { + "name": "relativePos", + "type": "position" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] + ], + "packet_hide_message": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "signature", + "type": [ + "switch", + { + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", { - "name": "weight", - "type": "f32" + "count": 256 } ] - ] + } } ] } ] ], - "packet_entity_look": [ + "packet_hurt_animation": [ "container", [ { @@ -7394,19 +7430,11 @@ }, { "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "type": "f32" } ] ], - "packet_vehicle_move": [ + "packet_initialize_world_border": [ "container", [ { @@ -7414,265 +7442,375 @@ "type": "f64" }, { - "name": "y", + "name": "z", "type": "f64" }, { - "name": "z", + "name": "oldDiameter", "type": "f64" }, { - "name": "yaw", - "type": "f32" + "name": "newDiameter", + "type": "f64" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_open_book": [ - "container", - [ - { - "name": "hand", + "name": "speed", "type": "varint" - } - ] - ], - "packet_open_window": [ - "container", - [ + }, { - "name": "windowId", + "name": "portalTeleportBoundary", "type": "varint" }, { - "name": "inventoryType", + "name": "warningBlocks", "type": "varint" }, { - "name": "windowTitle", - "type": "anonymousNbt" + "name": "warningTime", + "type": "varint" } ] ], - "packet_open_sign_entity": [ + "packet_keep_alive": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "isFrontText", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_ping": [ + "packet_kick_disconnect": [ "container", [ { - "name": "id", - "type": "i32" + "name": "reason", + "type": "anonymousNbt" } ] ], - "packet_ping_response": [ + "packet_login": [ "container", [ { - "name": "id", - "type": "i64" - } - ] - ], - "packet_craft_recipe_response": [ - "container", - [ + "name": "entityId", + "type": "i32" + }, { - "name": "windowId", - "type": "ContainerID" + "name": "isHardcore", + "type": "bool" }, { - "name": "recipeDisplay", - "type": "RecipeDisplay" - } - ] - ], - "packet_abilities": [ - "container", - [ + "name": "worldNames", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, { - "name": "flags", - "type": "i8" + "name": "maxPlayers", + "type": "varint" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "viewDistance", + "type": "varint" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "simulationDistance", + "type": "varint" + }, + { + "name": "reducedDebugInfo", + "type": "bool" + }, + { + "name": "enableRespawnScreen", + "type": "bool" + }, + { + "name": "doLimitedCrafting", + "type": "bool" + }, + { + "name": "worldState", + "type": "SpawnInfo" + }, + { + "name": "enforcesSecureChat", + "type": "bool" } ] ], - "packet_player_chat": [ + "packet_map": [ "container", [ { - "name": "globalIndex", + "name": "itemDamage", "type": "varint" }, { - "name": "senderUuid", - "type": "UUID" + "name": "scale", + "type": "i8" }, { - "name": "index", - "type": "varint" + "name": "locked", + "type": "bool" }, { - "name": "signature", + "name": "icons", "type": [ "option", [ - "buffer", + "array", { - "count": 256 + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + }, + { + "name": "direction", + "type": "u8" + }, + { + "name": "displayName", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] } ] ] }, { - "name": "plainMessage", - "type": "string" + "name": "columns", + "type": "u8" + }, + { + "name": "rows", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "u8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } + } + ] + } + ] + ], + "packet_map_chunk": [ + "container", + [ + { + "name": "x", + "type": "i32" }, { - "name": "timestamp", - "type": "i64" + "name": "z", + "type": "i32" }, { - "name": "salt", - "type": "i64" + "name": "heightmaps", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "world_surface_wg", + "1": "world_surface", + "2": "ocean_floor_wg", + "3": "ocean_floor", + "4": "motion_blocking", + "5": "motion_blocking_no_leaves" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + } + ] + ] + } + ] }, { - "name": "previousMessages", - "type": "previousMessages" + "name": "chunkData", + "type": "ByteArray" }, { - "name": "unsignedChatContent", + "name": "blockEntities", "type": [ - "option", - "anonymousNbt" + "array", + { + "countType": "varint", + "type": "chunkBlockEntity" + } ] }, { - "name": "filterType", - "type": "varint" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "filterTypeMask", + "name": "blockLightMask", "type": [ - "switch", + "array", { - "compareTo": "filterType", - "fields": { - "2": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - "default": "void" + "countType": "varint", + "type": "i64" } ] }, { - "name": "type", - "type": "ChatTypesHolder" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "networkName", - "type": "anonymousNbt" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "networkTargetName", + "name": "skyLight", "type": [ - "option", - "anonymousNbt" + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } ] - } - ] - ], - "packet_end_combat_event": [ - "container", - [ - { - "name": "duration", - "type": "varint" - } - ] - ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ - "container", - [ - { - "name": "playerId", - "type": "varint" }, { - "name": "message", - "type": "anonymousNbt" - } - ] - ], - "packet_player_remove": [ - "container", - [ - { - "name": "players", + "name": "blockLight", "type": [ "array", { "countType": "varint", - "type": "UUID" + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] } ] } ] ], - "packet_player_info": [ + "packet_move_minecart": [ "container", [ { - "name": "action", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name", - "update_hat", - "update_list_order" - ] - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "data", + "name": "steps", "type": [ "array", { @@ -7681,115 +7819,24 @@ "container", [ { - "name": "uuid", - "type": "UUID" - }, - { - "name": "player", - "type": [ - "switch", - { - "compareTo": "../action/add_player", - "fields": { - "true": "game_profile_name_prop" - }, - "default": "void" - } - ] - }, - { - "name": "chatSession", - "type": [ - "switch", - { - "compareTo": "../action/initialize_chat", - "fields": { - "true": "chat_session" - }, - "default": "void" - } - ] - }, - { - "name": "gamemode", - "type": [ - "switch", - { - "compareTo": "../action/update_game_mode", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "listed", - "type": [ - "switch", - { - "compareTo": "../action/update_listed", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] + "name": "position", + "type": "vec3f" }, { - "name": "latency", - "type": [ - "switch", - { - "compareTo": "../action/update_latency", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3f" }, { - "name": "displayName", - "type": [ - "switch", - { - "compareTo": "../action/update_display_name", - "fields": { - "true": [ - "option", - "anonymousNbt" - ] - }, - "default": "void" - } - ] + "name": "yaw", + "type": "f32" }, { - "name": "listPriority", - "type": [ - "switch", - { - "compareTo": "../action/update_list_order", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "f32" }, { - "name": "showHat", - "type": [ - "switch", - { - "compareTo": "../action/update_hat", - "fields": { - "true": "bool" - }, - "default": "void" - } - ] + "name": "weight", + "type": "f32" } ] ] @@ -7798,539 +7845,618 @@ } ] ], - "packet_face_player": [ + "packet_multi_block_change": [ "container", [ { - "name": "feet_eyes", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, - { - "name": "entityId", + "name": "chunkCoordinates", "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 }, - "default": "void" - } + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] ] }, { - "name": "entity_feet_eyes", + "name": "records", "type": [ - "switch", + "array", { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] } ] ], - "PositionUpdateRelatives": [ - "bitflags", - { - "type": "u32", - "flags": [ - "x", - "y", - "z", - "yaw", - "pitch", - "dx", - "dy", - "dz", - "yawDelta" - ] - } - ], - "packet_position": [ + "packet_nbt_query_response": [ "container", [ { - "name": "teleportId", + "name": "transactionId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "dx", - "type": "f64" - }, - { - "name": "dy", - "type": "f64" - }, - { - "name": "dz", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "flags", - "type": "PositionUpdateRelatives" + "name": "nbt", + "type": "anonOptionalNbt" } ] ], - "packet_player_rotation": [ + "packet_open_book": [ "container", [ { - "name": "yaw", - "type": "f32" - }, + "name": "hand", + "type": "varint" + } + ] + ], + "packet_open_horse_window": [ + "container", + [ { - "name": "relativeYaw", - "type": "bool" + "name": "windowId", + "type": "ContainerID" }, { - "name": "pitch", - "type": "f32" + "name": "nbSlots", + "type": "varint" }, { - "name": "relativePitch", - "type": "bool" + "name": "entityId", + "type": "i32" } ] ], - "packet_recipe_book_add": [ + "packet_open_sign_entity": [ "container", [ { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "recipe", - "type": [ - "container", - [ - { - "name": "displayId", - "type": "varint" - }, - { - "name": "display", - "type": "RecipeDisplay" - }, - { - "name": "group", - "type": "optvarint" - }, - { - "name": "category", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "crafting_building_blocks", - "1": "crafting_redstone", - "2": "crafting_equipment", - "3": "crafting_misc", - "4": "furnace_food", - "5": "furnace_blocks", - "6": "furnace_misc", - "7": "blast_furnace_blocks", - "8": "blast_furnace_misc", - "9": "smoker_food", - "10": "stonecutter", - "11": "smithing", - "12": "campfire" - } - } - ] - }, - { - "name": "craftingRequirements", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": "IDSet" - } - ] - ] - } - ] - ] - }, - { - "name": "flags", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "notification", - "highlight" - ] - } - ] - } - ] - ] - } - ] + "name": "location", + "type": "position" }, { - "name": "replace", + "name": "isFrontText", "type": "bool" } ] ], - "packet_recipe_book_remove": [ + "packet_open_window": [ "container", [ { - "name": "recipeIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "windowId", + "type": "varint" + }, + { + "name": "inventoryType", + "type": "varint" + }, + { + "name": "windowTitle", + "type": "anonymousNbt" } ] ], - "RecipeBookSetting": [ + "packet_ping": [ "container", [ { - "name": "open", - "type": "bool" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_ping_response": [ + "container", + [ { - "name": "filtering", - "type": "bool" + "name": "id", + "type": "i64" } ] ], - "packet_recipe_book_settings": [ + "packet_player_chat": [ "container", [ { - "name": "crafting", - "type": "RecipeBookSetting" + "name": "globalIndex", + "type": "varint" }, { - "name": "furnace", - "type": "RecipeBookSetting" + "name": "senderUuid", + "type": "UUID" }, { - "name": "blast", - "type": "RecipeBookSetting" + "name": "index", + "type": "varint" }, { - "name": "smoker", - "type": "RecipeBookSetting" - } - ] - ], - "packet_entity_destroy": [ - "container", - [ + "name": "signature", + "type": [ + "option", + [ + "buffer", + { + "count": 256 + } + ] + ] + }, { - "name": "entityIds", + "name": "plainMessage", + "type": "string" + }, + { + "name": "timestamp", + "type": "i64" + }, + { + "name": "salt", + "type": "i64" + }, + { + "name": "previousMessages", + "type": "previousMessages" + }, + { + "name": "unsignedChatContent", "type": [ - "array", + "option", + "anonymousNbt" + ] + }, + { + "name": "filterType", + "type": "varint" + }, + { + "name": "filterTypeMask", + "type": [ + "switch", { - "countType": "varint", - "type": "varint" + "compareTo": "filterType", + "default": "void", + "fields": { + "2": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + } } ] + }, + { + "name": "type", + "type": "ChatTypesHolder" + }, + { + "name": "networkName", + "type": "anonymousNbt" + }, + { + "name": "networkTargetName", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "packet_remove_entity_effect": [ + "packet_player_info": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "action", + "type": [ + "bitflags", + { + "flags": [ + "add_player", + "initialize_chat", + "update_game_mode", + "update_listed", + "update_latency", + "update_display_name", + "update_hat", + "update_list_order" + ], + "type": "u8" + } + ] }, { - "name": "effectId", - "type": "varint" + "name": "data", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "player", + "type": [ + "switch", + { + "compareTo": "../action/add_player", + "default": "void", + "fields": { + "true": "game_profile_name_prop" + } + } + ] + }, + { + "name": "chatSession", + "type": [ + "switch", + { + "compareTo": "../action/initialize_chat", + "default": "void", + "fields": { + "true": "chat_session" + } + } + ] + }, + { + "name": "gamemode", + "type": [ + "switch", + { + "compareTo": "../action/update_game_mode", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "listed", + "type": [ + "switch", + { + "compareTo": "../action/update_listed", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "latency", + "type": [ + "switch", + { + "compareTo": "../action/update_latency", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "displayName", + "type": [ + "switch", + { + "compareTo": "../action/update_display_name", + "default": "void", + "fields": { + "true": [ + "option", + "anonymousNbt" + ] + } + } + ] + }, + { + "name": "listPriority", + "type": [ + "switch", + { + "compareTo": "../action/update_list_order", + "default": "void", + "fields": { + "true": "varint" + } + } + ] + }, + { + "name": "showHat", + "type": [ + "switch", + { + "compareTo": "../action/update_hat", + "default": "void", + "fields": { + "true": "bool" + } + } + ] + } + ] + ] + } + ] } ] ], - "packet_reset_score": [ + "packet_player_remove": [ "container", [ { - "name": "entity_name", - "type": "string" - }, - { - "name": "objective_name", + "name": "players", "type": [ - "option", - "string" + "array", + { + "countType": "varint", + "type": "UUID" + } ] } ] ], - "packet_respawn": [ + "packet_player_rotation": [ "container", [ { - "name": "worldState", - "type": "SpawnInfo" + "name": "yaw", + "type": "f32" }, { - "name": "copyMetadata", - "type": "u8" - } - ] - ], - "packet_entity_head_rotation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "relativeYaw", + "type": "bool" }, { - "name": "headYaw", - "type": "i8" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ - { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] + "name": "pitch", + "type": "f32" }, { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_select_advancement_tab": [ - "container", - [ - { - "name": "id", - "type": [ - "option", - "string" - ] + "name": "relativePitch", + "type": "bool" } ] ], - "packet_server_data": [ + "packet_playerlist_header": [ "container", [ { - "name": "motd", + "name": "header", "type": "anonymousNbt" }, { - "name": "iconBytes", - "type": [ - "option", - "ByteArray" - ] - } - ] - ], - "packet_action_bar": [ - "container", - [ - { - "name": "text", + "name": "footer", "type": "anonymousNbt" } ] ], - "packet_world_border_center": [ + "packet_position": [ "container", [ + { + "name": "teleportId", + "type": "varint" + }, { "name": "x", "type": "f64" }, { - "name": "z", + "name": "y", "type": "f64" - } - ] - ], - "packet_world_border_lerp_size": [ - "container", - [ + }, { - "name": "oldDiameter", + "name": "z", "type": "f64" }, { - "name": "newDiameter", + "name": "dx", "type": "f64" }, { - "name": "speed", - "type": "varint" - } - ] - ], - "packet_world_border_size": [ - "container", - [ + "name": "dy", + "type": "f64" + }, { - "name": "diameter", + "name": "dz", "type": "f64" - } - ] - ], - "packet_world_border_warning_delay": [ - "container", - [ + }, { - "name": "warningTime", - "type": "varint" - } - ] - ], - "packet_world_border_warning_reach": [ - "container", - [ + "name": "yaw", + "type": "f32" + }, { - "name": "warningBlocks", - "type": "varint" + "name": "pitch", + "type": "f32" + }, + { + "name": "flags", + "type": "PositionUpdateRelatives" } ] ], - "packet_camera": [ + "packet_profileless_chat": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "message", + "type": "anonymousNbt" + }, + { + "name": "type", + "type": "ChatTypesHolder" + }, + { + "name": "name", + "type": "anonymousNbt" + }, + { + "name": "target", + "type": [ + "option", + "anonymousNbt" + ] } ] ], - "packet_update_view_position": [ + "packet_recipe_book_add": [ "container", [ { - "name": "chunkX", - "type": "varint" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "recipe", + "type": [ + "container", + [ + { + "name": "displayId", + "type": "varint" + }, + { + "name": "display", + "type": "RecipeDisplay" + }, + { + "name": "group", + "type": "optvarint" + }, + { + "name": "category", + "type": [ + "mapper", + { + "mappings": { + "0": "crafting_building_blocks", + "1": "crafting_redstone", + "2": "crafting_equipment", + "3": "crafting_misc", + "4": "furnace_food", + "5": "furnace_blocks", + "6": "furnace_misc", + "7": "blast_furnace_blocks", + "8": "blast_furnace_misc", + "9": "smoker_food", + "10": "stonecutter", + "11": "smithing", + "12": "campfire" + }, + "type": "varint" + } + ] + }, + { + "name": "craftingRequirements", + "type": [ + "option", + [ + "array", + { + "countType": "varint", + "type": "IDSet" + } + ] + ] + } + ] + ] + }, + { + "name": "flags", + "type": [ + "bitflags", + { + "flags": [ + "notification", + "highlight" + ], + "type": "u8" + } + ] + } + ] + ] + } + ] }, { - "name": "chunkZ", - "type": "varint" + "name": "replace", + "type": "bool" } ] ], - "packet_update_view_distance": [ + "packet_recipe_book_remove": [ "container", [ { - "name": "viewDistance", - "type": "varint" + "name": "recipeIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_set_cursor_item": [ + "packet_recipe_book_settings": [ "container", [ { - "name": "contents", - "type": "Slot" - } - ] - ], - "packet_spawn_position": "RespawnData", - "packet_scoreboard_display_objective": [ - "container", - [ + "name": "crafting", + "type": "RecipeBookSetting" + }, { - "name": "position", - "type": "varint" + "name": "furnace", + "type": "RecipeBookSetting" }, { - "name": "name", - "type": "string" + "name": "blast", + "type": "RecipeBookSetting" + }, + { + "name": "smoker", + "type": "RecipeBookSetting" } ] ], - "packet_entity_metadata": [ + "packet_rel_entity_move": [ "container", [ { @@ -8338,25 +8464,24 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "entityId", - "type": "i32" + "name": "dY", + "type": "i16" }, { - "name": "vehicleId", - "type": "i32" + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_entity_velocity": [ + "packet_remove_entity_effect": [ "container", [ { @@ -8364,81 +8489,50 @@ "type": "varint" }, { - "name": "velocity", - "type": "lpVec3" + "name": "effectId", + "type": "varint" } ] ], - "packet_entity_equipment": [ + "packet_reset_score": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entity_name", + "type": "string" }, { - "name": "equipments", + "name": "objective_name", "type": [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } + "option", + "string" ] } ] ], - "packet_experience": [ + "packet_respawn": [ "container", [ { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" + "name": "worldState", + "type": "SpawnInfo" }, { - "name": "totalExperience", - "type": "varint" + "name": "copyMetadata", + "type": "u8" } ] ], - "packet_update_health": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", + "name": "position", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ - { - "name": "slot", - "type": "varint" + "name": "name", + "type": "string" } ] ], @@ -8459,309 +8553,79 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "anonymousNbt", "2": "anonymousNbt" - }, - "default": "void" - } - ] - }, - { - "name": "type", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "number_format", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "option", - "varint" - ], - "2": [ - "option", - "varint" - ] - }, - "default": "void" - } - ] - }, - { - "name": "styling", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "switch", - { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ], - "2": [ - "switch", - { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_set_passengers": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" + } } ] - } - ] - ], - "packet_set_player_inventory": [ - "container", - [ - { - "name": "slotId", - "type": "varint" - }, - { - "name": "contents", - "type": "Slot" - } - ] - ], - "packet_teams": [ - "container", - [ - { - "name": "team", - "type": "string" }, { - "name": "mode", + "name": "type", "type": [ - "mapper", + "switch", { - "type": "i8", - "mappings": { - "0": "add", - "1": "remove", - "2": "change", - "3": "join", - "4": "leave" + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" } } ] }, { - "anon": true, + "name": "number_format", "type": [ "switch", { - "compareTo": "mode", + "compareTo": "action", + "default": "void", "fields": { - "add": [ - "container", - [ - { - "name": "name", - "type": "anonymousNbt" - }, - { - "name": "flags", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "friendly_fire", - "see_friendly_invisible" - ] - } - ] - }, - { - "name": "nameTagVisibility", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "always", - "1": "never", - "2": "hide_for_other_teams", - "3": "hide_for_own_team" - } - } - ] - }, - { - "name": "collisionRule", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "always", - "1": "never", - "2": "push_other_teams", - "3": "push_own_team" - } - } - ] - }, - { - "name": "formatting", - "type": "varint" - }, - { - "name": "prefix", - "type": "anonymousNbt" - }, - { - "name": "suffix", - "type": "anonymousNbt" - } - ] + "0": [ + "option", + "varint" ], - "change": [ - "container", - [ - { - "name": "name", - "type": "anonymousNbt" - }, - { - "name": "flags", - "type": [ - "bitflags", - { - "type": "u8", - "flags": [ - "friendly_fire", - "see_friendly_invisible" - ] - } - ] - }, - { - "name": "nameTagVisibility", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "always", - "1": "never", - "2": "hide_for_other_teams", - "3": "hide_for_own_team" - } - } - ] - }, - { - "name": "collisionRule", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "always", - "1": "never", - "2": "push_other_teams", - "3": "push_own_team" - } - } - ] - }, - { - "name": "formatting", - "type": "varint" - }, - { - "name": "prefix", - "type": "anonymousNbt" - }, - { - "name": "suffix", - "type": "anonymousNbt" - } - ] + "2": [ + "option", + "varint" ] - }, - "default": "void" + } } ] }, { - "name": "players", + "name": "styling", "type": [ "switch", { - "compareTo": "mode", + "compareTo": "action", + "default": "void", "fields": { - "add": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "join": [ - "array", + "0": [ + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } } ], - "leave": [ - "array", + "2": [ + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } } ] - }, - "default": "void" + } } ] } @@ -8790,63 +8654,166 @@ ] }, { - "name": "number_format", - "type": [ - "option", - "varint" - ] + "name": "number_format", + "type": [ + "option", + "varint" + ] + }, + { + "name": "styling", + "type": [ + "switch", + { + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ + { + "name": "id", + "type": [ + "option", + "string" + ] + } + ] + ], + "packet_server_data": [ + "container", + [ + { + "name": "motd", + "type": "anonymousNbt" + }, + { + "name": "iconBytes", + "type": [ + "option", + "ByteArray" + ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "cooldownGroup", + "type": "string" + }, + { + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_cursor_item": [ + "container", + [ + { + "name": "contents", + "type": "Slot" + } + ] + ], + "packet_set_passengers": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "styling", + "name": "passengers", "type": [ - "switch", + "array", { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_simulation_distance": [ + "packet_set_player_inventory": [ "container", [ { - "name": "distance", + "name": "slotId", "type": "varint" + }, + { + "name": "contents", + "type": "Slot" } ] ], - "packet_set_title_subtitle": [ + "packet_set_projectile_power": [ "container", [ { - "name": "text", - "type": "anonymousNbt" + "name": "id", + "type": "varint" + }, + { + "name": "accelerationPower", + "type": "f64" } ] ], - "packet_update_time": [ + "packet_set_slot": [ "container", [ { - "name": "age", - "type": "i64" + "name": "windowId", + "type": "ContainerID" }, { - "name": "time", - "type": "i64" + "name": "stateId", + "type": "varint" }, { - "name": "tickDayTime", + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" + } + ] + ], + "packet_set_ticking_state": [ + "container", + [ + { + "name": "tick_rate", + "type": "f32" + }, + { + "name": "is_frozen", "type": "bool" } ] ], + "packet_set_title_subtitle": [ + "container", + [ + { + "name": "text", + "type": "anonymousNbt" + } + ] + ], "packet_set_title_text": [ "container", [ @@ -8873,7 +8840,34 @@ } ] ], - "packet_entity_sound_effect": [ + "packet_show_dialog": [ + "container", + [ + { + "name": "dialog", + "type": [ + "registryEntryHolder", + { + "baseName": "dialog", + "otherwise": { + "name": "data", + "type": "anonymousNbt" + } + } + ] + } + ] + ], + "packet_simulation_distance": [ + "container", + [ + { + "name": "distance", + "type": "varint" + } + ] + ], + "packet_sound_effect": [ "container", [ { @@ -8885,8 +8879,16 @@ "type": "soundSource" }, { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" }, { "name": "volume", @@ -8902,47 +8904,100 @@ } ] ], - "packet_sound_effect": [ + "packet_spawn_entity": [ "container", [ { - "name": "sound", - "type": "ItemSoundHolder" + "name": "entityId", + "type": "varint" }, { - "name": "soundCategory", - "type": "soundSource" + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "velocity", + "type": "lpVec3" }, { "name": "pitch", - "type": "f32" + "type": "i8" }, { - "name": "seed", - "type": "i64" + "name": "yaw", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "objectData", + "type": "varint" } ] ], + "packet_spawn_position": "RespawnData", "packet_start_configuration": [ "container", [] ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_step_tick": [ + "container", + [ + { + "name": "tick_steps", + "type": "varint" + } + ] + ], "packet_stop_sound": [ "container", [ @@ -8956,11 +9011,11 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "1": "varint", "3": "varint" - }, - "default": "void" + } } ] }, @@ -8970,102 +9025,338 @@ "switch", { "compareTo": "flags", + "default": "void", "fields": { "2": "string", "3": "string" - }, - "default": "void" + } } ] } ] ], - "packet_system_chat": [ + "packet_sync_entity_position": [ "container", [ { - "name": "content", - "type": "anonymousNbt" + "name": "entityId", + "type": "varint" }, { - "name": "isActionBar", - "type": "bool" - } - ] - ], - "packet_playerlist_header": [ - "container", - [ + "name": "x", + "type": "f64" + }, { - "name": "header", - "type": "anonymousNbt" + "name": "y", + "type": "f64" }, { - "name": "footer", - "type": "anonymousNbt" + "name": "z", + "type": "f64" + }, + { + "name": "dx", + "type": "f64" + }, + { + "name": "dy", + "type": "f64" + }, + { + "name": "dz", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_nbt_query_response": [ + "packet_system_chat": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "content", + "type": "anonymousNbt" }, { - "name": "nbt", - "type": "anonOptionalNbt" + "name": "isActionBar", + "type": "bool" } ] ], - "packet_collect": [ + "packet_tab_complete": [ "container", [ { - "name": "collectedEntityId", + "name": "transactionId", "type": "varint" }, { - "name": "collectorEntityId", + "name": "start", "type": "varint" }, { - "name": "pickupItemCount", + "name": "length", "type": "varint" + }, + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] + } + ] } ] ], - "packet_entity_teleport": [ + "packet_tags": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, + "name": "tags", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] + } + ] + } + ] + ], + "packet_teams": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "team", + "type": "string" }, { - "name": "yaw", - "type": "i8" + "name": "mode", + "type": [ + "mapper", + { + "mappings": { + "0": "add", + "1": "remove", + "2": "change", + "3": "join", + "4": "leave" + }, + "type": "i8" + } + ] }, { - "name": "pitch", - "type": "i8" + "anon": true, + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "add": [ + "container", + [ + { + "name": "name", + "type": "anonymousNbt" + }, + { + "name": "flags", + "type": [ + "bitflags", + { + "flags": [ + "friendly_fire", + "see_friendly_invisible" + ], + "type": "u8" + } + ] + }, + { + "name": "nameTagVisibility", + "type": [ + "mapper", + { + "mappings": { + "0": "always", + "1": "never", + "2": "hide_for_other_teams", + "3": "hide_for_own_team" + }, + "type": "varint" + } + ] + }, + { + "name": "collisionRule", + "type": [ + "mapper", + { + "mappings": { + "0": "always", + "1": "never", + "2": "push_other_teams", + "3": "push_own_team" + }, + "type": "varint" + } + ] + }, + { + "name": "formatting", + "type": "varint" + }, + { + "name": "prefix", + "type": "anonymousNbt" + }, + { + "name": "suffix", + "type": "anonymousNbt" + } + ] + ], + "change": [ + "container", + [ + { + "name": "name", + "type": "anonymousNbt" + }, + { + "name": "flags", + "type": [ + "bitflags", + { + "flags": [ + "friendly_fire", + "see_friendly_invisible" + ], + "type": "u8" + } + ] + }, + { + "name": "nameTagVisibility", + "type": [ + "mapper", + { + "mappings": { + "0": "always", + "1": "never", + "2": "hide_for_other_teams", + "3": "hide_for_own_team" + }, + "type": "varint" + } + ] + }, + { + "name": "collisionRule", + "type": [ + "mapper", + { + "mappings": { + "0": "always", + "1": "never", + "2": "push_other_teams", + "3": "push_own_team" + }, + "type": "varint" + } + ] + }, + { + "name": "formatting", + "type": "varint" + }, + { + "name": "prefix", + "type": "anonymousNbt" + }, + { + "name": "suffix", + "type": "anonymousNbt" + } + ] + ] + } + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "players", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "add": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "join": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "leave": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + } + ] } ] ], @@ -9085,232 +9376,168 @@ } ] ], - "packet_set_ticking_state": [ + "packet_tile_entity_data": [ "container", [ { - "name": "tick_rate", - "type": "f32" + "name": "location", + "type": "position" }, { - "name": "is_frozen", - "type": "bool" - } - ] - ], - "packet_step_tick": [ - "container", - [ - { - "name": "tick_steps", + "name": "action", "type": "varint" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" } ] ], - "packet_advancements": [ + "packet_tracked_waypoint": [ "container", [ { - "name": "reset", - "type": "bool" + "name": "operation", + "type": [ + "mapper", + { + "mappings": { + "0": "track", + "1": "untrack", + "2": "update" + }, + "type": "varint" + } + ] }, { - "name": "advancementMapping", + "name": "waypoint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, + "container", + [ + { + "name": "hasUUID", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", { - "name": "value", - "type": [ - "container", - [ - { - "name": "parentId", - "type": [ - "option", - "string" - ] - }, - { - "name": "displayData", - "type": [ - "option", - [ - "container", - [ - { - "name": "title", - "type": "anonymousNbt" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "icon", - "type": "Slot" - }, - { - "name": "frameType", - "type": "varint" - }, - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "backgroundTexture", - "type": [ - "switch", - { - "compareTo": "flags/has_background_texture", - "fields": { - "1": "string" - }, - "default": "void" - } - ] - }, - { - "name": "xCord", - "type": "f32" - }, - { - "name": "yCord", - "type": "f32" - } - ] - ] - ] - }, - { - "name": "requirements", - "type": [ - "array", + "compareTo": "hasUUID", + "fields": { + "false": [ + "container", + [ + { + "name": "id", + "type": "string" + } + ] + ], + "true": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + } + ] + ] + } + } + ] + }, + { + "name": "icon", + "type": [ + "container", + [ + { + "name": "style", + "type": "string" + }, + { + "name": "color", + "type": [ + "option", + [ + "container", + [ { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "red", + "type": "u8" + }, + { + "name": "green", + "type": "u8" + }, + { + "name": "blue", + "type": "u8" } ] - }, - { - "name": "sendsTelemtryData", - "type": "bool" - } + ] ] - ] - } + } + ] ] - ] - } - ] - }, - { - "name": "identifiers", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "progressMapping", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ + }, + { + "name": "type", + "type": [ + "mapper", { - "name": "key", - "type": "string" - }, + "mappings": { + "0": "empty", + "1": "vec3i", + "2": "chunk", + "3": "azimuth" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "switch", { - "name": "value", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "criterionIdentifier", - "type": "string" - }, - { - "name": "criterionProgress", - "type": [ - "option", - "i64" - ] - } - ] + "compareTo": "type", + "fields": { + "azimuth": "f32", + "chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" + } ] - } - ] + ], + "vec3i": "vec3i" + } } ] - ] - } + } + ] ] - }, - { - "name": "showAdvancements", - "type": "bool" } ] ], - "packet_entity_update_attributes": [ + "packet_trade_list": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "properties", + "name": "trades", "type": [ "array", { @@ -9319,508 +9546,527 @@ "container", [ { - "name": "key", + "name": "inputItem1", "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "generic.armor", - "1": "generic.armor_toughness", - "2": "generic.attack_damage", - "3": "generic.attack_knockback", - "4": "generic.attack_speed", - "5": "player.block_break_speed", - "6": "player.block_interaction_range", - "7": "burning_time", - "8": "camera_distance", - "9": "explosion_knockback_resistance", - "10": "player.entity_interaction_range", - "11": "generic.fall_damage_multiplier", - "12": "generic.flying_speed", - "13": "generic.follow_range", - "14": "generic.gravity", - "15": "generic.jump_strength", - "16": "generic.knockback_resistance", - "17": "generic.luck", - "18": "generic.max_absorption", - "19": "generic.max_health", - "20": "generic.movement_speed", - "21": "generic.safe_fall_distance", - "22": "generic.scale", - "23": "zombie.spawn_reinforcements", - "24": "generic.step_height", - "25": "submerged_mining_speed", - "26": "sweeping_damage_ratio", - "27": "tempt_range", - "28": "water_movement_efficiency", - "29": "waypoint_transmit_range", - "30": "waypoint_receive_range" + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "components", + "type": "ExactComponentMatcher" } - } + ] ] }, { - "name": "value", - "type": "f64" + "name": "outputItem", + "type": "Slot" }, { - "name": "modifiers", + "name": "inputItem2", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "string" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] + "option", + [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "components", + "type": "ExactComponentMatcher" + } ] - } + ] ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" } ] ] } ] + }, + { + "name": "villagerLevel", + "type": "varint" + }, + { + "name": "experience", + "type": "varint" + }, + { + "name": "isRegularVillager", + "type": "bool" + }, + { + "name": "canRestock", + "type": "bool" } ] ], - "packet_entity_effect": [ + "packet_unload_chunk": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "chunkZ", + "type": "i32" }, { - "name": "effectId", - "type": "varint" - }, + "name": "chunkX", + "type": "i32" + } + ] + ], + "packet_update_health": [ + "container", + [ { - "name": "amplifier", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "duration", + "name": "food", "type": "varint" }, { - "name": "flags", - "type": "u8" + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_declare_recipes": [ + "packet_update_light": [ "container", [ { - "name": "recipes", + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" + }, + { + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptyBlockLightMask", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] + "type": "i64" } ] }, { - "name": "stoneCutterRecipes", + "name": "skyLight", "type": [ "array", { "countType": "varint", "type": [ - "container", - [ - { - "name": "input", - "type": "IDSet" - }, - { - "name": "slotDisplay", - "type": "SlotDisplay" - } - ] + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] - } - ] - ], - "packet_tags": [ - "container", - [ + }, { - "name": "tags", + "name": "blockLight", "type": [ "array", { "countType": "varint", "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] } ] ], - "packet_set_projectile_power": [ + "packet_update_time": [ "container", [ { - "name": "id", + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + }, + { + "name": "tickDayTime", + "type": "bool" + } + ] + ], + "packet_update_view_distance": [ + "container", + [ + { + "name": "viewDistance", + "type": "varint" + } + ] + ], + "packet_update_view_position": [ + "container", + [ + { + "name": "chunkX", "type": "varint" }, { - "name": "accelerationPower", + "name": "chunkZ", + "type": "varint" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_tracked_waypoint": [ + "packet_window_items": [ "container", [ { - "name": "operation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "track", - "1": "untrack", - "2": "update" - } - } - ] + "name": "windowId", + "type": "ContainerID" }, { - "name": "waypoint", + "name": "stateId", + "type": "varint" + }, + { + "name": "items", "type": [ - "container", - [ - { - "name": "hasUUID", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "hasUUID", - "fields": { - "true": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - } - ] - ], - "false": [ - "container", - [ - { - "name": "id", - "type": "string" - } - ] - ] - } - } - ] - }, - { - "name": "icon", - "type": [ - "container", - [ - { - "name": "style", - "type": "string" - }, - { - "name": "color", - "type": [ - "option", - [ - "container", - [ - { - "name": "red", - "type": "u8" - }, - { - "name": "green", - "type": "u8" - }, - { - "name": "blue", - "type": "u8" - } - ] - ] - ] - } - ] - ] - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "empty", - "1": "vec3i", - "2": "chunk", - "3": "azimuth" - } - } - ] - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "vec3i": "vec3i", - "chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - } - ] - ], - "azimuth": "f32" - } - } - ] - } - ] + "array", + { + "countType": "varint", + "type": "Slot" + } ] + }, + { + "name": "carriedItem", + "type": "Slot" } ] ], - "packet_show_dialog": [ + "packet_world_border_center": [ "container", [ { - "name": "dialog", - "type": [ - "registryEntryHolder", - { - "baseName": "dialog", - "otherwise": { - "name": "data", - "type": "anonymousNbt" - } - } - ] + "name": "x", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet": [ + "packet_world_border_lerp_size": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "animation", - "0x03": "statistics", - "0x04": "acknowledge_player_digging", - "0x05": "block_break_animation", - "0x06": "tile_entity_data", - "0x07": "block_action", - "0x08": "block_change", - "0x09": "boss_bar", - "0x0a": "difficulty", - "0x0b": "chunk_batch_finished", - "0x0c": "chunk_batch_start", - "0x0d": "chunk_biomes", - "0x0e": "clear_titles", - "0x0f": "tab_complete", - "0x10": "declare_commands", - "0x11": "close_window", - "0x12": "window_items", - "0x13": "craft_progress_bar", - "0x14": "set_slot", - "0x15": "cookie_request", - "0x16": "set_cooldown", - "0x17": "chat_suggestions", - "0x18": "custom_payload", - "0x19": "damage_event", - "0x1a": "debug_block_value", - "0x1b": "debug_chunk_value", - "0x1c": "debug_entity_value", - "0x1d": "debug_event", - "0x1e": "debug_sample", - "0x1f": "hide_message", - "0x20": "kick_disconnect", - "0x21": "profileless_chat", - "0x22": "entity_status", - "0x23": "sync_entity_position", - "0x24": "explosion", - "0x25": "unload_chunk", - "0x26": "game_state_change", - "0x27": "game_test_highlight_pos", - "0x28": "open_horse_window", - "0x29": "hurt_animation", - "0x2a": "initialize_world_border", - "0x2b": "keep_alive", - "0x2c": "map_chunk", - "0x2d": "world_event", - "0x2e": "world_particles", - "0x2f": "update_light", - "0x30": "login", - "0x31": "map", - "0x32": "trade_list", - "0x33": "rel_entity_move", - "0x34": "entity_move_look", - "0x35": "move_minecart", - "0x36": "entity_look", - "0x37": "vehicle_move", - "0x38": "open_book", - "0x39": "open_window", - "0x3a": "open_sign_entity", - "0x3b": "ping", - "0x3c": "ping_response", - "0x3d": "craft_recipe_response", - "0x3e": "abilities", - "0x3f": "player_chat", - "0x40": "end_combat_event", - "0x41": "enter_combat_event", - "0x42": "death_combat_event", - "0x43": "player_remove", - "0x44": "player_info", - "0x45": "face_player", - "0x46": "position", - "0x47": "player_rotation", - "0x48": "recipe_book_add", - "0x49": "recipe_book_remove", - "0x4a": "recipe_book_settings", - "0x4b": "entity_destroy", - "0x4c": "remove_entity_effect", - "0x4d": "reset_score", - "0x4e": "remove_resource_pack", - "0x4f": "add_resource_pack", - "0x50": "respawn", - "0x51": "entity_head_rotation", - "0x52": "multi_block_change", - "0x53": "select_advancement_tab", - "0x54": "server_data", - "0x55": "action_bar", - "0x56": "world_border_center", - "0x57": "world_border_lerp_size", - "0x58": "world_border_size", - "0x59": "world_border_warning_delay", - "0x5a": "world_border_warning_reach", - "0x5b": "camera", - "0x5c": "update_view_position", - "0x5d": "update_view_distance", - "0x5e": "set_cursor_item", - "0x5f": "spawn_position", - "0x60": "scoreboard_display_objective", - "0x61": "entity_metadata", - "0x62": "attach_entity", - "0x63": "entity_velocity", - "0x64": "entity_equipment", - "0x65": "experience", - "0x66": "update_health", - "0x67": "held_item_slot", - "0x68": "scoreboard_objective", - "0x69": "set_passengers", - "0x6a": "set_player_inventory", - "0x6b": "teams", - "0x6c": "scoreboard_score", - "0x6d": "simulation_distance", - "0x6e": "set_title_subtitle", - "0x6f": "update_time", - "0x70": "set_title_text", - "0x71": "set_title_time", - "0x72": "entity_sound_effect", - "0x73": "sound_effect", - "0x74": "start_configuration", - "0x75": "stop_sound", - "0x76": "store_cookie", - "0x77": "system_chat", - "0x78": "playerlist_header", - "0x79": "nbt_query_response", - "0x7a": "collect", - "0x7b": "entity_teleport", - "0x7c": "test_instance_block_status", - "0x7d": "set_ticking_state", - "0x7e": "step_tick", - "0x7f": "transfer", - "0x80": "advancements", - "0x81": "entity_update_attributes", - "0x82": "entity_effect", - "0x83": "declare_recipes", - "0x84": "tags", - "0x85": "set_projectile_power", - "0x86": "custom_report_details", - "0x87": "server_links", - "0x88": "tracked_waypoint", - "0x89": "clear_dialog", - "0x8a": "show_dialog" - } + "name": "oldDiameter", + "type": "f64" + }, + { + "name": "newDiameter", + "type": "f64" + }, + { + "name": "speed", + "type": "varint" + } + ] + ], + "packet_world_border_size": [ + "container", + [ + { + "name": "diameter", + "type": "f64" + } + ] + ], + "packet_world_border_warning_delay": [ + "container", + [ + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_world_border_warning_reach": [ + "container", + [ + { + "name": "warningBlocks", + "type": "varint" + } + ] + ], + "packet_world_event": [ + "container", + [ + { + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" + } + ] + ], + "packet_world_particles": [ + "container", + [ + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "alwaysShow", + "type": "bool" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "velocityOffset", + "type": "f32" + }, + { + "name": "amount", + "type": "i32" + }, + { + "name": "particle", + "type": "Particle" + } + ] + ] + } + }, + "toServer": { + "types": { + "MovementFlags": [ + "bitflags", + { + "flags": [ + "onGround", + "hasHorizontalCollision" + ], + "type": "u8" + } + ], + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "select_bundle_item", + "0x03": "set_difficulty", + "0x04": "change_gamemode", + "0x05": "message_acknowledgement", + "0x06": "chat_command", + "0x07": "chat_command_signed", + "0x08": "chat_message", + "0x09": "chat_session_update", + "0x0a": "chunk_batch_received", + "0x0b": "client_command", + "0x0c": "tick_end", + "0x0d": "settings", + "0x0e": "tab_complete", + "0x0f": "configuration_acknowledged", + "0x10": "enchant_item", + "0x11": "window_click", + "0x12": "close_window", + "0x13": "set_slot_state", + "0x14": "cookie_response", + "0x15": "custom_payload", + "0x16": "debug_subscription_request", + "0x17": "edit_book", + "0x18": "query_entity_nbt", + "0x19": "use_entity", + "0x1a": "generate_structure", + "0x1b": "keep_alive", + "0x1c": "lock_difficulty", + "0x1d": "position", + "0x1e": "position_look", + "0x1f": "look", + "0x20": "flying", + "0x21": "vehicle_move", + "0x22": "steer_boat", + "0x23": "pick_item_from_block", + "0x24": "pick_item_from_entity", + "0x25": "ping_request", + "0x26": "craft_recipe_request", + "0x27": "abilities", + "0x28": "block_dig", + "0x29": "entity_action", + "0x2a": "player_input", + "0x2b": "player_loaded", + "0x2c": "pong", + "0x2d": "recipe_book", + "0x2e": "displayed_recipe", + "0x2f": "name_item", + "0x30": "resource_pack_receive", + "0x31": "advancement_tab", + "0x32": "select_trade", + "0x33": "set_beacon_effect", + "0x34": "held_item_slot", + "0x35": "update_command_block", + "0x36": "update_command_block_minecart", + "0x37": "set_creative_slot", + "0x38": "update_jigsaw_block", + "0x39": "update_structure_block", + "0x3a": "set_test_block", + "0x3b": "update_sign", + "0x3c": "arm_animation", + "0x3d": "spectate", + "0x3e": "test_instance_block_action", + "0x3f": "block_place", + "0x40": "use_item", + "0x41": "custom_click_action" + }, + "type": "varint" } ] }, @@ -9829,209 +10075,179 @@ "type": [ "switch", { - "compareTo": "name", - "fields": { - "bundle_delimiter": "void", - "spawn_entity": "packet_spawn_entity", - "animation": "packet_animation", - "statistics": "packet_statistics", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "chunk_batch_finished": "packet_chunk_batch_finished", - "chunk_batch_start": "packet_chunk_batch_start", - "chunk_biomes": "packet_chunk_biomes", - "clear_titles": "packet_clear_titles", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "close_window": "packet_close_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "cookie_request": "packet_common_cookie_request", - "set_cooldown": "packet_set_cooldown", - "chat_suggestions": "packet_chat_suggestions", - "custom_payload": "packet_custom_payload", - "damage_event": "packet_damage_event", - "debug_block_value": "packet_debug_block_value", - "debug_chunk_value": "packet_debug_chunk_value", - "debug_entity_value": "packet_debug_entity_value", - "debug_event": "packet_debug_event", - "debug_sample": "packet_debug_sample", - "hide_message": "packet_hide_message", - "kick_disconnect": "packet_kick_disconnect", - "profileless_chat": "packet_profileless_chat", - "entity_status": "packet_entity_status", - "sync_entity_position": "packet_sync_entity_position", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "game_test_highlight_pos": "packet_game_test_highlight_pos", - "open_horse_window": "packet_open_horse_window", - "hurt_animation": "packet_hurt_animation", - "initialize_world_border": "packet_initialize_world_border", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "move_minecart": "packet_move_minecart", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_window": "packet_open_window", - "open_sign_entity": "packet_open_sign_entity", - "ping": "packet_ping", - "ping_response": "packet_ping_response", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "player_chat": "packet_player_chat", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_remove": "packet_player_remove", - "player_info": "packet_player_info", - "face_player": "packet_face_player", - "position": "packet_position", - "player_rotation": "packet_player_rotation", - "recipe_book_add": "packet_recipe_book_add", - "recipe_book_remove": "packet_recipe_book_remove", - "recipe_book_settings": "packet_recipe_book_settings", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "reset_score": "packet_reset_score", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "respawn": "packet_respawn", - "entity_head_rotation": "packet_entity_head_rotation", - "multi_block_change": "packet_multi_block_change", - "select_advancement_tab": "packet_select_advancement_tab", - "server_data": "packet_server_data", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "camera": "packet_camera", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "set_cursor_item": "packet_set_cursor_item", - "held_item_slot": "packet_held_item_slot", - "spawn_position": "packet_spawn_position", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "set_player_inventory": "packet_set_player_inventory", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "set_title_subtitle": "packet_set_title_subtitle", - "update_time": "packet_update_time", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time", - "entity_sound_effect": "packet_entity_sound_effect", - "sound_effect": "packet_sound_effect", - "start_configuration": "packet_start_configuration", - "stop_sound": "packet_stop_sound", - "store_cookie": "packet_common_store_cookie", - "system_chat": "packet_system_chat", - "playerlist_header": "packet_playerlist_header", - "nbt_query_response": "packet_nbt_query_response", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "test_instance_block_status": "packet_test_instance_block_status", - "set_ticking_state": "packet_set_ticking_state", - "step_tick": "packet_step_tick", - "transfer": "packet_common_transfer", - "advancements": "packet_advancements", - "entity_update_attributes": "packet_entity_update_attributes", - "entity_effect": "packet_entity_effect", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "set_projectile_power": "packet_set_projectile_power", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links", - "tracked_waypoint": "packet_tracked_waypoint", - "clear_dialog": "packet_common_clear_dialog", - "show_dialog": "packet_show_dialog" + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "change_gamemode": "packet_change_gamemode", + "chat_command": "packet_chat_command", + "chat_command_signed": "packet_chat_command_signed", + "chat_message": "packet_chat_message", + "chat_session_update": "packet_chat_session_update", + "chunk_batch_received": "packet_chunk_batch_received", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "configuration_acknowledged": "packet_configuration_acknowledged", + "cookie_response": "packet_common_cookie_response", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_click_action": "packet_common_custom_click_action", + "custom_payload": "packet_custom_payload", + "debug_subscription_request": "packet_debug_subscription_request", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "message_acknowledgement": "packet_message_acknowledgement", + "name_item": "packet_name_item", + "pick_item_from_block": "packet_pick_item_from_block", + "pick_item_from_entity": "packet_pick_item_from_entity", + "ping_request": "packet_ping_request", + "player_input": "packet_player_input", + "player_loaded": "packet_player_loaded", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_bundle_item": "packet_select_bundle_item", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "set_slot_state": "packet_set_slot_state", + "set_test_block": "packet_set_test_block", + "settings": "packet_common_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "test_instance_block_action": "packet_test_instance_block_action", + "tick_end": "packet_tick_end", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_select_bundle_item": [ + "packet_arm_animation": [ "container", [ { - "name": "slotId", + "name": "hand", + "type": "varint" + } + ] + ], + "packet_block_dig": [ + "container", + [ + { + "name": "status", "type": "varint" }, { - "name": "selectedItemIndex", + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" + }, + { + "name": "sequence", "type": "varint" } ] ], - "packet_set_difficulty": [ + "packet_block_place": [ "container", [ { - "name": "newDifficulty", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "peaceful", - "1": "easy", - "2": "normal", - "3": "hard" - } - } - ] + "name": "hand", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "varint" + }, + { + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" + }, + { + "name": "worldBorderHit", + "type": "bool" + }, + { + "name": "sequence", + "type": "varint" } ] ], @@ -10043,27 +10259,18 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "survival", "1": "creative", "2": "adventure", "3": "spectator" - } + }, + "type": "varint" } ] } ] ], - "packet_message_acknowledgement": [ - "container", - [ - { - "name": "count", - "type": "varint" - } - ] - ], "packet_chat_command": [ "container", [ @@ -10188,125 +10395,34 @@ "type": "UUID" }, { - "name": "expireTime", - "type": "i64" - }, - { - "name": "publicKey", - "type": "ByteArray" - }, - { - "name": "signature", - "type": "ByteArray" - } - ] - ], - "packet_chunk_batch_received": [ - "container", - [ - { - "name": "chunksPerTick", - "type": "f32" - } - ] - ], - "packet_client_command": [ - "container", - [ - { - "name": "actionId", - "type": "varint" - } - ] - ], - "packet_tick_end": [ - "container", - [] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "text", - "type": "string" - } - ] - ], - "packet_configuration_acknowledged": [ - "container", - [] - ], - "packet_enchant_item": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "enchantment", - "type": "varint" - } - ] - ], - "packet_window_click": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" + "name": "expireTime", + "type": "i64" }, { - "name": "mouseButton", - "type": "i8" + "name": "publicKey", + "type": "ByteArray" }, { - "name": "mode", - "type": "varint" - }, + "name": "signature", + "type": "ByteArray" + } + ] + ], + "packet_chunk_batch_received": [ + "container", + [ { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": [ - "option", - "HashedSlot" - ] - } - ] - ] - } - ] - }, + "name": "chunksPerTick", + "type": "f32" + } + ] + ], + "packet_client_command": [ + "container", + [ { - "name": "cursorItem", - "type": [ - "option", - "HashedSlot" - ] + "name": "actionId", + "type": "varint" } ] ], @@ -10319,19 +10435,23 @@ } ] ], - "packet_set_slot_state": [ + "packet_configuration_acknowledged": [ + "container", + [] + ], + "packet_craft_recipe_request": [ "container", [ { - "name": "slot_id", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "window_id", - "type": "ContainerID" + "name": "recipeId", + "type": "varint" }, { - "name": "state", + "name": "makeAll", "type": "bool" } ] @@ -10364,6 +10484,15 @@ } ] ], + "packet_displayed_recipe": [ + "container", + [ + { + "name": "recipeId", + "type": "varint" + } + ] + ], "packet_edit_book": [ "container", [ @@ -10390,134 +10519,209 @@ } ] ], - "packet_query_entity_nbt": [ + "packet_enchant_item": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "entityId", + "name": "enchantment", "type": "varint" } ] ], - "packet_use_entity": [ + "packet_entity_action": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "entityId", "type": "varint" }, { - "name": "x", + "name": "actionId", "type": [ - "switch", + "mapper", { - "compareTo": "mouse", - "fields": { - "2": "f32" + "mappings": { + "0": "leave_bed", + "1": "start_sprinting", + "2": "stop_sprinting", + "3": "start_horse_jump", + "4": "stop_horse_jump", + "5": "open_vehicle_inventory", + "6": "start_elytra_flying" }, - "default": "void" + "type": "varint" } ] }, { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "flags", + "type": "MovementFlags" + } + ] + ], + "packet_generate_structure": [ + "container", + [ + { + "name": "location", + "type": "position" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "levels", + "type": "varint" }, { - "name": "sneaking", + "name": "keepJigsaws", "type": "bool" } ] ], - "packet_generate_structure": [ + "packet_held_item_slot": [ "container", [ { - "name": "location", + "name": "slotId", + "type": "i16" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_lock_difficulty": [ + "container", + [ + { + "name": "locked", + "type": "bool" + } + ] + ], + "packet_look": [ + "container", + [ + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "flags", + "type": "MovementFlags" + } + ] + ], + "packet_message_acknowledgement": [ + "container", + [ + { + "name": "count", + "type": "varint" + } + ] + ], + "packet_name_item": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item_from_block": [ + "container", + [ + { + "name": "position", "type": "position" }, { - "name": "levels", + "name": "includeData", + "type": "bool" + } + ] + ], + "packet_pick_item_from_entity": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "keepJigsaws", + "name": "includeData", "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_ping_request": [ + "container", + [ + { + "name": "id", + "type": "i64" + } + ] + ], + "packet_player_input": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "inputs", + "type": [ + "bitflags", + { + "flags": [ + "forward", + "backward", + "left", + "right", + "jump", + "shift", + "sprint" + ], + "type": "u8" + } + ] } ] ], - "packet_lock_difficulty": [ + "packet_player_loaded": [ + "container", + [] + ], + "packet_pong": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "id", + "type": "i32" } ] ], - "MovementFlags": [ - "bitflags", - { - "type": "u8", - "flags": [ - "onGround", - "hasHorizontalCollision" - ] - } - ], "packet_position": [ "container", [ @@ -10568,329 +10772,268 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "flags", - "type": "MovementFlags" - } - ] - ], - "packet_flying": [ - "container", - [ - { - "name": "flags", - "type": "MovementFlags" + "name": "location", + "type": "position" } ] ], - "packet_vehicle_move": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_recipe_book": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "bookId", + "type": "varint" }, { - "name": "rightPaddle", + "name": "bookOpen", "type": "bool" - } - ] - ], - "packet_pick_item_from_block": [ - "container", - [ - { - "name": "position", - "type": "position" }, { - "name": "includeData", + "name": "filterActive", "type": "bool" } ] ], - "packet_pick_item_from_entity": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "uuid", + "type": "UUID" }, { - "name": "includeData", - "type": "bool" - } - ] - ], - "packet_ping_request": [ - "container", - [ - { - "name": "id", - "type": "i64" + "name": "result", + "type": "varint" } ] ], - "packet_craft_recipe_request": [ + "packet_select_bundle_item": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "recipeId", + "name": "slotId", "type": "varint" }, { - "name": "makeAll", - "type": "bool" + "name": "selectedItemIndex", + "type": "varint" } ] ], - "packet_abilities": [ + "packet_select_trade": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "slot", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "primary_effect", + "type": [ + "option", + "varint" + ] }, { - "name": "sequence", - "type": "varint" + "name": "secondary_effect", + "type": [ + "option", + "varint" + ] } ] ], - "packet_entity_action": [ + "packet_set_creative_slot": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "leave_bed", - "1": "start_sprinting", - "2": "stop_sprinting", - "3": "start_horse_jump", - "4": "stop_horse_jump", - "5": "open_vehicle_inventory", - "6": "start_elytra_flying" - } - } - ] + "name": "slot", + "type": "i16" }, { - "name": "jumpBoost", - "type": "varint" + "name": "item", + "type": "UntrustedSlot" } ] ], - "packet_player_input": [ + "packet_set_difficulty": [ "container", [ { - "name": "inputs", + "name": "newDifficulty", "type": [ - "bitflags", + "mapper", { - "type": "u8", - "flags": [ - "forward", - "backward", - "left", - "right", - "jump", - "shift", - "sprint" - ] + "mappings": { + "0": "peaceful", + "1": "easy", + "2": "normal", + "3": "hard" + }, + "type": "varint" } ] } ] ], - "packet_player_loaded": [ - "container", - [] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_recipe_book": [ + "packet_set_slot_state": [ "container", [ { - "name": "bookId", + "name": "slot_id", "type": "varint" }, { - "name": "bookOpen", - "type": "bool" + "name": "window_id", + "type": "ContainerID" }, { - "name": "filterActive", + "name": "state", "type": "bool" } ] ], - "packet_displayed_recipe": [ + "packet_set_test_block": [ "container", [ { - "name": "recipeId", + "name": "position", + "type": "position" + }, + { + "name": "mode", "type": "varint" + }, + { + "name": "message", + "type": "string" } ] ], - "packet_name_item": [ + "packet_spectate": [ "container", [ { - "name": "name", - "type": "string" + "name": "target", + "type": "UUID" } ] ], - "packet_resource_pack_receive": [ + "packet_steer_boat": [ "container", [ { - "name": "uuid", - "type": "UUID" + "name": "leftPaddle", + "type": "bool" }, { - "name": "result", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], - "packet_advancement_tab": [ + "packet_tab_complete": [ "container", [ { - "name": "action", + "name": "transactionId", "type": "varint" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "text", + "type": "string" } ] ], - "packet_select_trade": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slot", + "name": "teleportId", "type": "varint" } ] ], - "packet_set_beacon_effect": [ + "packet_test_instance_block_action": [ "container", [ { - "name": "primary_effect", - "type": [ - "option", - "varint" - ] + "name": "pos", + "type": "position" }, { - "name": "secondary_effect", + "name": "action", + "type": "varint" + }, + { + "name": "data", "type": [ - "option", - "varint" + "container", + [ + { + "name": "test", + "type": [ + "option", + "string" + ] + }, + { + "name": "size", + "type": "vec3i" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "ignoreEntities", + "type": "bool" + }, + { + "name": "status", + "type": "varint" + }, + { + "name": "errorMessage", + "type": [ + "option", + "anonymousNbt" + ] + } + ] ] } ] ], - "packet_held_item_slot": [ + "packet_tick_end": [ "container", - [ - { - "name": "slotId", - "type": "i16" - } - ] + [] ], "packet_update_command_block": [ "container", @@ -10930,19 +11073,6 @@ } ] ], - "packet_set_creative_slot": [ - "container", - [ - { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "UntrustedSlot" - } - ] - ], "packet_update_jigsaw_block": [ "container", [ @@ -10980,6 +11110,35 @@ } ] ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], "packet_update_structure_block": [ "container", [ @@ -11048,134 +11207,89 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ignore_entities", "1": "show_air", "2": "show_bounding_box", "3": "strict" - } + }, + "type": "u8" } ] } ] ], - "packet_set_test_block": [ + "packet_use_entity": [ "container", [ { - "name": "position", - "type": "position" - }, - { - "name": "mode", + "name": "target", "type": "varint" }, { - "name": "message", - "type": "string" - } - ] - ], - "packet_update_sign": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "isFrontText", - "type": "bool" - }, - { - "name": "text1", - "type": "string" - }, - { - "name": "text2", - "type": "string" - }, - { - "name": "text3", - "type": "string" - }, - { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ - { - "name": "hand", + "name": "mouse", "type": "varint" - } - ] - ], - "packet_spectate": [ - "container", - [ - { - "name": "target", - "type": "UUID" - } - ] - ], - "packet_test_instance_block_action": [ - "container", - [ - { - "name": "pos", - "type": "position" }, { - "name": "action", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "data", + "name": "y", "type": [ - "container", - [ - { - "name": "test", - "type": [ - "option", - "string" - ] - }, - { - "name": "size", - "type": "vec3i" - }, - { - "name": "rotation", - "type": "varint" - }, - { - "name": "ignoreEntities", - "type": "bool" - }, - { - "name": "status", - "type": "varint" - }, - { - "name": "errorMessage", - "type": [ - "option", - "anonymousNbt" - ] + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" } - ] + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } ] + }, + { + "name": "sneaking", + "type": "bool" } ] ], - "packet_block_place": [ + "packet_use_item": [ "container", [ { @@ -11183,211 +11297,97 @@ "type": "varint" }, { - "name": "location", - "type": "position" + "name": "sequence", + "type": "varint" }, { - "name": "direction", - "type": "varint" + "name": "rotation", + "type": "vec2f" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": "f64" }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": "f64" }, { - "name": "cursorZ", + "name": "yaw", "type": "f32" }, { - "name": "insideBlock", - "type": "bool" + "name": "pitch", + "type": "f32" }, { - "name": "worldBorderHit", + "name": "onGround", "type": "bool" - }, - { - "name": "sequence", - "type": "varint" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "sequence", + "name": "stateId", "type": "varint" }, { - "name": "rotation", - "type": "vec2f" - } - ] - ], - "packet": [ - "container", - [ + "name": "slot", + "type": "i16" + }, { - "name": "name", + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "select_bundle_item", - "0x03": "set_difficulty", - "0x04": "change_gamemode", - "0x05": "message_acknowledgement", - "0x06": "chat_command", - "0x07": "chat_command_signed", - "0x08": "chat_message", - "0x09": "chat_session_update", - "0x0a": "chunk_batch_received", - "0x0b": "client_command", - "0x0c": "tick_end", - "0x0d": "settings", - "0x0e": "tab_complete", - "0x0f": "configuration_acknowledged", - "0x10": "enchant_item", - "0x11": "window_click", - "0x12": "close_window", - "0x13": "set_slot_state", - "0x14": "cookie_response", - "0x15": "custom_payload", - "0x16": "debug_subscription_request", - "0x17": "edit_book", - "0x18": "query_entity_nbt", - "0x19": "use_entity", - "0x1a": "generate_structure", - "0x1b": "keep_alive", - "0x1c": "lock_difficulty", - "0x1d": "position", - "0x1e": "position_look", - "0x1f": "look", - "0x20": "flying", - "0x21": "vehicle_move", - "0x22": "steer_boat", - "0x23": "pick_item_from_block", - "0x24": "pick_item_from_entity", - "0x25": "ping_request", - "0x26": "craft_recipe_request", - "0x27": "abilities", - "0x28": "block_dig", - "0x29": "entity_action", - "0x2a": "player_input", - "0x2b": "player_loaded", - "0x2c": "pong", - "0x2d": "recipe_book", - "0x2e": "displayed_recipe", - "0x2f": "name_item", - "0x30": "resource_pack_receive", - "0x31": "advancement_tab", - "0x32": "select_trade", - "0x33": "set_beacon_effect", - "0x34": "held_item_slot", - "0x35": "update_command_block", - "0x36": "update_command_block_minecart", - "0x37": "set_creative_slot", - "0x38": "update_jigsaw_block", - "0x39": "update_structure_block", - "0x3a": "set_test_block", - "0x3b": "update_sign", - "0x3c": "arm_animation", - "0x3d": "spectate", - "0x3e": "test_instance_block_action", - "0x3f": "block_place", - "0x40": "use_item", - "0x41": "custom_click_action" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": [ + "option", + "HashedSlot" + ] + } + ] + ] } ] }, { - "name": "params", + "name": "cursorItem", "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "select_bundle_item": "packet_select_bundle_item", - "set_difficulty": "packet_set_difficulty", - "change_gamemode": "packet_change_gamemode", - "message_acknowledgement": "packet_message_acknowledgement", - "chat_command": "packet_chat_command", - "chat_command_signed": "packet_chat_command_signed", - "chat_message": "packet_chat_message", - "chat_session_update": "packet_chat_session_update", - "chunk_batch_received": "packet_chunk_batch_received", - "client_command": "packet_client_command", - "tick_end": "packet_tick_end", - "settings": "packet_common_settings", - "tab_complete": "packet_tab_complete", - "configuration_acknowledged": "packet_configuration_acknowledged", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "set_slot_state": "packet_set_slot_state", - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "debug_subscription_request": "packet_debug_subscription_request", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "pick_item_from_block": "packet_pick_item_from_block", - "pick_item_from_entity": "packet_pick_item_from_entity", - "ping_request": "packet_ping_request", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "player_input": "packet_player_input", - "player_loaded": "packet_player_loaded", - "pong": "packet_pong", - "recipe_book": "packet_recipe_book", - "displayed_recipe": "packet_displayed_recipe", - "name_item": "packet_name_item", - "resource_pack_receive": "packet_resource_pack_receive", - "advancement_tab": "packet_advancement_tab", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "held_item_slot": "packet_held_item_slot", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_structure_block": "packet_update_structure_block", - "set_test_block": "packet_set_test_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "test_instance_block_action": "packet_test_instance_block_action", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "custom_click_action": "packet_common_custom_click_action" - } - } + "option", + "HashedSlot" ] } ] diff --git a/data/pc/1.7/protocol.json b/data/pc/1.7/protocol.json index 0dede906e..3a3223505 100644 --- a/data/pc/1.7/protocol.json +++ b/data/pc/1.7/protocol.json @@ -1,146 +1,56 @@ { "types": { - "varint": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "compressedNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "compressedNbt": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 127, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ - "container", + "anon": true, + "type": [ + "bitfield", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "type", + "signed": false, + "size": 3 }, { - "name": "nbtData", - "type": "compressedNbt" + "name": "key", + "signed": false, + "size": 5 } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position_iii": [ - "container", - [ - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - } - ] - ], - "position_isi": [ - "container", - [ - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i32" - } - ] - ], - "position_ibi": [ - "container", - [ - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "z", - "type": "i32" - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -190,44 +100,134 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 127, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "position_ibi": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "z", + "type": "i32" + } + ] + ], + "position_iii": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + } + ] + ], + "position_isi": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i32" + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ - "bitfield", + "compareTo": "blockId", + "default": [ + "container", [ { - "name": "type", - "size": 3, - "signed": false + "name": "itemCount", + "type": "i8" }, { - "name": "key", - "size": 5, - "signed": false + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "compressedNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -240,8 +240,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -261,6 +261,46 @@ }, "toServer": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", + [ + { + "name": "payload", + "type": "u8" + } + ] + ], "packet_set_protocol": [ "container", [ @@ -281,16 +321,13 @@ "type": "varint" } ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -299,11 +336,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -314,38 +351,36 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_ping": [ + "packet_server_info": [ "container", [ { - "name": "time", - "type": "i64" + "name": "response", + "type": "string" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -354,11 +389,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "server_info", + "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -369,21 +404,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -394,6 +421,16 @@ } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -402,11 +439,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success" + }, + "type": "varint" } ] }, @@ -417,20 +455,15 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { + ], "packet_disconnect": [ "container", [ @@ -479,7 +512,11 @@ "type": "string" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -488,12 +525,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -504,27 +540,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -549,34 +571,12 @@ } ] ], - "packet": [ + "packet_login_start": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } - } - ] + "name": "username", + "type": "string" } ] ] @@ -586,434 +586,497 @@ "play": { "toClient": { "types": { - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i32" - } - ] - ], - "packet_login": [ - "container", - [ - { - "name": "entityId", - "type": "i32" - }, - { - "name": "gameMode", - "type": "u8" - }, - { - "name": "dimension", - "type": "i8" - }, - { - "name": "difficulty", - "type": "u8" - }, - { - "name": "maxPlayers", - "type": "u8" - }, - { - "name": "levelType", - "type": "string" - } - ] - ], - "packet_chat": [ + "packet": [ "container", [ { - "name": "message", - "type": "string" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "keep_alive", + "0x01": "login", + "0x02": "chat", + "0x03": "update_time", + "0x04": "entity_equipment", + "0x05": "spawn_position", + "0x06": "update_health", + "0x07": "respawn", + "0x08": "position", + "0x09": "held_item_slot", + "0x0a": "bed", + "0x0b": "animation", + "0x0c": "named_entity_spawn", + "0x0d": "collect", + "0x0e": "spawn_entity", + "0x0f": "spawn_entity_living", + "0x10": "spawn_entity_painting", + "0x11": "spawn_entity_experience_orb", + "0x12": "entity_velocity", + "0x13": "entity_destroy", + "0x14": "entity", + "0x15": "rel_entity_move", + "0x16": "entity_look", + "0x17": "entity_move_look", + "0x18": "entity_teleport", + "0x19": "entity_head_rotation", + "0x1a": "entity_status", + "0x1b": "attach_entity", + "0x1c": "entity_metadata", + "0x1d": "entity_effect", + "0x1e": "remove_entity_effect", + "0x1f": "experience", + "0x20": "update_attributes", + "0x21": "map_chunk", + "0x22": "multi_block_change", + "0x23": "block_change", + "0x24": "block_action", + "0x25": "block_break_animation", + "0x26": "map_chunk_bulk", + "0x27": "explosion", + "0x28": "world_event", + "0x29": "named_sound_effect", + "0x2a": "world_particles", + "0x2b": "game_state_change", + "0x2c": "spawn_entity_weather", + "0x2d": "open_window", + "0x2e": "close_window", + "0x2f": "set_slot", + "0x30": "window_items", + "0x31": "craft_progress_bar", + "0x32": "transaction", + "0x33": "update_sign", + "0x34": "map", + "0x35": "tile_entity_data", + "0x36": "open_sign_entity", + "0x37": "statistics", + "0x38": "player_info", + "0x39": "abilities", + "0x3a": "tab_complete", + "0x3b": "scoreboard_objective", + "0x3c": "scoreboard_score", + "0x3d": "scoreboard_display_objective", + "0x3e": "scoreboard_team", + "0x3f": "custom_payload", + "0x40": "kick_disconnect" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "craft_progress_bar": "packet_craft_progress_bar", + "custom_payload": "packet_custom_payload", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "map_chunk_bulk": "packet_map_chunk_bulk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "scoreboard_team": "packet_scoreboard_team", + "set_slot": "packet_set_slot", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "tile_entity_data": "packet_tile_entity_data", + "transaction": "packet_transaction", + "update_attributes": "packet_update_attributes", + "update_health": "packet_update_health", + "update_sign": "packet_update_sign", + "update_time": "packet_update_time", + "window_items": "packet_window_items", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_update_time": [ + "packet_abilities": [ "container", [ { - "name": "age", - "type": "i64" + "name": "flags", + "type": "i8" }, { - "name": "time", - "type": "i64" + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_entity_equipment": [ + "packet_animation": [ "container", [ { "name": "entityId", - "type": "i32" - }, - { - "name": "slot", - "type": "i16" + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "animation", + "type": "u8" } ] ], - "packet_spawn_position": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position_iii" + "name": "entityId", + "type": "i32" + }, + { + "name": "vehicleId", + "type": "i32" + }, + { + "name": "leash", + "type": "bool" } ] ], - "packet_update_health": [ + "packet_bed": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "i16" + "name": "entityId", + "type": "i32" }, { - "name": "foodSaturation", - "type": "f32" + "name": "location", + "type": "position_ibi" } ] ], - "packet_respawn": [ + "packet_block_action": [ "container", [ { - "name": "dimension", - "type": "i32" + "name": "location", + "type": "position_isi" }, { - "name": "difficulty", + "name": "byte1", "type": "u8" }, { - "name": "gamemode", + "name": "byte2", "type": "u8" }, { - "name": "levelType", - "type": "string" + "name": "blockId", + "type": "varint" } ] ], - "packet_position": [ + "packet_block_break_animation": [ "container", [ { - "name": "x", - "type": "f64" + "name": "entityId", + "type": "varint" }, { - "name": "y", - "type": "f64" + "name": "location", + "type": "position_iii" }, { - "name": "z", - "type": "f64" - }, + "name": "destroyStage", + "type": "i8" + } + ] + ], + "packet_block_change": [ + "container", + [ { - "name": "yaw", - "type": "f32" + "name": "location", + "type": "position_ibi" }, { - "name": "pitch", - "type": "f32" + "name": "type", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "u8" } ] ], - "packet_held_item_slot": [ + "packet_chat": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "message", + "type": "string" } ] ], - "packet_bed": [ + "packet_close_window": [ "container", [ { - "name": "entityId", - "type": "i32" - }, - { - "name": "location", - "type": "position_ibi" + "name": "windowId", + "type": "u8" } ] ], - "packet_animation": [ + "packet_collect": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "collectedEntityId", + "type": "i32" }, { - "name": "animation", - "type": "u8" + "name": "collectorEntityId", + "type": "i32" } ] ], - "packet_named_entity_spawn": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "playerUUID", - "type": "string" + "name": "property", + "type": "i16" }, { - "name": "playerName", + "name": "value", + "type": "i16" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", "type": "string" }, { "name": "data", "type": [ - "array", + "buffer", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": "string" - } - ] - ] + "countType": "i16" } ] - }, + } + ] + ], + "packet_entity": [ + "container", + [ { - "name": "x", + "name": "entityId", "type": "i32" - }, + } + ] + ], + "packet_entity_destroy": [ + "container", + [ { - "name": "y", - "type": "i32" - }, + "name": "entityIds", + "type": [ + "array", + { + "countType": "i8", + "type": "i32" + } + ] + } + ] + ], + "packet_entity_effect": [ + "container", + [ { - "name": "z", + "name": "entityId", "type": "i32" }, { - "name": "yaw", + "name": "effectId", "type": "i8" }, { - "name": "pitch", + "name": "amplifier", "type": "i8" }, { - "name": "currentItem", + "name": "duration", "type": "i16" - }, - { - "name": "metadata", - "type": "entityMetadata" } ] ], - "packet_collect": [ + "packet_entity_equipment": [ "container", [ { - "name": "collectedEntityId", + "name": "entityId", "type": "i32" }, { - "name": "collectorEntityId", - "type": "i32" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_spawn_entity": [ + "packet_entity_head_rotation": [ "container", [ { "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", "type": "i32" }, { - "name": "y", - "type": "i32" - }, + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ + "container", + [ { - "name": "z", + "name": "entityId", "type": "i32" }, - { - "name": "pitch", - "type": "i8" - }, { "name": "yaw", "type": "i8" }, { - "name": "objectData", - "type": [ - "container", - [ - { - "name": "intField", - "type": "i32" - }, - { - "name": "velocityX", - "type": [ - "switch", - { - "compareTo": "intField", - "fields": { - "0": "void" - }, - "default": "i16" - } - ] - }, - { - "name": "velocityY", - "type": [ - "switch", - { - "compareTo": "intField", - "fields": { - "0": "void" - }, - "default": "i16" - } - ] - }, - { - "name": "velocityZ", - "type": [ - "switch", - { - "compareTo": "intField", - "fields": { - "0": "void" - }, - "default": "i16" - } - ] - } - ] - ] + "name": "pitch", + "type": "i8" } ] ], - "packet_spawn_entity_living": [ + "packet_entity_metadata": [ "container", [ { "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "u8" - }, - { - "name": "x", "type": "i32" }, { - "name": "y", - "type": "i32" - }, + "name": "metadata", + "type": "entityMetadata" + } + ] + ], + "packet_entity_move_look": [ + "container", + [ { - "name": "z", + "name": "entityId", "type": "i32" }, { - "name": "yaw", + "name": "dX", "type": "i8" }, { - "name": "pitch", + "name": "dY", "type": "i8" }, { - "name": "headPitch", + "name": "dZ", "type": "i8" }, { - "name": "velocity", - "type": "vec3i16" + "name": "yaw", + "type": "i8" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "pitch", + "type": "i8" } ] ], - "packet_spawn_entity_painting": [ + "packet_entity_status": [ "container", [ { "name": "entityId", - "type": "varint" - }, - { - "name": "title", - "type": "string" - }, - { - "name": "location", - "type": "position_iii" + "type": "i32" }, { - "name": "direction", - "type": "i32" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_entity_teleport": [ "container", [ { "name": "entityId", - "type": "varint" + "type": "i32" }, { "name": "x", @@ -1028,8 +1091,12 @@ "type": "i32" }, { - "name": "count", - "type": "i16" + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" } ] ], @@ -1046,170 +1113,123 @@ } ] ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "i8", - "type": "i32" - } - ] - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_rel_entity_move": [ + "packet_experience": [ "container", [ { - "name": "entityId", - "type": "i32" - }, - { - "name": "dX", - "type": "i8" + "name": "experienceBar", + "type": "f32" }, { - "name": "dY", - "type": "i8" + "name": "level", + "type": "i16" }, { - "name": "dZ", - "type": "i8" + "name": "totalExperience", + "type": "i16" } ] ], - "packet_entity_look": [ + "packet_explosion": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "x", + "type": "f32" }, { - "name": "yaw", - "type": "i8" + "name": "y", + "type": "f32" }, { - "name": "pitch", - "type": "i8" - } - ] - ], - "packet_entity_move_look": [ - "container", - [ - { - "name": "entityId", - "type": "i32" + "name": "z", + "type": "f32" }, { - "name": "dX", - "type": "i8" + "name": "radius", + "type": "f32" }, { - "name": "dY", - "type": "i8" + "name": "affectedBlockOffsets", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + } + ] + ] + } + ] }, { - "name": "dZ", - "type": "i8" + "name": "playerMotionX", + "type": "f32" }, { - "name": "yaw", - "type": "i8" + "name": "playerMotionY", + "type": "f32" }, { - "name": "pitch", - "type": "i8" + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_entity_teleport": [ + "packet_game_state_change": [ "container", [ { - "name": "entityId", - "type": "i32" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "yaw", - "type": "i8" + "name": "reason", + "type": "u8" }, { - "name": "pitch", - "type": "i8" + "name": "gameMode", + "type": "f32" } ] ], - "packet_entity_head_rotation": [ + "packet_held_item_slot": [ "container", [ { - "name": "entityId", - "type": "i32" - }, - { - "name": "headYaw", + "name": "slot", "type": "i8" } ] ], - "packet_entity_status": [ + "packet_keep_alive": [ "container", [ { - "name": "entityId", + "name": "keepAliveId", "type": "i32" - }, - { - "name": "entityStatus", - "type": "i8" } ] ], - "packet_attach_entity": [ + "packet_kick_disconnect": [ "container", [ { - "name": "entityId", - "type": "i32" - }, - { - "name": "vehicleId", - "type": "i32" - }, - { - "name": "leash", - "type": "bool" + "name": "reason", + "type": "string" } ] ], - "packet_entity_metadata": [ + "packet_login": [ "container", [ { @@ -1217,148 +1237,142 @@ "type": "i32" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_entity_effect": [ - "container", - [ - { - "name": "entityId", - "type": "i32" + "name": "gameMode", + "type": "u8" }, { - "name": "effectId", + "name": "dimension", "type": "i8" }, { - "name": "amplifier", - "type": "i8" + "name": "difficulty", + "type": "u8" }, { - "name": "duration", - "type": "i16" + "name": "maxPlayers", + "type": "u8" + }, + { + "name": "levelType", + "type": "string" } ] ], - "packet_remove_entity_effect": [ + "packet_map": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "itemDamage", + "type": "varint" }, { - "name": "effectId", - "type": "i8" + "name": "data", + "type": [ + "buffer", + { + "countType": "i16" + } + ] } ] ], - "packet_experience": [ + "packet_map_chunk": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "x", + "type": "i32" }, { - "name": "level", - "type": "i16" + "name": "z", + "type": "i32" }, { - "name": "totalExperience", - "type": "i16" + "name": "groundUp", + "type": "bool" + }, + { + "name": "bitMap", + "type": "u16" + }, + { + "name": "addBitMap", + "type": "u16" + }, + { + "name": "compressedChunkData", + "type": [ + "buffer", + { + "countType": "i32" + } + ] } ] ], - "packet_update_attributes": [ + "packet_map_chunk_bulk": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "chunkColumnCount", + "type": [ + "count", + { + "countFor": "meta", + "type": "i16" + } + ] }, { - "name": "properties", + "name": "dataLength", "type": [ - "array", + "count", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "i16", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "countFor": "compressedChunkData", + "type": "i32" } ] - } - ] - ], - "packet_map_chunk": [ - "container", - [ - { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" }, { - "name": "groundUp", + "name": "skyLightSent", "type": "bool" }, - { - "name": "bitMap", - "type": "u16" - }, - { - "name": "addBitMap", - "type": "u16" - }, { "name": "compressedChunkData", "type": [ "buffer", { - "countType": "i32" + "count": "dataLength" + } + ] + }, + { + "name": "meta", + "type": [ + "array", + { + "count": "chunkColumnCount", + "type": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "bitMap", + "type": "u16" + }, + { + "name": "addBitMap", + "type": "u16" + } + ] + ] } ] } @@ -1380,8 +1394,8 @@ "type": [ "count", { - "type": "i16", - "countFor": "records" + "countFor": "records", + "type": "i16" } ] }, @@ -1405,13 +1419,13 @@ [ { "name": "metadata", - "size": 4, - "signed": false + "signed": false, + "size": 4 }, { "name": "blockId", - "size": 12, - "signed": false + "signed": false, + "size": 12 } ] ] @@ -1427,13 +1441,13 @@ [ { "name": "z", - "size": 4, - "signed": false + "signed": false, + "size": 4 }, { "name": "x", - "size": 4, - "signed": false + "signed": false, + "size": 4 } ] ] @@ -1445,45 +1459,7 @@ } ] ], - "packet_block_change": [ - "container", - [ - { - "name": "location", - "type": "position_ibi" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "metadata", - "type": "u8" - } - ] - ], - "packet_block_action": [ - "container", - [ - { - "name": "location", - "type": "position_isi" - }, - { - "name": "byte1", - "type": "u8" - }, - { - "name": "byte2", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ], - "packet_block_break_animation": [ + "packet_named_entity_spawn": [ "container", [ { @@ -1491,172 +1467,78 @@ "type": "varint" }, { - "name": "location", - "type": "position_iii" - }, - { - "name": "destroyStage", - "type": "i8" - } - ] - ], - "packet_map_chunk_bulk": [ - "container", - [ - { - "name": "chunkColumnCount", - "type": [ - "count", - { - "type": "i16", - "countFor": "meta" - } - ] - }, - { - "name": "dataLength", - "type": [ - "count", - { - "type": "i32", - "countFor": "compressedChunkData" - } - ] - }, - { - "name": "skyLightSent", - "type": "bool" + "name": "playerUUID", + "type": "string" }, { - "name": "compressedChunkData", - "type": [ - "buffer", - { - "count": "dataLength" - } - ] + "name": "playerName", + "type": "string" }, { - "name": "meta", + "name": "data", "type": [ "array", { - "count": "chunkColumnCount", + "countType": "varint", "type": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" + "name": "name", + "type": "string" }, { - "name": "bitMap", - "type": "u16" + "name": "value", + "type": "string" }, { - "name": "addBitMap", - "type": "u16" + "name": "signature", + "type": "string" } ] ] } ] - } - ] - ], - "packet_explosion": [ - "container", - [ + }, { "name": "x", - "type": "f32" + "type": "i32" }, { "name": "y", - "type": "f32" + "type": "i32" }, { "name": "z", - "type": "f32" - }, - { - "name": "radius", - "type": "f32" + "type": "i32" }, { - "name": "affectedBlockOffsets", - "type": [ - "array", - { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "x", - "type": "i8" - }, - { - "name": "y", - "type": "i8" - }, - { - "name": "z", - "type": "i8" - } - ] - ] - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "playerMotionX", - "type": "f32" + "name": "pitch", + "type": "i8" }, { - "name": "playerMotionY", - "type": "f32" + "name": "currentItem", + "type": "i16" }, { - "name": "playerMotionZ", - "type": "f32" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_world_event": [ + "packet_named_sound_effect": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position_ibi" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" - } - ] - ], - "packet_named_sound_effect": [ - "container", - [ - { - "name": "soundName", - "type": "string" - }, - { - "name": "x", + "name": "soundName", + "type": "string" + }, + { + "name": "x", "type": "i32" }, { @@ -1677,82 +1559,12 @@ } ] ], - "packet_world_particles": [ - "container", - [ - { - "name": "particleName", - "type": "string" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, - { - "name": "particles", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ - "container", - [ - { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", - "type": "f32" - } - ] - ], - "packet_spawn_entity_weather": [ + "packet_open_sign_entity": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" + "name": "location", + "type": "position_iii" } ] ], @@ -1785,309 +1597,186 @@ "switch", { "compareTo": "inventoryType", + "default": "void", "fields": { "11": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_close_window": [ + "packet_player_info": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "playerName", + "type": "string" + }, + { + "name": "online", + "type": "bool" + }, + { + "name": "ping", + "type": "i16" } ] ], - "packet_set_slot": [ + "packet_position": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "slot", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "item", - "type": "slot" + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_rel_entity_move": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "i32" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "dX", + "type": "i8" + }, + { + "name": "dY", + "type": "i8" + }, + { + "name": "dZ", + "type": "i8" } ] ], - "packet_craft_progress_bar": [ + "packet_remove_entity_effect": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "property", - "type": "i16" + "name": "entityId", + "type": "i32" }, { - "name": "value", - "type": "i16" + "name": "effectId", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_respawn": [ "container", [ { - "name": "windowId", + "name": "dimension", + "type": "i32" + }, + { + "name": "difficulty", "type": "u8" }, { - "name": "action", - "type": "i16" + "name": "gamemode", + "type": "u8" }, { - "name": "accepted", - "type": "bool" + "name": "levelType", + "type": "string" } ] ], - "packet_update_sign": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "location", - "type": "position_isi" + "name": "position", + "type": "i8" }, { - "name": "text1", + "name": "name", "type": "string" - }, + } + ] + ], + "packet_scoreboard_objective": [ + "container", + [ { - "name": "text2", + "name": "name", "type": "string" }, { - "name": "text3", + "name": "displayText", "type": "string" }, { - "name": "text4", - "type": "string" + "name": "action", + "type": "i8" } ] ], - "packet_map": [ + "packet_scoreboard_score": [ "container", [ { - "name": "itemDamage", - "type": "varint" + "name": "itemName", + "type": "string" }, { - "name": "data", + "name": "action", + "type": "i8" + }, + { + "name": "scoreName", "type": [ - "buffer", + "switch", { - "countType": "i16" + "compareTo": "action", + "default": "string", + "fields": { + "1": "void" + } + } + ] + }, + { + "name": "value", + "type": [ + "switch", + { + "compareTo": "action", + "default": "i32", + "fields": { + "1": "void" + } } ] } ] ], - "packet_tile_entity_data": [ - "container", - [ - { - "name": "location", - "type": "position_isi" - }, - { - "name": "action", - "type": "u8" - }, - { - "name": "nbtData", - "type": "compressedNbt" - } - ] - ], - "packet_open_sign_entity": [ - "container", - [ - { - "name": "location", - "type": "position_iii" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "packet_player_info": [ - "container", - [ - { - "name": "playerName", - "type": "string" - }, - { - "name": "online", - "type": "bool" - }, - { - "name": "ping", - "type": "i16" - } - ] - ], - "packet_abilities": [ - "container", - [ - { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_scoreboard_objective": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "displayText", - "type": "string" - }, - { - "name": "action", - "type": "i8" - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "i8" - }, - { - "name": "scoreName", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "string" - } - ] - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "i32" - } - ] - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ - { - "name": "position", - "type": "i8" - }, - { - "name": "name", - "type": "string" - } - ] - ], - "packet_scoreboard_team": [ + "packet_scoreboard_team": [ "container", [ { @@ -2104,11 +1793,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2118,11 +1807,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2132,11 +1821,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2146,11 +1835,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2160,6 +1849,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -2182,352 +1872,613 @@ "type": "string" } ] - }, - "default": "void" + } } ] } ] ], - "packet_custom_payload": [ + "packet_set_slot": [ "container", [ { - "name": "channel", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "data", - "type": [ - "buffer", - { - "countType": "i16" - } - ] - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ + "name": "slot", + "type": "i16" + }, { - "name": "reason", - "type": "string" + "name": "item", + "type": "slot" } ] ], - "packet": [ + "packet_spawn_entity": [ "container", [ { - "name": "name", + "name": "entityId", + "type": "varint" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "keep_alive", - "0x01": "login", - "0x02": "chat", - "0x03": "update_time", - "0x04": "entity_equipment", - "0x05": "spawn_position", - "0x06": "update_health", - "0x07": "respawn", - "0x08": "position", - "0x09": "held_item_slot", - "0x0a": "bed", - "0x0b": "animation", - "0x0c": "named_entity_spawn", - "0x0d": "collect", - "0x0e": "spawn_entity", - "0x0f": "spawn_entity_living", - "0x10": "spawn_entity_painting", - "0x11": "spawn_entity_experience_orb", - "0x12": "entity_velocity", - "0x13": "entity_destroy", - "0x14": "entity", - "0x15": "rel_entity_move", - "0x16": "entity_look", - "0x17": "entity_move_look", - "0x18": "entity_teleport", - "0x19": "entity_head_rotation", - "0x1a": "entity_status", - "0x1b": "attach_entity", - "0x1c": "entity_metadata", - "0x1d": "entity_effect", - "0x1e": "remove_entity_effect", - "0x1f": "experience", - "0x20": "update_attributes", - "0x21": "map_chunk", - "0x22": "multi_block_change", - "0x23": "block_change", - "0x24": "block_action", - "0x25": "block_break_animation", - "0x26": "map_chunk_bulk", - "0x27": "explosion", - "0x28": "world_event", - "0x29": "named_sound_effect", - "0x2a": "world_particles", - "0x2b": "game_state_change", - "0x2c": "spawn_entity_weather", - "0x2d": "open_window", - "0x2e": "close_window", - "0x2f": "set_slot", - "0x30": "window_items", - "0x31": "craft_progress_bar", - "0x32": "transaction", - "0x33": "update_sign", - "0x34": "map", - "0x35": "tile_entity_data", - "0x36": "open_sign_entity", - "0x37": "statistics", - "0x38": "player_info", - "0x39": "abilities", - "0x3a": "tab_complete", - "0x3b": "scoreboard_objective", - "0x3c": "scoreboard_score", - "0x3d": "scoreboard_display_objective", - "0x3e": "scoreboard_team", - "0x3f": "custom_payload", - "0x40": "kick_disconnect" + "container", + [ + { + "name": "intField", + "type": "i32" + }, + { + "name": "velocityX", + "type": [ + "switch", + { + "compareTo": "intField", + "default": "i16", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "velocityY", + "type": [ + "switch", + { + "compareTo": "intField", + "default": "i16", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "velocityZ", + "type": [ + "switch", + { + "compareTo": "intField", + "default": "i16", + "fields": { + "0": "void" + } + } + ] } - } + ] ] + } + ] + ], + "packet_spawn_entity_experience_orb": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "keep_alive": "packet_keep_alive", - "login": "packet_login", - "chat": "packet_chat", - "update_time": "packet_update_time", - "entity_equipment": "packet_entity_equipment", - "spawn_position": "packet_spawn_position", - "update_health": "packet_update_health", - "respawn": "packet_respawn", - "position": "packet_position", - "held_item_slot": "packet_held_item_slot", - "bed": "packet_bed", - "animation": "packet_animation", - "named_entity_spawn": "packet_named_entity_spawn", - "collect": "packet_collect", - "spawn_entity": "packet_spawn_entity", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "entity_velocity": "packet_entity_velocity", - "entity_destroy": "packet_entity_destroy", - "entity": "packet_entity", - "rel_entity_move": "packet_rel_entity_move", - "entity_look": "packet_entity_look", - "entity_move_look": "packet_entity_move_look", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_status": "packet_entity_status", - "attach_entity": "packet_attach_entity", - "entity_metadata": "packet_entity_metadata", - "entity_effect": "packet_entity_effect", - "remove_entity_effect": "packet_remove_entity_effect", - "experience": "packet_experience", - "update_attributes": "packet_update_attributes", - "map_chunk": "packet_map_chunk", - "multi_block_change": "packet_multi_block_change", - "block_change": "packet_block_change", - "block_action": "packet_block_action", - "block_break_animation": "packet_block_break_animation", - "map_chunk_bulk": "packet_map_chunk_bulk", - "explosion": "packet_explosion", - "world_event": "packet_world_event", - "named_sound_effect": "packet_named_sound_effect", - "world_particles": "packet_world_particles", - "game_state_change": "packet_game_state_change", - "spawn_entity_weather": "packet_spawn_entity_weather", - "open_window": "packet_open_window", - "close_window": "packet_close_window", - "set_slot": "packet_set_slot", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "transaction": "packet_transaction", - "update_sign": "packet_update_sign", - "map": "packet_map", - "tile_entity_data": "packet_tile_entity_data", - "open_sign_entity": "packet_open_sign_entity", - "statistics": "packet_statistics", - "player_info": "packet_player_info", - "abilities": "packet_abilities", - "tab_complete": "packet_tab_complete", - "scoreboard_objective": "packet_scoreboard_objective", - "scoreboard_score": "packet_scoreboard_score", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "scoreboard_team": "packet_scoreboard_team", - "custom_payload": "packet_custom_payload", - "kick_disconnect": "packet_kick_disconnect" - } - } - ] + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "count", + "type": "i16" } ] - ] - } - }, - "toServer": { - "types": { - "packet_keep_alive": [ + ], + "packet_spawn_entity_living": [ "container", [ { - "name": "keepAliveId", + "name": "entityId", + "type": "varint" + }, + { + "name": "type", + "type": "u8" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "velocity", + "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_chat": [ + "packet_spawn_entity_painting": [ "container", [ { - "name": "message", + "name": "entityId", + "type": "varint" + }, + { + "name": "title", "type": "string" + }, + { + "name": "location", + "type": "position_iii" + }, + { + "name": "direction", + "type": "i32" } ] ], - "packet_use_entity": [ + "packet_spawn_entity_weather": [ "container", [ { - "name": "target", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "mouse", + "name": "type", "type": "i8" }, { "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position_iii" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": "string" } ] + } + ] + ], + "packet_tile_entity_data": [ + "container", + [ + { + "name": "location", + "type": "position_isi" }, { - "name": "y", + "name": "action", + "type": "u8" + }, + { + "name": "nbtData", + "type": "compressedNbt" + } + ] + ], + "packet_transaction": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_update_attributes": [ + "container", + [ + { + "name": "entityId", + "type": "i32" + }, + { + "name": "properties", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "i16", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] } ] + } + ] + ], + "packet_update_health": [ + "container", + [ + { + "name": "health", + "type": "f32" }, { - "name": "z", + "name": "food", + "type": "i16" + }, + { + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position_isi" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_time": [ + "container", + [ + { + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "items", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" + "countType": "i16", + "type": "slot" } ] } ] ], - "packet_flying": [ + "packet_world_event": [ "container", [ { - "name": "onGround", + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position_ibi" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", "type": "bool" } ] ], - "packet_position": [ + "packet_world_particles": [ "container", [ { - "name": "x", - "type": "f64" + "name": "particleName", + "type": "string" }, { - "name": "stance", - "type": "f64" + "name": "x", + "type": "f32" }, { "name": "y", - "type": "f64" + "type": "f32" }, { "name": "z", - "type": "f64" + "type": "f32" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_look": [ - "container", - [ + "name": "offsetX", + "type": "f32" + }, { - "name": "yaw", + "name": "offsetY", "type": "f32" }, { - "name": "pitch", + "name": "offsetZ", "type": "f32" }, { - "name": "onGround", - "type": "bool" + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" } ] - ], - "packet_position_look": [ + ] + } + }, + "toServer": { + "types": { + "packet": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "stance", - "type": "f64" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "keep_alive", + "0x01": "chat", + "0x02": "use_entity", + "0x03": "flying", + "0x04": "position", + "0x05": "look", + "0x06": "position_look", + "0x07": "block_dig", + "0x08": "block_place", + "0x09": "held_item_slot", + "0x0a": "arm_animation", + "0x0b": "entity_action", + "0x0c": "steer_vehicle", + "0x0d": "close_window", + "0x0e": "window_click", + "0x0f": "transaction", + "0x10": "set_creative_slot", + "0x11": "enchant_item", + "0x12": "update_sign", + "0x13": "abilities", + "0x14": "tab_complete", + "0x15": "settings", + "0x16": "client_command", + "0x17": "custom_payload" + }, + "type": "varint" + } + ] }, { - "name": "y", - "type": "f64" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat": "packet_chat", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "custom_payload": "packet_custom_payload", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "look": "packet_look", + "position": "packet_position", + "position_look": "packet_position_look", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "transaction": "packet_transaction", + "update_sign": "packet_update_sign", + "use_entity": "packet_use_entity", + "window_click": "packet_window_click" + } + } + ] + } + ] + ], + "packet_abilities": [ + "container", + [ { - "name": "z", - "type": "f64" + "name": "flags", + "type": "i8" }, { - "name": "yaw", + "name": "flyingSpeed", "type": "f32" }, { - "name": "pitch", + "name": "walkingSpeed", "type": "f32" + } + ] + ], + "packet_arm_animation": [ + "container", + [ + { + "name": "entityId", + "type": "i32" }, { - "name": "onGround", - "type": "bool" + "name": "animation", + "type": "i8" } ] ], @@ -2577,24 +2528,60 @@ } ] ], - "packet_held_item_slot": [ + "packet_chat": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "message", + "type": "string" } ] ], - "packet_arm_animation": [ + "packet_client_command": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "payload", + "type": "i8" + } + ] + ], + "packet_close_window": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" }, { - "name": "animation", + "name": "data", + "type": [ + "buffer", + { + "countType": "i16" + } + ] + } + ] + ], + "packet_enchant_item": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "enchantment", "type": "i8" } ] @@ -2616,78 +2603,104 @@ } ] ], - "packet_steer_vehicle": [ + "packet_flying": [ "container", [ { - "name": "sideways", - "type": "f32" - }, - { - "name": "forward", - "type": "f32" - }, - { - "name": "jump", + "name": "onGround", "type": "bool" - }, + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "unmount", - "type": "bool" + "name": "slotId", + "type": "i16" } ] ], - "packet_close_window": [ + "packet_keep_alive": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "keepAliveId", + "type": "i32" } ] ], - "packet_window_click": [ + "packet_look": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" }, { - "name": "slot", - "type": "i16" + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_position": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "mouseButton", - "type": "i8" + "name": "stance", + "type": "f64" }, { - "name": "action", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "mode", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "item", - "type": "slot" + "name": "onGround", + "type": "bool" } ] ], - "packet_transaction": [ + "packet_position_look": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "action", - "type": "i16" + "name": "stance", + "type": "f64" }, { - "name": "accepted", + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", "type": "bool" } ] @@ -2705,58 +2718,53 @@ } ] ], - "packet_enchant_item": [ + "packet_settings": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "locale", + "type": "string" }, { - "name": "enchantment", + "name": "viewDistance", "type": "i8" - } - ] - ], - "packet_update_sign": [ - "container", - [ - { - "name": "location", - "type": "position_isi" }, { - "name": "text1", - "type": "string" + "name": "chatFlags", + "type": "i8" }, { - "name": "text2", - "type": "string" + "name": "chatColors", + "type": "bool" }, { - "name": "text3", - "type": "string" + "name": "difficulty", + "type": "u8" }, { - "name": "text4", - "type": "string" + "name": "showCape", + "type": "bool" } ] ], - "packet_abilities": [ + "packet_steer_vehicle": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "sideways", + "type": "f32" }, { - "name": "flyingSpeed", + "name": "forward", "type": "f32" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "jump", + "type": "bool" + }, + { + "name": "unmount", + "type": "bool" } ] ], @@ -2769,136 +2777,128 @@ } ] ], - "packet_settings": [ + "packet_transaction": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", + "name": "windowId", "type": "i8" }, { - "name": "chatColors", - "type": "bool" - }, - { - "name": "difficulty", - "type": "u8" + "name": "action", + "type": "i16" }, { - "name": "showCape", + "name": "accepted", "type": "bool" } ] ], - "packet_client_command": [ + "packet_update_sign": [ "container", [ { - "name": "payload", - "type": "i8" + "name": "location", + "type": "position_isi" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" } ] ], - "packet_custom_payload": [ + "packet_use_entity": [ "container", [ { - "name": "channel", - "type": "string" + "name": "target", + "type": "i32" }, { - "name": "data", + "name": "mouse", + "type": "i8" + }, + { + "name": "x", "type": [ - "buffer", + "switch", { - "countType": "i16" + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } } ] - } - ] - ], - "packet": [ - "container", - [ + }, { - "name": "name", + "name": "y", "type": [ - "mapper", + "switch", { - "type": "varint", - "mappings": { - "0x00": "keep_alive", - "0x01": "chat", - "0x02": "use_entity", - "0x03": "flying", - "0x04": "position", - "0x05": "look", - "0x06": "position_look", - "0x07": "block_dig", - "0x08": "block_place", - "0x09": "held_item_slot", - "0x0a": "arm_animation", - "0x0b": "entity_action", - "0x0c": "steer_vehicle", - "0x0d": "close_window", - "0x0e": "window_click", - "0x0f": "transaction", - "0x10": "set_creative_slot", - "0x11": "enchant_item", - "0x12": "update_sign", - "0x13": "abilities", - "0x14": "tab_complete", - "0x15": "settings", - "0x16": "client_command", - "0x17": "custom_payload" + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" } } ] }, { - "name": "params", + "name": "z", "type": [ "switch", { - "compareTo": "name", + "compareTo": "mouse", + "default": "void", "fields": { - "keep_alive": "packet_keep_alive", - "chat": "packet_chat", - "use_entity": "packet_use_entity", - "flying": "packet_flying", - "position": "packet_position", - "look": "packet_look", - "position_look": "packet_position_look", - "block_dig": "packet_block_dig", - "block_place": "packet_block_place", - "held_item_slot": "packet_held_item_slot", - "arm_animation": "packet_arm_animation", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "close_window": "packet_close_window", - "window_click": "packet_window_click", - "transaction": "packet_transaction", - "set_creative_slot": "packet_set_creative_slot", - "enchant_item": "packet_enchant_item", - "update_sign": "packet_update_sign", - "abilities": "packet_abilities", - "tab_complete": "packet_tab_complete", - "settings": "packet_settings", - "client_command": "packet_client_command", - "custom_payload": "packet_custom_payload" + "2": "f32" } } ] } ] + ], + "packet_window_click": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] ] } } diff --git a/data/pc/1.8/protocol.json b/data/pc/1.8/protocol.json index 095ace0a9..a9382818a 100644 --- a/data/pc/1.8/protocol.json +++ b/data/pc/1.8/protocol.json @@ -1,116 +1,55 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 127, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ - "container", + "anon": true, + "type": [ + "bitfield", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "type", + "signed": false, + "size": 3 }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "key", + "signed": false, + "size": 5 } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -160,44 +99,105 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 127, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ - "bitfield", + "compareTo": "blockId", + "default": [ + "container", [ { - "name": "type", - "size": 3, - "signed": false + "name": "itemCount", + "type": "i8" }, { - "name": "key", - "size": 5, - "signed": false + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -210,8 +210,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -231,36 +231,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -269,11 +239,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -284,38 +254,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -324,11 +306,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -339,21 +321,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -364,6 +338,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -372,11 +359,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -387,13 +374,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -401,6 +401,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -449,16 +493,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -467,13 +506,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -484,28 +521,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -530,6 +552,21 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -538,11 +575,83 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } + "0x00": "keep_alive", + "0x01": "login", + "0x02": "chat", + "0x03": "update_time", + "0x04": "entity_equipment", + "0x05": "spawn_position", + "0x06": "update_health", + "0x07": "respawn", + "0x08": "position", + "0x09": "held_item_slot", + "0x0a": "bed", + "0x0b": "animation", + "0x0c": "named_entity_spawn", + "0x0d": "collect", + "0x0e": "spawn_entity", + "0x0f": "spawn_entity_living", + "0x10": "spawn_entity_painting", + "0x11": "spawn_entity_experience_orb", + "0x12": "entity_velocity", + "0x13": "entity_destroy", + "0x14": "entity", + "0x15": "rel_entity_move", + "0x16": "entity_look", + "0x17": "entity_move_look", + "0x18": "entity_teleport", + "0x19": "entity_head_rotation", + "0x1a": "entity_status", + "0x1b": "attach_entity", + "0x1c": "entity_metadata", + "0x1d": "entity_effect", + "0x1e": "remove_entity_effect", + "0x1f": "experience", + "0x20": "update_attributes", + "0x21": "map_chunk", + "0x22": "multi_block_change", + "0x23": "block_change", + "0x24": "block_action", + "0x25": "block_break_animation", + "0x26": "map_chunk_bulk", + "0x27": "explosion", + "0x28": "world_event", + "0x29": "named_sound_effect", + "0x2a": "world_particles", + "0x2b": "game_state_change", + "0x2c": "spawn_entity_weather", + "0x2d": "open_window", + "0x2e": "close_window", + "0x2f": "set_slot", + "0x30": "window_items", + "0x31": "craft_progress_bar", + "0x32": "transaction", + "0x33": "update_sign", + "0x34": "map", + "0x35": "tile_entity_data", + "0x36": "open_sign_entity", + "0x37": "statistics", + "0x38": "player_info", + "0x39": "abilities", + "0x3a": "tab_complete", + "0x3b": "scoreboard_objective", + "0x3c": "scoreboard_score", + "0x3d": "scoreboard_display_objective", + "0x3e": "scoreboard_team", + "0x3f": "custom_payload", + "0x40": "kick_disconnect", + "0x41": "difficulty", + "0x42": "combat_event", + "0x43": "camera", + "0x44": "world_border", + "0x45": "title", + "0x46": "set_compression", + "0x47": "playerlist_header", + "0x48": "resource_pack_send", + "0x49": "update_entity_nbt" + }, + "type": "varint" } ] }, @@ -553,89 +662,134 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } - } - ] - } - ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "varint" + "abilities": "packet_abilities", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "custom_payload": "packet_custom_payload", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "map_chunk_bulk": "packet_map_chunk_bulk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "scoreboard_team": "packet_scoreboard_team", + "set_compression": "packet_set_compression", + "set_slot": "packet_set_slot", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "update_attributes": "packet_update_attributes", + "update_entity_nbt": "packet_update_entity_nbt", + "update_health": "packet_update_health", + "update_sign": "packet_update_sign", + "update_time": "packet_update_time", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_login": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "i32" - }, - { - "name": "gameMode", - "type": "u8" - }, - { - "name": "dimension", + "name": "flags", "type": "i8" }, { - "name": "difficulty", - "type": "u8" - }, - { - "name": "maxPlayers", - "type": "u8" - }, - { - "name": "levelType", - "type": "string" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "reducedDebugInfo", - "type": "bool" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_chat": [ + "packet_animation": [ "container", [ { - "name": "message", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "position", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_update_time": [ + "packet_attach_entity": [ "container", [ { - "name": "age", - "type": "i64" + "name": "entityId", + "type": "i32" }, { - "name": "time", - "type": "i64" + "name": "vehicleId", + "type": "i32" + }, + { + "name": "leash", + "type": "bool" } ] ], - "packet_entity_equipment": [ + "packet_bed": [ "container", [ { @@ -643,331 +797,213 @@ "type": "varint" }, { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "slot" + "name": "location", + "type": "position" } ] ], - "packet_spawn_position": [ + "packet_block_action": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_health": [ - "container", - [ + }, { - "name": "health", - "type": "f32" + "name": "byte1", + "type": "u8" }, { - "name": "food", - "type": "varint" + "name": "byte2", + "type": "u8" }, { - "name": "foodSaturation", - "type": "f32" + "name": "blockId", + "type": "varint" } ] ], - "packet_respawn": [ + "packet_block_break_animation": [ "container", [ { - "name": "dimension", - "type": "i32" - }, - { - "name": "difficulty", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "gamemode", - "type": "u8" + "name": "location", + "type": "position" }, { - "name": "levelType", - "type": "string" + "name": "destroyStage", + "type": "i8" } ] ], - "packet_position": [ + "packet_block_change": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "location", + "type": "position" }, { - "name": "flags", - "type": "i8" + "name": "type", + "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_camera": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "cameraId", + "type": "varint" } ] ], - "packet_bed": [ + "packet_chat": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "message", + "type": "string" }, { - "name": "location", - "type": "position" + "name": "position", + "type": "i8" } ] ], - "packet_animation": [ + "packet_close_window": [ "container", [ { - "name": "entityId", + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", "type": "varint" }, { - "name": "animation", - "type": "u8" + "name": "collectorEntityId", + "type": "varint" } ] ], - "packet_named_entity_spawn": [ + "packet_combat_event": [ "container", [ { - "name": "entityId", + "name": "event", "type": "varint" }, { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "currentItem", - "type": "i16" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_collect": [ - "container", - [ - { - "name": "collectedEntityId", - "type": "varint" + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] }, - { - "name": "collectorEntityId", - "type": "varint" - } - ] - ], - "packet_spawn_entity": [ - "container", - [ { "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "i32", + "2": "i32" + } + } + ] }, { - "name": "velocity", + "name": "message", "type": [ "switch", { - "compareTo": "objectData", + "compareTo": "event", + "default": "void", "fields": { - "0": "void" - }, - "default": "vec3i16" + "2": "string" + } } ] } ] ], - "packet_spawn_entity_living": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", + "name": "windowId", "type": "u8" }, { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "velocity", - "type": "vec3i16" + "name": "property", + "type": "i16" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "value", + "type": "i16" } ] ], - "packet_spawn_entity_painting": [ + "packet_custom_payload": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "title", + "name": "channel", "type": "string" }, { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "u8" + "name": "data", + "type": "restBuffer" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_difficulty": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "count", - "type": "i16" + "name": "difficulty", + "type": "u8" } ] ], - "packet_entity_velocity": [ + "packet_entity": [ "container", [ { "name": "entityId", "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" } ] ], @@ -986,16 +1022,32 @@ } ] ], - "packet_entity": [ + "packet_entity_effect": [ "container", [ { "name": "entityId", "type": "varint" + }, + { + "name": "effectId", + "type": "i8" + }, + { + "name": "amplifier", + "type": "i8" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "bool" } ] ], - "packet_rel_entity_move": [ + "packet_entity_equipment": [ "container", [ { @@ -1003,20 +1055,25 @@ "type": "varint" }, { - "name": "dX", - "type": "i8" + "name": "slot", + "type": "i16" }, { - "name": "dY", - "type": "i8" - }, + "name": "item", + "type": "slot" + } + ] + ], + "packet_entity_head_rotation": [ + "container", + [ { - "name": "dZ", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "headYaw", + "type": "i8" } ] ], @@ -1041,6 +1098,19 @@ } ] ], + "packet_entity_metadata": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "metadata", + "type": "entityMetadata" + } + ] + ], "packet_entity_move_look": [ "container", [ @@ -1074,40 +1144,20 @@ } ] ], - "packet_entity_teleport": [ + "packet_entity_status": [ "container", [ { "name": "entityId", - "type": "varint" - }, - { - "name": "x", "type": "i32" }, { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "entityStatus", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity_head_rotation": [ + "packet_entity_teleport": [ "container", [ { @@ -1115,80 +1165,32 @@ "type": "varint" }, { - "name": "headYaw", - "type": "i8" - } - ] - ], - "packet_entity_status": [ - "container", - [ - { - "name": "entityId", + "name": "x", "type": "i32" }, { - "name": "entityStatus", - "type": "i8" - } - ] - ], - "packet_attach_entity": [ - "container", - [ - { - "name": "entityId", + "name": "y", "type": "i32" }, { - "name": "vehicleId", + "name": "z", "type": "i32" }, { - "name": "leash", - "type": "bool" - } - ] - ], - "packet_entity_metadata": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_entity_effect": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "effectId", + "name": "yaw", "type": "i8" }, { - "name": "amplifier", + "name": "pitch", "type": "i8" }, { - "name": "duration", - "type": "varint" - }, - { - "name": "hideParticles", + "name": "onGround", "type": "bool" } ] ], - "packet_remove_entity_effect": [ + "packet_entity_velocity": [ "container", [ { @@ -1196,8 +1198,8 @@ "type": "varint" }, { - "name": "effectId", - "type": "i8" + "name": "velocity", + "type": "vec3i16" } ] ], @@ -1218,15 +1220,27 @@ } ] ], - "packet_update_attributes": [ + "packet_explosion": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "f32" }, { - "name": "properties", + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "radius", + "type": "f32" + }, + { + "name": "affectedBlockOffsets", "type": [ "array", { @@ -1235,89 +1249,122 @@ "container", [ { - "name": "key", - "type": "string" + "name": "x", + "type": "i8" }, { - "name": "value", - "type": "f64" + "name": "y", + "type": "i8" }, { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] + "name": "z", + "type": "i8" } ] ] } ] + }, + { + "name": "playerMotionX", + "type": "f32" + }, + { + "name": "playerMotionY", + "type": "f32" + }, + { + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_map_chunk": [ + "packet_game_state_change": [ "container", [ { - "name": "x", - "type": "i32" + "name": "reason", + "type": "u8" }, { - "name": "z", + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "varint" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "string" + } + ] + ], + "packet_login": [ + "container", + [ + { + "name": "entityId", "type": "i32" }, { - "name": "groundUp", - "type": "bool" + "name": "gameMode", + "type": "u8" }, { - "name": "bitMap", - "type": "u16" + "name": "dimension", + "type": "i8" }, { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "difficulty", + "type": "u8" + }, + { + "name": "maxPlayers", + "type": "u8" + }, + { + "name": "levelType", + "type": "string" + }, + { + "name": "reducedDebugInfo", + "type": "bool" } ] ], - "packet_multi_block_change": [ + "packet_map": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "itemDamage", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "scale", + "type": "i8" }, { - "name": "records", + "name": "icons", "type": [ "array", { @@ -1326,72 +1373,112 @@ "container", [ { - "name": "horizontalPos", - "type": "u8" + "name": "directionAndType", + "type": "i8" }, { - "name": "y", - "type": "u8" + "name": "x", + "type": "i8" }, { - "name": "blockId", - "type": "varint" + "name": "z", + "type": "i8" } ] ] } ] - } - ] - ], - "packet_block_change": [ - "container", - [ + }, { - "name": "location", - "type": "position" + "name": "columns", + "type": "i8" }, { - "name": "type", - "type": "varint" - } - ] - ], - "packet_block_action": [ - "container", - [ - { - "name": "location", - "type": "position" + "name": "rows", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "i8", + "fields": { + "0": "void" + } + } + ] }, { - "name": "byte1", - "type": "u8" + "name": "x", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "i8", + "fields": { + "0": "void" + } + } + ] }, { - "name": "byte2", - "type": "u8" + "name": "y", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "i8", + "fields": { + "0": "void" + } + } + ] }, { - "name": "blockId", - "type": "varint" + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } + } + ] } ] ], - "packet_block_break_animation": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "location", - "type": "position" + "name": "z", + "type": "i32" }, { - "name": "destroyStage", - "type": "i8" + "name": "groundUp", + "type": "bool" + }, + { + "name": "bitMap", + "type": "u16" + }, + { + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], @@ -1434,83 +1521,83 @@ } ] ], - "packet_explosion": [ + "packet_multi_block_change": [ "container", [ { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" + "name": "chunkX", + "type": "i32" }, { - "name": "radius", - "type": "f32" + "name": "chunkZ", + "type": "i32" }, { - "name": "affectedBlockOffsets", + "name": "records", "type": [ "array", { - "countType": "i32", + "countType": "varint", "type": [ "container", [ { - "name": "x", - "type": "i8" + "name": "horizontalPos", + "type": "u8" }, { "name": "y", - "type": "i8" + "type": "u8" }, { - "name": "z", - "type": "i8" + "name": "blockId", + "type": "varint" } ] ] } ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, - { - "name": "playerMotionY", - "type": "f32" - }, - { - "name": "playerMotionZ", - "type": "f32" } ] ], - "packet_world_event": [ + "packet_named_entity_spawn": [ "container", [ { - "name": "effectId", + "name": "entityId", + "type": "varint" + }, + { + "name": "playerUUID", + "type": "UUID" + }, + { + "name": "x", "type": "i32" }, { - "name": "location", - "type": "position" + "name": "y", + "type": "i32" }, { - "name": "data", + "name": "z", "type": "i32" }, { - "name": "global", - "type": "bool" + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "currentItem", + "type": "i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], @@ -1543,1462 +1630,1329 @@ } ] ], - "packet_world_particles": [ + "packet_open_sign_entity": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_open_window": [ + "container", + [ { - "name": "offsetY", - "type": "f32" + "name": "windowId", + "type": "u8" }, { - "name": "offsetZ", - "type": "f32" + "name": "inventoryType", + "type": "string" }, { - "name": "particleData", - "type": "f32" + "name": "windowTitle", + "type": "string" }, { - "name": "particles", - "type": "i32" + "name": "slotCount", + "type": "u8" }, { - "name": "data", + "name": "entityId", "type": [ "switch", { - "compareTo": "particleId", + "compareTo": "inventoryType", + "default": "void", "fields": { - "36": [ - "array", - { - "count": 2, - "type": "varint" - } - ], - "37": [ - "array", - { - "count": 1, - "type": "varint" - } - ], - "38": [ - "array", - { - "count": 1, - "type": "varint" - } - ] - }, - "default": "void" + "EntityHorse": "i32" + } } ] } ] ], - "packet_game_state_change": [ + "packet_player_info": [ "container", [ { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", - "type": "f32" + "name": "action", + "type": [ + "mapper", + { + "mappings": { + "0": "add_player", + "1": "update_game_mode", + "2": "update_latency", + "3": "update_display_name", + "4": "remove_player" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "../action", + "fields": { + "add_player": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + }, + { + "name": "gamemode", + "type": "varint" + }, + { + "name": "ping", + "type": "varint" + }, + { + "name": "displayName", + "type": [ + "option", + "string" + ] + } + ] + ], + "remove_player": "void", + "update_display_name": [ + "container", + [ + { + "name": "displayName", + "type": [ + "option", + "string" + ] + } + ] + ], + "update_game_mode": [ + "container", + [ + { + "name": "gamemode", + "type": "varint" + } + ] + ], + "update_latency": [ + "container", + [ + { + "name": "ping", + "type": "varint" + } + ] + ] + } + } + ] + } + ] + ] + } + ] } ] ], - "packet_spawn_entity_weather": [ + "packet_playerlist_header": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "header", + "type": "string" }, { - "name": "type", - "type": "i8" - }, + "name": "footer", + "type": "string" + } + ] + ], + "packet_position": [ + "container", + [ { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "flags", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_rel_entity_move": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "inventoryType", - "type": "string" + "name": "dX", + "type": "i8" }, { - "name": "windowTitle", - "type": "string" + "name": "dY", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "dZ", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_close_window": [ + "packet_remove_entity_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "effectId", + "type": "i8" } ] ], - "packet_set_slot": [ + "packet_resource_pack_send": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "slot", - "type": "i16" + "name": "url", + "type": "string" }, { - "name": "item", - "type": "slot" + "name": "hash", + "type": "string" } ] ], - "packet_window_items": [ + "packet_respawn": [ "container", [ { - "name": "windowId", + "name": "dimension", + "type": "i32" + }, + { + "name": "difficulty", "type": "u8" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "gamemode", + "type": "u8" + }, + { + "name": "levelType", + "type": "string" } ] ], - "packet_craft_progress_bar": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "property", - "type": "i16" + "name": "position", + "type": "i8" }, { - "name": "value", - "type": "i16" + "name": "name", + "type": "string" } ] ], - "packet_transaction": [ + "packet_scoreboard_objective": [ "container", [ { - "name": "windowId", - "type": "i8" - }, + "name": "name", + "type": "string" + }, { "name": "action", - "type": "i16" + "type": "i8" }, { - "name": "accepted", - "type": "bool" + "name": "displayText", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "type", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] } ] ], - "packet_update_sign": [ + "packet_scoreboard_score": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "text1", + "name": "itemName", "type": "string" }, { - "name": "text2", - "type": "string" + "name": "action", + "type": "varint" }, { - "name": "text3", + "name": "scoreName", "type": "string" }, { - "name": "text4", - "type": "string" + "name": "value", + "type": [ + "switch", + { + "compareTo": "action", + "default": "varint", + "fields": { + "1": "void" + } + } + ] } ] ], - "packet_map": [ + "packet_scoreboard_team": [ "container", [ { - "name": "itemDamage", - "type": "varint" + "name": "team", + "type": "string" }, { - "name": "scale", + "name": "mode", "type": "i8" }, { - "name": "icons", + "name": "name", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "directionAndType", - "type": "i8" - }, - { - "name": "x", - "type": "i8" - }, - { - "name": "z", - "type": "i8" - } - ] - ] + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } } ] }, { - "name": "columns", - "type": "i8" - }, - { - "name": "rows", + "name": "prefix", "type": [ "switch", { - "compareTo": "columns", + "compareTo": "mode", + "default": "void", "fields": { - "0": "void" - }, - "default": "i8" + "0": "string", + "2": "string" + } } ] }, { - "name": "x", + "name": "suffix", "type": [ "switch", { - "compareTo": "columns", + "compareTo": "mode", + "default": "void", "fields": { - "0": "void" - }, - "default": "i8" + "0": "string", + "2": "string" + } } ] }, { - "name": "y", + "name": "friendlyFire", "type": [ "switch", { - "compareTo": "columns", + "compareTo": "mode", + "default": "void", "fields": { - "0": "void" - }, - "default": "i8" + "0": "i8", + "2": "i8" + } } ] }, { - "name": "data", + "name": "nameTagVisibility", "type": [ "switch", { - "compareTo": "columns", + "compareTo": "mode", + "default": "void", "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] + "0": "string", + "2": "string" + } } ] - } - ] - ], - "packet_tile_entity_data": [ - "container", - [ - { - "name": "location", - "type": "position" }, { - "name": "action", - "type": "u8" + "name": "color", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "i8", + "2": "i8" + } + } + ] }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "players", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "3": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + } + ] } ] ], - "packet_open_sign_entity": [ + "packet_set_compression": [ "container", [ { - "name": "location", - "type": "position" + "name": "threshold", + "type": "varint" } ] ], - "packet_statistics": [ + "packet_set_slot": [ "container", [ { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "windowId", + "type": "i8" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_player_info": [ + "packet_spawn_entity": [ "container", [ { - "name": "action", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "add_player", - "1": "update_game_mode", - "2": "update_latency", - "3": "update_display_name", - "4": "remove_player" - } - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "../action", - "fields": { - "add_player": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - }, - { - "name": "gamemode", - "type": "varint" - }, - { - "name": "ping", - "type": "varint" - }, - { - "name": "displayName", - "type": [ - "option", - "string" - ] - } - ] - ], - "update_game_mode": [ - "container", - [ - { - "name": "gamemode", - "type": "varint" - } - ] - ], - "update_latency": [ - "container", - [ - { - "name": "ping", - "type": "varint" - } - ] - ], - "update_display_name": [ - "container", - [ - { - "name": "displayName", - "type": [ - "option", - "string" - ] - } - ] - ], - "remove_player": "void" - } - } - ] - } - ] - ] - } - ] - } - ] - ], - "packet_abilities": [ - "container", - [ - { - "name": "flags", + "name": "type", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "x", + "type": "i32" }, { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_tab_complete": [ - "container", - [ + "name": "y", + "type": "i32" + }, { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_scoreboard_objective": [ - "container", - [ + "name": "z", + "type": "i32" + }, { - "name": "name", - "type": "string" + "name": "pitch", + "type": "i8" }, { - "name": "action", + "name": "yaw", "type": "i8" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "objectData", + "type": "i32" }, { - "name": "type", + "name": "velocity", "type": [ "switch", { - "compareTo": "action", + "compareTo": "objectData", + "default": "vec3i16", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "0": "void" + } } ] } ] ], - "packet_scoreboard_score": [ + "packet_spawn_entity_experience_orb": [ "container", [ { - "name": "itemName", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "scoreName", - "type": "string" + "name": "y", + "type": "i32" }, { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" - } - ] + "name": "z", + "type": "i32" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_scoreboard_display_objective": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "position", + "name": "entityId", + "type": "varint" + }, + { + "name": "type", + "type": "u8" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "yaw", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "velocity", + "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_scoreboard_team": [ + "packet_spawn_entity_painting": [ "container", [ { - "name": "team", + "name": "entityId", + "type": "varint" + }, + { + "name": "title", "type": "string" }, { - "name": "mode", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "name", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - }, + "name": "direction", + "type": "u8" + } + ] + ], + "packet_spawn_entity_weather": [ + "container", + [ { - "name": "prefix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "suffix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "type", + "type": "i8" }, { - "name": "friendlyFire", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" - } - ] + "name": "x", + "type": "i32" }, { - "name": "nameTagVisibility", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "y", + "type": "i32" }, { - "name": "color", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" - } - ] - }, + "name": "z", + "type": "i32" + } + ] + ], + "packet_spawn_position": [ + "container", + [ { - "name": "players", + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "mode", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", + "countType": "varint", + "type": [ + "container", + [ { - "countType": "varint", + "name": "name", "type": "string" - } - ], - "4": [ - "array", + }, { - "countType": "varint", - "type": "string" + "name": "value", + "type": "varint" } ] - }, - "default": "void" + ] } ] } ] ], - "packet_custom_payload": [ + "packet_tab_complete": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "packet_kick_disconnect": [ + "packet_tile_entity_data": [ "container", [ { - "name": "reason", - "type": "string" - } - ] - ], - "packet_difficulty": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "difficulty", + "name": "action", "type": "u8" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] ], - "packet_combat_event": [ + "packet_title": [ "container", [ { - "name": "event", + "name": "action", "type": "varint" }, { - "name": "duration", + "name": "text", "type": [ "switch", { - "compareTo": "event", + "compareTo": "action", + "default": "void", "fields": { - "1": "varint" - }, - "default": "void" + "0": "string", + "1": "string" + } } ] }, { - "name": "playerId", + "name": "fadeIn", "type": [ "switch", { - "compareTo": "event", + "compareTo": "action", + "default": "void", "fields": { - "2": "varint" - }, - "default": "void" + "2": "i32" + } } ] }, { - "name": "entityId", + "name": "stay", "type": [ "switch", { - "compareTo": "event", + "compareTo": "action", + "default": "void", "fields": { - "1": "i32", "2": "i32" - }, - "default": "void" + } } ] }, { - "name": "message", + "name": "fadeOut", "type": [ "switch", { - "compareTo": "event", + "compareTo": "action", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "2": "i32" + } } ] } ] ], - "packet_camera": [ + "packet_transaction": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "windowId", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" } ] ], - "packet_world_border": [ + "packet_update_attributes": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "z", + "name": "properties", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "old_radius", + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] + } + ] + ], + "packet_update_entity_nbt": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "tag", + "type": "nbt" + } + ] + ], + "packet_update_health": [ + "container", + [ + { + "name": "health", + "type": "f32" + }, + { + "name": "food", + "type": "varint" + }, + { + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_time": [ + "container", + [ + { + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "items", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "countType": "i16", + "type": "slot" } ] + } + ] + ], + "packet_world_border": [ + "container", + [ + { + "name": "action", + "type": "varint" }, { - "name": "new_radius", + "name": "radius", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "0": "f64" + } } ] }, { - "name": "speed", + "name": "x", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" + "2": "f64", + "3": "f64" + } } ] }, { - "name": "portalBoundary", + "name": "z", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "3": "varint" - }, - "default": "void" + "2": "f64", + "3": "f64" + } } ] }, { - "name": "warning_time", + "name": "old_radius", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" + "1": "f64", + "3": "f64" + } } ] }, { - "name": "warning_blocks", + "name": "new_radius", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "1": "f64", + "3": "f64" + } } ] - } - ] - ], - "packet_title": [ - "container", - [ - { - "name": "action", - "type": "varint" }, { - "name": "text", + "name": "speed", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "0": "string", - "1": "string" - }, - "default": "void" + "1": "varlong", + "3": "varlong" + } } ] }, { - "name": "fadeIn", + "name": "portalBoundary", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "i32" - }, - "default": "void" + "3": "varint" + } } ] }, { - "name": "stay", + "name": "warning_time", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "i32" - }, - "default": "void" + "3": "varint", + "4": "varint" + } } ] }, { - "name": "fadeOut", + "name": "warning_blocks", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "i32" - }, - "default": "void" + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_set_compression": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], - "packet_playerlist_header": [ + "packet_world_event": [ "container", [ { - "name": "header", - "type": "string" + "name": "effectId", + "type": "i32" }, { - "name": "footer", - "type": "string" - } - ] - ], - "packet_resource_pack_send": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "url", - "type": "string" + "name": "data", + "type": "i32" }, { - "name": "hash", - "type": "string" + "name": "global", + "type": "bool" } ] ], - "packet_update_entity_nbt": [ + "packet_world_particles": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "particleId", + "type": "i32" }, { - "name": "tag", - "type": "nbt" - } - ] - ], - "packet": [ - "container", - [ + "name": "longDistance", + "type": "bool" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "keep_alive", - "0x01": "login", - "0x02": "chat", - "0x03": "update_time", - "0x04": "entity_equipment", - "0x05": "spawn_position", - "0x06": "update_health", - "0x07": "respawn", - "0x08": "position", - "0x09": "held_item_slot", - "0x0a": "bed", - "0x0b": "animation", - "0x0c": "named_entity_spawn", - "0x0d": "collect", - "0x0e": "spawn_entity", - "0x0f": "spawn_entity_living", - "0x10": "spawn_entity_painting", - "0x11": "spawn_entity_experience_orb", - "0x12": "entity_velocity", - "0x13": "entity_destroy", - "0x14": "entity", - "0x15": "rel_entity_move", - "0x16": "entity_look", - "0x17": "entity_move_look", - "0x18": "entity_teleport", - "0x19": "entity_head_rotation", - "0x1a": "entity_status", - "0x1b": "attach_entity", - "0x1c": "entity_metadata", - "0x1d": "entity_effect", - "0x1e": "remove_entity_effect", - "0x1f": "experience", - "0x20": "update_attributes", - "0x21": "map_chunk", - "0x22": "multi_block_change", - "0x23": "block_change", - "0x24": "block_action", - "0x25": "block_break_animation", - "0x26": "map_chunk_bulk", - "0x27": "explosion", - "0x28": "world_event", - "0x29": "named_sound_effect", - "0x2a": "world_particles", - "0x2b": "game_state_change", - "0x2c": "spawn_entity_weather", - "0x2d": "open_window", - "0x2e": "close_window", - "0x2f": "set_slot", - "0x30": "window_items", - "0x31": "craft_progress_bar", - "0x32": "transaction", - "0x33": "update_sign", - "0x34": "map", - "0x35": "tile_entity_data", - "0x36": "open_sign_entity", - "0x37": "statistics", - "0x38": "player_info", - "0x39": "abilities", - "0x3a": "tab_complete", - "0x3b": "scoreboard_objective", - "0x3c": "scoreboard_score", - "0x3d": "scoreboard_display_objective", - "0x3e": "scoreboard_team", - "0x3f": "custom_payload", - "0x40": "kick_disconnect", - "0x41": "difficulty", - "0x42": "combat_event", - "0x43": "camera", - "0x44": "world_border", - "0x45": "title", - "0x46": "set_compression", - "0x47": "playerlist_header", - "0x48": "resource_pack_send", - "0x49": "update_entity_nbt" - } - } - ] + "name": "x", + "type": "f32" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "keep_alive": "packet_keep_alive", - "login": "packet_login", - "chat": "packet_chat", - "update_time": "packet_update_time", - "entity_equipment": "packet_entity_equipment", - "spawn_position": "packet_spawn_position", - "update_health": "packet_update_health", - "respawn": "packet_respawn", - "position": "packet_position", - "held_item_slot": "packet_held_item_slot", - "bed": "packet_bed", - "animation": "packet_animation", - "named_entity_spawn": "packet_named_entity_spawn", - "collect": "packet_collect", - "spawn_entity": "packet_spawn_entity", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "entity_velocity": "packet_entity_velocity", - "entity_destroy": "packet_entity_destroy", - "entity": "packet_entity", - "rel_entity_move": "packet_rel_entity_move", - "entity_look": "packet_entity_look", - "entity_move_look": "packet_entity_move_look", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_status": "packet_entity_status", - "attach_entity": "packet_attach_entity", - "entity_metadata": "packet_entity_metadata", - "entity_effect": "packet_entity_effect", - "remove_entity_effect": "packet_remove_entity_effect", - "experience": "packet_experience", - "update_attributes": "packet_update_attributes", - "map_chunk": "packet_map_chunk", - "multi_block_change": "packet_multi_block_change", - "block_change": "packet_block_change", - "block_action": "packet_block_action", - "block_break_animation": "packet_block_break_animation", - "map_chunk_bulk": "packet_map_chunk_bulk", - "explosion": "packet_explosion", - "world_event": "packet_world_event", - "named_sound_effect": "packet_named_sound_effect", - "world_particles": "packet_world_particles", - "game_state_change": "packet_game_state_change", - "spawn_entity_weather": "packet_spawn_entity_weather", - "open_window": "packet_open_window", - "close_window": "packet_close_window", - "set_slot": "packet_set_slot", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "transaction": "packet_transaction", - "update_sign": "packet_update_sign", - "map": "packet_map", - "tile_entity_data": "packet_tile_entity_data", - "open_sign_entity": "packet_open_sign_entity", - "statistics": "packet_statistics", - "player_info": "packet_player_info", - "abilities": "packet_abilities", - "tab_complete": "packet_tab_complete", - "scoreboard_objective": "packet_scoreboard_objective", - "scoreboard_score": "packet_scoreboard_score", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "scoreboard_team": "packet_scoreboard_team", - "custom_payload": "packet_custom_payload", - "kick_disconnect": "packet_kick_disconnect", - "difficulty": "packet_difficulty", - "combat_event": "packet_combat_event", - "camera": "packet_camera", - "world_border": "packet_world_border", - "title": "packet_title", - "set_compression": "packet_set_compression", - "playerlist_header": "packet_playerlist_header", - "resource_pack_send": "packet_resource_pack_send", - "update_entity_nbt": "packet_update_entity_nbt" - } - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet_keep_alive": [ - "container", - [ + "name": "y", + "type": "f32" + }, { - "name": "keepAliveId", - "type": "varint" - } - ] - ], - "packet_chat": [ - "container", - [ + "name": "z", + "type": "f32" + }, { - "name": "message", - "type": "string" - } - ] - ], - "packet_use_entity": [ - "container", - [ + "name": "offsetX", + "type": "f32" + }, { - "name": "target", - "type": "varint" + "name": "offsetY", + "type": "f32" }, { - "name": "mouse", - "type": "varint" + "name": "offsetZ", + "type": "f32" }, { - "name": "x", + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", "type": [ "switch", { - "compareTo": "mouse", + "compareTo": "particleId", + "default": "void", "fields": { - "2": "f32" - }, - "default": "void" + "36": [ + "array", + { + "count": 2, + "type": "varint" + } + ], + "37": [ + "array", + { + "count": 1, + "type": "varint" + } + ], + "38": [ + "array", + { + "count": 1, + "type": "varint" + } + ] + } } ] - }, + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "y", + "name": "name", "type": [ - "switch", + "mapper", { - "compareTo": "mouse", - "fields": { - "2": "f32" + "mappings": { + "0x00": "keep_alive", + "0x01": "chat", + "0x02": "use_entity", + "0x03": "flying", + "0x04": "position", + "0x05": "look", + "0x06": "position_look", + "0x07": "block_dig", + "0x08": "block_place", + "0x09": "held_item_slot", + "0x0a": "arm_animation", + "0x0b": "entity_action", + "0x0c": "steer_vehicle", + "0x0d": "close_window", + "0x0e": "window_click", + "0x0f": "transaction", + "0x10": "set_creative_slot", + "0x11": "enchant_item", + "0x12": "update_sign", + "0x13": "abilities", + "0x14": "tab_complete", + "0x15": "settings", + "0x16": "client_command", + "0x17": "custom_payload", + "0x18": "spectate", + "0x19": "resource_pack_receive" }, - "default": "void" + "type": "varint" } ] }, { - "name": "z", + "name": "params", "type": [ "switch", { - "compareTo": "mouse", + "compareTo": "name", "fields": { - "2": "f32" - }, - "default": "void" + "abilities": "packet_abilities", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat": "packet_chat", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "custom_payload": "packet_custom_payload", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "look": "packet_look", + "position": "packet_position", + "position_look": "packet_position_look", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "transaction": "packet_transaction", + "update_sign": "packet_update_sign", + "use_entity": "packet_use_entity", + "window_click": "packet_window_click" + } } ] } ] ], - "packet_flying": [ - "container", - [ - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_position": [ + "packet_abilities": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "flags", + "type": "i8" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_look": [ - "container", - [ - { - "name": "yaw", + "name": "flyingSpeed", "type": "f32" }, { - "name": "pitch", + "name": "walkingSpeed", "type": "f32" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_position_look": [ + "packet_arm_animation": [ "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" - } - ] + [] ], "packet_block_dig": [ "container", @@ -3046,18 +3000,58 @@ } ] ], - "packet_held_item_slot": [ + "packet_chat": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "message", + "type": "string" } ] ], - "packet_arm_animation": [ + "packet_client_command": [ "container", - [] + [ + { + "name": "payload", + "type": "varint" + } + ] + ], + "packet_close_window": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_enchant_item": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "enchantment", + "type": "i8" + } + ] ], "packet_entity_action": [ "container", @@ -3076,75 +3070,110 @@ } ] ], - "packet_steer_vehicle": [ + "packet_flying": [ "container", [ { - "name": "sideways", + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slotId", + "type": "i16" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "varint" + } + ] + ], + "packet_look": [ + "container", + [ + { + "name": "yaw", "type": "f32" }, { - "name": "forward", + "name": "pitch", "type": "f32" }, { - "name": "jump", - "type": "u8" + "name": "onGround", + "type": "bool" } ] ], - "packet_close_window": [ + "packet_position": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_position_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "x", + "type": "f64" }, - { - "name": "slot", - "type": "i16" + { + "name": "y", + "type": "f64" }, { - "name": "mouseButton", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "action", - "type": "i16" + "name": "yaw", + "type": "f32" }, { - "name": "mode", - "type": "i8" + "name": "pitch", + "type": "f32" }, { - "name": "item", - "type": "slot" + "name": "onGround", + "type": "bool" } ] ], - "packet_transaction": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "hash", + "type": "string" }, { - "name": "accepted", - "type": "bool" + "name": "result", + "type": "varint" } ] ], @@ -3161,58 +3190,54 @@ } ] ], - "packet_enchant_item": [ + "packet_settings": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "locale", + "type": "string" }, { - "name": "enchantment", + "name": "viewDistance", "type": "i8" - } - ] - ], - "packet_update_sign": [ - "container", - [ - { - "name": "location", - "type": "position" }, { - "name": "text1", - "type": "string" + "name": "chatFlags", + "type": "i8" }, { - "name": "text2", - "type": "string" + "name": "chatColors", + "type": "bool" }, { - "name": "text3", - "type": "string" - }, + "name": "skinParts", + "type": "u8" + } + ] + ], + "packet_spectate": [ + "container", + [ { - "name": "text4", - "type": "string" + "name": "target", + "type": "UUID" } ] ], - "packet_abilities": [ + "packet_steer_vehicle": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "sideways", + "type": "f32" }, { - "name": "flyingSpeed", + "name": "forward", "type": "f32" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "jump", + "type": "u8" } ] ], @@ -3232,153 +3257,128 @@ } ] ], - "packet_settings": [ + "packet_transaction": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", + "name": "windowId", "type": "i8" }, { - "name": "chatFlags", - "type": "i8" + "name": "action", + "type": "i16" }, { - "name": "chatColors", + "name": "accepted", "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" } ] ], - "packet_client_command": [ + "packet_update_sign": [ "container", [ { - "name": "payload", - "type": "varint" - } - ] - ], - "packet_custom_payload": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "channel", + "name": "text1", "type": "string" }, { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_spectate": [ - "container", - [ + "name": "text2", + "type": "string" + }, { - "name": "target", - "type": "UUID" + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_use_entity": [ "container", [ { - "name": "hash", - "type": "string" + "name": "target", + "type": "varint" }, { - "name": "result", + "name": "mouse", "type": "varint" - } - ] - ], - "packet": [ - "container", - [ + }, { - "name": "name", + "name": "x", "type": [ - "mapper", + "switch", { - "type": "varint", - "mappings": { - "0x00": "keep_alive", - "0x01": "chat", - "0x02": "use_entity", - "0x03": "flying", - "0x04": "position", - "0x05": "look", - "0x06": "position_look", - "0x07": "block_dig", - "0x08": "block_place", - "0x09": "held_item_slot", - "0x0a": "arm_animation", - "0x0b": "entity_action", - "0x0c": "steer_vehicle", - "0x0d": "close_window", - "0x0e": "window_click", - "0x0f": "transaction", - "0x10": "set_creative_slot", - "0x11": "enchant_item", - "0x12": "update_sign", - "0x13": "abilities", - "0x14": "tab_complete", - "0x15": "settings", - "0x16": "client_command", - "0x17": "custom_payload", - "0x18": "spectate", - "0x19": "resource_pack_receive" + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" } } ] }, { - "name": "params", + "name": "y", "type": [ "switch", { - "compareTo": "name", + "compareTo": "mouse", + "default": "void", "fields": { - "keep_alive": "packet_keep_alive", - "chat": "packet_chat", - "use_entity": "packet_use_entity", - "flying": "packet_flying", - "position": "packet_position", - "look": "packet_look", - "position_look": "packet_position_look", - "block_dig": "packet_block_dig", - "block_place": "packet_block_place", - "held_item_slot": "packet_held_item_slot", - "arm_animation": "packet_arm_animation", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "close_window": "packet_close_window", - "window_click": "packet_window_click", - "transaction": "packet_transaction", - "set_creative_slot": "packet_set_creative_slot", - "enchant_item": "packet_enchant_item", - "update_sign": "packet_update_sign", - "abilities": "packet_abilities", - "tab_complete": "packet_tab_complete", - "settings": "packet_settings", - "client_command": "packet_client_command", - "custom_payload": "packet_custom_payload", - "spectate": "packet_spectate", - "resource_pack_receive": "packet_resource_pack_receive" + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" } } ] } ] + ], + "packet_window_click": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] ] } } diff --git a/data/pc/1.9.1-pre2/protocol.json b/data/pc/1.9.1-pre2/protocol.json index cdd0a73d0..545da259f 100644 --- a/data/pc/1.9.1-pre2/protocol.json +++ b/data/pc/1.9.1-pre2/protocol.json @@ -1,116 +1,53 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 255, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ + "anon": true, + "type": [ "container", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "key", + "type": "u8" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "type", + "type": "i8" } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -155,42 +92,105 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ + "compareTo": "blockId", + "default": [ "container", [ { - "name": "key", - "type": "u8" + "name": "itemCount", + "type": "i8" }, { - "name": "type", - "type": "i8" + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -203,8 +203,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -224,36 +224,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -262,11 +232,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -277,38 +247,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -317,11 +299,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -332,21 +314,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -357,6 +331,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -365,11 +352,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -380,13 +367,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -394,6 +394,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -442,16 +486,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -460,13 +499,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -477,28 +514,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -523,6 +545,21 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -531,11 +568,86 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "update_sign", + "0x47": "sound_effect", + "0x48": "playerlist_header", + "0x49": "collect", + "0x4a": "entity_teleport", + "0x4b": "entity_update_attributes", + "0x4c": "entity_effect" + }, + "type": "varint" } ] }, @@ -546,66 +658,107 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } + "abilities": "packet_abilities", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "custom_payload": "packet_custom_payload", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "update_health": "packet_update_health", + "update_sign": "packet_update_sign", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", + "name": "flags", "type": "i8" }, { - "name": "objectData", - "type": "i32" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "velocity", - "type": "vec3i16" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_animation": [ "container", [ { @@ -613,49 +766,25 @@ "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "animation", + "type": "u8" } ] ], - "packet_spawn_entity_weather": [ + "packet_attach_entity": [ "container", [ { "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "type": "i32" }, { - "name": "z", - "type": "f64" + "name": "vehicleId", + "type": "i32" } ] ], - "packet_spawn_entity_living": [ + "packet_bed": [ "container", [ { @@ -663,48 +792,33 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "u8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_block_action": [ + "container", + [ { - "name": "pitch", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "headPitch", - "type": "i8" + "name": "byte1", + "type": "u8" }, { - "name": "velocity", - "type": "vec3i16" + "name": "byte2", + "type": "u8" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "blockId", + "type": "varint" } ] ], - "packet_spawn_entity_painting": [ + "packet_block_break_animation": [ "container", [ { @@ -712,248 +826,244 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" + "name": "location", + "type": "position" }, { - "name": "title", - "type": "string" - }, + "name": "destroyStage", + "type": "i8" + } + ] + ], + "packet_block_change": [ + "container", + [ { "name": "location", "type": "position" }, { - "name": "direction", - "type": "u8" + "name": "type", + "type": "varint" } ] ], - "packet_named_entity_spawn": [ + "packet_boss_bar": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "playerUUID", - "type": "UUID" + "name": "action", + "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "title", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "3": "string" + } + } + ] }, { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" + "name": "health", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "color", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "dividers", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", + "name": "flags", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } } ] } ] ], - "packet_block_break_animation": [ + "packet_camera": [ "container", [ { - "name": "entityId", + "name": "cameraId", "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" } ] ], - "packet_tile_entity_data": [ + "packet_chat": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "message", + "type": "string" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "position", + "type": "i8" } ] ], - "packet_block_action": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "byte1", - "type": "u8" - }, - { - "name": "byte2", + "name": "windowId", "type": "u8" - }, - { - "name": "blockId", - "type": "varint" } ] ], - "packet_block_change": [ + "packet_collect": [ "container", [ { - "name": "location", - "type": "position" + "name": "collectedEntityId", + "type": "varint" }, { - "name": "type", + "name": "collectorEntityId", "type": "varint" } ] ], - "packet_boss_bar": [ + "packet_combat_event": [ "container", [ { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", + "name": "event", "type": "varint" }, { - "name": "title", + "name": "duration", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "string", - "3": "string" - }, - "default": "void" + "1": "varint" + } } ] }, { - "name": "health", + "name": "playerId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" + "2": "varint" + } } ] }, { - "name": "color", + "name": "entityId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "dividers", + "name": "message", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "2": "string" + } } ] + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], @@ -966,264 +1076,282 @@ } ] ], - "packet_tab_complete": [ + "packet_entity": [ "container", [ { - "name": "matches", + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "varint" } ] } ] ], - "packet_chat": [ + "packet_entity_effect": [ "container", [ { - "name": "message", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "position", + "name": "effectId", "type": "i8" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ + }, { - "name": "chunkX", - "type": "i32" + "name": "amplifier", + "type": "i8" }, { - "name": "chunkZ", - "type": "i32" + "name": "duration", + "type": "varint" }, { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] - } - ] + "name": "hideParticles", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "slot", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "inventoryType", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "windowTitle", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "pitch", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ - { - "name": "windowId", - "type": "i8" }, { - "name": "slot", + "name": "dZ", "type": "i16" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ + "name": "yaw", + "type": "i8" + }, { - "name": "itemID", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_status": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "data", - "type": "restBuffer" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_named_sound_effect": [ + "packet_entity_teleport": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "u8" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_velocity": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -1286,20 +1414,7 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ + "packet_game_state_change": [ "container", [ { @@ -1312,141 +1427,30 @@ } ] ], - "packet_keep_alive": [ + "packet_held_item_slot": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "slot", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "groundUp", - "type": "bool" - }, - { - "name": "bitMap", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" } ] ], - "packet_world_particles": [ + "packet_kick_disconnect": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, - { - "name": "particles", - "type": "i32" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "particleId", - "fields": { - "36": [ - "array", - { - "count": 2, - "type": "varint" - } - ], - "37": [ - "array", - { - "count": 1, - "type": "varint" - } - ], - "38": [ - "array", - { - "count": 1, - "type": "varint" - } - ] - }, - "default": "void" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -1534,10 +1538,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1547,10 +1551,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1560,10 +1564,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1573,46 +1577,90 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "z", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "groundUp", + "type": "bool" }, { - "name": "dZ", - "type": "i16" + "name": "bitMap", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_multi_block_change": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + }, + { + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_named_entity_spawn": [ "container", [ { @@ -1620,16 +1668,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dY", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -1640,63 +1692,41 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" }, { - "name": "yaw", - "type": "i8" + "name": "x", + "type": "i32" }, { - "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "y", + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { "name": "pitch", - "type": "f32" + "type": "u8" } ] ], @@ -1709,80 +1739,35 @@ } ] ], - "packet_abilities": [ + "packet_open_window": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" + "name": "windowId", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_combat_event": [ - "container", - [ - { - "name": "event", - "type": "varint" + "name": "inventoryType", + "type": "string" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { "name": "entityId", "type": [ "switch", { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -1796,14 +1781,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -1880,37 +1865,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -1922,6 +1907,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -1955,7 +1953,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -1963,23 +1961,20 @@ "type": "varint" }, { - "name": "location", - "type": "position" - } - ] - ], - "packet_entity_destroy": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -2030,223 +2025,218 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ + { + "name": "name", + "type": "string" + }, { "name": "action", - "type": "varint" + "type": "i8" }, { - "name": "radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "0": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "x", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "new_radius", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "1": "void" + } } ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "itemID", + "type": "varint" }, { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] - }, - { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" - } - ] + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_camera": [ + "packet_set_passengers": [ "container", [ { - "name": "cameraId", + "name": "entityId", "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + }, { - "name": "slot", - "type": "i8" + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_scoreboard_display_objective": [ + "packet_set_slot": [ "container", [ { - "name": "position", + "name": "windowId", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_entity_metadata": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "soundCategory", + "type": "varint" + }, { - "name": "entityId", + "name": "x", "type": "i32" }, { - "name": "vehicleId", + "name": "y", + "type": "i32" + }, + { + "name": "z", "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "u8" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -2254,91 +2244,73 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "item", - "type": "slot" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_experience": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "totalExperience", - "type": "varint" - } - ] - ], - "packet_update_health": [ - "container", - [ + "name": "type", + "type": "u8" + }, { - "name": "health", - "type": "f32" + "name": "x", + "type": "f64" }, { - "name": "food", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_scoreboard_objective": [ - "container", - [ + "name": "z", + "type": "f64" + }, { - "name": "name", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "action", + "name": "pitch", "type": "i8" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "headPitch", + "type": "i8" }, { - "name": "type", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_set_passengers": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -2346,22 +2318,104 @@ "type": "varint" }, { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_teams": [ - "container", - [ - { - "name": "team", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", + "type": "string" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" + } + ] + ], + "packet_spawn_entity_weather": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], + "packet_teams": [ + "container", + [ + { + "name": "team", "type": "string" }, { @@ -2374,11 +2428,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2388,11 +2442,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2402,11 +2456,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2416,11 +2470,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2430,11 +2484,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2444,11 +2498,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2458,11 +2512,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2472,6 +2526,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -2494,62 +2549,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -2566,11 +2585,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string" - }, - "default": "void" + } } ] }, @@ -2580,10 +2599,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] }, @@ -2593,10 +2612,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] }, @@ -2606,15 +2625,62 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] } ] ], + "packet_transaction": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + } + ] + ], + "packet_update_health": [ + "container", + [ + { + "name": "health", + "type": "f32" + }, + { + "name": "food", + "type": "varint" + }, + { + "name": "foodSaturation", + "type": "f32" + } + ] + ], "packet_update_sign": [ "container", [ @@ -2640,270 +2706,342 @@ } ] ], - "packet_sound_effect": [ + "packet_update_time": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "age", + "type": "i64" }, { - "name": "soundCategory", - "type": "varint" - }, + "name": "time", + "type": "i64" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", + "name": "yaw", "type": "f32" }, { "name": "pitch", - "type": "u8" + "type": "f32" } ] ], - "packet_playerlist_header": [ + "packet_window_items": [ "container", [ { - "name": "header", - "type": "string" + "name": "windowId", + "type": "u8" }, { - "name": "footer", - "type": "string" - } - ] - ], - "packet_collect": [ - "container", - [ - { - "name": "collectedEntityId", - "type": "varint" - }, - { - "name": "collectorEntityId", - "type": "varint" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_entity_teleport": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] }, { - "name": "y", - "type": "f64" + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { "name": "z", - "type": "f64" + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_update_attributes": [ - "container", - [ + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, { - "name": "entityId", - "type": "varint" + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] }, { - "name": "properties", + "name": "warning_time", "type": [ - "array", + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], - "packet": [ + "packet_world_particles": [ "container", [ { - "name": "name", + "name": "particleId", + "type": "i32" + }, + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", "type": [ - "mapper", + "switch", { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "update_sign", - "0x47": "sound_effect", - "0x48": "playerlist_header", - "0x49": "collect", - "0x4a": "entity_teleport", - "0x4b": "entity_update_attributes", - "0x4c": "entity_effect" + "compareTo": "particleId", + "default": "void", + "fields": { + "36": [ + "array", + { + "count": 2, + "type": "varint" + } + ], + "37": [ + "array", + { + "count": 1, + "type": "varint" + } + ], + "38": [ + "array", + { + "count": 1, + "type": "varint" + } + ] } } ] + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" + }, + "type": "varint" + } + ] }, { "name": "params", @@ -2912,119 +3050,111 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", + "abilities": "packet_abilities", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "look": "packet_look", "position": "packet_position", - "bed": "packet_bed", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", + "position_look": "packet_position_look", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", "update_sign": "packet_update_sign", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect" + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" + } + ] + ], + "packet_arm_animation": [ + "container", + [ + { + "name": "hand", + "type": "varint" + } + ] + ], + "packet_block_dig": [ + "container", + [ + { + "name": "status", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_tab_complete": [ + "packet_block_place": [ "container", [ { - "name": "text", - "type": "string" + "name": "location", + "type": "position" }, { - "name": "assumeCommand", - "type": "bool" + "name": "direction", + "type": "varint" }, { - "name": "lookedAtBlock", - "type": [ - "option", - "position" - ] + "name": "hand", + "type": "varint" + }, + { + "name": "cursorX", + "type": "i8" + }, + { + "name": "cursorY", + "type": "i8" + }, + { + "name": "cursorZ", + "type": "i8" } ] ], @@ -3046,49 +3176,25 @@ } ] ], - "packet_settings": [ + "packet_close_window": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", + "name": "windowId", "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" } ] ], - "packet_transaction": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "channel", + "type": "string" }, { - "name": "accepted", - "type": "bool" + "name": "data", + "type": "restBuffer" } ] ], @@ -3105,129 +3211,64 @@ } ] ], - "packet_window_click": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "mode", - "type": "i8" + "name": "actionId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_close_window": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_held_item_slot": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "slotId", + "type": "i16" } ] ], - "packet_use_entity": [ + "packet_keep_alive": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] } ] ], - "packet_keep_alive": [ + "packet_look": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -3281,118 +3322,80 @@ } ] ], - "packet_look": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "hash", + "type": "string" }, { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_flying": [ + "packet_set_creative_slot": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_vehicle_move": [ + "packet_settings": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "locale", + "type": "string" }, { - "name": "yaw", - "type": "f32" + "name": "viewDistance", + "type": "i8" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_steer_boat": [ - "container", - [ - { - "name": "leftPaddle", - "type": "bool" + "name": "chatFlags", + "type": "varint" }, { - "name": "rightPaddle", + "name": "chatColors", "type": "bool" - } - ] - ], - "packet_abilities": [ - "container", - [ - { - "name": "flags", - "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "skinParts", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -3413,38 +3416,49 @@ } ] ], - "packet_resource_pack_receive": [ + "packet_tab_complete": [ "container", [ { - "name": "hash", + "name": "text", "type": "string" }, { - "name": "result", - "type": "varint" + "name": "assumeCommand", + "type": "bool" + }, + { + "name": "lookedAtBlock", + "type": [ + "option", + "position" + ] } ] ], - "packet_held_item_slot": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "teleportId", + "type": "varint" } ] ], - "packet_set_creative_slot": [ + "packet_transaction": [ "container", [ { - "name": "slot", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" }, { - "name": "item", - "type": "slot" + "name": "accepted", + "type": "bool" } ] ], @@ -3473,146 +3487,132 @@ } ] ], - "packet_arm_animation": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", + "type": "varint" + }, + { + "name": "mouse", "type": "varint" + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], - "packet_spectate": [ + "packet_use_item": [ "container", [ { - "name": "target", - "type": "UUID" + "name": "hand", + "type": "varint" } ] ], - "packet_block_place": [ + "packet_vehicle_move": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "hand", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "cursorX", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "cursorY", - "type": "i8" + "name": "yaw", + "type": "f32" }, { - "name": "cursorZ", - "type": "i8" + "name": "pitch", + "type": "f32" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" - } - ] - ], - "packet": [ - "container", - [ + "name": "windowId", + "type": "u8" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" - } - } - ] + "name": "slot", + "type": "i16" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } - } - ] + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.9.2/protocol.json b/data/pc/1.9.2/protocol.json index cdd0a73d0..545da259f 100644 --- a/data/pc/1.9.2/protocol.json +++ b/data/pc/1.9.2/protocol.json @@ -1,116 +1,53 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 255, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ + "anon": true, + "type": [ "container", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "key", + "type": "u8" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "type", + "type": "i8" } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -155,42 +92,105 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ + "compareTo": "blockId", + "default": [ "container", [ { - "name": "key", - "type": "u8" + "name": "itemCount", + "type": "i8" }, { - "name": "type", - "type": "i8" + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -203,8 +203,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -224,36 +224,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -262,11 +232,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -277,38 +247,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -317,11 +299,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -332,21 +314,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -357,6 +331,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -365,11 +352,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -380,13 +367,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -394,6 +394,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -442,16 +486,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -460,13 +499,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -477,28 +514,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -523,6 +545,21 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -531,11 +568,86 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "update_sign", + "0x47": "sound_effect", + "0x48": "playerlist_header", + "0x49": "collect", + "0x4a": "entity_teleport", + "0x4b": "entity_update_attributes", + "0x4c": "entity_effect" + }, + "type": "varint" } ] }, @@ -546,66 +658,107 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } + "abilities": "packet_abilities", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "custom_payload": "packet_custom_payload", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "update_health": "packet_update_health", + "update_sign": "packet_update_sign", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", + "name": "flags", "type": "i8" }, { - "name": "objectData", - "type": "i32" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "velocity", - "type": "vec3i16" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_animation": [ "container", [ { @@ -613,49 +766,25 @@ "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "animation", + "type": "u8" } ] ], - "packet_spawn_entity_weather": [ + "packet_attach_entity": [ "container", [ { "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "type": "i32" }, { - "name": "z", - "type": "f64" + "name": "vehicleId", + "type": "i32" } ] ], - "packet_spawn_entity_living": [ + "packet_bed": [ "container", [ { @@ -663,48 +792,33 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "u8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_block_action": [ + "container", + [ { - "name": "pitch", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "headPitch", - "type": "i8" + "name": "byte1", + "type": "u8" }, { - "name": "velocity", - "type": "vec3i16" + "name": "byte2", + "type": "u8" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "blockId", + "type": "varint" } ] ], - "packet_spawn_entity_painting": [ + "packet_block_break_animation": [ "container", [ { @@ -712,248 +826,244 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" + "name": "location", + "type": "position" }, { - "name": "title", - "type": "string" - }, + "name": "destroyStage", + "type": "i8" + } + ] + ], + "packet_block_change": [ + "container", + [ { "name": "location", "type": "position" }, { - "name": "direction", - "type": "u8" + "name": "type", + "type": "varint" } ] ], - "packet_named_entity_spawn": [ + "packet_boss_bar": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "playerUUID", - "type": "UUID" + "name": "action", + "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "title", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "3": "string" + } + } + ] }, { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" + "name": "health", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "color", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "dividers", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", + "name": "flags", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } } ] } ] ], - "packet_block_break_animation": [ + "packet_camera": [ "container", [ { - "name": "entityId", + "name": "cameraId", "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" } ] ], - "packet_tile_entity_data": [ + "packet_chat": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "message", + "type": "string" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "position", + "type": "i8" } ] ], - "packet_block_action": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "byte1", - "type": "u8" - }, - { - "name": "byte2", + "name": "windowId", "type": "u8" - }, - { - "name": "blockId", - "type": "varint" } ] ], - "packet_block_change": [ + "packet_collect": [ "container", [ { - "name": "location", - "type": "position" + "name": "collectedEntityId", + "type": "varint" }, { - "name": "type", + "name": "collectorEntityId", "type": "varint" } ] ], - "packet_boss_bar": [ + "packet_combat_event": [ "container", [ { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", + "name": "event", "type": "varint" }, { - "name": "title", + "name": "duration", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "string", - "3": "string" - }, - "default": "void" + "1": "varint" + } } ] }, { - "name": "health", + "name": "playerId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" + "2": "varint" + } } ] }, { - "name": "color", + "name": "entityId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "dividers", + "name": "message", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "2": "string" + } } ] + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], @@ -966,264 +1076,282 @@ } ] ], - "packet_tab_complete": [ + "packet_entity": [ "container", [ { - "name": "matches", + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "varint" } ] } ] ], - "packet_chat": [ + "packet_entity_effect": [ "container", [ { - "name": "message", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "position", + "name": "effectId", "type": "i8" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ + }, { - "name": "chunkX", - "type": "i32" + "name": "amplifier", + "type": "i8" }, { - "name": "chunkZ", - "type": "i32" + "name": "duration", + "type": "varint" }, { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] - } - ] + "name": "hideParticles", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "slot", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "inventoryType", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "windowTitle", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "pitch", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ - { - "name": "windowId", - "type": "i8" }, { - "name": "slot", + "name": "dZ", "type": "i16" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ + "name": "yaw", + "type": "i8" + }, { - "name": "itemID", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_status": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "data", - "type": "restBuffer" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_named_sound_effect": [ + "packet_entity_teleport": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "u8" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_velocity": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -1286,20 +1414,7 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ + "packet_game_state_change": [ "container", [ { @@ -1312,141 +1427,30 @@ } ] ], - "packet_keep_alive": [ + "packet_held_item_slot": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "slot", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "groundUp", - "type": "bool" - }, - { - "name": "bitMap", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" } ] ], - "packet_world_particles": [ + "packet_kick_disconnect": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, - { - "name": "particles", - "type": "i32" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "particleId", - "fields": { - "36": [ - "array", - { - "count": 2, - "type": "varint" - } - ], - "37": [ - "array", - { - "count": 1, - "type": "varint" - } - ], - "38": [ - "array", - { - "count": 1, - "type": "varint" - } - ] - }, - "default": "void" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -1534,10 +1538,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1547,10 +1551,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1560,10 +1564,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1573,46 +1577,90 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "z", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "groundUp", + "type": "bool" }, { - "name": "dZ", - "type": "i16" + "name": "bitMap", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_multi_block_change": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + }, + { + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_named_entity_spawn": [ "container", [ { @@ -1620,16 +1668,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dY", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -1640,63 +1692,41 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" }, { - "name": "yaw", - "type": "i8" + "name": "x", + "type": "i32" }, { - "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "y", + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { "name": "pitch", - "type": "f32" + "type": "u8" } ] ], @@ -1709,80 +1739,35 @@ } ] ], - "packet_abilities": [ + "packet_open_window": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" + "name": "windowId", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_combat_event": [ - "container", - [ - { - "name": "event", - "type": "varint" + "name": "inventoryType", + "type": "string" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { "name": "entityId", "type": [ "switch", { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -1796,14 +1781,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -1880,37 +1865,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -1922,6 +1907,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -1955,7 +1953,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -1963,23 +1961,20 @@ "type": "varint" }, { - "name": "location", - "type": "position" - } - ] - ], - "packet_entity_destroy": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -2030,223 +2025,218 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ + { + "name": "name", + "type": "string" + }, { "name": "action", - "type": "varint" + "type": "i8" }, { - "name": "radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "0": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "x", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "new_radius", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "1": "void" + } } ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "itemID", + "type": "varint" }, { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] - }, - { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" - } - ] + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_camera": [ + "packet_set_passengers": [ "container", [ { - "name": "cameraId", + "name": "entityId", "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + }, { - "name": "slot", - "type": "i8" + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_scoreboard_display_objective": [ + "packet_set_slot": [ "container", [ { - "name": "position", + "name": "windowId", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_entity_metadata": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "soundCategory", + "type": "varint" + }, { - "name": "entityId", + "name": "x", "type": "i32" }, { - "name": "vehicleId", + "name": "y", + "type": "i32" + }, + { + "name": "z", "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "u8" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -2254,91 +2244,73 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "item", - "type": "slot" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_experience": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "totalExperience", - "type": "varint" - } - ] - ], - "packet_update_health": [ - "container", - [ + "name": "type", + "type": "u8" + }, { - "name": "health", - "type": "f32" + "name": "x", + "type": "f64" }, { - "name": "food", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_scoreboard_objective": [ - "container", - [ + "name": "z", + "type": "f64" + }, { - "name": "name", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "action", + "name": "pitch", "type": "i8" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "headPitch", + "type": "i8" }, { - "name": "type", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_set_passengers": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -2346,22 +2318,104 @@ "type": "varint" }, { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_teams": [ - "container", - [ - { - "name": "team", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", + "type": "string" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" + } + ] + ], + "packet_spawn_entity_weather": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], + "packet_teams": [ + "container", + [ + { + "name": "team", "type": "string" }, { @@ -2374,11 +2428,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2388,11 +2442,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2402,11 +2456,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2416,11 +2470,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2430,11 +2484,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2444,11 +2498,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2458,11 +2512,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2472,6 +2526,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -2494,62 +2549,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -2566,11 +2585,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string" - }, - "default": "void" + } } ] }, @@ -2580,10 +2599,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] }, @@ -2593,10 +2612,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] }, @@ -2606,15 +2625,62 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] } ] ], + "packet_transaction": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + } + ] + ], + "packet_update_health": [ + "container", + [ + { + "name": "health", + "type": "f32" + }, + { + "name": "food", + "type": "varint" + }, + { + "name": "foodSaturation", + "type": "f32" + } + ] + ], "packet_update_sign": [ "container", [ @@ -2640,270 +2706,342 @@ } ] ], - "packet_sound_effect": [ + "packet_update_time": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "age", + "type": "i64" }, { - "name": "soundCategory", - "type": "varint" - }, + "name": "time", + "type": "i64" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", + "name": "yaw", "type": "f32" }, { "name": "pitch", - "type": "u8" + "type": "f32" } ] ], - "packet_playerlist_header": [ + "packet_window_items": [ "container", [ { - "name": "header", - "type": "string" + "name": "windowId", + "type": "u8" }, { - "name": "footer", - "type": "string" - } - ] - ], - "packet_collect": [ - "container", - [ - { - "name": "collectedEntityId", - "type": "varint" - }, - { - "name": "collectorEntityId", - "type": "varint" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_entity_teleport": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] }, { - "name": "y", - "type": "f64" + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { "name": "z", - "type": "f64" + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_update_attributes": [ - "container", - [ + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, { - "name": "entityId", - "type": "varint" + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] }, { - "name": "properties", + "name": "warning_time", "type": [ - "array", + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], - "packet": [ + "packet_world_particles": [ "container", [ { - "name": "name", + "name": "particleId", + "type": "i32" + }, + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", "type": [ - "mapper", + "switch", { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "update_sign", - "0x47": "sound_effect", - "0x48": "playerlist_header", - "0x49": "collect", - "0x4a": "entity_teleport", - "0x4b": "entity_update_attributes", - "0x4c": "entity_effect" + "compareTo": "particleId", + "default": "void", + "fields": { + "36": [ + "array", + { + "count": 2, + "type": "varint" + } + ], + "37": [ + "array", + { + "count": 1, + "type": "varint" + } + ], + "38": [ + "array", + { + "count": 1, + "type": "varint" + } + ] } } ] + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" + }, + "type": "varint" + } + ] }, { "name": "params", @@ -2912,119 +3050,111 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", + "abilities": "packet_abilities", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "look": "packet_look", "position": "packet_position", - "bed": "packet_bed", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", + "position_look": "packet_position_look", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", "update_sign": "packet_update_sign", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect" + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" + } + ] + ], + "packet_arm_animation": [ + "container", + [ + { + "name": "hand", + "type": "varint" + } + ] + ], + "packet_block_dig": [ + "container", + [ + { + "name": "status", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_tab_complete": [ + "packet_block_place": [ "container", [ { - "name": "text", - "type": "string" + "name": "location", + "type": "position" }, { - "name": "assumeCommand", - "type": "bool" + "name": "direction", + "type": "varint" }, { - "name": "lookedAtBlock", - "type": [ - "option", - "position" - ] + "name": "hand", + "type": "varint" + }, + { + "name": "cursorX", + "type": "i8" + }, + { + "name": "cursorY", + "type": "i8" + }, + { + "name": "cursorZ", + "type": "i8" } ] ], @@ -3046,49 +3176,25 @@ } ] ], - "packet_settings": [ + "packet_close_window": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", + "name": "windowId", "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" } ] ], - "packet_transaction": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "channel", + "type": "string" }, { - "name": "accepted", - "type": "bool" + "name": "data", + "type": "restBuffer" } ] ], @@ -3105,129 +3211,64 @@ } ] ], - "packet_window_click": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "mode", - "type": "i8" + "name": "actionId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_close_window": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_held_item_slot": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "slotId", + "type": "i16" } ] ], - "packet_use_entity": [ + "packet_keep_alive": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] } ] ], - "packet_keep_alive": [ + "packet_look": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -3281,118 +3322,80 @@ } ] ], - "packet_look": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "hash", + "type": "string" }, { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_flying": [ + "packet_set_creative_slot": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_vehicle_move": [ + "packet_settings": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "locale", + "type": "string" }, { - "name": "yaw", - "type": "f32" + "name": "viewDistance", + "type": "i8" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_steer_boat": [ - "container", - [ - { - "name": "leftPaddle", - "type": "bool" + "name": "chatFlags", + "type": "varint" }, { - "name": "rightPaddle", + "name": "chatColors", "type": "bool" - } - ] - ], - "packet_abilities": [ - "container", - [ - { - "name": "flags", - "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "skinParts", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -3413,38 +3416,49 @@ } ] ], - "packet_resource_pack_receive": [ + "packet_tab_complete": [ "container", [ { - "name": "hash", + "name": "text", "type": "string" }, { - "name": "result", - "type": "varint" + "name": "assumeCommand", + "type": "bool" + }, + { + "name": "lookedAtBlock", + "type": [ + "option", + "position" + ] } ] ], - "packet_held_item_slot": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "teleportId", + "type": "varint" } ] ], - "packet_set_creative_slot": [ + "packet_transaction": [ "container", [ { - "name": "slot", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" }, { - "name": "item", - "type": "slot" + "name": "accepted", + "type": "bool" } ] ], @@ -3473,146 +3487,132 @@ } ] ], - "packet_arm_animation": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", + "type": "varint" + }, + { + "name": "mouse", "type": "varint" + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], - "packet_spectate": [ + "packet_use_item": [ "container", [ { - "name": "target", - "type": "UUID" + "name": "hand", + "type": "varint" } ] ], - "packet_block_place": [ + "packet_vehicle_move": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "hand", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "cursorX", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "cursorY", - "type": "i8" + "name": "yaw", + "type": "f32" }, { - "name": "cursorZ", - "type": "i8" + "name": "pitch", + "type": "f32" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" - } - ] - ], - "packet": [ - "container", - [ + "name": "windowId", + "type": "u8" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" - } - } - ] + "name": "slot", + "type": "i16" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } - } - ] + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.9.4/protocol.json b/data/pc/1.9.4/protocol.json index bccdb3522..9985a5e62 100644 --- a/data/pc/1.9.4/protocol.json +++ b/data/pc/1.9.4/protocol.json @@ -1,116 +1,53 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 255, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ + "anon": true, + "type": [ "container", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "key", + "type": "u8" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "type", + "type": "i8" } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -155,42 +92,105 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ + "compareTo": "blockId", + "default": [ "container", [ { - "name": "key", - "type": "u8" + "name": "itemCount", + "type": "i8" }, { - "name": "type", - "type": "i8" + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -203,8 +203,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -224,36 +224,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -262,11 +232,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -277,38 +247,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -317,11 +299,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -332,21 +314,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -357,6 +331,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -365,11 +352,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -380,13 +367,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -394,6 +394,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -442,16 +486,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -460,13 +499,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -477,28 +514,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -523,6 +545,21 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -531,11 +568,85 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "sound_effect", + "0x47": "playerlist_header", + "0x48": "collect", + "0x49": "entity_teleport", + "0x4a": "entity_update_attributes", + "0x4b": "entity_effect" + }, + "type": "varint" } ] }, @@ -546,66 +657,106 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } - } + "abilities": "packet_abilities", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "custom_payload": "packet_custom_payload", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", + "name": "flags", "type": "i8" }, { - "name": "objectData", - "type": "i32" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "velocity", - "type": "vec3i16" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_animation": [ "container", [ { @@ -613,49 +764,25 @@ "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "animation", + "type": "u8" } ] ], - "packet_spawn_entity_weather": [ + "packet_attach_entity": [ "container", [ { "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "type": "i32" }, { - "name": "z", - "type": "f64" + "name": "vehicleId", + "type": "i32" } ] ], - "packet_spawn_entity_living": [ + "packet_bed": [ "container", [ { @@ -663,48 +790,33 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "u8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_block_action": [ + "container", + [ { - "name": "pitch", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "headPitch", - "type": "i8" + "name": "byte1", + "type": "u8" }, { - "name": "velocity", - "type": "vec3i16" + "name": "byte2", + "type": "u8" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "blockId", + "type": "varint" } ] ], - "packet_spawn_entity_painting": [ + "packet_block_break_animation": [ "container", [ { @@ -712,248 +824,244 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" + "name": "location", + "type": "position" }, { - "name": "title", - "type": "string" - }, + "name": "destroyStage", + "type": "i8" + } + ] + ], + "packet_block_change": [ + "container", + [ { "name": "location", "type": "position" }, { - "name": "direction", - "type": "u8" + "name": "type", + "type": "varint" } ] ], - "packet_named_entity_spawn": [ + "packet_boss_bar": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "playerUUID", - "type": "UUID" + "name": "action", + "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "title", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "3": "string" + } + } + ] }, { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" + "name": "health", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "color", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "dividers", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", + "name": "flags", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } } ] } ] ], - "packet_block_break_animation": [ + "packet_camera": [ "container", [ { - "name": "entityId", + "name": "cameraId", "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" } ] ], - "packet_tile_entity_data": [ + "packet_chat": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "message", + "type": "string" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "position", + "type": "i8" } ] ], - "packet_block_action": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "byte1", - "type": "u8" - }, - { - "name": "byte2", + "name": "windowId", "type": "u8" - }, - { - "name": "blockId", - "type": "varint" } ] ], - "packet_block_change": [ + "packet_collect": [ "container", [ { - "name": "location", - "type": "position" + "name": "collectedEntityId", + "type": "varint" }, { - "name": "type", + "name": "collectorEntityId", "type": "varint" } ] ], - "packet_boss_bar": [ + "packet_combat_event": [ "container", [ { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", + "name": "event", "type": "varint" }, { - "name": "title", + "name": "duration", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "string", - "3": "string" - }, - "default": "void" + "1": "varint" + } } ] }, { - "name": "health", + "name": "playerId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" + "2": "varint" + } } ] }, { - "name": "color", + "name": "entityId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "dividers", + "name": "message", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "2": "string" + } } ] + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], @@ -966,264 +1074,282 @@ } ] ], - "packet_tab_complete": [ + "packet_entity": [ "container", [ { - "name": "matches", + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "varint" } ] } ] ], - "packet_chat": [ + "packet_entity_effect": [ "container", [ { - "name": "message", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "position", + "name": "effectId", "type": "i8" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ + }, { - "name": "chunkX", - "type": "i32" + "name": "amplifier", + "type": "i8" }, { - "name": "chunkZ", - "type": "i32" + "name": "duration", + "type": "varint" }, { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] - } - ] + "name": "hideParticles", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "slot", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "inventoryType", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "windowTitle", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "pitch", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ - { - "name": "windowId", - "type": "i8" }, { - "name": "slot", + "name": "dZ", "type": "i16" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ + "name": "yaw", + "type": "i8" + }, { - "name": "itemID", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_status": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "data", - "type": "restBuffer" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_named_sound_effect": [ + "packet_entity_teleport": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "u8" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_velocity": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -1286,20 +1412,7 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ + "packet_game_state_change": [ "container", [ { @@ -1312,151 +1425,30 @@ } ] ], - "packet_keep_alive": [ + "packet_held_item_slot": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "slot", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "groundUp", - "type": "bool" - }, - { - "name": "bitMap", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" } ] ], - "packet_world_particles": [ + "packet_kick_disconnect": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, - { - "name": "particles", - "type": "i32" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "particleId", - "fields": { - "36": [ - "array", - { - "count": 2, - "type": "varint" - } - ], - "37": [ - "array", - { - "count": 1, - "type": "varint" - } - ], - "38": [ - "array", - { - "count": 1, - "type": "varint" - } - ] - }, - "default": "void" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -1544,10 +1536,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1557,10 +1549,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1570,10 +1562,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1583,46 +1575,100 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" + }, + { + "name": "bitMap", "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "dY", - "type": "i16" + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] + } + ] + ], + "packet_multi_block_change": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" }, { - "name": "dZ", - "type": "i16" + "name": "chunkZ", + "type": "i32" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_entity_move_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -1630,16 +1676,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dY", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -1650,63 +1700,41 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { "name": "pitch", - "type": "f32" + "type": "u8" } ] ], @@ -1719,80 +1747,35 @@ } ] ], - "packet_abilities": [ + "packet_open_window": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" + "name": "windowId", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_combat_event": [ - "container", - [ - { - "name": "event", - "type": "varint" + "name": "inventoryType", + "type": "string" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { "name": "entityId", "type": [ "switch", { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -1806,14 +1789,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -1890,37 +1873,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -1932,6 +1915,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -1965,7 +1961,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -1973,23 +1969,20 @@ "type": "varint" }, { - "name": "location", - "type": "position" - } - ] - ], - "packet_entity_destroy": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -2040,223 +2033,218 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ + { + "name": "name", + "type": "string" + }, { "name": "action", - "type": "varint" + "type": "i8" }, { - "name": "radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "0": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "x", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "new_radius", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] - }, - { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_camera": [ + "packet_set_cooldown": [ "container", [ { - "name": "cameraId", + "name": "itemID", + "type": "varint" + }, + { + "name": "cooldownTicks", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_set_passengers": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "entityId", + "type": "varint" + }, + { + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_scoreboard_display_objective": [ + "packet_set_slot": [ "container", [ { - "name": "position", + "name": "windowId", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_entity_metadata": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "soundCategory", + "type": "varint" + }, { - "name": "entityId", + "name": "x", "type": "i32" }, { - "name": "vehicleId", + "name": "y", "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "u8" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -2264,91 +2252,73 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "item", - "type": "slot" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_experience": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "totalExperience", - "type": "varint" - } - ] - ], - "packet_update_health": [ - "container", - [ + "name": "type", + "type": "u8" + }, { - "name": "health", - "type": "f32" + "name": "x", + "type": "f64" }, { - "name": "food", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_scoreboard_objective": [ - "container", - [ + "name": "z", + "type": "f64" + }, { - "name": "name", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "action", + "name": "pitch", "type": "i8" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "headPitch", + "type": "i8" }, { - "name": "type", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_set_passengers": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -2356,16 +2326,98 @@ "type": "varint" }, { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", + "type": "string" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" + } + ] + ], + "packet_spawn_entity_weather": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] ], "packet_teams": [ "container", @@ -2384,11 +2436,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2398,11 +2450,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2412,11 +2464,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2426,11 +2478,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2440,11 +2492,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2454,11 +2506,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2468,11 +2520,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2482,6 +2534,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -2504,62 +2557,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -2576,11 +2593,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string" - }, - "default": "void" + } } ] }, @@ -2590,10 +2607,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] }, @@ -2603,10 +2620,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] }, @@ -2616,81 +2633,78 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_sound_effect": [ + "packet_transaction": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "soundCategory", - "type": "varint" + "name": "action", + "type": "i16" }, { - "name": "x", - "type": "i32" - }, + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ { - "name": "y", + "name": "chunkX", "type": "i32" }, { - "name": "z", + "name": "chunkZ", "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "u8" } ] ], - "packet_playerlist_header": [ + "packet_update_health": [ "container", [ { - "name": "header", - "type": "string" + "name": "health", + "type": "f32" }, { - "name": "footer", - "type": "string" + "name": "food", + "type": "varint" + }, + { + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_collect": [ + "packet_update_time": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" + "name": "age", + "type": "i64" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "time", + "type": "i64" } ] ], - "packet_entity_teleport": [ + "packet_vehicle_move": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "x", "type": "f64" @@ -2705,100 +2719,269 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "onGround", - "type": "bool" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_entity_update_attributes": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "properties", + "name": "radius", "type": [ - "array", + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], + "packet_world_particles": [ + "container", + [ + { + "name": "particleId", + "type": "i32" + }, + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "particleId", + "default": "void", + "fields": { + "36": [ + "array", + { + "count": 2, + "type": "varint" + } + ], + "37": [ + "array", + { + "count": 1, + "type": "varint" + } + ], + "38": [ + "array", + { + "count": 1, + "type": "varint" + } + ] + } + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -2807,85 +2990,39 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "sound_effect", - "0x47": "playerlist_header", - "0x48": "collect", - "0x49": "entity_teleport", - "0x4a": "entity_update_attributes", - "0x4b": "entity_effect" - } + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" + }, + "type": "varint" } ] }, @@ -2896,118 +3033,111 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", + "abilities": "packet_abilities", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "look": "packet_look", "position": "packet_position", - "bed": "packet_bed", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect" + "position_look": "packet_position_look", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_sign": "packet_update_sign", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" + } + ] + ], + "packet_arm_animation": [ + "container", + [ + { + "name": "hand", + "type": "varint" + } + ] + ], + "packet_block_dig": [ + "container", + [ + { + "name": "status", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_tab_complete": [ + "packet_block_place": [ "container", [ { - "name": "text", - "type": "string" + "name": "location", + "type": "position" }, { - "name": "assumeCommand", - "type": "bool" + "name": "direction", + "type": "varint" }, { - "name": "lookedAtBlock", - "type": [ - "option", - "position" - ] + "name": "hand", + "type": "varint" + }, + { + "name": "cursorX", + "type": "i8" + }, + { + "name": "cursorY", + "type": "i8" + }, + { + "name": "cursorZ", + "type": "i8" } ] ], @@ -3029,49 +3159,25 @@ } ] ], - "packet_settings": [ + "packet_close_window": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", + "name": "windowId", "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" } ] ], - "packet_transaction": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "channel", + "type": "string" }, { - "name": "accepted", - "type": "bool" + "name": "data", + "type": "restBuffer" } ] ], @@ -3088,129 +3194,64 @@ } ] ], - "packet_window_click": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "mode", - "type": "i8" + "name": "actionId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_close_window": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_held_item_slot": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "slotId", + "type": "i16" } ] ], - "packet_use_entity": [ + "packet_keep_alive": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] } ] ], - "packet_keep_alive": [ + "packet_look": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -3264,118 +3305,80 @@ } ] ], - "packet_look": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "hash", + "type": "string" }, { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_flying": [ + "packet_set_creative_slot": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_vehicle_move": [ + "packet_settings": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "locale", + "type": "string" }, { - "name": "yaw", - "type": "f32" + "name": "viewDistance", + "type": "i8" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_steer_boat": [ - "container", - [ - { - "name": "leftPaddle", - "type": "bool" + "name": "chatFlags", + "type": "varint" }, { - "name": "rightPaddle", + "name": "chatColors", "type": "bool" - } - ] - ], - "packet_abilities": [ - "container", - [ - { - "name": "flags", - "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "skinParts", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -3396,38 +3399,49 @@ } ] ], - "packet_resource_pack_receive": [ + "packet_tab_complete": [ "container", [ { - "name": "hash", + "name": "text", "type": "string" }, { - "name": "result", - "type": "varint" + "name": "assumeCommand", + "type": "bool" + }, + { + "name": "lookedAtBlock", + "type": [ + "option", + "position" + ] } ] ], - "packet_held_item_slot": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "teleportId", + "type": "varint" } ] ], - "packet_set_creative_slot": [ + "packet_transaction": [ "container", [ { - "name": "slot", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" }, { - "name": "item", - "type": "slot" + "name": "accepted", + "type": "bool" } ] ], @@ -3456,146 +3470,132 @@ } ] ], - "packet_arm_animation": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", + "type": "varint" + }, + { + "name": "mouse", "type": "varint" + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], - "packet_spectate": [ + "packet_use_item": [ "container", [ { - "name": "target", - "type": "UUID" + "name": "hand", + "type": "varint" } ] ], - "packet_block_place": [ + "packet_vehicle_move": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "hand", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "cursorX", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "cursorY", - "type": "i8" + "name": "yaw", + "type": "f32" }, { - "name": "cursorZ", - "type": "i8" + "name": "pitch", + "type": "f32" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" - } - ] - ], - "packet": [ - "container", - [ + "name": "windowId", + "type": "u8" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" - } - } - ] + "name": "slot", + "type": "i16" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } - } - ] + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/1.9/protocol.json b/data/pc/1.9/protocol.json index 640171d3a..b271a90ad 100644 --- a/data/pc/1.9/protocol.json +++ b/data/pc/1.9/protocol.json @@ -1,116 +1,53 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 255, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ + "anon": true, + "type": [ "container", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "key", + "type": "u8" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "type", + "type": "i8" } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -155,42 +92,105 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ + "compareTo": "blockId", + "default": [ "container", [ { - "name": "key", - "type": "u8" + "name": "itemCount", + "type": "i8" }, { - "name": "type", - "type": "i8" + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -203,8 +203,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -224,36 +224,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -262,11 +232,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -277,38 +247,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -317,11 +299,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -332,21 +314,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -357,6 +331,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -365,11 +352,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -380,13 +367,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -394,6 +394,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -442,16 +486,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -460,13 +499,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -477,28 +514,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -523,6 +545,21 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -531,11 +568,86 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "update_sign", + "0x47": "sound_effect", + "0x48": "playerlist_header", + "0x49": "collect", + "0x4a": "entity_teleport", + "0x4b": "entity_update_attributes", + "0x4c": "entity_effect" + }, + "type": "varint" } ] }, @@ -546,66 +658,107 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } + "abilities": "packet_abilities", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "custom_payload": "packet_custom_payload", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "update_health": "packet_update_health", + "update_sign": "packet_update_sign", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", + "name": "flags", "type": "i8" }, { - "name": "objectData", - "type": "i32" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "velocity", - "type": "vec3i16" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_animation": [ "container", [ { @@ -613,49 +766,25 @@ "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "animation", + "type": "u8" } ] ], - "packet_spawn_entity_weather": [ + "packet_attach_entity": [ "container", [ { "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "type": "i32" }, { - "name": "z", - "type": "f64" + "name": "vehicleId", + "type": "i32" } ] ], - "packet_spawn_entity_living": [ + "packet_bed": [ "container", [ { @@ -663,48 +792,33 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "u8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_block_action": [ + "container", + [ { - "name": "pitch", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "headPitch", - "type": "i8" + "name": "byte1", + "type": "u8" }, { - "name": "velocity", - "type": "vec3i16" + "name": "byte2", + "type": "u8" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "blockId", + "type": "varint" } ] ], - "packet_spawn_entity_painting": [ + "packet_block_break_animation": [ "container", [ { @@ -712,248 +826,244 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" + "name": "location", + "type": "position" }, { - "name": "title", - "type": "string" - }, + "name": "destroyStage", + "type": "i8" + } + ] + ], + "packet_block_change": [ + "container", + [ { "name": "location", "type": "position" }, { - "name": "direction", - "type": "u8" + "name": "type", + "type": "varint" } ] ], - "packet_named_entity_spawn": [ + "packet_boss_bar": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "playerUUID", - "type": "UUID" + "name": "action", + "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "title", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "3": "string" + } + } + ] }, { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" + "name": "health", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "color", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "dividers", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", + "name": "flags", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } } ] } ] ], - "packet_block_break_animation": [ + "packet_camera": [ "container", [ { - "name": "entityId", + "name": "cameraId", "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" } ] ], - "packet_tile_entity_data": [ + "packet_chat": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "message", + "type": "string" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "position", + "type": "i8" } ] ], - "packet_block_action": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "byte1", - "type": "u8" - }, - { - "name": "byte2", + "name": "windowId", "type": "u8" - }, - { - "name": "blockId", - "type": "varint" } ] ], - "packet_block_change": [ + "packet_collect": [ "container", [ { - "name": "location", - "type": "position" + "name": "collectedEntityId", + "type": "varint" }, { - "name": "type", + "name": "collectorEntityId", "type": "varint" } ] ], - "packet_boss_bar": [ + "packet_combat_event": [ "container", [ { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", + "name": "event", "type": "varint" }, { - "name": "title", + "name": "duration", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "string", - "3": "string" - }, - "default": "void" + "1": "varint" + } } ] }, { - "name": "health", + "name": "playerId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" + "2": "varint" + } } ] }, { - "name": "color", + "name": "entityId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "dividers", + "name": "message", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "2": "string" + } } ] + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], @@ -966,264 +1076,282 @@ } ] ], - "packet_tab_complete": [ + "packet_entity": [ "container", [ { - "name": "matches", + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "varint" } ] } ] ], - "packet_chat": [ + "packet_entity_effect": [ "container", [ { - "name": "message", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "position", + "name": "effectId", "type": "i8" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ + }, { - "name": "chunkX", - "type": "i32" + "name": "amplifier", + "type": "i8" }, { - "name": "chunkZ", - "type": "i32" + "name": "duration", + "type": "varint" }, { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] - } - ] + "name": "hideParticles", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "slot", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "inventoryType", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "windowTitle", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "pitch", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ - { - "name": "windowId", - "type": "i8" }, { - "name": "slot", + "name": "dZ", "type": "i16" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ + "name": "yaw", + "type": "i8" + }, { - "name": "itemID", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_status": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "data", - "type": "restBuffer" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_named_sound_effect": [ + "packet_entity_teleport": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "u8" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_velocity": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -1286,20 +1414,7 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ + "packet_game_state_change": [ "container", [ { @@ -1312,141 +1427,30 @@ } ] ], - "packet_keep_alive": [ + "packet_held_item_slot": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "slot", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "groundUp", - "type": "bool" - }, - { - "name": "bitMap", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" } ] ], - "packet_world_particles": [ + "packet_kick_disconnect": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, - { - "name": "particles", - "type": "i32" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "particleId", - "fields": { - "36": [ - "array", - { - "count": 2, - "type": "varint" - } - ], - "37": [ - "array", - { - "count": 1, - "type": "varint" - } - ], - "38": [ - "array", - { - "count": 1, - "type": "varint" - } - ] - }, - "default": "void" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -1534,10 +1538,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1547,10 +1551,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1560,10 +1564,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1573,46 +1577,90 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "z", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "groundUp", + "type": "bool" }, { - "name": "dZ", - "type": "i16" + "name": "bitMap", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_multi_block_change": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + }, + { + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_named_entity_spawn": [ "container", [ { @@ -1620,16 +1668,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dY", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -1640,63 +1692,41 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" }, { - "name": "yaw", - "type": "i8" + "name": "x", + "type": "i32" }, { - "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "y", + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { "name": "pitch", - "type": "f32" + "type": "u8" } ] ], @@ -1709,80 +1739,35 @@ } ] ], - "packet_abilities": [ + "packet_open_window": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" + "name": "windowId", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_combat_event": [ - "container", - [ - { - "name": "event", - "type": "varint" + "name": "inventoryType", + "type": "string" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { "name": "entityId", "type": [ "switch", { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -1796,14 +1781,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -1880,37 +1865,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -1922,6 +1907,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -1955,7 +1953,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -1963,23 +1961,20 @@ "type": "varint" }, { - "name": "location", - "type": "position" - } - ] - ], - "packet_entity_destroy": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -2030,223 +2025,218 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ + { + "name": "name", + "type": "string" + }, { "name": "action", - "type": "varint" + "type": "i8" }, { - "name": "radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "0": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "x", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "new_radius", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "1": "void" + } } ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "itemID", + "type": "varint" }, { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] - }, - { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" - } - ] + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_camera": [ + "packet_set_passengers": [ "container", [ { - "name": "cameraId", + "name": "entityId", "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + }, { - "name": "slot", - "type": "i8" + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_scoreboard_display_objective": [ + "packet_set_slot": [ "container", [ { - "name": "position", + "name": "windowId", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_entity_metadata": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "soundCategory", + "type": "varint" + }, { - "name": "entityId", + "name": "x", "type": "i32" }, { - "name": "vehicleId", + "name": "y", + "type": "i32" + }, + { + "name": "z", "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "u8" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -2254,91 +2244,73 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "item", - "type": "slot" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_experience": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "totalExperience", - "type": "varint" - } - ] - ], - "packet_update_health": [ - "container", - [ + "name": "type", + "type": "u8" + }, { - "name": "health", - "type": "f32" + "name": "x", + "type": "f64" }, { - "name": "food", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_scoreboard_objective": [ - "container", - [ + "name": "z", + "type": "f64" + }, { - "name": "name", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "action", + "name": "pitch", "type": "i8" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "headPitch", + "type": "i8" }, { - "name": "type", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_set_passengers": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -2346,22 +2318,104 @@ "type": "varint" }, { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_teams": [ - "container", - [ - { - "name": "team", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", + "type": "string" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" + } + ] + ], + "packet_spawn_entity_weather": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], + "packet_teams": [ + "container", + [ + { + "name": "team", "type": "string" }, { @@ -2374,11 +2428,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2388,11 +2442,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2402,11 +2456,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2416,11 +2470,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2430,11 +2484,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2444,11 +2498,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2458,11 +2512,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2472,6 +2526,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -2494,62 +2549,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -2566,11 +2585,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string" - }, - "default": "void" + } } ] }, @@ -2580,10 +2599,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] }, @@ -2593,10 +2612,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] }, @@ -2606,15 +2625,62 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] } ] ], + "packet_transaction": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + } + ] + ], + "packet_update_health": [ + "container", + [ + { + "name": "health", + "type": "f32" + }, + { + "name": "food", + "type": "varint" + }, + { + "name": "foodSaturation", + "type": "f32" + } + ] + ], "packet_update_sign": [ "container", [ @@ -2640,270 +2706,342 @@ } ] ], - "packet_sound_effect": [ + "packet_update_time": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "age", + "type": "i64" }, { - "name": "soundCategory", - "type": "varint" - }, + "name": "time", + "type": "i64" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", + "name": "yaw", "type": "f32" }, { "name": "pitch", - "type": "u8" + "type": "f32" } ] ], - "packet_playerlist_header": [ + "packet_window_items": [ "container", [ { - "name": "header", - "type": "string" + "name": "windowId", + "type": "u8" }, { - "name": "footer", - "type": "string" - } - ] - ], - "packet_collect": [ - "container", - [ - { - "name": "collectedEntityId", - "type": "varint" - }, - { - "name": "collectorEntityId", - "type": "varint" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_entity_teleport": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] }, { - "name": "y", - "type": "f64" + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { "name": "z", - "type": "f64" + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_update_attributes": [ - "container", - [ + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, { - "name": "entityId", - "type": "varint" + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] }, { - "name": "properties", + "name": "warning_time", "type": [ - "array", + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], - "packet": [ + "packet_world_particles": [ "container", [ { - "name": "name", + "name": "particleId", + "type": "i32" + }, + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", "type": [ - "mapper", + "switch", { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "update_sign", - "0x47": "sound_effect", - "0x48": "playerlist_header", - "0x49": "collect", - "0x4a": "entity_teleport", - "0x4b": "entity_update_attributes", - "0x4c": "entity_effect" + "compareTo": "particleId", + "default": "void", + "fields": { + "36": [ + "array", + { + "count": 2, + "type": "varint" + } + ], + "37": [ + "array", + { + "count": 1, + "type": "varint" + } + ], + "38": [ + "array", + { + "count": 1, + "type": "varint" + } + ] } } ] + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" + }, + "type": "varint" + } + ] }, { "name": "params", @@ -2912,119 +3050,111 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", + "abilities": "packet_abilities", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "look": "packet_look", "position": "packet_position", - "bed": "packet_bed", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", + "position_look": "packet_position_look", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", "update_sign": "packet_update_sign", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect" + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" + } + ] + ], + "packet_arm_animation": [ + "container", + [ + { + "name": "hand", + "type": "varint" + } + ] + ], + "packet_block_dig": [ + "container", + [ + { + "name": "status", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_tab_complete": [ + "packet_block_place": [ "container", [ { - "name": "text", - "type": "string" + "name": "location", + "type": "position" }, { - "name": "assumeCommand", - "type": "bool" + "name": "direction", + "type": "varint" }, { - "name": "lookedAtBlock", - "type": [ - "option", - "position" - ] + "name": "hand", + "type": "varint" + }, + { + "name": "cursorX", + "type": "i8" + }, + { + "name": "cursorY", + "type": "i8" + }, + { + "name": "cursorZ", + "type": "i8" } ] ], @@ -3046,49 +3176,25 @@ } ] ], - "packet_settings": [ + "packet_close_window": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", + "name": "windowId", "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" } ] ], - "packet_transaction": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "channel", + "type": "string" }, { - "name": "accepted", - "type": "bool" + "name": "data", + "type": "restBuffer" } ] ], @@ -3105,129 +3211,64 @@ } ] ], - "packet_window_click": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "mode", - "type": "i8" + "name": "actionId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_close_window": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_held_item_slot": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "slotId", + "type": "i16" } ] ], - "packet_use_entity": [ + "packet_keep_alive": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] } ] ], - "packet_keep_alive": [ + "packet_look": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -3281,118 +3322,80 @@ } ] ], - "packet_look": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "hash", + "type": "string" }, { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_flying": [ + "packet_set_creative_slot": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_vehicle_move": [ + "packet_settings": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "locale", + "type": "string" }, { - "name": "yaw", - "type": "f32" + "name": "viewDistance", + "type": "i8" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_steer_boat": [ - "container", - [ - { - "name": "leftPaddle", - "type": "bool" + "name": "chatFlags", + "type": "varint" }, { - "name": "rightPaddle", + "name": "chatColors", "type": "bool" - } - ] - ], - "packet_abilities": [ - "container", - [ - { - "name": "flags", - "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "skinParts", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -3413,38 +3416,49 @@ } ] ], - "packet_resource_pack_receive": [ + "packet_tab_complete": [ "container", [ { - "name": "hash", + "name": "text", "type": "string" }, { - "name": "result", - "type": "varint" + "name": "assumeCommand", + "type": "bool" + }, + { + "name": "lookedAtBlock", + "type": [ + "option", + "position" + ] } ] ], - "packet_held_item_slot": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "teleportId", + "type": "varint" } ] ], - "packet_set_creative_slot": [ + "packet_transaction": [ "container", [ { - "name": "slot", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" }, { - "name": "item", - "type": "slot" + "name": "accepted", + "type": "bool" } ] ], @@ -3473,146 +3487,132 @@ } ] ], - "packet_arm_animation": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", + "type": "varint" + }, + { + "name": "mouse", "type": "varint" + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], - "packet_spectate": [ + "packet_use_item": [ "container", [ { - "name": "target", - "type": "UUID" + "name": "hand", + "type": "varint" } ] ], - "packet_block_place": [ + "packet_vehicle_move": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "hand", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "cursorX", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "cursorY", - "type": "i8" + "name": "yaw", + "type": "f32" }, { - "name": "cursorZ", - "type": "i8" + "name": "pitch", + "type": "f32" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" - } - ] - ], - "packet": [ - "container", - [ + "name": "windowId", + "type": "u8" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" - } - } - ] + "name": "slot", + "type": "i16" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } - } - ] + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/15w40b/protocol.json b/data/pc/15w40b/protocol.json index 2b5f6d4a0..46a2c3b8d 100644 --- a/data/pc/15w40b/protocol.json +++ b/data/pc/15w40b/protocol.json @@ -1,116 +1,53 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 255, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ + "anon": true, + "type": [ "container", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "key", + "type": "u8" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "type", + "type": "i8" } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -155,42 +92,105 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ + "compareTo": "blockId", + "default": [ "container", [ { - "name": "key", - "type": "u8" + "name": "itemCount", + "type": "i8" }, { - "name": "type", - "type": "i8" + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -203,8 +203,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -224,36 +224,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -262,11 +232,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -277,38 +247,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -317,11 +299,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -332,21 +314,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -357,6 +331,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -365,11 +352,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -380,13 +367,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -394,6 +394,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -442,16 +486,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -460,13 +499,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -477,28 +514,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -523,6 +545,21 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -531,11 +568,84 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "kick_disconnect", + "0x1a": "entity_status", + "0x1b": "explosion", + "0x1c": "unload_chunk", + "0x1d": "set_compression", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "named_sound_effect", + "0x24": "login", + "0x25": "map", + "0x26": "rel_entity_move", + "0x27": "entity_move_look", + "0x28": "entity_look", + "0x29": "entity", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "scoreboard_team", + "0x41": "scoreboard_score", + "0x42": "spawn_position", + "0x43": "update_time", + "0x44": "title", + "0x45": "update_sign", + "0x46": "playerlist_header", + "0x47": "collect", + "0x48": "entity_teleport", + "0x49": "update_attributes", + "0x4a": "entity_effect" + }, + "type": "varint" } ] }, @@ -546,416 +656,432 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } - } - ] - } - ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "varint" + "abilities": "packet_abilities", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "custom_payload": "packet_custom_payload", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "scoreboard_team": "packet_scoreboard_team", + "set_compression": "packet_set_compression", + "set_cooldown": "packet_set_cooldown", + "set_slot": "packet_set_slot", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "update_attributes": "packet_update_attributes", + "update_health": "packet_update_health", + "update_sign": "packet_update_sign", + "update_time": "packet_update_time", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_login": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "i32" - }, - { - "name": "gameMode", - "type": "u8" - }, - { - "name": "dimension", + "name": "flags", "type": "i8" }, { - "name": "difficulty", - "type": "u8" - }, - { - "name": "maxPlayers", - "type": "u8" - }, - { - "name": "levelType", - "type": "string" - }, - { - "name": "reducedDebugInfo", - "type": "bool" - } - ] - ], - "packet_chat": [ - "container", - [ - { - "name": "message", - "type": "string" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "position", - "type": "i8" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_update_time": [ + "packet_animation": [ "container", [ { - "name": "age", - "type": "i64" + "name": "entityId", + "type": "varint" }, { - "name": "time", - "type": "i64" + "name": "animation", + "type": "u8" } ] ], - "packet_entity_equipment": [ + "packet_attach_entity": [ "container", [ { "name": "entityId", - "type": "varint" + "type": "i32" }, { - "name": "slot", - "type": "varint" + "name": "vehicleId", + "type": "i32" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_spawn_position": [ - "container", - [ - { - "name": "location", - "type": "position" + "name": "leash", + "type": "bool" } ] ], - "packet_update_health": [ + "packet_bed": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", + "name": "entityId", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_respawn": [ + "packet_block_action": [ "container", [ { - "name": "dimension", - "type": "i32" + "name": "location", + "type": "position" }, { - "name": "difficulty", + "name": "byte1", "type": "u8" }, { - "name": "gamemode", + "name": "byte2", "type": "u8" }, { - "name": "levelType", - "type": "string" + "name": "blockId", + "type": "varint" } ] ], - "packet_position": [ + "packet_block_break_animation": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "location", + "type": "position" }, { - "name": "flags", - "type": "i8" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ - { - "name": "slot", + "name": "destroyStage", "type": "i8" } ] ], - "packet_bed": [ + "packet_block_change": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "location", "type": "position" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" }, { - "name": "animation", - "type": "u8" + "name": "type", + "type": "varint" } ] ], - "packet_named_entity_spawn": [ + "packet_boss_bar": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", + "name": "entityUUID", "type": "UUID" }, { - "name": "x", - "type": "i32" + "name": "action", + "type": "varint" }, { - "name": "y", - "type": "i32" - }, + "name": "title", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "3": "string" + } + } + ] + }, { - "name": "z", - "type": "i32" + "name": "health", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "color", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "dividers", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "metadata", - "type": "entityMetadata" + "name": "flags", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } + } + ] } ] ], - "packet_collect": [ + "packet_camera": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" - }, - { - "name": "collectorEntityId", + "name": "cameraId", "type": "varint" } ] ], - "packet_spawn_entity": [ + "packet_chat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "pitch", - "type": "i8" + "name": "message", + "type": "string" }, { - "name": "yaw", + "name": "position", "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, + } + ] + ], + "packet_close_window": [ + "container", + [ { - "name": "velocity", - "type": "vec3i16" + "name": "windowId", + "type": "u8" } ] ], - "packet_spawn_entity_living": [ + "packet_collect": [ "container", [ { - "name": "entityId", + "name": "collectedEntityId", "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "u8" - }, + "name": "collectorEntityId", + "type": "varint" + } + ] + ], + "packet_combat_event": [ + "container", + [ { - "name": "x", - "type": "i32" + "name": "event", + "type": "varint" }, { - "name": "y", - "type": "i32" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "z", - "type": "i32" + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "i32", + "2": "i32" + } + } + ] }, { - "name": "pitch", - "type": "i8" - }, + "name": "message", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "string" + } + } + ] + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ { - "name": "headPitch", - "type": "i8" + "name": "windowId", + "type": "u8" }, { - "name": "velocity", - "type": "vec3i16" + "name": "property", + "type": "i16" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "value", + "type": "i16" } ] ], - "packet_spawn_entity_painting": [ + "packet_custom_payload": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "title", + "name": "channel", "type": "string" }, { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "u8" + "name": "data", + "type": "restBuffer" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_difficulty": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "count", - "type": "i16" + "name": "difficulty", + "type": "u8" } ] ], - "packet_entity_velocity": [ + "packet_entity": [ "container", [ { "name": "entityId", "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" } ] ], @@ -974,16 +1100,32 @@ } ] ], - "packet_entity": [ + "packet_entity_effect": [ "container", [ { "name": "entityId", "type": "varint" + }, + { + "name": "effectId", + "type": "i8" + }, + { + "name": "amplifier", + "type": "i8" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "bool" } ] ], - "packet_rel_entity_move": [ + "packet_entity_equipment": [ "container", [ { @@ -991,20 +1133,25 @@ "type": "varint" }, { - "name": "dX", - "type": "i8" + "name": "slot", + "type": "varint" }, { - "name": "dY", - "type": "i8" - }, + "name": "item", + "type": "slot" + } + ] + ], + "packet_entity_head_rotation": [ + "container", + [ { - "name": "dZ", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "headYaw", + "type": "i8" } ] ], @@ -1029,6 +1176,19 @@ } ] ], + "packet_entity_metadata": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "metadata", + "type": "entityMetadata" + } + ] + ], "packet_entity_move_look": [ "container", [ @@ -1062,6 +1222,19 @@ } ] ], + "packet_entity_status": [ + "container", + [ + { + "name": "entityId", + "type": "i32" + }, + { + "name": "entityStatus", + "type": "i8" + } + ] + ], "packet_entity_teleport": [ "container", [ @@ -1095,7 +1268,7 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_entity_velocity": [ "container", [ { @@ -1103,163 +1276,261 @@ "type": "varint" }, { - "name": "headYaw", - "type": "i8" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_status": [ + "packet_experience": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "experienceBar", + "type": "f32" }, { - "name": "entityStatus", - "type": "i8" + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], - "packet_attach_entity": [ + "packet_explosion": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "x", + "type": "f32" }, { - "name": "vehicleId", - "type": "i32" + "name": "y", + "type": "f32" }, { - "name": "leash", - "type": "bool" + "name": "z", + "type": "f32" + }, + { + "name": "radius", + "type": "f32" + }, + { + "name": "affectedBlockOffsets", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + } + ] + ] + } + ] + }, + { + "name": "playerMotionX", + "type": "f32" + }, + { + "name": "playerMotionY", + "type": "f32" + }, + { + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_entity_metadata": [ + "packet_game_state_change": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "reason", + "type": "u8" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "gameMode", + "type": "f32" } ] ], - "packet_entity_effect": [ + "packet_held_item_slot": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "effectId", - "type": "i8" - }, - { - "name": "amplifier", + "name": "slot", "type": "i8" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "hideParticles", - "type": "bool" } ] ], - "packet_remove_entity_effect": [ + "packet_keep_alive": [ "container", [ { - "name": "entityId", + "name": "keepAliveId", "type": "varint" - }, + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "effectId", - "type": "i8" + "name": "reason", + "type": "string" } ] ], - "packet_experience": [ + "packet_login": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "i32" }, { - "name": "level", - "type": "varint" + "name": "gameMode", + "type": "u8" }, { - "name": "totalExperience", - "type": "varint" + "name": "dimension", + "type": "i8" + }, + { + "name": "difficulty", + "type": "u8" + }, + { + "name": "maxPlayers", + "type": "u8" + }, + { + "name": "levelType", + "type": "string" + }, + { + "name": "reducedDebugInfo", + "type": "bool" } ] ], - "packet_update_attributes": [ + "packet_map": [ "container", [ { - "name": "entityId", + "name": "itemDamage", "type": "varint" }, { - "name": "properties", + "name": "scale", + "type": "i8" + }, + { + "name": "trackingPosition", + "type": "bool" + }, + { + "name": "icons", "type": [ "array", { - "countType": "i32", + "countType": "varint", "type": [ "container", [ { - "name": "key", - "type": "string" + "name": "directionAndType", + "type": "i8" }, { - "name": "value", - "type": "f64" + "name": "x", + "type": "i8" }, { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] + "name": "z", + "type": "i8" } ] ] } ] + }, + { + "name": "columns", + "type": "i8" + }, + { + "name": "rows", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "i8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "i8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "i8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } + } + ] } ] ], @@ -1332,41 +1603,7 @@ } ] ], - "packet_block_change": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "type", - "type": "varint" - } - ] - ], - "packet_block_action": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "byte1", - "type": "u8" - }, - { - "name": "byte2", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ], - "packet_block_break_animation": [ + "packet_named_entity_spawn": [ "container", [ { @@ -1374,92 +1611,32 @@ "type": "varint" }, { - "name": "location", - "type": "position" + "name": "playerUUID", + "type": "UUID" }, - { - "name": "destroyStage", - "type": "i8" - } - ] - ], - "packet_explosion": [ - "container", - [ { "name": "x", - "type": "f32" + "type": "i32" }, { "name": "y", - "type": "f32" + "type": "i32" }, { "name": "z", - "type": "f32" - }, - { - "name": "radius", - "type": "f32" - }, - { - "name": "affectedBlockOffsets", - "type": [ - "array", - { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "x", - "type": "i8" - }, - { - "name": "y", - "type": "i8" - }, - { - "name": "z", - "type": "i8" - } - ] - ] - } - ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, - { - "name": "playerMotionY", - "type": "f32" - }, - { - "name": "playerMotionZ", - "type": "f32" - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", "type": "i32" }, { - "name": "location", - "type": "position" + "name": "yaw", + "type": "i8" }, { - "name": "data", - "type": "i32" + "name": "pitch", + "type": "i8" }, { - "name": "global", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], @@ -1492,1590 +1669,1360 @@ } ] ], - "packet_world_particles": [ + "packet_open_sign_entity": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_open_window": [ + "container", + [ { - "name": "offsetY", - "type": "f32" + "name": "windowId", + "type": "u8" }, { - "name": "offsetZ", - "type": "f32" + "name": "inventoryType", + "type": "string" }, { - "name": "particleData", - "type": "f32" + "name": "windowTitle", + "type": "string" }, { - "name": "particles", - "type": "i32" + "name": "slotCount", + "type": "u8" }, { - "name": "data", + "name": "entityId", "type": [ "switch", { - "compareTo": "particleId", + "compareTo": "inventoryType", + "default": "void", "fields": { - "36": [ - "array", - { - "count": 2, - "type": "varint" - } - ], - "37": [ - "array", - { - "count": 1, - "type": "varint" - } - ], - "38": [ - "array", - { - "count": 1, - "type": "varint" - } - ] - }, - "default": "void" + "EntityHorse": "i32" + } } ] } ] ], - "packet_game_state_change": [ + "packet_player_info": [ "container", [ { - "name": "reason", - "type": "u8" + "name": "action", + "type": [ + "mapper", + { + "mappings": { + "0": "add_player", + "1": "update_game_mode", + "2": "update_latency", + "3": "update_display_name", + "4": "remove_player" + }, + "type": "varint" + } + ] }, { - "name": "gameMode", - "type": "f32" + "name": "data", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "../action", + "fields": { + "add_player": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + }, + { + "name": "signature", + "type": [ + "option", + "string" + ] + } + ] + ] + } + ] + }, + { + "name": "gamemode", + "type": "varint" + }, + { + "name": "ping", + "type": "varint" + }, + { + "name": "displayName", + "type": [ + "option", + "string" + ] + } + ] + ], + "remove_player": "void", + "update_display_name": [ + "container", + [ + { + "name": "displayName", + "type": [ + "option", + "string" + ] + } + ] + ], + "update_game_mode": [ + "container", + [ + { + "name": "gamemode", + "type": "varint" + } + ] + ], + "update_latency": [ + "container", + [ + { + "name": "ping", + "type": "varint" + } + ] + ] + } + } + ] + } + ] + ] + } + ] } ] ], - "packet_spawn_entity_weather": [ + "packet_playerlist_header": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "header", + "type": "string" }, { - "name": "type", - "type": "i8" - }, + "name": "footer", + "type": "string" + } + ] + ], + "packet_position": [ + "container", + [ { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "flags", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_rel_entity_move": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "inventoryType", - "type": "string" + "name": "dX", + "type": "i8" }, { - "name": "windowTitle", - "type": "string" + "name": "dY", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "dZ", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_close_window": [ + "packet_remove_entity_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "effectId", + "type": "i8" } ] ], - "packet_set_slot": [ + "packet_resource_pack_send": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "slot", - "type": "i16" + "name": "url", + "type": "string" }, { - "name": "item", - "type": "slot" + "name": "hash", + "type": "string" } ] ], - "packet_window_items": [ + "packet_respawn": [ "container", [ { - "name": "windowId", + "name": "dimension", + "type": "i32" + }, + { + "name": "difficulty", "type": "u8" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "gamemode", + "type": "u8" + }, + { + "name": "levelType", + "type": "string" } ] ], - "packet_craft_progress_bar": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "position", + "type": "i8" }, { - "name": "property", - "type": "i16" - }, - { - "name": "value", - "type": "i16" + "name": "name", + "type": "string" } ] ], - "packet_transaction": [ + "packet_scoreboard_objective": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "name", + "type": "string" }, { "name": "action", - "type": "i16" + "type": "i8" }, { - "name": "accepted", - "type": "bool" + "name": "displayText", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] + }, + { + "name": "type", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] } ] ], - "packet_update_sign": [ + "packet_scoreboard_score": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "text1", + "name": "itemName", "type": "string" }, { - "name": "text2", - "type": "string" + "name": "action", + "type": "varint" }, { - "name": "text3", + "name": "scoreName", "type": "string" }, { - "name": "text4", - "type": "string" + "name": "value", + "type": [ + "switch", + { + "compareTo": "action", + "default": "varint", + "fields": { + "1": "void" + } + } + ] } ] ], - "packet_map": [ + "packet_scoreboard_team": [ "container", [ { - "name": "itemDamage", - "type": "varint" + "name": "team", + "type": "string" }, { - "name": "scale", + "name": "mode", "type": "i8" }, { - "name": "trackingPosition", - "type": "bool" + "name": "name", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] }, { - "name": "icons", + "name": "prefix", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "directionAndType", - "type": "i8" - }, - { - "name": "x", - "type": "i8" - }, - { - "name": "z", - "type": "i8" - } - ] - ] + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } } ] }, { - "name": "columns", - "type": "i8" + "name": "suffix", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } + } + ] }, { - "name": "rows", + "name": "friendlyFire", "type": [ "switch", { - "compareTo": "columns", + "compareTo": "mode", + "default": "void", "fields": { - "0": "void" - }, - "default": "i8" + "0": "i8", + "2": "i8" + } } ] }, { - "name": "x", + "name": "nameTagVisibility", "type": [ "switch", { - "compareTo": "columns", + "compareTo": "mode", + "default": "void", "fields": { - "0": "void" - }, - "default": "i8" + "0": "string", + "2": "string" + } } ] }, { - "name": "y", + "name": "collisionRule", "type": [ "switch", { - "compareTo": "columns", + "compareTo": "mode", + "default": "void", "fields": { - "0": "void" - }, - "default": "i8" + "0": "string", + "2": "string" + } } ] }, { - "name": "data", + "name": "color", "type": [ "switch", { - "compareTo": "columns", + "compareTo": "mode", + "default": "void", "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] + "0": "i8", + "2": "i8" + } + } + ] + }, + { + "name": "players", + "type": [ + "switch", + { + "compareTo": "mode", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "3": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_tile_entity_data": [ + "packet_set_compression": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" - }, - { - "name": "nbtData", - "type": "optionalNbt" + "name": "threshold", + "type": "varint" } ] ], - "packet_open_sign_entity": [ + "packet_set_cooldown": [ "container", [ { - "name": "location", - "type": "position" + "name": "itemID", + "type": "varint" + }, + { + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_statistics": [ + "packet_set_slot": [ "container", [ { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "windowId", + "type": "i8" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_player_info": [ + "packet_spawn_entity": [ "container", [ { - "name": "action", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "add_player", - "1": "update_game_mode", - "2": "update_latency", - "3": "update_display_name", - "4": "remove_player" - } - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "../action", - "fields": { - "add_player": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] - }, - { - "name": "gamemode", - "type": "varint" - }, - { - "name": "ping", - "type": "varint" - }, - { - "name": "displayName", - "type": [ - "option", - "string" - ] - } - ] - ], - "update_game_mode": [ - "container", - [ - { - "name": "gamemode", - "type": "varint" - } - ] - ], - "update_latency": [ - "container", - [ - { - "name": "ping", - "type": "varint" - } - ] - ], - "update_display_name": [ - "container", - [ - { - "name": "displayName", - "type": [ - "option", - "string" - ] - } - ] - ], - "remove_player": "void" - } - } - ] - } - ] - ] - } - ] - } - ] - ], - "packet_abilities": [ - "container", - [ + "name": "entityUUID", + "type": "UUID" + }, { - "name": "flags", + "name": "type", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "x", + "type": "i32" }, { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_tab_complete": [ - "container", - [ + "name": "y", + "type": "i32" + }, { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_scoreboard_objective": [ - "container", - [ + "name": "z", + "type": "i32" + }, { - "name": "name", - "type": "string" + "name": "pitch", + "type": "i8" }, { - "name": "action", + "name": "yaw", "type": "i8" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "objectData", + "type": "i32" }, { - "name": "type", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_scoreboard_score": [ + "packet_spawn_entity_experience_orb": [ "container", [ { - "name": "itemName", - "type": "string" - }, - { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "scoreName", - "type": "string" + "name": "x", + "type": "i32" }, { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" - } - ] - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + "name": "y", + "type": "i32" + }, { - "name": "position", - "type": "i8" + "name": "z", + "type": "i32" }, { - "name": "name", - "type": "string" + "name": "count", + "type": "i16" } ] ], - "packet_scoreboard_team": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "team", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "mode", - "type": "i8" + "name": "entityUUID", + "type": "UUID" }, { - "name": "name", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "type", + "type": "u8" }, { - "name": "prefix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "x", + "type": "i32" }, { - "name": "suffix", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "y", + "type": "i32" }, { - "name": "friendlyFire", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" - } - ] + "name": "z", + "type": "i32" }, { - "name": "nameTagVisibility", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "collisionRule", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "color", - "type": [ - "switch", - { - "compareTo": "mode", - "fields": { - "0": "i8", - "2": "i8" - }, - "default": "void" - } - ] + "name": "headPitch", + "type": "i8" }, { - "name": "players", + "name": "velocity", + "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" + } + ] + ], + "packet_spawn_entity_painting": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "title", + "type": "string" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" + } + ] + ], + "packet_spawn_entity_weather": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "mode", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "3": [ - "array", + "countType": "varint", + "type": [ + "container", + [ { - "countType": "varint", + "name": "name", "type": "string" - } - ], - "4": [ - "array", + }, { - "countType": "varint", - "type": "string" + "name": "value", + "type": "varint" } ] - }, - "default": "void" + ] } ] } ] ], - "packet_custom_payload": [ + "packet_tab_complete": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "packet_kick_disconnect": [ + "packet_tile_entity_data": [ "container", [ { - "name": "reason", - "type": "string" - } - ] - ], - "packet_difficulty": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "difficulty", + "name": "action", "type": "u8" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] ], - "packet_combat_event": [ + "packet_title": [ "container", [ { - "name": "event", + "name": "action", "type": "varint" }, { - "name": "duration", + "name": "text", "type": [ "switch", { - "compareTo": "event", + "compareTo": "action", + "default": "void", "fields": { - "1": "varint" - }, - "default": "void" + "0": "string", + "1": "string" + } } ] }, { - "name": "playerId", + "name": "fadeIn", "type": [ "switch", { - "compareTo": "event", + "compareTo": "action", + "default": "void", "fields": { - "2": "varint" - }, - "default": "void" + "2": "i32" + } } ] }, { - "name": "entityId", + "name": "stay", "type": [ "switch", { - "compareTo": "event", + "compareTo": "action", + "default": "void", "fields": { - "1": "i32", "2": "i32" - }, - "default": "void" + } } ] }, { - "name": "message", + "name": "fadeOut", "type": [ "switch", { - "compareTo": "event", + "compareTo": "action", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" - } + "2": "i32" + } + } ] } ] ], - "packet_camera": [ + "packet_transaction": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "windowId", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" } ] ], - "packet_world_border": [ + "packet_unload_chunk": [ "container", [ { - "name": "action", - "type": "varint" - }, - { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "new_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] - }, - { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "chunkX", + "type": "i32" }, { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" - } - ] + "name": "chunkZ", + "type": "i32" } ] ], - "packet_title": [ + "packet_update_attributes": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "text", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "string" - }, - "default": "void" - } - ] - }, - { - "name": "fadeIn", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "stay", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "fadeOut", + "name": "properties", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "2": "i32" - }, - "default": "void" + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] } ] } ] ], - "packet_set_compression": [ + "packet_update_health": [ "container", [ { - "name": "threshold", + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" + }, + { + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_playerlist_header": [ + "packet_update_sign": [ "container", [ { - "name": "header", - "type": "string" + "name": "location", + "type": "position" }, { - "name": "footer", + "name": "text1", "type": "string" - } - ] - ], - "packet_resource_pack_send": [ - "container", - [ + }, { - "name": "url", + "name": "text2", "type": "string" }, { - "name": "hash", + "name": "text3", "type": "string" - } - ] - ], - "packet_boss_bar": [ - "container", - [ - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "title", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "3": "string" - }, - "default": "void" - } - ] - }, - { - "name": "health", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "color", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "dividers", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] - } - ] - ], - "packet_set_cooldown": [ - "container", - [ - { - "name": "itemID", - "type": "varint" }, - { - "name": "cooldownTicks", - "type": "varint" - } - ] - ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "kick_disconnect", - "0x1a": "entity_status", - "0x1b": "explosion", - "0x1c": "unload_chunk", - "0x1d": "set_compression", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "named_sound_effect", - "0x24": "login", - "0x25": "map", - "0x26": "rel_entity_move", - "0x27": "entity_move_look", - "0x28": "entity_look", - "0x29": "entity", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "scoreboard_team", - "0x41": "scoreboard_score", - "0x42": "spawn_position", - "0x43": "update_time", - "0x44": "title", - "0x45": "update_sign", - "0x46": "playerlist_header", - "0x47": "collect", - "0x48": "entity_teleport", - "0x49": "update_attributes", - "0x4a": "entity_effect" - } - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "keep_alive": "packet_keep_alive", - "login": "packet_login", - "chat": "packet_chat", - "update_time": "packet_update_time", - "entity_equipment": "packet_entity_equipment", - "spawn_position": "packet_spawn_position", - "update_health": "packet_update_health", - "respawn": "packet_respawn", - "position": "packet_position", - "held_item_slot": "packet_held_item_slot", - "bed": "packet_bed", - "animation": "packet_animation", - "named_entity_spawn": "packet_named_entity_spawn", - "collect": "packet_collect", - "spawn_entity": "packet_spawn_entity", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "entity_velocity": "packet_entity_velocity", - "entity_destroy": "packet_entity_destroy", - "entity": "packet_entity", - "rel_entity_move": "packet_rel_entity_move", - "entity_look": "packet_entity_look", - "entity_move_look": "packet_entity_move_look", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_status": "packet_entity_status", - "attach_entity": "packet_attach_entity", - "entity_metadata": "packet_entity_metadata", - "entity_effect": "packet_entity_effect", - "remove_entity_effect": "packet_remove_entity_effect", - "experience": "packet_experience", - "update_attributes": "packet_update_attributes", - "map_chunk": "packet_map_chunk", - "multi_block_change": "packet_multi_block_change", - "block_change": "packet_block_change", - "block_action": "packet_block_action", - "block_break_animation": "packet_block_break_animation", - "explosion": "packet_explosion", - "world_event": "packet_world_event", - "named_sound_effect": "packet_named_sound_effect", - "world_particles": "packet_world_particles", - "game_state_change": "packet_game_state_change", - "spawn_entity_weather": "packet_spawn_entity_weather", - "open_window": "packet_open_window", - "close_window": "packet_close_window", - "set_slot": "packet_set_slot", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "transaction": "packet_transaction", - "update_sign": "packet_update_sign", - "map": "packet_map", - "tile_entity_data": "packet_tile_entity_data", - "open_sign_entity": "packet_open_sign_entity", - "statistics": "packet_statistics", - "player_info": "packet_player_info", - "abilities": "packet_abilities", - "tab_complete": "packet_tab_complete", - "scoreboard_objective": "packet_scoreboard_objective", - "scoreboard_score": "packet_scoreboard_score", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "scoreboard_team": "packet_scoreboard_team", - "custom_payload": "packet_custom_payload", - "kick_disconnect": "packet_kick_disconnect", - "difficulty": "packet_difficulty", - "combat_event": "packet_combat_event", - "camera": "packet_camera", - "world_border": "packet_world_border", - "title": "packet_title", - "set_compression": "packet_set_compression", - "playerlist_header": "packet_playerlist_header", - "resource_pack_send": "packet_resource_pack_send", - "boss_bar": "packet_boss_bar", - "set_cooldown": "packet_set_cooldown", - "unload_chunk": "packet_unload_chunk" - } - } - ] + { + "name": "text4", + "type": "string" } ] - ] - } - }, - "toServer": { - "types": { - "packet_keep_alive": [ + ], + "packet_update_time": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" } ] ], - "packet_chat": [ + "packet_window_items": [ "container", [ { - "name": "message", - "type": "string" + "name": "windowId", + "type": "u8" + }, + { + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_use_entity": [ + "packet_world_border": [ "container", [ { - "name": "target", + "name": "action", "type": "varint" }, { - "name": "mouse", - "type": "varint" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] }, { "name": "x", "type": [ "switch", { - "compareTo": "mouse", + "compareTo": "action", + "default": "void", "fields": { - "2": "f32" - }, - "default": "void" + "2": "f64", + "3": "f64" + } } ] }, { - "name": "y", + "name": "z", "type": [ "switch", { - "compareTo": "mouse", + "compareTo": "action", + "default": "void", "fields": { - "2": "f32" - }, - "default": "void" + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] + } + ] + ], + "packet_world_event": [ + "container", + [ + { + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" + } + ] + ], + "packet_world_particles": [ + "container", + [ + { + "name": "particleId", + "type": "i32" + }, + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" }, { "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", "type": [ "switch", { - "compareTo": "mouse", + "compareTo": "particleId", + "default": "void", "fields": { - "2": "f32" + "36": [ + "array", + { + "count": 2, + "type": "varint" + } + ], + "37": [ + "array", + { + "count": 1, + "type": "varint" + } + ], + "38": [ + "array", + { + "count": 1, + "type": "varint" + } + ] + } + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "tab_complete", + "0x01": "chat", + "0x02": "client_command", + "0x03": "settings", + "0x04": "transaction", + "0x05": "enchant_item", + "0x06": "window_click", + "0x07": "close_window", + "0x08": "custom_payload", + "0x09": "use_entity", + "0x0a": "keep_alive", + "0x0b": "position", + "0x0c": "position_look", + "0x0d": "look", + "0x0e": "flying", + "0x0f": "abilities", + "0x10": "block_dig", + "0x11": "entity_action", + "0x12": "steer_vehicle", + "0x13": "resource_pack_receive", + "0x14": "held_item_slot", + "0x15": "set_creative_slot", + "0x16": "update_sign", + "0x17": "arm_animation", + "0x18": "spectate", + "0x19": "block_place", + "0x1a": "use_item" }, - "default": "void" + "type": "varint" } ] }, { - "name": "hand", + "name": "params", "type": [ "switch", { - "compareTo": "mouse", + "compareTo": "name", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "abilities": "packet_abilities", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat": "packet_chat", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "custom_payload": "packet_custom_payload", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "look": "packet_look", + "position": "packet_position", + "position_look": "packet_position_look", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "transaction": "packet_transaction", + "update_sign": "packet_update_sign", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "window_click": "packet_window_click" + } } ] } ] ], - "packet_flying": [ - "container", - [ - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_position": [ + "packet_abilities": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "flags", + "type": "i8" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_look": [ - "container", - [ - { - "name": "yaw", + "name": "flyingSpeed", "type": "f32" }, { - "name": "pitch", + "name": "walkingSpeed", "type": "f32" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_position_look": [ + "packet_arm_animation": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "hand", + "type": "varint" } ] ], @@ -3125,24 +3072,59 @@ } ] ], - "packet_held_item_slot": [ + "packet_chat": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "message", + "type": "string" } ] ], - "packet_arm_animation": [ + "packet_client_command": [ "container", [ { - "name": "hand", + "name": "payload", "type": "varint" } ] ], + "packet_close_window": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_enchant_item": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "enchantment", + "type": "i8" + } + ] + ], "packet_entity_action": [ "container", [ @@ -3160,159 +3142,123 @@ } ] ], - "packet_steer_vehicle": [ + "packet_flying": [ "container", [ { - "name": "sideways", - "type": "f32" - }, - { - "name": "forward", - "type": "f32" - }, - { - "name": "jump", - "type": "u8" + "name": "onGround", + "type": "bool" } ] ], - "packet_close_window": [ + "packet_held_item_slot": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "slotId", + "type": "i16" } ] ], - "packet_window_click": [ + "packet_keep_alive": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, - { - "name": "mode", - "type": "i8" - }, - { - "name": "item", - "type": "slot" + "name": "keepAliveId", + "type": "varint" } ] ], - "packet_transaction": [ + "packet_look": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "yaw", + "type": "f32" }, { - "name": "action", - "type": "i16" + "name": "pitch", + "type": "f32" }, { - "name": "accepted", + "name": "onGround", "type": "bool" } ] ], - "packet_set_creative_slot": [ + "packet_position": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_enchant_item": [ - "container", - [ + "name": "y", + "type": "f64" + }, { - "name": "windowId", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "enchantment", - "type": "i8" + "name": "onGround", + "type": "bool" } ] ], - "packet_update_sign": [ + "packet_position_look": [ "container", [ { - "name": "location", - "type": "position" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" }, { - "name": "text1", - "type": "string" + "name": "z", + "type": "f64" }, { - "name": "text2", - "type": "string" + "name": "yaw", + "type": "f32" }, { - "name": "text3", - "type": "string" + "name": "pitch", + "type": "f32" }, { - "name": "text4", - "type": "string" + "name": "onGround", + "type": "bool" } ] ], - "packet_abilities": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" + "name": "hash", + "type": "string" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "result", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_set_creative_slot": [ "container", [ { - "name": "text", - "type": "string" + "name": "slot", + "type": "i16" }, { - "name": "block", - "type": [ - "option", - "position" - ] + "name": "item", + "type": "slot" } ] ], @@ -3345,139 +3291,193 @@ } ] ], - "packet_client_command": [ + "packet_spectate": [ "container", [ { - "name": "payload", - "type": "varint" + "name": "target", + "type": "UUID" } ] ], - "packet_custom_payload": [ + "packet_steer_vehicle": [ "container", [ { - "name": "channel", - "type": "string" + "name": "sideways", + "type": "f32" }, { - "name": "data", - "type": "restBuffer" + "name": "forward", + "type": "f32" + }, + { + "name": "jump", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_tab_complete": [ "container", [ { - "name": "target", - "type": "UUID" + "name": "text", + "type": "string" + }, + { + "name": "block", + "type": [ + "option", + "position" + ] } ] ], - "packet_resource_pack_receive": [ + "packet_transaction": [ "container", [ { - "name": "hash", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "result", - "type": "varint" + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" } ] ], - "packet_use_item": [ + "packet_update_sign": [ "container", [ { - "name": "hand", - "type": "varint" + "name": "location", + "type": "position" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" } ] ], - "packet": [ + "packet_use_entity": [ "container", [ { - "name": "name", + "name": "target", + "type": "varint" + }, + { + "name": "mouse", + "type": "varint" + }, + { + "name": "x", "type": [ - "mapper", + "switch", { - "type": "varint", - "mappings": { - "0x00": "tab_complete", - "0x01": "chat", - "0x02": "client_command", - "0x03": "settings", - "0x04": "transaction", - "0x05": "enchant_item", - "0x06": "window_click", - "0x07": "close_window", - "0x08": "custom_payload", - "0x09": "use_entity", - "0x0a": "keep_alive", - "0x0b": "position", - "0x0c": "position_look", - "0x0d": "look", - "0x0e": "flying", - "0x0f": "abilities", - "0x10": "block_dig", - "0x11": "entity_action", - "0x12": "steer_vehicle", - "0x13": "resource_pack_receive", - "0x14": "held_item_slot", - "0x15": "set_creative_slot", - "0x16": "update_sign", - "0x17": "arm_animation", - "0x18": "spectate", - "0x19": "block_place", - "0x1a": "use_item" + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" } } ] }, { - "name": "params", + "name": "y", "type": [ "switch", { - "compareTo": "name", + "compareTo": "mouse", + "default": "void", "fields": { - "keep_alive": "packet_keep_alive", - "chat": "packet_chat", - "use_entity": "packet_use_entity", - "flying": "packet_flying", - "position": "packet_position", - "look": "packet_look", - "position_look": "packet_position_look", - "block_dig": "packet_block_dig", - "block_place": "packet_block_place", - "held_item_slot": "packet_held_item_slot", - "arm_animation": "packet_arm_animation", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "close_window": "packet_close_window", - "window_click": "packet_window_click", - "transaction": "packet_transaction", - "set_creative_slot": "packet_set_creative_slot", - "enchant_item": "packet_enchant_item", - "update_sign": "packet_update_sign", - "abilities": "packet_abilities", - "tab_complete": "packet_tab_complete", - "settings": "packet_settings", - "client_command": "packet_client_command", - "custom_payload": "packet_custom_payload", - "spectate": "packet_spectate", - "resource_pack_receive": "packet_resource_pack_receive", - "use_item": "packet_use_item" + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" } } ] } ] + ], + "packet_use_item": [ + "container", + [ + { + "name": "hand", + "type": "varint" + } + ] + ], + "packet_window_click": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] ] } } diff --git a/data/pc/16w20a/protocol.json b/data/pc/16w20a/protocol.json index 1dd5da6bf..670b47185 100644 --- a/data/pc/16w20a/protocol.json +++ b/data/pc/16w20a/protocol.json @@ -1,116 +1,53 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 255, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ + "anon": true, + "type": [ "container", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "key", + "type": "u8" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "type", + "type": "i8" } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -155,42 +92,105 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ + "compareTo": "blockId", + "default": [ "container", [ { - "name": "key", - "type": "u8" + "name": "itemCount", + "type": "i8" }, { - "name": "type", - "type": "i8" + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -203,8 +203,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -224,36 +224,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -262,11 +232,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -277,38 +247,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -317,11 +299,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -332,21 +314,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -357,6 +331,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -365,11 +352,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -380,13 +367,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -394,6 +394,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -442,16 +486,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -460,13 +499,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -477,28 +514,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -523,6 +545,21 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -531,11 +568,85 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "sound_effect", + "0x47": "playerlist_header", + "0x48": "collect", + "0x49": "entity_teleport", + "0x4a": "entity_update_attributes", + "0x4b": "entity_effect" + }, + "type": "varint" } ] }, @@ -546,66 +657,106 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } - } + "abilities": "packet_abilities", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "custom_payload": "packet_custom_payload", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", + "name": "flags", "type": "i8" }, { - "name": "objectData", - "type": "i32" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "velocity", - "type": "vec3i16" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_animation": [ "container", [ { @@ -613,49 +764,25 @@ "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "animation", + "type": "u8" } ] ], - "packet_spawn_entity_weather": [ + "packet_attach_entity": [ "container", [ { "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "type": "i32" }, { - "name": "z", - "type": "f64" + "name": "vehicleId", + "type": "i32" } ] ], - "packet_spawn_entity_living": [ + "packet_bed": [ "container", [ { @@ -663,48 +790,33 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "u8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_block_action": [ + "container", + [ { - "name": "pitch", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "headPitch", - "type": "i8" + "name": "byte1", + "type": "u8" }, { - "name": "velocity", - "type": "vec3i16" + "name": "byte2", + "type": "u8" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "blockId", + "type": "varint" } ] ], - "packet_spawn_entity_painting": [ + "packet_block_break_animation": [ "container", [ { @@ -712,248 +824,244 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" + "name": "location", + "type": "position" }, { - "name": "title", - "type": "string" - }, + "name": "destroyStage", + "type": "i8" + } + ] + ], + "packet_block_change": [ + "container", + [ { "name": "location", "type": "position" }, { - "name": "direction", - "type": "u8" + "name": "type", + "type": "varint" } ] ], - "packet_named_entity_spawn": [ + "packet_boss_bar": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "playerUUID", - "type": "UUID" + "name": "action", + "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "title", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "3": "string" + } + } + ] }, { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" + "name": "health", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "color", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "dividers", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", + "name": "flags", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } } ] } ] ], - "packet_block_break_animation": [ + "packet_camera": [ "container", [ { - "name": "entityId", + "name": "cameraId", "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" } ] ], - "packet_tile_entity_data": [ + "packet_chat": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "message", + "type": "string" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "position", + "type": "i8" } ] ], - "packet_block_action": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "byte1", - "type": "u8" - }, - { - "name": "byte2", + "name": "windowId", "type": "u8" - }, - { - "name": "blockId", - "type": "varint" } ] ], - "packet_block_change": [ + "packet_collect": [ "container", [ { - "name": "location", - "type": "position" + "name": "collectedEntityId", + "type": "varint" }, { - "name": "type", + "name": "collectorEntityId", "type": "varint" } ] ], - "packet_boss_bar": [ + "packet_combat_event": [ "container", [ { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", + "name": "event", "type": "varint" }, { - "name": "title", + "name": "duration", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "string", - "3": "string" - }, - "default": "void" + "1": "varint" + } } ] }, { - "name": "health", + "name": "playerId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" + "2": "varint" + } } ] }, { - "name": "color", + "name": "entityId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "dividers", + "name": "message", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "2": "string" + } } ] + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], @@ -966,264 +1074,282 @@ } ] ], - "packet_tab_complete": [ + "packet_entity": [ "container", [ { - "name": "matches", + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "varint" } ] } ] ], - "packet_chat": [ + "packet_entity_effect": [ "container", [ { - "name": "message", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "position", + "name": "effectId", "type": "i8" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ + }, { - "name": "chunkX", - "type": "i32" + "name": "amplifier", + "type": "i8" }, { - "name": "chunkZ", - "type": "i32" + "name": "duration", + "type": "varint" }, { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] - } - ] + "name": "hideParticles", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "slot", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "inventoryType", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "windowTitle", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "pitch", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ - { - "name": "windowId", - "type": "i8" }, { - "name": "slot", + "name": "dZ", "type": "i16" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ + "name": "yaw", + "type": "i8" + }, { - "name": "itemID", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_status": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "data", - "type": "restBuffer" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_named_sound_effect": [ + "packet_entity_teleport": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_velocity": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -1286,20 +1412,7 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], - "packet_game_state_change": [ + "packet_game_state_change": [ "container", [ { @@ -1312,151 +1425,30 @@ } ] ], - "packet_keep_alive": [ + "packet_held_item_slot": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "slot", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "groundUp", - "type": "bool" - }, - { - "name": "bitMap", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" } ] ], - "packet_world_particles": [ + "packet_kick_disconnect": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, - { - "name": "particles", - "type": "i32" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "particleId", - "fields": { - "36": [ - "array", - { - "count": 2, - "type": "varint" - } - ], - "37": [ - "array", - { - "count": 1, - "type": "varint" - } - ], - "38": [ - "array", - { - "count": 1, - "type": "varint" - } - ] - }, - "default": "void" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -1544,10 +1536,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1557,10 +1549,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1570,10 +1562,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1583,46 +1575,100 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" + }, + { + "name": "bitMap", "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "dY", - "type": "i16" + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] + } + ] + ], + "packet_multi_block_change": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" }, { - "name": "dZ", - "type": "i16" + "name": "chunkZ", + "type": "i32" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_entity_move_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -1630,16 +1676,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dY", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -1650,58 +1700,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -1719,80 +1747,35 @@ } ] ], - "packet_abilities": [ + "packet_open_window": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" + "name": "windowId", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_combat_event": [ - "container", - [ - { - "name": "event", - "type": "varint" + "name": "inventoryType", + "type": "string" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { "name": "entityId", "type": [ "switch", { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -1806,14 +1789,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -1890,37 +1873,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -1932,6 +1915,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -1965,7 +1961,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -1973,23 +1969,20 @@ "type": "varint" }, { - "name": "location", - "type": "position" - } - ] - ], - "packet_entity_destroy": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -2040,223 +2033,218 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ + { + "name": "name", + "type": "string" + }, { "name": "action", - "type": "varint" + "type": "i8" }, { - "name": "radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "0": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "x", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "new_radius", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] - }, - { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_camera": [ + "packet_set_cooldown": [ "container", [ { - "name": "cameraId", + "name": "itemID", + "type": "varint" + }, + { + "name": "cooldownTicks", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_set_passengers": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "entityId", + "type": "varint" + }, + { + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_scoreboard_display_objective": [ + "packet_set_slot": [ "container", [ { - "name": "position", + "name": "windowId", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_entity_metadata": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "soundCategory", + "type": "varint" + }, { - "name": "entityId", + "name": "x", "type": "i32" }, { - "name": "vehicleId", + "name": "y", + "type": "i32" + }, + { + "name": "z", "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -2264,91 +2252,73 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "item", - "type": "slot" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_experience": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "totalExperience", - "type": "varint" - } - ] - ], - "packet_update_health": [ - "container", - [ + "name": "type", + "type": "u8" + }, { - "name": "health", - "type": "f32" + "name": "x", + "type": "f64" }, { - "name": "food", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_scoreboard_objective": [ - "container", - [ + "name": "z", + "type": "f64" + }, { - "name": "name", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "action", + "name": "pitch", "type": "i8" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "headPitch", + "type": "i8" }, { - "name": "type", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_set_passengers": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -2356,18 +2326,100 @@ "type": "varint" }, { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_teams": [ + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", + "type": "string" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" + } + ] + ], + "packet_spawn_entity_weather": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], + "packet_teams": [ "container", [ { @@ -2384,11 +2436,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2398,11 +2450,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2412,11 +2464,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2426,11 +2478,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2440,11 +2492,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2454,11 +2506,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2468,11 +2520,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2482,6 +2534,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -2504,62 +2557,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -2576,11 +2593,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string" - }, - "default": "void" + } } ] }, @@ -2590,10 +2607,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] }, @@ -2603,10 +2620,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] }, @@ -2616,81 +2633,78 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_sound_effect": [ + "packet_transaction": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "soundCategory", - "type": "varint" + "name": "action", + "type": "i16" }, { - "name": "x", - "type": "i32" - }, + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ { - "name": "y", + "name": "chunkX", "type": "i32" }, { - "name": "z", + "name": "chunkZ", "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" } ] ], - "packet_playerlist_header": [ + "packet_update_health": [ "container", [ { - "name": "header", - "type": "string" + "name": "health", + "type": "f32" }, { - "name": "footer", - "type": "string" + "name": "food", + "type": "varint" + }, + { + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_collect": [ + "packet_update_time": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" + "name": "age", + "type": "i64" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "time", + "type": "i64" } ] ], - "packet_entity_teleport": [ + "packet_vehicle_move": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "x", "type": "f64" @@ -2705,100 +2719,269 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "onGround", - "type": "bool" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_entity_update_attributes": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "properties", + "name": "radius", "type": [ - "array", + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], + "packet_world_particles": [ + "container", + [ + { + "name": "particleId", + "type": "i32" + }, + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "particleId", + "default": "void", + "fields": { + "36": [ + "array", + { + "count": 2, + "type": "varint" + } + ], + "37": [ + "array", + { + "count": 1, + "type": "varint" + } + ], + "38": [ + "array", + { + "count": 1, + "type": "varint" + } + ] + } + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -2807,85 +2990,39 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "sound_effect", - "0x47": "playerlist_header", - "0x48": "collect", - "0x49": "entity_teleport", - "0x4a": "entity_update_attributes", - "0x4b": "entity_effect" - } + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" + }, + "type": "varint" } ] }, @@ -2896,118 +3033,111 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", + "abilities": "packet_abilities", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "look": "packet_look", "position": "packet_position", - "bed": "packet_bed", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect" + "position_look": "packet_position_look", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_sign": "packet_update_sign", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" + } + ] + ], + "packet_arm_animation": [ + "container", + [ + { + "name": "hand", + "type": "varint" + } + ] + ], + "packet_block_dig": [ + "container", + [ + { + "name": "status", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_tab_complete": [ + "packet_block_place": [ "container", [ { - "name": "text", - "type": "string" + "name": "location", + "type": "position" }, { - "name": "assumeCommand", - "type": "bool" + "name": "direction", + "type": "varint" }, { - "name": "lookedAtBlock", - "type": [ - "option", - "position" - ] + "name": "hand", + "type": "varint" + }, + { + "name": "cursorX", + "type": "i8" + }, + { + "name": "cursorY", + "type": "i8" + }, + { + "name": "cursorZ", + "type": "i8" } ] ], @@ -3029,49 +3159,25 @@ } ] ], - "packet_settings": [ + "packet_close_window": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", + "name": "windowId", "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" } ] ], - "packet_transaction": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "channel", + "type": "string" }, { - "name": "accepted", - "type": "bool" + "name": "data", + "type": "restBuffer" } ] ], @@ -3088,129 +3194,64 @@ } ] ], - "packet_window_click": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "mode", - "type": "i8" + "name": "actionId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_close_window": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_held_item_slot": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "slotId", + "type": "i16" } ] ], - "packet_use_entity": [ + "packet_keep_alive": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] } ] ], - "packet_keep_alive": [ + "packet_look": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -3264,118 +3305,80 @@ } ] ], - "packet_look": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "hash", + "type": "string" }, { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_flying": [ + "packet_set_creative_slot": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_vehicle_move": [ + "packet_settings": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "locale", + "type": "string" }, { - "name": "yaw", - "type": "f32" + "name": "viewDistance", + "type": "i8" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_steer_boat": [ - "container", - [ - { - "name": "leftPaddle", - "type": "bool" + "name": "chatFlags", + "type": "varint" }, { - "name": "rightPaddle", + "name": "chatColors", "type": "bool" - } - ] - ], - "packet_abilities": [ - "container", - [ - { - "name": "flags", - "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "skinParts", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -3396,38 +3399,49 @@ } ] ], - "packet_resource_pack_receive": [ + "packet_tab_complete": [ "container", [ { - "name": "hash", + "name": "text", "type": "string" }, { - "name": "result", - "type": "varint" + "name": "assumeCommand", + "type": "bool" + }, + { + "name": "lookedAtBlock", + "type": [ + "option", + "position" + ] } ] ], - "packet_held_item_slot": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "teleportId", + "type": "varint" } ] ], - "packet_set_creative_slot": [ + "packet_transaction": [ "container", [ { - "name": "slot", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" }, { - "name": "item", - "type": "slot" + "name": "accepted", + "type": "bool" } ] ], @@ -3456,146 +3470,132 @@ } ] ], - "packet_arm_animation": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", + "type": "varint" + }, + { + "name": "mouse", "type": "varint" + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], - "packet_spectate": [ + "packet_use_item": [ "container", [ { - "name": "target", - "type": "UUID" + "name": "hand", + "type": "varint" } ] ], - "packet_block_place": [ + "packet_vehicle_move": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "hand", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "cursorX", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "cursorY", - "type": "i8" + "name": "yaw", + "type": "f32" }, { - "name": "cursorZ", - "type": "i8" + "name": "pitch", + "type": "f32" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" - } - ] - ], - "packet": [ - "container", - [ + "name": "windowId", + "type": "u8" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" - } - } - ] + "name": "slot", + "type": "i16" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } - } - ] + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/16w35a/protocol.json b/data/pc/16w35a/protocol.json index 894e869a8..e62789fdd 100644 --- a/data/pc/16w35a/protocol.json +++ b/data/pc/16w35a/protocol.json @@ -1,116 +1,53 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 255, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ + "anon": true, + "type": [ "container", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "key", + "type": "u8" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "type", + "type": "i8" } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -155,42 +92,105 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ + "compareTo": "blockId", + "default": [ "container", [ { - "name": "key", - "type": "u8" + "name": "itemCount", + "type": "i8" }, { - "name": "type", - "type": "i8" + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -203,8 +203,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -224,36 +224,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -262,11 +232,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -277,38 +247,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -317,11 +299,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -332,21 +314,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -357,6 +331,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -365,11 +352,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -380,13 +367,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -394,6 +394,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -442,16 +486,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -460,13 +499,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -477,28 +514,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -523,6 +545,21 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -531,11 +568,85 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "sound_effect", + "0x47": "playerlist_header", + "0x48": "collect", + "0x49": "entity_teleport", + "0x4a": "entity_update_attributes", + "0x4b": "entity_effect" + }, + "type": "varint" } ] }, @@ -546,66 +657,106 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } - } + "abilities": "packet_abilities", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "custom_payload": "packet_custom_payload", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ + ], + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", + "name": "flags", "type": "i8" }, { - "name": "objectData", - "type": "i32" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "velocity", - "type": "vec3i16" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity_experience_orb": [ + "packet_animation": [ "container", [ { @@ -613,49 +764,25 @@ "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" + "name": "animation", + "type": "u8" } ] ], - "packet_spawn_entity_weather": [ + "packet_attach_entity": [ "container", [ { "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "type": "i32" }, { - "name": "z", - "type": "f64" + "name": "vehicleId", + "type": "i32" } ] ], - "packet_spawn_entity_living": [ + "packet_bed": [ "container", [ { @@ -663,48 +790,33 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, + "name": "location", + "type": "position" + } + ] + ], + "packet_block_action": [ + "container", + [ { - "name": "pitch", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "headPitch", - "type": "i8" + "name": "byte1", + "type": "u8" }, { - "name": "velocity", - "type": "vec3i16" + "name": "byte2", + "type": "u8" }, { - "name": "metadata", - "type": "entityMetadata" + "name": "blockId", + "type": "varint" } ] ], - "packet_spawn_entity_painting": [ + "packet_block_break_animation": [ "container", [ { @@ -712,248 +824,248 @@ "type": "varint" }, { - "name": "entityUUID", - "type": "UUID" + "name": "location", + "type": "position" }, { - "name": "title", - "type": "string" - }, + "name": "destroyStage", + "type": "i8" + } + ] + ], + "packet_block_change": [ + "container", + [ { "name": "location", "type": "position" }, { - "name": "direction", - "type": "u8" + "name": "type", + "type": "varint" } ] ], - "packet_named_entity_spawn": [ + "packet_boss_bar": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "playerUUID", - "type": "UUID" + "name": "action", + "type": "varint" }, { - "name": "x", - "type": "f64" + "name": "title", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "3": "string" + } + } + ] }, { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" + "name": "health", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f32", + "2": "f32" + } + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "color", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "dividers", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "4": "varint" + } + } + ] }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", + "name": "flags", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "u8", + "5": "u8" + } } ] } ] ], - "packet_block_break_animation": [ + "packet_camera": [ "container", [ { - "name": "entityId", + "name": "cameraId", "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" } ] ], - "packet_tile_entity_data": [ + "packet_chat": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "message", + "type": "string" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "position", + "type": "i8" } ] ], - "packet_block_action": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "byte1", - "type": "u8" - }, - { - "name": "byte2", + "name": "windowId", "type": "u8" - }, - { - "name": "blockId", - "type": "varint" } ] ], - "packet_block_change": [ + "packet_collect": [ "container", [ { - "name": "location", - "type": "position" + "name": "collectedEntityId", + "type": "varint" }, { - "name": "type", + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", "type": "varint" } ] ], - "packet_boss_bar": [ + "packet_combat_event": [ "container", [ { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "action", + "name": "event", "type": "varint" }, { - "name": "title", + "name": "duration", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "string", - "3": "string" - }, - "default": "void" + "1": "varint" + } } ] }, { - "name": "health", + "name": "playerId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "f32", - "2": "f32" - }, - "default": "void" + "2": "varint" + } } ] }, { - "name": "color", + "name": "entityId", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "dividers", + "name": "message", "type": [ "switch", { - "compareTo": "action", + "compareTo": "event", + "default": "void", "fields": { - "0": "varint", - "4": "varint" - }, - "default": "void" + "2": "string" + } } ] + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "flags", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "u8", - "5": "u8" - }, - "default": "void" - } - ] + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" } ] ], @@ -966,264 +1078,282 @@ } ] ], - "packet_tab_complete": [ + "packet_entity": [ "container", [ { - "name": "matches", + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "varint" } ] } ] ], - "packet_chat": [ + "packet_entity_effect": [ "container", [ { - "name": "message", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "position", + "name": "effectId", "type": "i8" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ + }, { - "name": "chunkX", - "type": "i32" + "name": "amplifier", + "type": "i8" }, { - "name": "chunkZ", - "type": "i32" + "name": "duration", + "type": "varint" }, { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] - } - ] + "name": "hideParticles", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "slot", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "inventoryType", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "windowTitle", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "pitch", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ - { - "name": "windowId", - "type": "i8" }, { - "name": "slot", + "name": "dZ", "type": "i16" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ + "name": "yaw", + "type": "i8" + }, { - "name": "itemID", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_status": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "data", - "type": "restBuffer" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_named_sound_effect": [ + "packet_entity_teleport": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_velocity": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -1286,19 +1416,6 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], "packet_game_state_change": [ "container", [ @@ -1312,151 +1429,30 @@ } ] ], - "packet_keep_alive": [ + "packet_held_item_slot": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "slot", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "groundUp", - "type": "bool" - }, - { - "name": "bitMap", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" } ] ], - "packet_world_particles": [ + "packet_kick_disconnect": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, - { - "name": "particles", - "type": "i32" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "particleId", - "fields": { - "36": [ - "array", - { - "count": 2, - "type": "varint" - } - ], - "37": [ - "array", - { - "count": 1, - "type": "varint" - } - ], - "38": [ - "array", - { - "count": 1, - "type": "varint" - } - ] - }, - "default": "void" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -1544,10 +1540,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1557,10 +1553,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1570,10 +1566,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1583,46 +1579,100 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" + }, + { + "name": "bitMap", "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "dY", - "type": "i16" + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] + } + ] + ], + "packet_multi_block_change": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" }, { - "name": "dZ", - "type": "i16" + "name": "chunkZ", + "type": "i32" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_entity_move_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -1630,16 +1680,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dY", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -1650,58 +1704,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -1719,80 +1751,35 @@ } ] ], - "packet_abilities": [ + "packet_open_window": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" + "name": "windowId", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_combat_event": [ - "container", - [ - { - "name": "event", - "type": "varint" + "name": "inventoryType", + "type": "string" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { "name": "entityId", "type": [ "switch", { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -1806,14 +1793,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -1890,37 +1877,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -1932,6 +1919,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -1965,7 +1965,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -1973,23 +1973,20 @@ "type": "varint" }, { - "name": "location", - "type": "position" - } - ] - ], - "packet_entity_destroy": [ - "container", - [ + "name": "dX", + "type": "i16" + }, { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -2040,223 +2037,218 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ + { + "name": "name", + "type": "string" + }, { "name": "action", - "type": "varint" + "type": "i8" }, { - "name": "radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "0": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "x", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "new_radius", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] - }, - { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "1": "void" + } } ] } ] ], - "packet_camera": [ + "packet_set_cooldown": [ "container", [ { - "name": "cameraId", + "name": "itemID", + "type": "varint" + }, + { + "name": "cooldownTicks", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_set_passengers": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "entityId", + "type": "varint" + }, + { + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_scoreboard_display_objective": [ + "packet_set_slot": [ "container", [ { - "name": "position", + "name": "windowId", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_entity_metadata": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundId", "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "soundCategory", + "type": "varint" + }, { - "name": "entityId", + "name": "x", "type": "i32" }, { - "name": "vehicleId", + "name": "y", "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -2264,91 +2256,73 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "item", - "type": "slot" + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_experience": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "totalExperience", + "name": "type", "type": "varint" - } - ] - ], - "packet_update_health": [ - "container", - [ + }, { - "name": "health", - "type": "f32" + "name": "x", + "type": "f64" }, { - "name": "food", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_scoreboard_objective": [ - "container", - [ + "name": "z", + "type": "f64" + }, { - "name": "name", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "action", + "name": "pitch", "type": "i8" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "headPitch", + "type": "i8" }, { - "name": "type", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_set_passengers": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -2356,18 +2330,100 @@ "type": "varint" }, { - "name": "passengers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "packet_teams": [ + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", + "type": "string" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" + } + ] + ], + "packet_spawn_entity_weather": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_spawn_position": [ + "container", + [ + { + "name": "location", + "type": "position" + } + ] + ], + "packet_statistics": [ + "container", + [ + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "matches", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], + "packet_teams": [ "container", [ { @@ -2384,11 +2440,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2398,11 +2454,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2412,11 +2468,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2426,11 +2482,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2440,11 +2496,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2454,11 +2510,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2468,11 +2524,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2482,6 +2538,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -2504,62 +2561,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -2576,11 +2597,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string" - }, - "default": "void" + } } ] }, @@ -2590,10 +2611,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] }, @@ -2603,10 +2624,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] }, @@ -2616,85 +2637,78 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "2": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_sound_effect": [ + "packet_transaction": [ "container", [ { - "name": "soundId", - "type": "varint" - }, - { - "name": "soundCategory", - "type": "varint" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" + "name": "windowId", + "type": "i8" }, { - "name": "volume", - "type": "f32" + "name": "action", + "type": "i16" }, { - "name": "pitch", - "type": "f32" + "name": "accepted", + "type": "bool" } ] ], - "packet_playerlist_header": [ + "packet_unload_chunk": [ "container", [ { - "name": "header", - "type": "string" + "name": "chunkX", + "type": "i32" }, { - "name": "footer", - "type": "string" + "name": "chunkZ", + "type": "i32" } ] ], - "packet_collect": [ + "packet_update_health": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "collectorEntityId", + "name": "food", "type": "varint" }, { - "name": "pickupItemCount", - "type": "varint" + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_entity_teleport": [ + "packet_update_time": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "age", + "type": "i64" }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ { "name": "x", "type": "f64" @@ -2709,100 +2723,269 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "type": "f32" } ] ], - "packet_entity_update_attributes": [ + "packet_window_items": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "properties", + "name": "items", "type": [ "array", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "countType": "i16", + "type": "slot" } ] } ] ], - "packet_entity_effect": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, + { + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } + } + ] + } + ] + ], + "packet_world_event": [ + "container", + [ { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], + "packet_world_particles": [ + "container", + [ + { + "name": "particleId", + "type": "i32" + }, + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "particleId", + "default": "void", + "fields": { + "36": [ + "array", + { + "count": 2, + "type": "varint" + } + ], + "37": [ + "array", + { + "count": 1, + "type": "varint" + } + ], + "38": [ + "array", + { + "count": 1, + "type": "varint" + } + ] + } + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -2811,85 +2994,39 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "sound_effect", - "0x47": "playerlist_header", - "0x48": "collect", - "0x49": "entity_teleport", - "0x4a": "entity_update_attributes", - "0x4b": "entity_effect" - } + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" + }, + "type": "varint" } ] }, @@ -2900,118 +3037,111 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", + "abilities": "packet_abilities", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "look": "packet_look", "position": "packet_position", - "bed": "packet_bed", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect" + "position_look": "packet_position_look", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_sign": "packet_update_sign", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" + } + ] + ], + "packet_arm_animation": [ + "container", + [ + { + "name": "hand", "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_block_dig": [ + "container", + [ + { + "name": "status", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" + } + ] + ], + "packet_block_place": [ "container", [ { - "name": "text", - "type": "string" + "name": "location", + "type": "position" }, { - "name": "assumeCommand", - "type": "bool" + "name": "direction", + "type": "varint" }, { - "name": "lookedAtBlock", - "type": [ - "option", - "position" - ] + "name": "hand", + "type": "varint" + }, + { + "name": "cursorX", + "type": "i8" + }, + { + "name": "cursorY", + "type": "i8" + }, + { + "name": "cursorZ", + "type": "i8" } ] ], @@ -3033,49 +3163,25 @@ } ] ], - "packet_settings": [ + "packet_close_window": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", + "name": "windowId", "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" } ] ], - "packet_transaction": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "channel", + "type": "string" }, { - "name": "accepted", - "type": "bool" + "name": "data", + "type": "restBuffer" } ] ], @@ -3092,129 +3198,64 @@ } ] ], - "packet_window_click": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "mode", - "type": "i8" + "name": "actionId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_close_window": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_held_item_slot": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "slotId", + "type": "i16" } ] ], - "packet_use_entity": [ + "packet_keep_alive": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] } ] ], - "packet_keep_alive": [ + "packet_look": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -3268,118 +3309,76 @@ } ] ], - "packet_look": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_flying": [ + "packet_set_creative_slot": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_vehicle_move": [ + "packet_settings": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "locale", + "type": "string" }, { - "name": "yaw", - "type": "f32" + "name": "viewDistance", + "type": "i8" }, { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_steer_boat": [ - "container", - [ - { - "name": "leftPaddle", - "type": "bool" + "name": "chatFlags", + "type": "varint" }, { - "name": "rightPaddle", + "name": "chatColors", "type": "bool" - } - ] - ], - "packet_abilities": [ - "container", - [ - { - "name": "flags", - "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "skinParts", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -3400,34 +3399,49 @@ } ] ], - "packet_resource_pack_receive": [ + "packet_tab_complete": [ "container", [ { - "name": "result", - "type": "varint" + "name": "text", + "type": "string" + }, + { + "name": "assumeCommand", + "type": "bool" + }, + { + "name": "lookedAtBlock", + "type": [ + "option", + "position" + ] } ] ], - "packet_held_item_slot": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "teleportId", + "type": "varint" } ] ], - "packet_set_creative_slot": [ + "packet_transaction": [ "container", [ { - "name": "slot", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" }, { - "name": "item", - "type": "slot" + "name": "accepted", + "type": "bool" } ] ], @@ -3456,146 +3470,132 @@ } ] ], - "packet_arm_animation": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", + "type": "varint" + }, + { + "name": "mouse", "type": "varint" + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], - "packet_spectate": [ + "packet_use_item": [ "container", [ { - "name": "target", - "type": "UUID" + "name": "hand", + "type": "varint" } ] ], - "packet_block_place": [ + "packet_vehicle_move": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "hand", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "cursorX", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "cursorY", - "type": "i8" + "name": "yaw", + "type": "f32" }, { - "name": "cursorZ", - "type": "i8" + "name": "pitch", + "type": "f32" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" - } - ] - ], - "packet": [ - "container", - [ + "name": "windowId", + "type": "u8" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" - } - } - ] + "name": "slot", + "type": "i16" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } - } - ] + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/17w15a/protocol.json b/data/pc/17w15a/protocol.json index b827b8f06..a3313345d 100644 --- a/data/pc/17w15a/protocol.json +++ b/data/pc/17w15a/protocol.json @@ -1,116 +1,53 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 255, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ + "anon": true, + "type": [ "container", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "key", + "type": "u8" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "type", + "type": "i8" } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -156,42 +93,105 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ + "compareTo": "blockId", + "default": [ "container", [ { - "name": "key", - "type": "u8" + "name": "itemCount", + "type": "i8" }, { - "name": "type", - "type": "i8" + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -204,8 +204,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -225,36 +225,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -263,11 +233,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -278,38 +248,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -318,11 +300,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -333,21 +315,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -358,6 +332,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -366,11 +353,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -381,13 +368,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -395,6 +395,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -443,16 +487,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -461,13 +500,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -478,28 +515,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -524,6 +546,21 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -532,11 +569,87 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "advancements", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "tab_complete", + "0x10": "chat", + "0x11": "multi_block_change", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "login", + "0x25": "map", + "0x26": "rel_entity_move", + "0x27": "entity_move_look", + "0x28": "entity_look", + "0x29": "entity", + "0x2a": "vehicle_move", + "0x2b": "open_sign_entity", + "0x2c": "abilities", + "0x2d": "combat_event", + "0x2e": "player_info", + "0x2f": "position", + "0x30": "bed", + "0x31": "unlock_recipes", + "0x32": "entity_destroy", + "0x33": "remove_entity_effect", + "0x34": "resource_pack_send", + "0x35": "respawn", + "0x36": "entity_head_rotation", + "0x37": "world_border", + "0x38": "camera", + "0x39": "held_item_slot", + "0x3a": "scoreboard_display_objective", + "0x3b": "entity_metadata", + "0x3c": "attach_entity", + "0x3d": "entity_velocity", + "0x3e": "entity_equipment", + "0x3f": "experience", + "0x40": "update_health", + "0x41": "scoreboard_objective", + "0x42": "set_passengers", + "0x43": "teams", + "0x44": "scoreboard_score", + "0x45": "spawn_position", + "0x46": "update_time", + "0x47": "title", + "0x48": "sound_effect", + "0x49": "playerlist_header", + "0x4a": "collect", + "0x4b": "entity_teleport", + "0x4c": "entity_update_attributes", + "0x4d": "entity_effect" + }, + "type": "varint" } ] }, @@ -547,263 +660,104 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } - } - ] - } - ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] - ], - "packet_spawn_entity_weather": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - } - ] - ], - "packet_spawn_entity_living": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "velocity", - "type": "vec3i16" - }, - { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_spawn_entity_painting": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "string" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "u8" - } - ] - ], - "packet_named_entity_spawn": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "metadata", - "type": "entityMetadata" + "abilities": "packet_abilities", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "custom_payload": "packet_custom_payload", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_animation": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "flags", + "type": "i8" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ + "name": "flyingSpeed", + "type": "f32" + }, { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "walkingSpeed", + "type": "f32" } ] ], @@ -982,7 +936,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -990,29 +944,34 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" + "name": "entityId", + "type": "i32" }, { - "name": "action", - "type": "u8" + "name": "vehicleId", + "type": "i32" + } + ] + ], + "packet_bed": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "location", + "type": "position" } ] ], @@ -1037,6 +996,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1067,11 +1043,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1081,11 +1057,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1095,11 +1071,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1109,11 +1085,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1123,16 +1099,156 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } + } + ] + } + ] + ], + "packet_camera": [ + "container", + [ + { + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat": [ + "container", + [ + { + "name": "message", + "type": "string" + }, + { + "name": "position", + "type": "i8" + } + ] + ], + "packet_close_window": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", + "type": "varint" + }, + { + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_combat_event": [ + "container", + [ + { + "name": "event", + "type": "varint" + }, + { + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] + }, + { + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "i32", + "2": "i32" + } + } + ] + }, + { + "name": "message", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "string" + } } ] } ] ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], "packet_difficulty": [ "container", [ @@ -1142,264 +1258,282 @@ } ] ], - "packet_tab_complete": [ + "packet_entity": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_entity_destroy": [ "container", [ { - "name": "matches", + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "varint" } ] } ] ], - "packet_chat": [ + "packet_entity_effect": [ "container", [ { - "name": "message", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "position", + "name": "effectId", "type": "i8" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ + }, { - "name": "chunkX", - "type": "i32" + "name": "amplifier", + "type": "i8" }, { - "name": "chunkZ", - "type": "i32" + "name": "duration", + "type": "varint" }, { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] - } - ] + "name": "hideParticles", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "slot", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "inventoryType", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "windowTitle", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "pitch", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ - { - "name": "windowId", - "type": "i8" }, { - "name": "slot", + "name": "dZ", "type": "i16" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ + "name": "yaw", + "type": "i8" + }, { - "name": "itemID", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_status": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "data", - "type": "restBuffer" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_named_sound_effect": [ + "packet_entity_teleport": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] + } + ] + ], + "packet_entity_velocity": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_status": [ + "packet_experience": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "experienceBar", + "type": "f32" }, { - "name": "entityStatus", - "type": "i8" + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -1462,19 +1596,6 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], "packet_game_state_change": [ "container", [ @@ -1488,151 +1609,30 @@ } ] ], - "packet_keep_alive": [ + "packet_held_item_slot": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "slot", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "groundUp", - "type": "bool" - }, - { - "name": "bitMap", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" } ] ], - "packet_world_particles": [ + "packet_kick_disconnect": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, - { - "name": "particles", - "type": "i32" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "particleId", - "fields": { - "36": [ - "array", - { - "count": 2, - "type": "varint" - } - ], - "37": [ - "array", - { - "count": 1, - "type": "varint" - } - ], - "38": [ - "array", - { - "count": 1, - "type": "varint" - } - ] - }, - "default": "void" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -1720,10 +1720,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1733,10 +1733,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1746,10 +1746,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1759,21 +1759,100 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } + ], + "fields": { + "0": "void" + } + } + ] + } + ] + ], + "packet_map_chunk": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" + }, + { + "name": "bitMap", + "type": "varint" + }, + { + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] + } + ] + ], + "packet_multi_block_change": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + }, + { + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] ] } ] } ] ], - "packet_rel_entity_move": [ + "packet_named_entity_spawn": [ "container", [ { @@ -1781,41 +1860,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_move_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dX", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dY", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -1826,58 +1884,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -1895,80 +1931,35 @@ } ] ], - "packet_abilities": [ + "packet_open_window": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" + "name": "windowId", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_combat_event": [ - "container", - [ - { - "name": "event", - "type": "varint" + "name": "inventoryType", + "type": "string" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { "name": "entityId", "type": [ "switch", { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -1982,14 +1973,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2066,37 +2057,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -2108,6 +2099,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -2133,82 +2137,36 @@ }, { "name": "flags", - "type": "i8" - }, - { - "name": "teleportId", - "type": "varint" - } - ] - ], - "packet_bed": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "location", - "type": "position" - } - ] - ], - "packet_unlock_recipes": [ - "container", - [ - { - "name": "notification", - "type": "bool" - }, - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "filteringCraftable", - "type": "bool" - }, - { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "identifier", - "type": "string" - }, - { - "name": "isUnlocked", - "type": "bool" - }, - { - "name": "hasBeenDisplayed", - "type": "bool" - } - ] - ] - } - ] + "type": "i8" + }, + { + "name": "teleportId", + "type": "varint" } ] ], - "packet_entity_destroy": [ + "packet_rel_entity_move": [ "container", [ { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "entityId", + "type": "varint" + }, + { + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -2259,184 +2217,222 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ { - "name": "action", - "type": "varint" + "name": "name", + "type": "string" }, { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "i8" }, { - "name": "x", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "z", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] - }, + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "itemName", + "type": "string" }, { - "name": "new_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "portalBoundary", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "3": "varint" - }, - "default": "void" + "1": "void" + } } ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "itemID", + "type": "varint" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_passengers": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "warning_blocks", + "name": "passengers", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_camera": [ + "packet_set_slot": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "windowId", + "type": "i8" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_held_item_slot": [ + "packet_sound_effect": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "soundCategory", + "type": "varint" + }, + { + "name": "soundId", + "type": "varint" + }, + { + "name": "parrottedEntityType", + "type": "string" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_scoreboard_display_objective": [ + "packet_spawn_entity": [ "container", [ { - "name": "position", + "name": "entityId", + "type": "varint" + }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_metadata": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -2444,38 +2440,73 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "x", + "type": "f64" + }, { - "name": "entityId", - "type": "i32" + "name": "y", + "type": "f64" }, { - "name": "vehicleId", - "type": "i32" + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, { "name": "velocity", "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -2483,104 +2514,94 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "item", - "type": "slot" + "name": "title", + "type": "string" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_experience": [ + "packet_spawn_entity_weather": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "totalExperience", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_update_health": [ + "packet_spawn_position": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_scoreboard_objective": [ + "packet_statistics": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "action", - "type": "i8" - }, - { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - }, - { - "name": "type", + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "varint" + } + ] + ] } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": "string" } ] } @@ -2603,11 +2624,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2617,11 +2638,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2631,11 +2652,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2645,11 +2666,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2659,11 +2680,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2673,11 +2694,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2687,11 +2708,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2701,6 +2722,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -2723,62 +2745,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -2795,12 +2781,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2810,10 +2796,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -2823,10 +2809,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -2836,89 +2822,121 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_sound_effect": [ + "packet_transaction": [ "container", [ { - "name": "soundCategory", - "type": "varint" - }, - { - "name": "soundId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "parrottedEntityType", - "type": "string" + "name": "action", + "type": "i16" }, { - "name": "x", - "type": "i32" - }, + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ { - "name": "y", + "name": "chunkX", "type": "i32" }, { - "name": "z", + "name": "chunkZ", "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" } ] ], - "packet_playerlist_header": [ + "packet_unlock_recipes": [ "container", [ { - "name": "header", - "type": "string" + "name": "notification", + "type": "bool" }, { - "name": "footer", - "type": "string" + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "recipes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "identifier", + "type": "string" + }, + { + "name": "isUnlocked", + "type": "bool" + }, + { + "name": "hasBeenDisplayed", + "type": "bool" + } + ] + ] + } + ] } ] ], - "packet_collect": [ + "packet_update_health": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "collectorEntityId", + "name": "food", "type": "varint" }, { - "name": "pickupItemCount", - "type": "varint" + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_entity_teleport": [ + "packet_update_time": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "age", + "type": "i64" }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ { "name": "x", "type": "f64" @@ -2933,493 +2951,498 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "type": "f32" } ] ], - "packet_entity_update_attributes": [ + "packet_window_items": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "properties", + "name": "items", "type": [ "array", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "countType": "i16", + "type": "slot" } ] } ] ], - "packet_entity_effect": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "effectId", - "type": "i8" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] }, { - "name": "amplifier", - "type": "i8" + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "duration", - "type": "varint" + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "hideParticles", - "type": "i8" - } - ] - ], - "packet": [ - "container", - [ + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, { - "name": "name", + "name": "new_radius", "type": [ - "mapper", + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "advancements", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "tab_complete", - "0x10": "chat", - "0x11": "multi_block_change", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "login", - "0x25": "map", - "0x26": "rel_entity_move", - "0x27": "entity_move_look", - "0x28": "entity_look", - "0x29": "entity", - "0x2a": "vehicle_move", - "0x2b": "open_sign_entity", - "0x2c": "abilities", - "0x2d": "combat_event", - "0x2e": "player_info", - "0x2f": "position", - "0x30": "bed", - "0x31": "unlock_recipes", - "0x32": "entity_destroy", - "0x33": "remove_entity_effect", - "0x34": "resource_pack_send", - "0x35": "respawn", - "0x36": "entity_head_rotation", - "0x37": "world_border", - "0x38": "camera", - "0x39": "held_item_slot", - "0x3a": "scoreboard_display_objective", - "0x3b": "entity_metadata", - "0x3c": "attach_entity", - "0x3d": "entity_velocity", - "0x3e": "entity_equipment", - "0x3f": "experience", - "0x40": "update_health", - "0x41": "scoreboard_objective", - "0x42": "set_passengers", - "0x43": "teams", - "0x44": "scoreboard_score", - "0x45": "spawn_position", - "0x46": "update_time", - "0x47": "title", - "0x48": "sound_effect", - "0x49": "playerlist_header", - "0x4a": "collect", - "0x4b": "entity_teleport", - "0x4c": "entity_update_attributes", - "0x4d": "entity_effect" + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" } } ] }, { - "name": "params", + "name": "warning_blocks", "type": [ "switch", { - "compareTo": "name", + "compareTo": "action", + "default": "void", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", - "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", - "position": "packet_position", - "bed": "packet_bed", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect" + "3": "varint", + "5": "varint" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_world_event": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" } ] ], - "packet_prepare_crafting_grid": [ + "packet_world_particles": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "particleId", + "type": "i32" }, { - "name": "actionNumber", - "type": "u16" + "name": "longDistance", + "type": "bool" }, { - "name": "returnEntry", + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", "type": [ - "array", + "switch", { - "countType": "u8", - "type": [ - "container", - [ + "compareTo": "particleId", + "default": "void", + "fields": { + "36": [ + "array", { - "name": "item", - "type": "slot" - }, + "count": 2, + "type": "varint" + } + ], + "37": [ + "array", { - "name": "craftingSlot", - "type": "u8" - }, + "count": 1, + "type": "varint" + } + ], + "38": [ + "array", { - "name": "playerSlot", - "type": "u8" + "count": 1, + "type": "varint" } ] - ] + } + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "prepare_crafting_grid", + "0x02": "tab_complete", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "use_entity", + "0x0c": "keep_alive", + "0x0d": "position", + "0x0e": "position_look", + "0x0f": "look", + "0x10": "flying", + "0x11": "vehicle_move", + "0x12": "steer_boat", + "0x13": "abilities", + "0x14": "block_dig", + "0x15": "entity_action", + "0x16": "steer_vehicle", + "0x17": "crafting_book_data", + "0x18": "resource_pack_receive", + "0x19": "held_item_slot", + "0x1a": "set_creative_slot", + "0x1b": "update_sign", + "0x1c": "arm_animation", + "0x1d": "spectate", + "0x1e": "block_place", + "0x1f": "use_item" + }, + "type": "varint" } ] }, { - "name": "prepareEntry", + "name": "params", "type": [ - "array", + "switch", { - "countType": "u8", - "type": [ - "container", - [ - { - "name": "item", - "type": "slot" - }, - { - "name": "craftingSlot", - "type": "u8" - }, - { - "name": "playerSlot", - "type": "u8" - } - ] - ] + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat": "packet_chat", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "crafting_book_data": "packet_crafting_book_data", + "custom_payload": "packet_custom_payload", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "look": "packet_look", + "position": "packet_position", + "position_look": "packet_position_look", + "prepare_crafting_grid": "packet_prepare_crafting_grid", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_sign": "packet_update_sign", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" + } } ] } ] ], - "packet_tab_complete": [ + "packet_abilities": [ "container", [ { - "name": "text", - "type": "string" + "name": "flags", + "type": "i8" }, { - "name": "assumeCommand", - "type": "bool" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "lookedAtBlock", - "type": [ - "option", - "position" - ] + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_chat": [ + "packet_arm_animation": [ "container", [ { - "name": "message", - "type": "string" + "name": "hand", + "type": "varint" } ] ], - "packet_client_command": [ + "packet_block_dig": [ "container", [ { - "name": "actionId", + "name": "status", "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_settings": [ + "packet_block_place": [ "container", [ { - "name": "locale", - "type": "string" + "name": "location", + "type": "position" }, { - "name": "viewDistance", - "type": "i8" + "name": "direction", + "type": "varint" }, { - "name": "chatFlags", + "name": "hand", "type": "varint" }, { - "name": "chatColors", - "type": "bool" + "name": "cursorX", + "type": "f32" }, { - "name": "skinParts", - "type": "u8" + "name": "cursorY", + "type": "f32" }, { - "name": "mainHand", - "type": "varint" + "name": "cursorZ", + "type": "f32" } ] ], - "packet_transaction": [ + "packet_chat": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, - { - "name": "accepted", - "type": "bool" + "name": "message", + "type": "string" } ] ], - "packet_enchant_item": [ + "packet_client_command": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "actionId", + "type": "varint" } ] ], - "packet_window_click": [ + "packet_close_window": [ "container", [ { "name": "windowId", "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, - { - "name": "mode", - "type": "i8" - }, - { - "name": "item", - "type": "slot" } ] ], - "packet_close_window": [ + "packet_crafting_book_data": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "type", + "type": "i32" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "1": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "2": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], @@ -3436,69 +3459,51 @@ } ] ], - "packet_use_entity": [ + "packet_enchant_item": [ "container", [ { - "name": "target", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "mouse", + "name": "enchantment", + "type": "i8" + } + ] + ], + "packet_entity_action": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "actionId", + "type": "varint" }, { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "slotId", + "type": "i16" } ] ], @@ -3511,6 +3516,23 @@ } ] ], + "packet_look": [ + "container", + [ + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], "packet_position": [ "container", [ @@ -3561,118 +3583,141 @@ } ] ], - "packet_look": [ + "packet_prepare_crafting_grid": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "windowId", + "type": "u8" }, { - "name": "pitch", - "type": "f32" + "name": "actionNumber", + "type": "u16" }, { - "name": "onGround", - "type": "bool" + "name": "returnEntry", + "type": [ + "array", + { + "countType": "u8", + "type": [ + "container", + [ + { + "name": "item", + "type": "slot" + }, + { + "name": "craftingSlot", + "type": "u8" + }, + { + "name": "playerSlot", + "type": "u8" + } + ] + ] + } + ] + }, + { + "name": "prepareEntry", + "type": [ + "array", + { + "countType": "u8", + "type": [ + "container", + [ + { + "name": "item", + "type": "slot" + }, + { + "name": "craftingSlot", + "type": "u8" + }, + { + "name": "playerSlot", + "type": "u8" + } + ] + ] + } + ] } ] ], - "packet_flying": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_set_creative_slot": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" + "name": "slot", + "type": "i16" }, { - "name": "pitch", - "type": "f32" + "name": "item", + "type": "slot" } ] ], - "packet_steer_boat": [ + "packet_settings": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "locale", + "type": "string" }, { - "name": "rightPaddle", - "type": "bool" - } - ] - ], - "packet_abilities": [ - "container", - [ - { - "name": "flags", + "name": "viewDistance", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "chatFlags", + "type": "varint" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -3693,76 +3738,49 @@ } ] ], - "packet_crafting_book_data": [ + "packet_tab_complete": [ "container", [ { - "name": "type", - "type": "i32" + "name": "text", + "type": "string" }, { - "anon": true, + "name": "assumeCommand", + "type": "bool" + }, + { + "name": "lookedAtBlock", "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "1": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "2": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - } - ] - ] - } - } + "option", + "position" ] } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_transaction": [ "container", [ { - "name": "slotId", - "type": "i16" - } - ] - ], - "packet_set_creative_slot": [ - "container", - [ + "name": "windowId", + "type": "i8" + }, { - "name": "slot", + "name": "action", "type": "i16" }, { - "name": "item", - "type": "slot" + "name": "accepted", + "type": "bool" } ] ], @@ -3791,150 +3809,132 @@ } ] ], - "packet_arm_animation": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", + "type": "varint" + }, + { + "name": "mouse", "type": "varint" + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], - "packet_spectate": [ + "packet_use_item": [ "container", [ { - "name": "target", - "type": "UUID" + "name": "hand", + "type": "varint" } ] ], - "packet_block_place": [ + "packet_vehicle_move": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "hand", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "cursorX", - "type": "f32" + "name": "z", + "type": "f64" }, { - "name": "cursorY", + "name": "yaw", "type": "f32" }, { - "name": "cursorZ", + "name": "pitch", "type": "f32" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" - } - ] - ], - "packet": [ - "container", - [ + "name": "windowId", + "type": "u8" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "prepare_crafting_grid", - "0x02": "tab_complete", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "use_entity", - "0x0c": "keep_alive", - "0x0d": "position", - "0x0e": "position_look", - "0x0f": "look", - "0x10": "flying", - "0x11": "vehicle_move", - "0x12": "steer_boat", - "0x13": "abilities", - "0x14": "block_dig", - "0x15": "entity_action", - "0x16": "steer_vehicle", - "0x17": "crafting_book_data", - "0x18": "resource_pack_receive", - "0x19": "held_item_slot", - "0x1a": "set_creative_slot", - "0x1b": "update_sign", - "0x1c": "arm_animation", - "0x1d": "spectate", - "0x1e": "block_place", - "0x1f": "use_item" - } - } - ] + "name": "slot", + "type": "i16" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "prepare_crafting_grid": "packet_prepare_crafting_grid", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } - } - ] + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/17w18b/protocol.json b/data/pc/17w18b/protocol.json index 3065237ff..cf4782c5d 100644 --- a/data/pc/17w18b/protocol.json +++ b/data/pc/17w18b/protocol.json @@ -1,116 +1,53 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 255, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ + "anon": true, + "type": [ "container", [ { - "name": "itemCount", - "type": "i8" - }, - { - "name": "itemDamage", - "type": "i16" + "name": "key", + "type": "u8" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "type", + "type": "i8" } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -156,42 +93,105 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ + "compareTo": "blockId", + "default": [ "container", [ { - "name": "key", - "type": "u8" + "name": "itemCount", + "type": "i8" }, { - "name": "type", - "type": "i8" + "name": "itemDamage", + "type": "i16" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -204,8 +204,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -225,36 +225,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -263,11 +233,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -278,38 +248,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -318,11 +300,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -333,21 +315,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -358,6 +332,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -366,11 +353,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -381,13 +368,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -395,6 +395,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -443,16 +487,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -461,13 +500,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -478,28 +515,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -524,6 +546,21 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -532,11 +569,87 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "advancements", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "tab_complete", + "0x10": "chat", + "0x11": "multi_block_change", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "login", + "0x25": "map", + "0x26": "rel_entity_move", + "0x27": "entity_move_look", + "0x28": "entity_look", + "0x29": "entity", + "0x2a": "vehicle_move", + "0x2b": "open_sign_entity", + "0x2c": "abilities", + "0x2d": "combat_event", + "0x2e": "player_info", + "0x2f": "position", + "0x30": "bed", + "0x31": "unlock_recipes", + "0x32": "entity_destroy", + "0x33": "remove_entity_effect", + "0x34": "resource_pack_send", + "0x35": "respawn", + "0x36": "entity_head_rotation", + "0x37": "world_border", + "0x38": "camera", + "0x39": "held_item_slot", + "0x3a": "scoreboard_display_objective", + "0x3b": "entity_metadata", + "0x3c": "attach_entity", + "0x3d": "entity_velocity", + "0x3e": "entity_equipment", + "0x3f": "experience", + "0x40": "update_health", + "0x41": "scoreboard_objective", + "0x42": "set_passengers", + "0x43": "teams", + "0x44": "scoreboard_score", + "0x45": "spawn_position", + "0x46": "update_time", + "0x47": "title", + "0x48": "sound_effect", + "0x49": "playerlist_header", + "0x4a": "collect", + "0x4b": "entity_teleport", + "0x4c": "entity_update_attributes", + "0x4d": "entity_effect" + }, + "type": "varint" } ] }, @@ -547,263 +660,104 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" + "abilities": "packet_abilities", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "custom_payload": "packet_custom_payload", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "tab_complete": "packet_tab_complete", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] - ], - "packet_spawn_entity_weather": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - } - ] - ], - "packet_spawn_entity_living": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "velocity", - "type": "vec3i16" - }, - { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_spawn_entity_painting": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "string" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "u8" - } - ] ], - "packet_named_entity_spawn": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "flags", "type": "i8" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "walkingSpeed", + "type": "f32" } ] ], @@ -986,7 +940,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -994,29 +948,34 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" + "name": "entityId", + "type": "i32" }, { - "name": "action", - "type": "u8" + "name": "vehicleId", + "type": "i32" + } + ] + ], + "packet_bed": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "location", + "type": "position" } ] ], @@ -1041,6 +1000,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1071,11 +1047,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1085,11 +1061,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1099,11 +1075,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1113,11 +1089,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1127,16 +1103,156 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], + "packet_camera": [ + "container", + [ + { + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat": [ + "container", + [ + { + "name": "message", + "type": "string" + }, + { + "name": "position", + "type": "i8" + } + ] + ], + "packet_close_window": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_collect": [ + "container", + [ + { + "name": "collectedEntityId", + "type": "varint" + }, + { + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_combat_event": [ + "container", + [ + { + "name": "event", + "type": "varint" + }, + { + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] + }, + { + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "i32", + "2": "i32" + } + } + ] + }, + { + "name": "message", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "string" + } + } + ] + } + ] + ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], "packet_difficulty": [ "container", [ @@ -1146,264 +1262,282 @@ } ] ], - "packet_tab_complete": [ + "packet_entity": [ "container", [ { - "name": "matches", + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_entity_destroy": [ + "container", + [ + { + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "varint" } ] } ] ], - "packet_chat": [ + "packet_entity_effect": [ "container", [ { - "name": "message", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "position", + "name": "effectId", "type": "i8" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ + }, { - "name": "chunkX", - "type": "i32" + "name": "amplifier", + "type": "i8" }, { - "name": "chunkZ", - "type": "i32" + "name": "duration", + "type": "varint" }, { - "name": "records", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] - } - ] + "name": "hideParticles", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "slot", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_close_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "headYaw", + "type": "i8" } ] ], - "packet_open_window": [ + "packet_entity_look": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "inventoryType", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "windowTitle", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "pitch", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_set_slot": [ + "packet_entity_status": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "slot", - "type": "i16" + "name": "entityId", + "type": "i32" }, { - "name": "item", - "type": "slot" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_set_cooldown": [ + "packet_entity_teleport": [ "container", [ { - "name": "itemID", + "name": "entityId", "type": "varint" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_named_sound_effect": [ + "packet_entity_velocity": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_kick_disconnect": [ + "packet_experience": [ "container", [ { - "name": "reason", - "type": "string" - } - ] - ], - "packet_entity_status": [ - "container", - [ + "name": "experienceBar", + "type": "f32" + }, { - "name": "entityId", - "type": "i32" + "name": "level", + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "totalExperience", + "type": "varint" } ] ], @@ -1466,19 +1600,6 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], "packet_game_state_change": [ "container", [ @@ -1492,151 +1613,30 @@ } ] ], - "packet_keep_alive": [ + "packet_held_item_slot": [ "container", [ { - "name": "keepAliveId", - "type": "varint" + "name": "slot", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "groundUp", - "type": "bool" - }, - { - "name": "bitMap", + "name": "keepAliveId", "type": "varint" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" - } - ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" } ] ], - "packet_world_particles": [ + "packet_kick_disconnect": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, - { - "name": "particles", - "type": "i32" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "particleId", - "fields": { - "36": [ - "array", - { - "count": 2, - "type": "varint" - } - ], - "37": [ - "array", - { - "count": 1, - "type": "varint" - } - ], - "38": [ - "array", - { - "count": 1, - "type": "varint" - } - ] - }, - "default": "void" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -1724,10 +1724,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -1737,72 +1737,126 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "columns", + "default": "i8", + "fields": { + "0": "void" + } + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } } ] + } + ] + ], + "packet_map_chunk": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" }, { - "name": "y", + "name": "bitMap", + "type": "varint" + }, + { + "name": "chunkData", "type": [ - "switch", + "buffer", { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": "i8" + "countType": "varint" } ] }, { - "name": "data", + "name": "blockEntities", "type": [ - "switch", + "array", { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] + "countType": "varint", + "type": "nbt" } ] } ] ], - "packet_rel_entity_move": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" + "name": "chunkX", + "type": "i32" }, { - "name": "dZ", - "type": "i16" + "name": "chunkZ", + "type": "i32" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_entity_move_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -1810,37 +1864,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "yaw", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "pitch", - "type": "i8" + "name": "y", + "type": "f64" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -1851,37 +1888,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -1899,80 +1935,35 @@ } ] ], - "packet_abilities": [ + "packet_open_window": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" + "name": "windowId", + "type": "u8" }, { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_combat_event": [ - "container", - [ - { - "name": "event", - "type": "varint" + "name": "inventoryType", + "type": "string" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { "name": "entityId", "type": [ "switch", { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -1986,14 +1977,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2070,37 +2061,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -2112,6 +2103,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -2145,68 +2149,28 @@ } ] ], - "packet_bed": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "location", - "type": "position" - } - ] - ], - "packet_unlock_recipes": [ + "packet_rel_entity_move": [ "container", [ { - "name": "action", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] + "name": "dZ", + "type": "i16" }, { - "name": "recipes2", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "onGround", + "type": "bool" } ] ], @@ -2257,184 +2221,218 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ { - "name": "action", - "type": "varint" + "name": "name", + "type": "string" }, { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "i8" }, { - "name": "x", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "z", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] - }, + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "itemName", + "type": "string" }, { - "name": "new_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "portalBoundary", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "3": "varint" - }, - "default": "void" + "1": "void" + } } ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "itemID", + "type": "varint" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_passengers": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "warning_blocks", + "name": "passengers", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_camera": [ + "packet_set_slot": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "windowId", + "type": "i8" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_held_item_slot": [ + "packet_sound_effect": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "soundId", + "type": "varint" + }, + { + "name": "soundCategory", + "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_scoreboard_display_objective": [ + "packet_spawn_entity": [ "container", [ { - "name": "position", + "name": "entityId", + "type": "varint" + }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "i8" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_metadata": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -2442,38 +2440,73 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "x", + "type": "f64" + }, { - "name": "entityId", - "type": "i32" + "name": "y", + "type": "f64" }, { - "name": "vehicleId", - "type": "i32" + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, { "name": "velocity", "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -2481,104 +2514,94 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "item", - "type": "slot" + "name": "title", + "type": "string" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_experience": [ + "packet_spawn_entity_weather": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "totalExperience", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_update_health": [ + "packet_spawn_position": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_scoreboard_objective": [ + "packet_statistics": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "action", - "type": "i8" - }, - { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] - }, - { - "name": "type", + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "varint" + } + ] + ] } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": "string" } ] } @@ -2601,11 +2624,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2615,11 +2638,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2629,11 +2652,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2643,11 +2666,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2657,11 +2680,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2671,11 +2694,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2685,11 +2708,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -2699,6 +2722,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -2721,62 +2745,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -2793,12 +2781,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -2808,10 +2796,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -2821,10 +2809,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -2834,85 +2822,115 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_sound_effect": [ + "packet_transaction": [ "container", [ { - "name": "soundId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "soundCategory", - "type": "varint" + "name": "action", + "type": "i16" }, { - "name": "x", - "type": "i32" - }, + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ { - "name": "y", + "name": "chunkX", "type": "i32" }, { - "name": "z", + "name": "chunkZ", "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" } ] ], - "packet_playerlist_header": [ + "packet_unlock_recipes": [ "container", [ { - "name": "header", - "type": "string" + "name": "action", + "type": "i16" }, { - "name": "footer", - "type": "string" + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "recipes1", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] + }, + { + "name": "recipes2", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] } ] ], - "packet_collect": [ + "packet_update_health": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" + "name": "health", + "type": "f32" }, { - "name": "collectorEntityId", + "name": "food", "type": "varint" }, { - "name": "pickupItemCount", - "type": "varint" + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_entity_teleport": [ + "packet_update_time": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "age", + "type": "i64" }, + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ { "name": "x", "type": "f64" @@ -2927,493 +2945,498 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" - }, - { - "name": "onGround", - "type": "bool" + "type": "f32" } ] ], - "packet_entity_update_attributes": [ + "packet_window_items": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "properties", + "name": "items", "type": [ "array", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "countType": "i16", + "type": "slot" } ] } ] ], - "packet_entity_effect": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "effectId", - "type": "i8" + "name": "radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] }, { - "name": "amplifier", - "type": "i8" + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "duration", - "type": "varint" + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] }, { - "name": "hideParticles", - "type": "i8" - } - ] - ], - "packet": [ - "container", - [ + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, { - "name": "name", + "name": "new_radius", "type": [ - "mapper", + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", { - "type": "varint", - "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "advancements", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "tab_complete", - "0x10": "chat", - "0x11": "multi_block_change", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "login", - "0x25": "map", - "0x26": "rel_entity_move", - "0x27": "entity_move_look", - "0x28": "entity_look", - "0x29": "entity", - "0x2a": "vehicle_move", - "0x2b": "open_sign_entity", - "0x2c": "abilities", - "0x2d": "combat_event", - "0x2e": "player_info", - "0x2f": "position", - "0x30": "bed", - "0x31": "unlock_recipes", - "0x32": "entity_destroy", - "0x33": "remove_entity_effect", - "0x34": "resource_pack_send", - "0x35": "respawn", - "0x36": "entity_head_rotation", - "0x37": "world_border", - "0x38": "camera", - "0x39": "held_item_slot", - "0x3a": "scoreboard_display_objective", - "0x3b": "entity_metadata", - "0x3c": "attach_entity", - "0x3d": "entity_velocity", - "0x3e": "entity_equipment", - "0x3f": "experience", - "0x40": "update_health", - "0x41": "scoreboard_objective", - "0x42": "set_passengers", - "0x43": "teams", - "0x44": "scoreboard_score", - "0x45": "spawn_position", - "0x46": "update_time", - "0x47": "title", - "0x48": "sound_effect", - "0x49": "playerlist_header", - "0x4a": "collect", - "0x4b": "entity_teleport", - "0x4c": "entity_update_attributes", - "0x4d": "entity_effect" + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" } } ] }, { - "name": "params", + "name": "warning_blocks", "type": [ "switch", { - "compareTo": "name", + "compareTo": "action", + "default": "void", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", - "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", - "position": "packet_position", - "bed": "packet_bed", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect" + "3": "varint", + "5": "varint" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_world_event": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" } ] ], - "packet_prepare_crafting_grid": [ + "packet_world_particles": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "particleId", + "type": "i32" }, { - "name": "actionNumber", - "type": "u16" + "name": "longDistance", + "type": "bool" }, { - "name": "returnEntry", + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", "type": [ - "array", + "switch", { - "countType": "u16", - "type": [ - "container", - [ + "compareTo": "particleId", + "default": "void", + "fields": { + "36": [ + "array", { - "name": "item", - "type": "slot" - }, + "count": 2, + "type": "varint" + } + ], + "37": [ + "array", { - "name": "craftingSlot", - "type": "u8" - }, + "count": 1, + "type": "varint" + } + ], + "38": [ + "array", { - "name": "playerSlot", - "type": "u8" + "count": 1, + "type": "varint" } ] - ] + } + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "teleport_confirm", + "0x01": "prepare_crafting_grid", + "0x02": "tab_complete", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "use_entity", + "0x0c": "keep_alive", + "0x0d": "position", + "0x0e": "position_look", + "0x0f": "look", + "0x10": "flying", + "0x11": "vehicle_move", + "0x12": "steer_boat", + "0x13": "abilities", + "0x14": "block_dig", + "0x15": "entity_action", + "0x16": "steer_vehicle", + "0x17": "crafting_book_data", + "0x18": "resource_pack_receive", + "0x19": "held_item_slot", + "0x1a": "set_creative_slot", + "0x1b": "update_sign", + "0x1c": "arm_animation", + "0x1d": "spectate", + "0x1e": "block_place", + "0x1f": "use_item" + }, + "type": "varint" } ] }, { - "name": "prepareEntry", + "name": "params", "type": [ - "array", + "switch", { - "countType": "u16", - "type": [ - "container", - [ - { - "name": "item", - "type": "slot" - }, - { - "name": "craftingSlot", - "type": "u8" - }, - { - "name": "playerSlot", - "type": "u8" - } - ] - ] + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat": "packet_chat", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "crafting_book_data": "packet_crafting_book_data", + "custom_payload": "packet_custom_payload", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "look": "packet_look", + "position": "packet_position", + "position_look": "packet_position_look", + "prepare_crafting_grid": "packet_prepare_crafting_grid", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_sign": "packet_update_sign", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" + } } ] } ] ], - "packet_tab_complete": [ + "packet_abilities": [ "container", [ { - "name": "text", - "type": "string" + "name": "flags", + "type": "i8" }, { - "name": "assumeCommand", - "type": "bool" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "lookedAtBlock", - "type": [ - "option", - "position" - ] + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_chat": [ + "packet_arm_animation": [ "container", [ { - "name": "message", - "type": "string" + "name": "hand", + "type": "varint" } ] ], - "packet_client_command": [ + "packet_block_dig": [ "container", [ { - "name": "actionId", + "name": "status", "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_settings": [ + "packet_block_place": [ "container", [ { - "name": "locale", - "type": "string" + "name": "location", + "type": "position" }, { - "name": "viewDistance", - "type": "i8" + "name": "direction", + "type": "varint" }, { - "name": "chatFlags", + "name": "hand", "type": "varint" }, { - "name": "chatColors", - "type": "bool" + "name": "cursorX", + "type": "f32" }, { - "name": "skinParts", - "type": "u8" + "name": "cursorY", + "type": "f32" }, { - "name": "mainHand", - "type": "varint" + "name": "cursorZ", + "type": "f32" } ] ], - "packet_transaction": [ + "packet_chat": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, - { - "name": "accepted", - "type": "bool" + "name": "message", + "type": "string" } ] ], - "packet_enchant_item": [ + "packet_client_command": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "actionId", + "type": "varint" } ] ], - "packet_window_click": [ + "packet_close_window": [ "container", [ { "name": "windowId", "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, - { - "name": "mode", - "type": "i8" - }, - { - "name": "item", - "type": "slot" } ] ], - "packet_close_window": [ + "packet_crafting_book_data": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "type", + "type": "i32" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "1": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "2": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], @@ -3430,69 +3453,51 @@ } ] ], - "packet_use_entity": [ + "packet_enchant_item": [ "container", [ { - "name": "target", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "mouse", + "name": "enchantment", + "type": "i8" + } + ] + ], + "packet_entity_action": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "actionId", + "type": "varint" }, { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "slotId", + "type": "i16" } ] ], @@ -3505,6 +3510,23 @@ } ] ], + "packet_look": [ + "container", + [ + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], "packet_position": [ "container", [ @@ -3555,118 +3577,141 @@ } ] ], - "packet_look": [ + "packet_prepare_crafting_grid": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "windowId", + "type": "u8" }, { - "name": "pitch", - "type": "f32" + "name": "actionNumber", + "type": "u16" }, { - "name": "onGround", - "type": "bool" + "name": "returnEntry", + "type": [ + "array", + { + "countType": "u16", + "type": [ + "container", + [ + { + "name": "item", + "type": "slot" + }, + { + "name": "craftingSlot", + "type": "u8" + }, + { + "name": "playerSlot", + "type": "u8" + } + ] + ] + } + ] + }, + { + "name": "prepareEntry", + "type": [ + "array", + { + "countType": "u16", + "type": [ + "container", + [ + { + "name": "item", + "type": "slot" + }, + { + "name": "craftingSlot", + "type": "u8" + }, + { + "name": "playerSlot", + "type": "u8" + } + ] + ] + } + ] } ] ], - "packet_flying": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_set_creative_slot": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" + "name": "slot", + "type": "i16" }, { - "name": "pitch", - "type": "f32" + "name": "item", + "type": "slot" } ] ], - "packet_steer_boat": [ + "packet_settings": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "locale", + "type": "string" }, { - "name": "rightPaddle", - "type": "bool" - } - ] - ], - "packet_abilities": [ - "container", - [ - { - "name": "flags", + "name": "viewDistance", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "chatFlags", + "type": "varint" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -3687,76 +3732,49 @@ } ] ], - "packet_crafting_book_data": [ + "packet_tab_complete": [ "container", [ { - "name": "type", - "type": "i32" + "name": "text", + "type": "string" }, { - "anon": true, + "name": "assumeCommand", + "type": "bool" + }, + { + "name": "lookedAtBlock", "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "1": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "2": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - } - ] - ] - } - } + "option", + "position" ] } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_transaction": [ "container", [ { - "name": "slotId", - "type": "i16" - } - ] - ], - "packet_set_creative_slot": [ - "container", - [ + "name": "windowId", + "type": "i8" + }, { - "name": "slot", + "name": "action", "type": "i16" }, { - "name": "item", - "type": "slot" + "name": "accepted", + "type": "bool" } ] ], @@ -3785,150 +3803,132 @@ } ] ], - "packet_arm_animation": [ + "packet_use_entity": [ "container", [ { - "name": "hand", + "name": "target", + "type": "varint" + }, + { + "name": "mouse", "type": "varint" + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], - "packet_spectate": [ + "packet_use_item": [ "container", [ { - "name": "target", - "type": "UUID" + "name": "hand", + "type": "varint" } ] ], - "packet_block_place": [ + "packet_vehicle_move": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "hand", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "cursorX", - "type": "f32" + "name": "z", + "type": "f64" }, { - "name": "cursorY", + "name": "yaw", "type": "f32" }, { - "name": "cursorZ", + "name": "pitch", "type": "f32" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" - } - ] - ], - "packet": [ - "container", - [ + "name": "windowId", + "type": "u8" + }, { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "prepare_crafting_grid", - "0x02": "tab_complete", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "use_entity", - "0x0c": "keep_alive", - "0x0d": "position", - "0x0e": "position_look", - "0x0f": "look", - "0x10": "flying", - "0x11": "vehicle_move", - "0x12": "steer_boat", - "0x13": "abilities", - "0x14": "block_dig", - "0x15": "entity_action", - "0x16": "steer_vehicle", - "0x17": "crafting_book_data", - "0x18": "resource_pack_receive", - "0x19": "held_item_slot", - "0x1a": "set_creative_slot", - "0x1b": "update_sign", - "0x1c": "arm_animation", - "0x1d": "spectate", - "0x1e": "block_place", - "0x1f": "use_item" - } - } - ] + "name": "slot", + "type": "i16" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "prepare_crafting_grid": "packet_prepare_crafting_grid", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item" - } - } - ] + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/17w50a/protocol.json b/data/pc/17w50a/protocol.json index 7c73e11e2..6a796deb7 100644 --- a/data/pc/17w50a/protocol.json +++ b/data/pc/17w50a/protocol.json @@ -1,112 +1,53 @@ { "types": { - "varint": "native", - "varlong": "native", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "blockId", - "type": "i16" - }, - { - "anon": true, - "type": [ - "switch", + "endVal": 255, + "type": [ + "container", + [ { - "compareTo": "blockId", - "fields": { - "-1": "void" - }, - "default": [ + "anon": true, + "type": [ "container", [ { - "name": "itemCount", - "type": "i8" + "name": "key", + "type": "u8" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "type", + "type": "i8" } ] ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] } ] - } - ] - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] + ] + } ], "entityMetadataItem": [ "switch", @@ -152,42 +93,101 @@ } } ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + }, + { + "name": "z", + "signed": true, + "size": 26 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "blockId", + "type": "i16" + }, + { + "anon": true, + "type": [ + "switch", { - "anon": true, - "type": [ + "compareTo": "blockId", + "default": [ "container", [ { - "name": "key", - "type": "u8" + "name": "itemCount", + "type": "i8" }, { - "name": "type", - "type": "i8" + "name": "nbtData", + "type": "optionalNbt" } ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] + ], + "fields": { + "-1": "void" + } } ] - ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" } - ] + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -200,8 +200,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -221,36 +221,6 @@ }, "toServer": { "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], "packet": [ "container", [ @@ -259,11 +229,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -274,38 +244,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -314,11 +296,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -329,21 +311,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -354,6 +328,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -362,11 +349,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -377,13 +364,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] + ], + "packet_ping": [ + "container", + [ + { + "name": "time", + "type": "i64" + } + ] + ], + "packet_ping_start": [ + "container", + [] ] } } @@ -391,6 +391,50 @@ "login": { "toClient": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "success": "packet_success" + } + } + ] + } + ] + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -439,16 +483,11 @@ "type": "string" } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -457,13 +496,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" - } + "0x00": "login_start", + "0x01": "encryption_begin" + }, + "type": "varint" } ] }, @@ -474,28 +511,13 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress" + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -520,6 +542,21 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { "packet": [ "container", [ @@ -528,11 +565,93 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "login", + "0x25": "map", + "0x26": "entity", + "0x27": "rel_entity_move", + "0x28": "entity_move_look", + "0x29": "entity_look", + "0x2a": "vehicle_move", + "0x2b": "open_sign_entity", + "0x2c": "craft_recipe_response", + "0x2d": "abilities", + "0x2e": "combat_event", + "0x2f": "player_info", + "0x30": "position", + "0x31": "bed", + "0x32": "unlock_recipes", + "0x33": "entity_destroy", + "0x34": "remove_entity_effect", + "0x35": "resource_pack_send", + "0x36": "respawn", + "0x37": "entity_head_rotation", + "0x38": "select_advancement_tab", + "0x39": "world_border", + "0x3a": "camera", + "0x3b": "held_item_slot", + "0x3c": "scoreboard_display_objective", + "0x3d": "entity_metadata", + "0x3e": "attach_entity", + "0x3f": "entity_velocity", + "0x40": "entity_equipment", + "0x41": "experience", + "0x42": "update_health", + "0x43": "scoreboard_objective", + "0x44": "set_passengers", + "0x45": "teams", + "0x46": "scoreboard_score", + "0x47": "spawn_position", + "0x48": "update_time", + "0x49": "title", + "0x4a": "stop_sound", + "0x4b": "sound_effect", + "0x4c": "playerlist_header", + "0x4d": "collect", + "0x4e": "entity_teleport", + "0x4f": "advancements", + "0x50": "entity_update_attributes", + "0x51": "entity_effect", + "0x52": "declare_recipes", + "0x53": "tags" + }, + "type": "varint" } ] }, @@ -543,267 +662,110 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin" - } - } + "abilities": "packet_abilities", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "bed": "packet_bed", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_time": "packet_update_time", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] - ], - "packet_spawn_entity_weather": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - } - ] ], - "packet_spawn_entity_living": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "headPitch", - "type": "i8" - }, - { - "name": "velocity", - "type": "vec3i16" - }, - { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_spawn_entity_painting": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "string" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "direction", - "type": "u8" - } - ] - ], - "packet_named_entity_spawn": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "flags", "type": "i8" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "unknown1", - "type": "varint" - }, - { - "name": "unknown2", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "walkingSpeed", + "type": "f32" } ] ], @@ -869,23 +831,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -896,10 +858,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1016,7 +978,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1024,29 +986,34 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" + "name": "entityId", + "type": "i32" }, { - "name": "action", - "type": "u8" + "name": "vehicleId", + "type": "i32" + } + ] + ], + "packet_bed": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "location", + "type": "position" } ] ], @@ -1058,16 +1025,33 @@ "type": "position" }, { - "name": "byte1", - "type": "u8" + "name": "byte1", + "type": "u8" + }, + { + "name": "byte2", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "byte2", - "type": "u8" + "name": "location", + "type": "position" }, { - "name": "blockId", - "type": "varint" + "name": "destroyStage", + "type": "i8" } ] ], @@ -1101,11 +1085,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1115,11 +1099,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1129,11 +1113,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1143,11 +1127,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1157,52 +1141,169 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", + "name": "cameraId", + "type": "varint" + } + ] + ], + "packet_chat": [ + "container", + [ + { + "name": "message", + "type": "string" + }, + { + "name": "position", + "type": "i8" + } + ] + ], + "packet_close_window": [ + "container", + [ + { + "name": "windowId", "type": "u8" } ] ], - "packet_tab_complete": [ + "packet_collect": [ "container", [ { - "name": "transactionId", + "name": "collectedEntityId", "type": "varint" }, { - "name": "start", + "name": "collectorEntityId", "type": "varint" }, { - "name": "length", + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_combat_event": [ + "container", + [ + { + "name": "event", "type": "varint" }, { - "name": "matches", + "name": "duration", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] + }, + { + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "i32", + "2": "i32" + } + } + ] + }, + { + "name": "message", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "string" + } } ] } ] ], + "packet_craft_progress_bar": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" + } + ] + ], + "packet_craft_recipe_response": [ + "container", + [ + { + "name": "windowId", + "type": "i8" + }, + { + "name": "recipe", + "type": "string" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], "packet_declare_commands": [ "container", [ @@ -1222,28 +1323,28 @@ [ { "name": "unused", - "size": 3, - "signed": false + "signed": false, + "size": 3 }, { "name": "has_custom_suggestions", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_redirect_node", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "command_node_type", - "size": 2, - "signed": false + "signed": false, + "size": 2 } ] ] @@ -1264,10 +1365,10 @@ "switch", { "compareTo": "flags/has_redirect_node", + "default": "void", "fields": { "1": "varint" - }, - "default": "void" + } } ] }, @@ -1297,6 +1398,7 @@ "switch", { "compareTo": "parser", + "default": "void", "fields": { "brigadier:double": [ "container", @@ -1308,18 +1410,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1330,10 +1432,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "f64" - }, - "default": "void" + } } ] }, @@ -1343,10 +1445,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "f64" - }, - "default": "void" + } } ] } @@ -1362,18 +1464,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1384,10 +1486,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "f32" - }, - "default": "void" + } } ] }, @@ -1397,10 +1499,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "f32" - }, - "default": "void" + } } ] } @@ -1416,18 +1518,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1438,10 +1540,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -1451,10 +1553,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -1470,18 +1572,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1492,52 +1594,178 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, { - "name": "max", - "type": [ - "switch", - { - "compareTo": "flags/max_present", - "fields": { - "1": "i64" - }, - "default": "void" - } - ] + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "default": "void", + "fields": { + "1": "i64" + } + } + ] + } + ] + ], + "brigadier:string": "varint", + "minecraft:entity": "i8", + "minecraft:range": "bool", + "minecraft:score_holder": "i8" + } + } + ] + }, + { + "name": "suggests", + "type": [ + "switch", + { + "compareTo": "../flags/has_custom_suggestions", + "default": "void", + "fields": { + "1": "string" + } + } + ] + } + ] + ] + } + } + ] + } + ] + ] + } + ] + }, + { + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "recipeId", + "type": "string" + }, + { + "name": "type", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": [ + "array", + { + "countType": "varint", + "type": "slot" } ] - ], - "brigadier:string": "varint", - "minecraft:entity": "i8", - "minecraft:score_holder": "i8", - "minecraft:range": "bool" - }, - "default": "void" + } + ] } ] }, { - "name": "suggests", + "name": "result", + "type": "slot" + } + ] + ], + "crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", "type": [ - "switch", + "array", { - "compareTo": "../flags/has_custom_suggestions", - "fields": { - "1": "string" - }, - "default": "void" + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ] } ] + }, + { + "name": "result", + "type": "slot" } ] - ] + ], + "crafting_special_armordye": "void", + "crafting_special_banneraddpattern": "void", + "crafting_special_bannerduplicate": "void", + "crafting_special_bookcloning": "void", + "crafting_special_firework_rocket": "void", + "crafting_special_firework_star": "void", + "crafting_special_firework_star_fade": "void", + "crafting_special_mapcloning": "void", + "crafting_special_mapextending": "void", + "crafting_special_repairitem": "void", + "crafting_special_shielddecoration": "void", + "crafting_special_shulkerboxcoloring": "void", + "crafting_special_tippedarrow": "void" } } ] @@ -1546,256 +1774,294 @@ ] } ] - }, - { - "name": "rootIndex", - "type": "varint" } ] ], - "packet_chat": [ + "packet_difficulty": [ "container", [ { - "name": "message", - "type": "string" - }, - { - "name": "position", - "type": "i8" + "name": "difficulty", + "type": "u8" } ] ], - "packet_multi_block_change": [ + "packet_entity": [ "container", [ { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - }, + "name": "entityId", + "type": "varint" + } + ] + ], + "packet_entity_destroy": [ + "container", + [ { - "name": "records", + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalPos", - "type": "u8" - }, - { - "name": "y", - "type": "u8" - }, - { - "name": "blockId", - "type": "varint" - } - ] - ] + "type": "varint" } ] } ] ], - "packet_transaction": [ + "packet_entity_effect": [ "container", [ { - "name": "windowId", + "name": "entityId", + "type": "varint" + }, + { + "name": "effectId", "type": "i8" }, { - "name": "action", - "type": "i16" + "name": "amplifier", + "type": "i8" }, { - "name": "accepted", - "type": "bool" + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "i8" } ] ], - "packet_close_window": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" + }, + { + "name": "slot", + "type": "varint" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_open_window": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "inventoryType", - "type": "string" + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "windowTitle", - "type": "string" + "name": "yaw", + "type": "i8" }, { - "name": "slotCount", - "type": "u8" + "name": "pitch", + "type": "i8" }, { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "inventoryType", - "fields": { - "EntityHorse": "i32" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_window_items": [ + "packet_entity_metadata": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "i16", - "type": "slot" - } - ] + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_craft_progress_bar": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", + "name": "dX", "type": "i16" }, { - "name": "value", + "name": "dY", "type": "i16" - } - ] - ], - "packet_set_slot": [ - "container", - [ - { - "name": "windowId", - "type": "i8" }, { - "name": "slot", + "name": "dZ", "type": "i16" }, { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ + "name": "yaw", + "type": "i8" + }, { - "name": "itemID", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "onGround", + "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_entity_status": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "i32" }, { - "name": "data", - "type": "restBuffer" + "name": "entityStatus", + "type": "i8" } ] ], - "packet_named_sound_effect": [ + "packet_entity_teleport": [ "container", [ { - "name": "soundName", - "type": "string" - }, - { - "name": "soundCategory", + "name": "entityId", "type": "varint" }, { "name": "x", - "type": "i32" + "type": "f64" }, { "name": "y", - "type": "i32" + "type": "f64" }, { "name": "z", - "type": "i32" + "type": "f64" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_update_attributes": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_velocity": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "velocity", + "type": "vec3i16" + } + ] + ], + "packet_experience": [ + "container", + [ + { + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], @@ -1858,19 +2124,6 @@ } ] ], - "packet_unload_chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "i32" - }, - { - "name": "chunkZ", - "type": "i32" - } - ] - ], "packet_game_state_change": [ "container", [ @@ -1884,134 +2137,30 @@ } ] ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_map_chunk": [ + "packet_held_item_slot": [ "container", [ { - "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "groundUp", - "type": "bool" - }, - { - "name": "bitMap", - "type": "varint" - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" - } - ] + "name": "slot", + "type": "i8" } ] ], - "packet_world_event": [ + "packet_keep_alive": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_world_particles": [ + "packet_kick_disconnect": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" - }, - { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" - }, - { - "name": "particles", - "type": "i32" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "particleId", - "fields": { - "36": "slot", - "37": "varint", - "38": "varint", - "46": "varint" - }, - "default": "void" - } - ] + "name": "reason", + "type": "string" } ] ], @@ -2099,10 +2248,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2112,10 +2261,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2125,10 +2274,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2138,85 +2287,122 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_rel_entity_move": [ + "packet_map_chunk": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "i32" }, { - "name": "dX", - "type": "i16" + "name": "z", + "type": "i32" }, { - "name": "dY", - "type": "i16" + "name": "groundUp", + "type": "bool" }, { - "name": "dZ", - "type": "i16" + "name": "bitMap", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "yaw", - "type": "i8" + "name": "chunkX", + "type": "i32" }, { - "name": "pitch", - "type": "i8" + "name": "chunkZ", + "type": "i32" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalPos", + "type": "u8" + }, + { + "name": "y", + "type": "u8" + }, + { + "name": "blockId", + "type": "varint" + } + ] + ] + } + ] } ] ], - "packet_entity_look": [ + "packet_named_entity_spawn": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "playerUUID", + "type": "UUID" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "yaw", "type": "i8" @@ -2226,37 +2412,36 @@ "type": "i8" }, { - "name": "onGround", - "type": "bool" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2274,93 +2459,35 @@ } ] ], - "packet_craft_recipe_response": [ + "packet_open_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "recipe", + "name": "inventoryType", "type": "string" - } - ] - ], - "packet_abilities": [ - "container", - [ - { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" - } - ] - ], - "packet_combat_event": [ - "container", - [ - { - "name": "event", - "type": "varint" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" }, { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] + "name": "slotCount", + "type": "u8" }, { "name": "entityId", "type": [ "switch", { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] - }, - { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", + "compareTo": "inventoryType", + "default": "void", "fields": { - "2": "string" - }, - "default": "void" + "EntityHorse": "i32" + } } ] } @@ -2374,14 +2501,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2458,37 +2585,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -2500,6 +2627,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -2533,7 +2673,7 @@ } ] ], - "packet_bed": [ + "packet_rel_entity_move": [ "container", [ { @@ -2541,69 +2681,20 @@ "type": "varint" }, { - "name": "location", - "type": "position" - } - ] - ], - "packet_unlock_recipes": [ - "container", - [ - { - "name": "action", - "type": "varint" - }, - { - "name": "craftingBookOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "dZ", + "type": "i16" }, { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "onGround", + "type": "bool" } ] ], @@ -2654,184 +2745,230 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ + { + "name": "name", + "type": "string" + }, { "name": "action", - "type": "varint" + "type": "i8" }, { - "name": "radius", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "0": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "x", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "new_radius", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" + "1": "void" + } } ] - }, + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ { - "name": "speed", + "name": "id", "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } + "option", + "string" ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "itemID", + "type": "varint" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "cooldownTicks", + "type": "varint" + } + ] + ], + "packet_set_passengers": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "warning_time", + "name": "passengers", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" + "countType": "varint", + "type": "varint" } ] + } + ] + ], + "packet_set_slot": [ + "container", + [ + { + "name": "windowId", + "type": "i8" }, { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_camera": [ + "packet_sound_effect": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "soundId", + "type": "varint" + }, + { + "name": "soundCategory", + "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_held_item_slot": [ + "packet_spawn_entity": [ "container", [ { - "name": "slot", + "name": "entityId", + "type": "varint" + }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", "type": "i8" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + }, { - "name": "position", + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_metadata": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -2839,38 +2976,73 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "x", + "type": "f64" + }, { - "name": "entityId", - "type": "i32" + "name": "y", + "type": "f64" }, { - "name": "vehicleId", - "type": "i32" + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, { "name": "velocity", "type": "vec3i16" + }, + { + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -2878,109 +3050,165 @@ "type": "varint" }, { - "name": "slot", - "type": "varint" + "name": "entityUUID", + "type": "UUID" }, { - "name": "item", - "type": "slot" + "name": "title", + "type": "string" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_experience": [ + "packet_spawn_entity_weather": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "totalExperience", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_update_health": [ + "packet_spawn_position": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_scoreboard_objective": [ + "packet_statistics": [ "container", [ { - "name": "name", - "type": "string" - }, + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "unknown1", + "type": "varint" + }, + { + "name": "unknown2", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_stop_sound": [ + "container", + [ { - "name": "action", + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "2": "string", + "3": "string" + } } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", + "name": "transactionId", "type": "varint" }, { - "name": "passengers", + "name": "start", + "type": "varint" + }, + { + "name": "length", + "type": "varint" + }, + { + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": "string" } ] } ] ], + "packet_tags": [ + "container", + [ + { + "name": "blockTags", + "type": "tags" + }, + { + "name": "itemTags", + "type": "tags" + } + ] + ], "packet_teams": [ "container", [ @@ -2998,11 +3226,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3012,11 +3240,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3026,11 +3254,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3040,11 +3268,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3054,11 +3282,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3068,11 +3296,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3082,11 +3310,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3096,6 +3324,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3118,62 +3347,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3190,12 +3383,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3205,10 +3398,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3218,10 +3411,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3231,360 +3424,375 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_stop_sound": [ + "packet_transaction": [ "container", [ { - "name": "flags", + "name": "windowId", "type": "i8" }, { - "name": "source", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" - } - ] + "name": "action", + "type": "i16" }, { - "name": "sound", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "2": "string", - "3": "string" - }, - "default": "void" - } - ] + "name": "accepted", + "type": "bool" } ] ], - "packet_sound_effect": [ + "packet_unload_chunk": [ "container", [ { - "name": "soundId", - "type": "varint" - }, - { - "name": "soundCategory", - "type": "varint" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", + "name": "chunkX", "type": "i32" }, { - "name": "z", + "name": "chunkZ", "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" } ] ], - "packet_playerlist_header": [ + "packet_unlock_recipes": [ "container", [ { - "name": "header", - "type": "string" + "name": "action", + "type": "varint" }, { - "name": "footer", - "type": "string" - } - ] - ], - "packet_collect": [ - "container", - [ + "name": "craftingBookOpen", + "type": "bool" + }, { - "name": "collectedEntityId", - "type": "varint" + "name": "filteringCraftable", + "type": "bool" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "recipes1", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] }, { - "name": "pickupItemCount", - "type": "varint" + "name": "recipes2", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + } + ] } ] ], - "packet_entity_teleport": [ + "packet_update_health": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" + "name": "health", + "type": "f32" }, { - "name": "pitch", - "type": "i8" + "name": "food", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_entity_update_attributes": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] - } - ] + "packet_update_time": [ + "container", + [ + { + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" } ] ], - "packet_entity_effect": [ + "packet_vehicle_move": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "effectId", - "type": "i8" + "name": "y", + "type": "f64" }, { - "name": "amplifier", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "duration", - "type": "varint" + "name": "yaw", + "type": "f32" }, { - "name": "hideParticles", - "type": "i8" + "name": "pitch", + "type": "f32" } ] ], - "packet_select_advancement_tab": [ + "packet_window_items": [ "container", [ { - "name": "id", + "name": "windowId", + "type": "u8" + }, + { + "name": "items", "type": [ - "option", - "string" + "array", + { + "countType": "i16", + "type": "slot" + } ] } ] ], - "packet_declare_recipes": [ + "packet_world_border": [ "container", [ { - "name": "recipes", + "name": "action", + "type": "varint" + }, + { + "name": "radius", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "recipeId", - "type": "string" - }, - { - "name": "type", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ] - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "crafting_special_armordye": "void", - "crafting_special_bookcloning": "void", - "crafting_special_mapcloning": "void", - "crafting_special_mapextending": "void", - "crafting_special_firework_rocket": "void", - "crafting_special_firework_star": "void", - "crafting_special_firework_star_fade": "void", - "crafting_special_repairitem": "void", - "crafting_special_tippedarrow": "void", - "crafting_special_bannerduplicate": "void", - "crafting_special_banneraddpattern": "void", - "crafting_special_shielddecoration": "void", - "crafting_special_shulkerboxcoloring": "void" - } - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } + } + ] + } + ] + ], + "packet_world_event": [ + "container", + [ + { + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" + } + ] + ], + "packet_world_particles": [ + "container", + [ + { + "name": "particleId", + "type": "i32" + }, + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "particleId", + "default": "void", + "fields": { + "36": "slot", + "37": "varint", + "38": "varint", + "46": "varint" + } } ] } @@ -3614,20 +3822,11 @@ ] ] } - ], - "packet_tags": [ - "container", - [ - { - "name": "blockTags", - "type": "tags" - }, - { - "name": "itemTags", - "type": "tags" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -3636,331 +3835,268 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "login", - "0x25": "map", - "0x26": "entity", - "0x27": "rel_entity_move", - "0x28": "entity_move_look", - "0x29": "entity_look", - "0x2a": "vehicle_move", - "0x2b": "open_sign_entity", - "0x2c": "craft_recipe_response", - "0x2d": "abilities", - "0x2e": "combat_event", - "0x2f": "player_info", - "0x30": "position", - "0x31": "bed", - "0x32": "unlock_recipes", - "0x33": "entity_destroy", - "0x34": "remove_entity_effect", - "0x35": "resource_pack_send", - "0x36": "respawn", - "0x37": "entity_head_rotation", - "0x38": "select_advancement_tab", - "0x39": "world_border", - "0x3a": "camera", - "0x3b": "held_item_slot", - "0x3c": "scoreboard_display_objective", - "0x3d": "entity_metadata", - "0x3e": "attach_entity", - "0x3f": "entity_velocity", - "0x40": "entity_equipment", - "0x41": "experience", - "0x42": "update_health", - "0x43": "scoreboard_objective", - "0x44": "set_passengers", - "0x45": "teams", - "0x46": "scoreboard_score", - "0x47": "spawn_position", - "0x48": "update_time", - "0x49": "title", - "0x4a": "stop_sound", - "0x4b": "sound_effect", - "0x4c": "playerlist_header", - "0x4d": "collect", - "0x4e": "entity_teleport", - "0x4f": "advancements", - "0x50": "entity_update_attributes", - "0x51": "entity_effect", - "0x52": "declare_recipes", - "0x53": "tags" - } + "0x00": "teleport_confirm", + "0x01": "chat", + "0x02": "client_command", + "0x03": "settings", + "0x04": "tab_complete", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "flying", + "0x0d": "position", + "0x0e": "position_look", + "0x0f": "look", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "craft_recipe_request", + "0x13": "abilities", + "0x14": "block_dig", + "0x15": "entity_action", + "0x16": "steer_vehicle", + "0x17": "crafting_book_data", + "0x18": "resource_pack_receive", + "0x19": "advancement_tab", + "0x1a": "held_item_slot", + "0x1b": "set_creative_slot", + "0x1c": "update_sign", + "0x1d": "arm_animation", + "0x1e": "spectate", + "0x1f": "block_place", + "0x20": "use_item" + }, + "type": "varint" } ] }, { "name": "params", "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "login": "packet_login", - "map": "packet_map", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "look": "packet_look", "position": "packet_position", - "bed": "packet_bed", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags" + "position_look": "packet_position_look", + "resource_pack_receive": "packet_resource_pack_receive", + "set_creative_slot": "packet_set_creative_slot", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_sign": "packet_update_sign", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_tab_complete": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "text", - "type": "string" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_chat": [ + "packet_arm_animation": [ "container", [ { - "name": "message", - "type": "string" + "name": "hand", + "type": "varint" } ] ], - "packet_client_command": [ + "packet_block_dig": [ "container", [ { - "name": "actionId", + "name": "status", "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" } ] ], - "packet_settings": [ + "packet_block_place": [ "container", [ { - "name": "locale", - "type": "string" + "name": "location", + "type": "position" }, { - "name": "viewDistance", - "type": "i8" + "name": "direction", + "type": "varint" }, { - "name": "chatFlags", + "name": "hand", "type": "varint" }, { - "name": "chatColors", - "type": "bool" + "name": "cursorX", + "type": "f32" }, { - "name": "skinParts", - "type": "u8" + "name": "cursorY", + "type": "f32" }, { - "name": "mainHand", - "type": "varint" + "name": "cursorZ", + "type": "f32" } ] ], - "packet_transaction": [ + "packet_chat": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, - { - "name": "accepted", - "type": "bool" + "name": "message", + "type": "string" } ] ], - "packet_enchant_item": [ + "packet_client_command": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "actionId", + "type": "varint" } ] ], - "packet_window_click": [ + "packet_close_window": [ "container", [ { "name": "windowId", "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, + } + ] + ], + "packet_craft_recipe_request": [ + "container", + [ { - "name": "mouseButton", + "name": "windowId", "type": "i8" }, { - "name": "action", - "type": "i16" - }, - { - "name": "mode", - "type": "i8" + "name": "recipe", + "type": "string" }, { - "name": "item", - "type": "slot" + "name": "makeAll", + "type": "bool" } ] ], - "packet_close_window": [ + "packet_crafting_book_data": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "type", + "type": "varint" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "i32" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], @@ -3977,128 +4113,60 @@ } ] ], - "packet_use_entity": [ + "packet_enchant_item": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, + "name": "enchantment", + "type": "i8" + } + ] + ], + "packet_entity_action": [ + "container", + [ { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "entityId", + "type": "varint" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "actionId", + "type": "varint" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_keep_alive": [ + "packet_flying": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "onGround", + "type": "bool" } ] ], - "packet_position": [ + "packet_held_item_slot": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "onGround", - "type": "bool" + "name": "slotId", + "type": "i16" } ] ], - "packet_position_look": [ + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], @@ -4119,16 +4187,28 @@ } ] ], - "packet_flying": [ + "packet_position": [ "container", [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "onGround", "type": "bool" } ] ], - "packet_vehicle_move": [ + "packet_position_look": [ "container", [ { @@ -4150,177 +4230,139 @@ { "name": "pitch", "type": "f32" - } - ] - ], - "packet_steer_boat": [ - "container", - [ - { - "name": "leftPaddle", - "type": "bool" }, { - "name": "rightPaddle", + "name": "onGround", "type": "bool" } ] ], - "packet_craft_recipe_request": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" - }, - { - "name": "makeAll", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_abilities": [ + "packet_set_creative_slot": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" + "name": "slot", + "type": "i16" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "item", + "type": "slot" } ] ], - "packet_block_dig": [ + "packet_settings": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" + "name": "locale", + "type": "string" }, { - "name": "face", + "name": "viewDistance", "type": "i8" - } - ] - ], - "packet_entity_action": [ - "container", - [ + }, { - "name": "entityId", + "name": "chatFlags", "type": "varint" }, { - "name": "actionId", - "type": "varint" + "name": "chatColors", + "type": "bool" }, { - "name": "jumpBoost", + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", "type": "varint" } ] ], - "packet_steer_vehicle": [ + "packet_spectate": [ "container", [ { - "name": "sideways", - "type": "f32" - }, - { - "name": "forward", - "type": "f32" - }, - { - "name": "jump", - "type": "u8" + "name": "target", + "type": "UUID" } ] ], - "packet_crafting_book_data": [ + "packet_steer_boat": [ "container", [ { - "name": "type", - "type": "varint" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "i32" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "leftPaddle", + "type": "bool" + }, + { + "name": "rightPaddle", + "type": "bool" } ] ], - "packet_resource_pack_receive": [ + "packet_steer_vehicle": [ "container", [ { - "name": "result", + "name": "sideways", + "type": "f32" + }, + { + "name": "forward", + "type": "f32" + }, + { + "name": "jump", + "type": "u8" + } + ] + ], + "packet_tab_complete": [ + "container", + [ + { + "name": "transactionId", "type": "varint" + }, + { + "name": "text", + "type": "string" } ] ], - "packet_held_item_slot": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slotId", - "type": "i16" + "name": "teleportId", + "type": "varint" } ] ], - "packet_set_creative_slot": [ + "packet_transaction": [ "container", [ { - "name": "slot", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" }, { - "name": "item", - "type": "slot" + "name": "accepted", + "type": "bool" } ] ], @@ -4349,50 +4391,69 @@ } ] ], - "packet_arm_animation": [ - "container", - [ - { - "name": "hand", - "type": "varint" - } - ] - ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "location", - "type": "position" + "type": "varint" }, { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "hand", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -4405,118 +4466,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "chat", - "0x02": "client_command", - "0x03": "settings", - "0x04": "tab_complete", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "flying", - "0x0d": "position", - "0x0e": "position_look", - "0x0f": "look", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "craft_recipe_request", - "0x13": "abilities", - "0x14": "block_dig", - "0x15": "entity_action", - "0x16": "steer_vehicle", - "0x17": "crafting_book_data", - "0x18": "resource_pack_receive", - "0x19": "advancement_tab", - "0x1a": "held_item_slot", - "0x1b": "set_creative_slot", - "0x1c": "update_sign", - "0x1d": "arm_animation", - "0x1e": "spectate", - "0x1f": "block_place", - "0x20": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/20w13b/protocol.json b/data/pc/20w13b/protocol.json index 66fdb8b50..96e509f13 100644 --- a/data/pc/20w13b/protocol.json +++ b/data/pc/20w13b/protocol.json @@ -1,362 +1,75 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", + "command_node": [ "container", [ { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", + "name": "flags", "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", + "bitfield", [ { - "name": "red", - "type": "f32" + "name": "unused", + "signed": false, + "size": 3 }, { - "name": "green", - "type": "f32" + "name": "has_custom_suggestions", + "signed": false, + "size": 1 }, { - "name": "blue", - "type": "f32" + "name": "has_redirect_node", + "signed": false, + "size": 1 }, { - "name": "scale", - "type": "f32" - } - ] - ], - "23": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "34": [ - "container", - [ + "name": "has_command", + "signed": false, + "size": 1 + }, { - "name": "item", - "type": "slot" + "name": "command_node_type", + "signed": false, + "size": 2 } ] ] }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ { - "name": "x", - "size": 26, - "signed": true + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], - "command_node": [ - "container", - [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - }, - { - "name": "children", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - }, - { - "name": "redirectNode", - "type": [ - "switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { "name": "extraNodeData", @@ -394,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -404,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -426,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -439,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -458,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -480,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -493,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -512,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -534,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -547,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -566,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -588,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -601,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -613,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", + "minecraft:mob_effect": "void", "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", "minecraft:nbt_path": "void", "minecraft:objective": "void", "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", "minecraft:range": [ "container", [ @@ -693,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -709,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -718,7 +409,29 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" } } ] @@ -729,10 +442,10 @@ "switch", { "compareTo": "../flags/has_custom_suggestions", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] } @@ -743,70 +456,327 @@ ] } ] - ] - }, - "handshaking": { - "toClient": { - "types": { - "packet": [ + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ "container", [ { - "name": "name", + "anon": true, "type": [ - "mapper", - { - "type": "varint", - "mappings": {} - } + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] ] }, { - "name": "params", + "name": "value", "type": [ - "switch", + "entityMetadataItem", { - "compareTo": "name", - "fields": {} + "compareTo": "type" } ] } ] ] } - }, - "toServer": { - "types": { - "packet_set_protocol": [ - "container", - [ - { - "name": "protocolVersion", - "type": "varint" - }, - { - "name": "serverHost", - "type": "string" - }, - { - "name": "serverPort", - "type": "u16" - }, - { - "name": "nextState", - "type": "varint" - } - ] - ], - "packet_legacy_server_list_ping": [ + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "23": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "34": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" + } + ] + ] + } + } + ] + } + ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" + }, + "handshaking": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "payload", - "type": "u8" + "name": "name", + "type": [ + "mapper", + { + "mappings": {}, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": {} + } + ] } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -815,11 +785,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "set_protocol", "0xfe": "legacy_server_list_ping" - } + }, + "type": "varint" } ] }, @@ -830,38 +800,50 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_legacy_server_list_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "payload", + "type": "u8" } ] ], - "packet_ping": [ + "packet_set_protocol": [ "container", [ { - "name": "time", - "type": "i64" + "name": "protocolVersion", + "type": "varint" + }, + { + "name": "serverHost", + "type": "string" + }, + { + "name": "serverPort", + "type": "u16" + }, + { + "name": "nextState", + "type": "varint" } ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -870,11 +852,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "server_info", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -885,21 +867,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -910,6 +884,19 @@ } ] ], + "packet_server_info": [ + "container", + [ + { + "name": "response", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -918,11 +905,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -933,95 +920,33 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_encryption_begin": [ - "container", - [ - { - "name": "serverId", - "type": "string" - }, - { - "name": "publicKey", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "verifyToken", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ], - "packet_success": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "username", - "type": "string" - } - ] ], - "packet_compress": [ + "packet_ping": [ "container", [ { - "name": "threshold", - "type": "varint" + "name": "time", + "type": "i64" } ] ], - "packet_login_plugin_request": [ + "packet_ping_start": [ "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -1030,14 +955,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "disconnect", "0x01": "encryption_begin", "0x02": "success", "0x03": "compress", "0x04": "login_plugin_request" - } + }, + "type": "varint" } ] }, @@ -1048,26 +973,31 @@ { "compareTo": "name", "fields": { + "compress": "packet_compress", "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ + ], + "packet_compress": [ "container", [ { - "name": "username", + "name": "threshold", + "type": "varint" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", "type": "string" } ] @@ -1076,7 +1006,11 @@ "container", [ { - "name": "sharedSecret", + "name": "serverId", + "type": "string" + }, + { + "name": "publicKey", "type": [ "buffer", { @@ -1095,22 +1029,40 @@ } ] ], - "packet_login_plugin_response": [ + "packet_login_plugin_request": [ "container", [ { "name": "messageId", "type": "varint" }, + { + "name": "channel", + "type": "string" + }, { "name": "data", - "type": [ - "option", - "restBuffer" - ] + "type": "restBuffer" } ] ], + "packet_success": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1119,12 +1071,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0x00": "login_start", "0x01": "encryption_begin", "0x02": "login_plugin_response" - } + }, + "type": "varint" } ] }, @@ -1135,260 +1087,342 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] ], - "packet_spawn_entity_experience_orb": [ + "packet_encryption_begin": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "sharedSecret", + "type": [ + "buffer", + { + "countType": "varint" + } + ] }, { - "name": "count", - "type": "i16" + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], - "packet_spawn_entity_weather": [ + "packet_login_plugin_response": [ "container", [ { - "name": "entityId", + "name": "messageId", "type": "varint" }, { - "name": "type", - "type": "i8" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "data", + "type": [ + "option", + "restBuffer" + ] } ] ], - "packet_spawn_entity_living": [ + "packet_login_start": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "minecraft_smelting_format": [ + "container", + [ { - "name": "x", - "type": "f64" + "name": "group", + "type": "string" }, { - "name": "y", - "type": "f64" + "name": "ingredient", + "type": "ingredient" }, { - "name": "z", - "type": "f64" + "name": "result", + "type": "slot" }, { - "name": "yaw", - "type": "i8" + "name": "experience", + "type": "f32" }, { - "name": "pitch", - "type": "i8" - }, + "name": "cookTime", + "type": "varint" + } + ] + ], + "packet": [ + "container", + [ { - "name": "headPitch", - "type": "i8" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "tab_complete", + "0x12": "declare_commands", + "0x13": "transaction", + "0x14": "close_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "open_horse_window", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "update_light", + "0x26": "login", + "0x27": "map", + "0x28": "trade_list", + "0x29": "rel_entity_move", + "0x2a": "entity_move_look", + "0x2b": "entity_look", + "0x2c": "entity", + "0x2d": "vehicle_move", + "0x2e": "open_book", + "0x2f": "open_window", + "0x30": "open_sign_entity", + "0x31": "craft_recipe_response", + "0x32": "abilities", + "0x33": "combat_event", + "0x34": "player_info", + "0x35": "face_player", + "0x36": "position", + "0x37": "unlock_recipes", + "0x38": "entity_destroy", + "0x39": "remove_entity_effect", + "0x3a": "resource_pack_send", + "0x3b": "respawn", + "0x3c": "entity_head_rotation", + "0x3d": "select_advancement_tab", + "0x3e": "world_border", + "0x3f": "camera", + "0x40": "held_item_slot", + "0x41": "update_view_position", + "0x42": "update_view_distance", + "0x43": "spawn_position", + "0x44": "scoreboard_display_objective", + "0x45": "entity_metadata", + "0x46": "attach_entity", + "0x47": "entity_velocity", + "0x48": "entity_equipment", + "0x49": "experience", + "0x4a": "update_health", + "0x4b": "scoreboard_objective", + "0x4c": "set_passengers", + "0x4d": "teams", + "0x4e": "scoreboard_score", + "0x4f": "update_time", + "0x50": "title", + "0x51": "entity_sound_effect", + "0x52": "sound_effect", + "0x53": "stop_sound", + "0x54": "playerlist_header", + "0x55": "nbt_query_response", + "0x56": "collect", + "0x57": "entity_teleport", + "0x58": "advancements", + "0x59": "entity_update_attributes", + "0x5a": "entity_effect", + "0x5b": "declare_recipes", + "0x5c": "tags" + }, + "type": "varint" + } + ] }, { - "name": "velocity", - "type": "vec3i16" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_entity_weather": "packet_spawn_entity_weather", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "trade_list": "packet_trade_list", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" + } + } + ] } ] ], - "packet_spawn_entity_painting": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" + "name": "flags", + "type": "i8" }, { - "name": "location", - "type": "position" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "direction", - "type": "u8" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_named_entity_spawn": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "location", + "type": "position" }, { - "name": "yaw", - "type": "i8" + "name": "block", + "type": "varint" }, { - "name": "pitch", - "type": "i8" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", + "name": "status", "type": "varint" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "successful", + "type": "bool" } ] ], @@ -1454,23 +1488,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1481,10 +1515,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1601,7 +1635,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1609,29 +1643,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "optionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -1656,6 +1682,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1686,11 +1729,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1700,11 +1743,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1714,11 +1757,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1728,11 +1771,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1742,180 +1785,193 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" - }, - { - "name": "difficultyLocked", - "type": "bool" + "name": "cameraId", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chat": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" + "name": "message", + "type": "string" }, { - "name": "length", - "type": "varint" - }, + "name": "position", + "type": "i8" + } + ] + ], + "packet_close_window": [ + "container", + [ { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "name": "windowId", + "type": "u8" } ] ], - "packet_declare_commands": [ + "packet_collect": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] + "name": "collectedEntityId", + "type": "varint" }, { - "name": "rootIndex", + "name": "collectorEntityId", + "type": "varint" + }, + { + "name": "pickupItemCount", "type": "varint" } ] ], - "packet_face_player": [ + "packet_combat_event": [ "container", [ { - "name": "feet_eyes", + "name": "event", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "duration", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "1": "varint" + } + } + ] }, { - "name": "isEntity", - "type": "bool" + "name": "playerId", + "type": [ + "switch", + { + "compareTo": "event", + "default": "void", + "fields": { + "2": "varint" + } + } + ] }, { "name": "entityId", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "varint" - }, - "default": "void" + "1": "i32", + "2": "i32" + } } ] }, { - "name": "entity_feet_eyes", + "name": "message", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "string" - }, - "default": "void" + "2": "string" + } } ] } ] ], - "packet_nbt_query_response": [ + "packet_craft_progress_bar": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "nbt", - "type": "optionalNbt" + "name": "property", + "type": "i16" + }, + { + "name": "value", + "type": "i16" } ] ], - "packet_chat": [ + "packet_craft_recipe_response": [ "container", [ { - "name": "message", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "position", - "type": "i8" + "name": "recipe", + "type": "string" } ] ], - "packet_multi_block_change": [ + "packet_custom_payload": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "channel", + "type": "string" }, { - "name": "chunkZ", - "type": "i32" + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_declare_commands": [ + "container", + [ + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "records", + "name": "rootIndex", + "type": "varint" + } + ] + ], + "packet_declare_recipes": [ + "container", + [ + { + "name": "recipes", "type": [ "array", { @@ -1924,16 +1980,118 @@ "container", [ { - "name": "horizontalPos", - "type": "u8" + "name": "type", + "type": "string" }, { - "name": "y", - "type": "u8" + "name": "recipeId", + "type": "string" }, { - "name": "blockId", - "type": "varint" + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] } ] ] @@ -1942,95 +2100,78 @@ } ] ], - "packet_transaction": [ + "packet_difficulty": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" + "name": "difficulty", + "type": "u8" }, { - "name": "accepted", + "name": "difficultyLocked", "type": "bool" } ] ], - "packet_close_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" - } - ] - ], - "packet_open_window": [ + "packet_entity": [ "container", - [ - { - "name": "windowId", - "type": "varint" - }, - { - "name": "inventoryType", - "type": "varint" - }, + [ { - "name": "windowTitle", - "type": "string" + "name": "entityId", + "type": "varint" } ] ], - "packet_window_items": [ + "packet_entity_destroy": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "items", + "name": "entityIds", "type": [ "array", { - "countType": "i16", - "type": "slot" + "countType": "varint", + "type": "varint" } ] } ] ], - "packet_craft_progress_bar": [ + "packet_entity_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "property", - "type": "i16" + "name": "effectId", + "type": "i8" }, { - "name": "value", - "type": "i16" + "name": "amplifier", + "type": "i8" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", + "type": "i8" } ] ], - "packet_set_slot": [ + "packet_entity_equipment": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { "name": "slot", - "type": "i16" + "type": "varint" }, { "name": "item", @@ -2038,71 +2179,108 @@ } ] ], - "packet_set_cooldown": [ + "packet_entity_head_rotation": [ "container", [ { - "name": "itemID", + "name": "entityId", "type": "varint" }, { - "name": "cooldownTicks", - "type": "varint" + "name": "headYaw", + "type": "i8" } ] ], - "packet_custom_payload": [ + "packet_entity_look": [ "container", [ { - "name": "channel", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "data", - "type": "restBuffer" + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_named_sound_effect": [ + "packet_entity_metadata": [ "container", [ { - "name": "soundName", - "type": "string" + "name": "entityId", + "type": "varint" }, { - "name": "soundCategory", + "name": "metadata", + "type": "entityMetadata" + } + ] + ], + "packet_entity_move_look": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "dX", + "type": "i16" }, { - "name": "y", - "type": "i32" + "name": "dY", + "type": "i16" }, { - "name": "z", - "type": "i32" + "name": "dZ", + "type": "i16" }, { - "name": "volume", - "type": "f32" + "name": "yaw", + "type": "i8" }, { "name": "pitch", - "type": "f32" + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_kick_disconnect": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "reason", - "type": "string" + "name": "soundId", + "type": "varint" + }, + { + "name": "soundCategory", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], @@ -2119,27 +2297,48 @@ } ] ], - "packet_explosion": [ + "packet_entity_teleport": [ "container", [ + { + "name": "entityId", + "type": "varint" + }, { "name": "x", - "type": "f32" + "type": "f64" }, { "name": "y", - "type": "f32" + "type": "f64" }, { "name": "z", - "type": "f32" + "type": "f64" }, { - "name": "radius", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "affectedBlockOffsets", + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "properties", "type": [ "array", { @@ -2148,182 +2347,141 @@ "container", [ { - "name": "x", - "type": "i8" + "name": "key", + "type": "string" }, { - "name": "y", - "type": "i8" + "name": "value", + "type": "f64" }, { - "name": "z", - "type": "i8" + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] } ] ] } ] - }, - { - "name": "playerMotionX", - "type": "f32" - }, - { - "name": "playerMotionY", - "type": "f32" - }, - { - "name": "playerMotionZ", - "type": "f32" } ] ], - "packet_unload_chunk": [ + "packet_entity_velocity": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_game_state_change": [ + "packet_experience": [ "container", [ { - "name": "reason", - "type": "u8" - }, - { - "name": "gameMode", + "name": "experienceBar", "type": "f32" - } - ] - ], - "packet_open_horse_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" }, { - "name": "nbSlots", + "name": "level", "type": "varint" }, - { - "name": "entityId", - "type": "i32" - } - ] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" + { + "name": "totalExperience", + "type": "varint" } ] ], - "packet_map_chunk": [ + "packet_explosion": [ "container", [ { "name": "x", - "type": "i32" - }, - { - "name": "z", - "type": "i32" + "type": "f32" }, { - "name": "groundUp", - "type": "bool" + "name": "y", + "type": "f32" }, { - "name": "bitMap", - "type": "varint" + "name": "z", + "type": "f32" }, { - "name": "heightmaps", - "type": "nbt" + "name": "radius", + "type": "f32" }, { - "name": "biomes", + "name": "affectedBlockOffsets", "type": [ - "switch", + "array", { - "compareTo": "groundUp", - "fields": { - "false": "void", - "true": [ - "array", + "countType": "i32", + "type": [ + "container", + [ { - "count": 1024, - "type": "i32" + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" } ] - } - } - ] - }, - { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "nbt" + ] } ] - } - ] - ], - "packet_world_event": [ - "container", - [ - { - "name": "effectId", - "type": "i32" }, { - "name": "location", - "type": "position" + "name": "playerMotionX", + "type": "f32" }, { - "name": "data", - "type": "i32" + "name": "playerMotionY", + "type": "f32" }, { - "name": "global", - "type": "bool" + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_world_particles": [ + "packet_face_player": [ "container", [ { - "name": "particleId", - "type": "i32" - }, - { - "name": "longDistance", - "type": "bool" + "name": "feet_eyes", + "type": "varint" }, { "name": "x", @@ -2338,66 +2496,74 @@ "type": "f64" }, { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, - { - "name": "offsetZ", - "type": "f32" - }, - { - "name": "particleData", - "type": "f32" + "name": "isEntity", + "type": "bool" }, { - "name": "particles", - "type": "i32" + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } + } + ] }, { - "name": "data", + "name": "entity_feet_eyes", "type": [ - "particleData", + "switch", { - "compareTo": "particleId" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] } ] ], - "packet_update_light": [ + "packet_game_state_change": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - }, - { - "name": "skyLightMask", - "type": "varint" + "name": "reason", + "type": "u8" }, { - "name": "blockLightMask", - "type": "varint" - }, + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "emptySkyLightMask", - "type": "varint" - }, + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "emptyBlockLightMask", - "type": "varint" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ { - "name": "data", - "type": "restBuffer" + "name": "reason", + "type": "string" } ] ], @@ -2508,10 +2674,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2521,10 +2687,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2534,10 +2700,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2547,103 +2713,123 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } + } + ] + } + ] + ], + "packet_map_chunk": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "groundUp", + "type": "bool" + }, + { + "name": "bitMap", + "type": "varint" + }, + { + "name": "heightmaps", + "type": "nbt" + }, + { + "name": "biomes", + "type": [ + "switch", + { + "compareTo": "groundUp", + "fields": { + "false": "void", + "true": [ + "array", + { + "count": 1024, + "type": "i32" + } + ] + } + } + ] + }, + { + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" } ] } ] ], - "packet_trade_list": [ + "packet_multi_block_change": [ "container", [ { - "name": "windowId", - "type": "varint" + "name": "chunkX", + "type": "i32" }, { - "name": "trades", + "name": "chunkZ", + "type": "i32" + }, + { + "name": "records", "type": [ "array", { - "countType": "u8", + "countType": "varint", "type": [ "container", [ { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - "slot" - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" + "name": "horizontalPos", + "type": "u8" }, { - "name": "priceMultiplier", - "type": "f32" + "name": "y", + "type": "u8" }, { - "name": "demand", - "type": "i32" + "name": "blockId", + "type": "varint" } ] ] } ] - }, - { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" - }, - { - "name": "isRegularVillager", - "type": "bool" - }, - { - "name": "canRestock", - "type": "bool" } ] ], - "packet_rel_entity_move": [ + "packet_named_entity_spawn": [ "container", [ { @@ -2651,41 +2837,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" - }, - { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_move_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "playerUUID", + "type": "UUID" }, { - "name": "dX", - "type": "i16" + "name": "x", + "type": "f64" }, { - "name": "dY", - "type": "i16" + "name": "y", + "type": "f64" }, { - "name": "dZ", - "type": "i16" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -2694,60 +2859,34 @@ { "name": "pitch", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity_look": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "soundName", + "type": "string" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity": [ - "container", - [ - { - "name": "entityId", + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2756,113 +2895,68 @@ } ] ], - "packet_open_book": [ + "packet_nbt_query_response": [ "container", [ { - "name": "hand", + "name": "transactionId", "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_open_sign_entity": [ + "packet_open_book": [ "container", [ { - "name": "location", - "type": "position" + "name": "hand", + "type": "varint" } ] ], - "packet_craft_recipe_response": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "recipe", - "type": "string" + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "event", + "name": "windowId", "type": "varint" }, { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + "name": "inventoryType", + "type": "varint" }, { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "string" - }, - "default": "void" - } - ] + "name": "windowTitle", + "type": "string" } ] ], @@ -2874,14 +2968,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2958,37 +3052,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -3000,6 +3094,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -3033,72 +3140,28 @@ } ] ], - "packet_unlock_recipes": [ + "packet_rel_entity_move": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smeltingBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmeltable", + "name": "onGround", "type": "bool" - }, - { - "name": "recipes1", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "recipes2", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_entity_destroy": [ - "container", - [ - { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] } ] ], @@ -3149,206 +3212,230 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "headYaw", - "type": "i8" + "name": "name", + "type": "string" } ] ], - "packet_world_border": [ + "packet_scoreboard_objective": [ "container", [ { - "name": "action", - "type": "varint" + "name": "name", + "type": "string" }, { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "i8" }, { - "name": "x", + "name": "displayText", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "string", + "2": "string" + } } ] }, { - "name": "z", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" + "0": "varint", + "2": "varint" + } } ] - }, + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "itemName", + "type": "string" }, { - "name": "new_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "action", + "type": "varint" }, { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] + "name": "scoreName", + "type": "string" }, { - "name": "portalBoundary", + "name": "value", "type": [ "switch", { "compareTo": "action", + "default": "varint", "fields": { - "3": "varint" - }, - "default": "void" + "1": "void" + } } ] - }, + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ { - "name": "warning_time", + "name": "id", "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } + "option", + "string" ] + } + ] + ], + "packet_set_cooldown": [ + "container", + [ + { + "name": "itemID", + "type": "varint" }, { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" - } - ] + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_camera": [ + "packet_set_passengers": [ "container", [ { - "name": "cameraId", + "name": "entityId", "type": "varint" + }, + { + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_held_item_slot": [ + "packet_set_slot": [ "container", [ + { + "name": "windowId", + "type": "i8" + }, { "name": "slot", - "type": "i8" + "type": "i16" + }, + { + "name": "item", + "type": "slot" } ] ], - "packet_update_view_position": [ + "packet_sound_effect": [ "container", [ { - "name": "chunkX", + "name": "soundId", "type": "varint" }, { - "name": "chunkZ", + "name": "soundCategory", "type": "varint" + }, + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_update_view_distance": [ + "packet_spawn_entity": [ "container", [ { - "name": "viewDistance", + "name": "entityId", "type": "varint" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + }, { - "name": "position", + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "pitch", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "yaw", + "type": "i8" + }, + { + "name": "objectData", + "type": "i32" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_metadata": [ + "packet_spawn_entity_experience_orb": [ "container", [ { @@ -3356,38 +3443,69 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "x", + "type": "f64" + }, { - "name": "entityId", - "type": "i32" + "name": "y", + "type": "f64" }, { - "name": "vehicleId", - "type": "i32" + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity_living": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, { "name": "velocity", "type": "vec3i16" } ] ], - "packet_entity_equipment": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -3395,109 +3513,188 @@ "type": "varint" }, { - "name": "slot", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "title", "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_experience": [ + "packet_spawn_entity_weather": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "type", + "type": "i8" }, { - "name": "totalExperience", - "type": "varint" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" } ] ], - "packet_update_health": [ + "packet_spawn_position": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", - "type": "varint" - }, - { - "name": "foodSaturation", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_scoreboard_objective": [ + "packet_statistics": [ "container", [ { - "name": "name", - "type": "string" - }, + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "categoryId", + "type": "varint" + }, + { + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "packet_stop_sound": [ + "container", + [ { - "name": "action", + "name": "flags", "type": "i8" }, { - "name": "displayText", + "name": "source", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "string", - "2": "string" - }, - "default": "void" + "1": "varint", + "3": "varint" + } } ] }, { - "name": "type", + "name": "sound", "type": [ "switch", { - "compareTo": "action", + "compareTo": "flags", + "default": "void", "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "2": "string", + "3": "string" + } } ] } ] ], - "packet_set_passengers": [ + "packet_tab_complete": [ "container", [ { - "name": "entityId", + "name": "transactionId", + "type": "varint" + }, + { + "name": "start", + "type": "varint" + }, + { + "name": "length", "type": "varint" }, { - "name": "passengers", + "name": "matches", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], + "packet_tags": [ + "container", + [ + { + "name": "blockTags", + "type": "tags" + }, + { + "name": "itemTags", + "type": "tags" + }, + { + "name": "fluidTags", + "type": "tags" + }, + { + "name": "entityTags", + "type": "tags" + } + ] + ], "packet_teams": [ "container", [ @@ -3515,11 +3712,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3529,11 +3726,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3543,11 +3740,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3557,11 +3754,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3571,11 +3768,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3585,11 +3782,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3599,11 +3796,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3613,6 +3810,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3635,62 +3833,26 @@ "type": "string" } ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3707,12 +3869,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3722,10 +3884,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3735,10 +3897,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3748,147 +3910,269 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_entity_sound_effect": [ + "packet_trade_list": [ "container", [ { - "name": "soundId", + "name": "windowId", "type": "varint" }, { - "name": "soundCategory", + "name": "trades", + "type": [ + "array", + { + "countType": "u8", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] + } + ] + }, + { + "name": "villagerLevel", "type": "varint" }, { - "name": "entityId", + "name": "experience", "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "isRegularVillager", + "type": "bool" }, { - "name": "pitch", - "type": "f32" + "name": "canRestock", + "type": "bool" } ] ], - "packet_stop_sound": [ + "packet_transaction": [ "container", [ { - "name": "flags", + "name": "windowId", "type": "i8" }, { - "name": "source", + "name": "action", + "type": "i16" + }, + { + "name": "accepted", + "type": "bool" + } + ] + ], + "packet_unload_chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "i32" + }, + { + "name": "chunkZ", + "type": "i32" + } + ] + ], + "packet_unlock_recipes": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "filteringCraftable", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "filteringSmeltable", + "type": "bool" + }, + { + "name": "recipes1", "type": [ - "switch", + "array", { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" + "countType": "varint", + "type": "string" } ] }, { - "name": "sound", + "name": "recipes2", "type": [ "switch", { - "compareTo": "flags", + "compareTo": "action", + "default": "void", "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "0": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_sound_effect": [ + "packet_update_health": [ "container", [ { - "name": "soundId", + "name": "health", + "type": "f32" + }, + { + "name": "food", "type": "varint" }, { - "name": "soundCategory", + "name": "foodSaturation", + "type": "f32" + } + ] + ], + "packet_update_light": [ + "container", + [ + { + "name": "chunkX", "type": "varint" }, { - "name": "x", - "type": "i32" + "name": "chunkZ", + "type": "varint" }, { - "name": "y", - "type": "i32" + "name": "skyLightMask", + "type": "varint" }, { - "name": "z", - "type": "i32" + "name": "blockLightMask", + "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "emptySkyLightMask", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "emptyBlockLightMask", + "type": "varint" + }, + { + "name": "data", + "type": "restBuffer" } ] ], - "packet_playerlist_header": [ + "packet_update_time": [ "container", [ { - "name": "header", - "type": "string" + "name": "age", + "type": "i64" }, { - "name": "footer", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_collect": [ + "packet_update_view_distance": [ "container", [ { - "name": "collectedEntityId", + "name": "viewDistance", "type": "varint" - }, + } + ] + ], + "packet_update_view_position": [ + "container", + [ { - "name": "collectorEntityId", + "name": "chunkX", "type": "varint" }, { - "name": "pickupItemCount", + "name": "chunkZ", "type": "varint" } ] ], - "packet_entity_teleport": [ + "packet_vehicle_move": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "x", "type": "f64" @@ -3903,267 +4187,238 @@ }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" + "type": "f32" + } + ] + ], + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" }, { - "name": "onGround", - "type": "bool" + "name": "items", + "type": [ + "array", + { + "countType": "i16", + "type": "slot" + } + ] } ] ], - "packet_entity_update_attributes": [ + "packet_world_border": [ "container", [ { - "name": "entityId", + "name": "action", "type": "varint" }, { - "name": "properties", + "name": "radius", "type": [ - "array", + "switch", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_entity_effect": [ + "packet_world_event": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, { "name": "effectId", - "type": "i8" + "type": "i32" }, { - "name": "amplifier", - "type": "i8" + "name": "location", + "type": "position" }, { - "name": "duration", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "hideParticles", - "type": "i8" + "name": "global", + "type": "bool" } ] ], - "packet_select_advancement_tab": [ + "packet_world_particles": [ "container", [ { - "name": "id", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + "name": "particleId", + "type": "i32" + }, { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] - } - ] - ] - } - ] - } - ] - ], - "minecraft_smelting_format": [ - "container", - [ + "name": "longDistance", + "type": "bool" + }, { - "name": "group", - "type": "string" + "name": "x", + "type": "f64" }, { - "name": "ingredient", - "type": "ingredient" + "name": "y", + "type": "f64" }, { - "name": "result", - "type": "slot" + "name": "z", + "type": "f64" }, { - "name": "experience", + "name": "offsetX", "type": "f32" }, { - "name": "cookTime", - "type": "varint" + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "particleData", + "type": "f32" + }, + { + "name": "particles", + "type": "i32" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] } ] ], @@ -4191,49 +4446,11 @@ ] ] } - ], - "packet_tags": [ - "container", - [ - { - "name": "blockTags", - "type": "tags" - }, - { - "name": "itemTags", - "type": "tags" - }, - { - "name": "fluidTags", - "type": "tags" - }, - { - "name": "entityTags", - "type": "tags" - } - ] - ], - "packet_acknowledge_player_digging": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "block", - "type": "varint" - }, - { - "name": "status", - "type": "varint" - }, - { - "name": "successful", - "type": "bool" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -4242,102 +4459,55 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "tab_complete", - "0x12": "declare_commands", - "0x13": "transaction", - "0x14": "close_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "open_horse_window", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "update_light", - "0x26": "login", - "0x27": "map", - "0x28": "trade_list", - "0x29": "rel_entity_move", - "0x2a": "entity_move_look", - "0x2b": "entity_look", - "0x2c": "entity", - "0x2d": "vehicle_move", - "0x2e": "open_book", - "0x2f": "open_window", - "0x30": "open_sign_entity", - "0x31": "craft_recipe_response", - "0x32": "abilities", - "0x33": "combat_event", - "0x34": "player_info", - "0x35": "face_player", - "0x36": "position", - "0x37": "unlock_recipes", - "0x38": "entity_destroy", - "0x39": "remove_entity_effect", - "0x3a": "resource_pack_send", - "0x3b": "respawn", - "0x3c": "entity_head_rotation", - "0x3d": "select_advancement_tab", - "0x3e": "world_border", - "0x3f": "camera", - "0x40": "held_item_slot", - "0x41": "update_view_position", - "0x42": "update_view_distance", - "0x43": "spawn_position", - "0x44": "scoreboard_display_objective", - "0x45": "entity_metadata", - "0x46": "attach_entity", - "0x47": "entity_velocity", - "0x48": "entity_equipment", - "0x49": "experience", - "0x4a": "update_health", - "0x4b": "scoreboard_objective", - "0x4c": "set_passengers", - "0x4d": "teams", - "0x4e": "scoreboard_score", - "0x4f": "update_time", - "0x50": "title", - "0x51": "entity_sound_effect", - "0x52": "sound_effect", - "0x53": "stop_sound", - "0x54": "playerlist_header", - "0x55": "nbt_query_response", - "0x56": "collect", - "0x57": "entity_teleport", - "0x58": "advancements", - "0x59": "entity_update_attributes", - "0x5a": "entity_effect", - "0x5b": "declare_recipes", - "0x5c": "tags" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "crafting_book_data", + "0x1e": "name_item", + "0x1f": "resource_pack_receive", + "0x20": "advancement_tab", + "0x21": "select_trade", + "0x22": "set_beacon_effect", + "0x23": "held_item_slot", + "0x24": "update_command_block", + "0x25": "update_command_block_minecart", + "0x26": "set_creative_slot", + "0x27": "update_jigsaw_block", + "0x28": "update_structure_block", + "0x29": "update_sign", + "0x2a": "arm_animation", + "0x2b": "spectate", + "0x2c": "block_place", + "0x2d": "use_item" + }, + "type": "varint" } ] }, @@ -4348,539 +4518,394 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_weather": "packet_spawn_entity_weather", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", - "transaction": "packet_transaction", + "client_command": "packet_client_command", "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", + "craft_recipe_request": "packet_craft_recipe_request", + "crafting_book_data": "packet_crafting_book_data", "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "held_item_slot": "packet_held_item_slot", "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "entity_sound_effect": "packet_entity_sound_effect", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "acknowledge_player_digging": "packet_acknowledge_player_digging" + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "transaction": "packet_transaction", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_abilities": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "flags", + "type": "i8" + }, + { + "name": "flyingSpeed", + "type": "f32" + }, + { + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_query_block_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_set_difficulty": [ + "packet_arm_animation": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "hand", + "type": "varint" } ] ], - "packet_edit_book": [ + "packet_block_dig": [ "container", [ { - "name": "new_book", - "type": "slot" + "name": "status", + "type": "varint" }, { - "name": "signing", - "type": "bool" + "name": "location", + "type": "position" }, { - "name": "hand", - "type": "varint" + "name": "face", + "type": "i8" } ] ], - "packet_query_entity_nbt": [ + "packet_block_place": [ "container", [ { - "name": "transactionId", + "name": "hand", "type": "varint" }, { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_pick_item": [ - "container", - [ + "name": "location", + "type": "position" + }, { - "name": "slot", + "name": "direction", "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ + }, { - "name": "name", - "type": "string" + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" } ] ], - "packet_select_trade": [ + "packet_chat": [ "container", [ { - "name": "slot", - "type": "varint" + "name": "message", + "type": "string" } ] ], - "packet_set_beacon_effect": [ + "packet_client_command": [ "container", [ { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", + "name": "actionId", "type": "varint" } ] ], - "packet_update_command_block": [ + "packet_close_window": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", + "name": "windowId", "type": "u8" } ] ], - "packet_update_command_block_minecart": [ + "packet_craft_recipe_request": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "windowId", + "type": "i8" }, { - "name": "command", + "name": "recipe", "type": "string" }, { - "name": "track_output", + "name": "makeAll", "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_crafting_book_data": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", + "name": "type", "type": "varint" }, { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", - "type": "f32" - }, - { - "name": "seed", - "type": "varlong" - }, - { - "name": "flags", - "type": "u8" + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "0": [ + "container", + [ + { + "name": "displayedRecipe", + "type": "string" + } + ] + ], + "1": [ + "container", + [ + { + "name": "craftingBookOpen", + "type": "bool" + }, + { + "name": "craftingFilter", + "type": "bool" + }, + { + "name": "smeltingBookOpen", + "type": "bool" + }, + { + "name": "smeltingFilter", + "type": "bool" + }, + { + "name": "blastingBookOpen", + "type": "bool" + }, + { + "name": "blastingFilter", + "type": "bool" + }, + { + "name": "smokingBookOpen", + "type": "bool" + }, + { + "name": "smokingFilter", + "type": "bool" + } + ] + ] + } + } + ] } ] ], - "packet_tab_complete": [ + "packet_custom_payload": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "text", - "type": "string" + "name": "data", + "type": "restBuffer" } ] ], - "packet_chat": [ + "packet_edit_book": [ "container", [ { - "name": "message", - "type": "string" - } - ] - ], - "packet_client_command": [ - "container", - [ + "name": "new_book", + "type": "slot" + }, { - "name": "actionId", + "name": "signing", + "type": "bool" + }, + { + "name": "hand", "type": "varint" } ] ], - "packet_settings": [ + "packet_enchant_item": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", + "name": "windowId", "type": "i8" }, { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" + "name": "enchantment", + "type": "i8" } ] ], - "packet_transaction": [ + "packet_entity_action": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "entityId", + "type": "varint" }, { - "name": "action", - "type": "i16" + "name": "actionId", + "type": "varint" }, { - "name": "accepted", - "type": "bool" + "name": "jumpBoost", + "type": "varint" } ] ], - "packet_enchant_item": [ + "packet_flying": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "enchantment", - "type": "i8" + "name": "onGround", + "type": "bool" } ] ], - "packet_window_click": [ + "packet_held_item_slot": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", + "name": "slotId", "type": "i16" - }, - { - "name": "mode", - "type": "i8" - }, - { - "name": "item", - "type": "slot" } ] ], - "packet_close_window": [ + "packet_keep_alive": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_custom_payload": [ + "packet_lock_difficulty": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "locked", + "type": "bool" } ] ], - "packet_use_entity": [ + "packet_look": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "f32" }, { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "f32" }, { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_name_item": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "name", + "type": "string" } ] ], - "packet_lock_difficulty": [ + "packet_pick_item": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "slot", + "type": "varint" } ] ], @@ -4934,135 +4959,133 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "location", + "type": "position" + } + ] + ], + "packet_query_entity_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_flying": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_select_trade": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + "name": "slot", + "type": "varint" + } + ] + ], + "packet_set_beacon_effect": [ + "container", + [ { - "name": "yaw", - "type": "f32" + "name": "primary_effect", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "secondary_effect", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_creative_slot": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "slot", + "type": "i16" }, { - "name": "rightPaddle", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_craft_recipe_request": [ + "packet_set_difficulty": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" - }, - { - "name": "makeAll", - "type": "bool" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_abilities": [ + "packet_settings": [ "container", [ { - "name": "flags", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", "type": "i8" }, { - "name": "flyingSpeed", - "type": "f32" + "name": "chatFlags", + "type": "varint" }, { - "name": "walkingSpeed", - "type": "f32" + "name": "chatColors", + "type": "bool" + }, + { + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" } ] ], - "packet_block_dig": [ + "packet_spectate": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "target", + "type": "UUID" } ] ], - "packet_entity_action": [ + "packet_steer_boat": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5083,100 +5106,80 @@ } ] ], - "packet_crafting_book_data": [ + "packet_tab_complete": [ "container", [ { - "name": "type", + "name": "transactionId", "type": "varint" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "0": [ - "container", - [ - { - "name": "displayedRecipe", - "type": "string" - } - ] - ], - "1": [ - "container", - [ - { - "name": "craftingBookOpen", - "type": "bool" - }, - { - "name": "craftingFilter", - "type": "bool" - }, - { - "name": "smeltingBookOpen", - "type": "bool" - }, - { - "name": "smeltingFilter", - "type": "bool" - }, - { - "name": "blastingBookOpen", - "type": "bool" - }, - { - "name": "blastingFilter", - "type": "bool" - }, - { - "name": "smokingBookOpen", - "type": "bool" - }, - { - "name": "smokingFilter", - "type": "bool" - } - ] - ] - } - } - ] + "name": "text", + "type": "string" } ] ], - "packet_resource_pack_receive": [ + "packet_teleport_confirm": [ "container", [ { - "name": "result", + "name": "teleportId", "type": "varint" } ] ], - "packet_held_item_slot": [ + "packet_transaction": [ "container", [ { - "name": "slotId", + "name": "windowId", + "type": "i8" + }, + { + "name": "action", "type": "i16" + }, + { + "name": "accepted", + "type": "bool" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "location", + "type": "position" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] + ], + "packet_update_command_block_minecart": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5213,75 +5216,159 @@ "container", [ { - "name": "location", - "type": "position" + "name": "location", + "type": "position" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" }, { - "name": "text1", - "type": "string" + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "hand", "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "direction", + "name": "mouse", "type": "varint" }, { - "name": "cursorX", - "type": "f32" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "insideBlock", - "type": "bool" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] } ] ], @@ -5294,144 +5381,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "crafting_book_data", - "0x1e": "name_item", - "0x1f": "resource_pack_receive", - "0x20": "advancement_tab", - "0x21": "select_trade", - "0x22": "set_beacon_effect", - "0x23": "held_item_slot", - "0x24": "update_command_block", - "0x25": "update_command_block_minecart", - "0x26": "set_creative_slot", - "0x27": "update_jigsaw_block", - "0x28": "update_structure_block", - "0x29": "update_sign", - "0x2a": "arm_animation", - "0x2b": "spectate", - "0x2c": "block_place", - "0x2d": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "crafting_book_data": "packet_crafting_book_data", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/21w07a/protocol.json b/data/pc/21w07a/protocol.json index 5175e145e..7376292b0 100644 --- a/data/pc/21w07a/protocol.json +++ b/data/pc/21w07a/protocol.json @@ -1,305 +1,17 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "u16": "native", - "u8": "native", - "i64": "native", - "buffer": "native", - "i32": "native", - "i8": "native", - "bool": "native", - "i16": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "nbt": "native", - "optionalNbt": "native", "ByteArray": [ "buffer", { "countType": "varint" } ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec3i16": [ - "container", - [ - { - "name": "x", - "type": "i16" - }, - { - "name": "y", - "type": "i16" - }, - { - "name": "z", - "type": "i16" - } - ] - ], - "slot": [ - "container", - [ - { - "name": "present", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "present", - "fields": { - "false": "void", - "true": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "i8" - }, - { - "name": "nbtData", - "type": "optionalNbt" - } - ] - ] - } - } - ] - } - ] - ], - "particle": [ - "container", - [ - { - "name": "particleId", - "type": "varint" - }, - { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] - } - ] - ], - "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "14": [ - "container", - [ - { - "name": "red", - "type": "f32" - }, - { - "name": "green", - "type": "f32" - }, - { - "name": "blue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - } - ] - ], - "23": [ - "container", - [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "34": [ - "container", - [ - { - "name": "item", - "type": "slot" - } - ] - ] - }, - "default": "void" - } - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "entityMetadataItem": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "0": "i8", - "1": "varint", - "2": "f32", - "3": "string", - "4": "string", - "5": [ - "option", - "string" - ], - "6": "slot", - "7": "bool", - "8": [ - "container", - [ - { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" - } - ] - ], - "9": "position", - "10": [ - "option", - "position" - ], - "11": "varint", - "12": [ - "option", - "UUID" - ], - "13": "varint", - "14": "nbt", - "15": "particle", - "16": [ - "container", - [ - { - "name": "villagerType", - "type": "varint" - }, - { - "name": "villagerProfession", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ], - "17": "optvarint", - "18": "varint" - } - } - ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ], + "UUID": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", "command_node": [ "container", [ @@ -310,28 +22,28 @@ [ { "name": "unused", - "size": 3, - "signed": false + "signed": false, + "size": 3 }, { "name": "has_custom_suggestions", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_redirect_node", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "command_node_type", - "size": 2, - "signed": false + "signed": false, + "size": 2 } ] ] @@ -352,10 +64,10 @@ "switch", { "compareTo": "flags/has_redirect_node", + "default": "void", "fields": { "1": "varint" - }, - "default": "void" + } } ] }, @@ -395,7 +107,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -405,18 +117,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -427,10 +139,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -440,16 +152,16 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -459,18 +171,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -481,10 +193,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -494,10 +206,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -513,18 +225,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -535,10 +247,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -548,10 +260,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -567,18 +279,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -589,10 +301,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -602,10 +314,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -614,77 +326,61 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:entity_summon": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", + "minecraft:int_range": "void", + "minecraft:item_enchantment": "void", "minecraft:item_predicate": "void", - "minecraft:color": "void", - "minecraft:component": "void", - "minecraft:message": "void", - "minecraft:nbt": "void", - "minecraft:nbt_path": "void", - "minecraft:objective": "void", - "minecraft:objective_criteria": "void", - "minecraft:operation": "void", - "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ], - "minecraft:swizzle": "void", - "minecraft:team": "void", "minecraft:item_slot": "void", - "minecraft:resource_location": "void", + "minecraft:item_stack": "void", + "minecraft:message": "void", "minecraft:mob_effect": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", + "minecraft:nbt": "void", + "minecraft:nbt_compound_tag": "void", + "minecraft:nbt_path": "void", + "minecraft:objective": "void", + "minecraft:objective_criteria": "void", + "minecraft:operation": "void", + "minecraft:particle": "void", "minecraft:range": [ "container", [ @@ -694,14 +390,7 @@ } ] ], - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:item_enchantment": "void", - "minecraft:entity_summon": "void", - "minecraft:dimension": "void", - "minecraft:nbt_compound_tag": "void", - "minecraft:time": "void", - "minecraft:resource_or_tag": [ + "minecraft:resource": [ "container", [ { @@ -710,7 +399,8 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_location": "void", + "minecraft:resource_or_tag": [ "container", [ { @@ -719,23 +409,303 @@ } ] ], - "minecraft:uuid": "void" + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 + } + ] + ], + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:time": "void", + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" + } + } + ] + }, + { + "name": "suggestionType", + "type": [ + "switch", + { + "compareTo": "../flags/has_custom_suggestions", + "default": "void", + "fields": { + "1": "string" } } ] + } + ] + ] + } + } + ] + } + ] + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ], + "entityMetadataItem": [ + "switch", + { + "compareTo": "$compareTo", + "fields": { + "0": "i8", + "1": "varint", + "2": "f32", + "3": "string", + "4": "string", + "5": [ + "option", + "string" + ], + "6": "slot", + "7": "bool", + "8": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "9": "position", + "10": [ + "option", + "position" + ], + "11": "varint", + "12": [ + "option", + "UUID" + ], + "13": "varint", + "14": "nbt", + "15": "particle", + "16": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "17": "optvarint", + "18": "varint" + } + } + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ], + "nbt": "native", + "option": "native", + "optionalNbt": "native", + "optvarint": "varint", + "particle": [ + "container", + [ + { + "name": "particleId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "particleData", + { + "compareTo": "particleId" + } + ] + } + ] + ], + "particleData": [ + "switch", + { + "compareTo": "$compareTo", + "default": "void", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "14": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "23": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "34": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ] + } + } + ], + "position": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 26 + }, + { + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 + } + ] + ], + "pstring": "native", + "restBuffer": "native", + "slot": [ + "container", + [ + { + "name": "present", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "present", + "fields": { + "false": "void", + "true": [ + "container", + [ + { + "name": "itemId", + "type": "varint" }, { - "name": "suggestionType", - "type": [ - "switch", - { - "compareTo": "../flags/has_custom_suggestions", - "fields": { - "1": "string" - }, - "default": "void" - } - ] + "name": "itemCount", + "type": "i8" + }, + { + "name": "nbtData", + "type": "optionalNbt" } ] ] @@ -744,7 +714,37 @@ ] } ] - ] + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "topBitSetTerminatedArray": "native", + "u16": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec3i16": [ + "container", + [ + { + "name": "x", + "type": "i16" + }, + { + "name": "y", + "type": "i16" + }, + { + "name": "z", + "type": "i16" + } + ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -757,8 +757,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -778,6 +778,46 @@ }, "toServer": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", + [ + { + "name": "payload", + "type": "u8" + } + ] + ], "packet_set_protocol": [ "container", [ @@ -798,16 +838,13 @@ "type": "varint" } ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -816,11 +853,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -831,38 +868,36 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_ping": [ + "packet_server_info": [ "container", [ { - "name": "time", - "type": "i64" + "name": "response", + "type": "string" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -871,11 +906,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "server_info", + "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -886,21 +921,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -911,6 +938,16 @@ } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -919,11 +956,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" + }, + "type": "varint" } ] }, @@ -934,20 +974,26 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "compress": "packet_compress", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -973,36 +1019,14 @@ } ] }, - { - "name": "verifyToken", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ], - "packet_success": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "username", - "type": "string" - } - ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" + { + "name": "verifyToken", + "type": [ + "buffer", + { + "countType": "varint" + } + ] } ] ], @@ -1023,6 +1047,23 @@ } ] ], + "packet_success": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "username", + "type": "string" + } + ] + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -1031,14 +1072,12 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", + "0x00": "login_start", "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" - } + "0x02": "login_plugin_response" + }, + "type": "varint" } ] }, @@ -1049,29 +1088,14 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request" + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - } - ] ], "packet_encryption_begin": [ "container", @@ -1112,6 +1136,46 @@ } ] ], + "packet_login_start": [ + "container", + [ + { + "name": "username", + "type": "string" + } + ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "minecraft_smelting_format": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], "packet": [ "container", [ @@ -1120,12 +1184,102 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" - } + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "sculk_vibration_signal", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "entity", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "combat_event", + "0x33": "player_info", + "0x34": "face_player", + "0x35": "position", + "0x36": "unlock_recipes", + "0x37": "entity_destroy", + "0x38": "remove_entity_effect", + "0x39": "resource_pack_send", + "0x3a": "respawn", + "0x3b": "entity_head_rotation", + "0x3c": "multi_block_change", + "0x3d": "select_advancement_tab", + "0x3e": "world_border", + "0x3f": "camera", + "0x40": "held_item_slot", + "0x41": "update_view_position", + "0x42": "update_view_distance", + "0x43": "spawn_position", + "0x44": "scoreboard_display_objective", + "0x45": "entity_metadata", + "0x46": "attach_entity", + "0x47": "entity_velocity", + "0x48": "entity_equipment", + "0x49": "experience", + "0x4a": "update_health", + "0x4b": "scoreboard_objective", + "0x4c": "set_passengers", + "0x4d": "teams", + "0x4e": "scoreboard_score", + "0x4f": "update_time", + "0x50": "title", + "0x51": "entity_sound_effect", + "0x52": "sound_effect", + "0x53": "stop_sound", + "0x54": "playerlist_header", + "0x55": "nbt_query_response", + "0x56": "collect", + "0x57": "entity_teleport", + "0x58": "advancements", + "0x59": "entity_update_attributes", + "0x5a": "entity_effect", + "0x5b": "declare_recipes", + "0x5c": "tags" + }, + "type": "varint" } ] }, @@ -1136,235 +1290,140 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response" + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "camera": "packet_camera", + "chat": "packet_chat", + "close_window": "packet_close_window", + "collect": "packet_collect", + "combat_event": "packet_combat_event", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "entity": "packet_entity", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_state_change": "packet_game_state_change", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "multi_block_change": "packet_multi_block_change", + "named_entity_spawn": "packet_named_entity_spawn", + "named_sound_effect": "packet_named_sound_effect", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "player_info": "packet_player_info", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "resource_pack_send": "packet_resource_pack_send", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "sculk_vibration_signal": "packet_sculk_vibration_signal", + "select_advancement_tab": "packet_select_advancement_tab", + "set_cooldown": "packet_set_cooldown", + "set_passengers": "packet_set_passengers", + "set_slot": "packet_set_slot", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", + "spawn_entity_living": "packet_spawn_entity_living", + "spawn_entity_painting": "packet_spawn_entity_painting", + "spawn_position": "packet_spawn_position", + "statistics": "packet_statistics", + "stop_sound": "packet_stop_sound", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "tile_entity_data": "packet_tile_entity_data", + "title": "packet_title", + "trade_list": "packet_trade_list", + "transaction": "packet_transaction", + "unload_chunk": "packet_unload_chunk", + "unlock_recipes": "packet_unlock_recipes", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border": "packet_world_border", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "packet_spawn_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "pitch", - "type": "i8" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "objectData", - "type": "i32" - }, - { - "name": "velocity", - "type": "vec3i16" - } - ] - ], - "packet_spawn_entity_experience_orb": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "count", - "type": "i16" - } - ] ], - "packet_spawn_entity_living": [ + "packet_abilities": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "type", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", + "name": "flags", "type": "i8" }, { - "name": "headPitch", - "type": "i8" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "velocity", - "type": "vec3i16" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity_painting": [ + "packet_acknowledge_player_digging": [ "container", [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityUUID", - "type": "UUID" - }, - { - "name": "title", - "type": "varint" - }, { "name": "location", "type": "position" }, { - "name": "direction", - "type": "u8" - } - ] - ], - "packet_named_entity_spawn": [ - "container", - [ - { - "name": "entityId", + "name": "block", "type": "varint" }, { - "name": "playerUUID", - "type": "UUID" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", + "name": "status", "type": "varint" }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" - }, - { - "name": "value", - "type": "varint" - } - ] - ] - } - ] + "name": "successful", + "type": "bool" } ] ], @@ -1430,23 +1489,23 @@ [ { "name": "_unused", - "size": 29, - "signed": false + "signed": false, + "size": 29 }, { "name": "hidden", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "show_toast", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_background_texture", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -1457,10 +1516,10 @@ "switch", { "compareTo": "flags/has_background_texture", + "default": "void", "fields": { "1": "string" - }, - "default": "void" + } } ] }, @@ -1577,7 +1636,7 @@ } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -1585,29 +1644,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "u8" + "name": "entityId", + "type": "i32" }, - { - "name": "nbtData", - "type": "optionalNbt" + { + "name": "vehicleId", + "type": "i32" } ] ], @@ -1632,6 +1683,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -1662,11 +1730,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "3": "string" - }, - "default": "void" + } } ] }, @@ -1676,11 +1744,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -1690,11 +1758,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1704,11 +1772,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -1718,270 +1786,125 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" + } } ] } ] ], - "packet_difficulty": [ + "packet_camera": [ "container", [ { - "name": "difficulty", - "type": "u8" - }, - { - "name": "difficultyLocked", - "type": "bool" + "name": "cameraId", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chat": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" + "name": "message", + "type": "string" }, { - "name": "length", - "type": "varint" + "name": "position", + "type": "i8" }, { - "name": "matches", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ] - ] - } - ] + "name": "sender", + "type": "UUID" } ] ], - "packet_declare_commands": [ + "packet_close_window": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] - }, - { - "name": "rootIndex", - "type": "varint" + "name": "windowId", + "type": "u8" } ] ], - "packet_face_player": [ + "packet_collect": [ "container", [ { - "name": "feet_eyes", + "name": "collectedEntityId", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" + "name": "collectorEntityId", + "type": "varint" }, { - "name": "z", - "type": "f64" - }, + "name": "pickupItemCount", + "type": "varint" + } + ] + ], + "packet_combat_event": [ + "container", + [ { - "name": "isEntity", - "type": "bool" + "name": "event", + "type": "varint" }, { - "name": "entityId", + "name": "duration", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "varint" - }, - "default": "void" + "1": "varint" + } } ] }, { - "name": "entity_feet_eyes", + "name": "playerId", "type": [ "switch", { - "compareTo": "isEntity", + "compareTo": "event", + "default": "void", "fields": { - "true": "string" - }, - "default": "void" - } - ] - } - ] - ], - "packet_nbt_query_response": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "nbt", - "type": "optionalNbt" - } - ] - ], - "packet_chat": [ - "container", - [ - { - "name": "message", - "type": "string" - }, - { - "name": "position", - "type": "i8" - }, - { - "name": "sender", - "type": "UUID" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ - { - "name": "chunkCoordinates", - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": false + "2": "varint" } - ] + } ] }, { - "name": "notTrustEdges", - "type": "bool" - }, - { - "name": "records", + "name": "entityId", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "varlong" - } - ] - } - ] - ], - "packet_transaction": [ - "container", - [ - { - "name": "windowId", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, - { - "name": "accepted", - "type": "bool" - } - ] - ], - "packet_close_window": [ - "container", - [ - { - "name": "windowId", - "type": "u8" - } - ] - ], - "packet_open_window": [ - "container", - [ - { - "name": "windowId", - "type": "varint" - }, - { - "name": "inventoryType", - "type": "varint" - }, - { - "name": "windowTitle", - "type": "string" - } - ] - ], - "packet_window_items": [ - "container", - [ - { - "name": "windowId", - "type": "u8" + "compareTo": "event", + "default": "void", + "fields": { + "1": "i32", + "2": "i32" + } + } + ] }, { - "name": "items", + "name": "message", "type": [ - "array", + "switch", { - "countType": "i16", - "type": "slot" + "compareTo": "event", + "default": "void", + "fields": { + "2": "string" + } } ] } @@ -2004,7 +1927,7 @@ } ] ], - "packet_set_slot": [ + "packet_craft_recipe_response": [ "container", [ { @@ -2012,25 +1935,8 @@ "type": "i8" }, { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ - { - "name": "itemID", - "type": "varint" - }, - { - "name": "cooldownTicks", - "type": "varint" + "name": "recipe", + "type": "string" } ] ], @@ -2047,361 +1953,652 @@ } ] ], - "packet_named_sound_effect": [ + "packet_declare_commands": [ "container", [ { - "name": "soundName", - "type": "string" + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "soundCategory", + "name": "rootIndex", "type": "varint" - }, - { - "name": "x", - "type": "i32" - }, + } + ] + ], + "packet_declare_recipes": [ + "container", + [ { - "name": "y", - "type": "i32" - }, + "name": "recipes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + } + } + ] + } + ] + ] + } + ] + } + ] + ], + "packet_difficulty": [ + "container", + [ { - "name": "z", - "type": "i32" + "name": "difficulty", + "type": "u8" }, { - "name": "volume", - "type": "f32" - }, + "name": "difficultyLocked", + "type": "bool" + } + ] + ], + "packet_entity": [ + "container", + [ { - "name": "pitch", - "type": "f32" + "name": "entityId", + "type": "varint" } ] ], - "packet_kick_disconnect": [ + "packet_entity_destroy": [ "container", [ { - "name": "reason", - "type": "string" + "name": "entityIds", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_entity_status": [ + "packet_entity_effect": [ "container", [ { - "name": "entityId", - "type": "i32" + "name": "entityId", + "type": "varint" + }, + { + "name": "effectId", + "type": "i8" + }, + { + "name": "amplifier", + "type": "i8" }, { - "name": "entityStatus", + "name": "duration", + "type": "varint" + }, + { + "name": "hideParticles", "type": "i8" } ] ], - "packet_explosion": [ + "packet_entity_equipment": [ "container", [ { - "name": "x", - "type": "f32" - }, - { - "name": "y", - "type": "f32" - }, - { - "name": "z", - "type": "f32" - }, - { - "name": "radius", - "type": "f32" + "name": "entityId", + "type": "varint" }, { - "name": "affectedBlockOffsets", + "name": "equipments", "type": [ - "array", + "topBitSetTerminatedArray", { - "countType": "i32", "type": [ "container", [ { - "name": "x", - "type": "i8" - }, - { - "name": "y", + "name": "slot", "type": "i8" }, { - "name": "z", - "type": "i8" + "name": "item", + "type": "slot" } ] ] } ] + } + ] + ], + "packet_entity_head_rotation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "playerMotionX", - "type": "f32" + "name": "headYaw", + "type": "i8" + } + ] + ], + "packet_entity_look": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "playerMotionY", - "type": "f32" + "name": "yaw", + "type": "i8" }, { - "name": "playerMotionZ", - "type": "f32" + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_unload_chunk": [ + "packet_entity_metadata": [ "container", [ { - "name": "chunkX", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkZ", - "type": "i32" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_game_state_change": [ + "packet_entity_move_look": [ "container", [ { - "name": "reason", - "type": "u8" + "name": "entityId", + "type": "varint" }, { - "name": "gameMode", - "type": "f32" + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_open_horse_window": [ + "packet_entity_sound_effect": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "soundId", + "type": "varint" }, { - "name": "nbSlots", + "name": "soundCategory", "type": "varint" }, { "name": "entityId", - "type": "i32" + "type": "varint" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_keep_alive": [ + "packet_entity_status": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "entityId", + "type": "i32" + }, + { + "name": "entityStatus", + "type": "i8" } ] ], - "packet_map_chunk": [ + "packet_entity_teleport": [ "container", [ + { + "name": "entityId", + "type": "varint" + }, { "name": "x", - "type": "i32" + "type": "f64" }, { - "name": "z", - "type": "i32" + "name": "y", + "type": "f64" }, { - "name": "primaryBitMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "z", + "type": "f64" }, { - "name": "heightmaps", - "type": "nbt" + "name": "yaw", + "type": "i8" }, { - "name": "biomes", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "chunkData", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "blockEntities", + "name": "properties", "type": [ "array", { - "countType": "varint", - "type": "nbt" + "countType": "i32", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] } ] } ] ], - "packet_world_event": [ + "packet_entity_velocity": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "data", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "global", - "type": "bool" + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_world_particles": [ + "packet_experience": [ "container", [ { - "name": "particleId", - "type": "i32" + "name": "experienceBar", + "type": "f32" }, { - "name": "longDistance", - "type": "bool" + "name": "level", + "type": "varint" }, + { + "name": "totalExperience", + "type": "varint" + } + ] + ], + "packet_explosion": [ + "container", + [ { "name": "x", - "type": "f64" + "type": "f32" }, { "name": "y", - "type": "f64" + "type": "f32" }, { "name": "z", - "type": "f64" - }, - { - "name": "offsetX", "type": "f32" }, { - "name": "offsetY", + "name": "radius", "type": "f32" }, { - "name": "offsetZ", - "type": "f32" + "name": "affectedBlockOffsets", + "type": [ + "array", + { + "countType": "i32", + "type": [ + "container", + [ + { + "name": "x", + "type": "i8" + }, + { + "name": "y", + "type": "i8" + }, + { + "name": "z", + "type": "i8" + } + ] + ] + } + ] }, { - "name": "particleData", + "name": "playerMotionX", "type": "f32" }, { - "name": "particles", - "type": "i32" + "name": "playerMotionY", + "type": "f32" }, { - "name": "data", - "type": [ - "particleData", - { - "compareTo": "particleId" - } - ] + "name": "playerMotionZ", + "type": "f32" } ] ], - "packet_update_light": [ + "packet_face_player": [ "container", [ { - "name": "chunkX", + "name": "feet_eyes", "type": "varint" }, { - "name": "chunkZ", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "trustEdges", - "type": "bool" + "name": "y", + "type": "f64" }, { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "z", + "type": "f64" }, { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "isEntity", + "type": "bool" }, { - "name": "emptySkyLightMask", + "name": "entityId", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } } ] }, { - "name": "emptyBlockLightMask", + "name": "entity_feet_eyes", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "string" + } } ] + } + ] + ], + "packet_game_state_change": [ + "container", + [ + { + "name": "reason", + "type": "u8" }, { - "name": "data", - "type": "restBuffer" + "name": "gameMode", + "type": "f32" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slot", + "type": "i8" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "string" } ] ], @@ -2542,10 +2739,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2555,10 +2752,10 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" + } } ] }, @@ -2568,141 +2765,132 @@ "switch", { "compareTo": "columns", + "default": "i8", "fields": { "0": "void" - }, - "default": "i8" - } - ] - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "columns", - "fields": { - "0": "void" - }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] + } } - ] - } - ] - ], - "packet_trade_list": [ - "container", - [ - { - "name": "windowId", - "type": "varint" - }, - { - "name": "trades", - "type": [ - "array", - { - "countType": "u8", - "type": [ - "container", - [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": [ - "option", - "slot" - ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ] - ] + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "columns", + "default": [ + "buffer", + { + "countType": "varint" + } + ], + "fields": { + "0": "void" + } } ] + } + ] + ], + "packet_map_chunk": [ + "container", + [ + { + "name": "x", + "type": "i32" }, { - "name": "villagerLevel", - "type": "varint" + "name": "z", + "type": "i32" }, { - "name": "experience", - "type": "varint" + "name": "primaryBitMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "isRegularVillager", - "type": "bool" + "name": "heightmaps", + "type": "nbt" }, { - "name": "canRestock", - "type": "bool" + "name": "biomes", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + }, + { + "name": "chunkData", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "nbt" + } + ] } ] ], - "packet_rel_entity_move": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": false, + "size": 20 + } + ] + ] }, { - "name": "dZ", - "type": "i16" + "name": "notTrustEdges", + "type": "bool" }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": "varlong" + } + ] } ] ], - "packet_entity_move_look": [ + "packet_named_entity_spawn": [ "container", [ { @@ -2710,37 +2898,20 @@ "type": "varint" }, { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" + "name": "playerUUID", + "type": "UUID" }, { - "name": "yaw", - "type": "i8" + "name": "x", + "type": "f64" }, { - "name": "pitch", - "type": "i8" + "name": "y", + "type": "f64" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "z", + "type": "f64" }, { "name": "yaw", @@ -2749,39 +2920,34 @@ { "name": "pitch", "type": "i8" - }, - { - "name": "onGround", - "type": "bool" } ] ], - "packet_entity": [ + "packet_named_sound_effect": [ "container", [ { - "name": "entityId", + "name": "soundName", + "type": "string" + }, + { + "name": "soundCategory", "type": "varint" - } - ] - ], - "packet_vehicle_move": [ - "container", - [ + }, { "name": "x", - "type": "f64" + "type": "i32" }, { "name": "y", - "type": "f64" + "type": "i32" }, { "name": "z", - "type": "f64" + "type": "i32" }, { - "name": "yaw", + "name": "volume", "type": "f32" }, { @@ -2790,113 +2956,68 @@ } ] ], - "packet_open_book": [ + "packet_nbt_query_response": [ "container", [ { - "name": "hand", + "name": "transactionId", "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" } ] ], - "packet_open_sign_entity": [ + "packet_open_book": [ "container", [ { - "name": "location", - "type": "position" + "name": "hand", + "type": "varint" } ] ], - "packet_craft_recipe_response": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "i8" + "type": "u8" }, { - "name": "recipe", - "type": "string" + "name": "nbSlots", + "type": "varint" + }, + { + "name": "entityId", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_open_sign_entity": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "location", + "type": "position" } ] ], - "packet_combat_event": [ + "packet_open_window": [ "container", [ { - "name": "event", - "type": "varint" - }, - { - "name": "duration", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "playerId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "1": "i32", - "2": "i32" - }, - "default": "void" - } - ] + "name": "windowId", + "type": "varint" }, { - "name": "message", - "type": [ - "switch", - { - "compareTo": "event", - "fields": { - "2": "string" - }, - "default": "void" - } - ] + "name": "inventoryType", + "type": "varint" + }, + { + "name": "windowTitle", + "type": "string" } ] ], @@ -2908,14 +3029,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "add_player", "1": "update_game_mode", "2": "update_latency", "3": "update_display_name", "4": "remove_player" - } + }, + "type": "varint" } ] }, @@ -2992,37 +3113,37 @@ } ] ], - "update_game_mode": [ + "remove_player": "void", + "update_display_name": [ "container", [ { - "name": "gamemode", - "type": "varint" + "name": "displayName", + "type": [ + "option", + "string" + ] } ] ], - "update_latency": [ + "update_game_mode": [ "container", [ { - "name": "ping", + "name": "gamemode", "type": "varint" } ] ], - "update_display_name": [ + "update_latency": [ "container", [ { - "name": "displayName", - "type": [ - "option", - "string" - ] + "name": "ping", + "type": "varint" } ] - ], - "remove_player": "void" + ] } } ] @@ -3034,6 +3155,19 @@ } ] ], + "packet_playerlist_header": [ + "container", + [ + { + "name": "header", + "type": "string" + }, + { + "name": "footer", + "type": "string" + } + ] + ], "packet_position": [ "container", [ @@ -3071,92 +3205,239 @@ } ] ], - "packet_unlock_recipes": [ + "packet_rel_entity_move": [ "container", [ { - "name": "action", + "name": "entityId", "type": "varint" }, { - "name": "craftingBookOpen", - "type": "bool" + "name": "dX", + "type": "i16" }, { - "name": "filteringCraftable", - "type": "bool" + "name": "dY", + "type": "i16" }, { - "name": "smeltingBookOpen", - "type": "bool" + "name": "dZ", + "type": "i16" }, { - "name": "filteringSmeltable", + "name": "onGround", "type": "bool" + } + ] + ], + "packet_remove_entity_effect": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "blastFurnaceOpen", + "name": "effectId", + "type": "i8" + } + ] + ], + "packet_resource_pack_send": [ + "container", + [ + { + "name": "url", + "type": "string" + }, + { + "name": "hash", + "type": "string" + }, + { + "name": "forced", "type": "bool" + } + ] + ], + "packet_respawn": [ + "container", + [ + { + "name": "dimension", + "type": "nbt" }, { - "name": "filteringBlastFurnace", + "name": "worldName", + "type": "string" + }, + { + "name": "hashedSeed", + "type": "i64" + }, + { + "name": "gamemode", + "type": "u8" + }, + { + "name": "previousGamemode", + "type": "u8" + }, + { + "name": "isDebug", "type": "bool" }, { - "name": "smokerBookOpen", + "name": "isFlat", "type": "bool" }, { - "name": "filteringSmoker", + "name": "copyMetadata", "type": "bool" + } + ] + ], + "packet_scoreboard_display_objective": [ + "container", + [ + { + "name": "position", + "type": "i8" }, { - "name": "recipes1", + "name": "name", + "type": "string" + } + ] + ], + "packet_scoreboard_objective": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "action", + "type": "i8" + }, + { + "name": "displayText", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "action", + "default": "void", + "fields": { + "0": "string", + "2": "string" + } } ] }, { - "name": "recipes2", + "name": "type", "type": [ "switch", { "compareTo": "action", + "default": "void", "fields": { - "0": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" + "0": "varint", + "2": "varint" + } + } + ] + } + ] + ], + "packet_scoreboard_score": [ + "container", + [ + { + "name": "itemName", + "type": "string" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "scoreName", + "type": "string" + }, + { + "name": "value", + "type": [ + "switch", + { + "compareTo": "action", + "default": "varint", + "fields": { + "1": "void" + } + } + ] + } + ] + ], + "packet_sculk_vibration_signal": [ + "container", + [ + { + "name": "sourcePosition", + "type": "position" + }, + { + "name": "destinationIdentifier", + "type": "string" + }, + { + "name": "destination", + "type": [ + "switch", + { + "compareTo": "destinationIdentifier", + "default": "void", + "fields": { + "block": "position", + "entityId": "varint" + } } ] + }, + { + "name": "arrivalTicks", + "type": "varint" + } + ] + ], + "packet_select_advancement_tab": [ + "container", + [ + { + "name": "id", + "type": [ + "option", + "string" + ] } ] ], - "packet_entity_destroy": [ + "packet_set_cooldown": [ "container", [ { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "itemID", + "type": "varint" + }, + { + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_remove_entity_effect": [ + "packet_set_passengers": [ "container", [ { @@ -3164,66 +3445,68 @@ "type": "varint" }, { - "name": "effectId", - "type": "i8" + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_resource_pack_send": [ + "packet_set_slot": [ "container", [ { - "name": "url", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "hash", - "type": "string" + "name": "slot", + "type": "i16" }, { - "name": "forced", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_respawn": [ + "packet_sound_effect": [ "container", [ { - "name": "dimension", - "type": "nbt" - }, - { - "name": "worldName", - "type": "string" + "name": "soundId", + "type": "varint" }, { - "name": "hashedSeed", - "type": "i64" + "name": "soundCategory", + "type": "varint" }, { - "name": "gamemode", - "type": "u8" + "name": "x", + "type": "i32" }, { - "name": "previousGamemode", - "type": "u8" + "name": "y", + "type": "i32" }, { - "name": "isDebug", - "type": "bool" + "name": "z", + "type": "i32" }, { - "name": "isFlat", - "type": "bool" + "name": "volume", + "type": "f32" }, { - "name": "copyMetadata", - "type": "bool" + "name": "pitch", + "type": "f32" } ] ], - "packet_entity_head_rotation": [ + "packet_spawn_entity": [ "container", [ { @@ -3231,198 +3514,114 @@ "type": "varint" }, { - "name": "headYaw", - "type": "i8" - } - ] - ], - "packet_world_border": [ - "container", - [ - { - "name": "action", - "type": "varint" + "name": "objectUUID", + "type": "UUID" }, { - "name": "radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "f64" - }, - "default": "void" - } - ] + "name": "type", + "type": "varint" }, { "name": "x", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "2": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "type": "f64" }, { - "name": "old_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "y", + "type": "f64" }, { - "name": "new_radius", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "f64", - "3": "f64" - }, - "default": "void" - } - ] + "name": "z", + "type": "f64" }, { - "name": "speed", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "varlong", - "3": "varlong" - }, - "default": "void" - } - ] + "name": "pitch", + "type": "i8" }, { - "name": "portalBoundary", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint" - }, - "default": "void" - } - ] + "name": "yaw", + "type": "i8" }, { - "name": "warning_time", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "4": "varint" - }, - "default": "void" - } - ] + "name": "objectData", + "type": "i32" }, { - "name": "warning_blocks", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "3": "varint", - "5": "varint" - }, - "default": "void" - } - ] + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_camera": [ + "packet_spawn_entity_experience_orb": [ "container", [ { - "name": "cameraId", + "name": "entityId", "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + }, { - "name": "slot", - "type": "i8" + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "count", + "type": "i16" } ] ], - "packet_update_view_position": [ + "packet_spawn_entity_living": [ "container", [ { - "name": "chunkX", + "name": "entityId", "type": "varint" }, { - "name": "chunkZ", + "name": "entityUUID", + "type": "UUID" + }, + { + "name": "type", "type": "varint" - } - ] - ], - "packet_update_view_distance": [ - "container", - [ + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, { - "name": "viewDistance", - "type": "varint" - } - ] - ], - "packet_scoreboard_display_objective": [ - "container", - [ + "name": "z", + "type": "f64" + }, { - "name": "position", + "name": "yaw", "type": "i8" }, { - "name": "name", - "type": "string" + "name": "pitch", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "velocity", + "type": "vec3i16" } ] ], - "packet_entity_metadata": [ + "packet_spawn_entity_painting": [ "container", [ { @@ -3430,59 +3629,55 @@ "type": "varint" }, { - "name": "metadata", - "type": "entityMetadata" - } - ] - ], - "packet_attach_entity": [ - "container", - [ + "name": "entityUUID", + "type": "UUID" + }, { - "name": "entityId", - "type": "i32" + "name": "title", + "type": "varint" }, { - "name": "vehicleId", - "type": "i32" + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "u8" } ] ], - "packet_entity_velocity": [ + "packet_spawn_position": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "velocity", - "type": "vec3i16" + "name": "location", + "type": "position" } ] ], - "packet_entity_equipment": [ + "packet_statistics": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "equipments", + "name": "entries", "type": [ - "topBitSetTerminatedArray", + "array", { + "countType": "varint", "type": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "categoryId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" } ] ] @@ -3491,95 +3686,107 @@ } ] ], - "packet_experience": [ + "packet_stop_sound": [ "container", [ { - "name": "experienceBar", - "type": "f32" + "name": "flags", + "type": "i8" }, { - "name": "level", - "type": "varint" + "name": "source", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "1": "varint", + "3": "varint" + } + } + ] }, { - "name": "totalExperience", - "type": "varint" + "name": "sound", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "2": "string", + "3": "string" + } + } + ] } ] ], - "packet_update_health": [ + "packet_tab_complete": [ "container", [ { - "name": "health", - "type": "f32" - }, - { - "name": "food", + "name": "transactionId", "type": "varint" }, { - "name": "foodSaturation", - "type": "f32" - } - ] - ], - "packet_scoreboard_objective": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "action", - "type": "i8" + "name": "start", + "type": "varint" }, { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "2": "string" - }, - "default": "void" - } - ] + "name": "length", + "type": "varint" }, { - "name": "type", + "name": "matches", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" + "countType": "varint", + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } ] ], - "packet_set_passengers": [ + "packet_tags": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", + "name": "tags", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] } @@ -3602,11 +3809,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3616,11 +3823,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "i8", "2": "i8" - }, - "default": "void" + } } ] }, @@ -3630,11 +3837,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3644,11 +3851,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3658,11 +3865,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "varint", "2": "varint" - }, - "default": "void" + } } ] }, @@ -3672,11 +3879,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3686,11 +3893,11 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3700,6 +3907,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "0": [ "array", @@ -3711,73 +3919,37 @@ "3": [ "array", { - "countType": "varint", - "type": "string" - } - ], - "4": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "1": "void" - }, - "default": "varint" + "countType": "varint", + "type": "string" + } + ], + "4": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_spawn_position": [ + "packet_tile_entity_data": [ "container", [ { "name": "location", "type": "position" - } - ] - ], - "packet_update_time": [ - "container", - [ + }, { - "name": "age", - "type": "i64" + "name": "action", + "type": "u8" }, { - "name": "time", - "type": "i64" + "name": "nbtData", + "type": "optionalNbt" } ] ], @@ -3794,12 +3966,12 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "string", "1": "string", "2": "string" - }, - "default": "void" + } } ] }, @@ -3809,10 +3981,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3822,10 +3994,10 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] }, @@ -3835,546 +4007,591 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "3": "i32" - }, - "default": "void" + } } ] } ] ], - "packet_entity_sound_effect": [ + "packet_trade_list": [ "container", [ { - "name": "soundId", + "name": "windowId", "type": "varint" }, { - "name": "soundCategory", + "name": "trades", + "type": [ + "array", + { + "countType": "u8", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] + } + ] + }, + { + "name": "villagerLevel", "type": "varint" }, { - "name": "entityId", + "name": "experience", "type": "varint" }, { - "name": "volume", - "type": "f32" + "name": "isRegularVillager", + "type": "bool" }, { - "name": "pitch", - "type": "f32" + "name": "canRestock", + "type": "bool" } ] ], - "packet_stop_sound": [ + "packet_transaction": [ "container", [ { - "name": "flags", + "name": "windowId", "type": "i8" }, { - "name": "source", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" - } - ] + "name": "action", + "type": "i16" }, { - "name": "sound", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "2": "string", - "3": "string" - }, - "default": "void" - } - ] + "name": "accepted", + "type": "bool" } ] ], - "packet_sound_effect": [ + "packet_unload_chunk": [ "container", [ { - "name": "soundId", - "type": "varint" - }, - { - "name": "soundCategory", - "type": "varint" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", + "name": "chunkX", "type": "i32" }, { - "name": "z", + "name": "chunkZ", "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - } - ] - ], - "packet_playerlist_header": [ - "container", - [ - { - "name": "header", - "type": "string" - }, - { - "name": "footer", - "type": "string" } ] ], - "packet_collect": [ + "packet_unlock_recipes": [ "container", [ { - "name": "collectedEntityId", + "name": "action", "type": "varint" }, { - "name": "collectorEntityId", - "type": "varint" + "name": "craftingBookOpen", + "type": "bool" }, { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "filteringCraftable", + "type": "bool" }, { - "name": "x", - "type": "f64" + "name": "smeltingBookOpen", + "type": "bool" }, { - "name": "y", - "type": "f64" + "name": "filteringSmeltable", + "type": "bool" }, { - "name": "z", - "type": "f64" + "name": "blastFurnaceOpen", + "type": "bool" }, { - "name": "yaw", - "type": "i8" + "name": "filteringBlastFurnace", + "type": "bool" }, { - "name": "pitch", - "type": "i8" + "name": "smokerBookOpen", + "type": "bool" }, { - "name": "onGround", + "name": "filteringSmoker", "type": "bool" - } - ] - ], - "packet_entity_update_attributes": [ - "container", - [ - { - "name": "entityId", - "type": "varint" }, { - "name": "properties", + "name": "recipes1", "type": [ "array", { - "countType": "i32", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "f64" - }, + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "recipes2", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "array", { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] + "countType": "varint", + "type": "string" } ] - ] + } } ] } ] ], - "packet_entity_effect": [ + "packet_update_health": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "effectId", - "type": "i8" - }, - { - "name": "amplifier", - "type": "i8" + "name": "health", + "type": "f32" }, { - "name": "duration", + "name": "food", "type": "varint" }, { - "name": "hideParticles", - "type": "i8" + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_select_advancement_tab": [ + "packet_update_light": [ "container", [ { - "name": "id", + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" + }, + { + "name": "trustEdges", + "type": "bool" + }, + { + "name": "skyLightMask", "type": [ - "option", - "string" + "array", + { + "countType": "varint", + "type": "i64" + } ] - } - ] - ], - "packet_declare_recipes": [ - "container", - [ + }, { - "name": "recipes", + "name": "blockLightMask", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "ingredient" - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "count": "width", - "type": [ - "array", - { - "count": "height", - "type": "ingredient" - } - ] - } - ] - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": [ - "container", - [ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ], - "minecraft:smithing": [ - "container", - [ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ] - ] - } - } - ] - } - ] - ] + "type": "i64" + } + ] + }, + { + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" } ] + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_update_time": [ + "container", + [ + { + "name": "age", + "type": "i64" + }, + { + "name": "time", + "type": "i64" } ] ], - "minecraft_smelting_format": [ + "packet_update_view_distance": [ "container", [ { - "name": "group", - "type": "string" + "name": "viewDistance", + "type": "varint" + } + ] + ], + "packet_update_view_position": [ + "container", + [ + { + "name": "chunkX", + "type": "varint" }, { - "name": "ingredient", - "type": "ingredient" + "name": "chunkZ", + "type": "varint" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "result", - "type": "slot" + "name": "y", + "type": "f64" }, { - "name": "experience", + "name": "z", + "type": "f64" + }, + { + "name": "yaw", "type": "f32" }, { - "name": "cookTime", - "type": "varint" + "name": "pitch", + "type": "f32" } ] ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, + "packet_window_items": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + }, + { + "name": "items", + "type": [ + "array", { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "countType": "i16", + "type": "slot" } ] - ] - } + } + ] ], - "packet_tags": [ + "packet_world_border": [ "container", [ { - "name": "tags", + "name": "action", + "type": "varint" + }, + { + "name": "radius", "type": [ - "array", + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] + "compareTo": "action", + "default": "void", + "fields": { + "0": "f64" + } + } + ] + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "2": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "old_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "new_radius", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "f64", + "3": "f64" + } + } + ] + }, + { + "name": "speed", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "1": "varlong", + "3": "varlong" + } + } + ] + }, + { + "name": "portalBoundary", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint" + } + } + ] + }, + { + "name": "warning_time", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "4": "varint" + } + } + ] + }, + { + "name": "warning_blocks", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "3": "varint", + "5": "varint" + } } ] } ] ], - "packet_acknowledge_player_digging": [ + "packet_world_event": [ "container", [ + { + "name": "effectId", + "type": "i32" + }, { "name": "location", "type": "position" }, { - "name": "block", - "type": "varint" + "name": "data", + "type": "i32" }, { - "name": "status", - "type": "varint" + "name": "global", + "type": "bool" + } + ] + ], + "packet_world_particles": [ + "container", + [ + { + "name": "particleId", + "type": "i32" + }, + { + "name": "longDistance", + "type": "bool" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" }, { - "name": "successful", - "type": "bool" - } - ] - ], - "packet_sculk_vibration_signal": [ - "container", - [ + "name": "offsetZ", + "type": "f32" + }, { - "name": "sourcePosition", - "type": "position" + "name": "particleData", + "type": "f32" }, { - "name": "destinationIdentifier", - "type": "string" + "name": "particles", + "type": "i32" }, { - "name": "destination", + "name": "data", "type": [ - "switch", + "particleData", { - "compareTo": "destinationIdentifier", - "fields": { - "block": "position", - "entityId": "varint" - }, - "default": "void" + "compareTo": "particleId" } ] - }, - { - "name": "arrivalTicks", - "type": "varint" } ] ], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -4383,102 +4600,57 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "sculk_vibration_signal", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "entity", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "combat_event", - "0x33": "player_info", - "0x34": "face_player", - "0x35": "position", - "0x36": "unlock_recipes", - "0x37": "entity_destroy", - "0x38": "remove_entity_effect", - "0x39": "resource_pack_send", - "0x3a": "respawn", - "0x3b": "entity_head_rotation", - "0x3c": "multi_block_change", - "0x3d": "select_advancement_tab", - "0x3e": "world_border", - "0x3f": "camera", - "0x40": "held_item_slot", - "0x41": "update_view_position", - "0x42": "update_view_distance", - "0x43": "spawn_position", - "0x44": "scoreboard_display_objective", - "0x45": "entity_metadata", - "0x46": "attach_entity", - "0x47": "entity_velocity", - "0x48": "entity_equipment", - "0x49": "experience", - "0x4a": "update_health", - "0x4b": "scoreboard_objective", - "0x4c": "set_passengers", - "0x4d": "teams", - "0x4e": "scoreboard_score", - "0x4f": "update_time", - "0x50": "title", - "0x51": "entity_sound_effect", - "0x52": "sound_effect", - "0x53": "stop_sound", - "0x54": "playerlist_header", - "0x55": "nbt_query_response", - "0x56": "collect", - "0x57": "entity_teleport", - "0x58": "advancements", - "0x59": "entity_update_attributes", - "0x5a": "entity_effect", - "0x5b": "declare_recipes", - "0x5c": "tags" - } + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "generate_structure", + "0x10": "keep_alive", + "0x11": "lock_difficulty", + "0x12": "position", + "0x13": "position_look", + "0x14": "look", + "0x15": "flying", + "0x16": "vehicle_move", + "0x17": "steer_boat", + "0x18": "pick_item", + "0x19": "craft_recipe_request", + "0x1a": "abilities", + "0x1b": "block_dig", + "0x1c": "entity_action", + "0x1d": "steer_vehicle", + "0x1e": "displayed_recipe", + "0x1f": "recipe_book", + "0x20": "name_item", + "0x21": "resource_pack_receive", + "0x22": "advancement_tab", + "0x23": "select_trade", + "0x24": "set_beacon_effect", + "0x25": "held_item_slot", + "0x26": "update_command_block", + "0x27": "update_command_block_minecart", + "0x28": "set_creative_slot", + "0x29": "update_jigsaw_block", + "0x2a": "update_structure_block", + "0x2b": "update_sign", + "0x2c": "arm_animation", + "0x2d": "spectate", + "0x2e": "block_place", + "0x2f": "use_item" + }, + "type": "varint" } ] }, @@ -4489,327 +4661,147 @@ { "compareTo": "name", "fields": { - "spawn_entity": "packet_spawn_entity", - "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb", - "spawn_entity_living": "packet_spawn_entity_living", - "spawn_entity_painting": "packet_spawn_entity_painting", - "named_entity_spawn": "packet_named_entity_spawn", - "animation": "packet_animation", - "statistics": "packet_statistics", - "advancements": "packet_advancements", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "chat": "packet_chat", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_payload": "packet_custom_payload", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "name_item": "packet_name_item", + "pick_item": "packet_pick_item", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "settings": "packet_settings", + "spectate": "packet_spectate", + "steer_boat": "packet_steer_boat", + "steer_vehicle": "packet_steer_vehicle", "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "face_player": "packet_face_player", - "nbt_query_response": "packet_nbt_query_response", - "chat": "packet_chat", - "multi_block_change": "packet_multi_block_change", + "teleport_confirm": "packet_teleport_confirm", "transaction": "packet_transaction", - "close_window": "packet_close_window", - "open_window": "packet_open_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "set_cooldown": "packet_set_cooldown", - "custom_payload": "packet_custom_payload", - "named_sound_effect": "packet_named_sound_effect", - "kick_disconnect": "packet_kick_disconnect", - "entity_status": "packet_entity_status", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "open_horse_window": "packet_open_horse_window", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "entity_look": "packet_entity_look", - "entity": "packet_entity", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_sign_entity": "packet_open_sign_entity", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "combat_event": "packet_combat_event", - "player_info": "packet_player_info", - "position": "packet_position", - "unlock_recipes": "packet_unlock_recipes", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "resource_pack_send": "packet_resource_pack_send", - "respawn": "packet_respawn", - "entity_update_attributes": "packet_entity_update_attributes", - "world_border": "packet_world_border", - "camera": "packet_camera", - "held_item_slot": "packet_held_item_slot", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "spawn_position": "packet_spawn_position", - "update_time": "packet_update_time", - "title": "packet_title", - "entity_sound_effect": "packet_entity_sound_effect", - "stop_sound": "packet_stop_sound", - "sound_effect": "packet_sound_effect", - "playerlist_header": "packet_playerlist_header", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "entity_head_rotation": "packet_entity_head_rotation", - "entity_effect": "packet_entity_effect", - "select_advancement_tab": "packet_select_advancement_tab", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "sculk_vibration_signal": "packet_sculk_vibration_signal" + "window_click": "packet_window_click" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ - "container", - [ - { - "name": "teleportId", - "type": "varint" - } - ] - ], - "packet_query_block_nbt": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "location", - "type": "position" - } - ] - ], - "packet_set_difficulty": [ - "container", - [ - { - "name": "newDifficulty", - "type": "u8" - } - ] ], - "packet_edit_book": [ + "packet_abilities": [ "container", [ { - "name": "new_book", - "type": "slot" - }, - { - "name": "signing", - "type": "bool" - }, - { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "i8" } ] ], - "packet_query_entity_nbt": [ + "packet_advancement_tab": [ "container", [ { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_pick_item": [ - "container", - [ - { - "name": "slot", - "type": "varint" - } - ] - ], - "packet_name_item": [ - "container", - [ - { - "name": "name", - "type": "string" + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] } ] ], - "packet_select_trade": [ + "packet_arm_animation": [ "container", [ { - "name": "slot", + "name": "hand", "type": "varint" } ] ], - "packet_set_beacon_effect": [ + "packet_block_dig": [ "container", [ { - "name": "primary_effect", + "name": "status", "type": "varint" }, - { - "name": "secondary_effect", - "type": "varint" - } - ] - ], - "packet_update_command_block": [ - "container", - [ { "name": "location", "type": "position" }, { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", - "type": "u8" + "name": "face", + "type": "i8" } ] ], - "packet_update_command_block_minecart": [ + "packet_block_place": [ "container", [ { - "name": "entityId", + "name": "hand", "type": "varint" }, - { - "name": "command", - "type": "string" - }, - { - "name": "track_output", - "type": "bool" - } - ] - ], - "packet_update_structure_block": [ - "container", - [ { "name": "location", "type": "position" }, { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", - "type": "varint" - }, - { - "name": "metadata", - "type": "string" + "name": "direction", + "type": "varint" }, { - "name": "integrity", + "name": "cursorX", "type": "f32" }, { - "name": "seed", - "type": "varlong" + "name": "cursorY", + "type": "f32" }, { - "name": "flags", - "type": "u8" - } - ] - ], - "packet_tab_complete": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" + "name": "cursorZ", + "type": "f32" }, { - "name": "text", - "type": "string" + "name": "insideBlock", + "type": "bool" } ] ], @@ -4831,40 +4823,16 @@ } ] ], - "packet_settings": [ + "packet_close_window": [ "container", [ { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", + "name": "windowId", "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" - }, - { - "name": "disableTextFiltering", - "type": "bool" } ] ], - "packet_transaction": [ + "packet_craft_recipe_request": [ "container", [ { @@ -4872,145 +4840,89 @@ "type": "i8" }, { - "name": "action", - "type": "i16" + "name": "recipe", + "type": "string" }, { - "name": "accepted", + "name": "makeAll", "type": "bool" } ] ], - "packet_enchant_item": [ + "packet_custom_payload": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "channel", + "type": "string" }, { - "name": "enchantment", - "type": "i8" + "name": "data", + "type": "restBuffer" } ] ], - "packet_window_click": [ + "packet_displayed_recipe": [ "container", [ { - "name": "windowId", - "type": "u8" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "action", - "type": "i16" - }, - { - "name": "mode", - "type": "i8" - }, - { - "name": "item", - "type": "slot" + "name": "recipeId", + "type": "string" } ] ], - "packet_close_window": [ + "packet_edit_book": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "new_book", + "type": "slot" + }, + { + "name": "signing", + "type": "bool" + }, + { + "name": "hand", + "type": "varint" } ] ], - "packet_custom_payload": [ + "packet_enchant_item": [ "container", [ { - "name": "channel", - "type": "string" + "name": "windowId", + "type": "i8" }, { - "name": "data", - "type": "restBuffer" + "name": "enchantment", + "type": "i8" } ] ], - "packet_use_entity": [ + "packet_entity_action": [ "container", [ { - "name": "target", + "name": "entityId", "type": "varint" }, { - "name": "mouse", + "name": "actionId", "type": "varint" }, { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "y", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "z", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "2": "f32" - }, - "default": "void" - } - ] - }, - { - "name": "hand", - "type": [ - "switch", - { - "compareTo": "mouse", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { - "name": "sneaking", + "name": "onGround", "type": "bool" } ] @@ -5032,6 +4944,15 @@ } ] ], + "packet_held_item_slot": [ + "container", + [ + { + "name": "slotId", + "type": "i16" + } + ] + ], "packet_keep_alive": [ "container", [ @@ -5050,6 +4971,41 @@ } ] ], + "packet_look": [ + "container", + [ + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_name_item": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item": [ + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] + ], "packet_position": [ "container", [ @@ -5091,136 +5047,163 @@ "type": "f32" }, { - "name": "pitch", - "type": "f32" + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_query_block_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + } + ] + ], + "packet_query_entity_nbt": [ + "container", + [ + { + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_look": [ + "packet_recipe_book": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "bookId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "bookOpen", + "type": "bool" }, { - "name": "onGround", + "name": "filterActive", "type": "bool" } ] ], - "packet_flying": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "onGround", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_vehicle_move": [ + "packet_select_trade": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "slot", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "leftPaddle", - "type": "bool" + "name": "primary_effect", + "type": "varint" }, { - "name": "rightPaddle", - "type": "bool" + "name": "secondary_effect", + "type": "varint" } ] ], - "packet_craft_recipe_request": [ + "packet_set_creative_slot": [ "container", [ { - "name": "windowId", - "type": "i8" - }, - { - "name": "recipe", - "type": "string" + "name": "slot", + "type": "i16" }, { - "name": "makeAll", - "type": "bool" + "name": "item", + "type": "slot" } ] ], - "packet_abilities": [ + "packet_set_difficulty": [ "container", [ { - "name": "flags", - "type": "i8" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_block_dig": [ + "packet_settings": [ "container", [ { - "name": "status", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "chatColors", + "type": "bool" }, { - "name": "face", - "type": "i8" + "name": "skinParts", + "type": "u8" + }, + { + "name": "mainHand", + "type": "varint" + }, + { + "name": "disableTextFiltering", + "type": "bool" } ] ], - "packet_entity_action": [ + "packet_spectate": [ "container", [ { - "name": "entityId", - "type": "varint" - }, + "name": "target", + "type": "UUID" + } + ] + ], + "packet_steer_boat": [ + "container", + [ { - "name": "actionId", - "type": "varint" + "name": "leftPaddle", + "type": "bool" }, { - "name": "jumpBoost", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], @@ -5241,60 +5224,80 @@ } ] ], - "packet_displayed_recipe": [ + "packet_tab_complete": [ "container", [ { - "name": "recipeId", + "name": "transactionId", + "type": "varint" + }, + { + "name": "text", "type": "string" } ] ], - "packet_recipe_book": [ + "packet_teleport_confirm": [ "container", [ { - "name": "bookId", + "name": "teleportId", "type": "varint" + } + ] + ], + "packet_transaction": [ + "container", + [ + { + "name": "windowId", + "type": "i8" }, { - "name": "bookOpen", - "type": "bool" + "name": "action", + "type": "i16" }, { - "name": "filterActive", + "name": "accepted", "type": "bool" } ] ], - "packet_resource_pack_receive": [ + "packet_update_command_block": [ "container", [ { - "name": "result", + "name": "location", + "type": "position" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "mode", "type": "varint" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + }, { - "name": "slotId", - "type": "i16" + "name": "flags", + "type": "u8" } ] ], - "packet_set_creative_slot": [ + "packet_update_command_block_minecart": [ "container", [ { - "name": "slot", - "type": "i16" + "name": "entityId", + "type": "varint" }, { - "name": "item", - "type": "slot" + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], @@ -5335,70 +5338,158 @@ "type": "position" }, { - "name": "text1", - "type": "string" + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" }, { - "name": "text2", + "name": "metadata", "type": "string" }, { - "name": "text3", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "text4", - "type": "string" - } - ] - ], - "packet_arm_animation": [ - "container", - [ + "name": "seed", + "type": "varlong" + }, { - "name": "hand", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_block_place": [ - "container", - [ - { - "name": "hand", "type": "varint" }, { - "name": "location", - "type": "position" + "name": "mouse", + "type": "varint" }, { - "name": "direction", - "type": "varint" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "cursorZ", - "type": "f32" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "insideBlock", + "name": "sneaking", "type": "bool" } ] @@ -5412,148 +5503,57 @@ } ] ], - "packet_advancement_tab": [ + "packet_vehicle_move": [ "container", [ { - "name": "action", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet": [ + "packet_window_click": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "generate_structure", - "0x10": "keep_alive", - "0x11": "lock_difficulty", - "0x12": "position", - "0x13": "position_look", - "0x14": "look", - "0x15": "flying", - "0x16": "vehicle_move", - "0x17": "steer_boat", - "0x18": "pick_item", - "0x19": "craft_recipe_request", - "0x1a": "abilities", - "0x1b": "block_dig", - "0x1c": "entity_action", - "0x1d": "steer_vehicle", - "0x1e": "displayed_recipe", - "0x1f": "recipe_book", - "0x20": "name_item", - "0x21": "resource_pack_receive", - "0x22": "advancement_tab", - "0x23": "select_trade", - "0x24": "set_beacon_effect", - "0x25": "held_item_slot", - "0x26": "update_command_block", - "0x27": "update_command_block_minecart", - "0x28": "set_creative_slot", - "0x29": "update_jigsaw_block", - "0x2a": "update_structure_block", - "0x2b": "update_sign", - "0x2c": "arm_animation", - "0x2d": "spectate", - "0x2e": "block_place", - "0x2f": "use_item" - } - } - ] + "name": "windowId", + "type": "u8" }, { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "query_block_nbt": "packet_query_block_nbt", - "set_difficulty": "packet_set_difficulty", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "pick_item": "packet_pick_item", - "name_item": "packet_name_item", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "update_structure_block": "packet_update_structure_block", - "tab_complete": "packet_tab_complete", - "chat": "packet_chat", - "client_command": "packet_client_command", - "settings": "packet_settings", - "transaction": "packet_transaction", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "custom_payload": "packet_custom_payload", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "steer_vehicle": "packet_steer_vehicle", - "displayed_recipe": "packet_displayed_recipe", - "recipe_book": "packet_recipe_book", - "resource_pack_receive": "packet_resource_pack_receive", - "held_item_slot": "packet_held_item_slot", - "set_creative_slot": "packet_set_creative_slot", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_sign": "packet_update_sign", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "advancement_tab": "packet_advancement_tab" - } - } - ] + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "action", + "type": "i16" + }, + { + "name": "mode", + "type": "i8" + }, + { + "name": "item", + "type": "slot" } ] ] diff --git a/data/pc/26.1/protocol.json b/data/pc/26.1/protocol.json index f4f9f4757..bfe880976 100644 --- a/data/pc/26.1/protocol.json +++ b/data/pc/26.1/protocol.json @@ -1,2449 +1,1481 @@ { "types": { - "varint": "native", - "varlong": "native", - "optvarint": "varint", - "pstring": "native", - "buffer": "native", - "u8": "native", - "u16": "native", - "u32": "native", - "u64": "native", - "i8": "native", - "i16": "native", - "i32": "native", - "i64": "native", - "bool": "native", - "f32": "native", - "f64": "native", - "UUID": "native", - "option": "native", - "entityMetadataLoop": "native", - "topBitSetTerminatedArray": "native", - "bitfield": "native", - "bitflags": "native", - "container": "native", - "switch": "native", - "void": "native", - "array": "native", - "restBuffer": "native", - "anonymousNbt": "native", - "anonOptionalNbt": "native", - "registryEntryHolder": "native", - "registryEntryHolderSet": "native", - "lpVec3": "native", - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "vec2f": [ + "ArmorTrimMaterial": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetBase", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "overrideArmorAssets", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + }, + { + "name": "description", + "type": "anonymousNbt" } ] ], - "vec3f": [ + "ArmorTrimPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" + "name": "description", + "type": "anonymousNbt" }, { - "name": "z", - "type": "f32" + "name": "decal", + "type": "bool" } ] ], - "vec4f": [ + "BannerPattern": [ "container", [ { - "name": "x", - "type": "f32" + "name": "assetId", + "type": "string" }, { - "name": "y", - "type": "f32" - }, + "name": "translationKey", + "type": "string" + } + ] + ], + "BannerPatternLayer": [ + "container", + [ { - "name": "z", - "type": "f32" + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "BannerPattern" + } + } + ] }, { - "name": "w", - "type": "f32" + "name": "colorId", + "type": "varint" } ] ], - "vec3f64": [ + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "ContainerID": "varint", + "DamageTypeData": [ "container", [ { - "name": "x", - "type": "f64" + "name": "msgId", + "type": "string" }, { - "name": "y", - "type": "f64" + "name": "scaling", + "type": [ + "mapper", + { + "mappings": { + "0": "never", + "1": "when_caused_by_living_non_player", + "2": "always" + }, + "type": "varint" + } + ] }, { - "name": "z", - "type": "f64" + "name": "exhaustion", + "type": "f32" + }, + { + "name": "effects", + "type": [ + "mapper", + { + "mappings": { + "0": "hurt", + "1": "thorns", + "2": "drowning", + "3": "burning", + "4": "poking", + "5": "freezing" + }, + "type": "varint" + } + ] + }, + { + "name": "deathMessageType", + "type": [ + "mapper", + { + "mappings": { + "0": "default", + "1": "fall_variants", + "2": "intentional_game_design" + }, + "type": "varint" + } + ] } ] ], - "vec3i": [ + "DataComponentMatchers": [ "container", [ { - "name": "x", - "type": "varint" - }, - { - "name": "y", - "type": "varint" + "name": "exactMatchers", + "type": "ExactComponentMatcher" }, { - "name": "z", - "type": "varint" + "name": "partialMatchers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "vec3i32": [ + "DebugStructureInfo": [ "container", [ { - "name": "x", - "type": "i32" + "name": "boundingBoxMin", + "type": "position" }, { - "name": "y", - "type": "i32" + "name": "boundingBoxMax", + "type": "position" }, { - "name": "z", - "type": "i32" + "name": "pieces", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "boundingBoxMin", + "type": "position" + }, + { + "name": "boundingBoxMax", + "type": "position" + }, + { + "name": "isStart", + "type": "bool" + } + ] + ] + } + ] } ] ], - "IDSet": [ - "registryEntryHolderSet", + "DebugSubscriptionDataType": [ + "mapper", { - "base": { - "name": "name", - "type": "string" - }, - "otherwise": { - "name": "ids", - "type": "varint" - } - } - ], - "ContainerID": "varint", - "SlotComponentType": [ - "mapper", - { - "type": "varint", "mappings": { - "0": "custom_data", - "1": "max_stack_size", - "2": "max_damage", - "3": "damage", - "4": "unbreakable", - "5": "use_effects", - "6": "custom_name", - "7": "minimum_attack_charge", - "8": "damage_type", - "9": "item_name", - "10": "item_model", - "11": "lore", - "12": "rarity", - "13": "enchantments", - "14": "can_place_on", - "15": "can_break", - "16": "attribute_modifiers", - "17": "custom_model_data", - "18": "tooltip_display", - "19": "repair_cost", - "20": "creative_slot_lock", - "21": "enchantment_glint_override", - "22": "intangible_projectile", - "23": "food", - "24": "consumable", - "25": "use_remainder", - "26": "use_cooldown", - "27": "damage_resistant", - "28": "tool", - "29": "weapon", - "30": "attack_range", - "31": "enchantable", - "32": "equippable", - "33": "repairable", - "34": "glider", - "35": "tooltip_style", - "36": "death_protection", - "37": "blocks_attacks", - "38": "piercing_weapon", - "39": "kinetic_weapon", - "40": "swing_animation", - "41": "additional_trade_cost", - "42": "stored_enchantments", - "43": "dye", - "44": "dyed_color", - "45": "map_color", - "46": "map_id", - "47": "map_decorations", - "48": "map_post_processing", - "49": "charged_projectiles", - "50": "bundle_contents", - "51": "potion_contents", - "52": "potion_duration_scale", - "53": "suspicious_stew_effects", - "54": "writable_book_content", - "55": "written_book_content", - "56": "trim", - "57": "debug_stick_state", - "58": "entity_data", - "59": "bucket_entity_data", - "60": "block_entity_data", - "61": "instrument", - "62": "provides_trim_material", - "63": "ominous_bottle_amplifier", - "64": "jukebox_playable", - "65": "provides_banner_patterns", - "66": "recipes", - "67": "lodestone_tracker", - "68": "firework_explosion", - "69": "fireworks", - "70": "profile", - "71": "note_block_sound", - "72": "banner_patterns", - "73": "base_color", - "74": "pot_decorations", - "75": "container", - "76": "block_state", - "77": "bees", - "78": "lock", - "79": "container_loot", - "80": "break_sound", - "81": "villager/variant", - "82": "wolf/variant", - "83": "wolf/sound_variant", - "84": "wolf/collar", - "85": "fox/variant", - "86": "salmon/size", - "87": "parrot/variant", - "88": "tropical_fish/pattern", - "89": "tropical_fish/base_color", - "90": "tropical_fish/pattern_color", - "91": "mooshroom/variant", - "92": "rabbit/variant", - "93": "pig/variant", - "94": "pig/sound_variant", - "95": "cow/variant", - "96": "cow/sound_variant", - "97": "chicken/variant", - "98": "chicken/sound_variant", - "99": "zomie_nautilus/variant", - "100": "frog/variant", - "101": "horse/variant", - "102": "painting/variant", - "103": "llama/variant", - "104": "axolotl/variant", - "105": "cat/variant", - "106": "cat/sound_variant", - "107": "cat/collar", - "108": "sheep/color", - "109": "shulker/color" - } + "0": "DedicatedServerTickTime", + "1": "Bees", + "2": "Brains", + "3": "Breezes", + "4": "GoalSelectors", + "5": "EntityPaths", + "6": "EntityBlockIntersections", + "7": "BeeHives", + "8": "Pois", + "9": "RedstoneWireOrientations", + "10": "VillageSections", + "11": "Raids", + "12": "Structures", + "13": "GameEventListeners", + "14": "NeighborUpdates", + "15": "GameEvents" + }, + "type": "varint" } ], - "SlotComponent": [ + "DebugSubscriptionEvent": [ "container", [ { "name": "type", - "type": "SlotComponentType" + "type": "DebugSubscriptionDataType" }, { - "name": "data", + "name": "value", "type": [ "switch", { "compareTo": "type", "fields": { - "custom_data": "anonymousNbt", - "max_stack_size": "varint", - "max_damage": "varint", - "damage": "varint", - "unbreakable": "void", - "use_effects": [ + "BeeHives": [ "container", [ { - "name": "can_sprint", - "type": "bool" + "name": "type", + "type": "varint" }, { - "name": "interact_vibrations", - "type": "bool" + "name": "occupantCount", + "type": "varint" }, { - "name": "speed_multiplier", - "type": "f32" + "name": "honeyLevel", + "type": "varint" + }, + { + "name": "sedated", + "type": "bool" } ] ], - "custom_name": "anonymousNbt", - "minimum_attack_charge": "f32", - "damage_type": [ + "Bees": [ "container", [ { - "name": "hasHolder", - "type": "bool" + "name": "hivePos", + "type": [ + "option", + "position" + ] }, { - "name": "damageType", + "name": "flowerPos", "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "damageTypeId", - "otherwise": { - "name": "data", - "type": "DamageTypeData" - } - } - ], - "false": "string" - } - } + "option", + "position" ] - } - ] - ], - "item_name": "anonymousNbt", - "item_model": "string", - "lore": [ - "array", - { - "countType": "varint", - "type": "anonymousNbt" - } - ], - "rarity": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "common", - "1": "uncommon", - "2": "rare", - "3": "epic" - } - } - ], - "enchantments": [ - "container", - [ + }, { - "name": "enchantments", + "name": "travelTicks", + "type": "varint" + }, + { + "name": "blacklistedHives", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] + "type": "position" } ] } ] ], - "stored_enchantments": [ + "Brains": [ "container", [ { - "name": "enchantments", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "level", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "can_place_on": [ - "container", - [ + "name": "name", + "type": "string" + }, { - "name": "predicates", + "name": "profession", + "type": "string" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "health", + "type": "f32" + }, + { + "name": "maxHealth", + "type": "f32" + }, + { + "name": "inventory", + "type": "string" + }, + { + "name": "wantsGolem", + "type": "bool" + }, + { + "name": "angerLevel", + "type": "i32" + }, + { + "name": "activities", "type": [ "array", { "countType": "varint", - "type": "ItemBlockPredicate" + "type": "string" } ] - } - ] - ], - "can_break": [ - "container", - [ + }, { - "name": "predicates", + "name": "behaviors", "type": [ "array", { "countType": "varint", - "type": "ItemBlockPredicate" - } - ] - } - ] - ], - "attribute_modifiers": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "typeId", - "type": "varint" - }, - { - "name": "name", "type": "string" - }, - { - "name": "value", - "type": "f64" - }, - { - "name": "operation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "add", - "1": "multiply_base", - "2": "multiply_total" - } - } - ] - }, - { - "name": "slot", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "any", - "1": "main_hand", - "2": "off_hand", - "3": "hand", - "4": "feet", - "5": "legs", - "6": "chest", - "7": "head", - "8": "armor", - "9": "body", - "10": "saddle" - } - } - ] - }, - { - "name": "display", - "type": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "default", - "1": "hidden", - "2": "override" - } - } - ] - }, - { - "name": "component", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "override": "anonymousNbt" - } - } - ] - } - ] - ] } ] - ] - } - ], - "custom_model_data": [ - "container", - [ + }, { - "name": "floats", + "name": "memories", "type": [ "array", { "countType": "varint", - "type": "f32" + "type": "string" } ] }, { - "name": "flags", + "name": "gossips", "type": [ "array", { "countType": "varint", - "type": "bool" + "type": "string" } ] }, { - "name": "strings", + "name": "pois", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "position" } ] }, { - "name": "colors", + "name": "potentialPois", "type": [ "array", { "countType": "varint", - "type": "i32" + "type": "position" } ] } ] ], - "tooltip_display": [ + "Breezes": [ "container", [ { - "name": "hideTooltip", - "type": "bool" + "name": "attackTarget", + "type": [ + "option", + "varint" + ] }, { - "name": "hiddenComponents", + "name": "jumpTarget", "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } + "option", + "position" ] } ] ], - "repair_cost": "varint", - "creative_slot_lock": "void", - "enchantment_glint_override": "bool", - "intangible_projectile": "void", - "blocks_attacks": [ + "DedicatedServerTickTime": "void", + "EntityBlockIntersections": [ "container", [ { - "name": "blockDelaySeconds", - "type": "f32" + "name": "id", + "type": "varint" + } + ] + ], + "EntityPaths": [ + "container", + [ + { + "name": "path", + "type": "Path" }, { - "name": "disableCooldownScale", + "name": "maxNodeDistance", "type": "f32" - }, + } + ] + ], + "GameEventListeners": [ + "container", + [ { - "name": "damageReductions", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "horizontalBlockingAngle", - "type": "f32" - }, - { - "name": "type", - "type": [ - "option", - "IDSet" - ] - }, - { - "name": "base", - "type": "f32" - }, - { - "name": "factor", - "type": "f32" - } - ] - ] - } - ] + "name": "listenerRadius", + "type": "varint" + } + ] + ], + "GameEvents": [ + "container", + [ + { + "name": "event", + "type": "varint" }, { - "name": "itemDamage", - "type": [ - "container", - [ - { - "name": "threshold", - "type": "f32" - }, - { - "name": "base", - "type": "f32" - }, - { - "name": "factor", - "type": "f32" - } - ] - ] - }, - { - "name": "bypassedBy", - "type": [ - "option", - "string" - ] - }, - { - "name": "blockSound", - "type": [ - "option", - "ItemSoundHolder" - ] - }, - { - "name": "disableSound", - "type": [ - "option", - "ItemSoundHolder" - ] + "name": "pos", + "type": "vec3f64" } ] ], - "food": [ + "GoalSelectors": [ "container", [ { - "name": "nutrition", + "name": "priority", "type": "varint" }, { - "name": "saturationModifier", - "type": "f32" + "name": "running", + "type": "bool" }, { - "name": "canAlwaysEat", - "type": "bool" + "name": "name", + "type": "string" } ] ], - "consumable": [ + "NeighborUpdates": [ "container", [ { - "name": "consume_seconds", - "type": "f32" - }, - { - "name": "animation", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "none", - "1": "eat", - "2": "drink", - "3": "block", - "4": "bow", - "5": "spear", - "6": "crossbow", - "7": "spyglass", - "8": "toot_horn", - "9": "brush", - "10": "bundle" - } - } - ] - }, - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "makes_particles", - "type": "bool" - }, - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemConsumeEffect" - } - ] + "name": "pos", + "type": "position" } ] ], - "use_remainder": "Slot", - "use_cooldown": [ + "Pois": [ "container", [ { - "name": "seconds", - "type": "f32" + "name": "pos", + "type": "position" }, { - "name": "cooldownGroup", - "type": [ - "option", - "string" - ] + "name": "poiType", + "type": "varint" + }, + { + "name": "freeTicketCount", + "type": "varint" } ] ], - "damage_resistant": "string", - "tool": [ + "Raids": [ "container", [ { - "name": "rules", + "name": "positions", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "blocks", - "type": "IDSet" - }, - { - "name": "speed", - "type": [ - "option", - "f32" - ] - }, - { - "name": "correctDropForBlocks", - "type": [ - "option", - "bool" - ] - } - ] - ] + "type": "position" } ] - }, - { - "name": "defaultMiningSpeed", - "type": "f32" - }, - { - "name": "damagePerBlock", - "type": "varint" - }, - { - "name": "canDestroyBlocksInCreative", - "type": "bool" } ] ], - "weapon": [ + "RedstoneWireOrientations": [ "container", [ { - "name": "itemDamagePerAttack", + "name": "index", "type": "varint" - }, - { - "name": "disableBlockingForSeconds", - "type": "f32" - } - ] - ], - "attack_range": [ - "container", - [ - { - "name": "minRange", - "type": "f32" - }, - { - "name": "maxRange", - "type": "f32" - }, - { - "name": "minCreativeRange", - "type": "f32" - }, - { - "name": "maxCreativeRange", - "type": "f32" - }, - { - "name": "hitboxMargin", - "type": "f32" - }, - { - "name": "mobFactor", - "type": "f32" } ] ], - "enchantable": "varint", - "equippable": [ + "Structures": [ "container", [ { - "name": "slot", + "name": "structures", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0": "main_hand", - "1": "off_hand", - "2": "feet", - "3": "legs", - "4": "chest", - "5": "head", - "6": "body", - "7": "saddle" - } + "countType": "varint", + "type": "DebugStructureInfo" } ] - }, - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "model", - "type": [ - "option", - "string" - ] - }, - { - "name": "cameraOverlay", - "type": [ - "option", - "string" - ] - }, - { - "name": "allowedEntities", - "type": [ - "option", - "IDSet" - ] - }, - { - "name": "dispensable", - "type": "bool" - }, - { - "name": "swappable", - "type": "bool" - }, - { - "name": "damageable", - "type": "bool" - }, - { - "name": "equipOnInteract", - "type": "bool" - }, - { - "name": "shearable", - "type": "bool" - }, - { - "name": "shearingSound", - "type": "ItemSoundHolder" - } - ] - ], - "repairable": [ - "container", - [ - { - "name": "items", - "type": "IDSet" - } - ] - ], - "glider": "void", - "tooltip_style": "string", - "death_protection": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemConsumeEffect" - } - ] - } - ] - ], - "piercing_weapon": [ - "container", - [ - { - "name": "dealsKnockback", - "type": "bool" - }, - { - "name": "dismounts", - "type": "bool" - }, - { - "name": "sound", - "type": [ - "option", - "ItemSoundHolder" - ] - }, - { - "name": "hitSound", - "type": [ - "option", - "ItemSoundHolder" - ] - } - ] - ], - "kinetic_weapon": [ - "container", - [ - { - "name": "contactCooldownTicks", - "type": "varint" - }, - { - "name": "delayTicks", - "type": "varint" - }, - { - "name": "dismountConditions", - "type": [ - "option", - "KineticWeaponCondition" - ] - }, - { - "name": "knockbackConditions", - "type": [ - "option", - "KineticWeaponCondition" - ] - }, - { - "name": "damageConditions", - "type": [ - "option", - "KineticWeaponCondition" - ] - }, - { - "name": "forwardMovement", - "type": "f32" - }, - { - "name": "damageMultiplier", - "type": "f32" - }, - { - "name": "sound", - "type": [ - "option", - "ItemSoundHolder" - ] - }, - { - "name": "hitSound", - "type": [ - "option", - "ItemSoundHolder" - ] - } - ] - ], - "swing_animation": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "none", - "1": "whack", - "2": "stab" - } - } - ] - }, - { - "name": "duration", - "type": "varint" - } - ] - ], - "additional_trade_cost": "varint", - "dye": "DyeColor", - "dyed_color": "i32", - "map_color": "i32", - "map_id": "varint", - "map_decorations": "anonymousNbt", - "map_post_processing": "varint", - "potion_duration_scale": "f32", - "charged_projectiles": [ - "container", - [ - { - "name": "projectiles", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "bundle_contents": [ - "container", - [ - { - "name": "contents", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "potion_contents": [ - "container", - [ - { - "name": "potionId", - "type": [ - "option", - "varint" - ] - }, - { - "name": "customColor", - "type": [ - "option", - "i32" - ] - }, - { - "name": "customEffects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemPotionEffect" - } - ] - }, - { - "name": "customName", - "type": [ - "option", - "string" - ] } ] ], - "suspicious_stew_effects": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", + "VillageSections": "void" + } + } + ] + } + ] + ], + "DebugSubscriptionUpdate": [ + "container", + [ + { + "name": "type", + "type": "DebugSubscriptionDataType" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "default": [ + "container", + [ + { + "name": "payload", + "type": [ + "option", + [ + "switch", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "effect", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "writable_book_content": [ - "container", - [ - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemBookPage" - } - ] - } - ] - ], - "written_book_content": [ - "container", - [ - { - "name": "rawTitle", - "type": "string" - }, - { - "name": "filteredTitle", - "type": [ - "option", - "string" - ] - }, - { - "name": "author", - "type": "string" - }, - { - "name": "generation", - "type": "varint" - }, - { - "name": "pages", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemWrittenBookPage" - } - ] - }, - { - "name": "resolved", - "type": "bool" - } - ] - ], - "trim": [ - "container", - [ - { - "name": "material", - "type": [ - "registryEntryHolder", - { - "baseName": "materialId", - "otherwise": { - "name": "data", - "type": "ArmorTrimMaterial" - } - } - ] - }, - { - "name": "pattern", - "type": [ - "registryEntryHolder", - { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "ArmorTrimPattern" - } - } - ] - } - ] - ], - "debug_stick_state": "anonymousNbt", - "entity_data": [ - "container", - [ - { - "name": "type", - "type": "varint" - }, - { - "name": "data", - "type": "anonymousNbt" - } - ] - ], - "block_entity_data": [ - "container", - [ - { - "name": "type", - "type": "varint" - }, - { - "name": "data", - "type": "anonymousNbt" - } - ] - ], - "bucket_entity_data": "anonymousNbt", - "instrument": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "instrumentId", - "otherwise": { - "name": "data", - "type": "InstrumentData" - } - } - ], - "false": "string" - } - } - ] - } - ] - ], - "provides_trim_material": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "material", - "type": [ - "switch", - { - "compareTo": "hasHolder", + "compareTo": "type", "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "materialId", - "otherwise": { - "name": "data", - "type": "ArmorTrimMaterial" + "BeeHives": [ + "container", + [ + { + "name": "type", + "type": "varint" + }, + { + "name": "occupantCount", + "type": "varint" + }, + { + "name": "honeyLevel", + "type": "varint" + }, + { + "name": "sedated", + "type": "bool" } - } + ] ], - "false": "string" - } - } - ] - } - ] - ], - "ominous_bottle_amplifier": "varint", - "jukebox_playable": [ - "container", - [ - { - "name": "hasHolder", - "type": "bool" - }, - { - "name": "song", - "type": [ - "switch", - { - "compareTo": "hasHolder", - "fields": { - "true": [ - "registryEntryHolder", - { - "baseName": "songId", - "otherwise": { - "name": "data", - "type": "JukeboxSongData" + "Bees": [ + "container", + [ + { + "name": "hivePos", + "type": [ + "option", + "position" + ] + }, + { + "name": "flowerPos", + "type": [ + "option", + "position" + ] + }, + { + "name": "travelTicks", + "type": "varint" + }, + { + "name": "blacklistedHives", + "type": [ + "array", + { + "countType": "varint", + "type": "position" + } + ] } - } + ] ], - "false": "string" - } - } - ] - } - ] - ], - "provides_banner_patterns": "string", - "recipes": "anonymousNbt", - "lodestone_tracker": [ - "container", - [ - { - "name": "globalPosition", - "type": [ - "option", - "GlobalPos" - ] - }, - { - "name": "tracked", - "type": "bool" - } - ] - ], - "firework_explosion": "ItemFireworkExplosion", - "fireworks": [ - "container", - [ - { - "name": "flightDuration", - "type": "varint" - }, - { - "name": "explosions", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemFireworkExplosion" - } - ] - } - ] - ], - "profile": "ResolvableProfile", - "note_block_sound": "string", - "banner_patterns": [ - "container", - [ - { - "name": "layers", - "type": [ - "array", - { - "countType": "varint", - "type": "BannerPatternLayer" - } - ] - } - ] - ], - "base_color": "DyeColor", - "pot_decorations": [ - "container", - [ - { - "name": "decorations", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "container": [ - "container", - [ - { - "name": "contents", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] - } - ] - ], - "block_state": [ - "container", - [ - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] - } - ] - } - ] - ], - "bees": [ - "container", - [ - { - "name": "bees", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "nbtData", - "type": "anonymousNbt" - }, - { - "name": "ticksInHive", - "type": "varint" - }, - { - "name": "minTicksInHive", - "type": "varint" - } - ] - ] - } - ] - } - ] - ], - "lock": "anonymousNbt", - "container_loot": "anonymousNbt", - "break_sound": "ItemSoundHolder", - "villager/variant": "varint", - "wolf/variant": "varint", - "wolf/sound_variant": "varint", - "wolf/collar": "DyeColor", - "fox/variant": "varint", - "salmon/size": "varint", - "parrot/variant": "varint", - "tropical_fish/pattern": "varint", - "tropical_fish/base_color": "DyeColor", - "tropical_fish/pattern_color": "DyeColor", - "mooshroom/variant": "varint", - "rabbit/variant": "varint", - "pig/variant": "varint", - "pig/sound_variant": "varint", - "cow/variant": "varint", - "cow/sound_variant": "varint", - "chicken/variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "string" - } - } - ], - "chicken/sound_variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "string" - } - } - ], - "zombie_nautilus/variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "variantData", - "type": "string" - } - } - ], - "frog/variant": "varint", - "horse/variant": "varint", - "painting/variant": [ - "registryEntryHolder", - { - "baseName": "variantId", - "otherwise": { - "name": "data", - "type": "EntityMetadataPaintingVariant" - } - } - ], - "llama/variant": "varint", - "axolotl/variant": "varint", - "cat/variant": "varint", - "cat/sound_variant": "varint", - "cat/collar": "DyeColor", - "sheep/color": "DyeColor", - "shulker/color": "DyeColor" - } - } - ] - } - ] - ], - "ItemSoundEvent": [ - "container", - [ - { - "name": "soundName", - "type": "string" - }, - { - "name": "fixedRange", - "type": [ - "option", - "f32" - ] - } - ] - ], - "ItemSoundHolder": [ - "registryEntryHolder", - { - "baseName": "soundId", - "otherwise": { - "name": "data", - "type": "ItemSoundEvent" - } - } - ], - "ItemFireworkExplosion": [ - "container", - [ - { - "name": "shape", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "small_ball", - "1": "large_ball", - "2": "star", - "3": "creeper", - "4": "burst" - } - } - ] - }, - { - "name": "colors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "fadeColors", - "type": [ - "array", - { - "countType": "varint", - "type": "i32" - } - ] - }, - { - "name": "hasTrail", - "type": "bool" - }, - { - "name": "hasTwinkle", - "type": "bool" - } - ] - ], - "ItemEffectDetail": [ - "container", - [ - { - "name": "amplifier", - "type": "varint" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "ambient", - "type": "bool" - }, - { - "name": "showParticles", - "type": "bool" - }, - { - "name": "showIcon", - "type": "bool" - }, - { - "name": "hiddenEffect", - "type": [ - "option", - "ItemEffectDetail" - ] - } - ] - ], - "ItemPotionEffect": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "details", - "type": "ItemEffectDetail" - } - ] - ], - "ItemBlockProperty": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "isExactMatch", - "type": "bool" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "isExactMatch", - "fields": { - "true": [ - "container", - [ - { - "name": "exactValue", - "type": "string" - } - ] - ], - "false": [ - "container", - [ - { - "name": "minValue", - "type": "string" - }, - { - "name": "maxValue", - "type": "string" - } - ] + "Brains": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "profession", + "type": "string" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "health", + "type": "f32" + }, + { + "name": "maxHealth", + "type": "f32" + }, + { + "name": "inventory", + "type": "string" + }, + { + "name": "wantsGolem", + "type": "bool" + }, + { + "name": "angerLevel", + "type": "i32" + }, + { + "name": "activities", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "behaviors", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "memories", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "gossips", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "pois", + "type": [ + "array", + { + "countType": "varint", + "type": "position" + } + ] + }, + { + "name": "potentialPois", + "type": [ + "array", + { + "countType": "varint", + "type": "position" + } + ] + } + ] + ], + "Breezes": [ + "container", + [ + { + "name": "attackTarget", + "type": [ + "option", + "varint" + ] + }, + { + "name": "jumpTarget", + "type": [ + "option", + "position" + ] + } + ] + ], + "DedicatedServerTickTime": "void", + "EntityBlockIntersections": [ + "container", + [ + { + "name": "id", + "type": "varint" + } + ] + ], + "EntityPaths": [ + "container", + [ + { + "name": "path", + "type": "Path" + }, + { + "name": "maxNodeDistance", + "type": "f32" + } + ] + ], + "GameEventListeners": [ + "container", + [ + { + "name": "listenerRadius", + "type": "varint" + } + ] + ], + "GameEvents": [ + "container", + [ + { + "name": "event", + "type": "varint" + }, + { + "name": "pos", + "type": "vec3f64" + } + ] + ], + "GoalSelectors": [ + "container", + [ + { + "name": "goals", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "priority", + "type": "varint" + }, + { + "name": "running", + "type": "bool" + }, + { + "name": "name", + "type": "string" + } + ] + ] + } + ] + } + ] + ], + "NeighborUpdates": [ + "container", + [ + { + "name": "pos", + "type": "position" + } + ] + ], + "Pois": [ + "container", + [ + { + "name": "pos", + "type": "position" + }, + { + "name": "poiType", + "type": "varint" + }, + { + "name": "freeTicketCount", + "type": "varint" + } + ] + ], + "Raids": [ + "container", + [ + { + "name": "positions", + "type": [ + "array", + { + "countType": "varint", + "type": "position" + } + ] + } + ] + ], + "RedstoneWireOrientations": [ + "container", + [ + { + "name": "index", + "type": "varint" + } + ] + ], + "Structures": [ + "container", + [ + { + "name": "structures", + "type": [ + "array", + { + "countType": "varint", + "type": "DebugStructureInfo" + } + ] + } + ] + ], + "VillageSections": "void" + } + } + ] + ] + } ] + ], + "fields": { + "DedicatedServerTickTime": "void" } } ] } ] ], - "ExactComponentMatcher": [ - "array", + "DyeColor": [ + "mapper", { - "countType": "varint", - "type": "SlotComponent" - } - ], - "DataComponentMatchers": [ - "container", - [ - { - "name": "exactMatchers", - "type": "ExactComponentMatcher" - }, - { - "name": "partialMatchers", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ], - "ItemBlockPredicate": [ - "container", - [ - { - "name": "blockSet", - "type": [ - "option", - [ - "registryEntryHolderSet", - { - "base": { - "name": "name", - "type": "string" - }, - "otherwise": { - "name": "blockIds", - "type": "varint" - } - } - ] - ] - }, - { - "name": "properties", - "type": [ - "option", - [ - "array", - { - "countType": "varint", - "type": "ItemBlockProperty" - } - ] - ] - }, - { - "name": "nbt", - "type": "anonOptionalNbt" - }, - { - "name": "components", - "type": "DataComponentMatchers" - } - ] - ], - "ItemBookPage": [ - "container", - [ - { - "name": "content", - "type": "string" + "mappings": { + "0": "white", + "1": "orange", + "2": "magenta", + "3": "light_blue", + "4": "yellow", + "5": "lime", + "6": "pink", + "7": "gray", + "8": "light_gray", + "9": "cyan", + "10": "purple", + "11": "blue", + "12": "brown", + "13": "green", + "14": "red", + "15": "black" }, - { - "name": "filteredContent", - "type": [ - "option", - "string" - ] - } - ] + "type": "varint" + } ], - "ItemWrittenBookPage": [ + "EntityMetadataPaintingVariant": [ "container", [ { - "name": "content", - "type": "anonymousNbt" + "name": "width", + "type": "i32" }, { - "name": "filteredContent", - "type": "anonOptionalNbt" - } - ] - ], - "ItemConsumeEffect": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "apply_effects", - "1": "remove_effects", - "2": "clear_all_effects", - "3": "teleport_randomly", - "4": "play_sound" - } - } - ] + "name": "height", + "type": "i32" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "apply_effects": [ - "container", - [ - { - "name": "effects", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemPotionEffect" - } - ] - }, - { - "name": "probability", - "type": "f32" - } - ] - ], - "remove_effects": [ - "container", - [ - { - "name": "effects", - "type": "IDSet" - } - ] - ], - "clear_all_effects": "void", - "teleport_randomly": [ - "container", - [ - { - "name": "diameter", - "type": "f32" - } - ] - ], - "play_sound": [ - "container", - [ - { - "name": "sound", - "type": "ItemSoundHolder" - } - ] - ] - } - } + "name": "assetId", + "type": "string" + }, + { + "name": "title", + "type": [ + "option", + "anonymousNbt" + ] + }, + { + "name": "author", + "type": [ + "option", + "anonymousNbt" ] } ] ], - "ArmorTrimMaterial": [ + "ExactComponentMatcher": [ + "array", + { + "countType": "varint", + "type": "SlotComponent" + } + ], + "GameProfile": [ "container", [ { - "name": "assetBase", + "name": "uuid", + "type": "UUID" + }, + { + "name": "name", "type": "string" }, { - "name": "overrideArmorAssets", + "name": "properties", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] - ] + "type": "GameProfileProperty" } ] - }, - { - "name": "description", - "type": "anonymousNbt" } ] ], - "ArmorTrimPattern": [ + "GameProfileProperty": [ "container", [ { - "name": "assetId", + "name": "name", "type": "string" }, { - "name": "description", - "type": "anonymousNbt" + "name": "value", + "type": "string" }, { - "name": "decal", - "type": "bool" + "name": "signature", + "type": [ + "option", + "string" + ] } ] ], - "InstrumentData": [ + "GameRule": [ "container", [ { - "name": "soundEvent", - "type": "ItemSoundHolder" - }, - { - "name": "useDuration", - "type": "f32" - }, - { - "name": "range", - "type": "f32" + "name": "name", + "type": "string" }, { - "name": "description", - "type": "anonymousNbt" + "name": "value", + "type": "string" } ] ], - "JukeboxSongData": [ + "GlobalPos": [ "container", [ { - "name": "soundEvent", - "type": "ItemSoundHolder" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "lengthInSeconds", - "type": "f32" + "name": "dimensionName", + "type": "string" }, { - "name": "comparatorOutput", - "type": "varint" + "name": "location", + "type": "position" } ] ], - "BannerPattern": [ + "HashedSlot": [ "container", [ { - "name": "assetId", - "type": "string" + "name": "itemId", + "type": "varint" }, { - "name": "translationKey", - "type": "string" - } - ] - ], - "BannerPatternLayer": [ - "container", - [ + "name": "itemCount", + "type": "varint" + }, { - "name": "pattern", + "name": "components", "type": [ - "registryEntryHolder", + "array", { - "baseName": "patternId", - "otherwise": { - "name": "data", - "type": "BannerPattern" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + }, + { + "name": "hash", + "type": "i32" + } + ] + ] } ] }, { - "name": "colorId", - "type": "varint" + "name": "removeComponents", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] } ] ], - "DamageTypeData": [ + "IDSet": [ + "registryEntryHolderSet", + { + "base": { + "name": "name", + "type": "string" + }, + "otherwise": { + "name": "ids", + "type": "varint" + } + } + ], + "InstrumentData": [ "container", [ { - "name": "msgId", - "type": "string" + "name": "soundEvent", + "type": "ItemSoundHolder" }, { - "name": "scaling", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "never", - "1": "when_caused_by_living_non_player", - "2": "always" - } - } - ] + "name": "useDuration", + "type": "f32" }, { - "name": "exhaustion", + "name": "range", "type": "f32" }, { - "name": "effects", + "name": "description", + "type": "anonymousNbt" + } + ] + ], + "ItemBlockPredicate": [ + "container", + [ + { + "name": "blockSet", "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "hurt", - "1": "thorns", - "2": "drowning", - "3": "burning", - "4": "poking", - "5": "freezing" + "option", + [ + "registryEntryHolderSet", + { + "base": { + "name": "name", + "type": "string" + }, + "otherwise": { + "name": "blockIds", + "type": "varint" + } } - } + ] ] }, { - "name": "deathMessageType", + "name": "properties", "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "default", - "1": "fall_variants", - "2": "intentional_game_design" + "option", + [ + "array", + { + "countType": "varint", + "type": "ItemBlockProperty" } - } + ] ] + }, + { + "name": "nbt", + "type": "anonOptionalNbt" + }, + { + "name": "components", + "type": "DataComponentMatchers" } ] ], - "KineticWeaponCondition": [ + "ItemBlockProperty": [ "container", [ { - "name": "maxDurationTicks", - "type": "varint" + "name": "name", + "type": "string" }, { - "name": "minSpeed", - "type": "f32" + "name": "isExactMatch", + "type": "bool" }, { - "name": "minRelativeSpeed", - "type": "f32" + "name": "value", + "type": [ + "switch", + { + "compareTo": "isExactMatch", + "fields": { + "false": [ + "container", + [ + { + "name": "minValue", + "type": "string" + }, + { + "name": "maxValue", + "type": "string" + } + ] + ], + "true": [ + "container", + [ + { + "name": "exactValue", + "type": "string" + } + ] + ] + } + } + ] } ] ], - "DyeColor": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "white", - "1": "orange", - "2": "magenta", - "3": "light_blue", - "4": "yellow", - "5": "lime", - "6": "pink", - "7": "gray", - "8": "light_gray", - "9": "cyan", - "10": "purple", - "11": "blue", - "12": "brown", - "13": "green", - "14": "red", - "15": "black" - } - } - ], - "UntrustedSlotComponent": [ + "ItemBookPage": [ "container", [ { - "name": "type", - "type": "SlotComponentType" + "name": "content", + "type": "string" }, { - "name": "data", - "type": "ByteArray" + "name": "filteredContent", + "type": [ + "option", + "string" + ] } ] ], - "UntrustedSlot": [ + "ItemConsumeEffect": [ "container", [ { - "name": "itemCount", - "type": "varint" + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "apply_effects", + "1": "remove_effects", + "2": "clear_all_effects", + "3": "teleport_randomly", + "4": "play_sound" + }, + "type": "varint" + } + ] }, { "anon": true, "type": [ "switch", { - "compareTo": "itemCount", + "compareTo": "type", "fields": { - "0": "void", - "false": "void" - }, - "default": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "removedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "UntrustedSlotComponent" - } - ] - }, - { - "name": "removeComponents", - "type": [ - "array", - { - "count": "removedComponentCount", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] - } - ] - } + "apply_effects": [ + "container", + [ + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemPotionEffect" + } + ] + }, + { + "name": "probability", + "type": "f32" + } + ] + ], + "clear_all_effects": "void", + "play_sound": [ + "container", + [ + { + "name": "sound", + "type": "ItemSoundHolder" + } + ] + ], + "remove_effects": [ + "container", + [ + { + "name": "effects", + "type": "IDSet" + } + ] + ], + "teleport_randomly": [ + "container", + [ + { + "name": "diameter", + "type": "f32" + } + ] ] - ] + } } ] } ] ], - "Slot": [ + "ItemEffectDetail": [ "container", [ { - "name": "itemCount", + "name": "amplifier", "type": "varint" }, { - "anon": true, - "type": [ - "switch", - { - "compareTo": "itemCount", - "fields": { - "0": "void" - }, - "default": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "addedComponentCount", - "type": "varint" - }, - { - "name": "removedComponentCount", - "type": "varint" - }, - { - "name": "components", - "type": [ - "array", - { - "count": "addedComponentCount", - "type": "SlotComponent" - } - ] - }, - { - "name": "removeComponents", - "type": [ - "array", - { - "count": "removedComponentCount", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] - } - ] - } - ] - ] - } + "name": "duration", + "type": "varint" + }, + { + "name": "ambient", + "type": "bool" + }, + { + "name": "showParticles", + "type": "bool" + }, + { + "name": "showIcon", + "type": "bool" + }, + { + "name": "hiddenEffect", + "type": [ + "option", + "ItemEffectDetail" ] } ] ], - "HashedSlot": [ + "ItemFireworkExplosion": [ "container", [ { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" + "name": "shape", + "type": [ + "mapper", + { + "mappings": { + "0": "small_ball", + "1": "large_ball", + "2": "star", + "3": "creeper", + "4": "burst" + }, + "type": "varint" + } + ] }, { - "name": "components", + "name": "colors", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - }, - { - "name": "hash", - "type": "i32" - } - ] - ] + "type": "i32" } ] }, { - "name": "removeComponents", + "name": "fadeColors", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": "SlotComponentType" - } - ] - ] + "type": "i32" } ] + }, + { + "name": "hasTrail", + "type": "bool" + }, + { + "name": "hasTwinkle", + "type": "bool" } ] ], - "RespawnData": [ + "ItemPotionEffect": [ "container", [ { - "name": "globalPos", - "type": "GlobalPos" + "name": "id", + "type": "varint" }, { - "name": "yaw", - "type": "f32" + "name": "details", + "type": "ItemEffectDetail" + } + ] + ], + "ItemSoundEvent": [ + "container", + [ + { + "name": "soundName", + "type": "string" }, { - "name": "pitch", - "type": "f32" + "name": "fixedRange", + "type": [ + "option", + "f32" + ] } ] ], - "GlobalPos": [ + "ItemSoundHolder": [ + "registryEntryHolder", + { + "baseName": "soundId", + "otherwise": { + "name": "data", + "type": "ItemSoundEvent" + } + } + ], + "ItemWrittenBookPage": [ "container", [ { - "name": "dimensionName", - "type": "string" + "name": "content", + "type": "anonymousNbt" }, { - "name": "location", - "type": "position" + "name": "filteredContent", + "type": "anonOptionalNbt" } ] ], - "DebugStructureInfo": [ + "JukeboxSongData": [ "container", [ { - "name": "boundingBoxMin", - "type": "position" + "name": "soundEvent", + "type": "ItemSoundHolder" }, { - "name": "boundingBoxMax", - "type": "position" + "name": "description", + "type": "anonymousNbt" }, { - "name": "pieces", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "boundingBoxMin", - "type": "position" - }, - { - "name": "boundingBoxMax", - "type": "position" - }, - { - "name": "isStart", - "type": "bool" - } - ] - ] - } - ] + "name": "lengthInSeconds", + "type": "f32" + }, + { + "name": "comparatorOutput", + "type": "varint" + } + ] + ], + "KineticWeaponCondition": [ + "container", + [ + { + "name": "maxDurationTicks", + "type": "varint" + }, + { + "name": "minSpeed", + "type": "f32" + }, + { + "name": "minRelativeSpeed", + "type": "f32" } ] ], @@ -2471,7 +1503,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "blocked", "1": "open", @@ -2499,7 +1530,8 @@ "23": "cocoa", "24": "damage_cautious", "25": "danger_trapdoor" - } + }, + "type": "varint" } ] }, @@ -2509,1339 +1541,1903 @@ } ] ], - "PathDebugData": [ - "container", - [ - { - "name": "openSet", - "type": [ - "array", - { - "countType": "varint", - "type": "Node" - } - ] - }, - { - "name": "closedSet", - "type": [ - "array", - { - "countType": "varint", - "type": "Node" - } - ] - }, - { - "name": "targetNodes", - "type": [ - "array", - { - "countType": "varint", - "type": "Node" - } - ] - } - ] - ], - "Path": [ + "PartialResolvableProfile": [ "container", [ { - "name": "reached", - "type": "bool" - }, - { - "name": "nextNodeIndex", - "type": "i32" - }, - { - "name": "target", - "type": "position" - }, - { - "name": "nodes", + "name": "name", "type": [ - "array", - { - "countType": "varint", - "type": "Node" - } + "option", + "string" ] }, { - "name": "debugData", - "type": "PathDebugData" - } - ] - ], - "DebugSubscriptionDataType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "DedicatedServerTickTime", - "1": "Bees", - "2": "Brains", - "3": "Breezes", - "4": "GoalSelectors", - "5": "EntityPaths", - "6": "EntityBlockIntersections", - "7": "BeeHives", - "8": "Pois", - "9": "RedstoneWireOrientations", - "10": "VillageSections", - "11": "Raids", - "12": "Structures", - "13": "GameEventListeners", - "14": "NeighborUpdates", - "15": "GameEvents" + "name": "uuid", + "type": [ + "option", + "UUID" + ] + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": "GameProfileProperty" + } + ] } - } + ] ], - "DebugSubscriptionUpdate": [ + "Particle": [ "container", [ { "name": "type", - "type": "DebugSubscriptionDataType" + "type": [ + "mapper", + { + "mappings": { + "0": "angry_villager", + "1": "block", + "2": "block_marker", + "3": "bubble", + "4": "cloud", + "5": "copper_fire_flame", + "6": "crit", + "7": "damage_indicator", + "8": "dragon_breath", + "9": "dripping_lava", + "10": "falling_lava", + "11": "landing_lava", + "12": "dripping_water", + "13": "falling_water", + "14": "dust", + "15": "dust_color_transition", + "16": "effect", + "17": "elder_guardian", + "18": "enchanted_hit", + "19": "enchant", + "20": "end_rod", + "21": "entity_effect", + "22": "explosion_emitter", + "23": "explosion", + "24": "gust", + "25": "small_gust", + "26": "gust_emitter_large", + "27": "gust_emitter_small", + "28": "sonic_boom", + "29": "falling_dust", + "30": "firework", + "31": "fishing", + "32": "flame", + "33": "infested", + "34": "cherry_leaves", + "35": "pale_oak_leaves", + "36": "tinted_leaves", + "37": "sculk_soul", + "38": "sculk_charge", + "39": "sculk_charge_pop", + "40": "soul_fire_flame", + "41": "soul", + "42": "flash", + "43": "happy_villager", + "44": "composter", + "45": "heart", + "46": "instant_effect", + "47": "item", + "48": "vibration", + "49": "trail", + "50": "pause_mob_growth", + "51": "reset_mob_growth", + "52": "item_slime", + "53": "item_cobweb", + "54": "item_snowball", + "55": "large_smoke", + "56": "lava", + "57": "mycelium", + "58": "note", + "59": "poof", + "60": "portal", + "61": "rain", + "62": "smoke", + "63": "white_smoke", + "64": "sneeze", + "65": "spit", + "66": "squid_ink", + "67": "sweep_attack", + "68": "totem_of_undying", + "69": "underwater", + "70": "splash", + "71": "witch", + "72": "bubble_pop", + "73": "current_down", + "74": "bubble_column_up", + "75": "nautilus", + "76": "dolphin", + "77": "campfire_cosy_smoke", + "78": "campfire_signal_smoke", + "79": "dripping_honey", + "80": "falling_honey", + "81": "landing_honey", + "82": "falling_nectar", + "83": "falling_spore_blossom", + "84": "ash", + "85": "crimson_spore", + "86": "warped_spore", + "87": "spore_blossom_air", + "88": "dripping_obsidian_tear", + "89": "falling_obsidian_tear", + "90": "landing_obsidian_tear", + "91": "reverse_portal", + "92": "white_ash", + "93": "small_flame", + "94": "snowflake", + "95": "dripping_dripstone_lava", + "96": "falling_dripstone_lava", + "97": "dripping_dripstone_water", + "98": "falling_dripstone_water", + "99": "glow_squid_ink", + "100": "glow", + "101": "wax_on", + "102": "wax_off", + "103": "electric_spark", + "104": "scrape", + "105": "shriek", + "106": "egg_crack", + "107": "dust_plume", + "108": "trial_spawner_detected_player", + "109": "trial_spawner_detected_player_ominous", + "110": "vault_connection", + "111": "dust_pillar", + "112": "ominous_spawning", + "113": "raid_omen", + "114": "trial_omen", + "115": "block_crumble", + "116": "firefly" + }, + "type": "varint" + } + ] }, { - "anon": true, + "name": "data", "type": [ "switch", { "compareTo": "type", "fields": { - "DedicatedServerTickTime": "void" - }, - "default": [ - "container", - [ - { - "name": "payload", - "type": [ - "option", - [ - "switch", + "block": "varint", + "block_crumble": "varint", + "block_marker": "varint", + "dragon_breath": [ + "container", + [ + { + "name": "power", + "type": "f32" + } + ] + ], + "dust": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "dust_color_transition": [ + "container", + [ + { + "name": "fromRed", + "type": "f32" + }, + { + "name": "fromGreen", + "type": "f32" + }, + { + "name": "fromBlue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + }, + { + "name": "toRed", + "type": "f32" + }, + { + "name": "toGreen", + "type": "f32" + }, + { + "name": "toBlue", + "type": "f32" + } + ] + ], + "dust_pillar": "varint", + "effect": [ + "container", + [ + { + "name": "color", + "type": "i32" + }, + { + "name": "power", + "type": "f32" + } + ] + ], + "entity_effect": "i32", + "falling_dust": "varint", + "firefly": "void", + "flash": "i32", + "instant_effect": [ + "container", + [ + { + "name": "color", + "type": "i32" + }, + { + "name": "power", + "type": "f32" + } + ] + ], + "item": "Slot", + "sculk_charge": "f32", + "shriek": "varint", + "tinted_leaves": "i32", + "trail": [ + "container", + [ + { + "name": "target", + "type": "vec3f64" + }, + { + "name": "color", + "type": "u8" + } + ] + ], + "vibration": [ + "container", + [ + { + "name": "positionType", + "type": [ + "mapper", { - "compareTo": "type", - "fields": { - "DedicatedServerTickTime": "void", - "VillageSections": "void", - "Bees": [ - "container", - [ - { - "name": "hivePos", - "type": [ - "option", - "position" - ] - }, - { - "name": "flowerPos", - "type": [ - "option", - "position" - ] - }, - { - "name": "travelTicks", - "type": "varint" - }, - { - "name": "blacklistedHives", - "type": [ - "array", - { - "countType": "varint", - "type": "position" - } - ] - } - ] - ], - "Brains": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "profession", - "type": "string" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "health", - "type": "f32" - }, - { - "name": "maxHealth", - "type": "f32" - }, - { - "name": "inventory", - "type": "string" - }, - { - "name": "wantsGolem", - "type": "bool" - }, - { - "name": "angerLevel", - "type": "i32" - }, - { - "name": "activities", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "behaviors", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "memories", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "gossips", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - { - "name": "pois", - "type": [ - "array", - { - "countType": "varint", - "type": "position" - } - ] - }, - { - "name": "potentialPois", - "type": [ - "array", - { - "countType": "varint", - "type": "position" - } - ] - } - ] - ], - "Breezes": [ - "container", - [ - { - "name": "attackTarget", - "type": [ - "option", - "varint" - ] - }, - { - "name": "jumpTarget", - "type": [ - "option", - "position" - ] - } - ] - ], - "GoalSelectors": [ - "container", - [ - { - "name": "goals", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "priority", - "type": "varint" - }, - { - "name": "running", - "type": "bool" - }, - { - "name": "name", - "type": "string" - } - ] - ] - } - ] - } - ] - ], - "EntityPaths": [ - "container", - [ - { - "name": "path", - "type": "Path" - }, - { - "name": "maxNodeDistance", - "type": "f32" - } - ] - ], - "EntityBlockIntersections": [ - "container", - [ - { - "name": "id", - "type": "varint" - } - ] - ], - "BeeHives": [ - "container", - [ - { - "name": "type", - "type": "varint" - }, - { - "name": "occupantCount", - "type": "varint" - }, - { - "name": "honeyLevel", - "type": "varint" - }, - { - "name": "sedated", - "type": "bool" - } - ] - ], - "Pois": [ + "mappings": { + "0": "block", + "1": "entity" + }, + "type": "varint" + } + ] + }, + { + "name": "position", + "type": [ + "switch", + { + "compareTo": "positionType", + "fields": { + "block": "position", + "entity": [ "container", [ { - "name": "pos", - "type": "position" - }, - { - "name": "poiType", + "name": "entityId", "type": "varint" }, { - "name": "freeTicketCount", - "type": "varint" - } - ] - ], - "RedstoneWireOrientations": [ - "container", - [ - { - "name": "index", - "type": "varint" - } - ] - ], - "Raids": [ - "container", - [ - { - "name": "positions", - "type": [ - "array", - { - "countType": "varint", - "type": "position" - } - ] + "name": "entityEyeHeight", + "type": "f32" } ] - ], - "Structures": [ - "container", - [ - { - "name": "structures", - "type": [ - "array", - { - "countType": "varint", - "type": "DebugStructureInfo" + ] + } + } + ] + }, + { + "name": "ticks", + "type": "varint" + } + ] + ] + } + } + ] + } + ] + ], + "Path": [ + "container", + [ + { + "name": "reached", + "type": "bool" + }, + { + "name": "nextNodeIndex", + "type": "i32" + }, + { + "name": "target", + "type": "position" + }, + { + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "Node" + } + ] + }, + { + "name": "debugData", + "type": "PathDebugData" + } + ] + ], + "PathDebugData": [ + "container", + [ + { + "name": "openSet", + "type": [ + "array", + { + "countType": "varint", + "type": "Node" + } + ] + }, + { + "name": "closedSet", + "type": [ + "array", + { + "countType": "varint", + "type": "Node" + } + ] + }, + { + "name": "targetNodes", + "type": [ + "array", + { + "countType": "varint", + "type": "Node" + } + ] + } + ] + ], + "PlayerSkinPatch": [ + "container", + [ + { + "name": "body", + "type": [ + "option", + "string" + ] + }, + { + "name": "cape", + "type": [ + "option", + "string" + ] + }, + { + "name": "elytra", + "type": [ + "option", + "string" + ] + }, + { + "name": "model", + "type": [ + "option", + [ + "mapper", + { + "mappings": { + "0": "wide", + "1": "slim" + }, + "type": "varint" + } + ] + ] + } + ] + ], + "ResolvableProfile": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "partial", + "1": "complete" + }, + "type": "varint" + } + ] + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "complete": "GameProfile", + "partial": "PartialResolvableProfile" + } + } + ] + }, + { + "name": "skinPatch", + "type": "PlayerSkinPatch" + } + ] + ], + "RespawnData": [ + "container", + [ + { + "name": "globalPos", + "type": "GlobalPos" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + } + ] + ], + "ServerLinkType": [ + "mapper", + { + "mappings": { + "0": "bug_report", + "1": "community_guidelines", + "2": "support", + "3": "status", + "4": "feedback", + "5": "community", + "6": "website", + "7": "forums", + "8": "news", + "9": "announcements" + }, + "type": "varint" + } + ], + "Slot": [ + "container", + [ + { + "name": "itemCount", + "type": "varint" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "itemCount", + "default": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "removedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "SlotComponent" + } + ] + }, + { + "name": "removeComponents", + "type": [ + "array", + { + "count": "removedComponentCount", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] + } + ] + ], + "fields": { + "0": "void" + } + } + ] + } + ] + ], + "SlotComponent": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "additional_trade_cost": "varint", + "attack_range": [ + "container", + [ + { + "name": "minRange", + "type": "f32" + }, + { + "name": "maxRange", + "type": "f32" + }, + { + "name": "minCreativeRange", + "type": "f32" + }, + { + "name": "maxCreativeRange", + "type": "f32" + }, + { + "name": "hitboxMargin", + "type": "f32" + }, + { + "name": "mobFactor", + "type": "f32" + } + ] + ], + "attribute_modifiers": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "typeId", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "operation", + "type": [ + "mapper", + { + "mappings": { + "0": "add", + "1": "multiply_base", + "2": "multiply_total" + }, + "type": "varint" + } + ] + }, + { + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "any", + "1": "main_hand", + "2": "off_hand", + "3": "hand", + "4": "feet", + "5": "legs", + "6": "chest", + "7": "head", + "8": "armor", + "9": "body", + "10": "saddle" + }, + "type": "varint" + } + ] + }, + { + "name": "display", + "type": [ + "container", + [ + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "default", + "1": "hidden", + "2": "override" + }, + "type": "varint" + } + ] + }, + { + "name": "component", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "override": "anonymousNbt" } - ] - } - ] - ], - "GameEventListeners": [ - "container", - [ - { - "name": "listenerRadius", - "type": "varint" - } - ] - ], - "NeighborUpdates": [ - "container", - [ - { - "name": "pos", - "type": "position" - } - ] - ], - "GameEvents": [ - "container", - [ - { - "name": "event", - "type": "varint" - }, - { - "name": "pos", - "type": "vec3f64" + } + ] + } + ] + ] + } + ] + ] + } + ], + "axolotl/variant": "varint", + "banner_patterns": [ + "container", + [ + { + "name": "layers", + "type": [ + "array", + { + "countType": "varint", + "type": "BannerPatternLayer" + } + ] + } + ] + ], + "base_color": "DyeColor", + "bees": [ + "container", + [ + { + "name": "bees", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "nbtData", + "type": "anonymousNbt" + }, + { + "name": "ticksInHive", + "type": "varint" + }, + { + "name": "minTicksInHive", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "block_entity_data": [ + "container", + [ + { + "name": "type", + "type": "varint" + }, + { + "name": "data", + "type": "anonymousNbt" + } + ] + ], + "block_state": [ + "container", + [ + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + } + ] + ], + "blocks_attacks": [ + "container", + [ + { + "name": "blockDelaySeconds", + "type": "f32" + }, + { + "name": "disableCooldownScale", + "type": "f32" + }, + { + "name": "damageReductions", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "horizontalBlockingAngle", + "type": "f32" + }, + { + "name": "type", + "type": [ + "option", + "IDSet" + ] + }, + { + "name": "base", + "type": "f32" + }, + { + "name": "factor", + "type": "f32" + } + ] + ] + } + ] + }, + { + "name": "itemDamage", + "type": [ + "container", + [ + { + "name": "threshold", + "type": "f32" + }, + { + "name": "base", + "type": "f32" + }, + { + "name": "factor", + "type": "f32" + } + ] + ] + }, + { + "name": "bypassedBy", + "type": [ + "option", + "string" + ] + }, + { + "name": "blockSound", + "type": [ + "option", + "ItemSoundHolder" + ] + }, + { + "name": "disableSound", + "type": [ + "option", + "ItemSoundHolder" + ] + } + ] + ], + "break_sound": "ItemSoundHolder", + "bucket_entity_data": "anonymousNbt", + "bundle_contents": [ + "container", + [ + { + "name": "contents", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "can_break": [ + "container", + [ + { + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" + } + ] + } + ] + ], + "can_place_on": [ + "container", + [ + { + "name": "predicates", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBlockPredicate" + } + ] + } + ] + ], + "cat/collar": "DyeColor", + "cat/sound_variant": "varint", + "cat/variant": "varint", + "charged_projectiles": [ + "container", + [ + { + "name": "projectiles", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "chicken/sound_variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "string" + } + } + ], + "chicken/variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "string" + } + } + ], + "consumable": [ + "container", + [ + { + "name": "consume_seconds", + "type": "f32" + }, + { + "name": "animation", + "type": [ + "mapper", + { + "mappings": { + "0": "none", + "1": "eat", + "2": "drink", + "3": "block", + "4": "bow", + "5": "spear", + "6": "crossbow", + "7": "spyglass", + "8": "toot_horn", + "9": "brush", + "10": "bundle" + }, + "type": "varint" + } + ] + }, + { + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "makes_particles", + "type": "bool" + }, + { + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemConsumeEffect" + } + ] + } + ] + ], + "container": [ + "container", + [ + { + "name": "contents", + "type": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ] + } + ] + ], + "container_loot": "anonymousNbt", + "cow/sound_variant": "varint", + "cow/variant": "varint", + "creative_slot_lock": "void", + "custom_data": "anonymousNbt", + "custom_model_data": [ + "container", + [ + { + "name": "floats", + "type": [ + "array", + { + "countType": "varint", + "type": "f32" + } + ] + }, + { + "name": "flags", + "type": [ + "array", + { + "countType": "varint", + "type": "bool" + } + ] + }, + { + "name": "strings", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + }, + { + "name": "colors", + "type": [ + "array", + { + "countType": "varint", + "type": "i32" + } + ] + } + ] + ], + "custom_name": "anonymousNbt", + "damage": "varint", + "damage_resistant": "string", + "damage_type": [ + "container", + [ + { + "name": "hasHolder", + "type": "bool" + }, + { + "name": "damageType", + "type": [ + "switch", + { + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "damageTypeId", + "otherwise": { + "name": "data", + "type": "DamageTypeData" } - ] + } ] } } ] - ] - } - ] - ] - } - ] - } - ] - ], - "DebugSubscriptionEvent": [ - "container", - [ - { - "name": "type", - "type": "DebugSubscriptionDataType" - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "DedicatedServerTickTime": "void", - "VillageSections": "void", - "Bees": [ + } + ] + ], + "death_protection": [ "container", [ { - "name": "hivePos", + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemConsumeEffect" + } + ] + } + ] + ], + "debug_stick_state": "anonymousNbt", + "dye": "DyeColor", + "dyed_color": "i32", + "enchantable": "varint", + "enchantment_glint_override": "bool", + "enchantments": [ + "container", + [ + { + "name": "enchantments", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "entity_data": [ + "container", + [ + { + "name": "type", + "type": "varint" + }, + { + "name": "data", + "type": "anonymousNbt" + } + ] + ], + "equippable": [ + "container", + [ + { + "name": "slot", + "type": [ + "mapper", + { + "mappings": { + "0": "main_hand", + "1": "off_hand", + "2": "feet", + "3": "legs", + "4": "chest", + "5": "head", + "6": "body", + "7": "saddle" + }, + "type": "varint" + } + ] + }, + { + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "model", "type": [ "option", - "position" + "string" + ] + }, + { + "name": "cameraOverlay", + "type": [ + "option", + "string" + ] + }, + { + "name": "allowedEntities", + "type": [ + "option", + "IDSet" ] }, { - "name": "flowerPos", - "type": [ - "option", - "position" - ] + "name": "dispensable", + "type": "bool" + }, + { + "name": "swappable", + "type": "bool" + }, + { + "name": "damageable", + "type": "bool" + }, + { + "name": "equipOnInteract", + "type": "bool" + }, + { + "name": "shearable", + "type": "bool" }, { - "name": "travelTicks", + "name": "shearingSound", + "type": "ItemSoundHolder" + } + ] + ], + "firework_explosion": "ItemFireworkExplosion", + "fireworks": [ + "container", + [ + { + "name": "flightDuration", "type": "varint" }, { - "name": "blacklistedHives", + "name": "explosions", "type": [ "array", { "countType": "varint", - "type": "position" + "type": "ItemFireworkExplosion" } ] } ] ], - "Brains": [ + "food": [ "container", [ { - "name": "name", - "type": "string" - }, - { - "name": "profession", - "type": "string" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "health", - "type": "f32" + "name": "nutrition", + "type": "varint" }, { - "name": "maxHealth", + "name": "saturationModifier", "type": "f32" }, { - "name": "inventory", - "type": "string" - }, - { - "name": "wantsGolem", + "name": "canAlwaysEat", "type": "bool" - }, + } + ] + ], + "fox/variant": "varint", + "frog/variant": "varint", + "glider": "void", + "horse/variant": "varint", + "instrument": [ + "container", + [ { - "name": "angerLevel", - "type": "i32" + "name": "hasHolder", + "type": "bool" }, { - "name": "activities", + "name": "data", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "instrumentId", + "otherwise": { + "name": "data", + "type": "InstrumentData" + } + } + ] + } } ] + } + ] + ], + "intangible_projectile": "void", + "item_model": "string", + "item_name": "anonymousNbt", + "jukebox_playable": [ + "container", + [ + { + "name": "hasHolder", + "type": "bool" }, { - "name": "behaviors", + "name": "song", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "string" + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "songId", + "otherwise": { + "name": "data", + "type": "JukeboxSongData" + } + } + ] + } } ] + } + ] + ], + "kinetic_weapon": [ + "container", + [ + { + "name": "contactCooldownTicks", + "type": "varint" }, { - "name": "memories", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "delayTicks", + "type": "varint" }, { - "name": "gossips", + "name": "dismountConditions", "type": [ - "array", - { - "countType": "varint", - "type": "string" - } + "option", + "KineticWeaponCondition" ] }, { - "name": "pois", + "name": "knockbackConditions", "type": [ - "array", - { - "countType": "varint", - "type": "position" - } + "option", + "KineticWeaponCondition" ] }, { - "name": "potentialPois", + "name": "damageConditions", "type": [ - "array", - { - "countType": "varint", - "type": "position" - } + "option", + "KineticWeaponCondition" ] - } - ] - ], - "Breezes": [ - "container", - [ + }, { - "name": "attackTarget", + "name": "forwardMovement", + "type": "f32" + }, + { + "name": "damageMultiplier", + "type": "f32" + }, + { + "name": "sound", "type": [ "option", - "varint" + "ItemSoundHolder" ] }, { - "name": "jumpTarget", + "name": "hitSound", "type": [ "option", - "position" + "ItemSoundHolder" ] } ] ], - "GoalSelectors": [ + "llama/variant": "varint", + "lock": "anonymousNbt", + "lodestone_tracker": [ "container", [ { - "name": "priority", - "type": "varint" + "name": "globalPosition", + "type": [ + "option", + "GlobalPos" + ] }, { - "name": "running", + "name": "tracked", "type": "bool" - }, - { - "name": "name", - "type": "string" - } - ] - ], - "EntityPaths": [ - "container", - [ - { - "name": "path", - "type": "Path" - }, - { - "name": "maxNodeDistance", - "type": "f32" } ] ], - "EntityBlockIntersections": [ - "container", - [ - { - "name": "id", - "type": "varint" - } - ] + "lore": [ + "array", + { + "countType": "varint", + "type": "anonymousNbt" + } ], - "BeeHives": [ - "container", - [ - { - "name": "type", - "type": "varint" - }, - { - "name": "occupantCount", - "type": "varint" - }, - { - "name": "honeyLevel", - "type": "varint" - }, - { - "name": "sedated", - "type": "bool" + "map_color": "i32", + "map_decorations": "anonymousNbt", + "map_id": "varint", + "map_post_processing": "varint", + "max_damage": "varint", + "max_stack_size": "varint", + "minimum_attack_charge": "f32", + "mooshroom/variant": "varint", + "note_block_sound": "string", + "ominous_bottle_amplifier": "varint", + "painting/variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "data", + "type": "EntityMetadataPaintingVariant" } - ] + } ], - "Pois": [ + "parrot/variant": "varint", + "piercing_weapon": [ "container", [ { - "name": "pos", - "type": "position" + "name": "dealsKnockback", + "type": "bool" }, { - "name": "poiType", - "type": "varint" + "name": "dismounts", + "type": "bool" }, { - "name": "freeTicketCount", - "type": "varint" - } - ] - ], - "RedstoneWireOrientations": [ - "container", - [ + "name": "sound", + "type": [ + "option", + "ItemSoundHolder" + ] + }, { - "name": "index", - "type": "varint" + "name": "hitSound", + "type": [ + "option", + "ItemSoundHolder" + ] } ] ], - "Raids": [ + "pig/sound_variant": "varint", + "pig/variant": "varint", + "pot_decorations": [ "container", [ { - "name": "positions", + "name": "decorations", "type": [ "array", { "countType": "varint", - "type": "position" + "type": "varint" } ] } ] ], - "Structures": [ + "potion_contents": [ "container", [ { - "name": "structures", + "name": "potionId", + "type": [ + "option", + "varint" + ] + }, + { + "name": "customColor", + "type": [ + "option", + "i32" + ] + }, + { + "name": "customEffects", "type": [ "array", { "countType": "varint", - "type": "DebugStructureInfo" + "type": "ItemPotionEffect" } ] - } - ] - ], - "GameEventListeners": [ - "container", - [ - { - "name": "listenerRadius", - "type": "varint" - } - ] - ], - "NeighborUpdates": [ - "container", - [ - { - "name": "pos", - "type": "position" - } - ] - ], - "GameEvents": [ - "container", - [ - { - "name": "event", - "type": "varint" }, { - "name": "pos", - "type": "vec3f64" + "name": "customName", + "type": [ + "option", + "string" + ] } ] - ] - } - } - ] - } - ] - ], - "Particle": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "angry_villager", - "1": "block", - "2": "block_marker", - "3": "bubble", - "4": "cloud", - "5": "copper_fire_flame", - "6": "crit", - "7": "damage_indicator", - "8": "dragon_breath", - "9": "dripping_lava", - "10": "falling_lava", - "11": "landing_lava", - "12": "dripping_water", - "13": "falling_water", - "14": "dust", - "15": "dust_color_transition", - "16": "effect", - "17": "elder_guardian", - "18": "enchanted_hit", - "19": "enchant", - "20": "end_rod", - "21": "entity_effect", - "22": "explosion_emitter", - "23": "explosion", - "24": "gust", - "25": "small_gust", - "26": "gust_emitter_large", - "27": "gust_emitter_small", - "28": "sonic_boom", - "29": "falling_dust", - "30": "firework", - "31": "fishing", - "32": "flame", - "33": "infested", - "34": "cherry_leaves", - "35": "pale_oak_leaves", - "36": "tinted_leaves", - "37": "sculk_soul", - "38": "sculk_charge", - "39": "sculk_charge_pop", - "40": "soul_fire_flame", - "41": "soul", - "42": "flash", - "43": "happy_villager", - "44": "composter", - "45": "heart", - "46": "instant_effect", - "47": "item", - "48": "vibration", - "49": "trail", - "50": "pause_mob_growth", - "51": "reset_mob_growth", - "52": "item_slime", - "53": "item_cobweb", - "54": "item_snowball", - "55": "large_smoke", - "56": "lava", - "57": "mycelium", - "58": "note", - "59": "poof", - "60": "portal", - "61": "rain", - "62": "smoke", - "63": "white_smoke", - "64": "sneeze", - "65": "spit", - "66": "squid_ink", - "67": "sweep_attack", - "68": "totem_of_undying", - "69": "underwater", - "70": "splash", - "71": "witch", - "72": "bubble_pop", - "73": "current_down", - "74": "bubble_column_up", - "75": "nautilus", - "76": "dolphin", - "77": "campfire_cosy_smoke", - "78": "campfire_signal_smoke", - "79": "dripping_honey", - "80": "falling_honey", - "81": "landing_honey", - "82": "falling_nectar", - "83": "falling_spore_blossom", - "84": "ash", - "85": "crimson_spore", - "86": "warped_spore", - "87": "spore_blossom_air", - "88": "dripping_obsidian_tear", - "89": "falling_obsidian_tear", - "90": "landing_obsidian_tear", - "91": "reverse_portal", - "92": "white_ash", - "93": "small_flame", - "94": "snowflake", - "95": "dripping_dripstone_lava", - "96": "falling_dripstone_lava", - "97": "dripping_dripstone_water", - "98": "falling_dripstone_water", - "99": "glow_squid_ink", - "100": "glow", - "101": "wax_on", - "102": "wax_off", - "103": "electric_spark", - "104": "scrape", - "105": "shriek", - "106": "egg_crack", - "107": "dust_plume", - "108": "trial_spawner_detected_player", - "109": "trial_spawner_detected_player_ominous", - "110": "vault_connection", - "111": "dust_pillar", - "112": "ominous_spawning", - "113": "raid_omen", - "114": "trial_omen", - "115": "block_crumble", - "116": "firefly" - } - } - ] - }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "block": "varint", - "block_marker": "varint", - "falling_dust": "varint", - "dust_pillar": "varint", - "block_crumble": "varint", - "dust": [ + ], + "potion_duration_scale": "f32", + "profile": "ResolvableProfile", + "provides_banner_patterns": "string", + "provides_trim_material": [ "container", [ { - "name": "red", - "type": "f32" + "name": "hasHolder", + "type": "bool" }, { - "name": "green", - "type": "f32" + "name": "material", + "type": [ + "switch", + { + "compareTo": "hasHolder", + "fields": { + "false": "string", + "true": [ + "registryEntryHolder", + { + "baseName": "materialId", + "otherwise": { + "name": "data", + "type": "ArmorTrimMaterial" + } + } + ] + } + } + ] + } + ] + ], + "rabbit/variant": "varint", + "rarity": [ + "mapper", + { + "mappings": { + "0": "common", + "1": "uncommon", + "2": "rare", + "3": "epic" }, + "type": "varint" + } + ], + "recipes": "anonymousNbt", + "repair_cost": "varint", + "repairable": [ + "container", + [ { - "name": "blue", - "type": "f32" - }, + "name": "items", + "type": "IDSet" + } + ] + ], + "salmon/size": "varint", + "sheep/color": "DyeColor", + "shulker/color": "DyeColor", + "stored_enchantments": [ + "container", + [ { - "name": "scale", - "type": "f32" + "name": "enchantments", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "id", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ] + } + ] } ] ], - "dust_color_transition": [ + "suspicious_stew_effects": [ "container", [ { - "name": "fromRed", - "type": "f32" - }, + "name": "effects", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "effect", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + } + ] + ] + } + ] + } + ] + ], + "swing_animation": [ + "container", + [ { - "name": "fromGreen", - "type": "f32" + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "none", + "1": "whack", + "2": "stab" + }, + "type": "varint" + } + ] }, { - "name": "fromBlue", - "type": "f32" - }, + "name": "duration", + "type": "varint" + } + ] + ], + "tool": [ + "container", + [ { - "name": "scale", - "type": "f32" + "name": "rules", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "blocks", + "type": "IDSet" + }, + { + "name": "speed", + "type": [ + "option", + "f32" + ] + }, + { + "name": "correctDropForBlocks", + "type": [ + "option", + "bool" + ] + } + ] + ] + } + ] }, { - "name": "toRed", + "name": "defaultMiningSpeed", "type": "f32" }, { - "name": "toGreen", - "type": "f32" + "name": "damagePerBlock", + "type": "varint" }, { - "name": "toBlue", - "type": "f32" + "name": "canDestroyBlocksInCreative", + "type": "bool" } ] ], - "entity_effect": "i32", - "item": "Slot", - "sculk_charge": "f32", - "shriek": "varint", - "vibration": [ + "tooltip_display": [ "container", [ { - "name": "positionType", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "block", - "1": "entity" - } - } - ] + "name": "hideTooltip", + "type": "bool" }, { - "name": "position", + "name": "hiddenComponents", "type": [ - "switch", + "array", { - "compareTo": "positionType", - "fields": { - "block": "position", - "entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "entityEyeHeight", - "type": "f32" - } - ] - ] - } + "countType": "varint", + "type": "varint" } ] - }, - { - "name": "ticks", - "type": "varint" } ] ], - "trail": [ + "tooltip_style": "string", + "trim": [ "container", [ { - "name": "target", - "type": "vec3f64" + "name": "material", + "type": [ + "registryEntryHolder", + { + "baseName": "materialId", + "otherwise": { + "name": "data", + "type": "ArmorTrimMaterial" + } + } + ] }, { - "name": "color", - "type": "u8" + "name": "pattern", + "type": [ + "registryEntryHolder", + { + "baseName": "patternId", + "otherwise": { + "name": "data", + "type": "ArmorTrimPattern" + } + } + ] } ] ], - "tinted_leaves": "i32", - "firefly": "void", - "dragon_breath": [ + "tropical_fish/base_color": "DyeColor", + "tropical_fish/pattern": "varint", + "tropical_fish/pattern_color": "DyeColor", + "unbreakable": "void", + "use_cooldown": [ "container", [ { - "name": "power", + "name": "seconds", "type": "f32" + }, + { + "name": "cooldownGroup", + "type": [ + "option", + "string" + ] } ] ], - "effect": [ + "use_effects": [ "container", [ { - "name": "color", - "type": "i32" + "name": "can_sprint", + "type": "bool" }, { - "name": "power", + "name": "interact_vibrations", + "type": "bool" + }, + { + "name": "speed_multiplier", "type": "f32" } ] ], - "instant_effect": [ + "use_remainder": "Slot", + "villager/variant": "varint", + "weapon": [ "container", [ { - "name": "color", - "type": "i32" + "name": "itemDamagePerAttack", + "type": "varint" }, { - "name": "power", + "name": "disableBlockingForSeconds", "type": "f32" } ] ], - "flash": "i32" - } - } - ] - } - ] - ], - "ingredient": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ], - "position": [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ], - "soundSource": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "master", - "1": "music", - "2": "record", - "3": "weather", - "4": "block", - "5": "hostile", - "6": "neutral", - "7": "player", - "8": "ambient", - "9": "voice", - "10": "ui" - } - } - ], - "packedChunkPos": [ - "container", - [ - { - "name": "z", - "type": "i32" - }, - { - "name": "x", - "type": "i32" - } - ] - ], - "previousMessages": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] - } - ] - ] - } - ], - "entityMetadataEntry": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "byte", - "1": "int", - "2": "long", - "3": "float", - "4": "string", - "5": "component", - "6": "optional_component", - "7": "item_stack", - "8": "boolean", - "9": "rotations", - "10": "block_pos", - "11": "optional_block_pos", - "12": "direction", - "13": "optional_uuid", - "14": "block_state", - "15": "optional_block_state", - "16": "particle", - "17": "particles", - "18": "villager_data", - "19": "optional_unsigned_int", - "20": "pose", - "21": "cat_variant", - "22": "cat_sound_variant", - "23": "cow_variant", - "24": "cow_sound_variant", - "25": "wolf_variant", - "26": "wolf_sound_variant", - "27": "frog_variant", - "28": "pig_variant", - "29": "pig_sound_variant", - "30": "chicken_variant", - "31": "chicken_sound_variant", - "32": "zombie_nautilus_variant", - "33": "optional_global_pos", - "34": "painting_variant", - "35": "sniffer_state", - "36": "armadillo_state", - "37": "copper_golem_state", - "38": "weathering_copper_golem_state", - "39": "vector3", - "40": "quaternion", - "41": "resolvable_profile", - "42": "humanoid_arm" - } - } - ] - }, - { - "name": "value", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "byte": "i8", - "int": "varint", - "long": "varlong", - "float": "f32", - "string": "string", - "component": "anonymousNbt", - "optional_component": [ - "option", - "anonymousNbt" - ], - "item_stack": "Slot", - "boolean": "bool", - "rotations": [ + "wolf/collar": "DyeColor", + "wolf/sound_variant": "varint", + "wolf/variant": "varint", + "writable_book_content": [ "container", [ { - "name": "pitch", - "type": "f32" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "roll", - "type": "f32" + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemBookPage" + } + ] } ] ], - "block_pos": "position", - "optional_block_pos": [ - "option", - "position" - ], - "direction": "varint", - "optional_uuid": [ - "option", - "UUID" - ], - "block_state": "varint", - "optional_block_state": "optvarint", - "particle": "Particle", - "particles": [ - "array", - { - "countType": "varint", - "type": "Particle" - } - ], - "villager_data": [ + "written_book_content": [ "container", [ { - "name": "villagerType", - "type": "varint" + "name": "rawTitle", + "type": "string" + }, + { + "name": "filteredTitle", + "type": [ + "option", + "string" + ] + }, + { + "name": "author", + "type": "string" }, { - "name": "villagerProfession", + "name": "generation", "type": "varint" }, { - "name": "level", - "type": "varint" + "name": "pages", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemWrittenBookPage" + } + ] + }, + { + "name": "resolved", + "type": "bool" } ] ], - "optional_unsigned_int": "optvarint", - "pose": "varint", - "cat_variant": "varint", - "cat_sound_variant": "varint", - "cow_variant": "varint", - "cow_sound_variant": "varint", - "wolf_variant": "varint", - "wolf_sound_variant": "varint", - "frog_variant": "varint", - "pig_variant": "varint", - "pig_sound_variant": "varint", - "chicken_variant": "varint", - "chicken_sound_variant": "varint", - "zombie_nautilus_variant": "varint", - "optional_global_pos": [ - "option", - "GlobalPos" - ], - "painting_variant": [ + "zombie_nautilus/variant": [ "registryEntryHolder", { "baseName": "variantId", "otherwise": { "name": "variantData", - "type": "EntityMetadataPaintingVariant" - } - } - ], - "sniffer_state": "varint", - "armadillo_state": "varint", - "copper_golem_state": "varint", - "weathering_copper_golem_state": "varint", - "vector3": "vec3f", - "quaternion": "vec4f", - "resolvable_profile": "ResolvableProfile", - "humanoid_arm": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "left", - "1": "right" + "type": "string" } } ] @@ -3851,104 +3447,212 @@ } ] ], - "EntityMetadataPaintingVariant": [ + "SlotComponentType": [ + "mapper", + { + "mappings": { + "0": "custom_data", + "1": "max_stack_size", + "2": "max_damage", + "3": "damage", + "4": "unbreakable", + "5": "use_effects", + "6": "custom_name", + "7": "minimum_attack_charge", + "8": "damage_type", + "9": "item_name", + "10": "item_model", + "11": "lore", + "12": "rarity", + "13": "enchantments", + "14": "can_place_on", + "15": "can_break", + "16": "attribute_modifiers", + "17": "custom_model_data", + "18": "tooltip_display", + "19": "repair_cost", + "20": "creative_slot_lock", + "21": "enchantment_glint_override", + "22": "intangible_projectile", + "23": "food", + "24": "consumable", + "25": "use_remainder", + "26": "use_cooldown", + "27": "damage_resistant", + "28": "tool", + "29": "weapon", + "30": "attack_range", + "31": "enchantable", + "32": "equippable", + "33": "repairable", + "34": "glider", + "35": "tooltip_style", + "36": "death_protection", + "37": "blocks_attacks", + "38": "piercing_weapon", + "39": "kinetic_weapon", + "40": "swing_animation", + "41": "additional_trade_cost", + "42": "stored_enchantments", + "43": "dye", + "44": "dyed_color", + "45": "map_color", + "46": "map_id", + "47": "map_decorations", + "48": "map_post_processing", + "49": "charged_projectiles", + "50": "bundle_contents", + "51": "potion_contents", + "52": "potion_duration_scale", + "53": "suspicious_stew_effects", + "54": "writable_book_content", + "55": "written_book_content", + "56": "trim", + "57": "debug_stick_state", + "58": "entity_data", + "59": "bucket_entity_data", + "60": "block_entity_data", + "61": "instrument", + "62": "provides_trim_material", + "63": "ominous_bottle_amplifier", + "64": "jukebox_playable", + "65": "provides_banner_patterns", + "66": "recipes", + "67": "lodestone_tracker", + "68": "firework_explosion", + "69": "fireworks", + "70": "profile", + "71": "note_block_sound", + "72": "banner_patterns", + "73": "base_color", + "74": "pot_decorations", + "75": "container", + "76": "block_state", + "77": "bees", + "78": "lock", + "79": "container_loot", + "80": "break_sound", + "81": "villager/variant", + "82": "wolf/variant", + "83": "wolf/sound_variant", + "84": "wolf/collar", + "85": "fox/variant", + "86": "salmon/size", + "87": "parrot/variant", + "88": "tropical_fish/pattern", + "89": "tropical_fish/base_color", + "90": "tropical_fish/pattern_color", + "91": "mooshroom/variant", + "92": "rabbit/variant", + "93": "pig/variant", + "94": "pig/sound_variant", + "95": "cow/variant", + "96": "cow/sound_variant", + "97": "chicken/variant", + "98": "chicken/sound_variant", + "99": "zomie_nautilus/variant", + "100": "frog/variant", + "101": "horse/variant", + "102": "painting/variant", + "103": "llama/variant", + "104": "axolotl/variant", + "105": "cat/variant", + "106": "cat/sound_variant", + "107": "cat/collar", + "108": "sheep/color", + "109": "shulker/color" + }, + "type": "varint" + } + ], + "UUID": "native", + "UntrustedSlot": [ "container", [ { - "name": "width", - "type": "i32" - }, - { - "name": "height", - "type": "i32" - }, - { - "name": "assetId", - "type": "string" - }, - { - "name": "title", - "type": [ - "option", - "anonymousNbt" - ] + "name": "itemCount", + "type": "varint" }, { - "name": "author", + "anon": true, "type": [ - "option", - "anonymousNbt" + "switch", + { + "compareTo": "itemCount", + "default": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "addedComponentCount", + "type": "varint" + }, + { + "name": "removedComponentCount", + "type": "varint" + }, + { + "name": "components", + "type": [ + "array", + { + "count": "addedComponentCount", + "type": "UntrustedSlotComponent" + } + ] + }, + { + "name": "removeComponents", + "type": [ + "array", + { + "count": "removedComponentCount", + "type": [ + "container", + [ + { + "name": "type", + "type": "SlotComponentType" + } + ] + ] + } + ] + } + ] + ], + "fields": { + "0": "void", + "false": "void" + } + } ] } ] ], - "entityMetadata": [ - "entityMetadataLoop", - { - "endVal": 255, - "type": "entityMetadataEntry" - } - ], - "tags": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ], - "chunkBlockEntity": [ + "UntrustedSlotComponent": [ "container", [ - { - "anon": true, - "type": [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - }, - { - "name": "y", - "type": "i16" - }, { "name": "type", - "type": "varint" + "type": "SlotComponentType" }, { - "name": "nbtData", - "type": "anonOptionalNbt" + "name": "data", + "type": "ByteArray" } ] ], + "anonOptionalNbt": "native", + "anonymousNbt": "native", + "array": "native", + "bitfield": "native", + "bitflags": "native", + "bool": "native", + "buffer": "native", "chat_session": [ "option", [ @@ -3991,184 +3695,38 @@ ] ] ], - "game_profile_name_prop": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": "GameProfileProperty" - } - ] - } - ] - ], - "GameProfile": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": "GameProfileProperty" - } - ] - } - ] - ], - "PartialResolvableProfile": [ - "container", - [ - { - "name": "name", - "type": [ - "option", - "string" - ] - }, - { - "name": "uuid", - "type": [ - "option", - "UUID" - ] - }, - { - "name": "properties", - "type": [ - "array", - { - "countType": "varint", - "type": "GameProfileProperty" - } - ] - } - ] - ], - "GameProfileProperty": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "value", - "type": "string" - }, - { - "name": "signature", - "type": [ - "option", - "string" - ] - } - ] - ], - "ResolvableProfile": [ + "chunkBlockEntity": [ "container", [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "partial", - "1": "complete" - } - } - ] - }, { "anon": true, "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "partial": "PartialResolvableProfile", - "complete": "GameProfile" - } - } - ] - }, - { - "name": "skinPatch", - "type": "PlayerSkinPatch" - } - ] - ], - "PlayerSkinPatch": [ - "container", - [ - { - "name": "body", - "type": [ - "option", - "string" - ] - }, - { - "name": "cape", - "type": [ - "option", - "string" - ] - }, - { - "name": "elytra", - "type": [ - "option", - "string" - ] - }, - { - "name": "model", - "type": [ - "option", + "bitfield", [ - "mapper", { - "type": "varint", - "mappings": { - "0": "wide", - "1": "slim" - } + "name": "x", + "signed": false, + "size": 4 + }, + { + "name": "z", + "signed": false, + "size": 4 } ] ] - } - ] - ], - "GameRule": [ - "container", - [ + }, { - "name": "name", - "type": "string" + "name": "y", + "type": "i16" }, { - "name": "value", - "type": "string" + "name": "type", + "type": "varint" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" } ] ], @@ -4182,33 +3740,33 @@ [ { "name": "unused", - "size": 2, - "signed": false + "signed": false, + "size": 2 }, { "name": "allows_restricted", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_custom_suggestions", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_redirect_node", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "has_command", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "command_node_type", - "size": 2, - "signed": false + "signed": false, + "size": 2 } ] ] @@ -4229,10 +3787,10 @@ "switch", { "compareTo": "flags/has_redirect_node", + "default": "void", "fields": { "1": "varint" - }, - "default": "void" + } } ] }, @@ -4265,7 +3823,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "brigadier:bool", "1": "brigadier:float", @@ -4324,7 +3881,8 @@ "54": "minecraft:loot_modifier", "55": "minecraft:dialog", "56": "minecraft:uuid" - } + }, + "type": "varint" } ] }, @@ -4336,7 +3894,7 @@ "compareTo": "parser", "fields": { "brigadier:bool": "void", - "brigadier:float": [ + "brigadier:double": [ "container", [ { @@ -4346,18 +3904,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -4368,10 +3926,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f32" - }, - "default": "void" + "1": "f64" + } } ] }, @@ -4381,16 +3939,16 @@ "switch", { "compareTo": "flags/max_present", - "fields": { - "1": "f32" - }, - "default": "void" + "default": "void", + "fields": { + "1": "f64" + } } ] } ] ], - "brigadier:double": [ + "brigadier:float": [ "container", [ { @@ -4400,18 +3958,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -4422,10 +3980,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] }, @@ -4435,10 +3993,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { - "1": "f64" - }, - "default": "void" + "1": "f32" + } } ] } @@ -4454,18 +4012,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -4476,10 +4034,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] }, @@ -4489,10 +4047,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i32" - }, - "default": "void" + } } ] } @@ -4508,18 +4066,18 @@ [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "max_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "min_present", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ] @@ -4530,10 +4088,10 @@ "switch", { "compareTo": "flags/min_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] }, @@ -4543,10 +4101,10 @@ "switch", { "compareTo": "flags/max_present", + "default": "void", "fields": { "1": "i64" - }, - "default": "void" + } } ] } @@ -4555,46 +4113,54 @@ "brigadier:string": [ "mapper", { - "type": "varint", "mappings": { "0": "SINGLE_WORD", "1": "QUOTABLE_PHRASE", "2": "GREEDY_PHRASE" - } + }, + "type": "varint" } ], + "minecraft:angle": "void", + "minecraft:block_pos": "void", + "minecraft:block_predicate": "void", + "minecraft:block_state": "void", + "minecraft:color": "void", + "minecraft:column_pos": "void", + "minecraft:component": "void", + "minecraft:dialog": "void", + "minecraft:dimension": "void", "minecraft:entity": [ "bitfield", [ { "name": "unused", - "size": 6, - "signed": false + "signed": false, + "size": 6 }, { "name": "onlyAllowPlayers", - "size": 1, - "signed": false + "signed": false, + "size": 1 }, { "name": "onlyAllowEntities", - "size": 1, - "signed": false + "signed": false, + "size": 1 } ] ], + "minecraft:entity_anchor": "void", + "minecraft:float_range": "void", + "minecraft:function": "void", "minecraft:game_profile": "void", - "minecraft:block_pos": "void", - "minecraft:column_pos": "void", - "minecraft:vec3": "void", - "minecraft:vec2": "void", - "minecraft:block_state": "void", - "minecraft:block_predicate": "void", - "minecraft:item_stack": "void", - "minecraft:item_predicate": "void", - "minecraft:color": "void", + "minecraft:gamemode": "void", + "minecraft:heightmap": "void", "minecraft:hex_color": "void", - "minecraft:component": "void", + "minecraft:int_range": "void", + "minecraft:item_predicate": "void", + "minecraft:item_slot": "void", + "minecraft:item_stack": "void", "minecraft:message": "void", "minecraft:nbt": "void", "minecraft:nbt_path": "void", @@ -4602,43 +4168,25 @@ "minecraft:objective_criteria": "void", "minecraft:operation": "void", "minecraft:particle": "void", - "minecraft:angle": "void", - "minecraft:rotation": "void", - "minecraft:scoreboard_slot": "void", - "minecraft:score_holder": [ - "bitfield", + "minecraft:resource": [ + "container", [ { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false + "name": "registry", + "type": "string" } ] ], - "minecraft:swizzle": "void", - "minecraft:team": "void", - "minecraft:item_slot": "void", - "minecraft:resource_location": "void", - "minecraft:function": "void", - "minecraft:entity_anchor": "void", - "minecraft:int_range": "void", - "minecraft:float_range": "void", - "minecraft:dimension": "void", - "minecraft:gamemode": "void", - "minecraft:time": [ + "minecraft:resource_key": [ "container", [ { - "name": "min", - "type": "i32" + "name": "registry", + "type": "string" } ] ], + "minecraft:resource_location": "void", "minecraft:resource_or_tag": [ "container", [ @@ -4657,7 +4205,7 @@ } ] ], - "minecraft:resource": [ + "minecraft:resource_selector": [ "container", [ { @@ -4666,49 +4214,495 @@ } ] ], - "minecraft:resource_key": [ - "container", + "minecraft:rotation": "void", + "minecraft:score_holder": [ + "bitfield", [ { - "name": "registry", - "type": "string" + "name": "unused", + "signed": false, + "size": 7 + }, + { + "name": "allowMultiple", + "signed": false, + "size": 1 } ] ], - "minecraft:resource_selector": [ + "minecraft:scoreboard_slot": "void", + "minecraft:swizzle": "void", + "minecraft:team": "void", + "minecraft:template_mirror": "void", + "minecraft:template_rotation": "void", + "minecraft:time": [ "container", [ { - "name": "registry", - "type": "string" + "name": "min", + "type": "i32" } ] ], - "minecraft:template_mirror": "void", - "minecraft:template_rotation": "void", - "minecraft:heightmap": "void", - "minecraft:dialog": "void", - "minecraft:uuid": "void" + "minecraft:uuid": "void", + "minecraft:vec2": "void", + "minecraft:vec3": "void" + } + } + ] + }, + { + "name": "suggestionType", + "type": [ + "switch", + { + "compareTo": "../flags/has_custom_suggestions", + "default": "void", + "fields": { + "1": "string" } } - ] - }, - { - "name": "suggestionType", - "type": [ - "switch", - { - "compareTo": "../flags/has_custom_suggestions", - "fields": { - "1": "string" - }, - "default": "void" + ] + } + ] + ] + } + } + ] + } + ] + ], + "container": "native", + "entityMetadata": [ + "entityMetadataLoop", + { + "endVal": 255, + "type": "entityMetadataEntry" + } + ], + "entityMetadataEntry": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "particle", + "17": "particles", + "18": "villager_data", + "19": "optional_unsigned_int", + "20": "pose", + "21": "cat_variant", + "22": "cat_sound_variant", + "23": "cow_variant", + "24": "cow_sound_variant", + "25": "wolf_variant", + "26": "wolf_sound_variant", + "27": "frog_variant", + "28": "pig_variant", + "29": "pig_sound_variant", + "30": "chicken_variant", + "31": "chicken_sound_variant", + "32": "zombie_nautilus_variant", + "33": "optional_global_pos", + "34": "painting_variant", + "35": "sniffer_state", + "36": "armadillo_state", + "37": "copper_golem_state", + "38": "weathering_copper_golem_state", + "39": "vector3", + "40": "quaternion", + "41": "resolvable_profile", + "42": "humanoid_arm" + }, + "type": "varint" + } + ] + }, + { + "name": "value", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "armadillo_state": "varint", + "block_pos": "position", + "block_state": "varint", + "boolean": "bool", + "byte": "i8", + "cat_sound_variant": "varint", + "cat_variant": "varint", + "chicken_sound_variant": "varint", + "chicken_variant": "varint", + "component": "anonymousNbt", + "copper_golem_state": "varint", + "cow_sound_variant": "varint", + "cow_variant": "varint", + "direction": "varint", + "float": "f32", + "frog_variant": "varint", + "humanoid_arm": [ + "mapper", + { + "mappings": { + "0": "left", + "1": "right" + }, + "type": "varint" + } + ], + "int": "varint", + "item_stack": "Slot", + "long": "varlong", + "optional_block_pos": [ + "option", + "position" + ], + "optional_block_state": "optvarint", + "optional_component": [ + "option", + "anonymousNbt" + ], + "optional_global_pos": [ + "option", + "GlobalPos" + ], + "optional_unsigned_int": "optvarint", + "optional_uuid": [ + "option", + "UUID" + ], + "painting_variant": [ + "registryEntryHolder", + { + "baseName": "variantId", + "otherwise": { + "name": "variantData", + "type": "EntityMetadataPaintingVariant" + } + } + ], + "particle": "Particle", + "particles": [ + "array", + { + "countType": "varint", + "type": "Particle" + } + ], + "pig_sound_variant": "varint", + "pig_variant": "varint", + "pose": "varint", + "quaternion": "vec4f", + "resolvable_profile": "ResolvableProfile", + "rotations": [ + "container", + [ + { + "name": "pitch", + "type": "f32" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "roll", + "type": "f32" + } + ] + ], + "sniffer_state": "varint", + "string": "string", + "vector3": "vec3f", + "villager_data": [ + "container", + [ + { + "name": "villagerType", + "type": "varint" + }, + { + "name": "villagerProfession", + "type": "varint" + }, + { + "name": "level", + "type": "varint" + } + ] + ], + "weathering_copper_golem_state": "varint", + "wolf_sound_variant": "varint", + "wolf_variant": "varint", + "zombie_nautilus_variant": "varint" + } + } + ] + } + ] + ], + "entityMetadataLoop": "native", + "f32": "native", + "f64": "native", + "game_profile_name_prop": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": "GameProfileProperty" + } + ] + } + ] + ], + "i16": "native", + "i32": "native", + "i64": "native", + "i8": "native", + "ingredient": [ + "array", + { + "countType": "varint", + "type": "Slot" + } + ], + "lpVec3": "native", + "option": "native", + "optvarint": "varint", + "packedChunkPos": [ + "container", + [ + { + "name": "z", + "type": "i32" + }, + { + "name": "x", + "type": "i32" + } + ] + ], + "packet_common_add_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "url", + "type": "string" + }, + { + "name": "hash", + "type": "string" + }, + { + "name": "forced", + "type": "bool" + }, + { + "name": "promptMessage", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ], + "packet_common_clear_dialog": [ + "container", + [] + ], + "packet_common_cookie_request": [ + "container", + [ + { + "name": "cookie", + "type": "string" + } + ] + ], + "packet_common_cookie_response": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "ByteArray" + ] + } + ] + ], + "packet_common_custom_click_action": [ + "container", + [ + { + "name": "id", + "type": "string" + }, + { + "name": "nbt", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ], + "packet_common_custom_report_details": [ + "container", + [ + { + "name": "details", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + ] + } + ] + } + ] + ], + "packet_common_remove_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": [ + "option", + "UUID" + ] + } + ] + ], + "packet_common_select_known_packs": [ + "container", + [ + { + "name": "packs", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "namespace", + "type": "string" + }, + { + "name": "id", + "type": "string" + }, + { + "name": "version", + "type": "string" + } + ] + ] + } + ] + } + ] + ], + "packet_common_server_links": [ + "container", + [ + { + "name": "links", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "hasKnownType", + "type": "bool" + }, + { + "name": "knownType", + "type": [ + "switch", + { + "compareTo": "hasKnownType", + "fields": { + "true": "ServerLinkType" + } + } + ] + }, + { + "name": "unknownType", + "type": [ + "switch", + { + "compareTo": "hasKnownType", + "fields": { + "false": "anonymousNbt" } - ] - } - ] + } + ] + }, + { + "name": "link", + "type": "string" + } ] - } + ] } ] } @@ -4754,26 +4748,17 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "all", "1": "decreased", "2": "minimal" - } + }, + "type": "varint" } ] } ] ], - "packet_common_cookie_request": [ - "container", - [ - { - "name": "cookie", - "type": "string" - } - ] - ], "packet_common_store_cookie": [ "container", [ @@ -4800,209 +4785,224 @@ } ] ], - "packet_common_cookie_response": [ - "container", + "position": [ + "bitfield", [ { - "name": "key", - "type": "string" + "name": "x", + "signed": true, + "size": 26 }, { - "name": "value", - "type": [ - "option", - "ByteArray" - ] + "name": "z", + "signed": true, + "size": 26 + }, + { + "name": "y", + "signed": true, + "size": 12 } ] ], - "packet_common_select_known_packs": [ - "container", - [ - { - "name": "packs", - "type": [ - "array", + "previousMessages": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ { - "countType": "varint", + "name": "id", + "type": "varint" + }, + { + "name": "signature", "type": [ - "container", - [ - { - "name": "namespace", - "type": "string" - }, - { - "name": "id", - "type": "string" - }, - { - "name": "version", - "type": "string" + "switch", + { + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] } - ] + } ] } ] - } - ] + ] + } ], - "packet_common_custom_report_details": [ - "container", - [ - { - "name": "details", - "type": [ - "array", + "pstring": "native", + "registryEntryHolder": "native", + "registryEntryHolderSet": "native", + "restBuffer": "native", + "soundSource": [ + "mapper", + { + "mappings": { + "0": "master", + "1": "music", + "2": "record", + "3": "weather", + "4": "block", + "5": "hostile", + "6": "neutral", + "7": "player", + "8": "ambient", + "9": "voice", + "10": "ui" + }, + "type": "varint" + } + ], + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "switch": "native", + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ { - "countType": "varint", + "name": "tagName", + "type": "string" + }, + { + "name": "entries", "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": "string" - } - ] + "array", + { + "countType": "varint", + "type": "varint" + } ] } ] + ] + } + ], + "topBitSetTerminatedArray": "native", + "u16": "native", + "u32": "native", + "u64": "native", + "u8": "native", + "varint": "native", + "varlong": "native", + "vec2f": [ + "container", + [ + { + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" } ] ], - "packet_common_remove_resource_pack": [ + "vec3f": [ "container", [ { - "name": "uuid", - "type": [ - "option", - "UUID" - ] + "name": "x", + "type": "f32" + }, + { + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" } ] ], - "packet_common_add_resource_pack": [ + "vec3f64": [ "container", [ { - "name": "uuid", - "type": "UUID" + "name": "x", + "type": "f64" }, { - "name": "url", - "type": "string" + "name": "y", + "type": "f64" }, { - "name": "hash", - "type": "string" + "name": "z", + "type": "f64" + } + ] + ], + "vec3i": [ + "container", + [ + { + "name": "x", + "type": "varint" }, { - "name": "forced", - "type": "bool" + "name": "y", + "type": "varint" }, { - "name": "promptMessage", - "type": [ - "option", - "anonymousNbt" - ] + "name": "z", + "type": "varint" } ] ], - "ServerLinkType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "bug_report", - "1": "community_guidelines", - "2": "support", - "3": "status", - "4": "feedback", - "5": "community", - "6": "website", - "7": "forums", - "8": "news", - "9": "announcements" - } - } - ], - "packet_common_server_links": [ + "vec3i32": [ "container", [ { - "name": "links", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "hasKnownType", - "type": "bool" - }, - { - "name": "knownType", - "type": [ - "switch", - { - "compareTo": "hasKnownType", - "fields": { - "true": "ServerLinkType" - } - } - ] - }, - { - "name": "unknownType", - "type": [ - "switch", - { - "compareTo": "hasKnownType", - "fields": { - "false": "anonymousNbt" - } - } - ] - }, - { - "name": "link", - "type": "string" - } - ] - ] - } - ] + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "i32" } ] ], - "packet_common_clear_dialog": [ - "container", - [] - ], - "packet_common_custom_click_action": [ + "vec4f": [ "container", [ { - "name": "id", - "type": "string" + "name": "x", + "type": "f32" }, { - "name": "nbt", - "type": [ - "option", - "anonymousNbt" - ] + "name": "y", + "type": "f32" + }, + { + "name": "z", + "type": "f32" + }, + { + "name": "w", + "type": "f32" } ] - ] + ], + "void": "native" }, "handshaking": { "toClient": { @@ -5015,8 +5015,8 @@ "type": [ "mapper", { - "type": "varint", - "mappings": {} + "mappings": {}, + "type": "varint" } ] }, @@ -5036,6 +5036,46 @@ }, "toServer": { "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "legacy_server_list_ping": "packet_legacy_server_list_ping", + "set_protocol": "packet_set_protocol" + } + } + ] + } + ] + ], + "packet_legacy_server_list_ping": [ + "container", + [ + { + "name": "payload", + "type": "u8" + } + ] + ], "packet_set_protocol": [ "container", [ @@ -5056,16 +5096,13 @@ "type": "varint" } ] - ], - "packet_legacy_server_list_ping": [ - "container", - [ - { - "name": "payload", - "type": "u8" - } - ] - ], + ] + } + } + }, + "status": { + "toClient": { + "types": { "packet": [ "container", [ @@ -5074,11 +5111,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" - } + "0x00": "server_info", + "0x01": "ping" + }, + "type": "varint" } ] }, @@ -5089,38 +5126,36 @@ { "compareTo": "name", "fields": { - "set_protocol": "packet_set_protocol", - "legacy_server_list_ping": "packet_legacy_server_list_ping" + "ping": "packet_ping", + "server_info": "packet_server_info" } } ] } ] - ] - } - } - }, - "status": { - "toClient": { - "types": { - "packet_server_info": [ + ], + "packet_ping": [ "container", [ { - "name": "response", - "type": "string" + "name": "time", + "type": "i64" } ] ], - "packet_ping": [ + "packet_server_info": [ "container", [ { - "name": "time", - "type": "i64" + "name": "response", + "type": "string" } ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -5129,11 +5164,11 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "server_info", + "0x00": "ping_start", "0x01": "ping" - } + }, + "type": "varint" } ] }, @@ -5144,21 +5179,13 @@ { "compareTo": "name", "fields": { - "server_info": "packet_server_info", - "ping": "packet_ping" + "ping": "packet_ping", + "ping_start": "packet_ping_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_ping_start": [ - "container", - [] ], "packet_ping": [ "container", @@ -5169,6 +5196,16 @@ } ] ], + "packet_ping_start": [ + "container", + [] + ] + } + } + }, + "login": { + "toClient": { + "types": { "packet": [ "container", [ @@ -5177,11 +5214,15 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" - } + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request", + "0x05": "cookie_request" + }, + "type": "varint" } ] }, @@ -5192,20 +5233,27 @@ { "compareTo": "name", "fields": { - "ping_start": "packet_ping_start", - "ping": "packet_ping" + "compress": "packet_compress", + "cookie_request": "packet_common_cookie_request", + "disconnect": "packet_disconnect", + "encryption_begin": "packet_encryption_begin", + "login_plugin_request": "packet_login_plugin_request", + "success": "packet_success" } } ] } ] - ] - } - } - }, - "login": { - "toClient": { - "types": { + ], + "packet_compress": [ + "container", + [ + { + "name": "threshold", + "type": "varint" + } + ] + ], "packet_disconnect": [ "container", [ @@ -5246,6 +5294,23 @@ } ] ], + "packet_login_plugin_request": [ + "container", + [ + { + "name": "messageId", + "type": "varint" + }, + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], "packet_success": [ "container", [ @@ -5287,33 +5352,11 @@ ] } ] - ], - "packet_compress": [ - "container", - [ - { - "name": "threshold", - "type": "varint" - } - ] - ], - "packet_login_plugin_request": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -5322,15 +5365,14 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "disconnect", + "0x00": "login_start", "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request", - "0x05": "cookie_request" - } + "0x02": "login_plugin_response", + "0x03": "login_acknowledged", + "0x04": "cookie_response" + }, + "type": "varint" } ] }, @@ -5341,34 +5383,16 @@ { "compareTo": "name", "fields": { - "disconnect": "packet_disconnect", + "cookie_response": "packet_common_cookie_response", "encryption_begin": "packet_encryption_begin", - "success": "packet_success", - "compress": "packet_compress", - "login_plugin_request": "packet_login_plugin_request", - "cookie_request": "packet_common_cookie_request" + "login_acknowledged": "packet_login_acknowledged", + "login_plugin_response": "packet_login_plugin_response", + "login_start": "packet_login_start" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_login_start": [ - "container", - [ - { - "name": "username", - "type": "string" - }, - { - "name": "playerUUID", - "type": "UUID" - } - ] ], "packet_encryption_begin": [ "container", @@ -5393,6 +5417,10 @@ } ] ], + "packet_login_acknowledged": [ + "container", + [] + ], "packet_login_plugin_response": [ "container", [ @@ -5409,10 +5437,25 @@ } ] ], - "packet_login_acknowledged": [ + "packet_login_start": [ "container", - [] - ], + [ + { + "name": "username", + "type": "string" + }, + { + "name": "playerUUID", + "type": "UUID" + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { "packet": [ "container", [ @@ -5421,14 +5464,29 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response", - "0x03": "login_acknowledged", - "0x04": "cookie_response" - } + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links", + "0x11": "clear_dialog", + "0x12": "show_dialog", + "0x13": "code_of_conduct" + }, + "type": "varint" } ] }, @@ -5439,23 +5497,32 @@ { "compareTo": "name", "fields": { - "login_start": "packet_login_start", - "encryption_begin": "packet_encryption_begin", - "login_plugin_response": "packet_login_plugin_response", - "login_acknowledged": "packet_login_acknowledged", - "cookie_response": "packet_common_cookie_response" + "add_resource_pack": "packet_common_add_resource_pack", + "clear_dialog": "packet_common_clear_dialog", + "code_of_conduct": "packet_code_of_conduct", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "show_dialog": "packet_show_dialog", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" } } ] } ] - ] - } - } - }, - "configuration": { - "toClient": { - "types": { + ], "packet_code_of_conduct": [ "container", [ @@ -5487,6 +5554,21 @@ } ] ], + "packet_feature_flags": [ + "container", + [ + { + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], "packet_finish_configuration": [ "container", [] @@ -5509,10 +5591,6 @@ } ] ], - "packet_reset_chat": [ - "container", - [] - ], "packet_registry_data": [ "container", [ @@ -5547,18 +5625,16 @@ } ] ], - "packet_feature_flags": [ + "packet_reset_chat": [ + "container", + [] + ], + "packet_show_dialog": [ "container", [ { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "dialog", + "type": "anonymousNbt" } ] ], @@ -5588,16 +5664,11 @@ ] } ] - ], - "packet_show_dialog": [ - "container", - [ - { - "name": "dialog", - "type": "anonymousNbt" - } - ] - ], + ] + } + }, + "toServer": { + "types": { "packet": [ "container", [ @@ -5606,29 +5677,19 @@ "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", "0x03": "finish_configuration", "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links", - "0x11": "clear_dialog", - "0x12": "show_dialog", - "0x13": "code_of_conduct" - } + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_click_action", + "0x09": "accept_code_of_conduct" + }, + "type": "varint" } ] }, @@ -5639,36 +5700,22 @@ { "compareTo": "name", "fields": { - "cookie_request": "packet_common_cookie_request", + "accept_code_of_conduct": "packet_accept_code_of_conduct", + "cookie_response": "packet_common_cookie_response", + "custom_click_action": "packet_common_custom_click_action", "custom_payload": "packet_custom_payload", - "disconnect": "packet_disconnect", "finish_configuration": "packet_finish_configuration", "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "reset_chat": "packet_reset_chat", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "store_cookie": "packet_common_store_cookie", - "transfer": "packet_common_transfer", - "feature_flags": "packet_feature_flags", - "tags": "packet_tags", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", "select_known_packs": "packet_common_select_known_packs", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links", - "clear_dialog": "packet_common_clear_dialog", - "show_dialog": "packet_show_dialog", - "code_of_conduct": "packet_code_of_conduct" + "settings": "packet_common_settings" } } ] } ] - ] - } - }, - "toServer": { - "types": { + ], "packet_accept_code_of_conduct": [ "container", [] @@ -5720,60 +5767,287 @@ "type": "varint" } ] + ] + } + } + }, + "play": { + "toClient": { + "types": { + "ChatType": [ + "container", + [ + { + "name": "translationKey", + "type": "string" + }, + { + "name": "parameters", + "type": [ + "array", + { + "countType": "varint", + "type": "ChatTypeParameterType" + } + ] + }, + { + "name": "style", + "type": "anonymousNbt" + } + ] ], - "packet": [ + "ChatTypeParameterType": [ + "mapper", + { + "mappings": { + "0": "content", + "1": "sender", + "2": "target" + }, + "type": "varint" + } + ], + "ChatTypes": [ "container", [ { - "name": "name", + "name": "chat", + "type": "ChatType" + }, + { + "name": "narration", + "type": "ChatType" + } + ] + ], + "ChatTypesHolder": [ + "registryEntryHolder", + { + "baseName": "chatType", + "otherwise": { + "name": "data", + "type": "ChatTypes" + } + } + ], + "ExplosionParticleEntry": [ + "container", + [ + { + "name": "data", + "type": "ExplosionParticleInfo" + }, + { + "name": "weight", + "type": "varint" + } + ] + ], + "ExplosionParticleInfo": [ + "container", + [ + { + "name": "particle", + "type": "Particle" + }, + { + "name": "scaling", + "type": "f32" + }, + { + "name": "speed", + "type": "f32" + } + ] + ], + "PositionUpdateRelatives": [ + "bitflags", + { + "flags": [ + "x", + "y", + "z", + "yaw", + "pitch", + "dx", + "dy", + "dz", + "yawDelta" + ], + "type": "u32" + } + ], + "RecipeBookSetting": [ + "container", + [ + { + "name": "open", + "type": "bool" + }, + { + "name": "filtering", + "type": "bool" + } + ] + ], + "RecipeDisplay": [ + "container", + [ + { + "name": "type", "type": [ "mapper", { - "type": "varint", "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_click_action", - "0x09": "accept_code_of_conduct" - } + "0": "crafting_shapeless", + "1": "crafting_shaped", + "2": "furnace", + "3": "stonecutter", + "4": "smithing" + }, + "type": "varint" } ] }, { - "name": "params", + "name": "data", "type": [ "switch", { - "compareTo": "name", + "compareTo": "type", "fields": { - "settings": "packet_common_settings", - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "custom_click_action": "packet_common_custom_click_action", - "accept_code_of_conduct": "packet_accept_code_of_conduct" + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ] + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "crafting_shapeless": [ + "container", + [ + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } + ] + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "furnace": [ + "container", + [ + { + "name": "ingredient", + "type": "SlotDisplay" + }, + { + "name": "fuel", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "experience", + "type": "f32" + } + ] + ], + "smithing": [ + "container", + [ + { + "name": "template", + "type": "SlotDisplay" + }, + { + "name": "base", + "type": "SlotDisplay" + }, + { + "name": "addition", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ], + "stonecutter": [ + "container", + [ + { + "name": "ingredient", + "type": "SlotDisplay" + }, + { + "name": "result", + "type": "SlotDisplay" + }, + { + "name": "craftingStation", + "type": "SlotDisplay" + } + ] + ] } } ] } ] - ] - } - } - }, - "play": { - "toClient": { - "types": { + ], "SlotDisplay": [ "container", [ @@ -5782,7 +6056,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "empty", "1": "any_fuel", @@ -5795,7 +6068,8 @@ "8": "smithing_trim", "9": "with_remainder", "10": "composite" - } + }, + "type": "varint" } ] }, @@ -5806,43 +6080,40 @@ { "compareTo": "type", "fields": { - "empty": "void", "any_fuel": "void", - "with_any_potion": [ - "container", - [ - { - "name": "base", - "type": "SlotDisplay" - } - ] + "composite": [ + "array", + { + "countType": "varint", + "type": "SlotDisplay" + } ], - "only_with_component": [ + "dyed_slot_demo": [ "container", [ { - "name": "source", + "name": "dye", "type": "SlotDisplay" }, { - "name": "component", - "type": "SlotComponentType" + "name": "target", + "type": "SlotDisplay" } ] ], + "empty": "void", "item": "varint", "item_stack": "Slot", - "tag": "string", - "dyed_slot_demo": [ + "only_with_component": [ "container", [ { - "name": "dye", + "name": "source", "type": "SlotDisplay" }, { - "name": "target", - "type": "SlotDisplay" + "name": "component", + "type": "SlotComponentType" } ] ], @@ -5872,6 +6143,16 @@ } ] ], + "tag": "string", + "with_any_potion": [ + "container", + [ + { + "name": "base", + "type": "SlotDisplay" + } + ] + ], "with_remainder": [ "container", [ @@ -5884,13 +6165,6 @@ "type": "SlotDisplay" } ] - ], - "composite": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } ] } } @@ -5898,289 +6172,557 @@ } ] ], - "RecipeDisplay": [ + "SpawnInfo": [ "container", [ { - "name": "type", + "name": "dimension", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "hashedSeed", + "type": "i64" + }, + { + "name": "gamemode", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "crafting_shapeless", - "1": "crafting_shaped", - "2": "furnace", - "3": "stonecutter", - "4": "smithing" - } + "0": "survival", + "1": "creative", + "2": "adventure", + "3": "spectator" + }, + "type": "i8" + } + ] + }, + { + "name": "previousGamemode", + "type": "u8" + }, + { + "name": "isDebug", + "type": "bool" + }, + { + "name": "isFlat", + "type": "bool" + }, + { + "name": "death", + "type": [ + "option", + "GlobalPos" + ] + }, + { + "name": "portalCooldown", + "type": "varint" + }, + { + "name": "seaLevel", + "type": "varint" + } + ] + ], + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "animation", + "0x03": "statistics", + "0x04": "acknowledge_player_digging", + "0x05": "block_break_animation", + "0x06": "tile_entity_data", + "0x07": "block_action", + "0x08": "block_change", + "0x09": "boss_bar", + "0x0a": "difficulty", + "0x0b": "chunk_batch_finished", + "0x0c": "chunk_batch_start", + "0x0d": "chunk_biomes", + "0x0e": "clear_titles", + "0x0f": "tab_complete", + "0x10": "declare_commands", + "0x11": "close_window", + "0x12": "window_items", + "0x13": "craft_progress_bar", + "0x14": "set_slot", + "0x15": "cookie_request", + "0x16": "set_cooldown", + "0x17": "chat_suggestions", + "0x18": "custom_payload", + "0x19": "damage_event", + "0x1a": "debug_block_value", + "0x1b": "debug_chunk_value", + "0x1c": "debug_entity_value", + "0x1d": "debug_event", + "0x1e": "debug_sample", + "0x1f": "hide_message", + "0x20": "kick_disconnect", + "0x21": "profileless_chat", + "0x22": "entity_status", + "0x23": "sync_entity_position", + "0x24": "explosion", + "0x25": "unload_chunk", + "0x26": "game_state_change", + "0x27": "game_rule_values", + "0x28": "game_test_highlight_pos", + "0x29": "open_horse_window", + "0x2a": "hurt_animation", + "0x2b": "initialize_world_border", + "0x2c": "keep_alive", + "0x2d": "map_chunk", + "0x2e": "world_event", + "0x2f": "world_particles", + "0x30": "update_light", + "0x31": "login", + "0x32": "low_disk_space_warning", + "0x33": "map", + "0x34": "trade_list", + "0x35": "rel_entity_move", + "0x36": "entity_move_look", + "0x37": "move_minecart", + "0x38": "entity_look", + "0x39": "vehicle_move", + "0x3a": "open_book", + "0x3b": "open_window", + "0x3c": "open_sign_entity", + "0x3d": "ping", + "0x3e": "ping_response", + "0x3f": "craft_recipe_response", + "0x40": "abilities", + "0x41": "player_chat", + "0x42": "end_combat_event", + "0x43": "enter_combat_event", + "0x44": "death_combat_event", + "0x45": "player_remove", + "0x46": "player_info", + "0x47": "face_player", + "0x48": "position", + "0x49": "player_rotation", + "0x4a": "recipe_book_add", + "0x4b": "recipe_book_remove", + "0x4c": "recipe_book_settings", + "0x4d": "entity_destroy", + "0x4e": "remove_entity_effect", + "0x4f": "reset_score", + "0x50": "remove_resource_pack", + "0x51": "add_resource_pack", + "0x52": "respawn", + "0x53": "entity_head_rotation", + "0x54": "multi_block_change", + "0x55": "select_advancement_tab", + "0x56": "server_data", + "0x57": "action_bar", + "0x58": "world_border_center", + "0x59": "world_border_lerp_size", + "0x5a": "world_border_size", + "0x5b": "world_border_warning_delay", + "0x5c": "world_border_warning_reach", + "0x5d": "camera", + "0x5e": "update_view_position", + "0x5f": "update_view_distance", + "0x60": "set_cursor_item", + "0x61": "spawn_position", + "0x62": "scoreboard_display_objective", + "0x63": "entity_metadata", + "0x64": "attach_entity", + "0x65": "entity_velocity", + "0x66": "entity_equipment", + "0x67": "experience", + "0x68": "update_health", + "0x69": "held_item_slot", + "0x6a": "scoreboard_objective", + "0x6b": "set_passengers", + "0x6c": "set_player_inventory", + "0x6d": "teams", + "0x6e": "scoreboard_score", + "0x6f": "simulation_distance", + "0x70": "set_title_subtitle", + "0x71": "update_time", + "0x72": "set_title_text", + "0x73": "set_title_time", + "0x74": "entity_sound_effect", + "0x75": "sound_effect", + "0x76": "start_configuration", + "0x77": "stop_sound", + "0x78": "store_cookie", + "0x79": "system_chat", + "0x7a": "playerlist_header", + "0x7b": "nbt_query_response", + "0x7c": "collect", + "0x7d": "entity_teleport", + "0x7e": "test_instance_block_status", + "0x7f": "set_ticking_state", + "0x80": "step_tick", + "0x81": "transfer", + "0x82": "advancements", + "0x83": "entity_update_attributes", + "0x84": "entity_effect", + "0x85": "declare_recipes", + "0x86": "tags", + "0x87": "set_projectile_power", + "0x88": "custom_report_details", + "0x89": "server_links", + "0x8a": "tracked_waypoint", + "0x8b": "clear_dialog", + "0x8c": "show_dialog" + }, + "type": "varint" } ] }, { - "name": "data", + "name": "params", "type": [ "switch", { - "compareTo": "type", + "compareTo": "name", "fields": { - "crafting_shapeless": [ - "container", - [ - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "crafting_shaped": [ - "container", - [ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "ingredients", - "type": [ - "array", - { - "countType": "varint", - "type": "SlotDisplay" - } - ] - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "furnace": [ - "container", - [ - { - "name": "ingredient", - "type": "SlotDisplay" - }, - { - "name": "fuel", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - }, - { - "name": "duration", - "type": "varint" - }, - { - "name": "experience", - "type": "f32" - } - ] - ], - "stonecutter": [ - "container", - [ - { - "name": "ingredient", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ], - "smithing": [ - "container", - [ - { - "name": "template", - "type": "SlotDisplay" - }, - { - "name": "base", - "type": "SlotDisplay" - }, - { - "name": "addition", - "type": "SlotDisplay" - }, - { - "name": "result", - "type": "SlotDisplay" - }, - { - "name": "craftingStation", - "type": "SlotDisplay" - } - ] - ] + "abilities": "packet_abilities", + "acknowledge_player_digging": "packet_acknowledge_player_digging", + "action_bar": "packet_action_bar", + "add_resource_pack": "packet_common_add_resource_pack", + "advancements": "packet_advancements", + "animation": "packet_animation", + "attach_entity": "packet_attach_entity", + "block_action": "packet_block_action", + "block_break_animation": "packet_block_break_animation", + "block_change": "packet_block_change", + "boss_bar": "packet_boss_bar", + "bundle_delimiter": "void", + "camera": "packet_camera", + "chat_suggestions": "packet_chat_suggestions", + "chunk_batch_finished": "packet_chunk_batch_finished", + "chunk_batch_start": "packet_chunk_batch_start", + "chunk_biomes": "packet_chunk_biomes", + "clear_dialog": "packet_common_clear_dialog", + "clear_titles": "packet_clear_titles", + "close_window": "packet_close_window", + "collect": "packet_collect", + "cookie_request": "packet_common_cookie_request", + "craft_progress_bar": "packet_craft_progress_bar", + "craft_recipe_response": "packet_craft_recipe_response", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "damage_event": "packet_damage_event", + "death_combat_event": "packet_death_combat_event", + "debug_block_value": "packet_debug_block_value", + "debug_chunk_value": "packet_debug_chunk_value", + "debug_entity_value": "packet_debug_entity_value", + "debug_event": "packet_debug_event", + "debug_sample": "packet_debug_sample", + "declare_commands": "packet_declare_commands", + "declare_recipes": "packet_declare_recipes", + "difficulty": "packet_difficulty", + "end_combat_event": "packet_end_combat_event", + "enter_combat_event": "packet_enter_combat_event", + "entity_destroy": "packet_entity_destroy", + "entity_effect": "packet_entity_effect", + "entity_equipment": "packet_entity_equipment", + "entity_head_rotation": "packet_entity_head_rotation", + "entity_look": "packet_entity_look", + "entity_metadata": "packet_entity_metadata", + "entity_move_look": "packet_entity_move_look", + "entity_sound_effect": "packet_entity_sound_effect", + "entity_status": "packet_entity_status", + "entity_teleport": "packet_entity_teleport", + "entity_update_attributes": "packet_entity_update_attributes", + "entity_velocity": "packet_entity_velocity", + "experience": "packet_experience", + "explosion": "packet_explosion", + "face_player": "packet_face_player", + "game_rule_values": "packet_game_rule_values", + "game_state_change": "packet_game_state_change", + "game_test_highlight_pos": "packet_game_test_highlight_pos", + "held_item_slot": "packet_held_item_slot", + "hide_message": "packet_hide_message", + "hurt_animation": "packet_hurt_animation", + "initialize_world_border": "packet_initialize_world_border", + "keep_alive": "packet_keep_alive", + "kick_disconnect": "packet_kick_disconnect", + "login": "packet_login", + "low_disk_space_warning": "packet_low_disk_space_warning", + "map": "packet_map", + "map_chunk": "packet_map_chunk", + "move_minecart": "packet_move_minecart", + "multi_block_change": "packet_multi_block_change", + "nbt_query_response": "packet_nbt_query_response", + "open_book": "packet_open_book", + "open_horse_window": "packet_open_horse_window", + "open_sign_entity": "packet_open_sign_entity", + "open_window": "packet_open_window", + "ping": "packet_ping", + "ping_response": "packet_ping_response", + "player_chat": "packet_player_chat", + "player_info": "packet_player_info", + "player_remove": "packet_player_remove", + "player_rotation": "packet_player_rotation", + "playerlist_header": "packet_playerlist_header", + "position": "packet_position", + "profileless_chat": "packet_profileless_chat", + "recipe_book_add": "packet_recipe_book_add", + "recipe_book_remove": "packet_recipe_book_remove", + "recipe_book_settings": "packet_recipe_book_settings", + "rel_entity_move": "packet_rel_entity_move", + "remove_entity_effect": "packet_remove_entity_effect", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_score": "packet_reset_score", + "respawn": "packet_respawn", + "scoreboard_display_objective": "packet_scoreboard_display_objective", + "scoreboard_objective": "packet_scoreboard_objective", + "scoreboard_score": "packet_scoreboard_score", + "select_advancement_tab": "packet_select_advancement_tab", + "server_data": "packet_server_data", + "server_links": "packet_common_server_links", + "set_cooldown": "packet_set_cooldown", + "set_cursor_item": "packet_set_cursor_item", + "set_passengers": "packet_set_passengers", + "set_player_inventory": "packet_set_player_inventory", + "set_projectile_power": "packet_set_projectile_power", + "set_slot": "packet_set_slot", + "set_ticking_state": "packet_set_ticking_state", + "set_title_subtitle": "packet_set_title_subtitle", + "set_title_text": "packet_set_title_text", + "set_title_time": "packet_set_title_time", + "show_dialog": "packet_show_dialog", + "simulation_distance": "packet_simulation_distance", + "sound_effect": "packet_sound_effect", + "spawn_entity": "packet_spawn_entity", + "spawn_position": "packet_spawn_position", + "start_configuration": "packet_start_configuration", + "statistics": "packet_statistics", + "step_tick": "packet_step_tick", + "stop_sound": "packet_stop_sound", + "store_cookie": "packet_common_store_cookie", + "sync_entity_position": "packet_sync_entity_position", + "system_chat": "packet_system_chat", + "tab_complete": "packet_tab_complete", + "tags": "packet_tags", + "teams": "packet_teams", + "test_instance_block_status": "packet_test_instance_block_status", + "tile_entity_data": "packet_tile_entity_data", + "tracked_waypoint": "packet_tracked_waypoint", + "trade_list": "packet_trade_list", + "transfer": "packet_common_transfer", + "unload_chunk": "packet_unload_chunk", + "update_health": "packet_update_health", + "update_light": "packet_update_light", + "update_time": "packet_update_time", + "update_view_distance": "packet_update_view_distance", + "update_view_position": "packet_update_view_position", + "vehicle_move": "packet_vehicle_move", + "window_items": "packet_window_items", + "world_border_center": "packet_world_border_center", + "world_border_lerp_size": "packet_world_border_lerp_size", + "world_border_size": "packet_world_border_size", + "world_border_warning_delay": "packet_world_border_warning_delay", + "world_border_warning_reach": "packet_world_border_warning_reach", + "world_event": "packet_world_event", + "world_particles": "packet_world_particles" } } ] } ] ], - "SpawnInfo": [ + "packet_abilities": [ "container", [ { - "name": "dimension", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "hashedSeed", - "type": "i64" - }, - { - "name": "gamemode", - "type": [ - "mapper", - { - "type": "i8", - "mappings": { - "0": "survival", - "1": "creative", - "2": "adventure", - "3": "spectator" - } - } - ] - }, - { - "name": "previousGamemode", - "type": "u8" - }, - { - "name": "isDebug", - "type": "bool" - }, - { - "name": "isFlat", - "type": "bool" - }, - { - "name": "death", - "type": [ - "option", - "GlobalPos" - ] + "name": "flags", + "type": "i8" }, { - "name": "portalCooldown", - "type": "varint" + "name": "flyingSpeed", + "type": "f32" }, { - "name": "seaLevel", - "type": "varint" + "name": "walkingSpeed", + "type": "f32" } ] ], - "packet_spawn_entity": [ + "packet_acknowledge_player_digging": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "objectUUID", - "type": "UUID" - }, - { - "name": "type", + "name": "sequenceId", "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "velocity", - "type": "lpVec3" - }, + } + ] + ], + "packet_action_bar": [ + "container", + [ { - "name": "pitch", - "type": "i8" - }, + "name": "text", + "type": "anonymousNbt" + } + ] + ], + "packet_advancements": [ + "container", + [ { - "name": "yaw", - "type": "i8" + "name": "reset", + "type": "bool" }, { - "name": "headPitch", - "type": "i8" + "name": "advancementMapping", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "container", + [ + { + "name": "parentId", + "type": [ + "option", + "string" + ] + }, + { + "name": "displayData", + "type": [ + "option", + [ + "container", + [ + { + "name": "title", + "type": "anonymousNbt" + }, + { + "name": "description", + "type": "anonymousNbt" + }, + { + "name": "icon", + "type": "Slot" + }, + { + "name": "frameType", + "type": "varint" + }, + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "signed": false, + "size": 29 + }, + { + "name": "hidden", + "signed": false, + "size": 1 + }, + { + "name": "show_toast", + "signed": false, + "size": 1 + }, + { + "name": "has_background_texture", + "signed": false, + "size": 1 + } + ] + ] + }, + { + "name": "backgroundTexture", + "type": [ + "switch", + { + "compareTo": "flags/has_background_texture", + "default": "void", + "fields": { + "1": "string" + } + } + ] + }, + { + "name": "xCord", + "type": "f32" + }, + { + "name": "yCord", + "type": "f32" + } + ] + ] + ] + }, + { + "name": "requirements", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + }, + { + "name": "sendsTelemtryData", + "type": "bool" + } + ] + ] + } + ] + ] + } + ] }, { - "name": "objectData", - "type": "varint" - } - ] - ], - "packet_animation": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "identifiers", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] }, { - "name": "animation", - "type": "u8" - } - ] - ], - "packet_statistics": [ - "container", - [ - { - "name": "entries", + "name": "progressMapping", "type": [ "array", { @@ -6189,34 +6731,46 @@ "container", [ { - "name": "categoryId", - "type": "varint" - }, - { - "name": "statisticId", - "type": "varint" + "name": "key", + "type": "string" }, { "name": "value", - "type": "varint" + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "criterionIdentifier", + "type": "string" + }, + { + "name": "criterionProgress", + "type": [ + "option", + "i64" + ] + } + ] + ] + } + ] } ] ] } ] - } - ] - ], - "packet_acknowledge_player_digging": [ - "container", - [ + }, { - "name": "sequenceId", - "type": "varint" + "name": "showAdvancements", + "type": "bool" } ] ], - "packet_block_break_animation": [ + "packet_animation": [ "container", [ { @@ -6224,29 +6778,21 @@ "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "destroyStage", - "type": "i8" + "name": "animation", + "type": "u8" } ] ], - "packet_tile_entity_data": [ + "packet_attach_entity": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "entityId", + "type": "i32" }, { - "name": "nbtData", - "type": "anonOptionalNbt" + "name": "vehicleId", + "type": "i32" } ] ], @@ -6271,6 +6817,23 @@ } ] ], + "packet_block_break_animation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "destroyStage", + "type": "i8" + } + ] + ], "packet_block_change": [ "container", [ @@ -6301,11 +6864,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "anonymousNbt", "3": "anonymousNbt" - }, - "default": "void" + } } ] }, @@ -6315,11 +6878,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "f32", "2": "f32" - }, - "default": "void" + } } ] }, @@ -6329,11 +6892,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -6343,11 +6906,11 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "varint", "4": "varint" - }, - "default": "void" + } } ] }, @@ -6357,106 +6920,62 @@ "switch", { "compareTo": "action", + "default": "void", "fields": { "0": "u8", "5": "u8" - }, - "default": "void" - } - ] - } - ] - ], - "packet_difficulty": [ - "container", - [ - { - "name": "difficulty", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "peaceful", - "1": "easy", - "2": "normal", - "3": "hard" } } ] - }, - { - "name": "difficultyLocked", - "type": "bool" } ] ], - "packet_chunk_batch_finished": [ + "packet_camera": [ "container", [ { - "name": "batchSize", + "name": "cameraId", "type": "varint" } ] ], - "packet_chunk_batch_start": [ - "container", - [] - ], - "packet_chunk_biomes": [ + "packet_chat_suggestions": [ "container", [ { - "name": "biomes", + "name": "action", + "type": "varint" + }, + { + "name": "entries", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "position", - "type": "packedChunkPos" - }, - { - "name": "data", - "type": "ByteArray" - } - ] - ] + "type": "string" } ] } ] ], - "packet_clear_titles": [ + "packet_chunk_batch_finished": [ "container", [ { - "name": "reset", - "type": "bool" + "name": "batchSize", + "type": "varint" } ] ], - "packet_tab_complete": [ + "packet_chunk_batch_start": [ + "container", + [] + ], + "packet_chunk_biomes": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "start", - "type": "varint" - }, - { - "name": "length", - "type": "varint" - }, - { - "name": "matches", + "name": "biomes", "type": [ "array", { @@ -6465,15 +6984,12 @@ "container", [ { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "anonymousNbt" - ] + "name": "position", + "type": "packedChunkPos" + }, + { + "name": "data", + "type": "ByteArray" } ] ] @@ -6482,22 +6998,12 @@ } ] ], - "packet_declare_commands": [ + "packet_clear_titles": [ "container", [ { - "name": "nodes", - "type": [ - "array", - { - "countType": "varint", - "type": "command_node" - } - ] - }, - { - "name": "rootIndex", - "type": "varint" + "name": "reset", + "type": "bool" } ] ], @@ -6510,30 +7016,20 @@ } ] ], - "packet_window_items": [ + "packet_collect": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", + "name": "collectedEntityId", "type": "varint" }, { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "Slot" - } - ] + "name": "collectorEntityId", + "type": "varint" }, { - "name": "carriedItem", - "type": "Slot" + "name": "pickupItemCount", + "type": "varint" } ] ], @@ -6554,7 +7050,7 @@ } ] ], - "packet_set_slot": [ + "packet_craft_recipe_response": [ "container", [ { @@ -6562,48 +7058,8 @@ "type": "ContainerID" }, { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" - } - ] - ], - "packet_set_cooldown": [ - "container", - [ - { - "name": "cooldownGroup", - "type": "string" - }, - { - "name": "cooldownTicks", - "type": "varint" - } - ] - ], - "packet_chat_suggestions": [ - "container", - [ - { - "name": "action", - "type": "varint" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] + "name": "recipeDisplay", + "type": "RecipeDisplay" } ] ], @@ -6648,763 +7104,803 @@ } ] ], - "packet_debug_block_value": [ - "container", - [ - { - "name": "blockPos", - "type": "position" - }, - { - "name": "update", - "type": "DebugSubscriptionUpdate" - } - ] - ], - "packet_debug_chunk_value": [ - "container", - [ - { - "name": "chunkPos", - "type": "packedChunkPos" - }, - { - "name": "update", - "type": "DebugSubscriptionUpdate" - } - ] - ], - "packet_debug_entity_value": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "update", - "type": "DebugSubscriptionUpdate" - } - ] - ], - "packet_debug_event": [ - "container", - [ - { - "name": "event", - "type": "DebugSubscriptionEvent" - } - ] - ], - "packet_debug_sample": [ - "container", - [ - { - "name": "sample", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - }, - { - "name": "type", - "type": "varint" - } - ] - ], - "packet_hide_message": [ + "packet_death_combat_event": [ "container", [ { - "name": "id", + "name": "playerId", "type": "varint" }, { - "name": "signature", - "type": [ - "switch", - { - "compareTo": "id", - "fields": { - "0": [ - "buffer", - { - "count": 256 - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_kick_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "ChatTypeParameterType": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "content", - "1": "sender", - "2": "target" - } - } - ], - "ChatType": [ - "container", - [ - { - "name": "translationKey", - "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "ChatTypeParameterType" - } - ] - }, - { - "name": "style", + "name": "message", "type": "anonymousNbt" } ] ], - "ChatTypes": [ + "packet_debug_block_value": [ "container", [ { - "name": "chat", - "type": "ChatType" + "name": "blockPos", + "type": "position" }, { - "name": "narration", - "type": "ChatType" + "name": "update", + "type": "DebugSubscriptionUpdate" } ] ], - "ChatTypesHolder": [ - "registryEntryHolder", - { - "baseName": "chatType", - "otherwise": { - "name": "data", - "type": "ChatTypes" - } - } - ], - "packet_profileless_chat": [ + "packet_debug_chunk_value": [ "container", [ { - "name": "message", - "type": "anonymousNbt" - }, - { - "name": "type", - "type": "ChatTypesHolder" - }, - { - "name": "name", - "type": "anonymousNbt" + "name": "chunkPos", + "type": "packedChunkPos" }, { - "name": "target", - "type": [ - "option", - "anonymousNbt" - ] + "name": "update", + "type": "DebugSubscriptionUpdate" } ] ], - "packet_entity_status": [ + "packet_debug_entity_value": [ "container", [ { "name": "entityId", - "type": "i32" + "type": "varint" }, { - "name": "entityStatus", - "type": "i8" + "name": "update", + "type": "DebugSubscriptionUpdate" } ] ], - "packet_sync_entity_position": [ + "packet_debug_event": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "dx", - "type": "f64" - }, - { - "name": "dy", - "type": "f64" - }, - { - "name": "dz", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "event", + "type": "DebugSubscriptionEvent" } ] ], - "ExplosionParticleInfo": [ + "packet_debug_sample": [ "container", [ { - "name": "particle", - "type": "Particle" - }, - { - "name": "scaling", - "type": "f32" + "name": "sample", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "speed", - "type": "f32" + "name": "type", + "type": "varint" } ] ], - "ExplosionParticleEntry": [ + "packet_declare_commands": [ "container", [ { - "name": "data", - "type": "ExplosionParticleInfo" + "name": "nodes", + "type": [ + "array", + { + "countType": "varint", + "type": "command_node" + } + ] }, { - "name": "weight", + "name": "rootIndex", "type": "varint" } ] ], - "packet_explosion": [ + "packet_declare_recipes": [ "container", [ { - "name": "center", - "type": "vec3f64" - }, - { - "name": "radius", - "type": "f32" + "name": "recipes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "items", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ] }, { - "name": "blockCount", - "type": "i32" - }, + "name": "stoneCutterRecipes", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "input", + "type": "IDSet" + }, + { + "name": "slotDisplay", + "type": "SlotDisplay" + } + ] + ] + } + ] + } + ] + ], + "packet_difficulty": [ + "container", + [ { - "name": "playerKnockback", + "name": "difficulty", "type": [ - "option", - "vec3f64" + "mapper", + { + "mappings": { + "0": "peaceful", + "1": "easy", + "2": "normal", + "3": "hard" + }, + "type": "varint" + } ] }, { - "name": "explosionParticle", - "type": "Particle" - }, + "name": "difficultyLocked", + "type": "bool" + } + ] + ], + "packet_end_combat_event": [ + "container", + [ { - "name": "sound", - "type": "ItemSoundHolder" - }, + "name": "duration", + "type": "varint" + } + ] + ], + "packet_enter_combat_event": [ + "container", + [] + ], + "packet_entity_destroy": [ + "container", + [ { - "name": "blockParticles", + "name": "entityIds", "type": [ "array", { "countType": "varint", - "type": "ExplosionParticleEntry" + "type": "varint" } ] } ] ], - "packet_unload_chunk": [ + "packet_entity_effect": [ "container", [ { - "name": "chunkZ", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "chunkX", - "type": "i32" + "name": "effectId", + "type": "varint" + }, + { + "name": "amplifier", + "type": "varint" + }, + { + "name": "duration", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_game_state_change": [ + "packet_entity_equipment": [ "container", [ { - "name": "reason", + "name": "entityId", + "type": "varint" + }, + { + "name": "equipments", "type": [ - "mapper", + "topBitSetTerminatedArray", { - "type": "u8", - "mappings": { - "0": "no_respawn_block_available", - "1": "start_raining", - "2": "stop_raining", - "3": "change_game_mode", - "4": "win_game", - "5": "demo_event", - "6": "play_arrow_hit_sound", - "7": "rain_level_change", - "8": "thunder_level_change", - "9": "puffer_fish_sting", - "10": "guardian_elder_effect", - "11": "immediate_respawn", - "12": "limited_crafting", - "13": "level_chunks_load_start" - } + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "Slot" + } + ] + ] } ] + } + ] + ], + "packet_entity_head_rotation": [ + "container", + [ + { + "name": "entityId", + "type": "varint" }, { - "name": "gameMode", - "type": "f32" + "name": "headYaw", + "type": "i8" } ] ], - "packet_game_rule_values": [ + "packet_entity_look": [ "container", [ { - "name": "values", - "type": [ - "array", - { - "countType": "varint", - "type": "GameRule" - } - ] + "name": "entityId", + "type": "varint" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_game_test_highlight_pos": [ + "packet_entity_metadata": [ "container", [ { - "name": "absolutePos", - "type": "position" + "name": "entityId", + "type": "varint" }, { - "name": "relativePos", - "type": "position" + "name": "metadata", + "type": "entityMetadata" } ] ], - "packet_open_horse_window": [ + "packet_entity_move_look": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "entityId", + "type": "varint" }, { - "name": "nbSlots", - "type": "varint" + "name": "dX", + "type": "i16" }, { - "name": "entityId", - "type": "i32" + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_hurt_animation": [ + "packet_entity_sound_effect": [ "container", [ + { + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "soundCategory", + "type": "soundSource" + }, { "name": "entityId", "type": "varint" }, { - "name": "yaw", + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], - "packet_initialize_world_border": [ + "packet_entity_status": [ + "container", + [ + { + "name": "entityId", + "type": "i32" + }, + { + "name": "entityStatus", + "type": "i8" + } + ] + ], + "packet_entity_teleport": [ "container", [ + { + "name": "entityId", + "type": "varint" + }, { "name": "x", "type": "f64" }, { - "name": "z", + "name": "y", "type": "f64" }, { - "name": "oldDiameter", + "name": "z", "type": "f64" }, { - "name": "newDiameter", - "type": "f64" + "name": "yaw", + "type": "i8" }, { - "name": "speed", - "type": "varint" + "name": "pitch", + "type": "i8" }, { - "name": "portalTeleportBoundary", + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_entity_update_attributes": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "warningBlocks", + "name": "properties", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": [ + "mapper", + { + "mappings": { + "0": "generic.armor", + "1": "generic.armor_toughness", + "2": "generic.attack_damage", + "3": "generic.attack_knockback", + "4": "generic.attack_speed", + "5": "player.block_break_speed", + "6": "player.block_interaction_range", + "7": "burning_time", + "8": "camera_distance", + "9": "explosion_knockback_resistance", + "10": "player.entity_interaction_range", + "11": "generic.fall_damage_multiplier", + "12": "generic.flying_speed", + "13": "generic.follow_range", + "14": "generic.gravity", + "15": "generic.jump_strength", + "16": "generic.knockback_resistance", + "17": "generic.luck", + "18": "generic.max_absorption", + "19": "generic.max_health", + "20": "generic.movement_speed", + "21": "generic.safe_fall_distance", + "22": "generic.scale", + "23": "zombie.spawn_reinforcements", + "24": "generic.step_height", + "25": "submerged_mining_speed", + "26": "sweeping_damage_ratio", + "27": "tempt_range", + "28": "water_movement_efficiency", + "29": "waypoint_transmit_range", + "30": "waypoint_receive_range" + }, + "type": "varint" + } + ] + }, + { + "name": "value", + "type": "f64" + }, + { + "name": "modifiers", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "uuid", + "type": "string" + }, + { + "name": "amount", + "type": "f64" + }, + { + "name": "operation", + "type": "i8" + } + ] + ] + } + ] + } + ] + ] + } + ] + } + ] + ], + "packet_entity_velocity": [ + "container", + [ + { + "name": "entityId", "type": "varint" }, { - "name": "warningTime", - "type": "varint" + "name": "velocity", + "type": "lpVec3" } ] ], - "packet_keep_alive": [ + "packet_experience": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "experienceBar", + "type": "f32" + }, + { + "name": "level", + "type": "varint" + }, + { + "name": "totalExperience", + "type": "varint" } ] ], - "packet_map_chunk": [ + "packet_explosion": [ "container", [ { - "name": "x", - "type": "i32" + "name": "center", + "type": "vec3f64" + }, + { + "name": "radius", + "type": "f32" }, { - "name": "z", + "name": "blockCount", "type": "i32" }, { - "name": "heightmaps", + "name": "playerKnockback", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "world_surface_wg", - "1": "world_surface", - "2": "ocean_floor_wg", - "3": "ocean_floor", - "4": "motion_blocking", - "5": "motion_blocking_no_leaves" - } - } - ] - }, - { - "name": "data", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] - } - ] - ] - } + "option", + "vec3f64" ] }, { - "name": "chunkData", - "type": "ByteArray" + "name": "explosionParticle", + "type": "Particle" }, { - "name": "blockEntities", - "type": [ - "array", - { - "countType": "varint", - "type": "chunkBlockEntity" - } - ] + "name": "sound", + "type": "ItemSoundHolder" }, { - "name": "skyLightMask", + "name": "blockParticles", "type": [ "array", { "countType": "varint", - "type": "i64" + "type": "ExplosionParticleEntry" } ] + } + ] + ], + "packet_face_player": [ + "container", + [ + { + "name": "feet_eyes", + "type": "varint" }, { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "x", + "type": "f64" }, { - "name": "emptySkyLightMask", + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "isEntity", + "type": "bool" + }, + { + "name": "entityId", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } } ] }, { - "name": "emptyBlockLightMask", + "name": "entity_feet_eyes", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "i64" + "compareTo": "isEntity", + "default": "void", + "fields": { + "true": "varint" + } } ] - }, + } + ] + ], + "packet_game_rule_values": [ + "container", + [ { - "name": "skyLight", + "name": "values", "type": [ "array", { "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] + "type": "GameRule" } ] - }, + } + ] + ], + "packet_game_state_change": [ + "container", + [ { - "name": "blockLight", + "name": "reason", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] + "mappings": { + "0": "no_respawn_block_available", + "1": "start_raining", + "2": "stop_raining", + "3": "change_game_mode", + "4": "win_game", + "5": "demo_event", + "6": "play_arrow_hit_sound", + "7": "rain_level_change", + "8": "thunder_level_change", + "9": "puffer_fish_sting", + "10": "guardian_elder_effect", + "11": "immediate_respawn", + "12": "limited_crafting", + "13": "level_chunks_load_start" + }, + "type": "u8" } ] + }, + { + "name": "gameMode", + "type": "f32" } ] ], - "packet_world_event": [ + "packet_game_test_highlight_pos": [ "container", [ { - "name": "effectId", - "type": "i32" - }, - { - "name": "location", + "name": "absolutePos", "type": "position" }, { - "name": "data", - "type": "i32" - }, - { - "name": "global", - "type": "bool" + "name": "relativePos", + "type": "position" } ] ], - "packet_world_particles": [ + "packet_held_item_slot": [ "container", [ { - "name": "longDistance", - "type": "bool" - }, - { - "name": "alwaysShow", - "type": "bool" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "offsetX", - "type": "f32" - }, - { - "name": "offsetY", - "type": "f32" - }, + "name": "slot", + "type": "varint" + } + ] + ], + "packet_hide_message": [ + "container", + [ { - "name": "offsetZ", - "type": "f32" + "name": "id", + "type": "varint" }, { - "name": "velocityOffset", - "type": "f32" - }, + "name": "signature", + "type": [ + "switch", + { + "compareTo": "id", + "default": "void", + "fields": { + "0": [ + "buffer", + { + "count": 256 + } + ] + } + } + ] + } + ] + ], + "packet_hurt_animation": [ + "container", + [ { - "name": "amount", - "type": "i32" + "name": "entityId", + "type": "varint" }, { - "name": "particle", - "type": "Particle" + "name": "yaw", + "type": "f32" } ] ], - "packet_update_light": [ + "packet_initialize_world_border": [ "container", [ { - "name": "chunkX", - "type": "varint" + "name": "x", + "type": "f64" }, { - "name": "chunkZ", - "type": "varint" + "name": "z", + "type": "f64" }, { - "name": "skyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "oldDiameter", + "type": "f64" }, { - "name": "blockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "newDiameter", + "type": "f64" }, { - "name": "emptySkyLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "speed", + "type": "varint" }, { - "name": "emptyBlockLightMask", - "type": [ - "array", - { - "countType": "varint", - "type": "i64" - } - ] + "name": "portalTeleportBoundary", + "type": "varint" }, { - "name": "skyLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "warningBlocks", + "type": "varint" }, { - "name": "blockLight", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "u8" - } - ] - } - ] + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_kick_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "anonymousNbt" } ] ], @@ -7532,10 +8028,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -7545,10 +8041,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -7558,10 +8054,10 @@ "switch", { "compareTo": "columns", + "default": "u8", "fields": { "0": "void" - }, - "default": "u8" + } } ] }, @@ -7571,29 +8067,33 @@ "switch", { "compareTo": "columns", - "fields": { - "0": "void" - }, "default": [ "buffer", { "countType": "varint" } - ] + ], + "fields": { + "0": "void" + } } ] } ] ], - "packet_trade_list": [ + "packet_map_chunk": [ "container", [ { - "name": "windowId", - "type": "ContainerID" + "name": "x", + "type": "i32" }, { - "name": "trades", + "name": "z", + "type": "i32" + }, + { + "name": "heightmaps", "type": [ "array", { @@ -7602,79 +8102,31 @@ "container", [ { - "name": "inputItem1", + "name": "type", "type": [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" + "mapper", + { + "mappings": { + "0": "world_surface_wg", + "1": "world_surface", + "2": "ocean_floor_wg", + "3": "ocean_floor", + "4": "motion_blocking", + "5": "motion_blocking_no_leaves" }, - { - "name": "components", - "type": "ExactComponentMatcher" - } - ] + "type": "varint" + } ] }, { - "name": "outputItem", - "type": "Slot" - }, - { - "name": "inputItem2", + "name": "data", "type": [ - "option", - [ - "container", - [ - { - "name": "itemId", - "type": "varint" - }, - { - "name": "itemCount", - "type": "varint" - }, - { - "name": "components", - "type": "ExactComponentMatcher" - } - ] - ] + "array", + { + "countType": "varint", + "type": "i64" + } ] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" } ] ] @@ -7682,78 +8134,90 @@ ] }, { - "name": "villagerLevel", - "type": "varint" - }, - { - "name": "experience", - "type": "varint" - }, - { - "name": "isRegularVillager", - "type": "bool" - }, - { - "name": "canRestock", - "type": "bool" - } - ] - ], - "packet_rel_entity_move": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "dX", - "type": "i16" - }, - { - "name": "dY", - "type": "i16" - }, - { - "name": "dZ", - "type": "i16" + "name": "chunkData", + "type": "ByteArray" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_entity_move_look": [ - "container", - [ - { - "name": "entityId", - "type": "varint" + "name": "blockEntities", + "type": [ + "array", + { + "countType": "varint", + "type": "chunkBlockEntity" + } + ] }, { - "name": "dX", - "type": "i16" + "name": "skyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "dY", - "type": "i16" + "name": "blockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "dZ", - "type": "i16" + "name": "emptySkyLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "yaw", - "type": "i8" + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { - "name": "pitch", - "type": "i8" + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] }, { - "name": "onGround", - "type": "bool" + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], @@ -7800,49 +8264,54 @@ } ] ], - "packet_entity_look": [ + "packet_multi_block_change": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "chunkCoordinates", + "type": [ + "bitfield", + [ + { + "name": "x", + "signed": true, + "size": 22 + }, + { + "name": "z", + "signed": true, + "size": 22 + }, + { + "name": "y", + "signed": true, + "size": 20 + } + ] + ] }, { - "name": "onGround", - "type": "bool" + "name": "records", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_vehicle_move": [ + "packet_nbt_query_response": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "pitch", - "type": "f32" + "name": "nbt", + "type": "anonOptionalNbt" } ] ], @@ -7855,20 +8324,20 @@ } ] ], - "packet_open_window": [ + "packet_open_horse_window": [ "container", [ { "name": "windowId", - "type": "varint" + "type": "ContainerID" }, { - "name": "inventoryType", + "name": "nbSlots", "type": "varint" }, { - "name": "windowTitle", - "type": "anonymousNbt" + "name": "entityId", + "type": "i32" } ] ], @@ -7885,51 +8354,38 @@ } ] ], - "packet_ping": [ + "packet_open_window": [ "container", [ { - "name": "id", - "type": "i32" - } - ] - ], - "packet_ping_response": [ - "container", - [ + "name": "windowId", + "type": "varint" + }, { - "name": "id", - "type": "i64" + "name": "inventoryType", + "type": "varint" + }, + { + "name": "windowTitle", + "type": "anonymousNbt" } ] ], - "packet_craft_recipe_response": [ + "packet_ping": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "recipeDisplay", - "type": "RecipeDisplay" + "name": "id", + "type": "i32" } ] ], - "packet_abilities": [ + "packet_ping_response": [ "container", [ { - "name": "flags", - "type": "i8" - }, - { - "name": "flyingSpeed", - "type": "f32" - }, - { - "name": "walkingSpeed", - "type": "f32" + "name": "id", + "type": "i64" } ] ], @@ -7993,6 +8449,7 @@ "switch", { "compareTo": "filterType", + "default": "void", "fields": { "2": [ "array", @@ -8001,8 +8458,7 @@ "type": "i64" } ] - }, - "default": "void" + } } ] }, @@ -8023,47 +8479,6 @@ } ] ], - "packet_end_combat_event": [ - "container", - [ - { - "name": "duration", - "type": "varint" - } - ] - ], - "packet_enter_combat_event": [ - "container", - [] - ], - "packet_death_combat_event": [ - "container", - [ - { - "name": "playerId", - "type": "varint" - }, - { - "name": "message", - "type": "anonymousNbt" - } - ] - ], - "packet_player_remove": [ - "container", - [ - { - "name": "players", - "type": [ - "array", - { - "countType": "varint", - "type": "UUID" - } - ] - } - ] - ], "packet_player_info": [ "container", [ @@ -8072,7 +8487,6 @@ "type": [ "bitflags", { - "type": "u8", "flags": [ "add_player", "initialize_chat", @@ -8082,7 +8496,8 @@ "update_display_name", "update_hat", "update_list_order" - ] + ], + "type": "u8" } ] }, @@ -8105,10 +8520,10 @@ "switch", { "compareTo": "../action/add_player", + "default": "void", "fields": { "true": "game_profile_name_prop" - }, - "default": "void" + } } ] }, @@ -8118,10 +8533,10 @@ "switch", { "compareTo": "../action/initialize_chat", + "default": "void", "fields": { "true": "chat_session" - }, - "default": "void" + } } ] }, @@ -8131,10 +8546,10 @@ "switch", { "compareTo": "../action/update_game_mode", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -8144,10 +8559,10 @@ "switch", { "compareTo": "../action/update_listed", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -8157,10 +8572,10 @@ "switch", { "compareTo": "../action/update_latency", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -8170,13 +8585,13 @@ "switch", { "compareTo": "../action/update_display_name", + "default": "void", "fields": { "true": [ "option", "anonymousNbt" ] - }, - "default": "void" + } } ] }, @@ -8186,10 +8601,10 @@ "switch", { "compareTo": "../action/update_list_order", + "default": "void", "fields": { "true": "varint" - }, - "default": "void" + } } ] }, @@ -8199,10 +8614,10 @@ "switch", { "compareTo": "../action/update_hat", + "default": "void", "fields": { "true": "bool" - }, - "default": "void" + } } ] } @@ -8213,74 +8628,55 @@ } ] ], - "packet_face_player": [ + "packet_player_remove": [ "container", [ { - "name": "feet_eyes", - "type": "varint" - }, + "name": "players", + "type": [ + "array", + { + "countType": "varint", + "type": "UUID" + } + ] + } + ] + ], + "packet_player_rotation": [ + "container", + [ { - "name": "x", - "type": "f64" + "name": "yaw", + "type": "f32" }, { - "name": "y", - "type": "f64" + "name": "relativeYaw", + "type": "bool" }, { - "name": "z", - "type": "f64" + "name": "pitch", + "type": "f32" }, { - "name": "isEntity", + "name": "relativePitch", "type": "bool" - }, + } + ] + ], + "packet_playerlist_header": [ + "container", + [ { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] + "name": "header", + "type": "anonymousNbt" }, { - "name": "entity_feet_eyes", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] + "name": "footer", + "type": "anonymousNbt" } ] ], - "PositionUpdateRelatives": [ - "bitflags", - { - "type": "u32", - "flags": [ - "x", - "y", - "z", - "yaw", - "pitch", - "dx", - "dy", - "dz", - "yawDelta" - ] - } - ], "packet_position": [ "container", [ @@ -8326,24 +8722,27 @@ } ] ], - "packet_player_rotation": [ + "packet_profileless_chat": [ "container", [ { - "name": "yaw", - "type": "f32" + "name": "message", + "type": "anonymousNbt" }, { - "name": "relativeYaw", - "type": "bool" + "name": "type", + "type": "ChatTypesHolder" }, { - "name": "pitch", - "type": "f32" + "name": "name", + "type": "anonymousNbt" }, { - "name": "relativePitch", - "type": "bool" + "name": "target", + "type": [ + "option", + "anonymousNbt" + ] } ] ], @@ -8381,7 +8780,6 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "crafting_building_blocks", "1": "crafting_redstone", @@ -8396,7 +8794,8 @@ "10": "stonecutter", "11": "smithing", "12": "campfire" - } + }, + "type": "varint" } ] }, @@ -8421,11 +8820,11 @@ "type": [ "bitflags", { - "type": "u8", "flags": [ "notification", "highlight" - ] + ], + "type": "u8" } ] } @@ -8455,19 +8854,6 @@ } ] ], - "RecipeBookSetting": [ - "container", - [ - { - "name": "open", - "type": "bool" - }, - { - "name": "filtering", - "type": "bool" - } - ] - ], "packet_recipe_book_settings": [ "container", [ @@ -8489,18 +8875,28 @@ } ] ], - "packet_entity_destroy": [ + "packet_rel_entity_move": [ "container", [ { - "name": "entityIds", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] + "name": "entityId", + "type": "varint" + }, + { + "name": "dX", + "type": "i16" + }, + { + "name": "dY", + "type": "i16" + }, + { + "name": "dZ", + "type": "i16" + }, + { + "name": "onGround", + "type": "bool" } ] ], @@ -8546,52 +8942,154 @@ } ] ], - "packet_entity_head_rotation": [ + "packet_scoreboard_display_objective": [ + "container", + [ + { + "name": "position", + "type": "varint" + }, + { + "name": "name", + "type": "string" + } + ] + ], + "packet_scoreboard_objective": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "action", + "type": "i8" + }, + { + "name": "displayText", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] + }, + { + "name": "type", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + }, + { + "name": "number_format", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "option", + "varint" + ], + "2": [ + "option", + "varint" + ] + } + } + ] + }, + { + "name": "styling", + "type": [ + "switch", + { + "compareTo": "action", + "default": "void", + "fields": { + "0": [ + "switch", + { + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } + } + ], + "2": [ + "switch", + { + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } + } + ] + } + } + ] + } + ] + ], + "packet_scoreboard_score": [ "container", [ { - "name": "entityId", + "name": "itemName", + "type": "string" + }, + { + "name": "scoreName", + "type": "string" + }, + { + "name": "value", "type": "varint" }, { - "name": "headYaw", - "type": "i8" - } - ] - ], - "packet_multi_block_change": [ - "container", - [ + "name": "display_name", + "type": [ + "option", + "anonymousNbt" + ] + }, { - "name": "chunkCoordinates", + "name": "number_format", "type": [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] + "option", + "varint" ] }, { - "name": "records", + "name": "styling", "type": [ - "array", + "switch", { - "countType": "varint", - "type": "varint" + "compareTo": "number_format", + "default": "void", + "fields": { + "1": "anonymousNbt", + "2": "anonymousNbt" + } } ] } @@ -8625,187 +9123,283 @@ } ] ], - "packet_action_bar": [ + "packet_set_cooldown": [ "container", [ { - "name": "text", - "type": "anonymousNbt" + "name": "cooldownGroup", + "type": "string" + }, + { + "name": "cooldownTicks", + "type": "varint" } ] ], - "packet_world_border_center": [ + "packet_set_cursor_item": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "z", - "type": "f64" + "name": "contents", + "type": "Slot" } ] ], - "packet_world_border_lerp_size": [ + "packet_set_passengers": [ "container", [ { - "name": "oldDiameter", - "type": "f64" - }, - { - "name": "newDiameter", - "type": "f64" + "name": "entityId", + "type": "varint" }, { - "name": "speed", - "type": "varint" + "name": "passengers", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } ] ], - "packet_world_border_size": [ + "packet_set_player_inventory": [ "container", [ { - "name": "diameter", - "type": "f64" + "name": "slotId", + "type": "varint" + }, + { + "name": "contents", + "type": "Slot" } ] ], - "packet_world_border_warning_delay": [ + "packet_set_projectile_power": [ "container", [ { - "name": "warningTime", + "name": "id", "type": "varint" + }, + { + "name": "accelerationPower", + "type": "f64" } ] ], - "packet_world_border_warning_reach": [ + "packet_set_slot": [ "container", [ { - "name": "warningBlocks", + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "stateId", "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" } ] ], - "packet_camera": [ + "packet_set_ticking_state": [ "container", [ { - "name": "cameraId", - "type": "varint" + "name": "tick_rate", + "type": "f32" + }, + { + "name": "is_frozen", + "type": "bool" } ] ], - "packet_update_view_position": [ + "packet_set_title_subtitle": [ "container", [ { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" + "name": "text", + "type": "anonymousNbt" } ] ], - "packet_update_view_distance": [ + "packet_set_title_text": [ "container", [ { - "name": "viewDistance", - "type": "varint" + "name": "text", + "type": "anonymousNbt" } ] ], - "packet_set_cursor_item": [ + "packet_set_title_time": [ "container", [ { - "name": "contents", - "type": "Slot" + "name": "fadeIn", + "type": "i32" + }, + { + "name": "stay", + "type": "i32" + }, + { + "name": "fadeOut", + "type": "i32" } ] ], - "packet_spawn_position": "RespawnData", - "packet_scoreboard_display_objective": [ + "packet_show_dialog": [ "container", [ { - "name": "position", - "type": "varint" - }, - { - "name": "name", - "type": "string" + "name": "dialog", + "type": [ + "registryEntryHolder", + { + "baseName": "dialog", + "otherwise": { + "name": "data", + "type": "anonymousNbt" + } + } + ] } ] ], - "packet_entity_metadata": [ + "packet_simulation_distance": [ "container", [ { - "name": "entityId", + "name": "distance", "type": "varint" - }, - { - "name": "metadata", - "type": "entityMetadata" } ] ], - "packet_attach_entity": [ + "packet_sound_effect": [ "container", [ { - "name": "entityId", + "name": "sound", + "type": "ItemSoundHolder" + }, + { + "name": "soundCategory", + "type": "soundSource" + }, + { + "name": "x", "type": "i32" }, { - "name": "vehicleId", + "name": "y", + "type": "i32" + }, + { + "name": "z", "type": "i32" + }, + { + "name": "volume", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "seed", + "type": "i64" } ] ], - "packet_entity_velocity": [ + "packet_spawn_entity": [ "container", [ { "name": "entityId", "type": "varint" }, + { + "name": "objectUUID", + "type": "UUID" + }, + { + "name": "type", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, { "name": "velocity", "type": "lpVec3" + }, + { + "name": "pitch", + "type": "i8" + }, + { + "name": "yaw", + "type": "i8" + }, + { + "name": "headPitch", + "type": "i8" + }, + { + "name": "objectData", + "type": "varint" } ] ], - "packet_entity_equipment": [ + "packet_spawn_position": "RespawnData", + "packet_start_configuration": [ + "container", + [] + ], + "packet_statistics": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "equipments", + "name": "entries", "type": [ - "topBitSetTerminatedArray", + "array", { + "countType": "varint", "type": [ "container", [ { - "name": "slot", - "type": "i8" + "name": "categoryId", + "type": "varint" }, { - "name": "item", - "type": "Slot" + "name": "statisticId", + "type": "varint" + }, + { + "name": "value", + "type": "varint" } ] ] @@ -8814,176 +9408,179 @@ } ] ], - "packet_experience": [ + "packet_step_tick": [ "container", [ { - "name": "experienceBar", - "type": "f32" - }, - { - "name": "level", - "type": "varint" - }, - { - "name": "totalExperience", + "name": "tick_steps", "type": "varint" } ] ], - "packet_update_health": [ + "packet_stop_sound": [ "container", [ { - "name": "health", - "type": "f32" + "name": "flags", + "type": "i8" }, { - "name": "food", - "type": "varint" + "name": "source", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "1": "varint", + "3": "varint" + } + } + ] }, { - "name": "foodSaturation", - "type": "f32" + "name": "sound", + "type": [ + "switch", + { + "compareTo": "flags", + "default": "void", + "fields": { + "2": "string", + "3": "string" + } + } + ] } ] ], - "packet_held_item_slot": [ + "packet_sync_entity_position": [ "container", [ { - "name": "slot", + "name": "entityId", "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "dx", + "type": "f64" + }, + { + "name": "dy", + "type": "f64" + }, + { + "name": "dz", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_scoreboard_objective": [ + "packet_system_chat": [ "container", [ { - "name": "name", - "type": "string" + "name": "content", + "type": "anonymousNbt" }, { - "name": "action", - "type": "i8" - }, + "name": "isActionBar", + "type": "bool" + } + ] + ], + "packet_tab_complete": [ + "container", + [ { - "name": "displayText", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] + "name": "transactionId", + "type": "varint" }, { - "name": "type", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "varint", - "2": "varint" - }, - "default": "void" - } - ] + "name": "start", + "type": "varint" }, { - "name": "number_format", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": [ - "option", - "varint" - ], - "2": [ - "option", - "varint" - ] - }, - "default": "void" - } - ] + "name": "length", + "type": "varint" }, { - "name": "styling", + "name": "matches", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "0": [ - "switch", + "countType": "varint", + "type": [ + "container", + [ { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ], - "2": [ - "switch", + "name": "match", + "type": "string" + }, { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" + "name": "tooltip", + "type": [ + "option", + "anonymousNbt" + ] } ] - }, - "default": "void" + ] } ] } ] ], - "packet_set_passengers": [ + "packet_tags": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "passengers", + "name": "tags", "type": [ "array", { "countType": "varint", - "type": "varint" + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] } ] ], - "packet_set_player_inventory": [ - "container", - [ - { - "name": "slotId", - "type": "varint" - }, - { - "name": "contents", - "type": "Slot" - } - ] - ], "packet_teams": [ "container", [ @@ -8996,14 +9593,14 @@ "type": [ "mapper", { - "type": "i8", "mappings": { "0": "add", "1": "remove", "2": "change", "3": "join", "4": "leave" - } + }, + "type": "i8" } ] }, @@ -9013,6 +9610,7 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "add": [ "container", @@ -9026,11 +9624,11 @@ "type": [ "bitflags", { - "type": "u8", "flags": [ "friendly_fire", "see_friendly_invisible" - ] + ], + "type": "u8" } ] }, @@ -9039,13 +9637,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "always", "1": "never", "2": "hide_for_other_teams", "3": "hide_for_own_team" - } + }, + "type": "varint" } ] }, @@ -9054,13 +9652,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "always", "1": "never", "2": "push_other_teams", "3": "push_own_team" - } + }, + "type": "varint" } ] }, @@ -9090,11 +9688,11 @@ "type": [ "bitflags", { - "type": "u8", "flags": [ "friendly_fire", "see_friendly_invisible" - ] + ], + "type": "u8" } ] }, @@ -9103,13 +9701,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "always", "1": "never", "2": "hide_for_other_teams", "3": "hide_for_own_team" - } + }, + "type": "varint" } ] }, @@ -9118,13 +9716,13 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "always", "1": "never", "2": "push_other_teams", "3": "push_own_team" - } + }, + "type": "varint" } ] }, @@ -9142,8 +9740,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9153,601 +9750,442 @@ "switch", { "compareTo": "mode", + "default": "void", "fields": { "add": [ "array", { "countType": "varint", - "type": "string" - } - ], - "join": [ - "array", - { - "countType": "varint", - "type": "string" - } - ], - "leave": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - }, - "default": "void" - } - ] - } - ] - ], - "packet_scoreboard_score": [ - "container", - [ - { - "name": "itemName", - "type": "string" - }, - { - "name": "scoreName", - "type": "string" - }, - { - "name": "value", - "type": "varint" - }, - { - "name": "display_name", - "type": [ - "option", - "anonymousNbt" - ] - }, - { - "name": "number_format", - "type": [ - "option", - "varint" - ] - }, - { - "name": "styling", - "type": [ - "switch", - { - "compareTo": "number_format", - "fields": { - "1": "anonymousNbt", - "2": "anonymousNbt" - }, - "default": "void" - } - ] - } - ] - ], - "packet_simulation_distance": [ - "container", - [ - { - "name": "distance", - "type": "varint" - } - ] - ], - "packet_set_title_subtitle": [ - "container", - [ - { - "name": "text", - "type": "anonymousNbt" - } - ] - ], - "packet_update_time": [ - "container", - [ - { - "name": "age", - "type": "i64" - }, - { - "name": "clockUpdates", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "id", - "type": "varint" - }, - { - "name": "totalTicks", - "type": "varlong" - }, - { - "name": "partialTick", - "type": "f32" - }, - { - "name": "rate", - "type": "f32" - } - ] - ] - } - ] - } - ] - ], - "packet_set_title_text": [ - "container", - [ - { - "name": "text", - "type": "anonymousNbt" - } - ] - ], - "packet_set_title_time": [ - "container", - [ - { - "name": "fadeIn", - "type": "i32" - }, - { - "name": "stay", - "type": "i32" - }, - { - "name": "fadeOut", - "type": "i32" - } - ] - ], - "packet_entity_sound_effect": [ - "container", - [ - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "soundCategory", - "type": "soundSource" - }, - { - "name": "entityId", - "type": "varint" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "seed", - "type": "i64" - } - ] - ], - "packet_sound_effect": [ - "container", - [ - { - "name": "sound", - "type": "ItemSoundHolder" - }, - { - "name": "soundCategory", - "type": "soundSource" - }, - { - "name": "x", - "type": "i32" - }, - { - "name": "y", - "type": "i32" - }, - { - "name": "z", - "type": "i32" - }, - { - "name": "volume", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "seed", - "type": "i64" - } - ] - ], - "packet_start_configuration": [ - "container", - [] - ], - "packet_stop_sound": [ - "container", - [ - { - "name": "flags", - "type": "i8" - }, - { - "name": "source", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "1": "varint", - "3": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "sound", - "type": [ - "switch", - { - "compareTo": "flags", - "fields": { - "2": "string", - "3": "string" - }, - "default": "void" + "type": "string" + } + ], + "join": [ + "array", + { + "countType": "varint", + "type": "string" + } + ], + "leave": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } } ] } ] ], - "packet_system_chat": [ + "packet_test_instance_block_status": [ "container", [ { - "name": "content", + "name": "status", "type": "anonymousNbt" }, { - "name": "isActionBar", - "type": "bool" + "name": "size", + "type": [ + "option", + "vec3i" + ] } ] ], - "packet_playerlist_header": [ + "packet_tile_entity_data": [ "container", [ { - "name": "header", - "type": "anonymousNbt" + "name": "location", + "type": "position" }, { - "name": "footer", - "type": "anonymousNbt" + "name": "action", + "type": "varint" + }, + { + "name": "nbtData", + "type": "anonOptionalNbt" } ] ], - "packet_nbt_query_response": [ + "packet_tracked_waypoint": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "operation", + "type": [ + "mapper", + { + "mappings": { + "0": "track", + "1": "untrack", + "2": "update" + }, + "type": "varint" + } + ] }, { - "name": "nbt", - "type": "anonOptionalNbt" + "name": "waypoint", + "type": [ + "container", + [ + { + "name": "hasUUID", + "type": "bool" + }, + { + "anon": true, + "type": [ + "switch", + { + "compareTo": "hasUUID", + "fields": { + "false": [ + "container", + [ + { + "name": "id", + "type": "string" + } + ] + ], + "true": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + } + ] + ] + } + } + ] + }, + { + "name": "icon", + "type": [ + "container", + [ + { + "name": "style", + "type": "string" + }, + { + "name": "color", + "type": [ + "option", + [ + "container", + [ + { + "name": "red", + "type": "u8" + }, + { + "name": "green", + "type": "u8" + }, + { + "name": "blue", + "type": "u8" + } + ] + ] + ] + } + ] + ] + }, + { + "name": "type", + "type": [ + "mapper", + { + "mappings": { + "0": "empty", + "1": "vec3i", + "2": "chunk", + "3": "azimuth" + }, + "type": "varint" + } + ] + }, + { + "name": "data", + "type": [ + "switch", + { + "compareTo": "type", + "fields": { + "azimuth": "f32", + "chunk": [ + "container", + [ + { + "name": "chunkX", + "type": "varint" + }, + { + "name": "chunkZ", + "type": "varint" + } + ] + ], + "vec3i": "vec3i" + } + } + ] + } + ] + ] } ] ], - "packet_collect": [ + "packet_trade_list": [ "container", [ { - "name": "collectedEntityId", - "type": "varint" + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "trades", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "components", + "type": "ExactComponentMatcher" + } + ] + ] + }, + { + "name": "outputItem", + "type": "Slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + [ + "container", + [ + { + "name": "itemId", + "type": "varint" + }, + { + "name": "itemCount", + "type": "varint" + }, + { + "name": "components", + "type": "ExactComponentMatcher" + } + ] + ] + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] + } + ] }, { - "name": "collectorEntityId", + "name": "villagerLevel", "type": "varint" }, { - "name": "pickupItemCount", - "type": "varint" - } - ] - ], - "packet_entity_teleport": [ - "container", - [ - { - "name": "entityId", + "name": "experience", "type": "varint" }, { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "i8" - }, - { - "name": "pitch", - "type": "i8" + "name": "isRegularVillager", + "type": "bool" }, { - "name": "onGround", + "name": "canRestock", "type": "bool" } ] ], - "packet_test_instance_block_status": [ + "packet_unload_chunk": [ "container", [ { - "name": "status", - "type": "anonymousNbt" + "name": "chunkZ", + "type": "i32" }, { - "name": "size", - "type": [ - "option", - "vec3i" - ] + "name": "chunkX", + "type": "i32" } ] ], - "packet_set_ticking_state": [ + "packet_update_health": [ "container", [ { - "name": "tick_rate", + "name": "health", "type": "f32" }, { - "name": "is_frozen", - "type": "bool" + "name": "food", + "type": "varint" + }, + { + "name": "foodSaturation", + "type": "f32" } ] ], - "packet_step_tick": [ + "packet_update_light": [ "container", [ { - "name": "tick_steps", + "name": "chunkX", "type": "varint" - } - ] - ], - "packet_advancements": [ - "container", - [ + }, { - "name": "reset", - "type": "bool" + "name": "chunkZ", + "type": "varint" }, { - "name": "advancementMapping", + "name": "skyLightMask", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "container", - [ - { - "name": "parentId", - "type": [ - "option", - "string" - ] - }, - { - "name": "displayData", - "type": [ - "option", - [ - "container", - [ - { - "name": "title", - "type": "anonymousNbt" - }, - { - "name": "description", - "type": "anonymousNbt" - }, - { - "name": "icon", - "type": "Slot" - }, - { - "name": "frameType", - "type": "varint" - }, - { - "name": "flags", - "type": [ - "bitfield", - [ - { - "name": "unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - }, - { - "name": "backgroundTexture", - "type": [ - "switch", - { - "compareTo": "flags/has_background_texture", - "fields": { - "1": "string" - }, - "default": "void" - } - ] - }, - { - "name": "xCord", - "type": "f32" - }, - { - "name": "yCord", - "type": "f32" - } - ] - ] - ] - }, - { - "name": "requirements", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - }, - { - "name": "sendsTelemtryData", - "type": "bool" - } - ] - ] - } - ] - ] + "type": "i64" } ] }, { - "name": "identifiers", + "name": "blockLightMask", "type": [ "array", { "countType": "varint", - "type": "string" + "type": "i64" } ] }, { - "name": "progressMapping", + "name": "emptySkyLightMask", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "criterionIdentifier", - "type": "string" - }, - { - "name": "criterionProgress", - "type": [ - "option", - "i64" - ] - } - ] - ] - } - ] - } - ] + "type": "i64" + } + ] + }, + { + "name": "emptyBlockLightMask", + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] + }, + { + "name": "skyLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } ] } ] }, { - "name": "showAdvancements", - "type": "bool" + "name": "blockLight", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "u8" + } + ] + } + ] } ] ], - "packet_entity_update_attributes": [ + "packet_update_time": [ "container", [ { - "name": "entityId", - "type": "varint" + "name": "age", + "type": "i64" }, { - "name": "properties", + "name": "clockUpdates", "type": [ "array", { @@ -9756,76 +10194,20 @@ "container", [ { - "name": "key", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "generic.armor", - "1": "generic.armor_toughness", - "2": "generic.attack_damage", - "3": "generic.attack_knockback", - "4": "generic.attack_speed", - "5": "player.block_break_speed", - "6": "player.block_interaction_range", - "7": "burning_time", - "8": "camera_distance", - "9": "explosion_knockback_resistance", - "10": "player.entity_interaction_range", - "11": "generic.fall_damage_multiplier", - "12": "generic.flying_speed", - "13": "generic.follow_range", - "14": "generic.gravity", - "15": "generic.jump_strength", - "16": "generic.knockback_resistance", - "17": "generic.luck", - "18": "generic.max_absorption", - "19": "generic.max_health", - "20": "generic.movement_speed", - "21": "generic.safe_fall_distance", - "22": "generic.scale", - "23": "zombie.spawn_reinforcements", - "24": "generic.step_height", - "25": "submerged_mining_speed", - "26": "sweeping_damage_ratio", - "27": "tempt_range", - "28": "water_movement_efficiency", - "29": "waypoint_transmit_range", - "30": "waypoint_receive_range" - } - } - ] + "name": "id", + "type": "varint" }, { - "name": "value", - "type": "f64" + "name": "totalTicks", + "type": "varlong" }, { - "name": "modifiers", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "uuid", - "type": "string" - }, - { - "name": "amount", - "type": "f64" - }, - { - "name": "operation", - "type": "i8" - } - ] - ] - } - ] + "name": "partialTick", + "type": "f32" + }, + { + "name": "rate", + "type": "f32" } ] ] @@ -9834,598 +10216,422 @@ } ] ], - "packet_entity_effect": [ + "packet_update_view_distance": [ "container", [ { - "name": "entityId", + "name": "viewDistance", "type": "varint" - }, + } + ] + ], + "packet_update_view_position": [ + "container", + [ { - "name": "effectId", + "name": "chunkX", "type": "varint" }, { - "name": "amplifier", + "name": "chunkZ", "type": "varint" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "duration", - "type": "varint" + "name": "y", + "type": "f64" }, { - "name": "flags", - "type": "u8" + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" } ] ], - "packet_declare_recipes": [ + "packet_window_items": [ "container", [ { - "name": "recipes", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "name", - "type": "string" - }, - { - "name": "items", - "type": [ - "array", - { - "countType": "varint", - "type": "varint" - } - ] - } - ] - ] - } - ] + "name": "windowId", + "type": "ContainerID" }, { - "name": "stoneCutterRecipes", + "name": "stateId", + "type": "varint" + }, + { + "name": "items", "type": [ "array", { "countType": "varint", - "type": [ - "container", - [ - { - "name": "input", - "type": "IDSet" - }, - { - "name": "slotDisplay", - "type": "SlotDisplay" - } - ] - ] + "type": "Slot" } ] + }, + { + "name": "carriedItem", + "type": "Slot" + } + ] + ], + "packet_world_border_center": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + } + ] + ], + "packet_world_border_lerp_size": [ + "container", + [ + { + "name": "oldDiameter", + "type": "f64" + }, + { + "name": "newDiameter", + "type": "f64" + }, + { + "name": "speed", + "type": "varint" + } + ] + ], + "packet_world_border_size": [ + "container", + [ + { + "name": "diameter", + "type": "f64" + } + ] + ], + "packet_world_border_warning_delay": [ + "container", + [ + { + "name": "warningTime", + "type": "varint" + } + ] + ], + "packet_world_border_warning_reach": [ + "container", + [ + { + "name": "warningBlocks", + "type": "varint" } ] ], - "packet_tags": [ + "packet_world_event": [ "container", [ { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] - } - ] + "name": "effectId", + "type": "i32" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "data", + "type": "i32" + }, + { + "name": "global", + "type": "bool" } ] ], - "packet_set_projectile_power": [ + "packet_world_particles": [ "container", [ { - "name": "id", - "type": "varint" + "name": "longDistance", + "type": "bool" }, { - "name": "accelerationPower", + "name": "alwaysShow", + "type": "bool" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", "type": "f64" + }, + { + "name": "offsetX", + "type": "f32" + }, + { + "name": "offsetY", + "type": "f32" + }, + { + "name": "offsetZ", + "type": "f32" + }, + { + "name": "velocityOffset", + "type": "f32" + }, + { + "name": "amount", + "type": "i32" + }, + { + "name": "particle", + "type": "Particle" } ] + ] + } + }, + "toServer": { + "types": { + "MovementFlags": [ + "bitflags", + { + "flags": [ + "onGround", + "hasHorizontalCollision" + ], + "type": "u8" + } ], - "packet_tracked_waypoint": [ + "packet": [ "container", [ { - "name": "operation", + "name": "name", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "track", - "1": "untrack", - "2": "update" - } - } - ] - }, - { - "name": "waypoint", - "type": [ - "container", - [ - { - "name": "hasUUID", - "type": "bool" - }, - { - "anon": true, - "type": [ - "switch", - { - "compareTo": "hasUUID", - "fields": { - "true": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - } - ] - ], - "false": [ - "container", - [ - { - "name": "id", - "type": "string" - } - ] - ] - } - } - ] - }, - { - "name": "icon", - "type": [ - "container", - [ - { - "name": "style", - "type": "string" - }, - { - "name": "color", - "type": [ - "option", - [ - "container", - [ - { - "name": "red", - "type": "u8" - }, - { - "name": "green", - "type": "u8" - }, - { - "name": "blue", - "type": "u8" - } - ] - ] - ] - } - ] - ] - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "empty", - "1": "vec3i", - "2": "chunk", - "3": "azimuth" - } - } - ] + "0x00": "teleport_confirm", + "0x01": "attack", + "0x02": "query_block_nbt", + "0x03": "select_bundle_item", + "0x04": "set_difficulty", + "0x05": "change_gamemode", + "0x06": "message_acknowledgement", + "0x07": "chat_command", + "0x08": "chat_command_signed", + "0x09": "chat_message", + "0x0a": "chat_session_update", + "0x0b": "chunk_batch_received", + "0x0c": "client_command", + "0x0d": "tick_end", + "0x0e": "settings", + "0x0f": "tab_complete", + "0x10": "configuration_acknowledged", + "0x11": "enchant_item", + "0x12": "window_click", + "0x13": "close_window", + "0x14": "set_slot_state", + "0x15": "cookie_response", + "0x16": "custom_payload", + "0x17": "debug_subscription_request", + "0x18": "edit_book", + "0x19": "query_entity_nbt", + "0x1a": "use_entity", + "0x1b": "generate_structure", + "0x1c": "keep_alive", + "0x1d": "lock_difficulty", + "0x1e": "position", + "0x1f": "position_look", + "0x20": "look", + "0x21": "flying", + "0x22": "vehicle_move", + "0x23": "steer_boat", + "0x24": "pick_item_from_block", + "0x25": "pick_item_from_entity", + "0x26": "ping_request", + "0x27": "craft_recipe_request", + "0x28": "abilities", + "0x29": "block_dig", + "0x2a": "entity_action", + "0x2b": "player_input", + "0x2c": "player_loaded", + "0x2d": "pong", + "0x2e": "recipe_book", + "0x2f": "displayed_recipe", + "0x30": "name_item", + "0x31": "resource_pack_receive", + "0x32": "advancement_tab", + "0x33": "select_trade", + "0x34": "set_beacon_effect", + "0x35": "held_item_slot", + "0x36": "update_command_block", + "0x37": "update_command_block_minecart", + "0x38": "set_creative_slot", + "0x39": "set_game_rule", + "0x3a": "update_jigsaw_block", + "0x3b": "update_structure_block", + "0x3c": "set_test_block", + "0x3d": "update_sign", + "0x3e": "spectate_entity", + "0x3f": "arm_animation", + "0x40": "spectate", + "0x41": "test_instance_block_action", + "0x42": "block_place", + "0x43": "use_item", + "0x44": "custom_click_action" }, - { - "name": "data", - "type": [ - "switch", - { - "compareTo": "type", - "fields": { - "vec3i": "vec3i", - "chunk": [ - "container", - [ - { - "name": "chunkX", - "type": "varint" - }, - { - "name": "chunkZ", - "type": "varint" - } - ] - ], - "azimuth": "f32" - } - } - ] - } - ] - ] - } - ] - ], - "packet_show_dialog": [ - "container", - [ - { - "name": "dialog", - "type": [ - "registryEntryHolder", - { - "baseName": "dialog", - "otherwise": { - "name": "data", - "type": "anonymousNbt" - } + "type": "varint" } ] - } - ] - ], - "packet": [ - "container", - [ + }, { - "name": "name", + "name": "params", "type": [ - "mapper", + "switch", { - "type": "varint", - "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "animation", - "0x03": "statistics", - "0x04": "acknowledge_player_digging", - "0x05": "block_break_animation", - "0x06": "tile_entity_data", - "0x07": "block_action", - "0x08": "block_change", - "0x09": "boss_bar", - "0x0a": "difficulty", - "0x0b": "chunk_batch_finished", - "0x0c": "chunk_batch_start", - "0x0d": "chunk_biomes", - "0x0e": "clear_titles", - "0x0f": "tab_complete", - "0x10": "declare_commands", - "0x11": "close_window", - "0x12": "window_items", - "0x13": "craft_progress_bar", - "0x14": "set_slot", - "0x15": "cookie_request", - "0x16": "set_cooldown", - "0x17": "chat_suggestions", - "0x18": "custom_payload", - "0x19": "damage_event", - "0x1a": "debug_block_value", - "0x1b": "debug_chunk_value", - "0x1c": "debug_entity_value", - "0x1d": "debug_event", - "0x1e": "debug_sample", - "0x1f": "hide_message", - "0x20": "kick_disconnect", - "0x21": "profileless_chat", - "0x22": "entity_status", - "0x23": "sync_entity_position", - "0x24": "explosion", - "0x25": "unload_chunk", - "0x26": "game_state_change", - "0x27": "game_rule_values", - "0x28": "game_test_highlight_pos", - "0x29": "open_horse_window", - "0x2a": "hurt_animation", - "0x2b": "initialize_world_border", - "0x2c": "keep_alive", - "0x2d": "map_chunk", - "0x2e": "world_event", - "0x2f": "world_particles", - "0x30": "update_light", - "0x31": "login", - "0x32": "low_disk_space_warning", - "0x33": "map", - "0x34": "trade_list", - "0x35": "rel_entity_move", - "0x36": "entity_move_look", - "0x37": "move_minecart", - "0x38": "entity_look", - "0x39": "vehicle_move", - "0x3a": "open_book", - "0x3b": "open_window", - "0x3c": "open_sign_entity", - "0x3d": "ping", - "0x3e": "ping_response", - "0x3f": "craft_recipe_response", - "0x40": "abilities", - "0x41": "player_chat", - "0x42": "end_combat_event", - "0x43": "enter_combat_event", - "0x44": "death_combat_event", - "0x45": "player_remove", - "0x46": "player_info", - "0x47": "face_player", - "0x48": "position", - "0x49": "player_rotation", - "0x4a": "recipe_book_add", - "0x4b": "recipe_book_remove", - "0x4c": "recipe_book_settings", - "0x4d": "entity_destroy", - "0x4e": "remove_entity_effect", - "0x4f": "reset_score", - "0x50": "remove_resource_pack", - "0x51": "add_resource_pack", - "0x52": "respawn", - "0x53": "entity_head_rotation", - "0x54": "multi_block_change", - "0x55": "select_advancement_tab", - "0x56": "server_data", - "0x57": "action_bar", - "0x58": "world_border_center", - "0x59": "world_border_lerp_size", - "0x5a": "world_border_size", - "0x5b": "world_border_warning_delay", - "0x5c": "world_border_warning_reach", - "0x5d": "camera", - "0x5e": "update_view_position", - "0x5f": "update_view_distance", - "0x60": "set_cursor_item", - "0x61": "spawn_position", - "0x62": "scoreboard_display_objective", - "0x63": "entity_metadata", - "0x64": "attach_entity", - "0x65": "entity_velocity", - "0x66": "entity_equipment", - "0x67": "experience", - "0x68": "update_health", - "0x69": "held_item_slot", - "0x6a": "scoreboard_objective", - "0x6b": "set_passengers", - "0x6c": "set_player_inventory", - "0x6d": "teams", - "0x6e": "scoreboard_score", - "0x6f": "simulation_distance", - "0x70": "set_title_subtitle", - "0x71": "update_time", - "0x72": "set_title_text", - "0x73": "set_title_time", - "0x74": "entity_sound_effect", - "0x75": "sound_effect", - "0x76": "start_configuration", - "0x77": "stop_sound", - "0x78": "store_cookie", - "0x79": "system_chat", - "0x7a": "playerlist_header", - "0x7b": "nbt_query_response", - "0x7c": "collect", - "0x7d": "entity_teleport", - "0x7e": "test_instance_block_status", - "0x7f": "set_ticking_state", - "0x80": "step_tick", - "0x81": "transfer", - "0x82": "advancements", - "0x83": "entity_update_attributes", - "0x84": "entity_effect", - "0x85": "declare_recipes", - "0x86": "tags", - "0x87": "set_projectile_power", - "0x88": "custom_report_details", - "0x89": "server_links", - "0x8a": "tracked_waypoint", - "0x8b": "clear_dialog", - "0x8c": "show_dialog" + "compareTo": "name", + "fields": { + "abilities": "packet_abilities", + "advancement_tab": "packet_advancement_tab", + "arm_animation": "packet_arm_animation", + "attack": "packet_attack", + "block_dig": "packet_block_dig", + "block_place": "packet_block_place", + "change_gamemode": "packet_change_gamemode", + "chat_command": "packet_chat_command", + "chat_command_signed": "packet_chat_command_signed", + "chat_message": "packet_chat_message", + "chat_session_update": "packet_chat_session_update", + "chunk_batch_received": "packet_chunk_batch_received", + "client_command": "packet_client_command", + "close_window": "packet_close_window", + "configuration_acknowledged": "packet_configuration_acknowledged", + "cookie_response": "packet_common_cookie_response", + "craft_recipe_request": "packet_craft_recipe_request", + "custom_click_action": "packet_common_custom_click_action", + "custom_payload": "packet_custom_payload", + "debug_subscription_request": "packet_debug_subscription_request", + "displayed_recipe": "packet_displayed_recipe", + "edit_book": "packet_edit_book", + "enchant_item": "packet_enchant_item", + "entity_action": "packet_entity_action", + "flying": "packet_flying", + "generate_structure": "packet_generate_structure", + "held_item_slot": "packet_held_item_slot", + "keep_alive": "packet_keep_alive", + "lock_difficulty": "packet_lock_difficulty", + "look": "packet_look", + "message_acknowledgement": "packet_message_acknowledgement", + "name_item": "packet_name_item", + "pick_item_from_block": "packet_pick_item_from_block", + "pick_item_from_entity": "packet_pick_item_from_entity", + "ping_request": "packet_ping_request", + "player_input": "packet_player_input", + "player_loaded": "packet_player_loaded", + "pong": "packet_pong", + "position": "packet_position", + "position_look": "packet_position_look", + "query_block_nbt": "packet_query_block_nbt", + "query_entity_nbt": "packet_query_entity_nbt", + "recipe_book": "packet_recipe_book", + "resource_pack_receive": "packet_resource_pack_receive", + "select_bundle_item": "packet_select_bundle_item", + "select_trade": "packet_select_trade", + "set_beacon_effect": "packet_set_beacon_effect", + "set_creative_slot": "packet_set_creative_slot", + "set_difficulty": "packet_set_difficulty", + "set_game_rule": "packet_set_game_rule", + "set_slot_state": "packet_set_slot_state", + "set_test_block": "packet_set_test_block", + "settings": "packet_common_settings", + "spectate": "packet_spectate", + "spectate_entity": "packet_spectate_entity", + "steer_boat": "packet_steer_boat", + "tab_complete": "packet_tab_complete", + "teleport_confirm": "packet_teleport_confirm", + "test_instance_block_action": "packet_test_instance_block_action", + "tick_end": "packet_tick_end", + "update_command_block": "packet_update_command_block", + "update_command_block_minecart": "packet_update_command_block_minecart", + "update_jigsaw_block": "packet_update_jigsaw_block", + "update_sign": "packet_update_sign", + "update_structure_block": "packet_update_structure_block", + "use_entity": "packet_use_entity", + "use_item": "packet_use_item", + "vehicle_move": "packet_vehicle_move", + "window_click": "packet_window_click" } } ] + } + ] + ], + "packet_abilities": [ + "container", + [ + { + "name": "flags", + "type": "i8" + } + ] + ], + "packet_advancement_tab": [ + "container", + [ + { + "name": "action", + "type": "varint" }, { - "name": "params", + "name": "tabId", "type": [ "switch", { - "compareTo": "name", + "compareTo": "action", "fields": { - "bundle_delimiter": "void", - "spawn_entity": "packet_spawn_entity", - "animation": "packet_animation", - "statistics": "packet_statistics", - "acknowledge_player_digging": "packet_acknowledge_player_digging", - "block_break_animation": "packet_block_break_animation", - "tile_entity_data": "packet_tile_entity_data", - "block_action": "packet_block_action", - "block_change": "packet_block_change", - "boss_bar": "packet_boss_bar", - "difficulty": "packet_difficulty", - "chunk_batch_finished": "packet_chunk_batch_finished", - "chunk_batch_start": "packet_chunk_batch_start", - "chunk_biomes": "packet_chunk_biomes", - "clear_titles": "packet_clear_titles", - "tab_complete": "packet_tab_complete", - "declare_commands": "packet_declare_commands", - "close_window": "packet_close_window", - "window_items": "packet_window_items", - "craft_progress_bar": "packet_craft_progress_bar", - "set_slot": "packet_set_slot", - "cookie_request": "packet_common_cookie_request", - "set_cooldown": "packet_set_cooldown", - "chat_suggestions": "packet_chat_suggestions", - "custom_payload": "packet_custom_payload", - "damage_event": "packet_damage_event", - "debug_block_value": "packet_debug_block_value", - "debug_chunk_value": "packet_debug_chunk_value", - "debug_entity_value": "packet_debug_entity_value", - "debug_event": "packet_debug_event", - "debug_sample": "packet_debug_sample", - "hide_message": "packet_hide_message", - "kick_disconnect": "packet_kick_disconnect", - "profileless_chat": "packet_profileless_chat", - "entity_status": "packet_entity_status", - "sync_entity_position": "packet_sync_entity_position", - "explosion": "packet_explosion", - "unload_chunk": "packet_unload_chunk", - "game_state_change": "packet_game_state_change", - "game_rule_values": "packet_game_rule_values", - "game_test_highlight_pos": "packet_game_test_highlight_pos", - "open_horse_window": "packet_open_horse_window", - "hurt_animation": "packet_hurt_animation", - "initialize_world_border": "packet_initialize_world_border", - "keep_alive": "packet_keep_alive", - "map_chunk": "packet_map_chunk", - "world_event": "packet_world_event", - "world_particles": "packet_world_particles", - "update_light": "packet_update_light", - "login": "packet_login", - "low_disk_space_warning": "packet_low_disk_space_warning", - "map": "packet_map", - "trade_list": "packet_trade_list", - "rel_entity_move": "packet_rel_entity_move", - "entity_move_look": "packet_entity_move_look", - "move_minecart": "packet_move_minecart", - "entity_look": "packet_entity_look", - "vehicle_move": "packet_vehicle_move", - "open_book": "packet_open_book", - "open_window": "packet_open_window", - "open_sign_entity": "packet_open_sign_entity", - "ping": "packet_ping", - "ping_response": "packet_ping_response", - "craft_recipe_response": "packet_craft_recipe_response", - "abilities": "packet_abilities", - "player_chat": "packet_player_chat", - "end_combat_event": "packet_end_combat_event", - "enter_combat_event": "packet_enter_combat_event", - "death_combat_event": "packet_death_combat_event", - "player_remove": "packet_player_remove", - "player_info": "packet_player_info", - "face_player": "packet_face_player", - "position": "packet_position", - "player_rotation": "packet_player_rotation", - "recipe_book_add": "packet_recipe_book_add", - "recipe_book_remove": "packet_recipe_book_remove", - "recipe_book_settings": "packet_recipe_book_settings", - "entity_destroy": "packet_entity_destroy", - "remove_entity_effect": "packet_remove_entity_effect", - "reset_score": "packet_reset_score", - "remove_resource_pack": "packet_common_remove_resource_pack", - "add_resource_pack": "packet_common_add_resource_pack", - "respawn": "packet_respawn", - "entity_head_rotation": "packet_entity_head_rotation", - "multi_block_change": "packet_multi_block_change", - "select_advancement_tab": "packet_select_advancement_tab", - "server_data": "packet_server_data", - "action_bar": "packet_action_bar", - "world_border_center": "packet_world_border_center", - "world_border_lerp_size": "packet_world_border_lerp_size", - "world_border_size": "packet_world_border_size", - "world_border_warning_delay": "packet_world_border_warning_delay", - "world_border_warning_reach": "packet_world_border_warning_reach", - "camera": "packet_camera", - "update_view_position": "packet_update_view_position", - "update_view_distance": "packet_update_view_distance", - "set_cursor_item": "packet_set_cursor_item", - "held_item_slot": "packet_held_item_slot", - "spawn_position": "packet_spawn_position", - "scoreboard_display_objective": "packet_scoreboard_display_objective", - "entity_metadata": "packet_entity_metadata", - "attach_entity": "packet_attach_entity", - "entity_velocity": "packet_entity_velocity", - "entity_equipment": "packet_entity_equipment", - "experience": "packet_experience", - "update_health": "packet_update_health", - "scoreboard_objective": "packet_scoreboard_objective", - "set_passengers": "packet_set_passengers", - "set_player_inventory": "packet_set_player_inventory", - "teams": "packet_teams", - "scoreboard_score": "packet_scoreboard_score", - "simulation_distance": "packet_simulation_distance", - "set_title_subtitle": "packet_set_title_subtitle", - "update_time": "packet_update_time", - "set_title_text": "packet_set_title_text", - "set_title_time": "packet_set_title_time", - "entity_sound_effect": "packet_entity_sound_effect", - "sound_effect": "packet_sound_effect", - "start_configuration": "packet_start_configuration", - "stop_sound": "packet_stop_sound", - "store_cookie": "packet_common_store_cookie", - "system_chat": "packet_system_chat", - "playerlist_header": "packet_playerlist_header", - "nbt_query_response": "packet_nbt_query_response", - "collect": "packet_collect", - "entity_teleport": "packet_entity_teleport", - "test_instance_block_status": "packet_test_instance_block_status", - "set_ticking_state": "packet_set_ticking_state", - "step_tick": "packet_step_tick", - "transfer": "packet_common_transfer", - "advancements": "packet_advancements", - "entity_update_attributes": "packet_entity_update_attributes", - "entity_effect": "packet_entity_effect", - "declare_recipes": "packet_declare_recipes", - "tags": "packet_tags", - "set_projectile_power": "packet_set_projectile_power", - "custom_report_details": "packet_common_custom_report_details", - "server_links": "packet_common_server_links", - "tracked_waypoint": "packet_tracked_waypoint", - "clear_dialog": "packet_common_clear_dialog", - "show_dialog": "packet_show_dialog" + "0": "string", + "1": "void" } } ] } ] - ] - } - }, - "toServer": { - "types": { - "packet_teleport_confirm": [ + ], + "packet_arm_animation": [ "container", [ { - "name": "teleportId", + "name": "hand", "type": "varint" } ] @@ -10439,49 +10645,65 @@ } ] ], - "packet_query_block_nbt": [ + "packet_block_dig": [ "container", [ { - "name": "transactionId", + "name": "status", "type": "varint" }, { "name": "location", "type": "position" + }, + { + "name": "face", + "type": "i8" + }, + { + "name": "sequence", + "type": "varint" } ] ], - "packet_select_bundle_item": [ + "packet_block_place": [ "container", [ { - "name": "slotId", + "name": "hand", "type": "varint" }, { - "name": "selectedItemIndex", + "name": "location", + "type": "position" + }, + { + "name": "direction", "type": "varint" - } - ] - ], - "packet_set_difficulty": [ - "container", - [ + }, { - "name": "newDifficulty", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "peaceful", - "1": "easy", - "2": "normal", - "3": "hard" - } - } - ] + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" + }, + { + "name": "worldBorderHit", + "type": "bool" + }, + { + "name": "sequence", + "type": "varint" } ] ], @@ -10493,27 +10715,18 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "survival", "1": "creative", "2": "adventure", "3": "spectator" - } + }, + "type": "varint" } ] } ] ], - "packet_message_acknowledgement": [ - "container", - [ - { - "name": "count", - "type": "varint" - } - ] - ], "packet_chat_command": [ "container", [ @@ -10668,31 +10881,23 @@ "type": [ "mapper", { - "type": "varint", "mappings": { "0": "perform_respawn", "1": "request_stats", "2": "request_gamerule_values" - } + }, + "type": "varint" } ] } ] ], - "packet_tick_end": [ - "container", - [] - ], - "packet_tab_complete": [ + "packet_close_window": [ "container", [ { - "name": "transactionId", - "type": "varint" - }, - { - "name": "text", - "type": "string" + "name": "windowId", + "type": "ContainerID" } ] ], @@ -10700,20 +10905,7 @@ "container", [] ], - "packet_enchant_item": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "enchantment", - "type": "varint" - } - ] - ], - "packet_window_click": [ + "packet_craft_recipe_request": [ "container", [ { @@ -10721,77 +10913,11 @@ "type": "ContainerID" }, { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, - { - "name": "mouseButton", - "type": "i8" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": [ - "option", - "HashedSlot" - ] - } - ] - ] - } - ] - }, - { - "name": "cursorItem", - "type": [ - "option", - "HashedSlot" - ] - } - ] - ], - "packet_close_window": [ - "container", - [ - { - "name": "windowId", - "type": "ContainerID" - } - ] - ], - "packet_set_slot_state": [ - "container", - [ - { - "name": "slot_id", + "name": "recipeId", "type": "varint" }, { - "name": "window_id", - "type": "ContainerID" - }, - { - "name": "state", + "name": "makeAll", "type": "bool" } ] @@ -10824,6 +10950,15 @@ } ] ], + "packet_displayed_recipe": [ + "container", + [ + { + "name": "recipeId", + "type": "varint" + } + ] + ], "packet_edit_book": [ "container", [ @@ -10850,46 +10985,56 @@ } ] ], - "packet_query_entity_nbt": [ + "packet_enchant_item": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "entityId", + "name": "enchantment", "type": "varint" } ] ], - "packet_use_entity": [ + "packet_entity_action": [ "container", [ { - "name": "target", + "name": "entityId", "type": "varint" }, { - "name": "hand", + "name": "actionId", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "main_hand", - "1": "off_hand" - } + "0": "leave_bed", + "1": "start_sprinting", + "2": "stop_sprinting", + "3": "start_horse_jump", + "4": "stop_horse_jump", + "5": "open_vehicle_inventory", + "6": "start_elytra_flying" + }, + "type": "varint" } ] }, { - "name": "location", - "type": "lpVec3" - }, + "name": "jumpBoost", + "type": "varint" + } + ] + ], + "packet_flying": [ + "container", + [ { - "name": "sneaking", - "type": "bool" + "name": "flags", + "type": "MovementFlags" } ] ], @@ -10910,34 +11055,139 @@ } ] ], - "packet_keep_alive": [ + "packet_held_item_slot": [ + "container", + [ + { + "name": "slotId", + "type": "i16" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_lock_difficulty": [ + "container", + [ + { + "name": "locked", + "type": "bool" + } + ] + ], + "packet_look": [ + "container", + [ + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + }, + { + "name": "flags", + "type": "MovementFlags" + } + ] + ], + "packet_message_acknowledgement": [ + "container", + [ + { + "name": "count", + "type": "varint" + } + ] + ], + "packet_name_item": [ + "container", + [ + { + "name": "name", + "type": "string" + } + ] + ], + "packet_pick_item_from_block": [ + "container", + [ + { + "name": "position", + "type": "position" + }, + { + "name": "includeData", + "type": "bool" + } + ] + ], + "packet_pick_item_from_entity": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "includeData", + "type": "bool" + } + ] + ], + "packet_ping_request": [ + "container", + [ + { + "name": "id", + "type": "i64" + } + ] + ], + "packet_player_input": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "inputs", + "type": [ + "bitflags", + { + "flags": [ + "forward", + "backward", + "left", + "right", + "jump", + "shift", + "sprint" + ], + "type": "u8" + } + ] } ] ], - "packet_lock_difficulty": [ + "packet_player_loaded": [ + "container", + [] + ], + "packet_pong": [ "container", [ { - "name": "locked", - "type": "bool" + "name": "id", + "type": "i32" } ] ], - "MovementFlags": [ - "bitflags", - { - "type": "u8", - "flags": [ - "onGround", - "hasHorizontalCollision" - ] - } - ], "packet_position": [ "container", [ @@ -10988,329 +11238,292 @@ } ] ], - "packet_look": [ + "packet_query_block_nbt": [ "container", [ { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "flags", - "type": "MovementFlags" - } - ] - ], - "packet_flying": [ - "container", - [ - { - "name": "flags", - "type": "MovementFlags" + "name": "location", + "type": "position" } ] ], - "packet_vehicle_move": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "transactionId", + "type": "varint" }, { - "name": "onGround", - "type": "bool" + "name": "entityId", + "type": "varint" } ] ], - "packet_steer_boat": [ + "packet_recipe_book": [ "container", [ { - "name": "leftPaddle", + "name": "bookId", + "type": "varint" + }, + { + "name": "bookOpen", "type": "bool" }, { - "name": "rightPaddle", + "name": "filterActive", "type": "bool" } ] ], - "packet_pick_item_from_block": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "position", - "type": "position" + "name": "uuid", + "type": "UUID" }, { - "name": "includeData", - "type": "bool" + "name": "result", + "type": "varint" } ] ], - "packet_pick_item_from_entity": [ + "packet_select_bundle_item": [ "container", [ { - "name": "entityId", + "name": "slotId", "type": "varint" }, { - "name": "includeData", - "type": "bool" + "name": "selectedItemIndex", + "type": "varint" } ] ], - "packet_ping_request": [ + "packet_select_trade": [ "container", [ { - "name": "id", - "type": "i64" + "name": "slot", + "type": "varint" } ] ], - "packet_craft_recipe_request": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "recipeId", - "type": "varint" + "name": "primary_effect", + "type": [ + "option", + "varint" + ] }, { - "name": "makeAll", - "type": "bool" - } - ] - ], - "packet_abilities": [ - "container", - [ - { - "name": "flags", - "type": "i8" + "name": "secondary_effect", + "type": [ + "option", + "varint" + ] } ] ], - "packet_block_dig": [ + "packet_set_creative_slot": [ "container", [ { - "name": "status", - "type": "varint" - }, - { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "slot", + "type": "i16" }, { - "name": "sequence", - "type": "varint" + "name": "item", + "type": "UntrustedSlot" } ] ], - "packet_entity_action": [ + "packet_set_difficulty": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", + "name": "newDifficulty", "type": [ "mapper", { - "type": "varint", "mappings": { - "0": "leave_bed", - "1": "start_sprinting", - "2": "stop_sprinting", - "3": "start_horse_jump", - "4": "stop_horse_jump", - "5": "open_vehicle_inventory", - "6": "start_elytra_flying" - } + "0": "peaceful", + "1": "easy", + "2": "normal", + "3": "hard" + }, + "type": "varint" } ] - }, - { - "name": "jumpBoost", - "type": "varint" } ] ], - "packet_player_input": [ + "packet_set_game_rule": [ "container", [ { - "name": "inputs", + "name": "entries", "type": [ - "bitflags", + "array", { - "type": "u8", - "flags": [ - "forward", - "backward", - "left", - "right", - "jump", - "shift", - "sprint" - ] + "countType": "varint", + "type": "GameRule" } ] } ] ], - "packet_player_loaded": [ - "container", - [] - ], - "packet_pong": [ + "packet_set_slot_state": [ "container", [ { - "name": "id", - "type": "i32" + "name": "slot_id", + "type": "varint" + }, + { + "name": "window_id", + "type": "ContainerID" + }, + { + "name": "state", + "type": "bool" } ] ], - "packet_recipe_book": [ + "packet_set_test_block": [ "container", [ { - "name": "bookId", - "type": "varint" + "name": "position", + "type": "position" }, { - "name": "bookOpen", - "type": "bool" + "name": "mode", + "type": "varint" }, { - "name": "filterActive", - "type": "bool" + "name": "message", + "type": "string" } ] ], - "packet_displayed_recipe": [ + "packet_spectate": [ "container", [ { - "name": "recipeId", - "type": "varint" + "name": "target", + "type": "UUID" } ] ], - "packet_name_item": [ + "packet_spectate_entity": [ "container", [ { - "name": "name", - "type": "string" + "name": "entityId", + "type": "varint" } ] ], - "packet_resource_pack_receive": [ + "packet_steer_boat": [ "container", [ { - "name": "uuid", - "type": "UUID" + "name": "leftPaddle", + "type": "bool" }, { - "name": "result", - "type": "varint" + "name": "rightPaddle", + "type": "bool" } ] ], - "packet_advancement_tab": [ + "packet_tab_complete": [ "container", [ { - "name": "action", + "name": "transactionId", "type": "varint" }, { - "name": "tabId", - "type": [ - "switch", - { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } - } - ] + "name": "text", + "type": "string" } ] ], - "packet_select_trade": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slot", + "name": "teleportId", "type": "varint" } ] ], - "packet_set_beacon_effect": [ + "packet_test_instance_block_action": [ "container", [ { - "name": "primary_effect", - "type": [ - "option", - "varint" - ] + "name": "pos", + "type": "position" }, { - "name": "secondary_effect", + "name": "action", + "type": "varint" + }, + { + "name": "data", "type": [ - "option", - "varint" + "container", + [ + { + "name": "test", + "type": [ + "option", + "string" + ] + }, + { + "name": "size", + "type": "vec3i" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "ignoreEntities", + "type": "bool" + }, + { + "name": "status", + "type": "varint" + }, + { + "name": "errorMessage", + "type": [ + "option", + "anonymousNbt" + ] + } + ] ] } ] ], - "packet_held_item_slot": [ + "packet_tick_end": [ "container", - [ - { - "name": "slotId", - "type": "i16" - } - ] + [] ], "packet_update_command_block": [ "container", @@ -11350,34 +11563,6 @@ } ] ], - "packet_set_creative_slot": [ - "container", - [ - { - "name": "slot", - "type": "i16" - }, - { - "name": "item", - "type": "UntrustedSlot" - } - ] - ], - "packet_set_game_rule": [ - "container", - [ - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": "GameRule" - } - ] - } - ] - ], "packet_update_jigsaw_block": [ "container", [ @@ -11415,6 +11600,35 @@ } ] ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], "packet_update_structure_block": [ "container", [ @@ -11483,143 +11697,49 @@ "type": [ "mapper", { - "type": "u8", "mappings": { "0": "ignore_entities", "1": "show_air", "2": "show_bounding_box", "3": "strict" - } + }, + "type": "u8" } ] } ] ], - "packet_set_test_block": [ - "container", - [ - { - "name": "position", - "type": "position" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "message", - "type": "string" - } - ] - ], - "packet_update_sign": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "isFrontText", - "type": "bool" - }, - { - "name": "text1", - "type": "string" - }, - { - "name": "text2", - "type": "string" - }, - { - "name": "text3", - "type": "string" - }, - { - "name": "text4", - "type": "string" - } - ] - ], - "packet_spectate_entity": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - } - ] - ], - "packet_arm_animation": [ - "container", - [ - { - "name": "hand", - "type": "varint" - } - ] - ], - "packet_spectate": [ + "packet_use_entity": [ "container", [ { "name": "target", - "type": "UUID" - } - ] - ], - "packet_test_instance_block_action": [ - "container", - [ - { - "name": "pos", - "type": "position" - }, - { - "name": "action", "type": "varint" }, { - "name": "data", + "name": "hand", "type": [ - "container", - [ - { - "name": "test", - "type": [ - "option", - "string" - ] - }, - { - "name": "size", - "type": "vec3i" - }, - { - "name": "rotation", - "type": "varint" - }, - { - "name": "ignoreEntities", - "type": "bool" - }, - { - "name": "status", - "type": "varint" + "mapper", + { + "mappings": { + "0": "main_hand", + "1": "off_hand" }, - { - "name": "errorMessage", - "type": [ - "option", - "anonymousNbt" - ] - } - ] + "type": "varint" + } ] + }, + { + "name": "location", + "type": "lpVec3" + }, + { + "name": "sneaking", + "type": "bool" } ] ], - "packet_block_place": [ + "packet_use_item": [ "container", [ { @@ -11627,217 +11747,97 @@ "type": "varint" }, { - "name": "location", - "type": "position" + "name": "sequence", + "type": "varint" }, { - "name": "direction", - "type": "varint" + "name": "rotation", + "type": "vec2f" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "cursorX", - "type": "f32" + "name": "y", + "type": "f64" }, { - "name": "cursorY", - "type": "f32" + "name": "z", + "type": "f64" }, { - "name": "cursorZ", + "name": "yaw", "type": "f32" }, { - "name": "insideBlock", - "type": "bool" + "name": "pitch", + "type": "f32" }, { - "name": "worldBorderHit", + "name": "onGround", "type": "bool" - }, - { - "name": "sequence", - "type": "varint" } ] ], - "packet_use_item": [ + "packet_window_click": [ "container", [ { - "name": "hand", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "sequence", + "name": "stateId", "type": "varint" }, { - "name": "rotation", - "type": "vec2f" - } - ] - ], - "packet": [ - "container", - [ + "name": "slot", + "type": "i16" + }, { - "name": "name", + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", "type": [ - "mapper", + "array", { - "type": "varint", - "mappings": { - "0x00": "teleport_confirm", - "0x01": "attack", - "0x02": "query_block_nbt", - "0x03": "select_bundle_item", - "0x04": "set_difficulty", - "0x05": "change_gamemode", - "0x06": "message_acknowledgement", - "0x07": "chat_command", - "0x08": "chat_command_signed", - "0x09": "chat_message", - "0x0a": "chat_session_update", - "0x0b": "chunk_batch_received", - "0x0c": "client_command", - "0x0d": "tick_end", - "0x0e": "settings", - "0x0f": "tab_complete", - "0x10": "configuration_acknowledged", - "0x11": "enchant_item", - "0x12": "window_click", - "0x13": "close_window", - "0x14": "set_slot_state", - "0x15": "cookie_response", - "0x16": "custom_payload", - "0x17": "debug_subscription_request", - "0x18": "edit_book", - "0x19": "query_entity_nbt", - "0x1a": "use_entity", - "0x1b": "generate_structure", - "0x1c": "keep_alive", - "0x1d": "lock_difficulty", - "0x1e": "position", - "0x1f": "position_look", - "0x20": "look", - "0x21": "flying", - "0x22": "vehicle_move", - "0x23": "steer_boat", - "0x24": "pick_item_from_block", - "0x25": "pick_item_from_entity", - "0x26": "ping_request", - "0x27": "craft_recipe_request", - "0x28": "abilities", - "0x29": "block_dig", - "0x2a": "entity_action", - "0x2b": "player_input", - "0x2c": "player_loaded", - "0x2d": "pong", - "0x2e": "recipe_book", - "0x2f": "displayed_recipe", - "0x30": "name_item", - "0x31": "resource_pack_receive", - "0x32": "advancement_tab", - "0x33": "select_trade", - "0x34": "set_beacon_effect", - "0x35": "held_item_slot", - "0x36": "update_command_block", - "0x37": "update_command_block_minecart", - "0x38": "set_creative_slot", - "0x39": "set_game_rule", - "0x3a": "update_jigsaw_block", - "0x3b": "update_structure_block", - "0x3c": "set_test_block", - "0x3d": "update_sign", - "0x3e": "spectate_entity", - "0x3f": "arm_animation", - "0x40": "spectate", - "0x41": "test_instance_block_action", - "0x42": "block_place", - "0x43": "use_item", - "0x44": "custom_click_action" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": [ + "option", + "HashedSlot" + ] + } + ] + ] } ] }, { - "name": "params", + "name": "cursorItem", "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "teleport_confirm": "packet_teleport_confirm", - "attack": "packet_attack", - "query_block_nbt": "packet_query_block_nbt", - "select_bundle_item": "packet_select_bundle_item", - "set_difficulty": "packet_set_difficulty", - "change_gamemode": "packet_change_gamemode", - "message_acknowledgement": "packet_message_acknowledgement", - "chat_command": "packet_chat_command", - "chat_command_signed": "packet_chat_command_signed", - "chat_message": "packet_chat_message", - "chat_session_update": "packet_chat_session_update", - "chunk_batch_received": "packet_chunk_batch_received", - "client_command": "packet_client_command", - "tick_end": "packet_tick_end", - "settings": "packet_common_settings", - "tab_complete": "packet_tab_complete", - "configuration_acknowledged": "packet_configuration_acknowledged", - "enchant_item": "packet_enchant_item", - "window_click": "packet_window_click", - "close_window": "packet_close_window", - "set_slot_state": "packet_set_slot_state", - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "debug_subscription_request": "packet_debug_subscription_request", - "edit_book": "packet_edit_book", - "query_entity_nbt": "packet_query_entity_nbt", - "use_entity": "packet_use_entity", - "generate_structure": "packet_generate_structure", - "keep_alive": "packet_keep_alive", - "lock_difficulty": "packet_lock_difficulty", - "position": "packet_position", - "position_look": "packet_position_look", - "look": "packet_look", - "flying": "packet_flying", - "vehicle_move": "packet_vehicle_move", - "steer_boat": "packet_steer_boat", - "pick_item_from_block": "packet_pick_item_from_block", - "pick_item_from_entity": "packet_pick_item_from_entity", - "ping_request": "packet_ping_request", - "craft_recipe_request": "packet_craft_recipe_request", - "abilities": "packet_abilities", - "block_dig": "packet_block_dig", - "entity_action": "packet_entity_action", - "player_input": "packet_player_input", - "player_loaded": "packet_player_loaded", - "pong": "packet_pong", - "recipe_book": "packet_recipe_book", - "displayed_recipe": "packet_displayed_recipe", - "name_item": "packet_name_item", - "resource_pack_receive": "packet_resource_pack_receive", - "advancement_tab": "packet_advancement_tab", - "select_trade": "packet_select_trade", - "set_beacon_effect": "packet_set_beacon_effect", - "held_item_slot": "packet_held_item_slot", - "update_command_block": "packet_update_command_block", - "update_command_block_minecart": "packet_update_command_block_minecart", - "set_creative_slot": "packet_set_creative_slot", - "set_game_rule": "packet_set_game_rule", - "update_jigsaw_block": "packet_update_jigsaw_block", - "update_structure_block": "packet_update_structure_block", - "set_test_block": "packet_set_test_block", - "update_sign": "packet_update_sign", - "spectate_entity": "packet_spectate_entity", - "arm_animation": "packet_arm_animation", - "spectate": "packet_spectate", - "test_instance_block_action": "packet_test_instance_block_action", - "block_place": "packet_block_place", - "use_item": "packet_use_item", - "custom_click_action": "packet_common_custom_click_action" - } - } + "option", + "HashedSlot" ] } ] diff --git a/tools/js/compileProtocol.js b/tools/js/compileProtocol.js index f75b000b0..12829198c 100644 --- a/tools/js/compileProtocol.js +++ b/tools/js/compileProtocol.js @@ -59,14 +59,32 @@ function visitor (key, value) { return value } +// Render object keys in sorted order so regenerated files are byte-stable +// regardless of the source order (JSON object key order carries no meaning +// for ProtoDef compilation). The top-level section order is preserved: +// protodef-validator registers the global `types` namespace before the +// per-state namespaces, so `types` must stay ahead of them no matter how the +// source was assembled. +function sortKeys (value, isTopLevel = false) { + if (Array.isArray(value)) return value.map(v => sortKeys(v)) + if (value && typeof value === 'object') { + const keys = Object.keys(value) + if (!isTopLevel) keys.sort() + const out = {} + for (const key of keys) out[key] = sortKeys(value[key]) + return out + } + return value +} + function convert (edition, ver, path) { process.chdir(path || join(__dirname, `../../data/${edition}/${ver}`)) const [version, json] = genProtoSchema(edition === 'bedrock') fs.mkdirSync(`../${version}`, { recursive: true }) if (edition === 'bedrock') { - fs.writeFileSync(`../${version}/protocol.json`, JSON.stringify({ types: json }, visitor, 2)) + fs.writeFileSync(`../${version}/protocol.json`, JSON.stringify({ types: sortKeys(json, true) }, visitor, 2)) } else if (edition === 'pc') { - fs.writeFileSync(`../${version}/protocol.json`, JSON.stringify(json, visitor, 2)) + fs.writeFileSync(`../${version}/protocol.json`, JSON.stringify(sortKeys(json, true), visitor, 2)) } return version } @@ -83,8 +101,8 @@ function validate (edition, ver, path) { } const expected = edition === 'bedrock' - ? JSON.stringify({ types: json }, visitor, 2) - : JSON.stringify(json, visitor, 2) + ? JSON.stringify({ types: sortKeys(json, true) }, visitor, 2) + : JSON.stringify(sortKeys(json, true), visitor, 2) // If you crash here, no protocol.json was generated - run `npm run build` const actual = JSON.stringify(getJSON(`../${version}/protocol.json`), null, 2) From de2bcf73cfac334dd2d06a62a025ef9ddfe5d79e Mon Sep 17 00:00:00 2001 From: U9G Date: Sat, 15 Aug 2026 22:37:07 -0400 Subject: [PATCH 2/3] Store PC protocols as deltas from the previous version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A proto.yml can now start with !base: to be a delta on an earlier protocol instead of a full copy. Per section, a type present in both is replaced wholesale by the delta (no deep merge — mapper values and packet IDs are positional), types only in the base are inherited, and TypeName: !delete removes an inherited type. npm run build resolves !base chains transparently; full protos are unaffected. All 51 changed PC protocols are converted to deltas (net -70k lines). Each delta was verified to compile to a protocol deep-equal to the previously committed one; thanks to sorted rendering the regenerated protocol.json files are identical except for the position of the configuration section (new in 1.20.2, now appended at the end of the top level) in the 12 versions that have it. Versions with unchanged protocols keep sharing data dirs as before. --- data/pc/1.10-pre1/proto.yml | 1091 +--------- data/pc/1.10/proto.yml | 1063 +--------- data/pc/1.11/proto.yml | 1045 +--------- data/pc/1.12-pre4/proto.yml | 916 +-------- data/pc/1.12.1/proto.yml | 961 +-------- data/pc/1.12.2/proto.yml | 1161 +---------- data/pc/1.12/proto.yml | 916 +-------- data/pc/1.13.1/proto.yml | 1590 +------------- data/pc/1.13.2-pre1/proto.yml | 1583 +------------- data/pc/1.13.2/proto.yml | 1589 +------------- data/pc/1.13/proto.yml | 870 +------- data/pc/1.14.3/proto.yml | 1694 +-------------- data/pc/1.14.4/proto.yml | 1513 +------------- data/pc/1.14/proto.yml | 1255 +---------- data/pc/1.15/proto.yml | 1484 +------------ data/pc/1.16-rc1/proto.yml | 1363 +----------- data/pc/1.16.2/proto.yml | 1390 +------------ data/pc/1.17.1/proto.yml | 1571 +------------- data/pc/1.17/proto.yml | 1387 +------------ data/pc/1.18.2/proto.yml | 1822 +--------------- data/pc/1.18/proto.yml | 1523 +------------- data/pc/1.19.2/proto.yml | 1541 +------------- data/pc/1.19.3/proto.yml | 1231 +---------- data/pc/1.19.4/proto.yml | 1359 +----------- data/pc/1.19/proto.yml | 1141 +--------- data/pc/1.20.2/proto.yml | 1716 +--------------- data/pc/1.20.2/protocol.json | 1786 ++++++++-------- data/pc/1.20.3/proto.yml | 478 ++--- data/pc/1.20.3/protocol.json | 980 ++++----- data/pc/1.20.5/proto.yml | 1237 +---------- data/pc/1.20.5/protocol.json | 786 +++---- data/pc/1.20/proto.yml | 1956 +----------------- data/pc/1.21.1/proto.yml | 2378 +-------------------- data/pc/1.21.1/protocol.json | 898 ++++---- data/pc/1.21.11/proto.yml | 3277 +---------------------------- data/pc/1.21.11/protocol.json | 808 ++++---- data/pc/1.21.3/proto.yml | 2031 +----------------- data/pc/1.21.3/protocol.json | 898 ++++---- data/pc/1.21.4/proto.yml | 3656 ++++----------------------------- data/pc/1.21.4/protocol.json | 936 ++++----- data/pc/1.21.5/proto.yml | 1522 +------------- data/pc/1.21.5/protocol.json | 996 ++++----- data/pc/1.21.6/proto.yml | 2196 +------------------- data/pc/1.21.6/protocol.json | 1014 ++++----- data/pc/1.21.8/proto.yml | 3457 +------------------------------ data/pc/1.21.8/protocol.json | 1014 ++++----- data/pc/1.21.9/proto.yml | 2368 +-------------------- data/pc/1.21.9/protocol.json | 808 ++++---- data/pc/1.7/proto.yml | 371 ++-- data/pc/1.8/proto.yml | 500 ++--- data/pc/1.9.1-pre2/proto.yml | 1093 +--------- data/pc/1.9.4/proto.yml | 932 +-------- data/pc/1.9/proto.yml | 749 +------ data/pc/15w40b/proto.yml | 642 +----- data/pc/16w20a/proto.yml | 1054 +--------- data/pc/16w35a/proto.yml | 1054 +--------- data/pc/17w15a/proto.yml | 842 +------- data/pc/17w18b/proto.yml | 1114 +--------- data/pc/17w50a/proto.yml | 934 +-------- data/pc/20w13b/proto.yml | 1517 +------------- data/pc/21w07a/proto.yml | 1418 +------------ data/pc/26.1/protocol.json | 808 ++++---- data/pc/latest/proto.yml | 2666 +----------------------- doc/protocol.md | 20 + tools/js/backfillDeltas.js | 177 ++ tools/js/compileProtocol.js | 21 +- tools/js/protoDelta.js | 260 +++ 67 files changed, 8643 insertions(+), 77784 deletions(-) create mode 100644 tools/js/backfillDeltas.js create mode 100644 tools/js/protoDelta.js diff --git a/data/pc/1.10-pre1/proto.yml b/data/pc/1.10-pre1/proto.yml index a558db344..80ddb9722 100644 --- a/data/pc/1.10-pre1/proto.yml +++ b/data/pc/1.10-pre1/proto.yml @@ -1,1093 +1,6 @@ !version: 1.10-pre1 - -^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - blockId: i16 - _: blockId ? - if -1: void - default: - itemCount: i8 - itemDamage: i16 - nbtData: optionalNbt - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: slot - if 6: bool - if 7: - pitch: f32 - yaw: f32 - roll: f32 - if 8: position - if 9: [ - "option", - "position" - ] - if 10: varint - if 11: [ - "option", - "UUID" - ] - if 12: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "i8" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - -^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: u8 - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: string - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - name: string - value: varint - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: - matches: string[]varint - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: varint - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: particleId ? - if 36: varint[]$2 - if 37: varint[]$1 - if 38: varint[]$1 - default: void - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - directionAndType: i8 - x: i8 - z: i8 - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: string - if 2: string - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - color: mode ? - if 0: i8 - if 2: i8 - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - default: void - fadeIn: action ? - if 2: i32 - default: void - stay: action ? - if 2: i32 - default: void - fadeOut: action ? - if 2: i32 - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet: - name: varint => - 0x00: spawn_entity - 0x01: spawn_entity_experience_orb - 0x02: spawn_entity_weather - 0x03: spawn_entity_living - 0x04: spawn_entity_painting - 0x05: named_entity_spawn - 0x06: animation - 0x07: statistics - 0x08: block_break_animation - 0x09: tile_entity_data - 0x0a: block_action - 0x0b: block_change - 0x0c: boss_bar - 0x0d: difficulty - 0x0e: tab_complete - 0x0f: chat - 0x10: multi_block_change - 0x11: transaction - 0x12: close_window - 0x13: open_window - 0x14: window_items - 0x15: craft_progress_bar - 0x16: set_slot - 0x17: set_cooldown - 0x18: custom_payload - 0x19: named_sound_effect - 0x1a: kick_disconnect - 0x1b: entity_status - 0x1c: explosion - 0x1d: unload_chunk - 0x1e: game_state_change - 0x1f: keep_alive - 0x20: map_chunk - 0x21: world_event - 0x22: world_particles - 0x23: login - 0x24: map - 0x25: rel_entity_move - 0x26: entity_move_look - 0x27: entity_look - 0x28: entity - 0x29: vehicle_move - 0x2a: open_sign_entity - 0x2b: abilities - 0x2c: combat_event - 0x2d: player_info - 0x2e: position - 0x2f: bed - 0x30: entity_destroy - 0x31: remove_entity_effect - 0x32: resource_pack_send - 0x33: respawn - 0x34: entity_head_rotation - 0x35: world_border - 0x36: camera - 0x37: held_item_slot - 0x38: scoreboard_display_objective - 0x39: entity_metadata - 0x3a: attach_entity - 0x3b: entity_velocity - 0x3c: entity_equipment - 0x3d: experience - 0x3e: update_health - 0x3f: scoreboard_objective - 0x40: set_passengers - 0x41: teams - 0x42: scoreboard_score - 0x43: spawn_position - 0x44: update_time - 0x45: title - 0x46: sound_effect - 0x47: playerlist_header - 0x48: collect - 0x49: entity_teleport - 0x4a: entity_update_attributes - 0x4b: entity_effect - params: name ? - if spawn_entity: packet_spawn_entity - if spawn_entity_experience_orb: packet_spawn_entity_experience_orb - if spawn_entity_weather: packet_spawn_entity_weather - if spawn_entity_living: packet_spawn_entity_living - if spawn_entity_painting: packet_spawn_entity_painting - if named_entity_spawn: packet_named_entity_spawn - if animation: packet_animation - if statistics: packet_statistics - if block_break_animation: packet_block_break_animation - if tile_entity_data: packet_tile_entity_data - if block_action: packet_block_action - if block_change: packet_block_change - if boss_bar: packet_boss_bar - if difficulty: packet_difficulty - if tab_complete: packet_tab_complete - if chat: packet_chat - if multi_block_change: packet_multi_block_change - if transaction: packet_transaction - if close_window: packet_close_window - if open_window: packet_open_window - if window_items: packet_window_items - if craft_progress_bar: packet_craft_progress_bar - if set_slot: packet_set_slot - if set_cooldown: packet_set_cooldown - if custom_payload: packet_custom_payload - if named_sound_effect: packet_named_sound_effect - if kick_disconnect: packet_kick_disconnect - if entity_status: packet_entity_status - if explosion: packet_explosion - if unload_chunk: packet_unload_chunk - if game_state_change: packet_game_state_change - if keep_alive: packet_keep_alive - if map_chunk: packet_map_chunk - if world_event: packet_world_event - if world_particles: packet_world_particles - if login: packet_login - if map: packet_map - if rel_entity_move: packet_rel_entity_move - if entity_move_look: packet_entity_move_look - if entity_look: packet_entity_look - if entity: packet_entity - if vehicle_move: packet_vehicle_move - if open_sign_entity: packet_open_sign_entity - if abilities: packet_abilities - if combat_event: packet_combat_event - if player_info: packet_player_info - if position: packet_position - if bed: packet_bed - if entity_destroy: packet_entity_destroy - if remove_entity_effect: packet_remove_entity_effect - if resource_pack_send: packet_resource_pack_send - if respawn: packet_respawn - if entity_update_attributes: packet_entity_update_attributes - if world_border: packet_world_border - if camera: packet_camera - if held_item_slot: packet_held_item_slot - if scoreboard_display_objective: packet_scoreboard_display_objective - if entity_metadata: packet_entity_metadata - if attach_entity: packet_attach_entity - if entity_velocity: packet_entity_velocity - if entity_equipment: packet_entity_equipment - if experience: packet_experience - if update_health: packet_update_health - if scoreboard_objective: packet_scoreboard_objective - if set_passengers: packet_set_passengers - if teams: packet_teams - if scoreboard_score: packet_scoreboard_score - if spawn_position: packet_spawn_position - if update_time: packet_update_time - if title: packet_title - if sound_effect: packet_sound_effect - if playerlist_header: packet_playerlist_header - if collect: packet_collect - if entity_teleport: packet_entity_teleport - if entity_head_rotation: packet_entity_head_rotation - if entity_effect: packet_entity_effect +!base: 16w20a ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_tab_complete: - text: string - assumeCommand: bool - lookedAtBlock?: position - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: varint - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_resource_pack_receive: + packet_resource_pack_receive: result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: i8 - cursorY: i8 - cursorZ: i8 - packet_use_item: - hand: varint - packet: - name: varint => - 0x00: teleport_confirm - 0x01: tab_complete - 0x02: chat - 0x03: client_command - 0x04: settings - 0x05: transaction - 0x06: enchant_item - 0x07: window_click - 0x08: close_window - 0x09: custom_payload - 0x0a: use_entity - 0x0b: keep_alive - 0x0c: position - 0x0d: position_look - 0x0e: look - 0x0f: flying - 0x10: vehicle_move - 0x11: steer_boat - 0x12: abilities - 0x13: block_dig - 0x14: entity_action - 0x15: steer_vehicle - 0x16: resource_pack_receive - 0x17: held_item_slot - 0x18: set_creative_slot - 0x19: update_sign - 0x1a: arm_animation - 0x1b: spectate - 0x1c: block_place - 0x1d: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if transaction: packet_transaction - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if keep_alive: packet_keep_alive - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item diff --git a/data/pc/1.10/proto.yml b/data/pc/1.10/proto.yml index 767b8f51b..e2d1775b3 100644 --- a/data/pc/1.10/proto.yml +++ b/data/pc/1.10/proto.yml @@ -1,520 +1,7 @@ !version: 1.10 - -^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - blockId: i16 - _: blockId ? - if -1: void - default: - itemCount: i8 - itemDamage: i16 - nbtData: optionalNbt - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: slot - if 6: bool - if 7: - pitch: f32 - yaw: f32 - roll: f32 - if 8: position - if 9: [ - "option", - "position" - ] - if 10: varint - if 11: [ - "option", - "UUID" - ] - if 12: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "i8" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin +!base: 1.10-pre1 ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: u8 - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: string - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - name: string - value: varint - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: - matches: string[]varint - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: varint - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: particleId ? - if 36: varint[]$2 - if 37: varint[]$1 - if 38: varint[]$1 - default: void - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - directionAndType: i8 - x: i8 - z: i8 - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void # MC: ClientboundPlayerInfoPacket packet_player_info: action: varint => @@ -543,551 +30,3 @@ if update_display_name: displayName?: string if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: string - if 2: string - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - color: mode ? - if 0: i8 - if 2: i8 - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - default: void - fadeIn: action ? - if 2: i32 - default: void - stay: action ? - if 2: i32 - default: void - fadeOut: action ? - if 2: i32 - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet: - name: varint => - 0x00: spawn_entity - 0x01: spawn_entity_experience_orb - 0x02: spawn_entity_weather - 0x03: spawn_entity_living - 0x04: spawn_entity_painting - 0x05: named_entity_spawn - 0x06: animation - 0x07: statistics - 0x08: block_break_animation - 0x09: tile_entity_data - 0x0a: block_action - 0x0b: block_change - 0x0c: boss_bar - 0x0d: difficulty - 0x0e: tab_complete - 0x0f: chat - 0x10: multi_block_change - 0x11: transaction - 0x12: close_window - 0x13: open_window - 0x14: window_items - 0x15: craft_progress_bar - 0x16: set_slot - 0x17: set_cooldown - 0x18: custom_payload - 0x19: named_sound_effect - 0x1a: kick_disconnect - 0x1b: entity_status - 0x1c: explosion - 0x1d: unload_chunk - 0x1e: game_state_change - 0x1f: keep_alive - 0x20: map_chunk - 0x21: world_event - 0x22: world_particles - 0x23: login - 0x24: map - 0x25: rel_entity_move - 0x26: entity_move_look - 0x27: entity_look - 0x28: entity - 0x29: vehicle_move - 0x2a: open_sign_entity - 0x2b: abilities - 0x2c: combat_event - 0x2d: player_info - 0x2e: position - 0x2f: bed - 0x30: entity_destroy - 0x31: remove_entity_effect - 0x32: resource_pack_send - 0x33: respawn - 0x34: entity_head_rotation - 0x35: world_border - 0x36: camera - 0x37: held_item_slot - 0x38: scoreboard_display_objective - 0x39: entity_metadata - 0x3a: attach_entity - 0x3b: entity_velocity - 0x3c: entity_equipment - 0x3d: experience - 0x3e: update_health - 0x3f: scoreboard_objective - 0x40: set_passengers - 0x41: teams - 0x42: scoreboard_score - 0x43: spawn_position - 0x44: update_time - 0x45: title - 0x46: sound_effect - 0x47: playerlist_header - 0x48: collect - 0x49: entity_teleport - 0x4a: entity_update_attributes - 0x4b: entity_effect - params: name ? - if spawn_entity: packet_spawn_entity - if spawn_entity_experience_orb: packet_spawn_entity_experience_orb - if spawn_entity_weather: packet_spawn_entity_weather - if spawn_entity_living: packet_spawn_entity_living - if spawn_entity_painting: packet_spawn_entity_painting - if named_entity_spawn: packet_named_entity_spawn - if animation: packet_animation - if statistics: packet_statistics - if block_break_animation: packet_block_break_animation - if tile_entity_data: packet_tile_entity_data - if block_action: packet_block_action - if block_change: packet_block_change - if boss_bar: packet_boss_bar - if difficulty: packet_difficulty - if tab_complete: packet_tab_complete - if chat: packet_chat - if multi_block_change: packet_multi_block_change - if transaction: packet_transaction - if close_window: packet_close_window - if open_window: packet_open_window - if window_items: packet_window_items - if craft_progress_bar: packet_craft_progress_bar - if set_slot: packet_set_slot - if set_cooldown: packet_set_cooldown - if custom_payload: packet_custom_payload - if named_sound_effect: packet_named_sound_effect - if kick_disconnect: packet_kick_disconnect - if entity_status: packet_entity_status - if explosion: packet_explosion - if unload_chunk: packet_unload_chunk - if game_state_change: packet_game_state_change - if keep_alive: packet_keep_alive - if map_chunk: packet_map_chunk - if world_event: packet_world_event - if world_particles: packet_world_particles - if login: packet_login - if map: packet_map - if rel_entity_move: packet_rel_entity_move - if entity_move_look: packet_entity_move_look - if entity_look: packet_entity_look - if entity: packet_entity - if vehicle_move: packet_vehicle_move - if open_sign_entity: packet_open_sign_entity - if abilities: packet_abilities - if combat_event: packet_combat_event - if player_info: packet_player_info - if position: packet_position - if bed: packet_bed - if entity_destroy: packet_entity_destroy - if remove_entity_effect: packet_remove_entity_effect - if resource_pack_send: packet_resource_pack_send - if respawn: packet_respawn - if entity_update_attributes: packet_entity_update_attributes - if world_border: packet_world_border - if camera: packet_camera - if held_item_slot: packet_held_item_slot - if scoreboard_display_objective: packet_scoreboard_display_objective - if entity_metadata: packet_entity_metadata - if attach_entity: packet_attach_entity - if entity_velocity: packet_entity_velocity - if entity_equipment: packet_entity_equipment - if experience: packet_experience - if update_health: packet_update_health - if scoreboard_objective: packet_scoreboard_objective - if set_passengers: packet_set_passengers - if teams: packet_teams - if scoreboard_score: packet_scoreboard_score - if spawn_position: packet_spawn_position - if update_time: packet_update_time - if title: packet_title - if sound_effect: packet_sound_effect - if playerlist_header: packet_playerlist_header - if collect: packet_collect - if entity_teleport: packet_entity_teleport - if entity_head_rotation: packet_entity_head_rotation - if entity_effect: packet_entity_effect - -^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_tab_complete: - text: string - assumeCommand: bool - lookedAtBlock?: position - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: varint - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: i8 - cursorY: i8 - cursorZ: i8 - packet_use_item: - hand: varint - packet: - name: varint => - 0x00: teleport_confirm - 0x01: tab_complete - 0x02: chat - 0x03: client_command - 0x04: settings - 0x05: transaction - 0x06: enchant_item - 0x07: window_click - 0x08: close_window - 0x09: custom_payload - 0x0a: use_entity - 0x0b: keep_alive - 0x0c: position - 0x0d: position_look - 0x0e: look - 0x0f: flying - 0x10: vehicle_move - 0x11: steer_boat - 0x12: abilities - 0x13: block_dig - 0x14: entity_action - 0x15: steer_vehicle - 0x16: resource_pack_receive - 0x17: held_item_slot - 0x18: set_creative_slot - 0x19: update_sign - 0x1a: arm_animation - 0x1b: spectate - 0x1c: block_place - 0x1d: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if transaction: packet_transaction - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if keep_alive: packet_keep_alive - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item diff --git a/data/pc/1.11/proto.yml b/data/pc/1.11/proto.yml index acfc12644..9d558341f 100644 --- a/data/pc/1.11/proto.yml +++ b/data/pc/1.11/proto.yml @@ -1,520 +1,7 @@ !version: 1.11 - -^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - blockId: i16 - _: blockId ? - if -1: void - default: - itemCount: i8 - itemDamage: i16 - nbtData: optionalNbt - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: slot - if 6: bool - if 7: - pitch: f32 - yaw: f32 - roll: f32 - if 8: position - if 9: [ - "option", - "position" - ] - if 10: varint - if 11: [ - "option", - "UUID" - ] - if 12: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "i8" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin +!base: 16w35a ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: string - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - name: string - value: varint - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: - matches: string[]varint - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: varint - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: particleId ? - if 36: varint[]$2 - if 37: varint[]$1 - if 38: varint[]$1 - default: void - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - directionAndType: i8 - x: i8 - z: i8 - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void # MC: ClientboundPlayerInfoPacket packet_player_info: action: varint => @@ -543,160 +30,8 @@ if update_display_name: displayName?: string if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: string - if 2: string - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - color: mode ? - if 0: i8 - if 2: i8 - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: + + packet_title: action: varint text: action ? if 0: string @@ -712,384 +47,12 @@ fadeOut: action ? if 3: i32 default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet: - name: varint => - 0x00: spawn_entity - 0x01: spawn_entity_experience_orb - 0x02: spawn_entity_weather - 0x03: spawn_entity_living - 0x04: spawn_entity_painting - 0x05: named_entity_spawn - 0x06: animation - 0x07: statistics - 0x08: block_break_animation - 0x09: tile_entity_data - 0x0a: block_action - 0x0b: block_change - 0x0c: boss_bar - 0x0d: difficulty - 0x0e: tab_complete - 0x0f: chat - 0x10: multi_block_change - 0x11: transaction - 0x12: close_window - 0x13: open_window - 0x14: window_items - 0x15: craft_progress_bar - 0x16: set_slot - 0x17: set_cooldown - 0x18: custom_payload - 0x19: named_sound_effect - 0x1a: kick_disconnect - 0x1b: entity_status - 0x1c: explosion - 0x1d: unload_chunk - 0x1e: game_state_change - 0x1f: keep_alive - 0x20: map_chunk - 0x21: world_event - 0x22: world_particles - 0x23: login - 0x24: map - 0x25: rel_entity_move - 0x26: entity_move_look - 0x27: entity_look - 0x28: entity - 0x29: vehicle_move - 0x2a: open_sign_entity - 0x2b: abilities - 0x2c: combat_event - 0x2d: player_info - 0x2e: position - 0x2f: bed - 0x30: entity_destroy - 0x31: remove_entity_effect - 0x32: resource_pack_send - 0x33: respawn - 0x34: entity_head_rotation - 0x35: world_border - 0x36: camera - 0x37: held_item_slot - 0x38: scoreboard_display_objective - 0x39: entity_metadata - 0x3a: attach_entity - 0x3b: entity_velocity - 0x3c: entity_equipment - 0x3d: experience - 0x3e: update_health - 0x3f: scoreboard_objective - 0x40: set_passengers - 0x41: teams - 0x42: scoreboard_score - 0x43: spawn_position - 0x44: update_time - 0x45: title - 0x46: sound_effect - 0x47: playerlist_header - 0x48: collect - 0x49: entity_teleport - 0x4a: entity_update_attributes - 0x4b: entity_effect - params: name ? - if spawn_entity: packet_spawn_entity - if spawn_entity_experience_orb: packet_spawn_entity_experience_orb - if spawn_entity_weather: packet_spawn_entity_weather - if spawn_entity_living: packet_spawn_entity_living - if spawn_entity_painting: packet_spawn_entity_painting - if named_entity_spawn: packet_named_entity_spawn - if animation: packet_animation - if statistics: packet_statistics - if block_break_animation: packet_block_break_animation - if tile_entity_data: packet_tile_entity_data - if block_action: packet_block_action - if block_change: packet_block_change - if boss_bar: packet_boss_bar - if difficulty: packet_difficulty - if tab_complete: packet_tab_complete - if chat: packet_chat - if multi_block_change: packet_multi_block_change - if transaction: packet_transaction - if close_window: packet_close_window - if open_window: packet_open_window - if window_items: packet_window_items - if craft_progress_bar: packet_craft_progress_bar - if set_slot: packet_set_slot - if set_cooldown: packet_set_cooldown - if custom_payload: packet_custom_payload - if named_sound_effect: packet_named_sound_effect - if kick_disconnect: packet_kick_disconnect - if entity_status: packet_entity_status - if explosion: packet_explosion - if unload_chunk: packet_unload_chunk - if game_state_change: packet_game_state_change - if keep_alive: packet_keep_alive - if map_chunk: packet_map_chunk - if world_event: packet_world_event - if world_particles: packet_world_particles - if login: packet_login - if map: packet_map - if rel_entity_move: packet_rel_entity_move - if entity_move_look: packet_entity_move_look - if entity_look: packet_entity_look - if entity: packet_entity - if vehicle_move: packet_vehicle_move - if open_sign_entity: packet_open_sign_entity - if abilities: packet_abilities - if combat_event: packet_combat_event - if player_info: packet_player_info - if position: packet_position - if bed: packet_bed - if entity_destroy: packet_entity_destroy - if remove_entity_effect: packet_remove_entity_effect - if resource_pack_send: packet_resource_pack_send - if respawn: packet_respawn - if entity_update_attributes: packet_entity_update_attributes - if world_border: packet_world_border - if camera: packet_camera - if held_item_slot: packet_held_item_slot - if scoreboard_display_objective: packet_scoreboard_display_objective - if entity_metadata: packet_entity_metadata - if attach_entity: packet_attach_entity - if entity_velocity: packet_entity_velocity - if entity_equipment: packet_entity_equipment - if experience: packet_experience - if update_health: packet_update_health - if scoreboard_objective: packet_scoreboard_objective - if set_passengers: packet_set_passengers - if teams: packet_teams - if scoreboard_score: packet_scoreboard_score - if spawn_position: packet_spawn_position - if update_time: packet_update_time - if title: packet_title - if sound_effect: packet_sound_effect - if playerlist_header: packet_playerlist_header - if collect: packet_collect - if entity_teleport: packet_entity_teleport - if entity_head_rotation: packet_entity_head_rotation - if entity_effect: packet_entity_effect ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_tab_complete: - text: string - assumeCommand: bool - lookedAtBlock?: position - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: varint - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: + packet_block_place: location: position direction: varint hand: varint cursorX: f32 cursorY: f32 cursorZ: f32 - packet_use_item: - hand: varint - packet: - name: varint => - 0x00: teleport_confirm - 0x01: tab_complete - 0x02: chat - 0x03: client_command - 0x04: settings - 0x05: transaction - 0x06: enchant_item - 0x07: window_click - 0x08: close_window - 0x09: custom_payload - 0x0a: use_entity - 0x0b: keep_alive - 0x0c: position - 0x0d: position_look - 0x0e: look - 0x0f: flying - 0x10: vehicle_move - 0x11: steer_boat - 0x12: abilities - 0x13: block_dig - 0x14: entity_action - 0x15: steer_vehicle - 0x16: resource_pack_receive - 0x17: held_item_slot - 0x18: set_creative_slot - 0x19: update_sign - 0x1a: arm_animation - 0x1b: spectate - 0x1c: block_place - 0x1d: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if transaction: packet_transaction - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if keep_alive: packet_keep_alive - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item diff --git a/data/pc/1.12-pre4/proto.yml b/data/pc/1.12-pre4/proto.yml index 3fc5a4f97..27d0b6d77 100644 --- a/data/pc/1.12-pre4/proto.yml +++ b/data/pc/1.12-pre4/proto.yml @@ -1,296 +1,14 @@ !version: 1.12-pre4 - -^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - blockId: i16 - _: blockId ? - if -1: void - default: - itemCount: i8 - itemDamage: i16 - nbtData: optionalNbt - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: slot - if 6: bool - if 7: - pitch: f32 - yaw: f32 - roll: f32 - if 8: position - if 9: [ - "option", - "position" - ] - if 10: varint - if 11: [ - "option", - "UUID" - ] - if 12: varint - if 13: nbt - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "i8" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin +!base: 17w18b ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: string - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - name: string - value: varint - packet_advancements: + packet_advancements: reset: bool advancementMapping: []varint key: string - value: + value: parentId?: string - displayData?: + displayData?: title: string description: string icon: slot @@ -310,482 +28,11 @@ value: []varint criterionIdentifier: string criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: - matches: string[]varint - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: varint - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: particleId ? - if 36: varint[]$2 - if 37: varint[]$1 - if 38: varint[]$1 - default: void - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - directionAndType: i8 - x: i8 - z: i8 - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_unlock_recipes: - action: i16 - craftingBookOpen: bool - filteringCraftable: bool - recipes1: i32[]varint - recipes2: i32[]varint - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: string - if 2: string - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - color: mode ? - if 0: i8 - if 2: i8 - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_advancement_progress: + + packet_advancement_progress: id?: string - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -948,154 +195,13 @@ if advancement_progress: packet_advancement_progress ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_prepare_crafting_grid: - windowId: u8 - actionNumber: u16 - returnEntry: []u16 - item: slot - craftingSlot: u8 - playerSlot: u8 - prepareEntry: []u16 - item: slot - craftingSlot: u8 - playerSlot: u8 - packet_tab_complete: - text: string - assumeCommand: bool - lookedAtBlock?: position - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: varint - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_crafting_book_data: - type: i32 - _: type ? - if 1: - displayedRecipe: string - if 2: - craftingBookOpen: bool - craftingFilter: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - packet_use_item: - hand: varint - packet_advancement_tab: + packet_advancement_tab: action: varint tabId: action ? if 0: string if 1: void - packet: + + packet: name: varint => 0x00: teleport_confirm 0x01: prepare_crafting_grid diff --git a/data/pc/1.12.1/proto.yml b/data/pc/1.12.1/proto.yml index 6eeefb377..f94f06422 100644 --- a/data/pc/1.12.1/proto.yml +++ b/data/pc/1.12.1/proto.yml @@ -1,822 +1,12 @@ !version: 1.12.1 - -^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - blockId: i16 - _: blockId ? - if -1: void - default: - itemCount: i8 - itemDamage: i16 - nbtData: optionalNbt - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: slot - if 6: bool - if 7: - pitch: f32 - yaw: f32 - roll: f32 - if 8: position - if 9: [ - "option", - "position" - ] - if 10: varint - if 11: [ - "option", - "UUID" - ] - if 12: varint - if 13: nbt - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "i8" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin +!base: 1.12 ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: string - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - name: string - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: - matches: string[]varint - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: varint - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: particleId ? - if 36: varint[]$2 - if 37: varint[]$1 - if 38: varint[]$1 - default: void - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - directionAndType: i8 - x: i8 - z: i8 - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_craft_recipe_response: + packet_craft_recipe_response: windowId: i8 recipe: varint - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - recipes1: varint[]varint - recipes2: action ? - if 0: varint[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: string - if 2: string - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - color: mode ? - if 0: i8 - if 2: i8 - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -981,147 +171,14 @@ if select_advancement_tab: packet_select_advancement_tab ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_tab_complete: - text: string - assumeCommand: bool - lookedAtBlock?: position - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: varint - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: + packet_prepare_crafting_grid: !delete + + packet_craft_recipe_request: windowId: i8 recipe: varint makeAll: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_crafting_book_data: - type: varint - _: type ? - if 0: - displayedRecipe: i32 - if 1: - craftingBookOpen: bool - craftingFilter: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet: + + packet: name: varint => 0x00: teleport_confirm 0x01: tab_complete diff --git a/data/pc/1.12.2/proto.yml b/data/pc/1.12.2/proto.yml index 065fc4573..122d93125 100644 --- a/data/pc/1.12.2/proto.yml +++ b/data/pc/1.12.2/proto.yml @@ -1,576 +1,10 @@ !version: 1.12.2 - -^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - blockId: i16 - _: blockId ? - if -1: void - default: - itemCount: i8 - itemDamage: i16 - nbtData: optionalNbt - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: slot - if 6: bool - if 7: - pitch: f32 - yaw: f32 - roll: f32 - if 8: position - if 9: [ - "option", - "position" - ] - if 10: varint - if 11: [ - "option", - "UUID" - ] - if 12: varint - if 13: nbt - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "i8" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin +!base: 1.12.1 ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: string - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - name: string - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: - matches: string[]varint - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: + packet_keep_alive: keepAliveId: i64 - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: particleId ? - if 36: varint[]$2 - if 37: varint[]$1 - if 38: varint[]$1 - default: void - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - directionAndType: i8 - x: i8 - z: i8 - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: varint - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void + # MC: ClientboundPlayerInfoPacket packet_player_info: action: varint => @@ -599,594 +33,7 @@ if update_display_name: displayName?: string if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - recipes1: varint[]varint - recipes2: action ? - if 0: varint[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: string - if 2: string - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - color: mode ? - if 0: i8 - if 2: i8 - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet: - name: varint => - 0x00: spawn_entity - 0x01: spawn_entity_experience_orb - 0x02: spawn_entity_weather - 0x03: spawn_entity_living - 0x04: spawn_entity_painting - 0x05: named_entity_spawn - 0x06: animation - 0x07: statistics - 0x08: block_break_animation - 0x09: tile_entity_data - 0x0a: block_action - 0x0b: block_change - 0x0c: boss_bar - 0x0d: difficulty - 0x0e: tab_complete - 0x0f: chat - 0x10: multi_block_change - 0x11: transaction - 0x12: close_window - 0x13: open_window - 0x14: window_items - 0x15: craft_progress_bar - 0x16: set_slot - 0x17: set_cooldown - 0x18: custom_payload - 0x19: named_sound_effect - 0x1a: kick_disconnect - 0x1b: entity_status - 0x1c: explosion - 0x1d: unload_chunk - 0x1e: game_state_change - 0x1f: keep_alive - 0x20: map_chunk - 0x21: world_event - 0x22: world_particles - 0x23: login - 0x24: map - 0x25: entity - 0x26: rel_entity_move - 0x27: entity_move_look - 0x28: entity_look - 0x29: vehicle_move - 0x2a: open_sign_entity - 0x2b: craft_recipe_response - 0x2c: abilities - 0x2d: combat_event - 0x2e: player_info - 0x2f: position - 0x30: bed - 0x31: unlock_recipes - 0x32: entity_destroy - 0x33: remove_entity_effect - 0x34: resource_pack_send - 0x35: respawn - 0x36: entity_head_rotation - 0x37: select_advancement_tab - 0x38: world_border - 0x39: camera - 0x3a: held_item_slot - 0x3b: scoreboard_display_objective - 0x3c: entity_metadata - 0x3d: attach_entity - 0x3e: entity_velocity - 0x3f: entity_equipment - 0x40: experience - 0x41: update_health - 0x42: scoreboard_objective - 0x43: set_passengers - 0x44: teams - 0x45: scoreboard_score - 0x46: spawn_position - 0x47: update_time - 0x48: title - 0x49: sound_effect - 0x4a: playerlist_header - 0x4b: collect - 0x4c: entity_teleport - 0x4d: advancements - 0x4e: entity_update_attributes - 0x4f: entity_effect - params: name ? - if spawn_entity: packet_spawn_entity - if spawn_entity_experience_orb: packet_spawn_entity_experience_orb - if spawn_entity_weather: packet_spawn_entity_weather - if spawn_entity_living: packet_spawn_entity_living - if spawn_entity_painting: packet_spawn_entity_painting - if named_entity_spawn: packet_named_entity_spawn - if animation: packet_animation - if statistics: packet_statistics - if advancements: packet_advancements - if block_break_animation: packet_block_break_animation - if tile_entity_data: packet_tile_entity_data - if block_action: packet_block_action - if block_change: packet_block_change - if boss_bar: packet_boss_bar - if difficulty: packet_difficulty - if tab_complete: packet_tab_complete - if chat: packet_chat - if multi_block_change: packet_multi_block_change - if transaction: packet_transaction - if close_window: packet_close_window - if open_window: packet_open_window - if window_items: packet_window_items - if craft_progress_bar: packet_craft_progress_bar - if set_slot: packet_set_slot - if set_cooldown: packet_set_cooldown - if custom_payload: packet_custom_payload - if named_sound_effect: packet_named_sound_effect - if kick_disconnect: packet_kick_disconnect - if entity_status: packet_entity_status - if explosion: packet_explosion - if unload_chunk: packet_unload_chunk - if game_state_change: packet_game_state_change - if keep_alive: packet_keep_alive - if map_chunk: packet_map_chunk - if world_event: packet_world_event - if world_particles: packet_world_particles - if login: packet_login - if map: packet_map - if rel_entity_move: packet_rel_entity_move - if entity_move_look: packet_entity_move_look - if entity_look: packet_entity_look - if entity: packet_entity - if vehicle_move: packet_vehicle_move - if open_sign_entity: packet_open_sign_entity - if craft_recipe_response: packet_craft_recipe_response - if abilities: packet_abilities - if combat_event: packet_combat_event - if player_info: packet_player_info - if position: packet_position - if bed: packet_bed - if unlock_recipes: packet_unlock_recipes - if entity_destroy: packet_entity_destroy - if remove_entity_effect: packet_remove_entity_effect - if resource_pack_send: packet_resource_pack_send - if respawn: packet_respawn - if entity_update_attributes: packet_entity_update_attributes - if world_border: packet_world_border - if camera: packet_camera - if held_item_slot: packet_held_item_slot - if scoreboard_display_objective: packet_scoreboard_display_objective - if entity_metadata: packet_entity_metadata - if attach_entity: packet_attach_entity - if entity_velocity: packet_entity_velocity - if entity_equipment: packet_entity_equipment - if experience: packet_experience - if update_health: packet_update_health - if scoreboard_objective: packet_scoreboard_objective - if set_passengers: packet_set_passengers - if teams: packet_teams - if scoreboard_score: packet_scoreboard_score - if spawn_position: packet_spawn_position - if update_time: packet_update_time - if title: packet_title - if sound_effect: packet_sound_effect - if playerlist_header: packet_playerlist_header - if collect: packet_collect - if entity_teleport: packet_entity_teleport - if entity_head_rotation: packet_entity_head_rotation - if entity_effect: packet_entity_effect - if select_advancement_tab: packet_select_advancement_tab ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_tab_complete: - text: string - assumeCommand: bool - lookedAtBlock?: position - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: + packet_keep_alive: keepAliveId: i64 - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: varint - makeAll: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_crafting_book_data: - type: varint - _: type ? - if 0: - displayedRecipe: i32 - if 1: - craftingBookOpen: bool - craftingFilter: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet: - name: varint => - 0x00: teleport_confirm - 0x01: tab_complete - 0x02: chat - 0x03: client_command - 0x04: settings - 0x05: transaction - 0x06: enchant_item - 0x07: window_click - 0x08: close_window - 0x09: custom_payload - 0x0a: use_entity - 0x0b: keep_alive - 0x0c: flying - 0x0d: position - 0x0e: position_look - 0x0f: look - 0x10: vehicle_move - 0x11: steer_boat - 0x12: craft_recipe_request - 0x13: abilities - 0x14: block_dig - 0x15: entity_action - 0x16: steer_vehicle - 0x17: crafting_book_data - 0x18: resource_pack_receive - 0x19: advancement_tab - 0x1a: held_item_slot - 0x1b: set_creative_slot - 0x1c: update_sign - 0x1d: arm_animation - 0x1e: spectate - 0x1f: block_place - 0x20: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if transaction: packet_transaction - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if keep_alive: packet_keep_alive - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if craft_recipe_request: packet_craft_recipe_request - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if crafting_book_data: packet_crafting_book_data - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item - if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.12/proto.yml b/data/pc/1.12/proto.yml index df2b7cde4..5aef2c844 100644 --- a/data/pc/1.12/proto.yml +++ b/data/pc/1.12/proto.yml @@ -1,296 +1,16 @@ !version: 1.12 - -^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - blockId: i16 - _: blockId ? - if -1: void - default: - itemCount: i8 - itemDamage: i16 - nbtData: optionalNbt - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: slot - if 6: bool - if 7: - pitch: f32 - yaw: f32 - roll: f32 - if 8: position - if 9: [ - "option", - "position" - ] - if 10: varint - if 11: [ - "option", - "UUID" - ] - if 12: varint - if 13: nbt - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "i8" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin +!base: 1.12-pre4 ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: string - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - name: string - value: varint - packet_advancements: + packet_advancement_progress: !delete + + packet_advancements: reset: bool advancementMapping: []varint key: string - value: + value: parentId?: string - displayData?: + displayData?: title: string description: string icon: slot @@ -336,278 +56,8 @@ value: []varint criterionIdentifier: string criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: - matches: string[]varint - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: varint - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: particleId ? - if 36: varint[]$2 - if 37: varint[]$1 - if 38: varint[]$1 - default: void - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - directionAndType: i8 - x: i8 - z: i8 - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_unlock_recipes: + + packet_unlock_recipes: action: varint craftingBookOpen: bool filteringCraftable: bool @@ -615,205 +65,11 @@ recipes2: action ? if 0: varint[]varint default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: string - if 2: string - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - color: mode ? - if 0: i8 - if 2: i8 - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: + + packet_select_advancement_tab: id?: string - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -976,154 +232,16 @@ if select_advancement_tab: packet_select_advancement_tab ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_prepare_crafting_grid: - windowId: u8 - actionNumber: u16 - returnEntry: []u16 - item: slot - craftingSlot: u8 - playerSlot: u8 - prepareEntry: []u16 - item: slot - craftingSlot: u8 - playerSlot: u8 - packet_tab_complete: - text: string - assumeCommand: bool - lookedAtBlock?: position - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: varint - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_crafting_book_data: + packet_crafting_book_data: type: varint _: type ? - if 0: + if 0: displayedRecipe: i32 - if 1: + if 1: craftingBookOpen: bool craftingFilter: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet: + + packet: name: varint => 0x00: teleport_confirm 0x01: prepare_crafting_grid diff --git a/data/pc/1.13.1/proto.yml b/data/pc/1.13.1/proto.yml index 25ee1881e..986b61484 100644 --- a/data/pc/1.13.1/proto.yml +++ b/data/pc/1.13.1/proto.yml @@ -1,876 +1,7 @@ !version: 1.13.1 - -^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - itemId: i16 - _: itemId ? - if -1: void - default: - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - particleData: $compareTo ? - if 3: - blockState: varint - if 11: - red: f32 - green: f32 - blue: f32 - scale: f32 - if 20: - blockState: varint - if 27: - item: slot - default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: [ - "option", - "string" - ] - if 6: slot - if 7: bool - if 8: - pitch: f32 - yaw: f32 - roll: f32 - if 9: position - if 10: [ - "option", - "position" - ] - if 11: varint - if 12: [ - "option", - "UUID" - ] - if 13: varint - if 14: nbt - if 15: particle - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: string - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:mob_effect: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:range: - allowDecimals: bool - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:item_enchantment: void - if minecraft:entity_summon: void - if minecraft:dimension: void - if minecraft:nbt_compound_tag: void - if minecraft:time: void - if minecraft:resource_or_tag: - registry: string - if minecraft:resource: - registry: string - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response +!base: 1.13 ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: varint - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void # MC: ClientboundPlayerInfoPacket packet_player_info: action: varint => @@ -899,726 +30,9 @@ if update_display_name: displayName?: string if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet_declare_recipes: - recipes: []varint - recipeId: string - type: string - data: type ? - if crafting_shapeless: - group: string - ingredients: ingredient[]varint - result: slot - if crafting_shaped: - width: varint - height: varint - group: string - ingredients: []$width - _: ingredient[]$height - result: slot - if crafting_special_armordye: void - if crafting_special_bookcloning: void - if crafting_special_mapcloning: void - if crafting_special_mapextending: void - if crafting_special_firework_rocket: void - if crafting_special_firework_star: void - if crafting_special_firework_star_fade: void - if crafting_special_repairitem: void - if crafting_special_tippedarrow: void - if crafting_special_bannerduplicate: void - if crafting_special_banneraddpattern: void - if crafting_special_shielddecoration: void - if crafting_special_shulkerboxcoloring: void - if smelting: - group: string - ingredient: ingredient - result: slot - experience: f32 - cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - packet_tags: - blockTags: tags - itemTags: tags - fluidTags: tags - packet: - name: varint => - 0x00: spawn_entity - 0x01: spawn_entity_experience_orb - 0x02: spawn_entity_weather - 0x03: spawn_entity_living - 0x04: spawn_entity_painting - 0x05: named_entity_spawn - 0x06: animation - 0x07: statistics - 0x08: block_break_animation - 0x09: tile_entity_data - 0x0a: block_action - 0x0b: block_change - 0x0c: boss_bar - 0x0d: difficulty - 0x0e: chat - 0x0f: multi_block_change - 0x10: tab_complete - 0x11: declare_commands - 0x12: transaction - 0x13: close_window - 0x14: open_window - 0x15: window_items - 0x16: craft_progress_bar - 0x17: set_slot - 0x18: set_cooldown - 0x19: custom_payload - 0x1a: named_sound_effect - 0x1b: kick_disconnect - 0x1c: entity_status - 0x1d: nbt_query_response - 0x1e: explosion - 0x1f: unload_chunk - 0x20: game_state_change - 0x21: keep_alive - 0x22: map_chunk - 0x23: world_event - 0x24: world_particles - 0x25: login - 0x26: map - 0x27: entity - 0x28: rel_entity_move - 0x29: entity_move_look - 0x2a: entity_look - 0x2b: vehicle_move - 0x2c: open_sign_entity - 0x2d: craft_recipe_response - 0x2e: abilities - 0x2f: combat_event - 0x30: player_info - 0x31: face_player - 0x32: position - 0x33: bed - 0x34: unlock_recipes - 0x35: entity_destroy - 0x36: remove_entity_effect - 0x37: resource_pack_send - 0x38: respawn - 0x39: entity_head_rotation - 0x3a: select_advancement_tab - 0x3b: world_border - 0x3c: camera - 0x3d: held_item_slot - 0x3e: scoreboard_display_objective - 0x3f: entity_metadata - 0x40: attach_entity - 0x41: entity_velocity - 0x42: entity_equipment - 0x43: experience - 0x44: update_health - 0x45: scoreboard_objective - 0x46: set_passengers - 0x47: teams - 0x48: scoreboard_score - 0x49: spawn_position - 0x4a: update_time - 0x4b: title - 0x4c: stop_sound - 0x4d: sound_effect - 0x4e: playerlist_header - 0x4f: collect - 0x50: entity_teleport - 0x51: advancements - 0x52: entity_update_attributes - 0x53: entity_effect - 0x54: declare_recipes - 0x55: tags - params: name ? - if spawn_entity: packet_spawn_entity - if spawn_entity_experience_orb: packet_spawn_entity_experience_orb - if spawn_entity_weather: packet_spawn_entity_weather - if spawn_entity_living: packet_spawn_entity_living - if spawn_entity_painting: packet_spawn_entity_painting - if named_entity_spawn: packet_named_entity_spawn - if animation: packet_animation - if statistics: packet_statistics - if advancements: packet_advancements - if block_break_animation: packet_block_break_animation - if tile_entity_data: packet_tile_entity_data - if block_action: packet_block_action - if block_change: packet_block_change - if boss_bar: packet_boss_bar - if difficulty: packet_difficulty - if tab_complete: packet_tab_complete - if declare_commands: packet_declare_commands - if face_player: packet_face_player - if nbt_query_response: packet_nbt_query_response - if chat: packet_chat - if multi_block_change: packet_multi_block_change - if transaction: packet_transaction - if close_window: packet_close_window - if open_window: packet_open_window - if window_items: packet_window_items - if craft_progress_bar: packet_craft_progress_bar - if set_slot: packet_set_slot - if set_cooldown: packet_set_cooldown - if custom_payload: packet_custom_payload - if named_sound_effect: packet_named_sound_effect - if kick_disconnect: packet_kick_disconnect - if entity_status: packet_entity_status - if explosion: packet_explosion - if unload_chunk: packet_unload_chunk - if game_state_change: packet_game_state_change - if keep_alive: packet_keep_alive - if map_chunk: packet_map_chunk - if world_event: packet_world_event - if world_particles: packet_world_particles - if login: packet_login - if map: packet_map - if rel_entity_move: packet_rel_entity_move - if entity_move_look: packet_entity_move_look - if entity_look: packet_entity_look - if entity: packet_entity - if vehicle_move: packet_vehicle_move - if open_sign_entity: packet_open_sign_entity - if craft_recipe_response: packet_craft_recipe_response - if abilities: packet_abilities - if combat_event: packet_combat_event - if player_info: packet_player_info - if position: packet_position - if bed: packet_bed - if unlock_recipes: packet_unlock_recipes - if entity_destroy: packet_entity_destroy - if remove_entity_effect: packet_remove_entity_effect - if resource_pack_send: packet_resource_pack_send - if respawn: packet_respawn - if entity_update_attributes: packet_entity_update_attributes - if world_border: packet_world_border - if camera: packet_camera - if held_item_slot: packet_held_item_slot - if scoreboard_display_objective: packet_scoreboard_display_objective - if entity_metadata: packet_entity_metadata - if attach_entity: packet_attach_entity - if entity_velocity: packet_entity_velocity - if entity_equipment: packet_entity_equipment - if experience: packet_experience - if update_health: packet_update_health - if scoreboard_objective: packet_scoreboard_objective - if set_passengers: packet_set_passengers - if teams: packet_teams - if scoreboard_score: packet_scoreboard_score - if spawn_position: packet_spawn_position - if update_time: packet_update_time - if title: packet_title - if stop_sound: packet_stop_sound - if sound_effect: packet_sound_effect - if playerlist_header: packet_playerlist_header - if collect: packet_collect - if entity_teleport: packet_entity_teleport - if entity_head_rotation: packet_entity_head_rotation - if entity_effect: packet_entity_effect - if select_advancement_tab: packet_select_advancement_tab - if declare_recipes: packet_declare_recipes - if tags: packet_tags ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_edit_book: + packet_edit_book: new_book: slot signing: bool hand: varint - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect: varint - secondary_effect: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varlong - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: i64 - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_crafting_book_data: - type: varint - _: type ? - if 0: - displayedRecipe: string - if 1: - craftingBookOpen: bool - craftingFilter: bool - smeltingBookOpen: bool - smeltingFilter: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet: - name: varint => - 0x00: teleport_confirm - 0x01: query_block_nbt - 0x02: chat - 0x03: client_command - 0x04: settings - 0x05: tab_complete - 0x06: transaction - 0x07: enchant_item - 0x08: window_click - 0x09: close_window - 0x0a: custom_payload - 0x0b: edit_book - 0x0c: query_entity_nbt - 0x0d: use_entity - 0x0e: keep_alive - 0x0f: flying - 0x10: position - 0x11: position_look - 0x12: look - 0x13: vehicle_move - 0x14: steer_boat - 0x15: pick_item - 0x16: craft_recipe_request - 0x17: abilities - 0x18: block_dig - 0x19: entity_action - 0x1a: steer_vehicle - 0x1b: crafting_book_data - 0x1c: name_item - 0x1d: resource_pack_receive - 0x1e: advancement_tab - 0x1f: select_trade - 0x20: set_beacon_effect - 0x21: held_item_slot - 0x22: update_command_block - 0x23: update_command_block_minecart - 0x24: set_creative_slot - 0x25: update_structure_block - 0x26: update_sign - 0x27: arm_animation - 0x28: spectate - 0x29: block_place - 0x2a: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if query_block_nbt: packet_query_block_nbt - if edit_book: packet_edit_book - if query_entity_nbt: packet_query_entity_nbt - if pick_item: packet_pick_item - if name_item: packet_name_item - if select_trade: packet_select_trade - if set_beacon_effect: packet_set_beacon_effect - if update_command_block: packet_update_command_block - if update_command_block_minecart: packet_update_command_block_minecart - if update_structure_block: packet_update_structure_block - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if transaction: packet_transaction - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if keep_alive: packet_keep_alive - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if craft_recipe_request: packet_craft_recipe_request - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if crafting_book_data: packet_crafting_book_data - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item - if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.13.2-pre1/proto.yml b/data/pc/1.13.2-pre1/proto.yml index 7d4a012d3..2ad39cc33 100644 --- a/data/pc/1.13.2-pre1/proto.yml +++ b/data/pc/1.13.2-pre1/proto.yml @@ -1,1021 +1,18 @@ !version: 1.13.2-pre1 +!base: 1.13.1 ^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: + slot: present: bool _: present ? if false: void - if true: + if true: itemId: varint itemCount: i8 nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - particleData: $compareTo ? - if 3: - blockState: varint - if 11: - red: f32 - green: f32 - blue: f32 - scale: f32 - if 20: - blockState: varint - if 27: - item: slot - default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: [ - "option", - "string" - ] - if 6: slot - if 7: bool - if 8: - pitch: f32 - yaw: f32 - roll: f32 - if 9: position - if 10: [ - "option", - "position" - ] - if 11: varint - if 12: [ - "option", - "UUID" - ] - if 13: varint - if 14: nbt - if 15: particle - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: string - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:mob_effect: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:range: - allowDecimals: bool - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:item_enchantment: void - if minecraft:entity_summon: void - if minecraft:dimension: void - if minecraft:nbt_compound_tag: void - if minecraft:time: void - if minecraft:resource_or_tag: - registry: string - if minecraft:resource: - registry: string - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: varint - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: + packet_teams: team: string mode: i8 name: mode ? @@ -1051,575 +48,3 @@ if 0: string if 2: string default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet_declare_recipes: - recipes: []varint - recipeId: string - type: string - data: type ? - if crafting_shapeless: - group: string - ingredients: ingredient[]varint - result: slot - if crafting_shaped: - width: varint - height: varint - group: string - ingredients: []$width - _: ingredient[]$height - result: slot - if crafting_special_armordye: void - if crafting_special_bookcloning: void - if crafting_special_mapcloning: void - if crafting_special_mapextending: void - if crafting_special_firework_rocket: void - if crafting_special_firework_star: void - if crafting_special_firework_star_fade: void - if crafting_special_repairitem: void - if crafting_special_tippedarrow: void - if crafting_special_bannerduplicate: void - if crafting_special_banneraddpattern: void - if crafting_special_shielddecoration: void - if crafting_special_shulkerboxcoloring: void - if smelting: - group: string - ingredient: ingredient - result: slot - experience: f32 - cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - packet_tags: - blockTags: tags - itemTags: tags - fluidTags: tags - packet: - name: varint => - 0x00: spawn_entity - 0x01: spawn_entity_experience_orb - 0x02: spawn_entity_weather - 0x03: spawn_entity_living - 0x04: spawn_entity_painting - 0x05: named_entity_spawn - 0x06: animation - 0x07: statistics - 0x08: block_break_animation - 0x09: tile_entity_data - 0x0a: block_action - 0x0b: block_change - 0x0c: boss_bar - 0x0d: difficulty - 0x0e: chat - 0x0f: multi_block_change - 0x10: tab_complete - 0x11: declare_commands - 0x12: transaction - 0x13: close_window - 0x14: open_window - 0x15: window_items - 0x16: craft_progress_bar - 0x17: set_slot - 0x18: set_cooldown - 0x19: custom_payload - 0x1a: named_sound_effect - 0x1b: kick_disconnect - 0x1c: entity_status - 0x1d: nbt_query_response - 0x1e: explosion - 0x1f: unload_chunk - 0x20: game_state_change - 0x21: keep_alive - 0x22: map_chunk - 0x23: world_event - 0x24: world_particles - 0x25: login - 0x26: map - 0x27: entity - 0x28: rel_entity_move - 0x29: entity_move_look - 0x2a: entity_look - 0x2b: vehicle_move - 0x2c: open_sign_entity - 0x2d: craft_recipe_response - 0x2e: abilities - 0x2f: combat_event - 0x30: player_info - 0x31: face_player - 0x32: position - 0x33: bed - 0x34: unlock_recipes - 0x35: entity_destroy - 0x36: remove_entity_effect - 0x37: resource_pack_send - 0x38: respawn - 0x39: entity_head_rotation - 0x3a: select_advancement_tab - 0x3b: world_border - 0x3c: camera - 0x3d: held_item_slot - 0x3e: scoreboard_display_objective - 0x3f: entity_metadata - 0x40: attach_entity - 0x41: entity_velocity - 0x42: entity_equipment - 0x43: experience - 0x44: update_health - 0x45: scoreboard_objective - 0x46: set_passengers - 0x47: teams - 0x48: scoreboard_score - 0x49: spawn_position - 0x4a: update_time - 0x4b: title - 0x4c: stop_sound - 0x4d: sound_effect - 0x4e: playerlist_header - 0x4f: collect - 0x50: entity_teleport - 0x51: advancements - 0x52: entity_update_attributes - 0x53: entity_effect - 0x54: declare_recipes - 0x55: tags - params: name ? - if spawn_entity: packet_spawn_entity - if spawn_entity_experience_orb: packet_spawn_entity_experience_orb - if spawn_entity_weather: packet_spawn_entity_weather - if spawn_entity_living: packet_spawn_entity_living - if spawn_entity_painting: packet_spawn_entity_painting - if named_entity_spawn: packet_named_entity_spawn - if animation: packet_animation - if statistics: packet_statistics - if advancements: packet_advancements - if block_break_animation: packet_block_break_animation - if tile_entity_data: packet_tile_entity_data - if block_action: packet_block_action - if block_change: packet_block_change - if boss_bar: packet_boss_bar - if difficulty: packet_difficulty - if tab_complete: packet_tab_complete - if declare_commands: packet_declare_commands - if face_player: packet_face_player - if nbt_query_response: packet_nbt_query_response - if chat: packet_chat - if multi_block_change: packet_multi_block_change - if transaction: packet_transaction - if close_window: packet_close_window - if open_window: packet_open_window - if window_items: packet_window_items - if craft_progress_bar: packet_craft_progress_bar - if set_slot: packet_set_slot - if set_cooldown: packet_set_cooldown - if custom_payload: packet_custom_payload - if named_sound_effect: packet_named_sound_effect - if kick_disconnect: packet_kick_disconnect - if entity_status: packet_entity_status - if explosion: packet_explosion - if unload_chunk: packet_unload_chunk - if game_state_change: packet_game_state_change - if keep_alive: packet_keep_alive - if map_chunk: packet_map_chunk - if world_event: packet_world_event - if world_particles: packet_world_particles - if login: packet_login - if map: packet_map - if rel_entity_move: packet_rel_entity_move - if entity_move_look: packet_entity_move_look - if entity_look: packet_entity_look - if entity: packet_entity - if vehicle_move: packet_vehicle_move - if open_sign_entity: packet_open_sign_entity - if craft_recipe_response: packet_craft_recipe_response - if abilities: packet_abilities - if combat_event: packet_combat_event - if player_info: packet_player_info - if position: packet_position - if bed: packet_bed - if unlock_recipes: packet_unlock_recipes - if entity_destroy: packet_entity_destroy - if remove_entity_effect: packet_remove_entity_effect - if resource_pack_send: packet_resource_pack_send - if respawn: packet_respawn - if entity_update_attributes: packet_entity_update_attributes - if world_border: packet_world_border - if camera: packet_camera - if held_item_slot: packet_held_item_slot - if scoreboard_display_objective: packet_scoreboard_display_objective - if entity_metadata: packet_entity_metadata - if attach_entity: packet_attach_entity - if entity_velocity: packet_entity_velocity - if entity_equipment: packet_entity_equipment - if experience: packet_experience - if update_health: packet_update_health - if scoreboard_objective: packet_scoreboard_objective - if set_passengers: packet_set_passengers - if teams: packet_teams - if scoreboard_score: packet_scoreboard_score - if spawn_position: packet_spawn_position - if update_time: packet_update_time - if title: packet_title - if stop_sound: packet_stop_sound - if sound_effect: packet_sound_effect - if playerlist_header: packet_playerlist_header - if collect: packet_collect - if entity_teleport: packet_entity_teleport - if entity_head_rotation: packet_entity_head_rotation - if entity_effect: packet_entity_effect - if select_advancement_tab: packet_select_advancement_tab - if declare_recipes: packet_declare_recipes - if tags: packet_tags - -^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_edit_book: - new_book: slot - signing: bool - hand: varint - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect: varint - secondary_effect: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varlong - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: i64 - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_crafting_book_data: - type: varint - _: type ? - if 0: - displayedRecipe: string - if 1: - craftingBookOpen: bool - craftingFilter: bool - smeltingBookOpen: bool - smeltingFilter: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet: - name: varint => - 0x00: teleport_confirm - 0x01: query_block_nbt - 0x02: chat - 0x03: client_command - 0x04: settings - 0x05: tab_complete - 0x06: transaction - 0x07: enchant_item - 0x08: window_click - 0x09: close_window - 0x0a: custom_payload - 0x0b: edit_book - 0x0c: query_entity_nbt - 0x0d: use_entity - 0x0e: keep_alive - 0x0f: flying - 0x10: position - 0x11: position_look - 0x12: look - 0x13: vehicle_move - 0x14: steer_boat - 0x15: pick_item - 0x16: craft_recipe_request - 0x17: abilities - 0x18: block_dig - 0x19: entity_action - 0x1a: steer_vehicle - 0x1b: crafting_book_data - 0x1c: name_item - 0x1d: resource_pack_receive - 0x1e: advancement_tab - 0x1f: select_trade - 0x20: set_beacon_effect - 0x21: held_item_slot - 0x22: update_command_block - 0x23: update_command_block_minecart - 0x24: set_creative_slot - 0x25: update_structure_block - 0x26: update_sign - 0x27: arm_animation - 0x28: spectate - 0x29: block_place - 0x2a: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if query_block_nbt: packet_query_block_nbt - if edit_book: packet_edit_book - if query_entity_nbt: packet_query_entity_nbt - if pick_item: packet_pick_item - if name_item: packet_name_item - if select_trade: packet_select_trade - if set_beacon_effect: packet_set_beacon_effect - if update_command_block: packet_update_command_block - if update_command_block_minecart: packet_update_command_block_minecart - if update_structure_block: packet_update_structure_block - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if transaction: packet_transaction - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if keep_alive: packet_keep_alive - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if craft_recipe_request: packet_craft_recipe_request - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if crafting_book_data: packet_crafting_book_data - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item - if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.13.2/proto.yml b/data/pc/1.13.2/proto.yml index 741bd0a57..0fdfc14aa 100644 --- a/data/pc/1.13.2/proto.yml +++ b/data/pc/1.13.2/proto.yml @@ -1,1021 +1,8 @@ !version: 1.13.2 - -^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - particleData: $compareTo ? - if 3: - blockState: varint - if 11: - red: f32 - green: f32 - blue: f32 - scale: f32 - if 20: - blockState: varint - if 27: - item: slot - default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: [ - "option", - "string" - ] - if 6: slot - if 7: bool - if 8: - pitch: f32 - yaw: f32 - roll: f32 - if 9: position - if 10: [ - "option", - "position" - ] - if 11: varint - if 12: [ - "option", - "UUID" - ] - if 13: varint - if 14: nbt - if 15: particle - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: string - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:mob_effect: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:range: - allowDecimals: bool - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:item_enchantment: void - if minecraft:entity_summon: void - if minecraft:dimension: void - if minecraft:nbt_compound_tag: void - if minecraft:time: void - if minecraft:resource_or_tag: - registry: string - if minecraft:resource: - registry: string - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response +!base: 1.13.2-pre2 ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: varint - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: + packet_teams: team: string mode: i8 name: mode ? @@ -1051,575 +38,3 @@ if 3: string[]varint if 4: string[]varint default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet_declare_recipes: - recipes: []varint - recipeId: string - type: string - data: type ? - if crafting_shapeless: - group: string - ingredients: ingredient[]varint - result: slot - if crafting_shaped: - width: varint - height: varint - group: string - ingredients: []$width - _: ingredient[]$height - result: slot - if crafting_special_armordye: void - if crafting_special_bookcloning: void - if crafting_special_mapcloning: void - if crafting_special_mapextending: void - if crafting_special_firework_rocket: void - if crafting_special_firework_star: void - if crafting_special_firework_star_fade: void - if crafting_special_repairitem: void - if crafting_special_tippedarrow: void - if crafting_special_bannerduplicate: void - if crafting_special_banneraddpattern: void - if crafting_special_shielddecoration: void - if crafting_special_shulkerboxcoloring: void - if smelting: - group: string - ingredient: ingredient - result: slot - experience: f32 - cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - packet_tags: - blockTags: tags - itemTags: tags - fluidTags: tags - packet: - name: varint => - 0x00: spawn_entity - 0x01: spawn_entity_experience_orb - 0x02: spawn_entity_weather - 0x03: spawn_entity_living - 0x04: spawn_entity_painting - 0x05: named_entity_spawn - 0x06: animation - 0x07: statistics - 0x08: block_break_animation - 0x09: tile_entity_data - 0x0a: block_action - 0x0b: block_change - 0x0c: boss_bar - 0x0d: difficulty - 0x0e: chat - 0x0f: multi_block_change - 0x10: tab_complete - 0x11: declare_commands - 0x12: transaction - 0x13: close_window - 0x14: open_window - 0x15: window_items - 0x16: craft_progress_bar - 0x17: set_slot - 0x18: set_cooldown - 0x19: custom_payload - 0x1a: named_sound_effect - 0x1b: kick_disconnect - 0x1c: entity_status - 0x1d: nbt_query_response - 0x1e: explosion - 0x1f: unload_chunk - 0x20: game_state_change - 0x21: keep_alive - 0x22: map_chunk - 0x23: world_event - 0x24: world_particles - 0x25: login - 0x26: map - 0x27: entity - 0x28: rel_entity_move - 0x29: entity_move_look - 0x2a: entity_look - 0x2b: vehicle_move - 0x2c: open_sign_entity - 0x2d: craft_recipe_response - 0x2e: abilities - 0x2f: combat_event - 0x30: player_info - 0x31: face_player - 0x32: position - 0x33: bed - 0x34: unlock_recipes - 0x35: entity_destroy - 0x36: remove_entity_effect - 0x37: resource_pack_send - 0x38: respawn - 0x39: entity_head_rotation - 0x3a: select_advancement_tab - 0x3b: world_border - 0x3c: camera - 0x3d: held_item_slot - 0x3e: scoreboard_display_objective - 0x3f: entity_metadata - 0x40: attach_entity - 0x41: entity_velocity - 0x42: entity_equipment - 0x43: experience - 0x44: update_health - 0x45: scoreboard_objective - 0x46: set_passengers - 0x47: teams - 0x48: scoreboard_score - 0x49: spawn_position - 0x4a: update_time - 0x4b: title - 0x4c: stop_sound - 0x4d: sound_effect - 0x4e: playerlist_header - 0x4f: collect - 0x50: entity_teleport - 0x51: advancements - 0x52: entity_update_attributes - 0x53: entity_effect - 0x54: declare_recipes - 0x55: tags - params: name ? - if spawn_entity: packet_spawn_entity - if spawn_entity_experience_orb: packet_spawn_entity_experience_orb - if spawn_entity_weather: packet_spawn_entity_weather - if spawn_entity_living: packet_spawn_entity_living - if spawn_entity_painting: packet_spawn_entity_painting - if named_entity_spawn: packet_named_entity_spawn - if animation: packet_animation - if statistics: packet_statistics - if advancements: packet_advancements - if block_break_animation: packet_block_break_animation - if tile_entity_data: packet_tile_entity_data - if block_action: packet_block_action - if block_change: packet_block_change - if boss_bar: packet_boss_bar - if difficulty: packet_difficulty - if tab_complete: packet_tab_complete - if declare_commands: packet_declare_commands - if face_player: packet_face_player - if nbt_query_response: packet_nbt_query_response - if chat: packet_chat - if multi_block_change: packet_multi_block_change - if transaction: packet_transaction - if close_window: packet_close_window - if open_window: packet_open_window - if window_items: packet_window_items - if craft_progress_bar: packet_craft_progress_bar - if set_slot: packet_set_slot - if set_cooldown: packet_set_cooldown - if custom_payload: packet_custom_payload - if named_sound_effect: packet_named_sound_effect - if kick_disconnect: packet_kick_disconnect - if entity_status: packet_entity_status - if explosion: packet_explosion - if unload_chunk: packet_unload_chunk - if game_state_change: packet_game_state_change - if keep_alive: packet_keep_alive - if map_chunk: packet_map_chunk - if world_event: packet_world_event - if world_particles: packet_world_particles - if login: packet_login - if map: packet_map - if rel_entity_move: packet_rel_entity_move - if entity_move_look: packet_entity_move_look - if entity_look: packet_entity_look - if entity: packet_entity - if vehicle_move: packet_vehicle_move - if open_sign_entity: packet_open_sign_entity - if craft_recipe_response: packet_craft_recipe_response - if abilities: packet_abilities - if combat_event: packet_combat_event - if player_info: packet_player_info - if position: packet_position - if bed: packet_bed - if unlock_recipes: packet_unlock_recipes - if entity_destroy: packet_entity_destroy - if remove_entity_effect: packet_remove_entity_effect - if resource_pack_send: packet_resource_pack_send - if respawn: packet_respawn - if entity_update_attributes: packet_entity_update_attributes - if world_border: packet_world_border - if camera: packet_camera - if held_item_slot: packet_held_item_slot - if scoreboard_display_objective: packet_scoreboard_display_objective - if entity_metadata: packet_entity_metadata - if attach_entity: packet_attach_entity - if entity_velocity: packet_entity_velocity - if entity_equipment: packet_entity_equipment - if experience: packet_experience - if update_health: packet_update_health - if scoreboard_objective: packet_scoreboard_objective - if set_passengers: packet_set_passengers - if teams: packet_teams - if scoreboard_score: packet_scoreboard_score - if spawn_position: packet_spawn_position - if update_time: packet_update_time - if title: packet_title - if stop_sound: packet_stop_sound - if sound_effect: packet_sound_effect - if playerlist_header: packet_playerlist_header - if collect: packet_collect - if entity_teleport: packet_entity_teleport - if entity_head_rotation: packet_entity_head_rotation - if entity_effect: packet_entity_effect - if select_advancement_tab: packet_select_advancement_tab - if declare_recipes: packet_declare_recipes - if tags: packet_tags - -^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_edit_book: - new_book: slot - signing: bool - hand: varint - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect: varint - secondary_effect: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varlong - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: i64 - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_crafting_book_data: - type: varint - _: type ? - if 0: - displayedRecipe: string - if 1: - craftingBookOpen: bool - craftingFilter: bool - smeltingBookOpen: bool - smeltingFilter: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet: - name: varint => - 0x00: teleport_confirm - 0x01: query_block_nbt - 0x02: chat - 0x03: client_command - 0x04: settings - 0x05: tab_complete - 0x06: transaction - 0x07: enchant_item - 0x08: window_click - 0x09: close_window - 0x0a: custom_payload - 0x0b: edit_book - 0x0c: query_entity_nbt - 0x0d: use_entity - 0x0e: keep_alive - 0x0f: flying - 0x10: position - 0x11: position_look - 0x12: look - 0x13: vehicle_move - 0x14: steer_boat - 0x15: pick_item - 0x16: craft_recipe_request - 0x17: abilities - 0x18: block_dig - 0x19: entity_action - 0x1a: steer_vehicle - 0x1b: crafting_book_data - 0x1c: name_item - 0x1d: resource_pack_receive - 0x1e: advancement_tab - 0x1f: select_trade - 0x20: set_beacon_effect - 0x21: held_item_slot - 0x22: update_command_block - 0x23: update_command_block_minecart - 0x24: set_creative_slot - 0x25: update_structure_block - 0x26: update_sign - 0x27: arm_animation - 0x28: spectate - 0x29: block_place - 0x2a: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if query_block_nbt: packet_query_block_nbt - if edit_book: packet_edit_book - if query_entity_nbt: packet_query_entity_nbt - if pick_item: packet_pick_item - if name_item: packet_name_item - if select_trade: packet_select_trade - if set_beacon_effect: packet_set_beacon_effect - if update_command_block: packet_update_command_block - if update_command_block_minecart: packet_update_command_block_minecart - if update_structure_block: packet_update_structure_block - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if transaction: packet_transaction - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if keep_alive: packet_keep_alive - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if craft_recipe_request: packet_craft_recipe_request - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if crafting_book_data: packet_crafting_book_data - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item - if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.13/proto.yml b/data/pc/1.13/proto.yml index 768e557d6..b056833ba 100644 --- a/data/pc/1.13/proto.yml +++ b/data/pc/1.13/proto.yml @@ -1,45 +1,16 @@ !version: 1.13 +!base: 17w50a ^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: + slot: itemId: i16 _: itemId ? if -1: void - default: + default: itemCount: i8 nbtData: optionalNbt - particle: + + particle: particleId: varint data: [ "particleData", @@ -47,40 +18,23 @@ "compareTo": "particleId" } ] + particleData: $compareTo ? - if 3: + if 3: blockState: varint - if 11: + if 11: red: f32 green: f32 blue: f32 scale: f32 - if 20: + if 20: blockState: varint - if 27: + if 27: item: slot default: void + ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] + entityMetadataItem: $compareTo ? if 0: i8 if 1: varint @@ -93,7 +47,7 @@ ] if 6: slot if 7: bool - if 8: + if 8: pitch: f32 yaw: f32 roll: f32 @@ -110,6 +64,7 @@ if 13: varint if 14: nbt if 15: particle + entityMetadata: [ "entityMetadataLoop", { @@ -146,7 +101,8 @@ ] } ] - command_node: + + command_node: flags: [ "bitfield", [ @@ -183,14 +139,14 @@ default: void extraNodeData: flags/command_node_type ? if 0: void - if 1: + if 1: name: string - if 2: + if 2: name: string parser: string properties: parser ? if brigadier:bool: void - if brigadier:float: + if brigadier:float: flags: [ "bitfield", [ @@ -217,7 +173,7 @@ max: flags/max_present ? if 1: f32 default: void - if brigadier:double: + if brigadier:double: flags: [ "bitfield", [ @@ -244,7 +200,7 @@ max: flags/max_present ? if 1: f64 default: void - if brigadier:integer: + if brigadier:integer: flags: [ "bitfield", [ @@ -271,7 +227,7 @@ max: flags/max_present ? if 1: i32 default: void - if brigadier:long: + if brigadier:long: flags: [ "bitfield", [ @@ -365,7 +321,7 @@ if minecraft:mob_effect: void if minecraft:function: void if minecraft:entity_anchor: void - if minecraft:range: + if minecraft:range: allowDecimals: bool if minecraft:int_range: void if minecraft:float_range: void @@ -374,89 +330,22 @@ if minecraft:dimension: void if minecraft:nbt_compound_tag: void if minecraft:time: void - if minecraft:resource_or_tag: + if minecraft:resource_or_tag: registry: string - if minecraft:resource: + if minecraft:resource: registry: string if minecraft:uuid: void suggestionType: ../flags/has_custom_suggestions ? if 1: string default: void -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - ^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet_login_plugin_request: + packet_login_plugin_request: messageId: varint channel: string data: restBuffer - packet: + + packet: name: varint => 0x00: disconnect 0x01: encryption_begin @@ -471,25 +360,11 @@ if login_plugin_request: packet_login_plugin_request ^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: + packet_login_plugin_response: messageId: varint data?: restBuffer - packet: + + packet: name: varint => 0x00: login_start 0x01: encryption_begin @@ -500,168 +375,32 @@ if login_plugin_response: packet_login_plugin_response ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: + packet_spawn_entity_painting: entityId: varint entityUUID: UUID title: varint location: position direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: + + packet_statistics: entries: []varint categoryId: varint statisticId: varint value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: + + packet_tab_complete: transactionId: varint start: varint length: varint matches: []varint match: string tooltip?: string - packet_declare_commands: + + packet_declare_commands: nodes: command_node[]varint rootIndex: varint - packet_face_player: + + packet_face_player: feet_eyes: varint x: f64 y: f64 @@ -673,101 +412,12 @@ entity_feet_eyes: isEntity ? if true: string default: void - packet_nbt_query_response: + + packet_nbt_query_response: transactionId: varint nbt: optionalNbt - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: + + packet_world_particles: particleId: i32 longDistance: bool x: f32 @@ -784,15 +434,8 @@ "compareTo": "particleId" } ] - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: + + packet_map: itemDamage: varint scale: i8 trackingPosition: bool @@ -820,57 +463,7 @@ "countType": "varint" } ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void + # MC: ClientboundPlayerInfoPacket packet_player_info: action: varint => @@ -899,18 +492,8 @@ if update_display_name: displayName?: string if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_unlock_recipes: + + packet_unlock_recipes: action: varint craftingBookOpen: bool filteringCraftable: bool @@ -920,87 +503,8 @@ recipes2: action ? if 0: string[]varint default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: + + packet_scoreboard_objective: name: string action: i8 displayText: action ? @@ -1011,10 +515,8 @@ if 0: varint if 2: varint default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: + + packet_teams: team: string mode: i8 name: mode ? @@ -1050,94 +552,17 @@ if 3: string[]varint if 4: string[]varint default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet_declare_recipes: + + packet_declare_recipes: recipes: []varint recipeId: string type: string data: type ? - if crafting_shapeless: + if crafting_shapeless: group: string ingredients: ingredient[]varint result: slot - if crafting_shaped: + if crafting_shaped: width: varint height: varint group: string @@ -1157,20 +582,19 @@ if crafting_special_banneraddpattern: void if crafting_special_shielddecoration: void if crafting_special_shulkerboxcoloring: void - if smelting: + if smelting: group: string ingredient: ingredient result: slot experience: f32 cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - packet_tags: + + packet_tags: blockTags: tags itemTags: tags fluidTags: tags - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -1347,36 +771,43 @@ if tags: packet_tags ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: + packet_query_block_nbt: transactionId: varint location: position - packet_edit_book: + + packet_edit_book: new_book: slot signing: bool - packet_query_entity_nbt: + + packet_query_entity_nbt: transactionId: varint entityId: varint - packet_pick_item: + + packet_pick_item: slot: varint - packet_name_item: + + packet_name_item: name: string - packet_select_trade: + + packet_select_trade: slot: varint - packet_set_beacon_effect: + + packet_set_beacon_effect: primary_effect: varint secondary_effect: varint - packet_update_command_block: + + packet_update_command_block: location: position command: string mode: varint flags: u8 - packet_update_command_block_minecart: + + packet_update_command_block_minecart: entityId: varint command: string track_output: bool - packet_update_structure_block: + + packet_update_structure_block: location: position action: varint mode: varint @@ -1393,146 +824,19 @@ integrity: f32 seed: varlong flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: i64 - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_crafting_book_data: + + packet_crafting_book_data: type: varint _: type ? - if 0: + if 0: displayedRecipe: string - if 1: + if 1: craftingBookOpen: bool craftingFilter: bool smeltingBookOpen: bool smeltingFilter: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet: + + packet: name: varint => 0x00: teleport_confirm 0x01: query_block_nbt diff --git a/data/pc/1.14.3/proto.yml b/data/pc/1.14.3/proto.yml index e00e7c470..e6ac38247 100644 --- a/data/pc/1.14.3/proto.yml +++ b/data/pc/1.14.3/proto.yml @@ -1,854 +1,8 @@ !version: 1.14.3 - -^types: - varint: native - varlong: native - optvarint: varint - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - particleData: $compareTo ? - if 3: - blockState: varint - if 14: - red: f32 - green: f32 - blue: f32 - scale: f32 - if 23: - blockState: varint - if 32: - item: slot - default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: [ - "option", - "string" - ] - if 6: slot - if 7: bool - if 8: - pitch: f32 - yaw: f32 - roll: f32 - if 9: position - if 10: [ - "option", - "position" - ] - if 11: varint - if 12: [ - "option", - "UUID" - ] - if 13: varint - if 14: nbt - if 15: particle - if 16: - villagerType: varint - villagerProfession: varint - level: varint - if 17: optvarint - if 18: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - minecraft_smelting_format: - group: string - ingredient: ingredient - result: slot - experience: f32 - cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: string - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:mob_effect: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:range: - allowDecimals: bool - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:item_enchantment: void - if minecraft:entity_summon: void - if minecraft:dimension: void - if minecraft:nbt_compound_tag: void - if minecraft:time: void - if minecraft:resource_or_tag: - registry: string - if minecraft:resource: - registry: string - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response +!base: 1.14.1 ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: varint - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: string - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: - windowId: u8 - nbSlots: varint - entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - heightmaps: nbt - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_update_light: - chunkX: varint - chunkZ: varint - skyLightMask: varint - blockLightMask: varint - emptySkyLightMask: varint - emptyBlockLightMask: varint - data: restBuffer - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - maxPlayers: u8 - levelType: string - viewDistance: varint - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - locked: bool - icons: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_trade_list: + packet_trade_list: windowId: varint trades: []u8 inputItem1: slot @@ -864,847 +18,3 @@ experience: varint isRegularVillager: bool canRestock: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: - hand: varint - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: - chunkX: varint - chunkZ: varint - packet_update_view_distance: - viewDistance: varint - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_entity_sound_effect: - soundId: varint - soundCategory: varint - entityId: varint - volume: f32 - pitch: f32 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet_declare_recipes: - recipes: []varint - type: string - recipeId: string - data: type ? - if minecraft:crafting_shapeless: - group: string - ingredients: ingredient[]varint - result: slot - if minecraft:crafting_shaped: - width: varint - height: varint - group: string - ingredients: []$width - _: ingredient[]$height - result: slot - if minecraft:crafting_special_armordye: void - if minecraft:crafting_special_bookcloning: void - if minecraft:crafting_special_mapcloning: void - if minecraft:crafting_special_mapextending: void - if minecraft:crafting_special_firework_rocket: void - if minecraft:crafting_special_firework_star: void - if minecraft:crafting_special_firework_star_fade: void - if minecraft:crafting_special_repairitem: void - if minecraft:crafting_special_tippedarrow: void - if minecraft:crafting_special_bannerduplicate: void - if minecraft:crafting_special_banneraddpattern: void - if minecraft:crafting_special_shielddecoration: void - if minecraft:crafting_special_shulkerboxcoloring: void - if minecraft:crafting_special_suspiciousstew: void - if minecraft:smelting: minecraft_smelting_format - if minecraft:blasting: minecraft_smelting_format - if minecraft:smoking: minecraft_smelting_format - if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: - group: string - ingredient: ingredient - result: slot - packet_tags: - blockTags: tags - itemTags: tags - fluidTags: tags - entityTags: tags - packet: - name: varint => - 0x00: spawn_entity - 0x01: spawn_entity_experience_orb - 0x02: spawn_entity_weather - 0x03: spawn_entity_living - 0x04: spawn_entity_painting - 0x05: named_entity_spawn - 0x06: animation - 0x07: statistics - 0x08: block_break_animation - 0x09: tile_entity_data - 0x0a: block_action - 0x0b: block_change - 0x0c: boss_bar - 0x0d: difficulty - 0x0e: chat - 0x0f: multi_block_change - 0x10: tab_complete - 0x11: declare_commands - 0x12: transaction - 0x13: close_window - 0x14: window_items - 0x15: craft_progress_bar - 0x16: set_slot - 0x17: set_cooldown - 0x18: custom_payload - 0x19: named_sound_effect - 0x1a: kick_disconnect - 0x1b: entity_status - 0x1c: explosion - 0x1d: unload_chunk - 0x1e: game_state_change - 0x1f: open_horse_window - 0x20: keep_alive - 0x21: map_chunk - 0x22: world_event - 0x23: world_particles - 0x24: update_light - 0x25: login - 0x26: map - 0x27: trade_list - 0x28: rel_entity_move - 0x29: entity_move_look - 0x2a: entity_look - 0x2b: entity - 0x2c: vehicle_move - 0x2d: open_book - 0x2e: open_window - 0x2f: open_sign_entity - 0x30: craft_recipe_response - 0x31: abilities - 0x32: combat_event - 0x33: player_info - 0x34: face_player - 0x35: position - 0x36: unlock_recipes - 0x37: entity_destroy - 0x38: remove_entity_effect - 0x39: resource_pack_send - 0x3a: respawn - 0x3b: entity_head_rotation - 0x3c: select_advancement_tab - 0x3d: world_border - 0x3e: camera - 0x3f: held_item_slot - 0x40: update_view_position - 0x41: update_view_distance - 0x42: scoreboard_display_objective - 0x43: entity_metadata - 0x44: attach_entity - 0x45: entity_velocity - 0x46: entity_equipment - 0x47: experience - 0x48: update_health - 0x49: scoreboard_objective - 0x4a: set_passengers - 0x4b: teams - 0x4c: scoreboard_score - 0x4d: spawn_position - 0x4e: update_time - 0x4f: title - 0x50: entity_sound_effect - 0x51: sound_effect - 0x52: stop_sound - 0x53: playerlist_header - 0x54: nbt_query_response - 0x55: collect - 0x56: entity_teleport - 0x57: advancements - 0x58: entity_update_attributes - 0x59: entity_effect - 0x5a: declare_recipes - 0x5b: tags - params: name ? - if spawn_entity: packet_spawn_entity - if spawn_entity_experience_orb: packet_spawn_entity_experience_orb - if spawn_entity_weather: packet_spawn_entity_weather - if spawn_entity_living: packet_spawn_entity_living - if spawn_entity_painting: packet_spawn_entity_painting - if named_entity_spawn: packet_named_entity_spawn - if animation: packet_animation - if statistics: packet_statistics - if advancements: packet_advancements - if block_break_animation: packet_block_break_animation - if tile_entity_data: packet_tile_entity_data - if block_action: packet_block_action - if block_change: packet_block_change - if boss_bar: packet_boss_bar - if difficulty: packet_difficulty - if tab_complete: packet_tab_complete - if declare_commands: packet_declare_commands - if face_player: packet_face_player - if nbt_query_response: packet_nbt_query_response - if chat: packet_chat - if multi_block_change: packet_multi_block_change - if transaction: packet_transaction - if close_window: packet_close_window - if open_window: packet_open_window - if window_items: packet_window_items - if craft_progress_bar: packet_craft_progress_bar - if set_slot: packet_set_slot - if set_cooldown: packet_set_cooldown - if custom_payload: packet_custom_payload - if named_sound_effect: packet_named_sound_effect - if kick_disconnect: packet_kick_disconnect - if entity_status: packet_entity_status - if explosion: packet_explosion - if unload_chunk: packet_unload_chunk - if game_state_change: packet_game_state_change - if open_horse_window: packet_open_horse_window - if keep_alive: packet_keep_alive - if map_chunk: packet_map_chunk - if world_event: packet_world_event - if world_particles: packet_world_particles - if update_light: packet_update_light - if login: packet_login - if map: packet_map - if trade_list: packet_trade_list - if rel_entity_move: packet_rel_entity_move - if entity_move_look: packet_entity_move_look - if entity_look: packet_entity_look - if entity: packet_entity - if vehicle_move: packet_vehicle_move - if open_book: packet_open_book - if open_sign_entity: packet_open_sign_entity - if craft_recipe_response: packet_craft_recipe_response - if abilities: packet_abilities - if combat_event: packet_combat_event - if player_info: packet_player_info - if position: packet_position - if unlock_recipes: packet_unlock_recipes - if entity_destroy: packet_entity_destroy - if remove_entity_effect: packet_remove_entity_effect - if resource_pack_send: packet_resource_pack_send - if respawn: packet_respawn - if entity_update_attributes: packet_entity_update_attributes - if world_border: packet_world_border - if camera: packet_camera - if held_item_slot: packet_held_item_slot - if update_view_position: packet_update_view_position - if update_view_distance: packet_update_view_distance - if scoreboard_display_objective: packet_scoreboard_display_objective - if entity_metadata: packet_entity_metadata - if attach_entity: packet_attach_entity - if entity_velocity: packet_entity_velocity - if entity_equipment: packet_entity_equipment - if experience: packet_experience - if update_health: packet_update_health - if scoreboard_objective: packet_scoreboard_objective - if set_passengers: packet_set_passengers - if teams: packet_teams - if scoreboard_score: packet_scoreboard_score - if spawn_position: packet_spawn_position - if update_time: packet_update_time - if title: packet_title - if entity_sound_effect: packet_entity_sound_effect - if stop_sound: packet_stop_sound - if sound_effect: packet_sound_effect - if playerlist_header: packet_playerlist_header - if collect: packet_collect - if entity_teleport: packet_entity_teleport - if entity_head_rotation: packet_entity_head_rotation - if entity_effect: packet_entity_effect - if select_advancement_tab: packet_select_advancement_tab - if declare_recipes: packet_declare_recipes - if tags: packet_tags - -^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_set_difficulty: - newDifficulty: u8 - packet_edit_book: - new_book: slot - signing: bool - hand: varint - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect: varint - secondary_effect: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varlong - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: - locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_crafting_book_data: - type: varint - _: type ? - if 0: - displayedRecipe: string - if 1: - craftingBookOpen: bool - craftingFilter: bool - smeltingBookOpen: bool - smeltingFilter: bool - blastingBookOpen: bool - blastingFilter: bool - smokingBookOpen: bool - smokingFilter: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: - location: position - attachmentType: string - targetPool: string - finalState: string - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet: - name: varint => - 0x00: teleport_confirm - 0x01: query_block_nbt - 0x02: set_difficulty - 0x03: chat - 0x04: client_command - 0x05: settings - 0x06: tab_complete - 0x07: transaction - 0x08: enchant_item - 0x09: window_click - 0x0a: close_window - 0x0b: custom_payload - 0x0c: edit_book - 0x0d: query_entity_nbt - 0x0e: use_entity - 0x0f: keep_alive - 0x10: lock_difficulty - 0x11: position - 0x12: position_look - 0x13: look - 0x14: flying - 0x15: vehicle_move - 0x16: steer_boat - 0x17: pick_item - 0x18: craft_recipe_request - 0x19: abilities - 0x1a: block_dig - 0x1b: entity_action - 0x1c: steer_vehicle - 0x1d: crafting_book_data - 0x1e: name_item - 0x1f: resource_pack_receive - 0x20: advancement_tab - 0x21: select_trade - 0x22: set_beacon_effect - 0x23: held_item_slot - 0x24: update_command_block - 0x25: update_command_block_minecart - 0x26: set_creative_slot - 0x27: update_jigsaw_block - 0x28: update_structure_block - 0x29: update_sign - 0x2a: arm_animation - 0x2b: spectate - 0x2c: block_place - 0x2d: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if query_block_nbt: packet_query_block_nbt - if set_difficulty: packet_set_difficulty - if edit_book: packet_edit_book - if query_entity_nbt: packet_query_entity_nbt - if pick_item: packet_pick_item - if name_item: packet_name_item - if select_trade: packet_select_trade - if set_beacon_effect: packet_set_beacon_effect - if update_command_block: packet_update_command_block - if update_command_block_minecart: packet_update_command_block_minecart - if update_structure_block: packet_update_structure_block - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if transaction: packet_transaction - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if keep_alive: packet_keep_alive - if lock_difficulty: packet_lock_difficulty - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if craft_recipe_request: packet_craft_recipe_request - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if crafting_book_data: packet_crafting_book_data - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_jigsaw_block: packet_update_jigsaw_block - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item - if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.14.4/proto.yml b/data/pc/1.14.4/proto.yml index a5ea14dcf..d9a48acdf 100644 --- a/data/pc/1.14.4/proto.yml +++ b/data/pc/1.14.4/proto.yml @@ -1,854 +1,8 @@ !version: 1.14.4 - -^types: - varint: native - varlong: native - optvarint: varint - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - particleData: $compareTo ? - if 3: - blockState: varint - if 14: - red: f32 - green: f32 - blue: f32 - scale: f32 - if 23: - blockState: varint - if 32: - item: slot - default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: [ - "option", - "string" - ] - if 6: slot - if 7: bool - if 8: - pitch: f32 - yaw: f32 - roll: f32 - if 9: position - if 10: [ - "option", - "position" - ] - if 11: varint - if 12: [ - "option", - "UUID" - ] - if 13: varint - if 14: nbt - if 15: particle - if 16: - villagerType: varint - villagerProfession: varint - level: varint - if 17: optvarint - if 18: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - minecraft_smelting_format: - group: string - ingredient: ingredient - result: slot - experience: f32 - cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: string - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:mob_effect: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:range: - allowDecimals: bool - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:item_enchantment: void - if minecraft:entity_summon: void - if minecraft:dimension: void - if minecraft:nbt_compound_tag: void - if minecraft:time: void - if minecraft:resource_or_tag: - registry: string - if minecraft:resource: - registry: string - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response +!base: 1.14.3 ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: varint - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: string - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: - windowId: u8 - nbSlots: varint - entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - heightmaps: nbt - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_update_light: - chunkX: varint - chunkZ: varint - skyLightMask: varint - blockLightMask: varint - emptySkyLightMask: varint - emptyBlockLightMask: varint - data: restBuffer - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - maxPlayers: u8 - levelType: string - viewDistance: varint - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - locked: bool - icons: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_trade_list: + packet_trade_list: windowId: varint trades: []u8 inputItem1: slot @@ -865,372 +19,14 @@ experience: varint isRegularVillager: bool canRestock: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: - hand: varint - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: - chunkX: varint - chunkZ: varint - packet_update_view_distance: - viewDistance: varint - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_entity_sound_effect: - soundId: varint - soundCategory: varint - entityId: varint - volume: f32 - pitch: f32 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet_declare_recipes: - recipes: []varint - type: string - recipeId: string - data: type ? - if minecraft:crafting_shapeless: - group: string - ingredients: ingredient[]varint - result: slot - if minecraft:crafting_shaped: - width: varint - height: varint - group: string - ingredients: []$width - _: ingredient[]$height - result: slot - if minecraft:crafting_special_armordye: void - if minecraft:crafting_special_bookcloning: void - if minecraft:crafting_special_mapcloning: void - if minecraft:crafting_special_mapextending: void - if minecraft:crafting_special_firework_rocket: void - if minecraft:crafting_special_firework_star: void - if minecraft:crafting_special_firework_star_fade: void - if minecraft:crafting_special_repairitem: void - if minecraft:crafting_special_tippedarrow: void - if minecraft:crafting_special_bannerduplicate: void - if minecraft:crafting_special_banneraddpattern: void - if minecraft:crafting_special_shielddecoration: void - if minecraft:crafting_special_shulkerboxcoloring: void - if minecraft:crafting_special_suspiciousstew: void - if minecraft:smelting: minecraft_smelting_format - if minecraft:blasting: minecraft_smelting_format - if minecraft:smoking: minecraft_smelting_format - if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: - group: string - ingredient: ingredient - result: slot - packet_tags: - blockTags: tags - itemTags: tags - fluidTags: tags - entityTags: tags - packet_acknowledge_player_digging: + + packet_acknowledge_player_digging: location: position block: varint status: varint successful: bool - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -1419,300 +215,3 @@ if declare_recipes: packet_declare_recipes if tags: packet_tags if acknowledge_player_digging: packet_acknowledge_player_digging - -^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_set_difficulty: - newDifficulty: u8 - packet_edit_book: - new_book: slot - signing: bool - hand: varint - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect: varint - secondary_effect: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varlong - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: - locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_crafting_book_data: - type: varint - _: type ? - if 0: - displayedRecipe: string - if 1: - craftingBookOpen: bool - craftingFilter: bool - smeltingBookOpen: bool - smeltingFilter: bool - blastingBookOpen: bool - blastingFilter: bool - smokingBookOpen: bool - smokingFilter: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: - location: position - attachmentType: string - targetPool: string - finalState: string - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet: - name: varint => - 0x00: teleport_confirm - 0x01: query_block_nbt - 0x02: set_difficulty - 0x03: chat - 0x04: client_command - 0x05: settings - 0x06: tab_complete - 0x07: transaction - 0x08: enchant_item - 0x09: window_click - 0x0a: close_window - 0x0b: custom_payload - 0x0c: edit_book - 0x0d: query_entity_nbt - 0x0e: use_entity - 0x0f: keep_alive - 0x10: lock_difficulty - 0x11: position - 0x12: position_look - 0x13: look - 0x14: flying - 0x15: vehicle_move - 0x16: steer_boat - 0x17: pick_item - 0x18: craft_recipe_request - 0x19: abilities - 0x1a: block_dig - 0x1b: entity_action - 0x1c: steer_vehicle - 0x1d: crafting_book_data - 0x1e: name_item - 0x1f: resource_pack_receive - 0x20: advancement_tab - 0x21: select_trade - 0x22: set_beacon_effect - 0x23: held_item_slot - 0x24: update_command_block - 0x25: update_command_block_minecart - 0x26: set_creative_slot - 0x27: update_jigsaw_block - 0x28: update_structure_block - 0x29: update_sign - 0x2a: arm_animation - 0x2b: spectate - 0x2c: block_place - 0x2d: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if query_block_nbt: packet_query_block_nbt - if set_difficulty: packet_set_difficulty - if edit_book: packet_edit_book - if query_entity_nbt: packet_query_entity_nbt - if pick_item: packet_pick_item - if name_item: packet_name_item - if select_trade: packet_select_trade - if set_beacon_effect: packet_set_beacon_effect - if update_command_block: packet_update_command_block - if update_command_block_minecart: packet_update_command_block_minecart - if update_structure_block: packet_update_structure_block - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if transaction: packet_transaction - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if keep_alive: packet_keep_alive - if lock_difficulty: packet_lock_difficulty - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if craft_recipe_request: packet_craft_recipe_request - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if crafting_book_data: packet_crafting_book_data - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_jigsaw_block: packet_update_jigsaw_block - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item - if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.14/proto.yml b/data/pc/1.14/proto.yml index 6829a6005..085e59887 100644 --- a/data/pc/1.14/proto.yml +++ b/data/pc/1.14/proto.yml @@ -1,68 +1,23 @@ !version: 1.14 +!base: 1.13.2 ^types: - varint: native - varlong: native optvarint: varint - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] + particleData: $compareTo ? - if 3: + if 3: blockState: varint - if 14: + if 14: red: f32 green: f32 blue: f32 scale: f32 - if 23: + if 23: blockState: varint - if 32: + if 32: item: slot default: void - ingredient: slot[]varint + position: [ "bitfield", [ @@ -83,6 +38,7 @@ } ] ] + entityMetadataItem: $compareTo ? if 0: i8 if 1: varint @@ -95,7 +51,7 @@ ] if 6: slot if 7: bool - if 8: + if 8: pitch: f32 yaw: f32 roll: f32 @@ -112,412 +68,30 @@ if 13: varint if 14: nbt if 15: particle - if 16: + if 16: villagerType: varint villagerProfession: varint level: varint if 17: optvarint if 18: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - minecraft_smelting_format: + + minecraft_smelting_format: group: string ingredient: ingredient result: slot experience: f32 cookTime: varint + tags: []varint tagName: string entries: varint[]varint - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: string - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:mob_effect: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:range: - allowDecimals: bool - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:item_enchantment: void - if minecraft:entity_summon: void - if minecraft:dimension: void - if minecraft:nbt_compound_tag: void - if minecraft:time: void - if minecraft:resource_or_tag: - registry: string - if minecraft:resource: - registry: string - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping +^play.toClient.types: + packet_bed: !delete -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request + tags: !delete -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response - -^play.toClient.types: - packet_spawn_entity: + packet_spawn_entity: entityId: varint objectUUID: UUID type: varint @@ -528,247 +102,22 @@ yaw: i8 objectData: i32 velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: varint - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: + + packet_difficulty: difficulty: u8 difficultyLocked: bool - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: + + packet_open_window: windowId: varint inventoryType: varint windowTitle: string - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: + + packet_open_horse_window: windowId: u8 nbSlots: varint entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: + + packet_map_chunk: x: i32 z: i32 groundUp: bool @@ -781,29 +130,8 @@ } ] blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_update_light: + + packet_update_light: chunkX: varint chunkZ: varint skyLightMask: varint @@ -811,7 +139,8 @@ emptySkyLightMask: varint emptyBlockLightMask: varint data: restBuffer - packet_login: + + packet_login: entityId: i32 gameMode: u8 dimension: i32 @@ -819,7 +148,8 @@ levelType: string viewDistance: varint reducedDebugInfo: bool - packet_map: + + packet_map: itemDamage: varint scale: i8 trackingPosition: bool @@ -848,7 +178,8 @@ "countType": "varint" } ] - packet_trade_list: + + packet_trade_list: windowId: varint trades: []u8 inputItem1: slot @@ -863,333 +194,39 @@ villagerLevel: varint experience: varint isRegularVillager: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: + + packet_open_book: hand: varint - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: + + packet_respawn: dimension: i32 gamemode: u8 levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: + + packet_update_view_position: chunkX: varint chunkZ: varint - packet_update_view_distance: + + packet_update_view_distance: viewDistance: varint - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_entity_sound_effect: + + packet_entity_sound_effect: soundId: varint soundCategory: varint entityId: varint volume: f32 pitch: f32 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet_declare_recipes: + + packet_declare_recipes: recipes: []varint type: string recipeId: string data: type ? - if minecraft:crafting_shapeless: + if minecraft:crafting_shapeless: group: string ingredients: ingredient[]varint result: slot - if minecraft:crafting_shaped: + if minecraft:crafting_shaped: width: varint height: varint group: string @@ -1214,16 +251,18 @@ if minecraft:blasting: minecraft_smelting_format if minecraft:smoking: minecraft_smelting_format if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: + if minecraft:stonecutting: group: string ingredient: ingredient result: slot - packet_tags: + + packet_tags: blockTags: tags itemTags: tags fluidTags: tags entityTags: tags - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -1412,161 +451,18 @@ if tags: packet_tags ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_set_difficulty: + packet_set_difficulty: newDifficulty: u8 - packet_edit_book: - new_book: slot - signing: bool - hand: varint - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect: varint - secondary_effect: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varlong - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: + + packet_lock_difficulty: locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_crafting_book_data: + + packet_crafting_book_data: type: varint _: type ? - if 0: + if 0: displayedRecipe: string - if 1: + if 1: craftingBookOpen: bool craftingFilter: bool smeltingBookOpen: bool @@ -1575,29 +471,14 @@ blastingFilter: bool smokingBookOpen: bool smokingFilter: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: + + packet_update_jigsaw_block: location: position attachmentType: string targetPool: string finalState: string - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: + + packet_block_place: hand: varint location: position direction: varint @@ -1605,14 +486,8 @@ cursorY: f32 cursorZ: f32 insideBlock: bool - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet: + + packet: name: varint => 0x00: teleport_confirm 0x01: query_block_nbt diff --git a/data/pc/1.15/proto.yml b/data/pc/1.15/proto.yml index 8f7df309a..99719a034 100644 --- a/data/pc/1.15/proto.yml +++ b/data/pc/1.15/proto.yml @@ -1,546 +1,8 @@ !version: 1.15 - -^types: - varint: native - varlong: native - optvarint: varint - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - particleData: $compareTo ? - if 3: - blockState: varint - if 14: - red: f32 - green: f32 - blue: f32 - scale: f32 - if 23: - blockState: varint - if 32: - item: slot - default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: [ - "option", - "string" - ] - if 6: slot - if 7: bool - if 8: - pitch: f32 - yaw: f32 - roll: f32 - if 9: position - if 10: [ - "option", - "position" - ] - if 11: varint - if 12: [ - "option", - "UUID" - ] - if 13: varint - if 14: nbt - if 15: particle - if 16: - villagerType: varint - villagerProfession: varint - level: varint - if 17: optvarint - if 18: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - minecraft_smelting_format: - group: string - ingredient: ingredient - result: slot - experience: f32 - cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: string - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:mob_effect: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:range: - allowDecimals: bool - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:item_enchantment: void - if minecraft:entity_summon: void - if minecraft:dimension: void - if minecraft:nbt_compound_tag: void - if minecraft:time: void - if minecraft:resource_or_tag: - registry: string - if minecraft:resource: - registry: string - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response +!base: 1.14.4 ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: + packet_spawn_entity_living: entityId: varint entityUUID: UUID type: varint @@ -551,13 +13,8 @@ pitch: i8 headPitch: i8 velocity: vec3i16 - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: varint - location: position - direction: u8 - packet_named_entity_spawn: + + packet_named_entity_spawn: entityId: varint playerUUID: UUID x: f64 @@ -565,208 +22,8 @@ z: f64 yaw: i8 pitch: i8 - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: string - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: - windowId: u8 - nbSlots: varint - entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: + + packet_map_chunk: x: i32 z: i32 groundUp: bool @@ -782,12 +39,8 @@ } ] blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: + + packet_world_particles: particleId: i32 longDistance: bool x: f64 @@ -804,15 +57,8 @@ "compareTo": "particleId" } ] - packet_update_light: - chunkX: varint - chunkZ: varint - skyLightMask: varint - blockLightMask: varint - emptySkyLightMask: varint - emptyBlockLightMask: varint - data: restBuffer - packet_login: + + packet_login: entityId: i32 gameMode: u8 dimension: i32 @@ -822,419 +68,14 @@ viewDistance: varint reducedDebugInfo: bool enableRespawnScreen: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - locked: bool - icons: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_trade_list: - windowId: varint - trades: []u8 - inputItem1: slot - outputItem: slot - inputItem2?: slot - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: - hand: varint - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: + + packet_respawn: dimension: i32 hashedSeed: i64 gamemode: u8 levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: - chunkX: varint - chunkZ: varint - packet_update_view_distance: - viewDistance: varint - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_entity_sound_effect: - soundId: varint - soundCategory: varint - entityId: varint - volume: f32 - pitch: f32 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet_declare_recipes: - recipes: []varint - type: string - recipeId: string - data: type ? - if minecraft:crafting_shapeless: - group: string - ingredients: ingredient[]varint - result: slot - if minecraft:crafting_shaped: - width: varint - height: varint - group: string - ingredients: []$width - _: ingredient[]$height - result: slot - if minecraft:crafting_special_armordye: void - if minecraft:crafting_special_bookcloning: void - if minecraft:crafting_special_mapcloning: void - if minecraft:crafting_special_mapextending: void - if minecraft:crafting_special_firework_rocket: void - if minecraft:crafting_special_firework_star: void - if minecraft:crafting_special_firework_star_fade: void - if minecraft:crafting_special_repairitem: void - if minecraft:crafting_special_tippedarrow: void - if minecraft:crafting_special_bannerduplicate: void - if minecraft:crafting_special_banneraddpattern: void - if minecraft:crafting_special_shielddecoration: void - if minecraft:crafting_special_shulkerboxcoloring: void - if minecraft:crafting_special_suspiciousstew: void - if minecraft:smelting: minecraft_smelting_format - if minecraft:blasting: minecraft_smelting_format - if minecraft:smoking: minecraft_smelting_format - if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: - group: string - ingredient: ingredient - result: slot - packet_tags: - blockTags: tags - itemTags: tags - fluidTags: tags - entityTags: tags - packet_acknowledge_player_digging: - location: position - block: varint - status: varint - successful: bool - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -1423,300 +264,3 @@ if declare_recipes: packet_declare_recipes if tags: packet_tags if acknowledge_player_digging: packet_acknowledge_player_digging - -^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_set_difficulty: - newDifficulty: u8 - packet_edit_book: - new_book: slot - signing: bool - hand: varint - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect: varint - secondary_effect: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varlong - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: - locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_crafting_book_data: - type: varint - _: type ? - if 0: - displayedRecipe: string - if 1: - craftingBookOpen: bool - craftingFilter: bool - smeltingBookOpen: bool - smeltingFilter: bool - blastingBookOpen: bool - blastingFilter: bool - smokingBookOpen: bool - smokingFilter: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: - location: position - attachmentType: string - targetPool: string - finalState: string - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet: - name: varint => - 0x00: teleport_confirm - 0x01: query_block_nbt - 0x02: set_difficulty - 0x03: chat - 0x04: client_command - 0x05: settings - 0x06: tab_complete - 0x07: transaction - 0x08: enchant_item - 0x09: window_click - 0x0a: close_window - 0x0b: custom_payload - 0x0c: edit_book - 0x0d: query_entity_nbt - 0x0e: use_entity - 0x0f: keep_alive - 0x10: lock_difficulty - 0x11: position - 0x12: position_look - 0x13: look - 0x14: flying - 0x15: vehicle_move - 0x16: steer_boat - 0x17: pick_item - 0x18: craft_recipe_request - 0x19: abilities - 0x1a: block_dig - 0x1b: entity_action - 0x1c: steer_vehicle - 0x1d: crafting_book_data - 0x1e: name_item - 0x1f: resource_pack_receive - 0x20: advancement_tab - 0x21: select_trade - 0x22: set_beacon_effect - 0x23: held_item_slot - 0x24: update_command_block - 0x25: update_command_block_minecart - 0x26: set_creative_slot - 0x27: update_jigsaw_block - 0x28: update_structure_block - 0x29: update_sign - 0x2a: arm_animation - 0x2b: spectate - 0x2c: block_place - 0x2d: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if query_block_nbt: packet_query_block_nbt - if set_difficulty: packet_set_difficulty - if edit_book: packet_edit_book - if query_entity_nbt: packet_query_entity_nbt - if pick_item: packet_pick_item - if name_item: packet_name_item - if select_trade: packet_select_trade - if set_beacon_effect: packet_set_beacon_effect - if update_command_block: packet_update_command_block - if update_command_block_minecart: packet_update_command_block_minecart - if update_structure_block: packet_update_structure_block - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if transaction: packet_transaction - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if keep_alive: packet_keep_alive - if lock_difficulty: packet_lock_difficulty - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if craft_recipe_request: packet_craft_recipe_request - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if crafting_book_data: packet_crafting_book_data - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_jigsaw_block: packet_update_jigsaw_block - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item - if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.16-rc1/proto.yml b/data/pc/1.16-rc1/proto.yml index bbdfb98bc..59d52e857 100644 --- a/data/pc/1.16-rc1/proto.yml +++ b/data/pc/1.16-rc1/proto.yml @@ -1,768 +1,33 @@ !version: 1.16-rc1 +!base: 20w13b ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - particleData: $compareTo ? - if 3: - blockState: varint - if 14: - red: f32 - green: f32 - blue: f32 - scale: f32 - if 23: - blockState: varint - if 34: - item: slot - default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: [ - "option", - "string" - ] - if 6: slot - if 7: bool - if 8: - pitch: f32 - yaw: f32 - roll: f32 - if 9: position - if 10: [ - "option", - "position" - ] - if 11: varint - if 12: [ - "option", - "UUID" - ] - if 13: varint - if 14: nbt - if 15: particle - if 16: - villagerType: varint - villagerProfession: varint - level: varint - if 17: optvarint - if 18: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - minecraft_smelting_format: + + minecraft_smelting_format: group: string ingredient: ingredient result: slot experience: f32 cookTime: varint + tags: []varint tagName: string entries: varint[]varint - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: string - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:mob_effect: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:range: - allowDecimals: bool - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:item_enchantment: void - if minecraft:entity_summon: void - if minecraft:dimension: void - if minecraft:nbt_compound_tag: void - if minecraft:time: void - if minecraft:resource_or_tag: - registry: string - if minecraft:resource: - registry: string - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping +^play.toClient.types: + packet_spawn_entity_weather: !delete -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: UUID - username: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request + minecraft_smelting_format: !delete -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response + tags: !delete -^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: varint - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_chat: + packet_chat: message: string position: i8 sender: UUID - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: string - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: - windowId: u8 - nbSlots: varint - entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: + + packet_map_chunk: x: i32 z: i32 groundUp: bool @@ -779,29 +44,8 @@ } ] blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_update_light: + + packet_update_light: chunkX: varint chunkZ: varint trustEdges: bool @@ -810,7 +54,8 @@ emptySkyLightMask: varint emptyBlockLightMask: varint data: restBuffer - packet_login: + + packet_login: entityId: i32 gameMode: u8 previousGameMode: u8 @@ -825,160 +70,8 @@ enableRespawnScreen: bool isDebug: bool isFlat: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - locked: bool - icons: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_trade_list: - windowId: varint - trades: []u8 - inputItem1: slot - outputItem: slot - inputItem2?: slot - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: - hand: varint - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: + + packet_respawn: dimension: string worldName: string hashedSeed: i64 @@ -987,67 +80,8 @@ isDebug: bool isFlat: bool copyMetadata: bool - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: - chunkX: varint - chunkZ: varint - packet_update_view_distance: - viewDistance: varint - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: + + packet_entity_equipment: entityId: varint equipments: [ "topBitSetTerminatedArray", @@ -1067,158 +101,17 @@ ] } ] - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_entity_sound_effect: - soundId: varint - soundCategory: varint - entityId: varint - volume: f32 - pitch: f32 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet_declare_recipes: + + packet_declare_recipes: recipes: []varint type: string recipeId: string data: type ? - if minecraft:crafting_shapeless: + if minecraft:crafting_shapeless: group: string ingredients: ingredient[]varint result: slot - if minecraft:crafting_shaped: + if minecraft:crafting_shaped: width: varint height: varint group: string @@ -1243,25 +136,16 @@ if minecraft:blasting: minecraft_smelting_format if minecraft:smoking: minecraft_smelting_format if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: + if minecraft:stonecutting: group: string ingredient: ingredient result: slot - if minecraft:smithing: + if minecraft:smithing: base: ingredient addition: ingredient result: slot - packet_tags: - blockTags: tags - itemTags: tags - fluidTags: tags - entityTags: tags - packet_acknowledge_player_digging: - location: position - block: varint - status: varint - successful: bool - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -1450,89 +334,7 @@ if acknowledge_player_digging: packet_acknowledge_player_digging ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_set_difficulty: - newDifficulty: u8 - packet_edit_book: - new_book: slot - signing: bool - hand: varint - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect: varint - secondary_effect: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varlong - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: + packet_use_entity: target: varint mouse: varint x: mouse ? @@ -1549,113 +351,16 @@ if 2: varint default: void sneaking: bool - packet_generate_structure: + + packet_generate_structure: location: position levels: varint keepJigsaws: bool - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: - locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: + + packet_abilities: flags: i8 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_crafting_book_data: - type: varint - _: type ? - if 0: - displayedRecipe: string - if 1: - craftingBookOpen: bool - craftingFilter: bool - smeltingBookOpen: bool - smeltingFilter: bool - blastingBookOpen: bool - blastingFilter: bool - smokingBookOpen: bool - smokingFilter: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet: + + packet: name: varint => 0x00: teleport_confirm 0x01: query_block_nbt diff --git a/data/pc/1.16.2/proto.yml b/data/pc/1.16.2/proto.yml index ed79e86fe..76e99598b 100644 --- a/data/pc/1.16.2/proto.yml +++ b/data/pc/1.16.2/proto.yml @@ -1,697 +1,8 @@ !version: 1.16.2 - -^types: - varint: native - varlong: native - optvarint: varint - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - particleData: $compareTo ? - if 3: - blockState: varint - if 14: - red: f32 - green: f32 - blue: f32 - scale: f32 - if 23: - blockState: varint - if 34: - item: slot - default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: [ - "option", - "string" - ] - if 6: slot - if 7: bool - if 8: - pitch: f32 - yaw: f32 - roll: f32 - if 9: position - if 10: [ - "option", - "position" - ] - if 11: varint - if 12: [ - "option", - "UUID" - ] - if 13: varint - if 14: nbt - if 15: particle - if 16: - villagerType: varint - villagerProfession: varint - level: varint - if 17: optvarint - if 18: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - minecraft_smelting_format: - group: string - ingredient: ingredient - result: slot - experience: f32 - cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: string - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:mob_effect: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:range: - allowDecimals: bool - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:item_enchantment: void - if minecraft:entity_summon: void - if minecraft:dimension: void - if minecraft:nbt_compound_tag: void - if minecraft:time: void - if minecraft:resource_or_tag: - registry: string - if minecraft:resource: - registry: string - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: UUID - username: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response +!base: 1.16.1 ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: varint - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_chat: - message: string - position: i8 - sender: UUID - packet_multi_block_change: + packet_multi_block_change: chunkCoordinates: [ "bitfield", [ @@ -714,71 +25,8 @@ ] notTrustEdges: bool records: varlong[]varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: string - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: - windowId: u8 - nbSlots: varint - entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: + + packet_map_chunk: x: i32 z: i32 groundUp: bool @@ -794,38 +42,8 @@ } ] blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_update_light: - chunkX: varint - chunkZ: varint - trustEdges: bool - skyLightMask: varint - blockLightMask: varint - emptySkyLightMask: varint - emptyBlockLightMask: varint - data: restBuffer - packet_login: + + packet_login: entityId: i32 isHardcore: bool gameMode: u8 @@ -841,142 +59,8 @@ enableRespawnScreen: bool isDebug: bool isFlat: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - locked: bool - icons: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_trade_list: - windowId: varint - trades: []u8 - inputItem1: slot - outputItem: slot - inputItem2?: slot - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: - hand: varint - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_unlock_recipes: + + packet_unlock_recipes: action: varint craftingBookOpen: bool filteringCraftable: bool @@ -990,15 +74,8 @@ recipes2: action ? if 0: string[]varint default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: + + packet_respawn: dimension: nbt worldName: string hashedSeed: i64 @@ -1007,238 +84,17 @@ isDebug: bool isFlat: bool copyMetadata: bool - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: - chunkX: varint - chunkZ: varint - packet_update_view_distance: - viewDistance: varint - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_entity_sound_effect: - soundId: varint - soundCategory: varint - entityId: varint - volume: f32 - pitch: f32 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet_declare_recipes: + + packet_declare_recipes: recipes: []varint type: string recipeId: string data: type ? - if minecraft:crafting_shapeless: + if minecraft:crafting_shapeless: group: string ingredients: ingredient[]varint result: slot - if minecraft:crafting_shaped: + if minecraft:crafting_shaped: width: varint height: varint group: string @@ -1263,25 +119,16 @@ if minecraft:blasting: minecraft_smelting_format if minecraft:smoking: minecraft_smelting_format if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: + if minecraft:stonecutting: group: string ingredient: ingredient result: slot - if minecraft:smithing: + if minecraft:smithing: base: ingredient addition: ingredient result: slot - packet_tags: - blockTags: tags - itemTags: tags - fluidTags: tags - entityTags: tags - packet_acknowledge_player_digging: - location: position - block: varint - status: varint - successful: bool - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -1470,204 +317,17 @@ if acknowledge_player_digging: packet_acknowledge_player_digging ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_set_difficulty: - newDifficulty: u8 - packet_edit_book: - new_book: slot - signing: bool - hand: varint - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect: varint - secondary_effect: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varlong - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: - locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_displayed_recipe: + packet_crafting_book_data: !delete + + packet_displayed_recipe: recipeId: string - packet_recipe_book: + + packet_recipe_book: bookId: varint bookOpen: bool filterActive: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet: + + packet: name: varint => 0x00: teleport_confirm 0x01: query_block_nbt diff --git a/data/pc/1.17.1/proto.yml b/data/pc/1.17.1/proto.yml index 31e0ac90b..b9828263c 100644 --- a/data/pc/1.17.1/proto.yml +++ b/data/pc/1.17.1/proto.yml @@ -1,1287 +1,25 @@ !version: 1.17.1 - -^types: - varint: native - varlong: native - optvarint: varint - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - particleData: $compareTo ? - if 4: - blockState: varint - if 15: - red: f32 - green: f32 - blue: f32 - scale: f32 - if 16: - fromRed: f32 - fromGreen: f32 - fromBlue: f32 - scale: f32 - toRed: f32 - toGreen: f32 - toBlue: f32 - if 25: - blockState: varint - if 36: - item: slot - if 37: - origin: position - positionType: string - destination: positionType ? - if minecraft:block: position - if minecraft:entity: varint - ticks: varint - default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: [ - "option", - "string" - ] - if 6: slot - if 7: bool - if 8: - pitch: f32 - yaw: f32 - roll: f32 - if 9: position - if 10: [ - "option", - "position" - ] - if 11: varint - if 12: [ - "option", - "UUID" - ] - if 13: varint - if 14: nbt - if 15: particle - if 16: - villagerType: varint - villagerProfession: varint - level: varint - if 17: optvarint - if 18: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - minecraft_smelting_format: - group: string - ingredient: ingredient - result: slot - experience: f32 - cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: string - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:mob_effect: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:range: - allowDecimals: bool - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:item_enchantment: void - if minecraft:entity_summon: void - if minecraft:dimension: void - if minecraft:nbt_compound_tag: void - if minecraft:time: void - if minecraft:resource_or_tag: - registry: string - if minecraft:resource: - registry: string - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: UUID - username: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response +!base: 1.17 ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: varint - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_chat: - message: string - position: i8 - sender: UUID - packet_multi_block_change: - chunkCoordinates: [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": false - } - ] - ] - notTrustEdges: bool - records: varlong[]varint - packet_close_window: - windowId: u8 - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: string - packet_window_items: + packet_destroy_entity: !delete + + packet_window_items: windowId: u8 stateId: varint items: slot[]varint carriedItem: slot - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: + + packet_set_slot: windowId: i8 stateId: varint slot: i16 item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []varint - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: - windowId: u8 - nbSlots: varint - entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: - x: i32 - z: i32 - bitMap: i64[]varint - heightmaps: nbt - biomes: varint[]varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_update_light: - chunkX: varint - chunkZ: varint - trustEdges: bool - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - packet_login: - entityId: i32 - isHardcore: bool - gameMode: u8 - previousGameMode: i8 - worldNames: string[]varint - dimensionCodec: nbt - dimension: nbt - worldName: string - hashedSeed: i64 - maxPlayers: varint - viewDistance: varint - reducedDebugInfo: bool - enableRespawnScreen: bool - isDebug: bool - isFlat: bool - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_trade_list: - windowId: varint - trades: []u8 - inputItem1: slot - outputItem: slot - inputItem2?: slot - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: - hand: varint - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_end_combat_event: - duration: varint - entityId: i32 - packet_enter_combat_event: - # Empty - packet_death_combat_event: - playerId: varint - entityId: i32 - message: string - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - dismountVehicle: bool - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - blastFurnaceOpen: bool - filteringBlastFurnace: bool - smokerBookOpen: bool - filteringSmoker: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: + + packet_entity_destroy: entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - forced: bool - promptMessage?: string - packet_respawn: - dimension: nbt - worldName: string - hashedSeed: i64 - gamemode: u8 - previousGamemode: u8 - isDebug: bool - isFlat: bool - copyMetadata: bool - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: - chunkX: varint - chunkZ: varint - packet_update_view_distance: - viewDistance: varint - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - angle: f32 - packet_update_time: - age: i64 - time: i64 - packet_entity_sound_effect: - soundId: varint - soundCategory: varint - entityId: varint - volume: f32 - pitch: f32 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []varint - name: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet_declare_recipes: - recipes: []varint - type: string - recipeId: string - data: type ? - if minecraft:crafting_shapeless: - group: string - ingredients: ingredient[]varint - result: slot - if minecraft:crafting_shaped: - width: varint - height: varint - group: string - ingredients: []$width - _: ingredient[]$height - result: slot - if minecraft:crafting_special_armordye: void - if minecraft:crafting_special_bookcloning: void - if minecraft:crafting_special_mapcloning: void - if minecraft:crafting_special_mapextending: void - if minecraft:crafting_special_firework_rocket: void - if minecraft:crafting_special_firework_star: void - if minecraft:crafting_special_firework_star_fade: void - if minecraft:crafting_special_repairitem: void - if minecraft:crafting_special_tippedarrow: void - if minecraft:crafting_special_bannerduplicate: void - if minecraft:crafting_special_banneraddpattern: void - if minecraft:crafting_special_shielddecoration: void - if minecraft:crafting_special_shulkerboxcoloring: void - if minecraft:crafting_special_suspiciousstew: void - if minecraft:smelting: minecraft_smelting_format - if minecraft:blasting: minecraft_smelting_format - if minecraft:smoking: minecraft_smelting_format - if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: - group: string - ingredient: ingredient - result: slot - if minecraft:smithing: - base: ingredient - addition: ingredient - result: slot - packet_tags: - tags: []varint - tagType: string - tags: tags - packet_acknowledge_player_digging: - location: position - block: varint - status: varint - successful: bool - packet_sculk_vibration_signal: - sourcePosition: position - destinationIdentifier: string - destination: destinationIdentifier ? - if block: position - if entityId: varint - default: void - arrivalTicks: varint - packet_clear_titles: - reset: bool - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varlong - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - packet_action_bar: - text: string - packet_world_border_center: - x: f64 - z: f64 - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varlong - packet_world_border_size: - diameter: f64 - packet_world_border_warning_delay: - warningTime: varint - packet_world_border_warning_reach: - warningBlocks: varint - packet_ping: - id: i32 - packet_set_title_subtitle: - text: string - packet_set_title_text: - text: string - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -1492,74 +230,12 @@ if set_title_time: packet_set_title_time ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_set_difficulty: - newDifficulty: u8 - packet_edit_book: + packet_edit_book: hand: varint pages: string[]varint title?: string - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect: varint - secondary_effect: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varlong - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - disableTextFiltering: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: + + packet_window_click: windowId: u8 stateId: varint slot: i16 @@ -1569,224 +245,3 @@ location: i16 item: slot cursorItem: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: - locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_displayed_recipe: - recipeId: string - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet_pong: - id: i32 - packet: - name: varint => - 0x00: teleport_confirm - 0x01: query_block_nbt - 0x02: set_difficulty - 0x03: chat - 0x04: client_command - 0x05: settings - 0x06: tab_complete - 0x07: enchant_item - 0x08: window_click - 0x09: close_window - 0x0a: custom_payload - 0x0b: edit_book - 0x0c: query_entity_nbt - 0x0d: use_entity - 0x0e: generate_structure - 0x0f: keep_alive - 0x10: lock_difficulty - 0x11: position - 0x12: position_look - 0x13: look - 0x14: flying - 0x15: vehicle_move - 0x16: steer_boat - 0x17: pick_item - 0x18: craft_recipe_request - 0x19: abilities - 0x1a: block_dig - 0x1b: entity_action - 0x1c: steer_vehicle - 0x1d: pong - 0x1e: recipe_book - 0x1f: displayed_recipe - 0x20: name_item - 0x21: resource_pack_receive - 0x22: advancement_tab - 0x23: select_trade - 0x24: set_beacon_effect - 0x25: held_item_slot - 0x26: update_command_block - 0x27: update_command_block_minecart - 0x28: set_creative_slot - 0x29: update_jigsaw_block - 0x2a: update_structure_block - 0x2b: update_sign - 0x2c: arm_animation - 0x2d: spectate - 0x2e: block_place - 0x2f: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if query_block_nbt: packet_query_block_nbt - if set_difficulty: packet_set_difficulty - if edit_book: packet_edit_book - if query_entity_nbt: packet_query_entity_nbt - if pick_item: packet_pick_item - if name_item: packet_name_item - if select_trade: packet_select_trade - if set_beacon_effect: packet_set_beacon_effect - if update_command_block: packet_update_command_block - if update_command_block_minecart: packet_update_command_block_minecart - if update_structure_block: packet_update_structure_block - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if generate_structure: packet_generate_structure - if keep_alive: packet_keep_alive - if lock_difficulty: packet_lock_difficulty - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if craft_recipe_request: packet_craft_recipe_request - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if displayed_recipe: packet_displayed_recipe - if recipe_book: packet_recipe_book - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_jigsaw_block: packet_update_jigsaw_block - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item - if advancement_tab: packet_advancement_tab - if pong: packet_pong diff --git a/data/pc/1.17/proto.yml b/data/pc/1.17/proto.yml index 794026bea..5efd11871 100644 --- a/data/pc/1.17/proto.yml +++ b/data/pc/1.17/proto.yml @@ -1,64 +1,16 @@ !version: 1.17 +!base: 21w07a ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] particleData: $compareTo ? - if 4: + if 4: blockState: varint - if 15: + if 15: red: f32 green: f32 blue: f32 scale: f32 - if 16: + if 16: fromRed: f32 fromGreen: f32 fromBlue: f32 @@ -66,11 +18,11 @@ toRed: f32 toGreen: f32 toBlue: f32 - if 25: + if 25: blockState: varint - if 36: + if 36: item: slot - if 37: + if 37: origin: position positionType: string destination: positionType ? @@ -78,694 +30,36 @@ if minecraft:entity: varint ticks: varint default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: [ - "option", - "string" - ] - if 6: slot - if 7: bool - if 8: - pitch: f32 - yaw: f32 - roll: f32 - if 9: position - if 10: [ - "option", - "position" - ] - if 11: varint - if 12: [ - "option", - "UUID" - ] - if 13: varint - if 14: nbt - if 15: particle - if 16: - villagerType: varint - villagerProfession: varint - level: varint - if 17: optvarint - if 18: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - minecraft_smelting_format: + + minecraft_smelting_format: group: string ingredient: ingredient result: slot experience: f32 cookTime: varint + tags: []varint tagName: string entries: varint[]varint - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: string - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:mob_effect: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:range: - allowDecimals: bool - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:item_enchantment: void - if minecraft:entity_summon: void - if minecraft:dimension: void - if minecraft:nbt_compound_tag: void - if minecraft:time: void - if minecraft:resource_or_tag: - registry: string - if minecraft:resource: - registry: string - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] +^play.toClient.types: + packet_transaction: !delete -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping + packet_entity: !delete -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping + packet_combat_event: !delete -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping + packet_entity_destroy: !delete -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: UUID - username: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request + packet_world_border: !delete -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response + packet_title: !delete -^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: varint - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_chat: - message: string - position: i8 - sender: UUID - packet_multi_block_change: - chunkCoordinates: [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": false - } - ] - ] - notTrustEdges: bool - records: varlong[]varint - packet_close_window: - windowId: u8 - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: string - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: + minecraft_smelting_format: !delete + + tags: !delete + + packet_explosion: x: f32 y: f32 z: f32 @@ -777,19 +71,8 @@ playerMotionX: f32 playerMotionY: f32 playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: - windowId: u8 - nbSlots: varint - entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: + + packet_map_chunk: x: i32 z: i32 bitMap: i64[]varint @@ -802,29 +85,8 @@ } ] blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_update_light: + + packet_update_light: chunkX: varint chunkZ: varint trustEdges: bool @@ -836,7 +98,8 @@ _: u8[]varint blockLight: []varint _: u8[]varint - packet_login: + + packet_login: entityId: i32 isHardcore: bool gameMode: u8 @@ -852,7 +115,8 @@ enableRespawnScreen: bool isDebug: bool isFlat: bool - packet_map: + + packet_map: itemDamage: varint scale: i8 locked: bool @@ -880,293 +144,33 @@ "countType": "varint" } ] - packet_trade_list: - windowId: varint - trades: []u8 - inputItem1: slot - outputItem: slot - inputItem2?: slot - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: - hand: varint - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_end_combat_event: + + packet_end_combat_event: duration: varint entityId: i32 - packet_enter_combat_event: + + packet_enter_combat_event: # Empty - packet_death_combat_event: + + packet_death_combat_event: playerId: varint entityId: i32 message: string - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - dismountVehicle: bool - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - blastFurnaceOpen: bool - filteringBlastFurnace: bool - smokerBookOpen: bool - filteringSmoker: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_destroy_entity: - entityId: varint - packet_remove_entity_effect: + + packet_destroy_entity: entityId: varint - effectId: i8 - packet_resource_pack_send: + + packet_resource_pack_send: url: string hash: string forced: bool promptMessage?: string - packet_respawn: - dimension: nbt - worldName: string - hashedSeed: i64 - gamemode: u8 - previousGamemode: u8 - isDebug: bool - isFlat: bool - copyMetadata: bool - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: - chunkX: varint - chunkZ: varint - packet_update_view_distance: - viewDistance: varint - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: + + packet_spawn_position: location: position angle: f32 - packet_update_time: - age: i64 - time: i64 - packet_entity_sound_effect: - soundId: varint - soundCategory: varint - entityId: varint - volume: f32 - pitch: f32 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: + + packet_entity_update_attributes: entityId: varint properties: []varint name: string @@ -1175,76 +179,11 @@ uuid: UUID amount: f64 operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet_declare_recipes: - recipes: []varint - type: string - recipeId: string - data: type ? - if minecraft:crafting_shapeless: - group: string - ingredients: ingredient[]varint - result: slot - if minecraft:crafting_shaped: - width: varint - height: varint - group: string - ingredients: []$width - _: ingredient[]$height - result: slot - if minecraft:crafting_special_armordye: void - if minecraft:crafting_special_bookcloning: void - if minecraft:crafting_special_mapcloning: void - if minecraft:crafting_special_mapextending: void - if minecraft:crafting_special_firework_rocket: void - if minecraft:crafting_special_firework_star: void - if minecraft:crafting_special_firework_star_fade: void - if minecraft:crafting_special_repairitem: void - if minecraft:crafting_special_tippedarrow: void - if minecraft:crafting_special_bannerduplicate: void - if minecraft:crafting_special_banneraddpattern: void - if minecraft:crafting_special_shielddecoration: void - if minecraft:crafting_special_shulkerboxcoloring: void - if minecraft:crafting_special_suspiciousstew: void - if minecraft:smelting: minecraft_smelting_format - if minecraft:blasting: minecraft_smelting_format - if minecraft:smoking: minecraft_smelting_format - if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: - group: string - ingredient: ingredient - result: slot - if minecraft:smithing: - base: ingredient - addition: ingredient - result: slot - packet_tags: - tags: []varint - tagType: string - tags: tags - packet_acknowledge_player_digging: - location: position - block: varint - status: varint - successful: bool - packet_sculk_vibration_signal: - sourcePosition: position - destinationIdentifier: string - destination: destinationIdentifier ? - if block: position - if entityId: varint - default: void - arrivalTicks: varint - packet_clear_titles: + + packet_clear_titles: reset: bool - packet_initialize_world_border: + + packet_initialize_world_border: x: f64 z: f64 oldDiameter: f64 @@ -1253,32 +192,43 @@ portalTeleportBoundary: varint warningBlocks: varint warningTime: varint - packet_action_bar: + + packet_action_bar: text: string - packet_world_border_center: + + packet_world_border_center: x: f64 z: f64 - packet_world_border_lerp_size: + + packet_world_border_lerp_size: oldDiameter: f64 newDiameter: f64 speed: varlong - packet_world_border_size: + + packet_world_border_size: diameter: f64 - packet_world_border_warning_delay: + + packet_world_border_warning_delay: warningTime: varint - packet_world_border_warning_reach: + + packet_world_border_warning_reach: warningBlocks: varint - packet_ping: + + packet_ping: id: i32 - packet_set_title_subtitle: + + packet_set_title_subtitle: text: string - packet_set_title_text: + + packet_set_title_text: text: string - packet_set_title_time: + + packet_set_title_time: fadeIn: i32 stay: i32 fadeOut: i32 - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -1489,74 +439,9 @@ if set_title_time: packet_set_title_time ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_set_difficulty: - newDifficulty: u8 - packet_edit_book: - new_book: slot - signing: bool - hand: varint - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect: varint - secondary_effect: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varlong - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - disableTextFiltering: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: + packet_transaction: !delete + + packet_window_click: windowId: u8 slot: i16 mouseButton: i8 @@ -1565,129 +450,11 @@ location: i16 item: slot cursorItem: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: - locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_displayed_recipe: - recipeId: string - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet_pong: + + packet_pong: id: i32 - packet: + + packet: name: varint => 0x00: teleport_confirm 0x01: query_block_nbt diff --git a/data/pc/1.18.2/proto.yml b/data/pc/1.18.2/proto.yml index 2efaead48..aa94a01cc 100644 --- a/data/pc/1.18.2/proto.yml +++ b/data/pc/1.18.2/proto.yml @@ -1,1828 +1,14 @@ !version: 1.18.2 - -^types: - varint: native - varlong: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - particleData: $compareTo ? - if 2: - blockState: varint - if 3: - blockState: varint - if 14: - red: f32 - green: f32 - blue: f32 - scale: f32 - if 15: - fromRed: f32 - fromGreen: f32 - fromBlue: f32 - scale: f32 - toRed: f32 - toGreen: f32 - toBlue: f32 - if 24: - blockState: varint - if 35: - item: slot - if 36: - origin: position - positionType: string - destination: positionType ? - if minecraft:block: position - if minecraft:entity: varint - ticks: varint - default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: [ - "option", - "string" - ] - if 6: slot - if 7: bool - if 8: - pitch: f32 - yaw: f32 - roll: f32 - if 9: position - if 10: [ - "option", - "position" - ] - if 11: varint - if 12: [ - "option", - "UUID" - ] - if 13: varint - if 14: nbt - if 15: particle - if 16: - villagerType: varint - villagerProfession: varint - level: varint - if 17: optvarint - if 18: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - minecraft_smelting_format: - group: string - ingredient: ingredient - result: slot - experience: f32 - cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: - _: [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - y: i16 - type: varint - nbtData: optionalNbt - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: string - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:mob_effect: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:range: - allowDecimals: bool - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:item_enchantment: void - if minecraft:entity_summon: void - if minecraft:dimension: void - if minecraft:nbt_compound_tag: void - if minecraft:time: void - if minecraft:resource_or_tag: - registry: string - if minecraft:resource: - registry: string - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: UUID - username: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response +!base: 1.18 ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: varint - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: varint - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_chat: - message: string - position: i8 - sender: UUID - packet_multi_block_change: - chunkCoordinates: [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] - notTrustEdges: bool - records: varlong[]varint - packet_close_window: - windowId: u8 - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: string - packet_window_items: - windowId: u8 - stateId: varint - items: slot[]varint - carriedItem: slot - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - stateId: varint - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []varint - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: - windowId: u8 - nbSlots: varint - entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: - x: i32 - z: i32 - heightmaps: nbt - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: chunkBlockEntity[]varint - trustEdges: bool - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_update_light: - chunkX: varint - chunkZ: varint - trustEdges: bool - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - packet_login: - entityId: i32 - isHardcore: bool - gameMode: u8 - previousGameMode: i8 - worldNames: string[]varint - dimensionCodec: nbt - dimension: nbt - worldName: string - hashedSeed: i64 - maxPlayers: varint - viewDistance: varint - simulationDistance: varint - reducedDebugInfo: bool - enableRespawnScreen: bool - isDebug: bool - isFlat: bool - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_trade_list: - windowId: varint - trades: []u8 - inputItem1: slot - outputItem: slot - inputItem2?: slot - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: - hand: varint - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_end_combat_event: - duration: varint - entityId: i32 - packet_enter_combat_event: - # Empty - packet_death_combat_event: - playerId: varint - entityId: i32 - message: string - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - dismountVehicle: bool - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - blastFurnaceOpen: bool - filteringBlastFurnace: bool - smokerBookOpen: bool - filteringSmoker: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: + packet_remove_entity_effect: entityId: varint effectId: varint - packet_resource_pack_send: - url: string - hash: string - forced: bool - promptMessage?: string - packet_respawn: - dimension: nbt - worldName: string - hashedSeed: i64 - gamemode: u8 - previousGamemode: u8 - isDebug: bool - isFlat: bool - copyMetadata: bool - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: - chunkX: varint - chunkZ: varint - packet_update_view_distance: - viewDistance: varint - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - angle: f32 - packet_update_time: - age: i64 - time: i64 - packet_entity_sound_effect: - soundId: varint - soundCategory: varint - entityId: varint - volume: f32 - pitch: f32 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []varint - name: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: + + packet_entity_effect: entityId: varint effectId: varint amplifier: i8 duration: varint hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet_declare_recipes: - recipes: []varint - type: string - recipeId: string - data: type ? - if minecraft:crafting_shapeless: - group: string - ingredients: ingredient[]varint - result: slot - if minecraft:crafting_shaped: - width: varint - height: varint - group: string - ingredients: []$width - _: ingredient[]$height - result: slot - if minecraft:crafting_special_armordye: void - if minecraft:crafting_special_bookcloning: void - if minecraft:crafting_special_mapcloning: void - if minecraft:crafting_special_mapextending: void - if minecraft:crafting_special_firework_rocket: void - if minecraft:crafting_special_firework_star: void - if minecraft:crafting_special_firework_star_fade: void - if minecraft:crafting_special_repairitem: void - if minecraft:crafting_special_tippedarrow: void - if minecraft:crafting_special_bannerduplicate: void - if minecraft:crafting_special_banneraddpattern: void - if minecraft:crafting_special_shielddecoration: void - if minecraft:crafting_special_shulkerboxcoloring: void - if minecraft:crafting_special_suspiciousstew: void - if minecraft:smelting: minecraft_smelting_format - if minecraft:blasting: minecraft_smelting_format - if minecraft:smoking: minecraft_smelting_format - if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: - group: string - ingredient: ingredient - result: slot - if minecraft:smithing: - base: ingredient - addition: ingredient - result: slot - packet_tags: - tags: []varint - tagType: string - tags: tags - packet_acknowledge_player_digging: - location: position - block: varint - status: varint - successful: bool - packet_sculk_vibration_signal: - sourcePosition: position - destinationIdentifier: string - destination: destinationIdentifier ? - if block: position - if entityId: varint - default: void - arrivalTicks: varint - packet_clear_titles: - reset: bool - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varlong - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - packet_action_bar: - text: string - packet_world_border_center: - x: f64 - z: f64 - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varlong - packet_world_border_size: - diameter: f64 - packet_world_border_warning_delay: - warningTime: varint - packet_world_border_warning_reach: - warningBlocks: varint - packet_ping: - id: i32 - packet_set_title_subtitle: - text: string - packet_set_title_text: - text: string - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - packet_simulation_distance: - distance: varint - packet: - name: varint => - 0x00: spawn_entity - 0x01: spawn_entity_experience_orb - 0x02: spawn_entity_living - 0x03: spawn_entity_painting - 0x04: named_entity_spawn - 0x05: sculk_vibration_signal - 0x06: animation - 0x07: statistics - 0x08: acknowledge_player_digging - 0x09: block_break_animation - 0x0a: tile_entity_data - 0x0b: block_action - 0x0c: block_change - 0x0d: boss_bar - 0x0e: difficulty - 0x0f: chat - 0x10: clear_titles - 0x11: tab_complete - 0x12: declare_commands - 0x13: close_window - 0x14: window_items - 0x15: craft_progress_bar - 0x16: set_slot - 0x17: set_cooldown - 0x18: custom_payload - 0x19: named_sound_effect - 0x1a: kick_disconnect - 0x1b: entity_status - 0x1c: explosion - 0x1d: unload_chunk - 0x1e: game_state_change - 0x1f: open_horse_window - 0x20: initialize_world_border - 0x21: keep_alive - 0x22: map_chunk - 0x23: world_event - 0x24: world_particles - 0x25: update_light - 0x26: login - 0x27: map - 0x28: trade_list - 0x29: rel_entity_move - 0x2a: entity_move_look - 0x2b: entity_look - 0x2c: vehicle_move - 0x2d: open_book - 0x2e: open_window - 0x2f: open_sign_entity - 0x30: ping - 0x31: craft_recipe_response - 0x32: abilities - 0x33: end_combat_event - 0x34: enter_combat_event - 0x35: death_combat_event - 0x36: player_info - 0x37: face_player - 0x38: position - 0x39: unlock_recipes - 0x3a: entity_destroy - 0x3b: remove_entity_effect - 0x3c: resource_pack_send - 0x3d: respawn - 0x3e: entity_head_rotation - 0x3f: multi_block_change - 0x40: select_advancement_tab - 0x41: action_bar - 0x42: world_border_center - 0x43: world_border_lerp_size - 0x44: world_border_size - 0x45: world_border_warning_delay - 0x46: world_border_warning_reach - 0x47: camera - 0x48: held_item_slot - 0x49: update_view_position - 0x4a: update_view_distance - 0x4b: spawn_position - 0x4c: scoreboard_display_objective - 0x4d: entity_metadata - 0x4e: attach_entity - 0x4f: entity_velocity - 0x50: entity_equipment - 0x51: experience - 0x52: update_health - 0x53: scoreboard_objective - 0x54: set_passengers - 0x55: teams - 0x56: scoreboard_score - 0x57: simulation_distance - 0x58: set_title_subtitle - 0x59: update_time - 0x5a: set_title_text - 0x5b: set_title_time - 0x5c: entity_sound_effect - 0x5d: sound_effect - 0x5e: stop_sound - 0x5f: playerlist_header - 0x60: nbt_query_response - 0x61: collect - 0x62: entity_teleport - 0x63: advancements - 0x64: entity_update_attributes - 0x65: entity_effect - 0x66: declare_recipes - 0x67: tags - params: name ? - if spawn_entity: packet_spawn_entity - if spawn_entity_experience_orb: packet_spawn_entity_experience_orb - if spawn_entity_living: packet_spawn_entity_living - if spawn_entity_painting: packet_spawn_entity_painting - if named_entity_spawn: packet_named_entity_spawn - if animation: packet_animation - if statistics: packet_statistics - if advancements: packet_advancements - if block_break_animation: packet_block_break_animation - if tile_entity_data: packet_tile_entity_data - if block_action: packet_block_action - if block_change: packet_block_change - if boss_bar: packet_boss_bar - if difficulty: packet_difficulty - if tab_complete: packet_tab_complete - if declare_commands: packet_declare_commands - if face_player: packet_face_player - if nbt_query_response: packet_nbt_query_response - if chat: packet_chat - if multi_block_change: packet_multi_block_change - if close_window: packet_close_window - if open_window: packet_open_window - if window_items: packet_window_items - if craft_progress_bar: packet_craft_progress_bar - if set_slot: packet_set_slot - if set_cooldown: packet_set_cooldown - if custom_payload: packet_custom_payload - if named_sound_effect: packet_named_sound_effect - if kick_disconnect: packet_kick_disconnect - if entity_status: packet_entity_status - if explosion: packet_explosion - if unload_chunk: packet_unload_chunk - if game_state_change: packet_game_state_change - if open_horse_window: packet_open_horse_window - if keep_alive: packet_keep_alive - if map_chunk: packet_map_chunk - if world_event: packet_world_event - if world_particles: packet_world_particles - if update_light: packet_update_light - if login: packet_login - if map: packet_map - if trade_list: packet_trade_list - if rel_entity_move: packet_rel_entity_move - if entity_move_look: packet_entity_move_look - if entity_look: packet_entity_look - if vehicle_move: packet_vehicle_move - if open_book: packet_open_book - if open_sign_entity: packet_open_sign_entity - if craft_recipe_response: packet_craft_recipe_response - if abilities: packet_abilities - if end_combat_event: packet_end_combat_event - if enter_combat_event: packet_enter_combat_event - if death_combat_event: packet_death_combat_event - if player_info: packet_player_info - if position: packet_position - if unlock_recipes: packet_unlock_recipes - if entity_destroy: packet_entity_destroy - if remove_entity_effect: packet_remove_entity_effect - if resource_pack_send: packet_resource_pack_send - if respawn: packet_respawn - if entity_update_attributes: packet_entity_update_attributes - if camera: packet_camera - if held_item_slot: packet_held_item_slot - if update_view_position: packet_update_view_position - if update_view_distance: packet_update_view_distance - if scoreboard_display_objective: packet_scoreboard_display_objective - if entity_metadata: packet_entity_metadata - if attach_entity: packet_attach_entity - if entity_velocity: packet_entity_velocity - if entity_equipment: packet_entity_equipment - if experience: packet_experience - if update_health: packet_update_health - if scoreboard_objective: packet_scoreboard_objective - if set_passengers: packet_set_passengers - if teams: packet_teams - if scoreboard_score: packet_scoreboard_score - if simulation_distance: packet_simulation_distance - if spawn_position: packet_spawn_position - if update_time: packet_update_time - if entity_sound_effect: packet_entity_sound_effect - if stop_sound: packet_stop_sound - if sound_effect: packet_sound_effect - if playerlist_header: packet_playerlist_header - if collect: packet_collect - if entity_teleport: packet_entity_teleport - if entity_head_rotation: packet_entity_head_rotation - if entity_effect: packet_entity_effect - if select_advancement_tab: packet_select_advancement_tab - if declare_recipes: packet_declare_recipes - if tags: packet_tags - if acknowledge_player_digging: packet_acknowledge_player_digging - if sculk_vibration_signal: packet_sculk_vibration_signal - if clear_titles: packet_clear_titles - if initialize_world_border: packet_initialize_world_border - if action_bar: packet_action_bar - if world_border_center: packet_world_border_center - if world_border_lerp_size: packet_world_border_lerp_size - if world_border_size: packet_world_border_size - if world_border_warning_delay: packet_world_border_warning_delay - if world_border_warning_reach: packet_world_border_warning_reach - if ping: packet_ping - if set_title_subtitle: packet_set_title_subtitle - if set_title_text: packet_set_title_text - if set_title_time: packet_set_title_time - -^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_set_difficulty: - newDifficulty: u8 - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect: varint - secondary_effect: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varlong - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - enableTextFiltering: bool - enableServerListing: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - stateId: varint - slot: i16 - mouseButton: i8 - mode: varint - changedSlots: []varint - location: i16 - item: slot - cursorItem: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: - locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_displayed_recipe: - recipeId: string - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet_pong: - id: i32 - packet: - name: varint => - 0x00: teleport_confirm - 0x01: query_block_nbt - 0x02: set_difficulty - 0x03: chat - 0x04: client_command - 0x05: settings - 0x06: tab_complete - 0x07: enchant_item - 0x08: window_click - 0x09: close_window - 0x0a: custom_payload - 0x0b: edit_book - 0x0c: query_entity_nbt - 0x0d: use_entity - 0x0e: generate_structure - 0x0f: keep_alive - 0x10: lock_difficulty - 0x11: position - 0x12: position_look - 0x13: look - 0x14: flying - 0x15: vehicle_move - 0x16: steer_boat - 0x17: pick_item - 0x18: craft_recipe_request - 0x19: abilities - 0x1a: block_dig - 0x1b: entity_action - 0x1c: steer_vehicle - 0x1d: pong - 0x1e: recipe_book - 0x1f: displayed_recipe - 0x20: name_item - 0x21: resource_pack_receive - 0x22: advancement_tab - 0x23: select_trade - 0x24: set_beacon_effect - 0x25: held_item_slot - 0x26: update_command_block - 0x27: update_command_block_minecart - 0x28: set_creative_slot - 0x29: update_jigsaw_block - 0x2a: update_structure_block - 0x2b: update_sign - 0x2c: arm_animation - 0x2d: spectate - 0x2e: block_place - 0x2f: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if query_block_nbt: packet_query_block_nbt - if set_difficulty: packet_set_difficulty - if edit_book: packet_edit_book - if query_entity_nbt: packet_query_entity_nbt - if pick_item: packet_pick_item - if name_item: packet_name_item - if select_trade: packet_select_trade - if set_beacon_effect: packet_set_beacon_effect - if update_command_block: packet_update_command_block - if update_command_block_minecart: packet_update_command_block_minecart - if update_structure_block: packet_update_structure_block - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if generate_structure: packet_generate_structure - if keep_alive: packet_keep_alive - if lock_difficulty: packet_lock_difficulty - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if craft_recipe_request: packet_craft_recipe_request - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if displayed_recipe: packet_displayed_recipe - if recipe_book: packet_recipe_book - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_jigsaw_block: packet_update_jigsaw_block - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item - if advancement_tab: packet_advancement_tab - if pong: packet_pong diff --git a/data/pc/1.18/proto.yml b/data/pc/1.18/proto.yml index aa75dfd1e..50cd138a8 100644 --- a/data/pc/1.18/proto.yml +++ b/data/pc/1.18/proto.yml @@ -1,68 +1,22 @@ !version: 1.18 +!base: 1.17.1 ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native u32: native + u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] + particleData: $compareTo ? - if 2: + if 2: blockState: varint - if 3: + if 3: blockState: varint - if 14: + if 14: red: f32 green: f32 blue: f32 scale: f32 - if 15: + if 15: fromRed: f32 fromGreen: f32 fromBlue: f32 @@ -70,11 +24,11 @@ toRed: f32 toGreen: f32 toBlue: f32 - if 24: + if 24: blockState: varint - if 35: + if 35: item: slot - if 36: + if 36: origin: position positionType: string destination: positionType ? @@ -82,108 +36,8 @@ if minecraft:entity: varint ticks: varint default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: [ - "option", - "string" - ] - if 6: slot - if 7: bool - if 8: - pitch: f32 - yaw: f32 - roll: f32 - if 9: position - if 10: [ - "option", - "position" - ] - if 11: varint - if 12: [ - "option", - "UUID" - ] - if 13: varint - if 14: nbt - if 15: particle - if 16: - villagerType: varint - villagerProfession: varint - level: varint - if 17: optvarint - if 18: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - minecraft_smelting_format: - group: string - ingredient: ingredient - result: slot - experience: f32 - cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: + + chunkBlockEntity: _: [ "bitfield", [ @@ -202,534 +56,14 @@ y: i16 type: varint nbtData: optionalNbt - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: string - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:mob_effect: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:range: - allowDecimals: bool - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:item_enchantment: void - if minecraft:entity_summon: void - if minecraft:dimension: void - if minecraft:nbt_compound_tag: void - if minecraft:time: void - if minecraft:resource_or_tag: - registry: string - if minecraft:resource: - registry: string - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: UUID - username: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: varint - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: + packet_tile_entity_data: location: position action: varint nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_chat: - message: string - position: i8 - sender: UUID - packet_multi_block_change: + + packet_multi_block_change: chunkCoordinates: [ "bitfield", [ @@ -752,70 +86,8 @@ ] notTrustEdges: bool records: varlong[]varint - packet_close_window: - windowId: u8 - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: string - packet_window_items: - windowId: u8 - stateId: varint - items: slot[]varint - carriedItem: slot - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - stateId: varint - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []varint - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: - windowId: u8 - nbSlots: varint - entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: + + packet_map_chunk: x: i32 z: i32 heightmaps: nbt @@ -835,41 +107,8 @@ _: u8[]varint blockLight: []varint _: u8[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_update_light: - chunkX: varint - chunkZ: varint - trustEdges: bool - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - packet_login: + + packet_login: entityId: i32 isHardcore: bool gameMode: u8 @@ -886,435 +125,11 @@ enableRespawnScreen: bool isDebug: bool isFlat: bool - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_trade_list: - windowId: varint - trades: []u8 - inputItem1: slot - outputItem: slot - inputItem2?: slot - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: - hand: varint - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_end_combat_event: - duration: varint - entityId: i32 - packet_enter_combat_event: - # Empty - packet_death_combat_event: - playerId: varint - entityId: i32 - message: string - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - dismountVehicle: bool - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - blastFurnaceOpen: bool - filteringBlastFurnace: bool - smokerBookOpen: bool - filteringSmoker: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - forced: bool - promptMessage?: string - packet_respawn: - dimension: nbt - worldName: string - hashedSeed: i64 - gamemode: u8 - previousGamemode: u8 - isDebug: bool - isFlat: bool - copyMetadata: bool - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: - chunkX: varint - chunkZ: varint - packet_update_view_distance: - viewDistance: varint - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - angle: f32 - packet_update_time: - age: i64 - time: i64 - packet_entity_sound_effect: - soundId: varint - soundCategory: varint - entityId: varint - volume: f32 - pitch: f32 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []varint - name: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet_declare_recipes: - recipes: []varint - type: string - recipeId: string - data: type ? - if minecraft:crafting_shapeless: - group: string - ingredients: ingredient[]varint - result: slot - if minecraft:crafting_shaped: - width: varint - height: varint - group: string - ingredients: []$width - _: ingredient[]$height - result: slot - if minecraft:crafting_special_armordye: void - if minecraft:crafting_special_bookcloning: void - if minecraft:crafting_special_mapcloning: void - if minecraft:crafting_special_mapextending: void - if minecraft:crafting_special_firework_rocket: void - if minecraft:crafting_special_firework_star: void - if minecraft:crafting_special_firework_star_fade: void - if minecraft:crafting_special_repairitem: void - if minecraft:crafting_special_tippedarrow: void - if minecraft:crafting_special_bannerduplicate: void - if minecraft:crafting_special_banneraddpattern: void - if minecraft:crafting_special_shielddecoration: void - if minecraft:crafting_special_shulkerboxcoloring: void - if minecraft:crafting_special_suspiciousstew: void - if minecraft:smelting: minecraft_smelting_format - if minecraft:blasting: minecraft_smelting_format - if minecraft:smoking: minecraft_smelting_format - if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: - group: string - ingredient: ingredient - result: slot - if minecraft:smithing: - base: ingredient - addition: ingredient - result: slot - packet_tags: - tags: []varint - tagType: string - tags: tags - packet_acknowledge_player_digging: - location: position - block: varint - status: varint - successful: bool - packet_sculk_vibration_signal: - sourcePosition: position - destinationIdentifier: string - destination: destinationIdentifier ? - if block: position - if entityId: varint - default: void - arrivalTicks: varint - packet_clear_titles: - reset: bool - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varlong - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - packet_action_bar: - text: string - packet_world_border_center: - x: f64 - z: f64 - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varlong - packet_world_border_size: - diameter: f64 - packet_world_border_warning_delay: - warningTime: varint - packet_world_border_warning_reach: - warningBlocks: varint - packet_ping: - id: i32 - packet_set_title_subtitle: - text: string - packet_set_title_text: - text: string - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - packet_simulation_distance: + + packet_simulation_distance: distance: varint - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -1527,63 +342,7 @@ if set_title_time: packet_set_title_time ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_set_difficulty: - newDifficulty: u8 - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect: varint - secondary_effect: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varlong - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: + packet_settings: locale: string viewDistance: i8 chatFlags: varint @@ -1592,237 +351,3 @@ mainHand: varint enableTextFiltering: bool enableServerListing: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - stateId: varint - slot: i16 - mouseButton: i8 - mode: varint - changedSlots: []varint - location: i16 - item: slot - cursorItem: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: - locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_displayed_recipe: - recipeId: string - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet_pong: - id: i32 - packet: - name: varint => - 0x00: teleport_confirm - 0x01: query_block_nbt - 0x02: set_difficulty - 0x03: chat - 0x04: client_command - 0x05: settings - 0x06: tab_complete - 0x07: enchant_item - 0x08: window_click - 0x09: close_window - 0x0a: custom_payload - 0x0b: edit_book - 0x0c: query_entity_nbt - 0x0d: use_entity - 0x0e: generate_structure - 0x0f: keep_alive - 0x10: lock_difficulty - 0x11: position - 0x12: position_look - 0x13: look - 0x14: flying - 0x15: vehicle_move - 0x16: steer_boat - 0x17: pick_item - 0x18: craft_recipe_request - 0x19: abilities - 0x1a: block_dig - 0x1b: entity_action - 0x1c: steer_vehicle - 0x1d: pong - 0x1e: recipe_book - 0x1f: displayed_recipe - 0x20: name_item - 0x21: resource_pack_receive - 0x22: advancement_tab - 0x23: select_trade - 0x24: set_beacon_effect - 0x25: held_item_slot - 0x26: update_command_block - 0x27: update_command_block_minecart - 0x28: set_creative_slot - 0x29: update_jigsaw_block - 0x2a: update_structure_block - 0x2b: update_sign - 0x2c: arm_animation - 0x2d: spectate - 0x2e: block_place - 0x2f: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if query_block_nbt: packet_query_block_nbt - if set_difficulty: packet_set_difficulty - if edit_book: packet_edit_book - if query_entity_nbt: packet_query_entity_nbt - if pick_item: packet_pick_item - if name_item: packet_name_item - if select_trade: packet_select_trade - if set_beacon_effect: packet_set_beacon_effect - if update_command_block: packet_update_command_block - if update_command_block_minecart: packet_update_command_block_minecart - if update_structure_block: packet_update_structure_block - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if generate_structure: packet_generate_structure - if keep_alive: packet_keep_alive - if lock_difficulty: packet_lock_difficulty - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if craft_recipe_request: packet_craft_recipe_request - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if displayed_recipe: packet_displayed_recipe - if recipe_book: packet_recipe_book - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_jigsaw_block: packet_update_jigsaw_block - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item - if advancement_tab: packet_advancement_tab - if pong: packet_pong diff --git a/data/pc/1.19.2/proto.yml b/data/pc/1.19.2/proto.yml index cefa2c18f..c73af31a1 100644 --- a/data/pc/1.19.2/proto.yml +++ b/data/pc/1.19.2/proto.yml @@ -1,116 +1,7 @@ !version: 1.19.2 +!base: 1.19 ^types: - varint: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - particleData: $compareTo ? - if 2: - blockState: varint - if 3: - blockState: varint - if 14: - red: f32 - green: f32 - blue: f32 - scale: f32 - if 15: - fromRed: f32 - fromGreen: f32 - fromBlue: f32 - scale: f32 - toRed: f32 - toGreen: f32 - toBlue: f32 - if 25: - blockState: varint - if 30: - rotation: f32 - if 39: - item: slot - if 40: - positionType: string - entityId: positionType ? - if minecraft:entity: varint - default: void - entityEyeHeight: positionType ? - if minecraft:entity: varint - default: void - destination: positionType ? - if minecraft:block: position - if minecraft:entity: varint - ticks: varint - if 92: - delayInTicksBeforeShown: varint - default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] previousMessages: []varint messageSender: UUID messageSignature: [ @@ -119,6 +10,7 @@ "countType": "varint" } ] + entityMetadataItem: $compareTo ? if 0: i8 if 1: varint @@ -131,7 +23,7 @@ ] if 6: slot if 7: bool - if 8: + if 8: pitch: f32 yaw: f32 roll: f32 @@ -148,7 +40,7 @@ if 13: varint if 14: nbt if 15: particle - if 16: + if 16: villagerType: varint villagerProfession: varint level: varint @@ -161,449 +53,11 @@ "string" ] if 22: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - minecraft_smelting_format: - group: string - ingredient: ingredient - result: slot - experience: f32 - cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: - _: [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - y: i16 - type: varint - nbtData: optionalNbt - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: varint => - 0: brigadier:bool - 1: brigadier:float - 2: brigadier:double - 3: brigadier:integer - 4: brigadier:long - 5: brigadier:string - 6: minecraft:entity - 7: minecraft:game_profile - 8: minecraft:block_pos - 9: minecraft:column_pos - 10: minecraft:vec3 - 11: minecraft:vec2 - 12: minecraft:block_state - 13: minecraft:block_predicate - 14: minecraft:item_stack - 15: minecraft:item_predicate - 16: minecraft:color - 17: minecraft:component - 18: minecraft:message - 19: minecraft:nbt - 20: minecraft:nbt_tag - 21: minecraft:nbt_path - 22: minecraft:objective - 23: minecraft:objective_criteria - 24: minecraft:operation - 25: minecraft:particle - 26: minecraft:angle - 27: minecraft:rotation - 28: minecraft:scoreboard_slot - 29: minecraft:score_holder - 30: minecraft:swizzle - 31: minecraft:team - 32: minecraft:item_slot - 33: minecraft:resource_location - 34: minecraft:mob_effect - 35: minecraft:function - 36: minecraft:entity_anchor - 37: minecraft:int_range - 38: minecraft:float_range - 39: minecraft:item_enchantment - 40: minecraft:entity_summon - 41: minecraft:dimension - 42: minecraft:time - 43: minecraft:resource_or_tag - 44: minecraft:resource - 45: minecraft:template_mirror - 46: minecraft:template_rotation - 47: minecraft:uuid - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:mob_effect: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:item_enchantment: void - if minecraft:entity_summon: void - if minecraft:dimension: void - if minecraft:time: void - if minecraft:resource_or_tag: - registry: string - if minecraft:resource: - registry: string - if minecraft:template_mirror: void - if minecraft:template_rotation: void - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: UUID - username: string - properties: []varint - name: string - value: string - signature?: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request ^login.toServer.types: - packet_login_start: + packet_login_start: username: string - signature?: + signature?: timestamp: i64 publicKey: [ "buffer", @@ -618,201 +72,9 @@ } ] playerUUID?: UUID - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - hasVerifyToken: bool - crypto: hasVerifyToken ? - if true: - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - if false: - salt: i64 - messageSignature: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - headPitch: i8 - objectData: varint - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: varint - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - packet_chat_preview: - queryId: i32 - message?: string - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_multi_block_change: + packet_multi_block_change: chunkCoordinates: [ "bitfield", [ @@ -835,183 +97,20 @@ ] suppressLightUpdates: bool records: varint[]varint - packet_close_window: - windowId: u8 - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: string - packet_window_items: - windowId: u8 - stateId: varint - items: slot[]varint - carriedItem: slot - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - stateId: varint - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_chat_suggestions: + + packet_chat_suggestions: action: varint entries: string[]varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - seed: i64 - packet_hide_message: + + packet_hide_message: signature: [ "buffer", { "countType": "varint" } ] - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []varint - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: - windowId: u8 - nbSlots: varint - entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: - x: i32 - z: i32 - heightmaps: nbt - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: chunkBlockEntity[]varint - trustEdges: bool - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: varint - longDistance: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_update_light: - chunkX: varint - chunkZ: varint - trustEdges: bool - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - packet_login: - entityId: i32 - isHardcore: bool - gameMode: u8 - previousGameMode: i8 - worldNames: string[]varint - dimensionCodec: nbt - worldType: string - worldName: string - hashedSeed: i64 - maxPlayers: varint - viewDistance: varint - simulationDistance: varint - reducedDebugInfo: bool - enableRespawnScreen: bool - isDebug: bool - isFlat: bool - death?: - dimensionName: string - location: position - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_trade_list: + + packet_trade_list: windowId: varint trades: []varint inputItem1: slot @@ -1028,43 +127,8 @@ experience: varint isRegularVillager: bool canRestock: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: - hand: varint - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_player_chat: + + packet_player_chat: previousSignature?: [ "buffer", { @@ -1091,82 +155,8 @@ type: varint networkName: string networkTargetName?: string - packet_end_combat_event: - duration: varint - entityId: i32 - packet_enter_combat_event: - # Empty - packet_death_combat_event: - playerId: varint - entityId: i32 - message: string - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - ## ProfilePublicKey.java#L75 - crypto?: - # What time the following key expires at - timestamp: i64 - publicKey: ByteArray - signature: ByteArray - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - dismountVehicle: bool - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - blastFurnaceOpen: bool - filteringBlastFurnace: bool - smokerBookOpen: bool - filteringSmoker: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: varint - packet_resource_pack_send: - url: string - hash: string - forced: bool - promptMessage?: string - packet_respawn: + + packet_respawn: dimension: string worldName: string hashedSeed: i64 @@ -1175,280 +165,21 @@ isDebug: bool isFlat: bool copyMetadata: bool - death?: + death?: dimensionName: string location: position - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: - chunkX: varint - chunkZ: varint - packet_update_view_distance: - viewDistance: varint - packet_should_display_chat_preview: - should_display_chat_preview: bool - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - angle: f32 - packet_update_time: - age: i64 - time: i64 - packet_entity_sound_effect: - soundId: varint - soundCategory: varint - entityId: varint - volume: f32 - pitch: f32 - seed: i64 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - seed: i64 - packet_system_chat: + + packet_system_chat: content: string isActionBar: bool - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []varint - name: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: varint - amplifier: i8 - duration: varint - hideParticles: i8 - factorCodec?: nbt - packet_select_advancement_tab: - id?: string - packet_server_data: + + packet_server_data: motd?: string icon?: string previewsChat: bool enforcesSecureChat: bool - packet_declare_recipes: - recipes: []varint - type: string - recipeId: string - data: type ? - if minecraft:crafting_shapeless: - group: string - ingredients: ingredient[]varint - result: slot - if minecraft:crafting_shaped: - width: varint - height: varint - group: string - ingredients: []$width - _: ingredient[]$height - result: slot - if minecraft:crafting_special_armordye: void - if minecraft:crafting_special_bookcloning: void - if minecraft:crafting_special_mapcloning: void - if minecraft:crafting_special_mapextending: void - if minecraft:crafting_special_firework_rocket: void - if minecraft:crafting_special_firework_star: void - if minecraft:crafting_special_firework_star_fade: void - if minecraft:crafting_special_repairitem: void - if minecraft:crafting_special_tippedarrow: void - if minecraft:crafting_special_bannerduplicate: void - if minecraft:crafting_special_banneraddpattern: void - if minecraft:crafting_special_shielddecoration: void - if minecraft:crafting_special_shulkerboxcoloring: void - if minecraft:crafting_special_suspiciousstew: void - if minecraft:smelting: minecraft_smelting_format - if minecraft:blasting: minecraft_smelting_format - if minecraft:smoking: minecraft_smelting_format - if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: - group: string - ingredient: ingredient - result: slot - if minecraft:smithing: - base: ingredient - addition: ingredient - result: slot - packet_tags: - tags: []varint - tagType: string - tags: tags - packet_acknowledge_player_digging: - sequenceId: varint - packet_clear_titles: - reset: bool - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varint - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - packet_action_bar: - text: string - packet_world_border_center: - x: f64 - z: f64 - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varint - packet_world_border_size: - diameter: f64 - packet_world_border_warning_delay: - warningTime: varint - packet_world_border_warning_reach: - warningBlocks: varint - packet_ping: - id: i32 - packet_set_title_subtitle: - text: string - packet_set_title_text: - text: string - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - packet_simulation_distance: - distance: varint - packet_message_header: + + packet_message_header: previousSignature?: [ "buffer", { @@ -1468,7 +199,8 @@ "countType": "varint" } ] - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -1689,12 +421,7 @@ if tags: packet_tags ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_chat_command: + packet_chat_command: command: string timestamp: i64 salt: i64 @@ -1708,7 +435,7 @@ ] signedPreview: bool previousMessages: previousMessages - lastRejectedMessage?: + lastRejectedMessage?: sender: UUID signature: [ "buffer", @@ -1716,7 +443,8 @@ "countType": "varint" } ] - packet_chat_message: + + packet_chat_message: message: string timestamp: i64 salt: i64 @@ -1728,7 +456,7 @@ ] signedPreview: bool previousMessages: previousMessages - lastRejectedMessage?: + lastRejectedMessage?: sender: UUID signature: [ "buffer", @@ -1736,14 +464,10 @@ "countType": "varint" } ] - packet_chat_preview: - query: i32 - message: string - packet_set_difficulty: - newDifficulty: u8 - packet_message_acknowledgement: + + packet_message_acknowledgement: previousMessages: previousMessages - lastRejectedMessage?: + lastRejectedMessage?: sender: UUID signature: [ "buffer", @@ -1751,201 +475,8 @@ "countType": "varint" } ] - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect?: varint - secondary_effect?: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varint - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - enableTextFiltering: bool - enableServerListing: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - stateId: varint - slot: i16 - mouseButton: i8 - mode: varint - changedSlots: []varint - location: i16 - item: slot - cursorItem: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: - locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - packet_block_dig: - status: varint - location: position - face: i8 - sequence: varint - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_displayed_recipe: - recipeId: string - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - sequence: varint - packet_use_item: - hand: varint - sequence: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet_pong: - id: i32 - packet: + + packet: name: varint => 0x00: teleport_confirm 0x01: query_block_nbt diff --git a/data/pc/1.19.3/proto.yml b/data/pc/1.19.3/proto.yml index a956094f2..467f2302e 100644 --- a/data/pc/1.19.3/proto.yml +++ b/data/pc/1.19.3/proto.yml @@ -1,126 +1,22 @@ !version: 1.19.3 +!base: 1.19.2 ^types: - varint: native varlong: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native + registryEntryHolder: native + registryEntryHolderSet: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt + ItemSoundEvent: soundName: string fixedRange?: f32 + ItemSoundHolder: ["registryEntryHolder", { "baseName": "soundId", "otherwise": { name: "data", type: "ItemSoundEvent" } }] - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - particleData: $compareTo ? - if 2: - blockState: varint - if 3: - blockState: varint - if 14: - red: f32 - green: f32 - blue: f32 - scale: f32 - if 15: - fromRed: f32 - fromGreen: f32 - fromBlue: f32 - scale: f32 - toRed: f32 - toGreen: f32 - toBlue: f32 - if 25: - blockState: varint - if 30: - rotation: f32 - if 39: - item: slot - if 40: - positionType: string - entityId: positionType ? - if minecraft:entity: varint - default: void - entityEyeHeight: positionType ? - if minecraft:entity: varint - default: void - destination: positionType ? - if minecraft:block: position - if minecraft:entity: varint - ticks: varint - if 92: - delayInTicksBeforeShown: varint - default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] + soundSource: varint => 0: master 1: music @@ -132,6 +28,7 @@ 7: player 8: ambient 9: voice + previousMessages: []varint id: varint signature: id ? @@ -142,6 +39,7 @@ } ] default: void + entityMetadataItem: $compareTo ? if 0: i8 if 1: varint @@ -155,7 +53,7 @@ ] if 7: slot if 8: bool - if 9: + if 9: pitch: f32 yaw: f32 roll: f32 @@ -172,7 +70,7 @@ if 14: varint if 15: nbt if 16: particle - if 17: + if 17: villagerType: varint villagerProfession: varint level: varint @@ -185,76 +83,21 @@ "string" ] if 23: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - minecraft_simple_recipe_format: + + minecraft_simple_recipe_format: category: varint - minecraft_smelting_format: + + minecraft_smelting_format: group: string category: varint ingredient: ingredient result: slot experience: f32 cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: - _: [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - y: i16 - type: varint - nbtData: optionalNbt - chat_session?: + + chat_session?: uuid: UUID - publicKey: + publicKey: expireTime: i64 keyBytes: [ "buffer", @@ -268,13 +111,15 @@ "countType": "varint" } ] - game_profile: + + game_profile: name: string properties: []varint name: string value: string signature?: string - command_node: + + command_node: flags: [ "bitfield", [ @@ -311,9 +156,9 @@ default: void extraNodeData: flags/command_node_type ? if 0: void - if 1: + if 1: name: string - if 2: + if 2: name: string parser: varint => 0: brigadier:bool @@ -366,7 +211,7 @@ 47: minecraft:uuid properties: parser ? if brigadier:bool: void - if brigadier:float: + if brigadier:float: flags: [ "bitfield", [ @@ -393,7 +238,7 @@ max: flags/max_present ? if 1: f32 default: void - if brigadier:double: + if brigadier:double: flags: [ "bitfield", [ @@ -420,7 +265,7 @@ max: flags/max_present ? if 1: f64 default: void - if brigadier:integer: + if brigadier:integer: flags: [ "bitfield", [ @@ -447,7 +292,7 @@ max: flags/max_present ? if 1: i32 default: void - if brigadier:long: + if brigadier:long: flags: [ "bitfield", [ @@ -545,13 +390,13 @@ if minecraft:dimension: void if minecraft:gamemode: void if minecraft:time: void - if minecraft:resource_or_tag: + if minecraft:resource_or_tag: registry: string - if minecraft:resource_or_tag_key: + if minecraft:resource_or_tag_key: registry: string - if minecraft:resource: + if minecraft:resource: registry: string - if minecraft:resource_key: + if minecraft:resource_key: registry: string if minecraft:template_mirror: void if minecraft:template_rotation: void @@ -560,102 +405,12 @@ if 1: string default: void -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: UUID - username: string - properties: []varint - name: string - value: string - signature?: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - ^login.toServer.types: - packet_login_start: + packet_login_start: username: string playerUUID?: UUID - packet_encryption_begin: + + packet_encryption_begin: sharedSecret: [ "buffer", { @@ -668,226 +423,17 @@ "countType": "varint" } ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - headPitch: i8 - objectData: varint - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: varint - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_multi_block_change: - chunkCoordinates: [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] - suppressLightUpdates: bool - records: varint[]varint - packet_close_window: - windowId: u8 - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: string - packet_window_items: - windowId: u8 - stateId: varint - items: slot[]varint - carriedItem: slot - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - stateId: varint - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_chat_suggestions: - action: varint - entries: string[]varint - packet_custom_payload: - channel: string - data: restBuffer - packet_hide_message: + packet_named_sound_effect: !delete + + packet_chat_preview: !delete + + packet_should_display_chat_preview: !delete + + packet_message_header: !delete + + packet_hide_message: id: varint signature: id ? if 0: [ @@ -897,17 +443,14 @@ } ] default: void - packet_kick_disconnect: - reason: string - packet_profileless_chat: + + packet_profileless_chat: message: string type: varint name: string target?: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: + + packet_explosion: x: f64 y: f64 z: f64 @@ -919,174 +462,8 @@ playerMotionX: f32 playerMotionY: f32 playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: - windowId: u8 - nbSlots: varint - entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: - x: i32 - z: i32 - heightmaps: nbt - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: chunkBlockEntity[]varint - trustEdges: bool - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: varint - longDistance: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_update_light: - chunkX: varint - chunkZ: varint - trustEdges: bool - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - packet_login: - entityId: i32 - isHardcore: bool - gameMode: u8 - previousGameMode: i8 - worldNames: string[]varint - dimensionCodec: nbt - worldType: string - worldName: string - hashedSeed: i64 - maxPlayers: varint - viewDistance: varint - simulationDistance: varint - reducedDebugInfo: bool - enableRespawnScreen: bool - isDebug: bool - isFlat: bool - death?: - dimensionName: string - location: position - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_trade_list: - windowId: varint - trades: []varint - inputItem1: slot - outputItem: slot - inputItem2: slot - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: - hand: varint - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_player_chat: + + packet_player_chat: senderUuid: UUID index: varint signature?: [ @@ -1107,18 +484,11 @@ type: varint networkName: string networkTargetName?: string - packet_end_combat_event: - duration: varint - entityId: i32 - packet_enter_combat_event: - # Empty - packet_death_combat_event: - playerId: varint - entityId: i32 - message: string - packet_player_remove: + + packet_player_remove: players: UUID[]varint - packet_player_info: + + packet_player_info: ## ClientboundPlayerInfoUpdatePacket.java#L160 action: ["bitflags", { "type": "u8", @@ -1151,170 +521,11 @@ displayName: ../action/update_display_name ? if true: ["option", "string"] default: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - dismountVehicle: bool - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - blastFurnaceOpen: bool - filteringBlastFurnace: bool - smokerBookOpen: bool - filteringSmoker: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: varint - packet_resource_pack_send: - url: string - hash: string - forced: bool - promptMessage?: string - packet_respawn: - dimension: string - worldName: string - hashedSeed: i64 - gamemode: i8 - previousGamemode: u8 - isDebug: bool - isFlat: bool - copyMetadata: bool - death?: - dimensionName: string - location: position - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: - chunkX: varint - chunkZ: varint - packet_update_view_distance: - viewDistance: varint - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - angle: f32 - packet_update_time: - age: i64 - time: i64 - packet_entity_sound_effect: + + packet_entity_sound_effect: soundId: varint soundEvent: soundId ? - if 0: + if 0: resource: string range?: f32 default: void @@ -1323,17 +534,8 @@ volume: f32 pitch: f32 seed: i64 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: + + packet_sound_effect: sound: ItemSoundHolder soundCategory: soundSource x: i32 @@ -1342,59 +544,26 @@ volume: f32 pitch: f32 seed: i64 - packet_system_chat: - content: string - isActionBar: bool - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []varint - name: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_feature_flags: + + packet_feature_flags: features: string[]varint - packet_entity_effect: - entityId: varint - effectId: varint - amplifier: i8 - duration: varint - hideParticles: i8 - factorCodec?: nbt - packet_select_advancement_tab: - id?: string - packet_server_data: + + packet_server_data: motd?: string icon?: string enforcesSecureChat: bool - packet_declare_recipes: + + packet_declare_recipes: recipes: []varint type: string recipeId: string data: type ? - if minecraft:crafting_shapeless: + if minecraft:crafting_shapeless: group: string category: varint ingredients: ingredient[]varint result: slot - if minecraft:crafting_shaped: + if minecraft:crafting_shaped: width: varint height: varint group: string @@ -1420,59 +589,16 @@ if minecraft:blasting: minecraft_smelting_format if minecraft:smoking: minecraft_smelting_format if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: + if minecraft:stonecutting: group: string ingredient: ingredient result: slot - if minecraft:smithing: + if minecraft:smithing: base: ingredient addition: ingredient result: slot - packet_tags: - tags: []varint - tagType: string - tags: tags - packet_acknowledge_player_digging: - sequenceId: varint - packet_clear_titles: - reset: bool - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varint - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - packet_action_bar: - text: string - packet_world_border_center: - x: f64 - z: f64 - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varint - packet_world_border_size: - diameter: f64 - packet_world_border_warning_delay: - warningTime: varint - packet_world_border_warning_reach: - warningBlocks: varint - packet_ping: - id: i32 - packet_set_title_subtitle: - text: string - packet_set_title_text: - text: string - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - packet_simulation_distance: - distance: varint - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -1691,12 +817,9 @@ if tags: packet_tags ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_chat_command: + packet_chat_preview: !delete + + packet_chat_command: command: string timestamp: i64 salt: i64 @@ -1715,7 +838,8 @@ "count": 3 } ] - packet_chat_message: + + packet_chat_message: message: string timestamp: i64 salt: i64 @@ -1732,205 +856,11 @@ "count": 3 } ] - packet_set_difficulty: - newDifficulty: u8 - packet_message_acknowledgement: + + packet_message_acknowledgement: count: varint - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect?: varint - secondary_effect?: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varint - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - enableTextFiltering: bool - enableServerListing: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - stateId: varint - slot: i16 - mouseButton: i8 - mode: varint - changedSlots: []varint - location: i16 - item: slot - cursorItem: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: - locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - packet_block_dig: - status: varint - location: position - face: i8 - sequence: varint - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_displayed_recipe: - recipeId: string - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - sequence: varint - packet_use_item: - hand: varint - sequence: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet_pong: - id: i32 - packet_chat_session_update: + + packet_chat_session_update: sessionUUID: UUID expireTime: i64 publicKey: [ @@ -1945,7 +875,8 @@ "countType": "varint" } ] - packet: + + packet: name: varint => 0x00: teleport_confirm 0x01: query_block_nbt diff --git a/data/pc/1.19.4/proto.yml b/data/pc/1.19.4/proto.yml index 96ca54f1f..27fe6f6a3 100644 --- a/data/pc/1.19.4/proto.yml +++ b/data/pc/1.19.4/proto.yml @@ -1,90 +1,34 @@ !version: 1.19.4 +!base: 1.19.3 ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - registryEntryHolder: native - registryEntryHolderSet: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3f: + vec3f: x: f32 y: f32 z: f32 - vec4f: + + vec4f: x: f32 y: f32 z: f32 w: f32 - vec3f64: + + vec3f64: x: f64 y: f64 z: f64 - vec3i16: - x: i16 - y: i16 - z: i16 - ItemSoundEvent: - soundName: string - fixedRange?: f32 - ItemSoundHolder: ["registryEntryHolder", { - "baseName": "soundId", - "otherwise": { name: "data", type: "ItemSoundEvent" } - }] - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] + particleData: $compareTo ? - if 2: + if 2: blockState: varint - if 3: + if 3: blockState: varint - if 14: + if 14: red: f32 green: f32 blue: f32 scale: f32 - if 15: + if 15: fromRed: f32 fromGreen: f32 fromBlue: f32 @@ -92,13 +36,13 @@ toRed: f32 toGreen: f32 toBlue: f32 - if 25: + if 25: blockState: varint - if 33: + if 33: rotation: f32 - if 42: + if 42: item: slot - if 43: + if 43: positionType: string entityId: positionType ? if minecraft:entity: varint @@ -110,54 +54,14 @@ if minecraft:block: position if minecraft:entity: varint ticks: varint - if 95: + if 95: delayInTicksBeforeShown: varint default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - packedChunkPos: + + packedChunkPos: z: i32 x: i32 - soundSource: varint => - 0: master - 1: music - 2: record - 3: weather - 4: block - 5: hostile - 6: neutral - 7: player - 8: ambient - 9: voice - previousMessages: []varint - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void + entityMetadataItem: $compareTo ? if byte: i8 if int: varint @@ -171,7 +75,7 @@ ] if item_stack: slot if boolean: bool - if rotations: + if rotations: pitch: f32 yaw: f32 roll: f32 @@ -189,7 +93,7 @@ if optional_block_state: optvarint if compound_tag: nbt if particle: particle - if villager_data: + if villager_data: villagerType: varint villagerProfession: varint level: varint @@ -205,6 +109,7 @@ if sniffer_state: varint if vector3: vec3f if quaternion: vec4f + entityMetadata: [ "entityMetadataLoop", { @@ -268,60 +173,8 @@ ] } ] - minecraft_simple_recipe_format: - category: varint - minecraft_smelting_format: - group: string - category: varint - ingredient: ingredient - result: slot - experience: f32 - cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: - _: [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - y: i16 - type: varint - nbtData: optionalNbt - chat_session?: - uuid: UUID - publicKey: - expireTime: i64 - keyBytes: [ - "buffer", - { - "countType": "varint" - } - ] - keySignature: [ - "buffer", - { - "countType": "varint" - } - ] - game_profile: - name: string - properties: []varint - name: string - value: string - signature?: string - command_node: + + command_node: flags: [ "bitfield", [ @@ -358,9 +211,9 @@ default: void extraNodeData: flags/command_node_type ? if 0: void - if 1: + if 1: name: string - if 2: + if 2: name: string parser: varint => 0: brigadier:bool @@ -414,7 +267,7 @@ 48: minecraft:uuid properties: parser ? if brigadier:bool: void - if brigadier:float: + if brigadier:float: flags: [ "bitfield", [ @@ -441,7 +294,7 @@ max: flags/max_present ? if 1: f32 default: void - if brigadier:double: + if brigadier:double: flags: [ "bitfield", [ @@ -468,7 +321,7 @@ max: flags/max_present ? if 1: f64 default: void - if brigadier:integer: + if brigadier:integer: flags: [ "bitfield", [ @@ -495,7 +348,7 @@ max: flags/max_present ? if 1: i32 default: void - if brigadier:long: + if brigadier:long: flags: [ "bitfield", [ @@ -592,15 +445,15 @@ if minecraft:float_range: void if minecraft:dimension: void if minecraft:gamemode: void - if minecraft:time: + if minecraft:time: min: i32 - if minecraft:resource_or_tag: + if minecraft:resource_or_tag: registry: string - if minecraft:resource_or_tag_key: + if minecraft:resource_or_tag_key: registry: string - if minecraft:resource: + if minecraft:resource: registry: string - if minecraft:resource_key: + if minecraft:resource_key: registry: string if minecraft:template_mirror: void if minecraft:template_rotation: void @@ -610,598 +463,8 @@ if 1: string default: void -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: UUID - username: string - properties: []varint - name: string - value: string - signature?: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - -^login.toServer.types: - packet_login_start: - username: string - playerUUID?: UUID - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response - ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - headPitch: i8 - objectData: varint - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: varint - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_multi_block_change: - chunkCoordinates: [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] - suppressLightUpdates: bool - records: varint[]varint - packet_close_window: - windowId: u8 - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: string - packet_window_items: - windowId: u8 - stateId: varint - items: slot[]varint - carriedItem: slot - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - stateId: varint - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_chat_suggestions: - action: varint - entries: string[]varint - packet_custom_payload: - channel: string - data: restBuffer - packet_hide_message: - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - packet_kick_disconnect: - reason: string - packet_profileless_chat: - message: string - type: varint - name: string - target?: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f64 - y: f64 - z: f64 - radius: f32 - affectedBlockOffsets: []varint - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: - windowId: u8 - nbSlots: varint - entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: - x: i32 - z: i32 - heightmaps: nbt - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: chunkBlockEntity[]varint - trustEdges: bool - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: varint - longDistance: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_update_light: - chunkX: varint - chunkZ: varint - trustEdges: bool - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - packet_login: - entityId: i32 - isHardcore: bool - gameMode: u8 - previousGameMode: i8 - worldNames: string[]varint - dimensionCodec: nbt - worldType: string - worldName: string - hashedSeed: i64 - maxPlayers: varint - viewDistance: varint - simulationDistance: varint - reducedDebugInfo: bool - enableRespawnScreen: bool - isDebug: bool - isFlat: bool - death?: - dimensionName: string - location: position - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_trade_list: - windowId: varint - trades: []varint - inputItem1: slot - outputItem: slot - inputItem2: slot - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: - hand: varint - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_player_chat: - senderUuid: UUID - index: varint - signature?: [ - "buffer", - { - "count": 256 - } - ] - plainMessage: string - timestamp: i64 - salt: i64 - previousMessages: previousMessages - unsignedChatContent?: string - filterType: varint - filterTypeMask: filterType ? - if 2: i64[]varint - default: void - type: varint - networkName: string - networkTargetName?: string - packet_end_combat_event: - duration: varint - entityId: i32 - packet_enter_combat_event: - # Empty - packet_death_combat_event: - playerId: varint - entityId: i32 - message: string - packet_player_remove: - players: UUID[]varint - packet_player_info: - ## ClientboundPlayerInfoUpdatePacket.java#L160 - action: ["bitflags", { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name" - ] - }] - data: []varint - uuid: UUID - player: ../action/add_player ? - if true: game_profile - default: void - chatSession: ../action/initialize_chat ? - if true: chat_session - default: void - gamemode: ../action/update_game_mode ? - if true: varint - default: void - listed: ../action/update_listed ? - if true: varint - default: void - latency: ../action/update_latency ? - if true: varint - default: void - displayName: ../action/update_display_name ? - if true: ["option", "string"] - default: void - packet_position: + packet_position: x: f64 y: f64 z: f64 @@ -1209,227 +472,8 @@ pitch: f32 flags: i8 teleportId: varint - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - blastFurnaceOpen: bool - filteringBlastFurnace: bool - smokerBookOpen: bool - filteringSmoker: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: varint - packet_resource_pack_send: - url: string - hash: string - forced: bool - promptMessage?: string - packet_respawn: - dimension: string - worldName: string - hashedSeed: i64 - gamemode: i8 - previousGamemode: u8 - isDebug: bool - isFlat: bool - copyMetadata: bool - death?: - dimensionName: string - location: position - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: - chunkX: varint - chunkZ: varint - packet_update_view_distance: - viewDistance: varint - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - angle: f32 - packet_update_time: - age: i64 - time: i64 - packet_entity_sound_effect: - soundId: varint - soundEvent: soundId ? - if 0: - resource: string - range?: f32 - default: void - soundCategory: soundSource - entityId: varint - volume: f32 - pitch: f32 - seed: i64 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - seed: i64 - packet_system_chat: - content: string - isActionBar: bool - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []varint - name: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_feature_flags: - features: string[]varint - packet_entity_effect: - entityId: varint - effectId: varint - amplifier: i8 - duration: varint - hideParticles: i8 - factorCodec?: nbt - packet_select_advancement_tab: - id?: string - packet_server_data: + + packet_server_data: motd: string iconBytes?: [ "buffer", @@ -1438,17 +482,18 @@ } ] enforcesSecureChat: bool - packet_declare_recipes: + + packet_declare_recipes: recipes: []varint type: string recipeId: string data: type ? - if minecraft:crafting_shapeless: + if minecraft:crafting_shapeless: group: string category: varint ingredients: ingredient[]varint result: slot - if minecraft:crafting_shaped: + if minecraft:crafting_shaped: width: varint height: varint group: string @@ -1475,69 +520,26 @@ if minecraft:blasting: minecraft_smelting_format if minecraft:smoking: minecraft_smelting_format if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: + if minecraft:stonecutting: group: string ingredient: ingredient result: slot - if minecraft:smithing: + if minecraft:smithing: base: ingredient addition: ingredient result: slot - if minecraft:smithing_transform: + if minecraft:smithing_transform: template: ingredient base: ingredient addition: ingredient result: slot - if minecraft:smithing_trim: + if minecraft:smithing_trim: template: ingredient base: ingredient addition: ingredient if minecraft:crafting_decorated_pot: minecraft_simple_recipe_format - packet_tags: - tags: []varint - tagType: string - tags: tags - packet_acknowledge_player_digging: - sequenceId: varint - packet_clear_titles: - reset: bool - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varint - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - packet_action_bar: - text: string - packet_world_border_center: - x: f64 - z: f64 - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varint - packet_world_border_size: - diameter: f64 - packet_world_border_warning_delay: - warningTime: varint - packet_world_border_warning_reach: - warningBlocks: varint - packet_ping: - id: i32 - packet_set_title_subtitle: - text: string - packet_set_title_text: - text: string - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - packet_simulation_distance: - distance: varint - packet_chunk_biomes: + + packet_chunk_biomes: biomes: []varint position: packedChunkPos data: [ @@ -1546,16 +548,19 @@ "countType": "varint" } ] - packet_damage_event: + + packet_damage_event: entityId: varint sourceTypeId: varint sourceCauseId: varint sourceDirectId: varint sourcePosition?: vec3f64 - packet_hurt_animation: + + packet_hurt_animation: entityId: varint yaw: f32 - packet: + + packet: name: varint => 0x00: bundle_delimiter 0x01: spawn_entity @@ -1782,261 +787,7 @@ if tags: packet_tags ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_chat_command: - command: string - timestamp: i64 - salt: i64 - argumentSignatures: []varint - argumentName: string - signature: [ - "buffer", - { - "count": 256 - } - ] - messageCount: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - packet_chat_message: - message: string - timestamp: i64 - salt: i64 - signature?: [ - "buffer", - { - "count": 256 - } - ] - offset: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - packet_set_difficulty: - newDifficulty: u8 - packet_message_acknowledgement: - count: varint - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect?: varint - secondary_effect?: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varint - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - enableTextFiltering: bool - enableServerListing: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - stateId: varint - slot: i16 - mouseButton: i8 - mode: varint - changedSlots: []varint - location: i16 - item: slot - cursorItem: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: - locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - packet_block_dig: - status: varint - location: position - face: i8 - sequence: varint - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_displayed_recipe: - recipeId: string - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - sequence: varint - packet_use_item: - hand: varint - sequence: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet_pong: - id: i32 - packet_chat_session_update: - sessionUUID: UUID - expireTime: i64 - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - signature: [ - "buffer", - { - "countType": "varint" - } - ] - packet: + packet: name: varint => 0x00: teleport_confirm 0x01: query_block_nbt diff --git a/data/pc/1.19/proto.yml b/data/pc/1.19/proto.yml index b0d60b985..4fa2e1092 100644 --- a/data/pc/1.19/proto.yml +++ b/data/pc/1.19/proto.yml @@ -1,67 +1,20 @@ !version: 1.19 +!base: 1.18.2 ^types: - varint: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] + varlong: !delete + particleData: $compareTo ? - if 2: + if 2: blockState: varint - if 3: + if 3: blockState: varint - if 14: + if 14: red: f32 green: f32 blue: f32 scale: f32 - if 15: + if 15: fromRed: f32 fromGreen: f32 fromBlue: f32 @@ -69,13 +22,13 @@ toRed: f32 toGreen: f32 toBlue: f32 - if 25: + if 25: blockState: varint - if 30: + if 30: rotation: f32 - if 39: + if 39: item: slot - if 40: + if 40: positionType: string entityId: positionType ? if minecraft:entity: varint @@ -87,130 +40,11 @@ if minecraft:block: position if minecraft:entity: varint ticks: varint - if 92: + if 92: delayInTicksBeforeShown: varint default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: [ - "option", - "string" - ] - if 6: slot - if 7: bool - if 8: - pitch: f32 - yaw: f32 - roll: f32 - if 9: position - if 10: [ - "option", - "position" - ] - if 11: varint - if 12: [ - "option", - "UUID" - ] - if 13: varint - if 14: nbt - if 15: particle - if 16: - villagerType: varint - villagerProfession: varint - level: varint - if 17: optvarint - if 18: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - minecraft_smelting_format: - group: string - ingredient: ingredient - result: slot - experience: f32 - cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: - _: [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - y: i16 - type: varint - nbtData: optionalNbt - command_node: + + command_node: flags: [ "bitfield", [ @@ -247,9 +81,9 @@ default: void extraNodeData: flags/command_node_type ? if 0: void - if 1: + if 1: name: string - if 2: + if 2: name: string parser: varint => 0: brigadier:bool @@ -302,7 +136,7 @@ 47: minecraft:uuid properties: parser ? if brigadier:bool: void - if brigadier:float: + if brigadier:float: flags: [ "bitfield", [ @@ -329,7 +163,7 @@ max: flags/max_present ? if 1: f32 default: void - if brigadier:double: + if brigadier:double: flags: [ "bitfield", [ @@ -356,7 +190,7 @@ max: flags/max_present ? if 1: f64 default: void - if brigadier:integer: + if brigadier:integer: flags: [ "bitfield", [ @@ -383,7 +217,7 @@ max: flags/max_present ? if 1: i32 default: void - if brigadier:long: + if brigadier:long: flags: [ "bitfield", [ @@ -483,9 +317,9 @@ if minecraft:entity_summon: void if minecraft:dimension: void if minecraft:time: void - if minecraft:resource_or_tag: + if minecraft:resource_or_tag: registry: string - if minecraft:resource: + if minecraft:resource: registry: string if minecraft:template_mirror: void if minecraft:template_rotation: void @@ -494,101 +328,19 @@ if 1: string default: void -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - ^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: + packet_success: uuid: UUID username: string properties: []varint name: string value: string signature?: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request ^login.toServer.types: - packet_login_start: + packet_login_start: username: string - signature?: + signature?: timestamp: i64 publicKey: [ "buffer", @@ -602,7 +354,8 @@ "countType": "varint" } ] - packet_encryption_begin: + + packet_encryption_begin: sharedSecret: [ "buffer", { @@ -611,14 +364,14 @@ ] hasVerifyToken: bool crypto: hasVerifyToken ? - if true: + if true: verifyToken: [ "buffer", { "countType": "varint" } ] - if false: + if false: salt: i64 messageSignature: [ "buffer", @@ -626,21 +379,17 @@ "countType": "varint" } ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response ^play.toClient.types: - packet_spawn_entity: + packet_spawn_entity_living: !delete + + packet_spawn_entity_painting: !delete + + packet_chat: !delete + + packet_sculk_vibration_signal: !delete + + packet_spawn_entity: entityId: varint objectUUID: UUID type: varint @@ -652,151 +401,12 @@ headPitch: i8 objectData: varint velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: varint - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - packet_chat_preview: + + packet_chat_preview: queryId: i32 message?: string - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_multi_block_change: + + packet_multi_block_change: chunkCoordinates: [ "bitfield", [ @@ -819,33 +429,8 @@ ] notTrustEdges: bool records: varint[]varint - packet_close_window: - windowId: u8 - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: string - packet_window_items: - windowId: u8 - stateId: varint - items: slot[]varint - carriedItem: slot - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - stateId: varint - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: + + packet_named_sound_effect: soundName: string soundCategory: varint x: i32 @@ -854,61 +439,8 @@ volume: f32 pitch: f32 seed: i64 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []varint - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: - windowId: u8 - nbSlots: varint - entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: - x: i32 - z: i32 - heightmaps: nbt - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: chunkBlockEntity[]varint - trustEdges: bool - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: + + packet_world_particles: particleId: varint longDistance: bool x: f64 @@ -925,19 +457,8 @@ "compareTo": "particleId" } ] - packet_update_light: - chunkX: varint - chunkZ: varint - trustEdges: bool - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - packet_login: + + packet_login: entityId: i32 isHardcore: bool gameMode: u8 @@ -954,38 +475,11 @@ enableRespawnScreen: bool isDebug: bool isFlat: bool - death?: + death?: dimensionName: string location: position - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_trade_list: + + packet_trade_list: windowId: varint trades: []u8 inputItem1: slot @@ -1002,43 +496,8 @@ experience: varint isRegularVillager: bool canRestock: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: - hand: varint - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_player_chat: + + packet_player_chat: signedChatContent: string unsignedChatContent?: string type: varint @@ -1053,17 +512,9 @@ "countType": "varint" } ] - packet_end_combat_event: - duration: varint - entityId: i32 - packet_enter_combat_event: - # Empty - packet_death_combat_event: - playerId: varint - entityId: i32 - message: string + # MC: ClientboundPlayerInfoPacket - packet_player_info: + packet_player_info: action: varint => - add_player - update_game_mode @@ -1095,40 +546,8 @@ if update_display_name: displayName?: string if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - dismountVehicle: bool - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - blastFurnaceOpen: bool - filteringBlastFurnace: bool - smokerBookOpen: bool - filteringSmoker: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: varint - packet_resource_pack_send: - url: string - hash: string - forced: bool - promptMessage?: string - packet_respawn: + + packet_respawn: dimension: string worldName: string hashedSeed: i64 @@ -1137,144 +556,22 @@ isDebug: bool isFlat: bool copyMetadata: bool - death?: + death?: dimensionName: string location: position - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: - chunkX: varint - chunkZ: varint - packet_update_view_distance: - viewDistance: varint - packet_should_display_chat_preview: + + packet_should_display_chat_preview: should_display_chat_preview: bool - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - angle: f32 - packet_update_time: - age: i64 - time: i64 - packet_entity_sound_effect: + + packet_entity_sound_effect: soundId: varint soundCategory: varint entityId: varint volume: f32 pitch: f32 seed: i64 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: + + packet_sound_effect: soundId: varint soundCategory: varint x: i32 @@ -1283,97 +580,28 @@ volume: f32 pitch: f32 seed: i64 - packet_system_chat: + + packet_system_chat: content: string type: varint - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []varint - name: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: + + packet_entity_effect: entityId: varint effectId: varint amplifier: i8 duration: varint hideParticles: i8 factorCodec?: nbt - packet_select_advancement_tab: - id?: string - packet_server_data: + + packet_server_data: motd?: string icon?: string previewsChat: bool - packet_declare_recipes: - recipes: []varint - type: string - recipeId: string - data: type ? - if minecraft:crafting_shapeless: - group: string - ingredients: ingredient[]varint - result: slot - if minecraft:crafting_shaped: - width: varint - height: varint - group: string - ingredients: []$width - _: ingredient[]$height - result: slot - if minecraft:crafting_special_armordye: void - if minecraft:crafting_special_bookcloning: void - if minecraft:crafting_special_mapcloning: void - if minecraft:crafting_special_mapextending: void - if minecraft:crafting_special_firework_rocket: void - if minecraft:crafting_special_firework_star: void - if minecraft:crafting_special_firework_star_fade: void - if minecraft:crafting_special_repairitem: void - if minecraft:crafting_special_tippedarrow: void - if minecraft:crafting_special_bannerduplicate: void - if minecraft:crafting_special_banneraddpattern: void - if minecraft:crafting_special_shielddecoration: void - if minecraft:crafting_special_shulkerboxcoloring: void - if minecraft:crafting_special_suspiciousstew: void - if minecraft:smelting: minecraft_smelting_format - if minecraft:blasting: minecraft_smelting_format - if minecraft:smoking: minecraft_smelting_format - if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: - group: string - ingredient: ingredient - result: slot - if minecraft:smithing: - base: ingredient - addition: ingredient - result: slot - packet_tags: - tags: []varint - tagType: string - tags: tags - packet_acknowledge_player_digging: + + packet_acknowledge_player_digging: sequenceId: varint - packet_clear_titles: - reset: bool - packet_initialize_world_border: + + packet_initialize_world_border: x: f64 z: f64 oldDiameter: f64 @@ -1382,34 +610,13 @@ portalTeleportBoundary: varint warningBlocks: varint warningTime: varint - packet_action_bar: - text: string - packet_world_border_center: - x: f64 - z: f64 - packet_world_border_lerp_size: + + packet_world_border_lerp_size: oldDiameter: f64 newDiameter: f64 speed: varint - packet_world_border_size: - diameter: f64 - packet_world_border_warning_delay: - warningTime: varint - packet_world_border_warning_reach: - warningBlocks: varint - packet_ping: - id: i32 - packet_set_title_subtitle: - text: string - packet_set_title_text: - text: string - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - packet_simulation_distance: - distance: varint - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -1624,12 +831,9 @@ if tags: packet_tags ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_chat_command: + packet_chat: !delete + + packet_chat_command: command: string timestamp: i64 salt: i64 @@ -1642,7 +846,8 @@ } ] signedPreview: bool - packet_chat_message: + + packet_chat_message: message: string timestamp: i64 salt: i64 @@ -1653,37 +858,16 @@ } ] signedPreview: bool - packet_chat_preview: + + packet_chat_preview: query: i32 message: string - packet_set_difficulty: - newDifficulty: u8 - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: + + packet_set_beacon_effect: primary_effect?: varint secondary_effect?: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: + + packet_update_structure_block: location: position action: varint mode: varint @@ -1700,140 +884,14 @@ integrity: f32 seed: varint flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - enableTextFiltering: bool - enableServerListing: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - stateId: varint - slot: i16 - mouseButton: i8 - mode: varint - changedSlots: []varint - location: i16 - item: slot - cursorItem: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: - locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - packet_block_dig: + + packet_block_dig: status: varint location: position face: i8 sequence: varint - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_displayed_recipe: - recipeId: string - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: + + packet_block_place: hand: varint location: position direction: varint @@ -1842,17 +900,12 @@ cursorZ: f32 insideBlock: bool sequence: varint - packet_use_item: + + packet_use_item: hand: varint sequence: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet_pong: - id: i32 - packet: + + packet: name: varint => 0x00: teleport_confirm 0x01: query_block_nbt diff --git a/data/pc/1.20.2/proto.yml b/data/pc/1.20.2/proto.yml index 14b3ce7e0..8f95ac5e0 100644 --- a/data/pc/1.20.2/proto.yml +++ b/data/pc/1.20.2/proto.yml @@ -1,163 +1,24 @@ !version: 1.20.2 +!base: 1.20 ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native + nbt: !delete + + optionalNbt: !delete + anonymousNbt: native + anonOptionalNbt: native - registryEntryHolder: native - registryEntryHolderSet: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3f: - x: f32 - y: f32 - z: f32 - vec4f: - x: f32 - y: f32 - z: f32 - w: f32 - vec3f64: - x: f64 - y: f64 - z: f64 - vec3i16: - x: i16 - y: i16 - z: i16 - ItemSoundEvent: - soundName: string - fixedRange?: f32 - ItemSoundHolder: ["registryEntryHolder", { - "baseName": "soundId", - "otherwise": { name: "data", type: "ItemSoundEvent" } - }] - slot: + + slot: present: bool _: present ? if false: void - if true: + if true: itemId: varint itemCount: i8 nbtData: anonOptionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - particleData: $compareTo ? - if 2: - blockState: varint - if 3: - blockState: varint - if 14: - red: f32 - green: f32 - blue: f32 - scale: f32 - if 15: - fromRed: f32 - fromGreen: f32 - fromBlue: f32 - scale: f32 - toRed: f32 - toGreen: f32 - toBlue: f32 - if 25: - blockState: varint - if 31: - rotation: f32 - if 40: - item: slot - if 41: - positionType: string - entityId: positionType ? - if minecraft:entity: varint - default: void - entityEyeHeight: positionType ? - if minecraft:entity: varint - default: void - destination: positionType ? - if minecraft:block: position - if minecraft:entity: varint - ticks: varint - if 93: - delayInTicksBeforeShown: varint - default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - soundSource: varint => - 0: master - 1: music - 2: record - 3: weather - 4: block - 5: hostile - 6: neutral - 7: player - 8: ambient - 9: voice - packedChunkPos: - z: i32 - x: i32 - previousMessages: []varint - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void + entityMetadataItem: $compareTo ? if byte: i8 if int: varint @@ -171,7 +32,7 @@ ] if item_stack: slot if boolean: bool - if rotations: + if rotations: pitch: f32 yaw: f32 roll: f32 @@ -189,7 +50,7 @@ if optional_block_state: optvarint if compound_tag: anonymousNbt if particle: particle - if villager_data: + if villager_data: villagerType: varint villagerProfession: varint level: varint @@ -205,82 +66,8 @@ if sniffer_state: varint if vector3: vec3f if quaternion: vec4f - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "byte", - "1": "int", - "2": "long", - "3": "float", - "4": "string", - "5": "component", - "6": "optional_component", - "7": "item_stack", - "8": "boolean", - "9": "rotations", - "10": "block_pos", - "11": "optional_block_pos", - "12": "direction", - "13": "optional_uuid", - "14": "block_state", - "15": "optional_block_state", - "16": "compound_tag", - "17": "particle", - "18": "villager_data", - "19": "optional_unsigned_int", - "20": "pose", - "21": "cat_variant", - "22": "frog_variant", - "23": "optional_global_pos", - "24": "painting_variant", - "25": "sniffer_state", - "26": "vector3", - "27": "quaternion" - } - } - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - minecraft_simple_recipe_format: - category: varint - minecraft_smelting_format: - group: string - category: varint - ingredient: ingredient - result: slot - experience: f32 - cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: + + chunkBlockEntity: _: [ "bitfield", [ @@ -299,431 +86,16 @@ y: i16 type: varint nbtData: anonOptionalNbt - chat_session?: - uuid: UUID - publicKey: - expireTime: i64 - keyBytes: [ - "buffer", - { - "countType": "varint" - } - ] - keySignature: [ - "buffer", - { - "countType": "varint" - } - ] - game_profile: - name: string - properties: []varint - name: string - value: string - signature?: string - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: varint => - 0: brigadier:bool - 1: brigadier:float - 2: brigadier:double - 3: brigadier:integer - 4: brigadier:long - 5: brigadier:string - 6: minecraft:entity - 7: minecraft:game_profile - 8: minecraft:block_pos - 9: minecraft:column_pos - 10: minecraft:vec3 - 11: minecraft:vec2 - 12: minecraft:block_state - 13: minecraft:block_predicate - 14: minecraft:item_stack - 15: minecraft:item_predicate - 16: minecraft:color - 17: minecraft:component - 18: minecraft:message - 19: minecraft:nbt - 20: minecraft:nbt_tag - 21: minecraft:nbt_path - 22: minecraft:objective - 23: minecraft:objective_criteria - 24: minecraft:operation - 25: minecraft:particle - 26: minecraft:angle - 27: minecraft:rotation - 28: minecraft:scoreboard_slot - 29: minecraft:score_holder - 30: minecraft:swizzle - 31: minecraft:team - 32: minecraft:item_slot - 33: minecraft:resource_location - 34: minecraft:function - 35: minecraft:entity_anchor - 36: minecraft:int_range - 37: minecraft:float_range - 38: minecraft:dimension - 39: minecraft:gamemode - 40: minecraft:time - 41: minecraft:resource_or_tag - 42: minecraft:resource_or_tag_key - 43: minecraft:resource - 44: minecraft:resource_key - 45: minecraft:template_mirror - 46: minecraft:template_rotation - 47: minecraft:heightmap - 48: minecraft:uuid - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:dimension: void - if minecraft:gamemode: void - if minecraft:time: - min: i32 - if minecraft:resource_or_tag: - registry: string - if minecraft:resource_or_tag_key: - registry: string - if minecraft:resource: - registry: string - if minecraft:resource_key: - registry: string - if minecraft:template_mirror: void - if minecraft:template_rotation: void - if minecraft:heightmap: void - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: UUID - username: string - properties: []varint - name: string - value: string - signature?: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request ^login.toServer.types: - packet_login_start: + packet_login_start: username: string playerUUID: UUID - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet_login_acknowledged: + + packet_login_acknowledged: # Empty - packet: + + packet: name: varint => 0x00: login_start 0x01: encryption_begin @@ -736,31 +108,40 @@ if login_acknowledged: packet_login_acknowledged ^configuration.toClient.types: - packet_custom_payload: + packet_custom_payload: channel: string data: restBuffer - packet_disconnect: + + packet_disconnect: reason: string - packet_finish_configuration: + + packet_finish_configuration: # Empty - packet_keep_alive: + + packet_keep_alive: keepAliveId: i64 - packet_ping: + + packet_ping: id: i32 - packet_registry_data: + + packet_registry_data: codec: anonymousNbt - packet_resource_pack_send: + + packet_resource_pack_send: url: string hash: string forced: bool promptMessage?: string - packet_feature_flags: + + packet_feature_flags: features: string[]varint - packet_tags: + + packet_tags: tags: []varint tagType: string tags: tags - packet: + + packet: name: varint => 0x00: custom_payload 0x01: disconnect @@ -783,7 +164,7 @@ if tags: packet_tags ^configuration.toServer.types: - packet_settings: + packet_settings: locale: string viewDistance: i8 chatFlags: varint @@ -792,18 +173,24 @@ mainHand: varint enableTextFiltering: bool enableServerListing: bool - packet_custom_payload: + + packet_custom_payload: channel: string data: restBuffer - packet_finish_configuration: + + packet_finish_configuration: # Empty - packet_keep_alive: + + packet_keep_alive: keepAliveId: i64 - packet_pong: + + packet_pong: id: i32 - packet_resource_pack_receive: + + packet_resource_pack_receive: result: varint - packet: + + packet: name: varint => 0x00: settings 0x01: custom_payload @@ -820,39 +207,17 @@ if resource_pack_receive: packet_resource_pack_receive ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - headPitch: i8 - objectData: varint - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: + packet_named_entity_spawn: !delete + + packet_feature_flags: !delete + + packet_advancements: reset: bool advancementMapping: []varint key: string - value: + value: parentId?: string - displayData?: + displayData?: title: string description: string icon: slot @@ -896,173 +261,27 @@ value: []varint criterionIdentifier: string criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: + + packet_tile_entity_data: location: position action: varint nbtData: anonOptionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - packet_chunk_batch_finished: + + packet_chunk_batch_finished: batchSize: varint - packet_chunk_batch_start: + + packet_chunk_batch_start: # Empty - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: + + packet_nbt_query_response: transactionId: varint nbt: anonOptionalNbt - packet_multi_block_change: - chunkCoordinates: [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": true - } - ] - ] - records: varint[]varint - packet_close_window: - windowId: u8 - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: string - packet_window_items: - windowId: u8 - stateId: varint - items: slot[]varint - carriedItem: slot - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - stateId: varint - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_chat_suggestions: - action: varint - entries: string[]varint - packet_custom_payload: - channel: string - data: restBuffer - packet_hide_message: - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - packet_kick_disconnect: - reason: string - packet_profileless_chat: - message: string - type: varint - name: string - target?: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f64 - y: f64 - z: f64 - radius: f32 - affectedBlockOffsets: []varint - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: + + packet_unload_chunk: chunkZ: i32 chunkX: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: - windowId: u8 - nbSlots: varint - entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: + + packet_map_chunk: x: i32 z: i32 heightmaps: anonymousNbt @@ -1081,40 +300,8 @@ _: u8[]varint blockLight: []varint _: u8[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: varint - longDistance: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_update_light: - chunkX: varint - chunkZ: varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - packet_login: + + packet_login: entityId: i32 isHardcore: bool worldNames: string[]varint @@ -1131,188 +318,12 @@ previousGameMode: i8 isDebug: bool isFlat: bool - death?: + death?: dimensionName: string location: position portalCooldown: varint - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_trade_list: - windowId: varint - trades: []varint - inputItem1: slot - outputItem: slot - inputItem2: slot - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: - hand: varint - packet_open_sign_entity: - location: position - isFrontText: bool - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_player_chat: - senderUuid: UUID - index: varint - signature?: [ - "buffer", - { - "count": 256 - } - ] - plainMessage: string - timestamp: i64 - salt: i64 - previousMessages: previousMessages - unsignedChatContent?: string - filterType: varint - filterTypeMask: filterType ? - if 2: i64[]varint - default: void - type: varint - networkName: string - networkTargetName?: string - packet_end_combat_event: - duration: varint - packet_enter_combat_event: - # Empty - packet_death_combat_event: - playerId: varint - message: string - packet_player_remove: - players: UUID[]varint - packet_player_info: - ## ClientboundPlayerInfoUpdatePacket.java#L160 - action: ["bitflags", { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name" - ] - }] - data: []varint - uuid: UUID - player: ../action/add_player ? - if true: game_profile - default: void - chatSession: ../action/initialize_chat ? - if true: chat_session - default: void - gamemode: ../action/update_game_mode ? - if true: varint - default: void - listed: ../action/update_listed ? - if true: varint - default: void - latency: ../action/update_latency ? - if true: varint - default: void - displayName: ../action/update_display_name ? - if true: ["option", "string"] - default: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - blastFurnaceOpen: bool - filteringBlastFurnace: bool - smokerBookOpen: bool - filteringSmoker: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: varint - packet_resource_pack_send: - url: string - hash: string - forced: bool - promptMessage?: string - packet_respawn: + + packet_respawn: dimension: string worldName: string hashedSeed: i64 @@ -1320,320 +331,31 @@ previousGamemode: u8 isDebug: bool isFlat: bool - death?: + death?: dimensionName: string location: position portalCooldown: varint copyMetadata: bool - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: - chunkX: varint - chunkZ: varint - packet_update_view_distance: - viewDistance: varint - packet_scoreboard_display_objective: + + packet_scoreboard_display_objective: position: varint name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - angle: f32 - packet_update_time: - age: i64 - time: i64 - packet_entity_sound_effect: - soundId: varint - soundEvent: soundId ? - if 0: - resource: string - range?: f32 - default: void - soundCategory: soundSource - entityId: varint - volume: f32 - pitch: f32 - seed: i64 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - seed: i64 - packet_system_chat: - content: string - isActionBar: bool - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []varint - name: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: + + packet_entity_effect: entityId: varint effectId: varint amplifier: i8 duration: varint hideParticles: i8 factorCodec?: anonymousNbt - packet_select_advancement_tab: - id?: string - packet_server_data: - motd: string - iconBytes?: [ - "buffer", - { - "countType": "varint" - } - ] - enforcesSecureChat: bool - packet_declare_recipes: - recipes: []varint - type: string - recipeId: string - data: type ? - if minecraft:crafting_shapeless: - group: string - category: varint - ingredients: ingredient[]varint - result: slot - if minecraft:crafting_shaped: - width: varint - height: varint - group: string - category: varint - ingredients: []$width - _: ingredient[]$height - result: slot - showNotification: bool - if minecraft:crafting_special_armordye: minecraft_simple_recipe_format - if minecraft:crafting_special_bookcloning: minecraft_simple_recipe_format - if minecraft:crafting_special_mapcloning: minecraft_simple_recipe_format - if minecraft:crafting_special_mapextending: minecraft_simple_recipe_format - if minecraft:crafting_special_firework_rocket: minecraft_simple_recipe_format - if minecraft:crafting_special_firework_star: minecraft_simple_recipe_format - if minecraft:crafting_special_firework_star_fade: minecraft_simple_recipe_format - if minecraft:crafting_special_repairitem: minecraft_simple_recipe_format - if minecraft:crafting_special_tippedarrow: minecraft_simple_recipe_format - if minecraft:crafting_special_bannerduplicate: minecraft_simple_recipe_format - if minecraft:crafting_special_banneraddpattern: minecraft_simple_recipe_format - if minecraft:crafting_special_shielddecoration: minecraft_simple_recipe_format - if minecraft:crafting_special_shulkerboxcoloring: minecraft_simple_recipe_format - if minecraft:crafting_special_suspiciousstew: minecraft_simple_recipe_format - if minecraft:smelting: minecraft_smelting_format - if minecraft:blasting: minecraft_smelting_format - if minecraft:smoking: minecraft_smelting_format - if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: - group: string - ingredient: ingredient - result: slot - if minecraft:smithing_transform: - template: ingredient - base: ingredient - addition: ingredient - result: slot - if minecraft:smithing_trim: - template: ingredient - base: ingredient - addition: ingredient - if minecraft:crafting_decorated_pot: minecraft_simple_recipe_format - packet_tags: - tags: []varint - tagType: string - tags: tags - packet_acknowledge_player_digging: - sequenceId: varint - packet_clear_titles: - reset: bool - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varint - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - packet_action_bar: - text: string - packet_world_border_center: - x: f64 - z: f64 - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varint - packet_world_border_size: - diameter: f64 - packet_world_border_warning_delay: - warningTime: varint - packet_world_border_warning_reach: - warningBlocks: varint - packet_ping: - id: i32 - packet_ping_response: + + packet_ping_response: id: i64 - packet_set_title_subtitle: - text: string - packet_set_title_text: - text: string - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - packet_simulation_distance: - distance: varint - packet_chunk_biomes: - biomes: []varint - position: packedChunkPos - data: [ - "buffer", - { - "countType": "varint" - } - ] - packet_damage_event: - entityId: varint - sourceTypeId: varint - sourceCauseId: varint - sourceDirectId: varint - sourcePosition?: vec3f64 - packet_hurt_animation: - entityId: varint - yaw: f32 - packet_start_configuration: + + packet_start_configuration: # Empty - packet: + + packet: name: varint => 0x00: bundle_delimiter 0x01: spawn_entity @@ -1864,268 +586,16 @@ if tags: packet_tags ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_chat_command: - command: string - timestamp: i64 - salt: i64 - argumentSignatures: []varint - argumentName: string - signature: [ - "buffer", - { - "count": 256 - } - ] - messageCount: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - packet_chat_message: - message: string - timestamp: i64 - salt: i64 - signature?: [ - "buffer", - { - "count": 256 - } - ] - offset: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - packet_set_difficulty: - newDifficulty: u8 - packet_message_acknowledgement: - count: varint - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect?: varint - secondary_effect?: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varint - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - enableTextFiltering: bool - enableServerListing: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - stateId: varint - slot: i16 - mouseButton: i8 - mode: varint - changedSlots: []varint - location: i16 - item: slot - cursorItem: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: - locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - packet_block_dig: - status: varint - location: position - face: i8 - sequence: varint - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_displayed_recipe: - recipeId: string - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - packet_update_sign: - location: position - isFrontText: bool - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - sequence: varint - packet_use_item: - hand: varint - sequence: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet_pong: - id: i32 - packet_chat_session_update: - sessionUUID: UUID - expireTime: i64 - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - signature: [ - "buffer", - { - "countType": "varint" - } - ] - packet_chunk_batch_received: + packet_chunk_batch_received: chunksPerTick: f32 - packet_configuration_acknowledged: + + packet_configuration_acknowledged: # Empty - packet_ping_request: + + packet_ping_request: id: i64 - packet: + + packet: name: varint => 0x00: teleport_confirm 0x01: query_block_nbt diff --git a/data/pc/1.20.2/protocol.json b/data/pc/1.20.2/protocol.json index ca5144e62..7d18aa19a 100644 --- a/data/pc/1.20.2/protocol.json +++ b/data/pc/1.20.2/protocol.json @@ -1738,300 +1738,6 @@ } } }, - "configuration": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "custom_payload", - "0x01": "disconnect", - "0x02": "finish_configuration", - "0x03": "keep_alive", - "0x04": "ping", - "0x05": "registry_data", - "0x06": "resource_pack_send", - "0x07": "feature_flags", - "0x08": "tags" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "custom_payload": "packet_custom_payload", - "disconnect": "packet_disconnect", - "feature_flags": "packet_feature_flags", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "registry_data": "packet_registry_data", - "resource_pack_send": "packet_resource_pack_send", - "tags": "packet_tags" - } - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "string" - } - ] - ], - "packet_feature_flags": [ - "container", - [ - { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_registry_data": [ - "container", - [ - { - "name": "codec", - "type": "anonymousNbt" - } - ] - ], - "packet_resource_pack_send": [ - "container", - [ - { - "name": "url", - "type": "string" - }, - { - "name": "hash", - "type": "string" - }, - { - "name": "forced", - "type": "bool" - }, - { - "name": "promptMessage", - "type": [ - "option", - "string" - ] - } - ] - ], - "packet_tags": [ - "container", - [ - { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "settings", - "0x01": "custom_payload", - "0x02": "finish_configuration", - "0x03": "keep_alive", - "0x04": "pong", - "0x05": "resource_pack_receive" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "settings": "packet_settings" - } - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_resource_pack_receive": [ - "container", - [ - { - "name": "result", - "type": "varint" - } - ] - ], - "packet_settings": [ - "container", - [ - { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" - }, - { - "name": "enableTextFiltering", - "type": "bool" - }, - { - "name": "enableServerListing", - "type": "bool" - } - ] - ] - } - } - }, "play": { "toClient": { "types": { @@ -5811,1046 +5517,1340 @@ } ] ], - "packet_abilities": [ + "packet_abilities": [ + "container", + [ + { + "name": "flags", + "type": "i8" + } + ] + ], + "packet_advancement_tab": [ + "container", + [ + { + "name": "action", + "type": "varint" + }, + { + "name": "tabId", + "type": [ + "switch", + { + "compareTo": "action", + "fields": { + "0": "string", + "1": "void" + } + } + ] + } + ] + ], + "packet_arm_animation": [ + "container", + [ + { + "name": "hand", + "type": "varint" + } + ] + ], + "packet_block_dig": [ + "container", + [ + { + "name": "status", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "face", + "type": "i8" + }, + { + "name": "sequence", + "type": "varint" + } + ] + ], + "packet_block_place": [ + "container", + [ + { + "name": "hand", + "type": "varint" + }, + { + "name": "location", + "type": "position" + }, + { + "name": "direction", + "type": "varint" + }, + { + "name": "cursorX", + "type": "f32" + }, + { + "name": "cursorY", + "type": "f32" + }, + { + "name": "cursorZ", + "type": "f32" + }, + { + "name": "insideBlock", + "type": "bool" + }, + { + "name": "sequence", + "type": "varint" + } + ] + ], + "packet_chat_command": [ + "container", + [ + { + "name": "command", + "type": "string" + }, + { + "name": "timestamp", + "type": "i64" + }, + { + "name": "salt", + "type": "i64" + }, + { + "name": "argumentSignatures", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "argumentName", + "type": "string" + }, + { + "name": "signature", + "type": [ + "buffer", + { + "count": 256 + } + ] + } + ] + ] + } + ] + }, + { + "name": "messageCount", + "type": "varint" + }, + { + "name": "acknowledged", + "type": [ + "buffer", + { + "count": 3 + } + ] + } + ] + ], + "packet_chat_message": [ + "container", + [ + { + "name": "message", + "type": "string" + }, + { + "name": "timestamp", + "type": "i64" + }, + { + "name": "salt", + "type": "i64" + }, + { + "name": "signature", + "type": [ + "option", + [ + "buffer", + { + "count": 256 + } + ] + ] + }, + { + "name": "offset", + "type": "varint" + }, + { + "name": "acknowledged", + "type": [ + "buffer", + { + "count": 3 + } + ] + } + ] + ], + "packet_chat_session_update": [ + "container", + [ + { + "name": "sessionUUID", + "type": "UUID" + }, + { + "name": "expireTime", + "type": "i64" + }, + { + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "signature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ], + "packet_chunk_batch_received": [ "container", [ { - "name": "flags", + "name": "chunksPerTick", + "type": "f32" + } + ] + ], + "packet_client_command": [ + "container", + [ + { + "name": "actionId", + "type": "varint" + } + ] + ], + "packet_close_window": [ + "container", + [ + { + "name": "windowId", + "type": "u8" + } + ] + ], + "packet_configuration_acknowledged": [ + "container", + [] + ], + "packet_craft_recipe_request": [ + "container", + [ + { + "name": "windowId", "type": "i8" + }, + { + "name": "recipe", + "type": "string" + }, + { + "name": "makeAll", + "type": "bool" } ] ], - "packet_advancement_tab": [ + "packet_custom_payload": [ "container", [ { - "name": "action", + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_displayed_recipe": [ + "container", + [ + { + "name": "recipeId", + "type": "string" + } + ] + ], + "packet_edit_book": [ + "container", + [ + { + "name": "hand", "type": "varint" }, { - "name": "tabId", + "name": "pages", "type": [ - "switch", + "array", { - "compareTo": "action", - "fields": { - "0": "string", - "1": "void" - } + "countType": "varint", + "type": "string" } ] + }, + { + "name": "title", + "type": [ + "option", + "string" + ] } ] ], - "packet_arm_animation": [ + "packet_enchant_item": [ "container", [ { - "name": "hand", - "type": "varint" + "name": "windowId", + "type": "i8" + }, + { + "name": "enchantment", + "type": "i8" } ] ], - "packet_block_dig": [ + "packet_entity_action": [ "container", [ { - "name": "status", + "name": "entityId", "type": "varint" }, { - "name": "location", - "type": "position" - }, - { - "name": "face", - "type": "i8" + "name": "actionId", + "type": "varint" }, { - "name": "sequence", + "name": "jumpBoost", "type": "varint" } ] ], - "packet_block_place": [ + "packet_flying": [ "container", [ { - "name": "hand", - "type": "varint" - }, + "name": "onGround", + "type": "bool" + } + ] + ], + "packet_generate_structure": [ + "container", + [ { "name": "location", "type": "position" }, { - "name": "direction", + "name": "levels", "type": "varint" }, { - "name": "cursorX", - "type": "f32" - }, + "name": "keepJigsaws", + "type": "bool" + } + ] + ], + "packet_held_item_slot": [ + "container", + [ { - "name": "cursorY", + "name": "slotId", + "type": "i16" + } + ] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_lock_difficulty": [ + "container", + [ + { + "name": "locked", + "type": "bool" + } + ] + ], + "packet_look": [ + "container", + [ + { + "name": "yaw", "type": "f32" }, { - "name": "cursorZ", + "name": "pitch", "type": "f32" }, { - "name": "insideBlock", + "name": "onGround", "type": "bool" - }, + } + ] + ], + "packet_message_acknowledgement": [ + "container", + [ { - "name": "sequence", + "name": "count", "type": "varint" } ] ], - "packet_chat_command": [ + "packet_name_item": [ "container", [ { - "name": "command", + "name": "name", "type": "string" - }, - { - "name": "timestamp", - "type": "i64" - }, - { - "name": "salt", - "type": "i64" - }, - { - "name": "argumentSignatures", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "argumentName", - "type": "string" - }, - { - "name": "signature", - "type": [ - "buffer", - { - "count": 256 - } - ] - } - ] - ] - } - ] - }, + } + ] + ], + "packet_pick_item": [ + "container", + [ { - "name": "messageCount", + "name": "slot", "type": "varint" - }, - { - "name": "acknowledged", - "type": [ - "buffer", - { - "count": 3 - } - ] } ] ], - "packet_chat_message": [ + "packet_ping_request": [ + "container", + [ + { + "name": "id", + "type": "i64" + } + ] + ], + "packet_pong": [ "container", [ { - "name": "message", - "type": "string" - }, - { - "name": "timestamp", - "type": "i64" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_position": [ + "container", + [ { - "name": "salt", - "type": "i64" + "name": "x", + "type": "f64" }, { - "name": "signature", - "type": [ - "option", - [ - "buffer", - { - "count": 256 - } - ] - ] + "name": "y", + "type": "f64" }, { - "name": "offset", - "type": "varint" + "name": "z", + "type": "f64" }, { - "name": "acknowledged", - "type": [ - "buffer", - { - "count": 3 - } - ] + "name": "onGround", + "type": "bool" } ] ], - "packet_chat_session_update": [ + "packet_position_look": [ "container", [ { - "name": "sessionUUID", - "type": "UUID" + "name": "x", + "type": "f64" }, { - "name": "expireTime", - "type": "i64" + "name": "y", + "type": "f64" }, { - "name": "publicKey", - "type": [ - "buffer", - { - "countType": "varint" - } - ] + "name": "z", + "type": "f64" }, { - "name": "signature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] - ], - "packet_chunk_batch_received": [ - "container", - [ + "name": "yaw", + "type": "f32" + }, { - "name": "chunksPerTick", + "name": "pitch", "type": "f32" + }, + { + "name": "onGround", + "type": "bool" } ] ], - "packet_client_command": [ + "packet_query_block_nbt": [ "container", [ { - "name": "actionId", + "name": "transactionId", "type": "varint" + }, + { + "name": "location", + "type": "position" } ] ], - "packet_close_window": [ + "packet_query_entity_nbt": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "transactionId", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" } ] ], - "packet_configuration_acknowledged": [ - "container", - [] - ], - "packet_craft_recipe_request": [ + "packet_recipe_book": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "bookId", + "type": "varint" }, { - "name": "recipe", - "type": "string" + "name": "bookOpen", + "type": "bool" }, { - "name": "makeAll", + "name": "filterActive", "type": "bool" } ] ], - "packet_custom_payload": [ + "packet_resource_pack_receive": [ "container", [ { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" + "name": "result", + "type": "varint" } ] ], - "packet_displayed_recipe": [ + "packet_select_trade": [ "container", [ { - "name": "recipeId", - "type": "string" + "name": "slot", + "type": "varint" } ] ], - "packet_edit_book": [ + "packet_set_beacon_effect": [ "container", [ { - "name": "hand", - "type": "varint" - }, - { - "name": "pages", + "name": "primary_effect", "type": [ - "array", - { - "countType": "varint", - "type": "string" - } + "option", + "varint" ] }, { - "name": "title", + "name": "secondary_effect", "type": [ "option", - "string" + "varint" ] } ] ], - "packet_enchant_item": [ + "packet_set_creative_slot": [ "container", [ { - "name": "windowId", - "type": "i8" + "name": "slot", + "type": "i16" }, { - "name": "enchantment", - "type": "i8" + "name": "item", + "type": "slot" } ] ], - "packet_entity_action": [ + "packet_set_difficulty": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "actionId", - "type": "varint" - }, - { - "name": "jumpBoost", - "type": "varint" + "name": "newDifficulty", + "type": "u8" } ] ], - "packet_flying": [ + "packet_settings": [ "container", [ { - "name": "onGround", + "name": "locale", + "type": "string" + }, + { + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", + "type": "varint" + }, + { + "name": "chatColors", "type": "bool" - } - ] - ], - "packet_generate_structure": [ - "container", - [ + }, { - "name": "location", - "type": "position" + "name": "skinParts", + "type": "u8" }, { - "name": "levels", + "name": "mainHand", "type": "varint" }, { - "name": "keepJigsaws", + "name": "enableTextFiltering", "type": "bool" - } - ] - ], - "packet_held_item_slot": [ - "container", - [ + }, { - "name": "slotId", - "type": "i16" + "name": "enableServerListing", + "type": "bool" } ] ], - "packet_keep_alive": [ + "packet_spectate": [ "container", [ { - "name": "keepAliveId", - "type": "i64" + "name": "target", + "type": "UUID" } ] ], - "packet_lock_difficulty": [ + "packet_steer_boat": [ "container", [ { - "name": "locked", + "name": "leftPaddle", + "type": "bool" + }, + { + "name": "rightPaddle", "type": "bool" } ] ], - "packet_look": [ + "packet_steer_vehicle": [ "container", [ { - "name": "yaw", + "name": "sideways", "type": "f32" }, { - "name": "pitch", + "name": "forward", "type": "f32" }, { - "name": "onGround", - "type": "bool" - } - ] - ], - "packet_message_acknowledgement": [ - "container", - [ - { - "name": "count", - "type": "varint" + "name": "jump", + "type": "u8" } ] ], - "packet_name_item": [ + "packet_tab_complete": [ "container", [ { - "name": "name", + "name": "transactionId", + "type": "varint" + }, + { + "name": "text", "type": "string" } ] ], - "packet_pick_item": [ + "packet_teleport_confirm": [ "container", [ { - "name": "slot", + "name": "teleportId", "type": "varint" } ] ], - "packet_ping_request": [ + "packet_update_command_block": [ "container", [ { - "name": "id", - "type": "i64" + "name": "location", + "type": "position" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_pong": [ + "packet_update_command_block_minecart": [ "container", [ { - "name": "id", - "type": "i32" + "name": "entityId", + "type": "varint" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" } ] ], - "packet_position": [ + "packet_update_jigsaw_block": [ "container", [ { - "name": "x", - "type": "f64" + "name": "location", + "type": "position" }, { - "name": "y", - "type": "f64" + "name": "name", + "type": "string" }, { - "name": "z", - "type": "f64" + "name": "target", + "type": "string" }, { - "name": "onGround", - "type": "bool" + "name": "pool", + "type": "string" + }, + { + "name": "finalState", + "type": "string" + }, + { + "name": "jointType", + "type": "string" } ] ], - "packet_position_look": [ + "packet_update_sign": [ "container", [ { - "name": "x", - "type": "f64" + "name": "location", + "type": "position" }, { - "name": "y", - "type": "f64" + "name": "isFrontText", + "type": "bool" }, { - "name": "z", - "type": "f64" + "name": "text1", + "type": "string" }, { - "name": "yaw", - "type": "f32" + "name": "text2", + "type": "string" }, { - "name": "pitch", - "type": "f32" + "name": "text3", + "type": "string" }, { - "name": "onGround", - "type": "bool" + "name": "text4", + "type": "string" } ] ], - "packet_query_block_nbt": [ + "packet_update_structure_block": [ "container", [ - { - "name": "transactionId", - "type": "varint" - }, { "name": "location", "type": "position" - } - ] - ], - "packet_query_entity_nbt": [ - "container", - [ + }, { - "name": "transactionId", + "name": "action", "type": "varint" }, { - "name": "entityId", + "name": "mode", "type": "varint" - } - ] - ], - "packet_recipe_book": [ - "container", - [ + }, { - "name": "bookId", + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", "type": "varint" }, { - "name": "bookOpen", - "type": "bool" + "name": "rotation", + "type": "varint" }, { - "name": "filterActive", - "type": "bool" - } - ] - ], - "packet_resource_pack_receive": [ - "container", - [ + "name": "metadata", + "type": "string" + }, { - "name": "result", + "name": "integrity", + "type": "f32" + }, + { + "name": "seed", "type": "varint" + }, + { + "name": "flags", + "type": "u8" } ] ], - "packet_select_trade": [ + "packet_use_entity": [ "container", [ { - "name": "slot", + "name": "target", "type": "varint" - } - ] - ], - "packet_set_beacon_effect": [ - "container", - [ + }, { - "name": "primary_effect", + "name": "mouse", + "type": "varint" + }, + { + "name": "x", "type": [ - "option", - "varint" + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } ] }, { - "name": "secondary_effect", + "name": "y", "type": [ - "option", - "varint" + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } ] - } - ] - ], - "packet_set_creative_slot": [ - "container", - [ + }, { - "name": "slot", - "type": "i16" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "item", - "type": "slot" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + }, + { + "name": "sneaking", + "type": "bool" } ] ], - "packet_set_difficulty": [ + "packet_use_item": [ "container", [ { - "name": "newDifficulty", - "type": "u8" + "name": "hand", + "type": "varint" + }, + { + "name": "sequence", + "type": "varint" } ] ], - "packet_settings": [ + "packet_vehicle_move": [ "container", [ { - "name": "locale", - "type": "string" + "name": "x", + "type": "f64" }, { - "name": "viewDistance", - "type": "i8" + "name": "y", + "type": "f64" }, { - "name": "chatFlags", - "type": "varint" + "name": "z", + "type": "f64" }, { - "name": "chatColors", - "type": "bool" + "name": "yaw", + "type": "f32" }, { - "name": "skinParts", + "name": "pitch", + "type": "f32" + } + ] + ], + "packet_window_click": [ + "container", + [ + { + "name": "windowId", "type": "u8" }, { - "name": "mainHand", + "name": "stateId", "type": "varint" }, { - "name": "enableTextFiltering", - "type": "bool" + "name": "slot", + "type": "i16" }, { - "name": "enableServerListing", - "type": "bool" - } - ] - ], - "packet_spectate": [ - "container", - [ + "name": "mouseButton", + "type": "i8" + }, { - "name": "target", - "type": "UUID" - } - ] - ], - "packet_steer_boat": [ - "container", - [ + "name": "mode", + "type": "varint" + }, { - "name": "leftPaddle", - "type": "bool" + "name": "changedSlots", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] }, { - "name": "rightPaddle", - "type": "bool" + "name": "cursorItem", + "type": "slot" } ] - ], - "packet_steer_vehicle": [ + ] + } + } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ "container", [ { - "name": "sideways", - "type": "f32" - }, - { - "name": "forward", - "type": "f32" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "custom_payload", + "0x01": "disconnect", + "0x02": "finish_configuration", + "0x03": "keep_alive", + "0x04": "ping", + "0x05": "registry_data", + "0x06": "resource_pack_send", + "0x07": "feature_flags", + "0x08": "tags" + }, + "type": "varint" + } + ] }, { - "name": "jump", - "type": "u8" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "custom_payload": "packet_custom_payload", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "resource_pack_send": "packet_resource_pack_send", + "tags": "packet_tags" + } + } + ] } ] ], - "packet_tab_complete": [ + "packet_custom_payload": [ "container", [ { - "name": "transactionId", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "text", - "type": "string" + "name": "data", + "type": "restBuffer" } ] ], - "packet_teleport_confirm": [ + "packet_disconnect": [ "container", [ { - "name": "teleportId", - "type": "varint" + "name": "reason", + "type": "string" } ] ], - "packet_update_command_block": [ + "packet_feature_flags": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", - "type": "u8" + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "packet_update_command_block_minecart": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "entityId", - "type": "varint" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "track_output", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_update_jigsaw_block": [ + "packet_ping": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "target", - "type": "string" - }, - { - "name": "pool", - "type": "string" - }, - { - "name": "finalState", - "type": "string" - }, - { - "name": "jointType", - "type": "string" + "name": "id", + "type": "i32" } ] ], - "packet_update_sign": [ + "packet_registry_data": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "isFrontText", - "type": "bool" - }, - { - "name": "text1", - "type": "string" - }, - { - "name": "text2", - "type": "string" - }, - { - "name": "text3", - "type": "string" - }, - { - "name": "text4", - "type": "string" + "name": "codec", + "type": "anonymousNbt" } ] ], - "packet_update_structure_block": [ + "packet_resource_pack_send": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", + "name": "url", "type": "string" }, { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", - "type": "varint" - }, - { - "name": "metadata", + "name": "hash", "type": "string" }, { - "name": "integrity", - "type": "f32" - }, - { - "name": "seed", - "type": "varint" + "name": "forced", + "type": "bool" }, { - "name": "flags", - "type": "u8" + "name": "promptMessage", + "type": [ + "option", + "string" + ] } ] ], - "packet_use_entity": [ + "packet_tags": [ "container", [ { - "name": "target", - "type": "varint" - }, - { - "name": "mouse", - "type": "varint" - }, - { - "name": "x", - "type": [ - "switch", - { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } - } - ] - }, - { - "name": "y", + "name": "tags", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] - }, + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "z", + "name": "name", "type": [ - "switch", + "mapper", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "mappings": { + "0x00": "settings", + "0x01": "custom_payload", + "0x02": "finish_configuration", + "0x03": "keep_alive", + "0x04": "pong", + "0x05": "resource_pack_receive" + }, + "type": "varint" } ] }, { - "name": "hand", + "name": "params", "type": [ "switch", { - "compareTo": "mouse", - "default": "void", + "compareTo": "name", "fields": { - "0": "varint", - "2": "varint" + "custom_payload": "packet_custom_payload", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "settings": "packet_settings" } } ] - }, - { - "name": "sneaking", - "type": "bool" } ] ], - "packet_use_item": [ + "packet_custom_payload": [ "container", [ { - "name": "hand", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "sequence", - "type": "varint" + "name": "data", + "type": "restBuffer" } ] ], - "packet_vehicle_move": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_pong": [ + "container", + [ { - "name": "yaw", - "type": "f32" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_resource_pack_receive": [ + "container", + [ { - "name": "pitch", - "type": "f32" + "name": "result", + "type": "varint" } ] ], - "packet_window_click": [ + "packet_settings": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "locale", + "type": "string" }, { - "name": "stateId", + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "slot", - "type": "i16" + "name": "chatColors", + "type": "bool" }, { - "name": "mouseButton", - "type": "i8" + "name": "skinParts", + "type": "u8" }, { - "name": "mode", + "name": "mainHand", "type": "varint" }, { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] + "name": "enableTextFiltering", + "type": "bool" }, { - "name": "cursorItem", - "type": "slot" + "name": "enableServerListing", + "type": "bool" } ] ] diff --git a/data/pc/1.20.3/proto.yml b/data/pc/1.20.3/proto.yml index 7fd0c7629..6be51a0e5 100644 --- a/data/pc/1.20.3/proto.yml +++ b/data/pc/1.20.3/proto.yml @@ -1,72 +1,9 @@ !version: 1.20.3 -!StartDocs: true +!base: 1.20.2 ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - anonymousNbt: native - anonOptionalNbt: native - registryEntryHolder: native - registryEntryHolderSet: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3f: - x: f32 - y: f32 - z: f32 - vec4f: - x: f32 - y: f32 - z: f32 - w: f32 - vec3f64: - x: f64 - y: f64 - z: f64 - vec3i16: - x: i16 - y: i16 - z: i16 - ItemSoundEvent: - soundName: string - fixedRange?: f32 - ItemSoundHolder: ["registryEntryHolder", { - "baseName": "soundId", - "otherwise": { name: "data", type: "ItemSoundEvent" } - }] - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: anonOptionalNbt + particle: !delete + Particle: # See client/net/minecraft/core/particles/ParticleTypes.java type: varint => @@ -179,7 +116,8 @@ - ominous_spawning - raid_omen - trial_omen - data: + data: + particleData: $compareTo ? if 2: blockState: varint @@ -219,51 +157,7 @@ if 96: delayInTicksBeforeShown: varint default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - soundSource: varint => - 0: master - 1: music - 2: record - 3: weather - 4: block - 5: hostile - 6: neutral - 7: player - 8: ambient - 9: voice - packedChunkPos: - z: i32 - x: i32 - previousMessages: []varint - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void + entityMetadataItem: $compareTo ? if byte: i8 if int: varint @@ -311,122 +205,7 @@ if sniffer_state: varint if vector3: vec3f if quaternion: vec4f - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "byte", - "1": "int", - "2": "long", - "3": "float", - "4": "string", - "5": "component", - "6": "optional_component", - "7": "item_stack", - "8": "boolean", - "9": "rotations", - "10": "block_pos", - "11": "optional_block_pos", - "12": "direction", - "13": "optional_uuid", - "14": "block_state", - "15": "optional_block_state", - "16": "compound_tag", - "17": "particle", - "18": "villager_data", - "19": "optional_unsigned_int", - "20": "pose", - "21": "cat_variant", - "22": "frog_variant", - "23": "optional_global_pos", - "24": "painting_variant", - "25": "sniffer_state", - "26": "vector3", - "27": "quaternion" - } - } - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - minecraft_simple_recipe_format: - category: varint - minecraft_smelting_format: - group: string - category: varint - ingredient: ingredient - result: slot - experience: f32 - cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: - _: [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - y: i16 - type: varint - nbtData: anonOptionalNbt - chat_session?: - uuid: UUID - publicKey: - expireTime: i64 - keyBytes: [ - "buffer", - { - "countType": "varint" - } - ] - keySignature: [ - "buffer", - { - "countType": "varint" - } - ] - game_profile: - name: string - properties: []varint - name: string - value: string - signature?: string + command_node: flags: [ "bitfield", @@ -716,57 +495,30 @@ suggestionType: ../flags/has_custom_suggestions ? if 1: string default: void -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping + ^status.toClient.types: # MC: ClientboundStatusResponsePacket packet_server_info: response: string + # MC: ClientboundPongResponsePacket packet_ping: time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping + ^status.toServer.types: # MC: ServerboundStatusRequestPacket packet_ping_start: # Empty + # MC: ServerboundPingRequestPacket packet_ping: time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping + ^login.toClient.types: # MC: ClientboundLoginDisconnectPacket packet_disconnect: reason: string + # MC: ClientboundHelloPacket packet_encryption_begin: serverId: string @@ -782,6 +534,7 @@ "countType": "varint" } ] + # MC: ClientboundGameProfilePacket packet_success: uuid: UUID @@ -790,14 +543,17 @@ name: string value: string signature?: string + # MC: ClientboundLoginCompressionPacket packet_compress: threshold: varint + # MC: ClientboundCustomQueryPacket packet_login_plugin_request: messageId: varint channel: string data: restBuffer + packet: name: varint => - disconnect @@ -811,11 +567,13 @@ if success: packet_success if compress: packet_compress if login_plugin_request: packet_login_plugin_request + ^login.toServer.types: # MC: ServerboundHelloPacket packet_login_start: username: string playerUUID: UUID + # MC: ServerboundKeyPacket packet_encryption_begin: sharedSecret: [ @@ -830,13 +588,16 @@ "countType": "varint" } ] + # MC: ServerboundCustomQueryAnswerPacket packet_login_plugin_response: messageId: varint data?: restBuffer + # MC: ServerboundLoginAcknowledgedPacket packet_login_acknowledged: # Empty + packet: name: varint => - login_start @@ -848,29 +609,39 @@ if encryption_begin: packet_encryption_begin if login_plugin_response: packet_login_plugin_response if login_acknowledged: packet_login_acknowledged + ^configuration.toClient.types: + packet_resource_pack_send: !delete + # MC: ClientboundCustomPayloadPacket packet_custom_payload: channel: string data: restBuffer + # MC: ClientboundDisconnectPacket packet_disconnect: reason: anonymousNbt + # MC: ClientboundFinishConfigurationPacket packet_finish_configuration: # Empty + # MC: ClientboundKeepAlivePacket packet_keep_alive: keepAliveId: i64 + # MC: ClientboundPingPacket packet_ping: id: i32 + # MC: ClientboundRegistryDataPacket packet_registry_data: codec: anonymousNbt + # MC: ClientboundResourcePackPopPacket packet_remove_resource_pack: uuid?: UUID + # MC: ClientboundResourcePackPushPacket packet_add_resource_pack: uuid: UUID @@ -878,14 +649,17 @@ hash: string forced: bool promptMessage?: anonymousNbt + # MC: ClientboundUpdateEnabledFeaturesPacket packet_feature_flags: features: string[]varint + # MC: ClientboundUpdateTagsPacket packet_tags: tags: []varint tagType: string tags: tags + packet: name: varint => - custom_payload @@ -909,6 +683,7 @@ if add_resource_pack: packet_add_resource_pack if feature_flags: packet_feature_flags if tags: packet_tags + ^configuration.toServer.types: # MC: ServerboundClientInformationPacket packet_settings: @@ -920,23 +695,29 @@ mainHand: varint enableTextFiltering: bool enableServerListing: bool + # MC: ServerboundCustomPayloadPacket packet_custom_payload: channel: string data: restBuffer + # MC: ServerboundFinishConfigurationPacket packet_finish_configuration: # Empty + # MC: ServerboundKeepAlivePacket packet_keep_alive: keepAliveId: i64 + # MC: ServerboundPongPacket packet_pong: id: i32 + # MC: ServerboundResourcePackPacket packet_resource_pack_receive: uuid: UUID result: varint + packet: name: varint => - settings @@ -952,7 +733,10 @@ if keep_alive: packet_keep_alive if pong: packet_pong if resource_pack_receive: packet_resource_pack_receive + ^play.toClient.types: + packet_resource_pack_send: !delete + # MC: ClientboundAddEntityPacket packet_spawn_entity: entityId: varint @@ -966,6 +750,7 @@ headPitch: i8 objectData: varint velocity: vec3i16 + # MC: ClientboundAddExperienceOrbPacket packet_spawn_entity_experience_orb: entityId: varint @@ -973,16 +758,19 @@ y: f64 z: f64 count: i16 + # MC: ClientboundAnimatePacket packet_animation: entityId: varint animation: u8 + # MC: ClientboundAwardStatsPacket packet_statistics: entries: []varint categoryId: varint statisticId: varint value: varint + # MC: ClientboundUpdateAdvancementsPacket packet_advancements: reset: bool @@ -1034,26 +822,31 @@ value: []varint criterionIdentifier: string criterionProgress?: i64 + # MC: ClientboundBlockDestructionPacket packet_block_break_animation: entityId: varint location: position destroyStage: i8 + # MC: ClientboundBlockEntityDataPacket packet_tile_entity_data: location: position action: varint nbtData: anonOptionalNbt + # MC: ClientboundBlockEventPacket packet_block_action: location: position byte1: u8 byte2: u8 blockId: varint + # MC: ClientboundBlockUpdatePacket packet_block_change: location: position type: varint + # MC: ClientboundBossEventPacket packet_boss_bar: entityUUID: UUID @@ -1078,16 +871,20 @@ if 0: u8 if 5: u8 default: void + # MC: ClientboundChangeDifficultyPacket packet_difficulty: difficulty: u8 difficultyLocked: bool + # MC: ClientboundChunkBatchFinishedPacket packet_chunk_batch_finished: batchSize: varint + # MC: ClientboundChunkBatchStartPacket packet_chunk_batch_start: # Empty + # MC: ClientboundCommandSuggestionsPacket packet_tab_complete: transactionId: varint @@ -1096,10 +893,12 @@ matches: []varint match: string tooltip?: anonymousNbt + # MC: ClientboundCommandsPacket packet_declare_commands: nodes: command_node[]varint rootIndex: varint + # MC: ClientboundPlayerLookAtPacket packet_face_player: feet_eyes: varint @@ -1113,10 +912,12 @@ entity_feet_eyes: isEntity ? if true: varint default: void + # MC: ClientboundTagQueryPacket packet_nbt_query_response: transactionId: varint nbt: anonOptionalNbt + # MC: ClientboundSectionBlocksUpdatePacket packet_multi_block_change: chunkCoordinates: [ @@ -1140,43 +941,52 @@ ] ] records: varint[]varint + # MC: ClientboundContainerClosePacket packet_close_window: windowId: u8 + # MC: ClientboundOpenScreenPacket packet_open_window: windowId: varint inventoryType: varint windowTitle: anonymousNbt + # MC: ClientboundContainerSetContentPacket packet_window_items: windowId: u8 stateId: varint items: slot[]varint carriedItem: slot + # MC: ClientboundContainerSetDataPacket packet_craft_progress_bar: windowId: u8 property: i16 value: i16 + # MC: ClientboundContainerSetSlotPacket packet_set_slot: windowId: i8 stateId: varint slot: i16 item: slot + # MC: ClientboundCooldownPacket packet_set_cooldown: itemID: varint cooldownTicks: varint + # MC: ClientboundCustomChatCompletionsPacket packet_chat_suggestions: action: varint entries: string[]varint + # MC: ClientboundCustomPayloadPacket packet_custom_payload: channel: string data: restBuffer + # MC: ClientboundDeleteChatPacket packet_hide_message: id: varint @@ -1188,19 +998,23 @@ } ] default: void + # MC: ClientboundDisconnectPacket packet_kick_disconnect: reason: anonymousNbt + # MC: ClientboundDisguisedChatPacket packet_profileless_chat: message: anonymousNbt type: varint name: anonymousNbt target?: anonymousNbt + # MC: ClientboundEntityEventPacket packet_entity_status: entityId: i32 entityStatus: i8 + # MC: ClientboundExplodePacket packet_explosion: x: f64 @@ -1218,22 +1032,27 @@ small_explosion_particle: Particle large_explosion_particle: Particle sound: ItemSoundHolder + # MC: ClientboundForgetLevelChunkPacket packet_unload_chunk: chunkZ: i32 chunkX: i32 + # MC: ClientboundGameEventPacket packet_game_state_change: reason: u8 gameMode: f32 + # MC: ClientboundHorseScreenOpenPacket packet_open_horse_window: windowId: u8 nbSlots: varint entityId: i32 + # MC: ClientboundKeepAlivePacket packet_keep_alive: keepAliveId: i64 + # MC: ClientboundLevelChunkWithLightPacket packet_map_chunk: x: i32 @@ -1254,12 +1073,14 @@ _: u8[]varint blockLight: []varint _: u8[]varint + # MC: ClientboundLevelEventPacket packet_world_event: effectId: i32 location: position data: i32 global: bool + # MC: ClientboundLevelParticlesPacket packet_world_particles: particleId: varint @@ -1278,6 +1099,7 @@ "compareTo": "particleId" } ] + # MC: ClientboundLightUpdatePacket packet_update_light: chunkX: varint @@ -1290,6 +1112,7 @@ _: u8[]varint blockLight: []varint _: u8[]varint + # MC: ClientboundLoginPacket packet_login: entityId: i32 @@ -1312,6 +1135,7 @@ dimensionName: string location: position portalCooldown: varint + # MC: ClientboundMapItemDataPacket packet_map: itemDamage: varint @@ -1341,6 +1165,7 @@ "countType": "varint" } ] + # MC: ClientboundMerchantOffersPacket packet_trade_list: windowId: varint @@ -1359,6 +1184,7 @@ experience: varint isRegularVillager: bool canRestock: bool + # MC: ClientboundMoveEntityPacket.Pos packet_rel_entity_move: entityId: varint @@ -1366,6 +1192,7 @@ dY: i16 dZ: i16 onGround: bool + # MC: ClientboundMoveEntityPacket.PosRot packet_entity_move_look: entityId: varint @@ -1375,12 +1202,14 @@ yaw: i8 pitch: i8 onGround: bool + # MC: ClientboundMoveEntityPacket.Rot packet_entity_look: entityId: varint yaw: i8 pitch: i8 onGround: bool + # MC: ClientboundMoveVehiclePacket packet_vehicle_move: x: f64 @@ -1388,22 +1217,27 @@ z: f64 yaw: f32 pitch: f32 + # MC: ClientboundOpenBookPacket packet_open_book: hand: varint + # MC: ClientboundOpenSignEditorPacket packet_open_sign_entity: location: position isFrontText: bool + # MC: ClientboundPlaceGhostRecipePacket packet_craft_recipe_response: windowId: i8 recipe: string + # MC: ClientboundPlayerAbilitiesPacket packet_abilities: flags: i8 flyingSpeed: f32 walkingSpeed: f32 + # MC: ClientboundPlayerChatPacket packet_player_chat: senderUuid: UUID @@ -1426,19 +1260,24 @@ type: varint networkName: anonymousNbt networkTargetName?: anonymousNbt + # MC: ClientboundPlayerCombatEndPacket packet_end_combat_event: duration: varint + # MC: ClientboundPlayerCombatEnterPacket packet_enter_combat_event: # Empty + # MC: ClientboundPlayerCombatKillPacket packet_death_combat_event: playerId: varint message: anonymousNbt + # MC: ClientboundPlayerInfoRemovePacket packet_player_remove: players: UUID[]varint + # MC: ClientboundPlayerInfoUpdatePacket packet_player_info: ## ClientboundPlayerInfoUpdatePacket.java#L160 @@ -1473,6 +1312,7 @@ displayName: ../action/update_display_name ? if true: ["option", "anonymousNbt"] default: void + # MC: ClientboundPlayerPositionPacket packet_position: x: f64 @@ -1482,6 +1322,7 @@ pitch: f32 flags: i8 teleportId: varint + # MC: ClientboundRecipePacket packet_unlock_recipes: action: varint @@ -1497,20 +1338,25 @@ recipes2: action ? if 0: string[]varint default: void + # MC: ClientboundRemoveEntitiesPacket packet_entity_destroy: entityIds: varint[]varint + # MC: ClientboundRemoveMobEffectPacket packet_remove_entity_effect: entityId: varint effectId: varint + # MC: ClientboundResetScorePacket packet_reset_score: entity_name: string objective_name?: string + # MC: ClientboundResourcePackPopPacket packet_remove_resource_pack: uuid?: UUID + # MC: ClientboundResourcePackPushPacket packet_add_resource_pack: uuid: UUID @@ -1518,6 +1364,7 @@ hash: string forced: bool promptMessage?: anonymousNbt + # MC: ClientboundRespawnPacket packet_respawn: dimension: string @@ -1532,39 +1379,49 @@ location: position portalCooldown: varint copyMetadata: bool + # MC: ClientboundRotateHeadPacket packet_entity_head_rotation: entityId: varint headYaw: i8 + # MC: ClientboundSetCameraPacket packet_camera: cameraId: varint + # MC: ClientboundSetCarriedItemPacket packet_held_item_slot: slot: i8 + # MC: ClientboundSetChunkCacheCenterPacket packet_update_view_position: chunkX: varint chunkZ: varint + # MC: ClientboundSetChunkCacheRadiusPacket packet_update_view_distance: viewDistance: varint + # MC: ClientboundSetDisplayObjectivePacket packet_scoreboard_display_objective: position: varint name: string + # MC: ClientboundSetEntityDataPacket packet_entity_metadata: entityId: varint metadata: entityMetadata + # MC: ClientboundSetEntityLinkPacket packet_attach_entity: entityId: i32 vehicleId: i32 + # MC: ClientboundSetEntityMotionPacket packet_entity_velocity: entityId: varint velocity: vec3i16 + # MC: ClientboundSetEquipmentPacket packet_entity_equipment: entityId: varint @@ -1586,16 +1443,19 @@ ] } ] + # MC: ClientboundSetExperiencePacket packet_experience: experienceBar: f32 level: varint totalExperience: varint + # MC: ClientboundSetHealthPacket packet_update_health: health: f32 food: varint foodSaturation: f32 + # MC: ClientboundSetObjectivePacket packet_scoreboard_objective: name: string @@ -1628,10 +1488,12 @@ if 2: anonymousNbt default: void default: void + # MC: ClientboundSetPassengersPacket packet_set_passengers: entityId: varint passengers: varint[]varint + # MC: ClientboundSetPlayerTeamPacket packet_teams: team: string @@ -1669,6 +1531,7 @@ if 3: string[]varint if 4: string[]varint default: void + # MC: ClientboundSetScorePacket packet_scoreboard_score: itemName: string @@ -1680,14 +1543,17 @@ if 1: anonymousNbt if 2: anonymousNbt default: void + # MC: ClientboundSetDefaultSpawnPositionPacket packet_spawn_position: location: position angle: f32 + # MC: ClientboundSetTimePacket packet_update_time: age: i64 time: i64 + # MC: ClientboundSoundEntityPacket packet_entity_sound_effect: soundId: varint @@ -1701,6 +1567,7 @@ volume: f32 pitch: f32 seed: i64 + # MC: ClientboundStopSoundPacket packet_stop_sound: flags: i8 @@ -1712,6 +1579,7 @@ if 2: string if 3: string default: void + # MC: ClientboundSoundPacket packet_sound_effect: sound: ItemSoundHolder @@ -1722,19 +1590,23 @@ volume: f32 pitch: f32 seed: i64 + # MC: ClientboundSystemChatPacket packet_system_chat: content: anonymousNbt isActionBar: bool + # MC: ClientboundTabListPacket packet_playerlist_header: header: anonymousNbt footer: anonymousNbt + # MC: ClientboundTakeItemEntityPacket packet_collect: collectedEntityId: varint collectorEntityId: varint pickupItemCount: varint + # MC: ClientboundTeleportEntityPacket packet_entity_teleport: entityId: varint @@ -1744,6 +1616,7 @@ yaw: i8 pitch: i8 onGround: bool + # MC: ClientboundUpdateAttributesPacket packet_entity_update_attributes: entityId: varint @@ -1754,6 +1627,7 @@ uuid: UUID amount: f64 operation: i8 + # MC: ClientboundUpdateMobEffectPacket packet_entity_effect: entityId: varint @@ -1762,9 +1636,11 @@ duration: varint hideParticles: i8 factorCodec?: anonymousNbt + # MC: ClientboundSelectAdvancementsTabPacket packet_select_advancement_tab: id?: string + # MC: ClientboundServerDataPacket packet_server_data: motd: anonymousNbt @@ -1775,6 +1651,7 @@ } ] enforcesSecureChat: bool + # MC: ClientboundUpdateRecipesPacket packet_declare_recipes: recipes: []varint @@ -1827,17 +1704,21 @@ base: ingredient addition: ingredient if minecraft:crafting_decorated_pot: minecraft_simple_recipe_format + # MC: ClientboundUpdateTagsPacket packet_tags: tags: []varint tagType: string tags: tags + # MC: ClientboundBlockChangedAckPacket packet_acknowledge_player_digging: sequenceId: varint + # MC: ClientboundClearTitlesPacket packet_clear_titles: reset: bool + # MC: ClientboundInitializeBorderPacket packet_initialize_world_border: x: f64 @@ -1848,47 +1729,60 @@ portalTeleportBoundary: varint warningBlocks: varint warningTime: varint + # MC: ClientboundSetActionBarTextPacket packet_action_bar: text: anonymousNbt + # MC: ClientboundSetBorderCenterPacket packet_world_border_center: x: f64 z: f64 + # MC: ClientboundSetBorderLerpSizePacket packet_world_border_lerp_size: oldDiameter: f64 newDiameter: f64 speed: varint + # MC: ClientboundSetBorderSizePacket packet_world_border_size: diameter: f64 + # MC: ClientboundSetBorderWarningDelayPacket packet_world_border_warning_delay: warningTime: varint + # MC: ClientboundSetBorderWarningDistancePacket packet_world_border_warning_reach: warningBlocks: varint + # MC: ClientboundPingPacket packet_ping: id: i32 + # MC: ClientboundPongResponsePacket packet_ping_response: id: i64 + # MC: ClientboundSetSubtitleTextPacket packet_set_title_subtitle: text: anonymousNbt + # MC: ClientboundSetTitleTextPacket packet_set_title_text: text: anonymousNbt + # MC: ClientboundSetTitlesAnimationPacket packet_set_title_time: fadeIn: i32 stay: i32 fadeOut: i32 + # MC: ClientboundSetSimulationDistancePacket packet_simulation_distance: distance: varint + # MC: ClientboundChunksBiomesPacket packet_chunk_biomes: biomes: []varint @@ -1899,6 +1793,7 @@ "countType": "varint" } ] + # MC: ClientboundDamageEventPacket packet_damage_event: entityId: varint @@ -1906,20 +1801,25 @@ sourceCauseId: varint sourceDirectId: varint sourcePosition?: vec3f64 + # MC: ClientboundHurtAnimationPacket packet_hurt_animation: entityId: varint yaw: f32 + # MC: ClientboundStartConfigurationPacket packet_start_configuration: # Empty + # MC: ClientboundTickingStatePacket packet_set_ticking_state: tick_rate: f32 is_frozen: bool + # MC: ClientboundTickingStepPacket packet_step_tick: tick_steps: varint + packet: name: varint => - bundle_delimiter @@ -2157,14 +2057,17 @@ if tags: packet_tags if set_ticking_state: packet_set_ticking_state if step_tick: packet_step_tick + ^play.toServer.types: # MC: ServerboundAcceptTeleportationPacket packet_teleport_confirm: teleportId: varint + # MC: ServerboundBlockEntityTagQuery packet_query_block_nbt: transactionId: varint location: position + # MC: ServerboundChatCommandPacket packet_chat_command: command: string @@ -2185,6 +2088,7 @@ "count": 3 } ] + # MC: ServerboundChatPacket packet_chat_message: message: string @@ -2203,45 +2107,56 @@ "count": 3 } ] + # MC: ServerboundChangeDifficultyPacket packet_set_difficulty: newDifficulty: u8 + # MC: ServerboundChatAckPacket packet_message_acknowledgement: count: varint + # MC: ServerboundEditBookPacket packet_edit_book: hand: varint pages: string[]varint title?: string + # MC: ServerboundEntityTagQuery packet_query_entity_nbt: transactionId: varint entityId: varint + # MC: ServerboundPickItemPacket packet_pick_item: slot: varint + # MC: ServerboundRenameItemPacket packet_name_item: name: string + # MC: ServerboundSelectTradePacket packet_select_trade: slot: varint + # MC: ServerboundSetBeaconPacket packet_set_beacon_effect: primary_effect?: varint secondary_effect?: varint + # MC: ServerboundSetCommandBlockPacket packet_update_command_block: location: position command: string mode: varint flags: u8 + # MC: ServerboundSetCommandMinecartPacket packet_update_command_block_minecart: entityId: varint command: string track_output: bool + # MC: ServerboundSetStructureBlockPacket packet_update_structure_block: location: position @@ -2260,13 +2175,16 @@ integrity: f32 seed: varint flags: u8 + # MC: ServerboundCommandSuggestionPacket packet_tab_complete: transactionId: varint text: string + # MC: ServerboundClientCommandPacket packet_client_command: actionId: varint + # MC: ServerboundClientInformationPacket packet_settings: locale: string @@ -2277,10 +2195,12 @@ mainHand: varint enableTextFiltering: bool enableServerListing: bool + # MC: ServerboundContainerButtonClickPacket packet_enchant_item: windowId: i8 enchantment: i8 + # MC: ServerboundContainerClickPacket packet_window_click: windowId: u8 @@ -2292,13 +2212,16 @@ location: i16 item: slot cursorItem: slot + # MC: ServerboundContainerClosePacket packet_close_window: windowId: u8 + # MC: ServerboundCustomPayloadPacket packet_custom_payload: channel: string data: restBuffer + # MC: ServerboundInteractPacket packet_use_entity: target: varint @@ -2317,23 +2240,28 @@ if 2: varint default: void sneaking: bool + # MC: ServerboundJigsawGeneratePacket packet_generate_structure: location: position levels: varint keepJigsaws: bool + # MC: ServerboundKeepAlivePacket packet_keep_alive: keepAliveId: i64 + # MC: ServerboundLockDifficultyPacket packet_lock_difficulty: locked: bool + # MC: ServerboundMovePlayerPacket.Pos packet_position: x: f64 y: f64 z: f64 onGround: bool + # MC: ServerboundMovePlayerPacket.PosRot packet_position_look: x: f64 @@ -2342,14 +2270,17 @@ yaw: f32 pitch: f32 onGround: bool + # MC: ServerboundMovePlayerPacket.Rot packet_look: yaw: f32 pitch: f32 onGround: bool + # MC: ServerboundMovePlayerPacket.StatusOnly packet_flying: onGround: bool + # MC: ServerboundMoveVehiclePacket packet_vehicle_move: x: f64 @@ -2357,53 +2288,65 @@ z: f64 yaw: f32 pitch: f32 + # MC: ServerboundPaddleBoatPacket packet_steer_boat: leftPaddle: bool rightPaddle: bool + # MC: ServerboundPlaceRecipePacket packet_craft_recipe_request: windowId: i8 recipe: string makeAll: bool + # MC: ServerboundPlayerAbilitiesPacket packet_abilities: flags: i8 + # MC: ServerboundPlayerActionPacket packet_block_dig: status: varint location: position face: i8 sequence: varint + # MC: ServerboundPlayerCommandPacket packet_entity_action: entityId: varint actionId: varint jumpBoost: varint + # MC: ServerboundPlayerInputPacket packet_steer_vehicle: sideways: f32 forward: f32 jump: u8 + # MC: ServerboundRecipeBookSeenRecipePacket packet_displayed_recipe: recipeId: string + # MC: ServerboundRecipeBookChangeSettingsPacket packet_recipe_book: bookId: varint bookOpen: bool filterActive: bool + # MC: ServerboundResourcePackPacket packet_resource_pack_receive: uuid: UUID result: varint + # MC: ServerboundSetCarriedItemPacket packet_held_item_slot: slotId: i16 + # MC: ServerboundSetCreativeModeSlotPacket packet_set_creative_slot: slot: i16 item: slot + # MC: ServerboundSetJigsawBlockPacket packet_update_jigsaw_block: location: position @@ -2414,6 +2357,7 @@ jointType: string selection_priority: varint placement_priority: varint + # MC: ServerboundSignUpdatePacket packet_update_sign: location: position @@ -2422,12 +2366,15 @@ text2: string text3: string text4: string + # MC: ServerboundSwingPacket packet_arm_animation: hand: varint + # MC: ServerboundTeleportToEntityPacket packet_spectate: target: UUID + # MC: ServerboundUseItemOnPacket packet_block_place: hand: varint @@ -2438,19 +2385,23 @@ cursorZ: f32 insideBlock: bool sequence: varint + # MC: ServerboundUseItemPacket packet_use_item: hand: varint sequence: varint + # MC: ServerboundSeenAdvancementsPacket packet_advancement_tab: action: varint tabId: action ? if 0: string if 1: void + # MC: ServerboundPongPacket packet_pong: id: i32 + # MC: ServerboundChatSessionUpdatePacket packet_chat_session_update: sessionUUID: UUID @@ -2467,20 +2418,25 @@ "countType": "varint" } ] + # MC: ServerboundChunkBatchReceivedPacket packet_chunk_batch_received: chunksPerTick: f32 + # MC: ServerboundConfigurationAcknowledgedPacket packet_configuration_acknowledged: # Empty + # MC: ServerboundPingRequestPacket packet_ping_request: id: i64 + # MC: ServerboundContainerSlotStateChangedPacket packet_set_slot_state: slot_id: varint window_id: varint state: bool + packet: name: varint => - teleport_confirm diff --git a/data/pc/1.20.3/protocol.json b/data/pc/1.20.3/protocol.json index 2e1455550..bd033484e 100644 --- a/data/pc/1.20.3/protocol.json +++ b/data/pc/1.20.3/protocol.json @@ -1846,322 +1846,6 @@ } } }, - "configuration": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "custom_payload", - "0x01": "disconnect", - "0x02": "finish_configuration", - "0x03": "keep_alive", - "0x04": "ping", - "0x05": "registry_data", - "0x06": "remove_resource_pack", - "0x07": "add_resource_pack", - "0x08": "feature_flags", - "0x09": "tags" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "add_resource_pack": "packet_add_resource_pack", - "custom_payload": "packet_custom_payload", - "disconnect": "packet_disconnect", - "feature_flags": "packet_feature_flags", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_remove_resource_pack", - "tags": "packet_tags" - } - } - ] - } - ] - ], - "packet_add_resource_pack": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "url", - "type": "string" - }, - { - "name": "hash", - "type": "string" - }, - { - "name": "forced", - "type": "bool" - }, - { - "name": "promptMessage", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "packet_feature_flags": [ - "container", - [ - { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_registry_data": [ - "container", - [ - { - "name": "codec", - "type": "anonymousNbt" - } - ] - ], - "packet_remove_resource_pack": [ - "container", - [ - { - "name": "uuid", - "type": [ - "option", - "UUID" - ] - } - ] - ], - "packet_tags": [ - "container", - [ - { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "settings", - "0x01": "custom_payload", - "0x02": "finish_configuration", - "0x03": "keep_alive", - "0x04": "pong", - "0x05": "resource_pack_receive" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "settings": "packet_settings" - } - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_resource_pack_receive": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "result", - "type": "varint" - } - ] - ], - "packet_settings": [ - "container", - [ - { - "name": "locale", - "type": "string" - }, - { - "name": "viewDistance", - "type": "i8" - }, - { - "name": "chatFlags", - "type": "varint" - }, - { - "name": "chatColors", - "type": "bool" - }, - { - "name": "skinParts", - "type": "u8" - }, - { - "name": "mainHand", - "type": "varint" - }, - { - "name": "enableTextFiltering", - "type": "bool" - }, - { - "name": "enableServerListing", - "type": "bool" - } - ] - ] - } - } - }, "play": { "toClient": { "types": { @@ -6838,11 +6522,163 @@ "type": "position" }, { - "name": "command", - "type": "string" + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] + ], + "packet_update_command_block_minecart": [ + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" + } + ] + ], + "packet_update_jigsaw_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "target", + "type": "string" + }, + { + "name": "pool", + "type": "string" + }, + { + "name": "finalState", + "type": "string" + }, + { + "name": "jointType", + "type": "string" + }, + { + "name": "selection_priority", + "type": "varint" + }, + { + "name": "placement_priority", + "type": "varint" + } + ] + ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "metadata", + "type": "string" + }, + { + "name": "integrity", + "type": "f32" }, { - "name": "mode", + "name": "seed", "type": "varint" }, { @@ -6851,314 +6687,478 @@ } ] ], - "packet_update_command_block_minecart": [ + "packet_use_entity": [ "container", [ { - "name": "entityId", + "name": "target", "type": "varint" }, { - "name": "command", - "type": "string" - }, - { - "name": "track_output", - "type": "bool" - } - ] - ], - "packet_update_jigsaw_block": [ - "container", - [ - { - "name": "location", - "type": "position" + "name": "mouse", + "type": "varint" }, { - "name": "name", - "type": "string" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "target", - "type": "string" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "pool", - "type": "string" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "finalState", - "type": "string" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "jointType", - "type": "string" - }, + "name": "sneaking", + "type": "bool" + } + ] + ], + "packet_use_item": [ + "container", + [ { - "name": "selection_priority", + "name": "hand", "type": "varint" }, { - "name": "placement_priority", + "name": "sequence", "type": "varint" } ] ], - "packet_update_sign": [ + "packet_vehicle_move": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "isFrontText", - "type": "bool" + "name": "x", + "type": "f64" }, { - "name": "text1", - "type": "string" + "name": "y", + "type": "f64" }, { - "name": "text2", - "type": "string" + "name": "z", + "type": "f64" }, { - "name": "text3", - "type": "string" + "name": "yaw", + "type": "f32" }, { - "name": "text4", - "type": "string" + "name": "pitch", + "type": "f32" } ] ], - "packet_update_structure_block": [ + "packet_window_click": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "windowId", + "type": "u8" }, { - "name": "mode", + "name": "stateId", "type": "varint" }, { - "name": "name", - "type": "string" + "name": "slot", + "type": "i16" }, { - "name": "offset_x", + "name": "mouseButton", "type": "i8" }, { - "name": "offset_y", - "type": "i8" + "name": "mode", + "type": "varint" }, { - "name": "offset_z", - "type": "i8" + "name": "changedSlots", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] }, { - "name": "size_x", - "type": "i8" + "name": "cursorItem", + "type": "slot" + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "custom_payload", + "0x01": "disconnect", + "0x02": "finish_configuration", + "0x03": "keep_alive", + "0x04": "ping", + "0x05": "registry_data", + "0x06": "remove_resource_pack", + "0x07": "add_resource_pack", + "0x08": "feature_flags", + "0x09": "tags" + }, + "type": "varint" + } + ] }, { - "name": "size_y", - "type": "i8" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "add_resource_pack": "packet_add_resource_pack", + "custom_payload": "packet_custom_payload", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_remove_resource_pack", + "tags": "packet_tags" + } + } + ] + } + ] + ], + "packet_add_resource_pack": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" }, { - "name": "size_z", - "type": "i8" + "name": "url", + "type": "string" }, { - "name": "mirror", - "type": "varint" + "name": "hash", + "type": "string" }, { - "name": "rotation", - "type": "varint" + "name": "forced", + "type": "bool" }, { - "name": "metadata", + "name": "promptMessage", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", "type": "string" }, { - "name": "integrity", - "type": "f32" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_disconnect": [ + "container", + [ { - "name": "seed", - "type": "varint" - }, + "name": "reason", + "type": "anonymousNbt" + } + ] + ], + "packet_feature_flags": [ + "container", + [ { - "name": "flags", - "type": "u8" + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] } ] ], - "packet_use_entity": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "target", - "type": "varint" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_ping": [ + "container", + [ { - "name": "mouse", - "type": "varint" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_registry_data": [ + "container", + [ { - "name": "x", + "name": "codec", + "type": "anonymousNbt" + } + ] + ], + "packet_remove_resource_pack": [ + "container", + [ + { + "name": "uuid", "type": [ - "switch", - { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } - } + "option", + "UUID" ] - }, + } + ] + ], + "packet_tags": [ + "container", + [ { - "name": "y", + "name": "tags", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] - }, + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "z", + "name": "name", "type": [ - "switch", + "mapper", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "mappings": { + "0x00": "settings", + "0x01": "custom_payload", + "0x02": "finish_configuration", + "0x03": "keep_alive", + "0x04": "pong", + "0x05": "resource_pack_receive" + }, + "type": "varint" } ] }, { - "name": "hand", + "name": "params", "type": [ "switch", { - "compareTo": "mouse", - "default": "void", + "compareTo": "name", "fields": { - "0": "varint", - "2": "varint" + "custom_payload": "packet_custom_payload", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "settings": "packet_settings" } } ] - }, - { - "name": "sneaking", - "type": "bool" } ] ], - "packet_use_item": [ + "packet_custom_payload": [ "container", [ { - "name": "hand", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "sequence", - "type": "varint" + "name": "data", + "type": "restBuffer" } ] ], - "packet_vehicle_move": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_pong": [ + "container", + [ { - "name": "z", - "type": "f64" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_resource_pack_receive": [ + "container", + [ { - "name": "yaw", - "type": "f32" + "name": "uuid", + "type": "UUID" }, { - "name": "pitch", - "type": "f32" + "name": "result", + "type": "varint" } ] ], - "packet_window_click": [ + "packet_settings": [ "container", [ { - "name": "windowId", - "type": "u8" + "name": "locale", + "type": "string" }, { - "name": "stateId", + "name": "viewDistance", + "type": "i8" + }, + { + "name": "chatFlags", "type": "varint" }, { - "name": "slot", - "type": "i16" + "name": "chatColors", + "type": "bool" }, { - "name": "mouseButton", - "type": "i8" + "name": "skinParts", + "type": "u8" }, { - "name": "mode", + "name": "mainHand", "type": "varint" }, { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] + "name": "enableTextFiltering", + "type": "bool" }, { - "name": "cursorItem", - "type": "slot" + "name": "enableServerListing", + "type": "bool" } ] ] diff --git a/data/pc/1.20.5/proto.yml b/data/pc/1.20.5/proto.yml index 70baf3762..7b78ab51d 100644 --- a/data/pc/1.20.5/proto.yml +++ b/data/pc/1.20.5/proto.yml @@ -1,62 +1,20 @@ !version: 1.20.5 -!StartDocs: true +!base: 1.20.3 ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - anonymousNbt: native - anonOptionalNbt: native - registryEntryHolder: native - registryEntryHolderSet: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3f: - x: f32 - y: f32 - z: f32 - vec4f: - x: f32 - y: f32 - z: f32 - w: f32 - vec3f64: - x: f64 - y: f64 - z: f64 - vec3i16: - x: i16 - y: i16 - z: i16 + slot: !delete + + particleData: !delete + + entityMetadataItem: !delete + IDSet: ["registryEntryHolderSet", { "base": { name: "name", type: "string" }, "otherwise": { name: "ids", type: "varint" } }] + ContainerID: u8 + SlotComponentType: varint => - custom_data - max_stack_size @@ -170,7 +128,7 @@ if creative_slot_lock: void if enchantment_glint_override: bool if intangible_projectile: anonymousNbt - if food: + if food: nutrition: varint # How much saturation will be given after consuming the item. saturationModifier: f32 @@ -288,14 +246,6 @@ if lock: anonymousNbt if container_loot: anonymousNbt - ItemSoundEvent: - soundName: string - fixedRange?: f32 - ItemSoundHolder: ["registryEntryHolder", { - "baseName": "soundId", - "otherwise": { name: "data", type: "ItemSoundEvent" } - }] - ItemFireworkExplosion: shape: varint => - small_ball @@ -334,7 +284,6 @@ minValue: string maxValue: string - ItemBlockPredicate: blockSet?: ["registryEntryHolderSet", { "base": { name: "name", type: "string" }, @@ -347,6 +296,7 @@ # The raw text of the page. TextComponent, max 1024 characters. content: string filteredContent?: string + ItemWrittenBookPage: content: anonymousNbt filteredContent: anonOptionalNbt @@ -374,6 +324,7 @@ BannerPattern: assetId: string translationKey: string + BannerPatternLayer: pattern: ["registryEntryHolder", { "baseName": "patternId", "otherwise": { "name": "data", "type": "BannerPattern" } }] colorId: varint @@ -546,51 +497,9 @@ entityId: varint entityEyeHeight: f32 ticks: varint + ingredient: Slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - soundSource: varint => - 0: master - 1: music - 2: record - 3: weather - 4: block - 5: hostile - 6: neutral - 7: player - 8: ambient - 9: voice - packedChunkPos: - z: i32 - x: i32 - previousMessages: []varint - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void + entityMetadataEntry: key: u8 type: varint => @@ -669,12 +578,14 @@ if armadillo_state: varint if vector3: vec3f if quaternion: vec4f + EntityMetadataPaintingVariant: width: i32 height: i32 assetId: string title?: anonymousNbt author?: anonymousNbt + EntityMetadataWolfVariant: wildTexture: string tameTexture: string @@ -682,8 +593,7 @@ biome: IDSet entityMetadata: ["entityMetadataLoop", { "endVal": 255, "type": "entityMetadataEntry" }] - minecraft_simple_recipe_format: - category: varint + minecraft_smelting_format: group: string category: varint @@ -691,50 +601,7 @@ result: Slot experience: f32 cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: - _: [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - y: i16 - type: varint - nbtData: anonOptionalNbt - chat_session?: - uuid: UUID - publicKey: - expireTime: i64 - keyBytes: [ - "buffer", - { - "countType": "varint" - } - ] - keySignature: [ - "buffer", - { - "countType": "varint" - } - ] - game_profile: - name: string - properties: []varint - name: string - value: string - signature?: string + command_node: flags: [ "bitfield", @@ -1028,6 +895,7 @@ suggestionType: ../flags/has_custom_suggestions ? if 1: string default: void + # # Shared Packets # These are packets that are shared between multiple states. # They are defined here to avoid duplication. @@ -1042,21 +910,26 @@ mainHand: varint enableTextFiltering: bool enableServerListing: bool + # MC: ClientboundCookieRequestPacket packet_common_cookie_request: cookie: string + # MC: ClientboundStoreCookiePacket packet_common_store_cookie: key: string value: ByteArray + # MC: ClientboundTransferPacket packet_common_transfer: host: string port: varint + # MC: ServerboundCookieResponsePacket packet_common_cookie_response: key: string value?: ByteArray + # MC: ServerboundSelectKnownPacks # MC: ClientboundSelectKnownPacks packet_common_select_known_packs: @@ -1064,9 +937,11 @@ namespace: string id: string version: string + # MC: ClientboundResourcePackPopPacket packet_common_remove_resource_pack: uuid?: UUID + # MC: ClientboundResourcePackPushPacket packet_common_add_resource_pack: uuid: UUID @@ -1075,57 +950,7 @@ forced: bool promptMessage?: anonymousNbt -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping -^status.toClient.types: - # MC: ClientboundStatusResponsePacket - packet_server_info: - response: string - # MC: ClientboundPongResponsePacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping -^status.toServer.types: - # MC: ServerboundStatusRequestPacket - packet_ping_start: - # Empty - # MC: ServerboundPingRequestPacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping ^login.toClient.types: - # MC: ClientboundLoginDisconnectPacket - packet_disconnect: - reason: string # MC: ClientboundHelloPacket packet_encryption_begin: serverId: string @@ -1142,6 +967,7 @@ } ] shouldAuthenticate: bool + # MC: ClientboundGameProfilePacket packet_success: uuid: UUID @@ -1151,14 +977,7 @@ value: string signature?: string strictErrorHandling: bool - # MC: ClientboundLoginCompressionPacket - packet_compress: - threshold: varint - # MC: ClientboundCustomQueryPacket - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer + ## (Cookie Request is Common) ## packet: name: varint => @@ -1175,32 +994,8 @@ if compress: packet_compress if login_plugin_request: packet_login_plugin_request if cookie_request: packet_common_cookie_request + ^login.toServer.types: - # MC: ServerboundHelloPacket - packet_login_start: - username: string - playerUUID: UUID - # MC: ServerboundKeyPacket - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ServerboundCustomQueryAnswerPacket - packet_login_plugin_response: - messageId: varint - data?: restBuffer - # MC: ServerboundLoginAcknowledgedPacket - packet_login_acknowledged: - # Empty ## (Cookie Response is Common) ## packet: name: varint => @@ -1215,27 +1010,22 @@ if login_plugin_response: packet_login_plugin_response if login_acknowledged: packet_login_acknowledged if cookie_response: packet_common_cookie_response + ^configuration.toClient.types: + packet_remove_resource_pack: !delete + + packet_add_resource_pack: !delete + ## (Cookie Request is common) # MC: ClientboundCustomPayloadPacket packet_custom_payload: channel: string data: restBuffer - # MC: ClientboundDisconnectPacket - packet_disconnect: - reason: anonymousNbt - # MC: ClientboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundPingPacket - packet_ping: - id: i32 + # MC: ClientboundResetChatPacket packet_reset_chat: # Empty + # MC: ClientboundRegistryDataPacket packet_registry_data: # The server can send multiple registries @@ -1243,15 +1033,12 @@ entries: []varint key: string value?: anonymousNbt + ## (Store cookie and Transfer are Common) ## # MC: ClientboundUpdateEnabledFeaturesPacket packet_feature_flags: features: string[]varint - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags + ## (Select known packs is common) packet: name: varint => @@ -1286,26 +1073,17 @@ if feature_flags: packet_feature_flags if tags: packet_tags if select_known_packs: packet_common_select_known_packs + ^configuration.toServer.types: + packet_settings: !delete + ## (Settings is Common) ## ## (Cookie Response is Common) ## # MC: ServerboundCustomPayloadPacket packet_custom_payload: channel: string data: restBuffer - # MC: ServerboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint + packet: name: varint => - settings @@ -1325,7 +1103,12 @@ if pong: packet_pong if resource_pack_receive: packet_resource_pack_receive if select_known_packs: packet_common_select_known_packs + ^play.toClient.types: + packet_remove_resource_pack: !delete + + packet_add_resource_pack: !delete + # World state information for spawn and respawn packets SpawnInfo: dimension: varint @@ -1344,171 +1127,46 @@ location: position portalCooldown: varint - # MC: ClientboundAddEntityPacket - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - headPitch: i8 - objectData: varint - velocity: vec3i16 - # MC: ClientboundAddExperienceOrbPacket - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - # MC: ClientboundAnimatePacket - packet_animation: - entityId: varint - animation: u8 - # MC: ClientboundAwardStatsPacket - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - # MC: ClientboundBlockChangedAckPacket - packet_acknowledge_player_digging: - sequenceId: varint - # MC: ClientboundBlockDestructionPacket - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - # MC: ClientboundBlockEntityDataPacket - packet_tile_entity_data: - location: position - action: varint - nbtData: anonOptionalNbt - # MC: ClientboundBlockEventPacket - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - # MC: ClientboundBlockUpdatePacket - packet_block_change: - location: position - type: varint - # MC: ClientboundBossEventPacket - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: anonymousNbt - if 3: anonymousNbt - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - # MC: ClientboundChangeDifficultyPacket - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - # MC: ClientboundChunkBatchFinishedPacket - packet_chunk_batch_finished: - batchSize: varint - # MC: ClientboundChunkBatchStartPacket - packet_chunk_batch_start: - # Empty # MC: ClientboundChunksBiomesPacket packet_chunk_biomes: biomes: []varint position: packedChunkPos data: ByteArray - # MC: ClientboundClearTitlesPacket - packet_clear_titles: - reset: bool - # MC: ClientboundCommandSuggestionsPacket - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: anonymousNbt - # MC: ClientboundCommandsPacket - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint + # MC: ClientboundContainerClosePacket packet_close_window: windowId: ContainerID + # MC: ClientboundContainerSetContentPacket packet_window_items: windowId: ContainerID stateId: varint items: Slot[]varint carriedItem: Slot + # MC: ClientboundContainerSetDataPacket packet_craft_progress_bar: windowId: ContainerID property: i16 value: i16 + # MC: ClientboundContainerSetSlotPacket packet_set_slot: windowId: ContainerID stateId: varint slot: i16 item: Slot + ## (Cookie Request is Common) # MC: ClientboundCooldownPacket packet_set_cooldown: itemID: varint cooldownTicks: varint - # MC: ClientboundCustomChatCompletionsPacket - packet_chat_suggestions: - action: varint - entries: string[]varint - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDamageEventPacket - packet_damage_event: - entityId: varint - sourceTypeId: varint - sourceCauseId: varint - sourceDirectId: varint - sourcePosition?: vec3f64 + # MC: ClientboundDebugSamplePacket packet_debug_sample: sample: i64[]varint type: varint - # MC: ClientboundDeleteChatPacket - packet_hide_message: - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - # MC: ClientboundDisconnectPacket - packet_kick_disconnect: - reason: anonymousNbt ## client\net\minecraft\network\chat\ChatTypeDecoration.java ## via client\net\minecraft\network\chat\ChatType.java @@ -1516,97 +1174,22 @@ - content - sender - target + ChatType: translationKey: string parameters: ChatTypeParameterType[]varint style: anonymousNbt + ChatTypes: chat: ChatType narration: ChatType - # MC: ClientboundDisguisedChatPacket - packet_profileless_chat: - message: anonymousNbt - type: varint - name: anonymousNbt - target?: anonymousNbt - # MC: ClientboundEntityEventPacket - packet_entity_status: - entityId: i32 - entityStatus: i8 - # MC: ClientboundExplodePacket - packet_explosion: - x: f64 - y: f64 - z: f64 - radius: f32 - affectedBlockOffsets: []varint - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - block_interaction_type: varint - small_explosion_particle: Particle - large_explosion_particle: Particle - sound: ItemSoundHolder - # MC: ClientboundForgetLevelChunkPacket - packet_unload_chunk: - chunkZ: i32 - chunkX: i32 - # MC: ClientboundGameEventPacket - packet_game_state_change: - reason: u8 - gameMode: f32 # MC: ClientboundHorseScreenOpenPacket packet_open_horse_window: windowId: ContainerID nbSlots: varint entityId: i32 - # MC: ClientboundHurtAnimationPacket - packet_hurt_animation: - entityId: varint - yaw: f32 - # MC: ClientboundInitializeBorderPacket - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varint - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundLevelChunkWithLightPacket - packet_map_chunk: - x: i32 - z: i32 - heightmaps: anonymousNbt - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: chunkBlockEntity[]varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - # MC: ClientboundLevelEventPacket - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool + # MC: ClientboundLevelParticlesPacket packet_world_particles: longDistance: bool @@ -1619,18 +1202,7 @@ velocityOffset: f32 amount: i32 particle: Particle - # MC: ClientboundLightUpdatePacket - packet_update_light: - chunkX: varint - chunkZ: varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint + # MC: ClientboundLoginPacket packet_login: entityId: i32 @@ -1644,35 +1216,7 @@ doLimitedCrafting: bool worldState: SpawnInfo enforcesSecureChat: bool - # MC: ClientboundMapItemDataPacket - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: anonymousNbt - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] + # MC: ClientboundMerchantOffersPacket packet_trade_list: windowId: ContainerID @@ -1700,150 +1244,18 @@ experience: varint isRegularVillager: bool canRestock: bool - # MC: ClientboundMoveEntityPacket.Pos - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - # MC: ClientboundMoveEntityPacket.PosRot - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveEntityPacket.Rot - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - # MC: ClientboundOpenBookPacket - packet_open_book: - hand: varint - # MC: ClientboundOpenScreenPacket - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: anonymousNbt - # MC: ClientboundOpenSignEditorPacket - packet_open_sign_entity: - location: position - isFrontText: bool - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundPongResponsePacket - packet_ping_response: - id: i64 + # MC: ClientboundPlaceGhostRecipePacket packet_craft_recipe_response: windowId: ContainerID recipe: string - # MC: ClientboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - # MC: ClientboundPlayerChatPacket - packet_player_chat: - senderUuid: UUID - index: varint - signature?: [ - "buffer", - { - "count": 256 - } - ] - plainMessage: string - timestamp: i64 - salt: i64 - previousMessages: previousMessages - unsignedChatContent?: anonymousNbt - filterType: varint - filterTypeMask: filterType ? - if 2: i64[]varint - default: void - type: varint - networkName: anonymousNbt - networkTargetName?: anonymousNbt - # MC: ClientboundPlayerCombatEndPacket - packet_end_combat_event: - duration: varint - # MC: ClientboundPlayerCombatEnterPacket - packet_enter_combat_event: - # Empty - # MC: ClientboundPlayerCombatKillPacket - packet_death_combat_event: - playerId: varint - message: anonymousNbt - # MC: ClientboundPlayerInfoRemovePacket - packet_player_remove: - players: UUID[]varint - # MC: ClientboundPlayerInfoUpdatePacket - packet_player_info: - ## ClientboundPlayerInfoUpdatePacket.java#L160 - action: ["bitflags", { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name" - ] - }] - data: []varint - uuid: UUID - player: ../action/add_player ? - if true: game_profile - default: void - chatSession: ../action/initialize_chat ? - if true: chat_session - default: void - gamemode: ../action/update_game_mode ? - if true: varint - default: void - listed: ../action/update_listed ? - if true: varint - default: void - latency: ../action/update_latency ? - if true: varint - default: void - displayName: ../action/update_display_name ? - if true: ["option", "anonymousNbt"] - default: void - # MC: ClientboundPlayerLookAtPacket - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: varint - default: void # Relative.java PositionUpdateRelatives: ["bitflags", { "type": "u8", "flags": ["x", "y", "z", "yaw", "pitch"] }] + # MC: ClientboundPlayerPositionPacket packet_position: x: f64 @@ -1853,41 +1265,13 @@ pitch: f32 flags: PositionUpdateRelatives teleportId: varint - # MC: ClientboundRecipePacket - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - blastFurnaceOpen: bool - filteringBlastFurnace: bool - smokerBookOpen: bool - filteringSmoker: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - # MC: ClientboundRemoveEntitiesPacket - packet_entity_destroy: - entityIds: varint[]varint - # MC: ClientboundRemoveMobEffectPacket - packet_remove_entity_effect: - entityId: varint - effectId: varint - # MC: ClientboundResetScorePacket - packet_reset_score: - entity_name: string - objective_name?: string + # MC: ClientboundRespawnPacket packet_respawn: worldState: SpawnInfo # Bit field: 0b1 - KEEP_ATTRIBUTE_MODIFIERS, 0b10 - KEEP_ENTITY_DATA copyMetadata: u8 - # MC: ClientboundRotateHeadPacket - packet_entity_head_rotation: - entityId: varint - headYaw: i8 + # MC: ClientboundSectionBlocksUpdatePacket packet_multi_block_change: chunkCoordinates: [ "bitfield", [ @@ -1896,67 +1280,12 @@ { "name": "y", "size": 20, "signed": true } ]] records: varint[]varint - # MC: ClientboundSelectAdvancementsTabPacket - packet_select_advancement_tab: - id?: string + # MC: ClientboundServerDataPacket packet_server_data: motd: anonymousNbt iconBytes?: ByteArray - # MC: ClientboundSetActionBarTextPacket - packet_action_bar: - text: anonymousNbt - # MC: ClientboundSetBorderCenterPacket - packet_world_border_center: - x: f64 - z: f64 - # MC: ClientboundSetBorderLerpSizePacket - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varint - # MC: ClientboundSetBorderSizePacket - packet_world_border_size: - diameter: f64 - # MC: ClientboundSetBorderWarningDelayPacket - packet_world_border_warning_delay: - warningTime: varint - # MC: ClientboundSetBorderWarningDistancePacket - packet_world_border_warning_reach: - warningBlocks: varint - # MC: ClientboundSetCameraPacket - packet_camera: - cameraId: varint - # MC: ClientboundSetCarriedItemPacket - packet_held_item_slot: - slot: i8 - # MC: ClientboundSetChunkCacheCenterPacket - packet_update_view_position: - chunkX: varint - chunkZ: varint - # MC: ClientboundSetChunkCacheRadiusPacket - packet_update_view_distance: - viewDistance: varint - # MC: ClientboundSetDefaultSpawnPositionPacket - packet_spawn_position: - location: position - angle: f32 - # MC: ClientboundSetDisplayObjectivePacket - packet_scoreboard_display_objective: - position: varint - name: string - # MC: ClientboundSetEntityDataPacket - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - # MC: ClientboundSetEntityLinkPacket - packet_attach_entity: - entityId: i32 - vehicleId: i32 - # MC: ClientboundSetEntityMotionPacket - packet_entity_velocity: - entityId: varint - velocity: vec3i16 + # MC: ClientboundSetEquipmentPacket packet_entity_equipment: entityId: varint @@ -1978,118 +1307,7 @@ ] } ] - # MC: ClientboundSetExperiencePacket - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - # MC: ClientboundSetHealthPacket - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - # MC: ClientboundSetObjectivePacket - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - type: action ? - if 0: varint - if 2: varint - default: void - number_format: action ? - if 0: [ - "option", - "varint" - ] - if 2: [ - "option", - "varint" - ] - default: void - styling: action ? - if 0: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - if 2: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - default: void - # MC: ClientboundSetPassengersPacket - packet_set_passengers: - entityId: varint - passengers: varint[]varint - # MC: ClientboundSetPlayerTeamPacket - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - suffix: mode ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - # MC: ClientboundSetScorePacket - packet_scoreboard_score: - itemName: string - scoreName: string - value: varint - display_name?: anonymousNbt - number_format?: varint - styling: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - # MC: ClientboundSetSimulationDistancePacket - packet_simulation_distance: - distance: varint - # MC: ClientboundSetSubtitleTextPacket - packet_set_title_subtitle: - text: anonymousNbt - # MC: ClientboundSetTimePacket - packet_update_time: - age: i64 - time: i64 - # MC: ClientboundSetTitleTextPacket - packet_set_title_text: - text: anonymousNbt - # MC: ClientboundSetTitlesAnimationPacket - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 + # MC: ClientboundSoundEntityPacket packet_entity_sound_effect: sound: ItemSoundHolder @@ -2098,64 +1316,13 @@ volume: f32 pitch: f32 seed: i64 - # MC: ClientboundSoundPacket - packet_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundStartConfigurationPacket - packet_start_configuration: - # Empty - # MC: ClientboundStopSoundPacket - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void + ## (Store Cookie is Common) # MC: ClientboundSystemChatPacket packet_system_chat: content: anonymousNbt isActionBar: bool - # MC: ClientboundTabListPacket - packet_playerlist_header: - header: anonymousNbt - footer: anonymousNbt - # MC: ClientboundTagQueryPacket - packet_nbt_query_response: - transactionId: varint - nbt: anonOptionalNbt - # MC: ClientboundTakeItemEntityPacket - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - # MC: ClientboundTeleportEntityPacket - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundTickingStatePacket - packet_set_ticking_state: - tick_rate: f32 - is_frozen: bool - # MC: ClientboundTickingStepPacket - packet_step_tick: - tick_steps: varint + ## (Transfer is common) # MC: ClientboundUpdateAdvancementsPacket packet_advancements: @@ -2189,6 +1356,7 @@ value: []varint criterionIdentifier: string criterionProgress?: i64 + # MC: ClientboundUpdateAttributesPacket packet_entity_update_attributes: entityId: varint @@ -2221,6 +1389,7 @@ uuid: UUID amount: f64 operation: i8 + # MC: ClientboundUpdateMobEffectPacket packet_entity_effect: entityId: varint @@ -2236,6 +1405,7 @@ # { "name": "blend", "size": 1 } # ]] flags: u8 + # MC: ClientboundUpdateRecipesPacket packet_declare_recipes: recipes: []varint @@ -2311,11 +1481,7 @@ base: ingredient addition: ingredient if minecraft:crafting_decorated_pot: minecraft_simple_recipe_format - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags + # MC: ClientboundProjectilePowerPacket packet_set_projectile_power: id: varint @@ -2570,22 +1736,17 @@ if set_projectile_power: packet_set_projectile_power ^play.toServer.types: - # MC: ServerboundAcceptTeleportationPacket - packet_teleport_confirm: - teleportId: varint + packet_settings: !delete + # MC: ServerboundBlockEntityTagQueryPacket packet_query_block_nbt: transactionId: varint location: position - # MC: ServerboundChangeDifficultyPacket - packet_set_difficulty: - newDifficulty: u8 - # MC: ServerboundChatAckPacket - packet_message_acknowledgement: - count: varint + # MC: ServerboundChatCommandPacket packet_chat_command: command: string + # MC: ServerboundChatCommandSignedPacket packet_chat_command_signed: command: string @@ -2606,48 +1767,20 @@ "count": 3 } ] - # MC: ServerboundChatPacket - packet_chat_message: - message: string - timestamp: i64 - salt: i64 - signature?: [ - "buffer", - { - "count": 256 - } - ] - offset: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] + # MC: ServerboundChatSessionUpdatePacket packet_chat_session_update: sessionUUID: UUID expireTime: i64 publicKey: ByteArray signature: ByteArray - # MC: ServerboundChunkBatchReceivedPacket - packet_chunk_batch_received: - chunksPerTick: f32 - # MC: ServerboundClientCommandPacket - packet_client_command: - actionId: varint + ## (Settings is common) ## # MC: ServerboundCommandSuggestionPacket packet_tab_complete: transactionId: varint text: string - # MC: ServerboundConfigurationAcknowledgedPacket - packet_configuration_acknowledged: - # Empty - # MC: ServerboundContainerButtonClickPacket - packet_enchant_item: - windowId: i8 - enchantment: i8 + # MC: ServerboundContainerClickPacket packet_window_click: windowId: ContainerID @@ -2659,227 +1792,19 @@ location: i16 item: Slot cursorItem: Slot + # MC: ServerboundContainerClosePacket packet_close_window: windowId: ContainerID - # MC: ServerboundContainerSlotStateChangedPacket - packet_set_slot_state: - slot_id: varint - window_id: varint - state: bool - # MC: ServerboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer + # MC: ServerboundDebugSampleSubscriptionPacket packet_debug_sample_subscription: type: varint - # MC: ServerboundEditBookPacket - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - # MC: ServerboundEntityTagQuery - packet_query_entity_nbt: - transactionId: varint - entityId: varint - # MC: ServerboundInteractPacket - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - # MC: ServerboundJigsawGeneratePacket - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundLockDifficultyPacket - packet_lock_difficulty: - locked: bool - # MC: ServerboundMovePlayerPacket.Pos - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - # MC: ServerboundMovePlayerPacket.PosRot - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - # MC: ServerboundMovePlayerPacket.Rot - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - # MC: ServerboundMovePlayerPacket.StatusOnly - packet_flying: - onGround: bool - # MC: ServerboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - # MC: ServerboundPaddleBoatPacket - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - # MC: ServerboundPickItemPacket - packet_pick_item: - slot: varint - # MC: ServerboundPingRequestPacket - packet_ping_request: - id: i64 - # MC: ServerboundPlaceRecipePacket - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - # MC: ServerboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - # MC: ServerboundPlayerActionPacket - packet_block_dig: - status: varint - location: position - face: i8 - sequence: varint - # MC: ServerboundPlayerCommandPacket - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - # MC: ServerboundPlayerInputPacket - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundRecipeBookChangeSettingsPacket - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - # MC: ServerboundRecipeBookSeenRecipePacket - packet_displayed_recipe: - recipeId: string - # MC: ServerboundRenameItemPacket - packet_name_item: - name: string - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint - # MC: ServerboundSeenAdvancementsPacket - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - # MC: ServerboundSelectTradePacket - packet_select_trade: - slot: varint - # MC: ServerboundSetBeaconPacket - packet_set_beacon_effect: - primary_effect?: varint - secondary_effect?: varint - # MC: ServerboundSetCarriedItemPacket - packet_held_item_slot: - slotId: i16 - # MC: ServerboundSetCommandBlockPacket - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - # MC: ServerboundSetCommandMinecartPacket - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool + # MC: ServerboundSetCreativeModeSlotPacket packet_set_creative_slot: slot: i16 item: Slot - # MC: ServerboundSetJigsawBlockPacket - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - selection_priority: varint - placement_priority: varint - # MC: ServerboundSetStructureBlockPacket - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varint - flags: u8 - # MC: ServerboundSignUpdatePacket - packet_update_sign: - location: position - isFrontText: bool - text1: string - text2: string - text3: string - text4: string - # MC: ServerboundSwingPacket - packet_arm_animation: - hand: varint - # MC: ServerboundTeleportToEntityPacket - packet_spectate: - target: UUID - # MC: ServerboundUseItemOnPacket - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - sequence: varint - # MC: ServerboundUseItemPacket - packet_use_item: - hand: varint - sequence: varint packet: name: varint => diff --git a/data/pc/1.20.5/protocol.json b/data/pc/1.20.5/protocol.json index aea4468b5..cca2b213f 100644 --- a/data/pc/1.20.5/protocol.json +++ b/data/pc/1.20.5/protocol.json @@ -3218,288 +3218,6 @@ } } }, - "configuration": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "add_resource_pack": "packet_common_add_resource_pack", - "cookie_request": "packet_common_cookie_request", - "custom_payload": "packet_custom_payload", - "disconnect": "packet_disconnect", - "feature_flags": "packet_feature_flags", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "reset_chat": "packet_reset_chat", - "select_known_packs": "packet_common_select_known_packs", - "store_cookie": "packet_common_store_cookie", - "tags": "packet_tags", - "transfer": "packet_common_transfer" - } - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "packet_feature_flags": [ - "container", - [ - { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_registry_data": [ - "container", - [ - { - "name": "id", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] - } - ] - ], - "packet_reset_chat": [ - "container", - [] - ], - "packet_tags": [ - "container", - [ - { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "settings": "packet_common_settings" - } - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_resource_pack_receive": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "result", - "type": "varint" - } - ] - ] - } - } - }, "play": { "toClient": { "types": { @@ -8400,175 +8118,457 @@ "type": "string" }, { - "name": "integrity", - "type": "f32" - }, + "name": "integrity", + "type": "f32" + }, + { + "name": "seed", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] + ], + "packet_use_entity": [ + "container", + [ + { + "name": "target", + "type": "varint" + }, + { + "name": "mouse", + "type": "varint" + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + }, + { + "name": "sneaking", + "type": "bool" + } + ] + ], + "packet_use_item": [ + "container", + [ + { + "name": "hand", + "type": "varint" + }, + { + "name": "sequence", + "type": "varint" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "yaw", + "type": "f32" + }, + { + "name": "pitch", + "type": "f32" + } + ] + ], + "packet_window_click": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" + }, + { + "name": "stateId", + "type": "varint" + }, + { + "name": "slot", + "type": "i16" + }, + { + "name": "mouseButton", + "type": "i8" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "changedSlots", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" + } + ] + ] + } + ] + }, + { + "name": "cursorItem", + "type": "Slot" + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "add_resource_pack": "packet_common_add_resource_pack", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" + } + } + ] + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "anonymousNbt" + } + ] + ], + "packet_feature_flags": [ + "container", + [ { - "name": "seed", - "type": "varint" - }, + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "flags", - "type": "u8" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_use_entity": [ + "packet_ping": [ "container", [ { - "name": "target", - "type": "varint" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_registry_data": [ + "container", + [ { - "name": "mouse", - "type": "varint" + "name": "id", + "type": "string" }, { - "name": "x", + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] } ] - }, + } + ] + ], + "packet_reset_chat": [ + "container", + [] + ], + "packet_tags": [ + "container", + [ { - "name": "y", + "name": "tags", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] - }, + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "z", + "name": "name", "type": [ - "switch", + "mapper", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "mappings": { + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs" + }, + "type": "varint" } ] }, { - "name": "hand", + "name": "params", "type": [ "switch", { - "compareTo": "mouse", - "default": "void", + "compareTo": "name", "fields": { - "0": "varint", - "2": "varint" + "cookie_response": "packet_common_cookie_response", + "custom_payload": "packet_custom_payload", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "select_known_packs": "packet_common_select_known_packs", + "settings": "packet_common_settings" } } ] - }, - { - "name": "sneaking", - "type": "bool" } ] ], - "packet_use_item": [ + "packet_custom_payload": [ "container", [ { - "name": "hand", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "sequence", - "type": "varint" + "name": "data", + "type": "restBuffer" } ] ], - "packet_vehicle_move": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_window_click": [ + "packet_pong": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_resource_pack_receive": [ + "container", + [ { - "name": "mouseButton", - "type": "i8" + "name": "uuid", + "type": "UUID" }, { - "name": "mode", + "name": "result", "type": "varint" - }, - { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] - }, - { - "name": "cursorItem", - "type": "Slot" } ] ] diff --git a/data/pc/1.20/proto.yml b/data/pc/1.20/proto.yml index d18d1421a..6d8ce34a6 100644 --- a/data/pc/1.20/proto.yml +++ b/data/pc/1.20/proto.yml @@ -1,90 +1,18 @@ !version: 1.20 +!base: 1.19.4 ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - registryEntryHolder: native - registryEntryHolderSet: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3f: - x: f32 - y: f32 - z: f32 - vec4f: - x: f32 - y: f32 - z: f32 - w: f32 - vec3f64: - x: f64 - y: f64 - z: f64 - vec3i16: - x: i16 - y: i16 - z: i16 - ItemSoundEvent: - soundName: string - fixedRange?: f32 - ItemSoundHolder: ["registryEntryHolder", { - "baseName": "soundId", - "otherwise": { name: "data", type: "ItemSoundEvent" } - }] - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] particleData: $compareTo ? - if 2: + if 2: blockState: varint - if 3: + if 3: blockState: varint - if 14: + if 14: red: f32 green: f32 blue: f32 scale: f32 - if 15: + if 15: fromRed: f32 fromGreen: f32 fromBlue: f32 @@ -92,13 +20,13 @@ toRed: f32 toGreen: f32 toBlue: f32 - if 25: + if 25: blockState: varint - if 31: + if 31: rotation: f32 - if 40: + if 40: item: slot - if 41: + if 41: positionType: string entityId: positionType ? if minecraft:entity: varint @@ -110,669 +38,18 @@ if minecraft:block: position if minecraft:entity: varint ticks: varint - if 93: + if 93: delayInTicksBeforeShown: varint default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - packedChunkPos: - z: i32 - x: i32 - soundSource: varint => - 0: master - 1: music - 2: record - 3: weather - 4: block - 5: hostile - 6: neutral - 7: player - 8: ambient - 9: voice - previousMessages: []varint - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - entityMetadataItem: $compareTo ? - if byte: i8 - if int: varint - if long: varlong - if float: f32 - if string: string - if component: string - if optional_component: [ - "option", - "string" - ] - if item_stack: slot - if boolean: bool - if rotations: - pitch: f32 - yaw: f32 - roll: f32 - if block_pos: position - if optional_block_pos: [ - "option", - "position" - ] - if direction: varint - if optional_uuid: [ - "option", - "UUID" - ] - if block_state: varint - if optional_block_state: optvarint - if compound_tag: nbt - if particle: particle - if villager_data: - villagerType: varint - villagerProfession: varint - level: varint - if optional_unsigned_int: optvarint - if pose: varint - if cat_variant: varint - if frog_variant: varint - if optional_global_pos: [ - "option", - "string" - ] - if painting_variant: varint - if sniffer_state: varint - if vector3: vec3f - if quaternion: vec4f - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": [ - "mapper", - { - "type": "varint", - "mappings": { - "0": "byte", - "1": "int", - "2": "long", - "3": "float", - "4": "string", - "5": "component", - "6": "optional_component", - "7": "item_stack", - "8": "boolean", - "9": "rotations", - "10": "block_pos", - "11": "optional_block_pos", - "12": "direction", - "13": "optional_uuid", - "14": "block_state", - "15": "optional_block_state", - "16": "compound_tag", - "17": "particle", - "18": "villager_data", - "19": "optional_unsigned_int", - "20": "pose", - "21": "cat_variant", - "22": "frog_variant", - "23": "optional_global_pos", - "24": "painting_variant", - "25": "sniffer_state", - "26": "vector3", - "27": "quaternion" - } - } - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - minecraft_simple_recipe_format: - category: varint - minecraft_smelting_format: - group: string - category: varint - ingredient: ingredient - result: slot - experience: f32 - cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: - _: [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - y: i16 - type: varint - nbtData: optionalNbt - chat_session?: - uuid: UUID - publicKey: - expireTime: i64 - keyBytes: [ - "buffer", - { - "countType": "varint" - } - ] - keySignature: [ - "buffer", - { - "countType": "varint" - } - ] - game_profile: - name: string - properties: []varint - name: string - value: string - signature?: string - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: varint => - 0: brigadier:bool - 1: brigadier:float - 2: brigadier:double - 3: brigadier:integer - 4: brigadier:long - 5: brigadier:string - 6: minecraft:entity - 7: minecraft:game_profile - 8: minecraft:block_pos - 9: minecraft:column_pos - 10: minecraft:vec3 - 11: minecraft:vec2 - 12: minecraft:block_state - 13: minecraft:block_predicate - 14: minecraft:item_stack - 15: minecraft:item_predicate - 16: minecraft:color - 17: minecraft:component - 18: minecraft:message - 19: minecraft:nbt - 20: minecraft:nbt_tag - 21: minecraft:nbt_path - 22: minecraft:objective - 23: minecraft:objective_criteria - 24: minecraft:operation - 25: minecraft:particle - 26: minecraft:angle - 27: minecraft:rotation - 28: minecraft:scoreboard_slot - 29: minecraft:score_holder - 30: minecraft:swizzle - 31: minecraft:team - 32: minecraft:item_slot - 33: minecraft:resource_location - 34: minecraft:function - 35: minecraft:entity_anchor - 36: minecraft:int_range - 37: minecraft:float_range - 38: minecraft:dimension - 39: minecraft:gamemode - 40: minecraft:time - 41: minecraft:resource_or_tag - 42: minecraft:resource_or_tag_key - 43: minecraft:resource - 44: minecraft:resource_key - 45: minecraft:template_mirror - 46: minecraft:template_rotation - 47: minecraft:heightmap - 48: minecraft:uuid - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:dimension: void - if minecraft:gamemode: void - if minecraft:time: - min: i32 - if minecraft:resource_or_tag: - registry: string - if minecraft:resource_or_tag_key: - registry: string - if minecraft:resource: - registry: string - if minecraft:resource_key: - registry: string - if minecraft:template_mirror: void - if minecraft:template_rotation: void - if minecraft:heightmap: void - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: UUID - username: string - properties: []varint - name: string - value: string - signature?: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - -^login.toServer.types: - packet_login_start: - username: string - playerUUID?: UUID - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - headPitch: i8 - objectData: varint - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: + packet_advancements: reset: bool advancementMapping: []varint key: string - value: + value: parentId?: string - displayData?: + displayData?: title: string description: string icon: slot @@ -819,74 +96,8 @@ value: []varint criterionIdentifier: string criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: varint - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_multi_block_change: + + packet_multi_block_change: chunkCoordinates: [ "bitfield", [ @@ -908,80 +119,8 @@ ] ] records: varint[]varint - packet_close_window: - windowId: u8 - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: string - packet_window_items: - windowId: u8 - stateId: varint - items: slot[]varint - carriedItem: slot - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - stateId: varint - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_chat_suggestions: - action: varint - entries: string[]varint - packet_custom_payload: - channel: string - data: restBuffer - packet_hide_message: - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - packet_kick_disconnect: - reason: string - packet_profileless_chat: - message: string - type: varint - name: string - target?: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f64 - y: f64 - z: f64 - radius: f32 - affectedBlockOffsets: []varint - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: - windowId: u8 - nbSlots: varint - entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: + + packet_map_chunk: x: i32 z: i32 heightmaps: nbt @@ -1000,29 +139,8 @@ _: u8[]varint blockLight: []varint _: u8[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: varint - longDistance: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_update_light: + + packet_update_light: chunkX: varint chunkZ: varint skyLightMask: i64[]varint @@ -1033,7 +151,8 @@ _: u8[]varint blockLight: []varint _: u8[]varint - packet_login: + + packet_login: entityId: i32 isHardcore: bool gameMode: u8 @@ -1050,188 +169,23 @@ enableRespawnScreen: bool isDebug: bool isFlat: bool - death?: + death?: dimensionName: string location: position portalCooldown: varint - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_trade_list: - windowId: varint - trades: []varint - inputItem1: slot - outputItem: slot - inputItem2: slot - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: - hand: varint - packet_open_sign_entity: + + packet_open_sign_entity: location: position isFrontText: bool - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_player_chat: - senderUuid: UUID - index: varint - signature?: [ - "buffer", - { - "count": 256 - } - ] - plainMessage: string - timestamp: i64 - salt: i64 - previousMessages: previousMessages - unsignedChatContent?: string - filterType: varint - filterTypeMask: filterType ? - if 2: i64[]varint - default: void - type: varint - networkName: string - networkTargetName?: string - packet_end_combat_event: + + packet_end_combat_event: duration: varint - packet_enter_combat_event: - # Empty - packet_death_combat_event: + + packet_death_combat_event: playerId: varint message: string - packet_player_remove: - players: UUID[]varint - packet_player_info: - ## ClientboundPlayerInfoUpdatePacket.java#L160 - action: ["bitflags", { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name" - ] - }] - data: []varint - uuid: UUID - player: ../action/add_player ? - if true: game_profile - default: void - chatSession: ../action/initialize_chat ? - if true: chat_session - default: void - gamemode: ../action/update_game_mode ? - if true: varint - default: void - listed: ../action/update_listed ? - if true: varint - default: void - latency: ../action/update_latency ? - if true: varint - default: void - displayName: ../action/update_display_name ? - if true: ["option", "string"] - default: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - blastFurnaceOpen: bool - filteringBlastFurnace: bool - smokerBookOpen: bool - filteringSmoker: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: varint - packet_resource_pack_send: - url: string - hash: string - forced: bool - promptMessage?: string - packet_respawn: + + packet_respawn: dimension: string worldName: string hashedSeed: i64 @@ -1240,214 +194,22 @@ isDebug: bool isFlat: bool copyMetadata: bool - death?: + death?: dimensionName: string location: position portalCooldown: varint - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: - chunkX: varint - chunkZ: varint - packet_update_view_distance: - viewDistance: varint - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - angle: f32 - packet_update_time: - age: i64 - time: i64 - packet_entity_sound_effect: - soundId: varint - soundEvent: soundId ? - if 0: - resource: string - range?: f32 - default: void - soundCategory: soundSource - entityId: varint - volume: f32 - pitch: f32 - seed: i64 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - seed: i64 - packet_system_chat: - content: string - isActionBar: bool - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []varint - name: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_feature_flags: - features: string[]varint - packet_entity_effect: - entityId: varint - effectId: varint - amplifier: i8 - duration: varint - hideParticles: i8 - factorCodec?: nbt - packet_select_advancement_tab: - id?: string - packet_server_data: - motd: string - iconBytes?: [ - "buffer", - { - "countType": "varint" - } - ] - enforcesSecureChat: bool - packet_declare_recipes: + + packet_declare_recipes: recipes: []varint type: string recipeId: string data: type ? - if minecraft:crafting_shapeless: + if minecraft:crafting_shapeless: group: string category: varint ingredients: ingredient[]varint result: slot - if minecraft:crafting_shaped: + if minecraft:crafting_shaped: width: varint height: varint group: string @@ -1474,666 +236,26 @@ if minecraft:blasting: minecraft_smelting_format if minecraft:smoking: minecraft_smelting_format if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: + if minecraft:stonecutting: group: string ingredient: ingredient result: slot - if minecraft:smithing_transform: + if minecraft:smithing_transform: template: ingredient base: ingredient addition: ingredient result: slot - if minecraft:smithing_trim: + if minecraft:smithing_trim: template: ingredient base: ingredient addition: ingredient if minecraft:crafting_decorated_pot: minecraft_simple_recipe_format - packet_tags: - tags: []varint - tagType: string - tags: tags - packet_acknowledge_player_digging: - sequenceId: varint - packet_clear_titles: - reset: bool - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varint - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - packet_action_bar: - text: string - packet_world_border_center: - x: f64 - z: f64 - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varint - packet_world_border_size: - diameter: f64 - packet_world_border_warning_delay: - warningTime: varint - packet_world_border_warning_reach: - warningBlocks: varint - packet_ping: - id: i32 - packet_set_title_subtitle: - text: string - packet_set_title_text: - text: string - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - packet_simulation_distance: - distance: varint - packet_chunk_biomes: - biomes: []varint - position: packedChunkPos - data: [ - "buffer", - { - "countType": "varint" - } - ] - packet_damage_event: - entityId: varint - sourceTypeId: varint - sourceCauseId: varint - sourceDirectId: varint - sourcePosition?: vec3f64 - packet_hurt_animation: - entityId: varint - yaw: f32 - packet: - name: varint => - 0x00: bundle_delimiter - 0x01: spawn_entity - 0x02: spawn_entity_experience_orb - 0x03: named_entity_spawn - 0x04: animation - 0x05: statistics - 0x06: acknowledge_player_digging - 0x07: block_break_animation - 0x08: tile_entity_data - 0x09: block_action - 0x0a: block_change - 0x0b: boss_bar - 0x0c: difficulty - 0x0d: chunk_biomes - 0x0e: clear_titles - 0x0f: tab_complete - 0x10: declare_commands - 0x11: close_window - 0x12: window_items - 0x13: craft_progress_bar - 0x14: set_slot - 0x15: set_cooldown - 0x16: chat_suggestions - 0x17: custom_payload - 0x18: damage_event - 0x19: hide_message - 0x1a: kick_disconnect - 0x1b: profileless_chat - 0x1c: entity_status - 0x1d: explosion - 0x1e: unload_chunk - 0x1f: game_state_change - 0x20: open_horse_window - 0x21: hurt_animation - 0x22: initialize_world_border - 0x23: keep_alive - 0x24: map_chunk - 0x25: world_event - 0x26: world_particles - 0x27: update_light - 0x28: login - 0x29: map - 0x2a: trade_list - 0x2b: rel_entity_move - 0x2c: entity_move_look - 0x2d: entity_look - 0x2e: vehicle_move - 0x2f: open_book - 0x30: open_window - 0x31: open_sign_entity - 0x32: ping - 0x33: craft_recipe_response - 0x34: abilities - 0x35: player_chat - 0x36: end_combat_event - 0x37: enter_combat_event - 0x38: death_combat_event - 0x39: player_remove - 0x3a: player_info - 0x3b: face_player - 0x3c: position - 0x3d: unlock_recipes - 0x3e: entity_destroy - 0x3f: remove_entity_effect - 0x40: resource_pack_send - 0x41: respawn - 0x42: entity_head_rotation - 0x43: multi_block_change - 0x44: select_advancement_tab - 0x45: server_data - 0x46: action_bar - 0x47: world_border_center - 0x48: world_border_lerp_size - 0x49: world_border_size - 0x4a: world_border_warning_delay - 0x4b: world_border_warning_reach - 0x4c: camera - 0x4d: held_item_slot - 0x4e: update_view_position - 0x4f: update_view_distance - 0x50: spawn_position - 0x51: scoreboard_display_objective - 0x52: entity_metadata - 0x53: attach_entity - 0x54: entity_velocity - 0x55: entity_equipment - 0x56: experience - 0x57: update_health - 0x58: scoreboard_objective - 0x59: set_passengers - 0x5a: teams - 0x5b: scoreboard_score - 0x5c: simulation_distance - 0x5d: set_title_subtitle - 0x5e: update_time - 0x5f: set_title_text - 0x60: set_title_time - 0x61: entity_sound_effect - 0x62: sound_effect - 0x63: stop_sound - 0x64: system_chat - 0x65: playerlist_header - 0x66: nbt_query_response - 0x67: collect - 0x68: entity_teleport - 0x69: advancements - 0x6a: entity_update_attributes - 0x6b: feature_flags - 0x6c: entity_effect - 0x6d: declare_recipes - 0x6e: tags - params: name ? - if bundle_delimiter: void - if spawn_entity: packet_spawn_entity - if spawn_entity_experience_orb: packet_spawn_entity_experience_orb - if named_entity_spawn: packet_named_entity_spawn - if animation: packet_animation - if statistics: packet_statistics - if acknowledge_player_digging: packet_acknowledge_player_digging - if block_break_animation: packet_block_break_animation - if tile_entity_data: packet_tile_entity_data - if block_action: packet_block_action - if block_change: packet_block_change - if boss_bar: packet_boss_bar - if difficulty: packet_difficulty - if chunk_biomes: packet_chunk_biomes - if clear_titles: packet_clear_titles - if tab_complete: packet_tab_complete - if declare_commands: packet_declare_commands - if close_window: packet_close_window - if window_items: packet_window_items - if craft_progress_bar: packet_craft_progress_bar - if set_slot: packet_set_slot - if set_cooldown: packet_set_cooldown - if chat_suggestions: packet_chat_suggestions - if custom_payload: packet_custom_payload - if damage_event: packet_damage_event - if hide_message: packet_hide_message - if kick_disconnect: packet_kick_disconnect - if profileless_chat: packet_profileless_chat - if entity_status: packet_entity_status - if explosion: packet_explosion - if unload_chunk: packet_unload_chunk - if game_state_change: packet_game_state_change - if open_horse_window: packet_open_horse_window - if hurt_animation: packet_hurt_animation - if initialize_world_border: packet_initialize_world_border - if keep_alive: packet_keep_alive - if map_chunk: packet_map_chunk - if world_event: packet_world_event - if world_particles: packet_world_particles - if update_light: packet_update_light - if login: packet_login - if map: packet_map - if trade_list: packet_trade_list - if rel_entity_move: packet_rel_entity_move - if entity_move_look: packet_entity_move_look - if entity_look: packet_entity_look - if vehicle_move: packet_vehicle_move - if open_book: packet_open_book - if open_window: packet_open_window - if open_sign_entity: packet_open_sign_entity - if ping: packet_ping - if craft_recipe_response: packet_craft_recipe_response - if abilities: packet_abilities - if player_chat: packet_player_chat - if end_combat_event: packet_end_combat_event - if enter_combat_event: packet_enter_combat_event - if death_combat_event: packet_death_combat_event - if player_remove: packet_player_remove - if player_info: packet_player_info - if face_player: packet_face_player - if position: packet_position - if unlock_recipes: packet_unlock_recipes - if entity_destroy: packet_entity_destroy - if remove_entity_effect: packet_remove_entity_effect - if resource_pack_send: packet_resource_pack_send - if respawn: packet_respawn - if entity_head_rotation: packet_entity_head_rotation - if multi_block_change: packet_multi_block_change - if select_advancement_tab: packet_select_advancement_tab - if server_data: packet_server_data - if action_bar: packet_action_bar - if world_border_center: packet_world_border_center - if world_border_lerp_size: packet_world_border_lerp_size - if world_border_size: packet_world_border_size - if world_border_warning_delay: packet_world_border_warning_delay - if world_border_warning_reach: packet_world_border_warning_reach - if camera: packet_camera - if held_item_slot: packet_held_item_slot - if update_view_position: packet_update_view_position - if update_view_distance: packet_update_view_distance - if spawn_position: packet_spawn_position - if scoreboard_display_objective: packet_scoreboard_display_objective - if entity_metadata: packet_entity_metadata - if attach_entity: packet_attach_entity - if entity_velocity: packet_entity_velocity - if entity_equipment: packet_entity_equipment - if experience: packet_experience - if update_health: packet_update_health - if scoreboard_objective: packet_scoreboard_objective - if set_passengers: packet_set_passengers - if teams: packet_teams - if scoreboard_score: packet_scoreboard_score - if simulation_distance: packet_simulation_distance - if set_title_subtitle: packet_set_title_subtitle - if update_time: packet_update_time - if set_title_text: packet_set_title_text - if set_title_time: packet_set_title_time - if entity_sound_effect: packet_entity_sound_effect - if sound_effect: packet_sound_effect - if stop_sound: packet_stop_sound - if system_chat: packet_system_chat - if playerlist_header: packet_playerlist_header - if nbt_query_response: packet_nbt_query_response - if collect: packet_collect - if entity_teleport: packet_entity_teleport - if advancements: packet_advancements - if entity_update_attributes: packet_entity_update_attributes - if feature_flags: packet_feature_flags - if entity_effect: packet_entity_effect - if declare_recipes: packet_declare_recipes - if tags: packet_tags ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_chat_command: - command: string - timestamp: i64 - salt: i64 - argumentSignatures: []varint - argumentName: string - signature: [ - "buffer", - { - "count": 256 - } - ] - messageCount: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - packet_chat_message: - message: string - timestamp: i64 - salt: i64 - signature?: [ - "buffer", - { - "count": 256 - } - ] - offset: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - packet_set_difficulty: - newDifficulty: u8 - packet_message_acknowledgement: - count: varint - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect?: varint - secondary_effect?: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varint - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - enableTextFiltering: bool - enableServerListing: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - stateId: varint - slot: i16 - mouseButton: i8 - mode: varint - changedSlots: []varint - location: i16 - item: slot - cursorItem: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: - locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - packet_block_dig: - status: varint - location: position - face: i8 - sequence: varint - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_displayed_recipe: - recipeId: string - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - packet_update_sign: + packet_update_sign: location: position isFrontText: bool text1: string text2: string text3: string text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - sequence: varint - packet_use_item: - hand: varint - sequence: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet_pong: - id: i32 - packet_chat_session_update: - sessionUUID: UUID - expireTime: i64 - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - signature: [ - "buffer", - { - "countType": "varint" - } - ] - packet: - name: varint => - 0x00: teleport_confirm - 0x01: query_block_nbt - 0x02: set_difficulty - 0x03: message_acknowledgement - 0x04: chat_command - 0x05: chat_message - 0x06: chat_session_update - 0x07: client_command - 0x08: settings - 0x09: tab_complete - 0x0a: enchant_item - 0x0b: window_click - 0x0c: close_window - 0x0d: custom_payload - 0x0e: edit_book - 0x0f: query_entity_nbt - 0x10: use_entity - 0x11: generate_structure - 0x12: keep_alive - 0x13: lock_difficulty - 0x14: position - 0x15: position_look - 0x16: look - 0x17: flying - 0x18: vehicle_move - 0x19: steer_boat - 0x1a: pick_item - 0x1b: craft_recipe_request - 0x1c: abilities - 0x1d: block_dig - 0x1e: entity_action - 0x1f: steer_vehicle - 0x20: pong - 0x21: recipe_book - 0x22: displayed_recipe - 0x23: name_item - 0x24: resource_pack_receive - 0x25: advancement_tab - 0x26: select_trade - 0x27: set_beacon_effect - 0x28: held_item_slot - 0x29: update_command_block - 0x2a: update_command_block_minecart - 0x2b: set_creative_slot - 0x2c: update_jigsaw_block - 0x2d: update_structure_block - 0x2e: update_sign - 0x2f: arm_animation - 0x30: spectate - 0x31: block_place - 0x32: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if query_block_nbt: packet_query_block_nbt - if set_difficulty: packet_set_difficulty - if message_acknowledgement: packet_message_acknowledgement - if chat_command: packet_chat_command - if chat_message: packet_chat_message - if client_command: packet_client_command - if settings: packet_settings - if tab_complete: packet_tab_complete - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if edit_book: packet_edit_book - if query_entity_nbt: packet_query_entity_nbt - if use_entity: packet_use_entity - if generate_structure: packet_generate_structure - if keep_alive: packet_keep_alive - if lock_difficulty: packet_lock_difficulty - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if pick_item: packet_pick_item - if craft_recipe_request: packet_craft_recipe_request - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if pong: packet_pong - if chat_session_update: packet_chat_session_update - if recipe_book: packet_recipe_book - if displayed_recipe: packet_displayed_recipe - if name_item: packet_name_item - if resource_pack_receive: packet_resource_pack_receive - if advancement_tab: packet_advancement_tab - if select_trade: packet_select_trade - if set_beacon_effect: packet_set_beacon_effect - if held_item_slot: packet_held_item_slot - if update_command_block: packet_update_command_block - if update_command_block_minecart: packet_update_command_block_minecart - if set_creative_slot: packet_set_creative_slot - if update_jigsaw_block: packet_update_jigsaw_block - if update_structure_block: packet_update_structure_block - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item diff --git a/data/pc/1.21.1/proto.yml b/data/pc/1.21.1/proto.yml index 41118900b..c6d8bf90b 100644 --- a/data/pc/1.21.1/proto.yml +++ b/data/pc/1.21.1/proto.yml @@ -1,65 +1,11 @@ !version: 1.21.1 -!StartDocs: true +!base: 1.20.5 ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - anonymousNbt: native - anonOptionalNbt: native - registryEntryHolder: native - registryEntryHolderSet: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] vec2f: x: f32 y: f32 - vec3f: - x: f32 - y: f32 - z: f32 - vec4f: - x: f32 - y: f32 - z: f32 - w: f32 - vec3f64: - x: f64 - y: f64 - z: f64 - vec3i16: - x: i16 - y: i16 - z: i16 - IDSet: ["registryEntryHolderSet", { - "base": { name: "name", type: "string" }, - "otherwise": { name: "ids", type: "varint" } - }] - ContainerID: u8 + SlotComponentType: varint => - custom_data - max_stack_size @@ -173,7 +119,7 @@ if creative_slot_lock: void if enchantment_glint_override: bool if intangible_projectile: anonymousNbt - if food: + if food: nutrition: varint # How much saturation will be given after consuming the item. saturationModifier: f32 @@ -297,102 +243,12 @@ if lock: anonymousNbt if container_loot: anonymousNbt - ItemSoundEvent: - soundName: string - fixedRange?: f32 - ItemSoundHolder: ["registryEntryHolder", { - "baseName": "soundId", - "otherwise": { name: "data", type: "ItemSoundEvent" } - }] - - ItemFireworkExplosion: - shape: varint => - - small_ball - - large_ball - - star - - creeper - - burst - # The RGB components of the color, encoded as an integer. - colors: i32[]varint - # The RGB components of the color, encoded as an integer. - fadeColors: i32[]varint - # Whether the firework has a trail. - hasTrail: bool - # Whether the firework has a twinkle effect. - hasTwinkle: bool - - ItemEffectDetail: - amplifier: varint - duration: varint - ambient: bool - showParticles: bool - showIcon: bool - hiddenEffect?: ItemEffectDetail - - ItemPotionEffect: - id: varint - details: ItemEffectDetail - - ItemBlockProperty: - name: string - isExactMatch: bool - value: isExactMatch ? - if true: - exactValue: string - if false: - minValue: string - maxValue: string - - - ItemBlockPredicate: - blockSet?: ["registryEntryHolderSet", { - "base": { name: "name", type: "string" }, - "otherwise": { name: "blockIds", type: "varint" } - }] - properties?: ItemBlockProperty[]varint - nbt: anonOptionalNbt - - ItemBookPage: - # The raw text of the page. TextComponent, max 1024 characters. - content: string - filteredContent?: string - ItemWrittenBookPage: - content: anonymousNbt - filteredContent: anonOptionalNbt - - ArmorTrimMaterial: - assetName: string - ingredientId: varint - overrideArmorAssets: []varint - key: string - value: string - description: anonymousNbt - - ArmorTrimPattern: - assetId: string - templateItemId: varint - description: anonymousNbt - decal: bool - - InstrumentData: - soundEvent: ItemSoundHolder - useDuration: f32 - range: f32 - description: anonymousNbt - JukeboxSongData: soundEvent: ItemSoundHolder description: anonymousNbt lengthInSeconds: f32 comparatorOutput: varint - BannerPattern: - assetId: string - translationKey: string - BannerPatternLayer: - pattern: ["registryEntryHolder", { "baseName": "patternId", "otherwise": { "name": "data", "type": "BannerPattern" } }] - colorId: varint - Slot: itemCount: varint _: itemCount ? @@ -406,689 +262,6 @@ removeComponents: []$removedComponentCount type: SlotComponentType - Particle: - # See client/net/minecraft/core/particles/ParticleTypes.java - type: varint => - - angry_villager - - block - - block_marker - - bubble - - cloud - - crit - - damage_indicator - - dragon_breath - - dripping_lava - - falling_lava - - landing_lava - - dripping_water - - falling_water - - dust - - dust_color_transition - - effect - - elder_guardian - - enchanted_hit - - enchant - - end_rod - - entity_effect - - explosion_emitter - - explosion - - gust - - small_gust - - gust_emitter_large - - gust_emitter_small - - sonic_boom - - falling_dust - - firework - - fishing - - flame - - infested - - cherry_leaves - - sculk_soul - - sculk_charge - - sculk_charge_pop - - soul_fire_flame - - soul - - flash - - happy_villager - - composter - - heart - - instant_effect - - item - - vibration - - item_slime - - item_cobweb - - item_snowball - - large_smoke - - lava - - mycelium - - note - - poof - - portal - - rain - - smoke - - white_smoke - - sneeze - - spit - - squid_ink - - sweep_attack - - totem_of_undying - - underwater - - splash - - witch - - bubble_pop - - current_down - - bubble_column_up - - nautilus - - dolphin - - campfire_cosy_smoke - - campfire_signal_smoke - - dripping_honey - - falling_honey - - landing_honey - - falling_nectar - - falling_spore_blossom - - ash - - crimson_spore - - warped_spore - - spore_blossom_air - - dripping_obsidian_tear - - falling_obsidian_tear - - landing_obsidian_tear - - reverse_portal - - white_ash - - small_flame - - snowflake - - dripping_dripstone_lava - - falling_dripstone_lava - - dripping_dripstone_water - - falling_dripstone_water - - glow_squid_ink - - glow - - wax_on - - wax_off - - electric_spark - - scrape - - shriek - - egg_crack - - dust_plume - - trial_spawner_detected_player - - trial_spawner_detected_player_ominous - - vault_connection - - dust_pillar - - ominous_spawning - - raid_omen - - trial_omen - ## ## Tips for reviewing particle data (as of 1.20.5) - ## Inside the registry code, each particle can have an associated "options" type and - ## each options type can add additional data to be encoded. - ## For example, this line - ## public static final ParticleType BLOCK = register("block", false, BlockParticleOption::codec, BlockParticleOption::streamCodec); - ## will read the stream codec from BlockParticleOption.java's streamCodec member; then we see - ## return ByteBufCodecs.idMapper(Block.BLOCK_STATE_REGISTRY).map(var1 -> new BlockParticleOption(var0, var1), var0x -> var0x.state); - ## this encodes with the ByteBufCodecs.idMapper function. Inside this function we find - ## public void encode(ByteBuf var1x, T var2) { - ## int var3 = var1.applyAsInt(var2); - ## VarInt.write(var1x, var3); - ## } - ## which as we can see writes the varint to the buffer. - ## If you want to see all the serializers try regexp searching "StreamCodec.*Particle" - data: type ? - if block or block_marker or falling_dust or dust_pillar: varint - if dust: - red: f32 - green: f32 - blue: f32 - scale: f32 - if dust_color_transition: - fromRed: f32 - fromGreen: f32 - fromBlue: f32 - scale: f32 - toRed: f32 - toGreen: f32 - toBlue: f32 - if entity_effect: i32 - if item: Slot - if sculk_charge: f32 - if shriek: varint - if vibration: - positionType: varint => - - block - - entity - position: positionType ? - if block: position - if entity: - entityId: varint - entityEyeHeight: f32 - ticks: varint - ingredient: Slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - soundSource: varint => - 0: master - 1: music - 2: record - 3: weather - 4: block - 5: hostile - 6: neutral - 7: player - 8: ambient - 9: voice - packedChunkPos: - z: i32 - x: i32 - previousMessages: []varint - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - entityMetadataEntry: - key: u8 - type: varint => - - byte - - int - - long - - float - - string - - component - - optional_component - - item_stack - - boolean - - rotations - - block_pos - - optional_block_pos - - direction - - optional_uuid - - block_state - - optional_block_state - - compound_tag - - particle - - particles - - villager_data - - optional_unsigned_int - - pose - - cat_variant - - wolf_variant - - frog_variant - - optional_global_pos - - painting_variant - - sniffer_state - - armadillo_state - - vector3 - - quaternion - value: type ? - if byte: i8 - if int: varint - if long: varlong - if float: f32 - if string: string - if component: anonymousNbt - if optional_component: ["option", "anonymousNbt"] - if item_stack: Slot - if boolean: bool - if rotations: - pitch: f32 - yaw: f32 - roll: f32 - if block_pos: position - if optional_block_pos: ["option", "position"] - if direction: varint - if optional_uuid: ["option", "UUID"] - if block_state: varint - if optional_block_state: optvarint - if compound_tag: anonymousNbt - if particle: Particle - if particles: Particle[]varint - if villager_data: - villagerType: varint - villagerProfession: varint - level: varint - if optional_unsigned_int: optvarint - if pose: varint - if cat_variant: varint - if wolf_variant: ["registryEntryHolder", { - "baseName": "variantId", - "otherwise": { name: "variantData", type: "EntityMetadataWolfVariant" } - }] - if frog_variant: varint - if optional_global_pos: ["option", "string"] - if painting_variant: ["registryEntryHolder", { - "baseName": "variantId", - "otherwise": { name: "variantData", type: "EntityMetadataPaintingVariant" } - }] - if sniffer_state: varint - if armadillo_state: varint - if vector3: vec3f - if quaternion: vec4f - EntityMetadataPaintingVariant: - width: i32 - height: i32 - assetId: string - title?: anonymousNbt - author?: anonymousNbt - EntityMetadataWolfVariant: - wildTexture: string - tameTexture: string - angryTexture: string - biome: IDSet - - entityMetadata: ["entityMetadataLoop", { "endVal": 255, "type": "entityMetadataEntry" }] - minecraft_simple_recipe_format: - category: varint - minecraft_smelting_format: - group: string - category: varint - ingredient: ingredient - result: Slot - experience: f32 - cookTime: varint - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: - _: [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - y: i16 - type: varint - nbtData: anonOptionalNbt - chat_session?: - uuid: UUID - publicKey: - expireTime: i64 - keyBytes: [ - "buffer", - { - "countType": "varint" - } - ] - keySignature: [ - "buffer", - { - "countType": "varint" - } - ] - game_profile: - name: string - properties: []varint - name: string - value: string - signature?: string - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: varint => - - brigadier:bool - - brigadier:float - - brigadier:double - - brigadier:integer - - brigadier:long - - brigadier:string - - minecraft:entity - - minecraft:game_profile - - minecraft:block_pos - - minecraft:column_pos - - minecraft:vec3 - - minecraft:vec2 - - minecraft:block_state - - minecraft:block_predicate - - minecraft:item_stack - - minecraft:item_predicate - - minecraft:color - - minecraft:component - - minecraft:style - - minecraft:message - - minecraft:nbt - - minecraft:nbt_tag - - minecraft:nbt_path - - minecraft:objective - - minecraft:objective_criteria - - minecraft:operation - - minecraft:particle - - minecraft:angle - - minecraft:rotation - - minecraft:scoreboard_slot - - minecraft:score_holder - - minecraft:swizzle - - minecraft:team - - minecraft:item_slot - - minecraft:item_slots # 1.20.5 - - minecraft:resource_location - - minecraft:function - - minecraft:entity_anchor - - minecraft:int_range - - minecraft:float_range - - minecraft:dimension - - minecraft:gamemode - - minecraft:time - - minecraft:resource_or_tag - - minecraft:resource_or_tag_key - - minecraft:resource - - minecraft:resource_key - - minecraft:template_mirror - - minecraft:template_rotation - - minecraft:heightmap - - minecraft:loot_table # 1.20.5 - - minecraft:loot_predicate # 1.20.5 - - minecraft:loot_modifier # 1.20.5 - - minecraft:uuid - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:dimension: void - if minecraft:gamemode: void - if minecraft:time: - min: i32 - if minecraft:resource_or_tag: - registry: string - if minecraft:resource_or_tag_key: - registry: string - if minecraft:resource: - registry: string - if minecraft:resource_key: - registry: string - if minecraft:template_mirror: void - if minecraft:template_rotation: void - if minecraft:heightmap: void - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - # # Shared Packets - # These are packets that are shared between multiple states. - # They are defined here to avoid duplication. - # ===== - # MC: ServerboundClientInformationPacket - packet_common_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - enableTextFiltering: bool - enableServerListing: bool - # MC: ClientboundCookieRequestPacket - packet_common_cookie_request: - cookie: string - # MC: ClientboundStoreCookiePacket - packet_common_store_cookie: - key: string - value: ByteArray - # MC: ClientboundTransferPacket - packet_common_transfer: - host: string - port: varint - # MC: ServerboundCookieResponsePacket - packet_common_cookie_response: - key: string - value?: ByteArray - # MC: ServerboundSelectKnownPacks - # MC: ClientboundSelectKnownPacks - packet_common_select_known_packs: - packs: []varint - namespace: string - id: string - version: string - # MC: ClientboundResourcePackPopPacket - packet_common_remove_resource_pack: - uuid?: UUID - # MC: ClientboundResourcePackPushPacket - packet_common_add_resource_pack: - uuid: UUID - url: string - hash: string - forced: bool - promptMessage?: anonymousNbt # MC: ClientboundCustomReportDetailsPacket packet_common_custom_report_details: # 1.21.1 details: []varint @@ -1106,8 +279,9 @@ - forums - news - announcements + # MC: ClientboundServerLinksPacket - # This packet contains a list of links that the Notchian client will display in the menu + # This packet contains a list of links that the Notchian client will display in the menu # available from the pause menu. Link labels can be built-in or custom (i.e., any text). packet_common_server_links: links: []varint @@ -1118,183 +292,7 @@ if false: anonymousNbt link: string -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping -^status.toClient.types: - # MC: ClientboundStatusResponsePacket - packet_server_info: - response: string - # MC: ClientboundPongResponsePacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping -^status.toServer.types: - # MC: ServerboundStatusRequestPacket - packet_ping_start: - # Empty - # MC: ServerboundPingRequestPacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping -^login.toClient.types: - # MC: ClientboundLoginDisconnectPacket - packet_disconnect: - reason: string - # MC: ClientboundHelloPacket - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - shouldAuthenticate: bool - # MC: ClientboundGameProfilePacket - packet_success: - uuid: UUID - username: string - properties: []varint - name: string - value: string - signature?: string - strictErrorHandling: bool - # MC: ClientboundLoginCompressionPacket - packet_compress: - threshold: varint - # MC: ClientboundCustomQueryPacket - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - ## (Cookie Request is Common) ## - packet: - name: varint => - - disconnect - - encryption_begin - - success - - compress - - login_plugin_request - - cookie_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - if cookie_request: packet_common_cookie_request -^login.toServer.types: - # MC: ServerboundHelloPacket - packet_login_start: - username: string - playerUUID: UUID - # MC: ServerboundKeyPacket - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ServerboundCustomQueryAnswerPacket - packet_login_plugin_response: - messageId: varint - data?: restBuffer - # MC: ServerboundLoginAcknowledgedPacket - packet_login_acknowledged: - # Empty - ## (Cookie Response is Common) ## - packet: - name: varint => - - login_start - - encryption_begin - - login_plugin_response - - login_acknowledged - - cookie_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response - if login_acknowledged: packet_login_acknowledged - if cookie_response: packet_common_cookie_response ^configuration.toClient.types: - ## (Cookie Request is common) - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDisconnectPacket - packet_disconnect: - reason: anonymousNbt - # MC: ClientboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundResetChatPacket - packet_reset_chat: - # Empty - # MC: ClientboundRegistryDataPacket - packet_registry_data: - # The server can send multiple registries - id: string - entries: []varint - key: string - value?: anonymousNbt - ## (Store cookie and Transfer are Common) ## - # MC: ClientboundUpdateEnabledFeaturesPacket - packet_feature_flags: - features: string[]varint - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags ## (Select known packs is common) packet: name: varint => @@ -1333,26 +331,8 @@ if select_known_packs: packet_common_select_known_packs if custom_report_details: packet_common_custom_report_details if server_links: packet_common_server_links + ^configuration.toServer.types: - ## (Settings is Common) ## - ## (Cookie Response is Common) ## - # MC: ServerboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ServerboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint packet: name: varint => - settings @@ -1376,204 +356,8 @@ if select_known_packs: packet_common_select_known_packs if custom_report_details: packet_common_custom_report_details if server_links: packet_common_server_links -^play.toClient.types: - # World state information for spawn and respawn packets - SpawnInfo: - dimension: varint - name: string - hashedSeed: i64 - gamemode: i8 => - - survival - - creative - - adventure - - spectator - previousGamemode: u8 - isDebug: bool - isFlat: bool - death?: - dimensionName: string - location: position - portalCooldown: varint - # MC: ClientboundAddEntityPacket - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - headPitch: i8 - objectData: varint - velocity: vec3i16 - # MC: ClientboundAddExperienceOrbPacket - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - # MC: ClientboundAnimatePacket - packet_animation: - entityId: varint - animation: u8 - # MC: ClientboundAwardStatsPacket - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - # MC: ClientboundBlockChangedAckPacket - packet_acknowledge_player_digging: - sequenceId: varint - # MC: ClientboundBlockDestructionPacket - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - # MC: ClientboundBlockEntityDataPacket - packet_tile_entity_data: - location: position - action: varint - nbtData: anonOptionalNbt - # MC: ClientboundBlockEventPacket - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - # MC: ClientboundBlockUpdatePacket - packet_block_change: - location: position - type: varint - # MC: ClientboundBossEventPacket - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: anonymousNbt - if 3: anonymousNbt - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - # MC: ClientboundChangeDifficultyPacket - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - # MC: ClientboundChunkBatchFinishedPacket - packet_chunk_batch_finished: - batchSize: varint - # MC: ClientboundChunkBatchStartPacket - packet_chunk_batch_start: - # Empty - # MC: ClientboundChunksBiomesPacket - packet_chunk_biomes: - biomes: []varint - position: packedChunkPos - data: ByteArray - # MC: ClientboundClearTitlesPacket - packet_clear_titles: - reset: bool - # MC: ClientboundCommandSuggestionsPacket - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: anonymousNbt - # MC: ClientboundCommandsPacket - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - # MC: ClientboundContainerClosePacket - packet_close_window: - windowId: ContainerID - # MC: ClientboundContainerSetContentPacket - packet_window_items: - windowId: ContainerID - stateId: varint - items: Slot[]varint - carriedItem: Slot - # MC: ClientboundContainerSetDataPacket - packet_craft_progress_bar: - windowId: ContainerID - property: i16 - value: i16 - # MC: ClientboundContainerSetSlotPacket - packet_set_slot: - windowId: ContainerID - stateId: varint - slot: i16 - item: Slot - ## (Cookie Request is Common) - # MC: ClientboundCooldownPacket - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - # MC: ClientboundCustomChatCompletionsPacket - packet_chat_suggestions: - action: varint - entries: string[]varint - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDamageEventPacket - packet_damage_event: - entityId: varint - sourceTypeId: varint - sourceCauseId: varint - sourceDirectId: varint - sourcePosition?: vec3f64 - # MC: ClientboundDebugSamplePacket - packet_debug_sample: - sample: i64[]varint - type: varint - # MC: ClientboundDeleteChatPacket - packet_hide_message: - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - # MC: ClientboundDisconnectPacket - packet_kick_disconnect: - reason: anonymousNbt - - ## client\net\minecraft\network\chat\ChatTypeDecoration.java - ## via client\net\minecraft\network\chat\ChatType.java - ChatTypeParameterType: varint => - - content - - sender - - target - ChatType: - translationKey: string - parameters: ChatTypeParameterType[]varint - style: anonymousNbt - ChatTypes: - chat: ChatType - narration: ChatType +^play.toClient.types: ChatTypesHolder: ["registryEntryHolder", { "baseName": "chatType", "otherwise": { name: "data", type: "ChatTypes" } }] # MC: ClientboundDisguisedChatPacket @@ -1582,232 +366,7 @@ type: ChatTypesHolder name: anonymousNbt target?: anonymousNbt - # MC: ClientboundEntityEventPacket - packet_entity_status: - entityId: i32 - entityStatus: i8 - # MC: ClientboundExplodePacket - packet_explosion: - x: f64 - y: f64 - z: f64 - radius: f32 - affectedBlockOffsets: []varint - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - block_interaction_type: varint - small_explosion_particle: Particle - large_explosion_particle: Particle - sound: ItemSoundHolder - # MC: ClientboundForgetLevelChunkPacket - packet_unload_chunk: - chunkZ: i32 - chunkX: i32 - # MC: ClientboundGameEventPacket - packet_game_state_change: - reason: u8 - gameMode: f32 - # MC: ClientboundHorseScreenOpenPacket - packet_open_horse_window: - windowId: ContainerID - nbSlots: varint - entityId: i32 - # MC: ClientboundHurtAnimationPacket - packet_hurt_animation: - entityId: varint - yaw: f32 - # MC: ClientboundInitializeBorderPacket - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varint - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundLevelChunkWithLightPacket - packet_map_chunk: - x: i32 - z: i32 - heightmaps: anonymousNbt - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: chunkBlockEntity[]varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - # MC: ClientboundLevelEventPacket - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - # MC: ClientboundLevelParticlesPacket - packet_world_particles: - longDistance: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - velocityOffset: f32 - amount: i32 - particle: Particle - # MC: ClientboundLightUpdatePacket - packet_update_light: - chunkX: varint - chunkZ: varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - # MC: ClientboundLoginPacket - packet_login: - entityId: i32 - isHardcore: bool - worldNames: string[]varint - maxPlayers: varint - viewDistance: varint - simulationDistance: varint - reducedDebugInfo: bool - enableRespawnScreen: bool - doLimitedCrafting: bool - worldState: SpawnInfo - enforcesSecureChat: bool - # MC: ClientboundMapItemDataPacket - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: anonymousNbt - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ClientboundMerchantOffersPacket - packet_trade_list: - windowId: ContainerID - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.20.5/client/net/minecraft/world/item/trading/MerchantOffer.java#L210 - trades: []varint - inputItem1: - itemId: varint - itemCount: varint - addedComponentCount: varint - components: SlotComponent[]$addedComponentCount - outputItem: Slot - inputItem2?: - itemId: varint - itemCount: varint - addedComponentCount: varint - components: SlotComponent[]$addedComponentCount - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - # MC: ClientboundMoveEntityPacket.Pos - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - # MC: ClientboundMoveEntityPacket.PosRot - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveEntityPacket.Rot - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - # MC: ClientboundOpenBookPacket - packet_open_book: - hand: varint - # MC: ClientboundOpenScreenPacket - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: anonymousNbt - # MC: ClientboundOpenSignEditorPacket - packet_open_sign_entity: - location: position - isFrontText: bool - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundPongResponsePacket - packet_ping_response: - id: i64 - # MC: ClientboundPlaceGhostRecipePacket - packet_craft_recipe_response: - windowId: ContainerID - recipe: string - # MC: ClientboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 + # MC: ClientboundPlayerChatPacket packet_player_chat: senderUuid: UUID @@ -1830,417 +389,7 @@ type: ChatTypesHolder networkName: anonymousNbt networkTargetName?: anonymousNbt - # MC: ClientboundPlayerCombatEndPacket - packet_end_combat_event: - duration: varint - # MC: ClientboundPlayerCombatEnterPacket - packet_enter_combat_event: - # Empty - # MC: ClientboundPlayerCombatKillPacket - packet_death_combat_event: - playerId: varint - message: anonymousNbt - # MC: ClientboundPlayerInfoRemovePacket - packet_player_remove: - players: UUID[]varint - # MC: ClientboundPlayerInfoUpdatePacket - packet_player_info: - ## ClientboundPlayerInfoUpdatePacket.java#L160 - action: ["bitflags", { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name" - ] - }] - data: []varint - uuid: UUID - player: ../action/add_player ? - if true: game_profile - default: void - chatSession: ../action/initialize_chat ? - if true: chat_session - default: void - gamemode: ../action/update_game_mode ? - if true: varint - default: void - listed: ../action/update_listed ? - if true: varint - default: void - latency: ../action/update_latency ? - if true: varint - default: void - displayName: ../action/update_display_name ? - if true: ["option", "anonymousNbt"] - default: void - # MC: ClientboundPlayerLookAtPacket - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: varint - default: void - # Relative.java - PositionUpdateRelatives: ["bitflags", { - "type": "u8", - "flags": ["x", "y", "z", "yaw", "pitch"] - }] - # MC: ClientboundPlayerPositionPacket - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: PositionUpdateRelatives - teleportId: varint - # MC: ClientboundRecipePacket - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - blastFurnaceOpen: bool - filteringBlastFurnace: bool - smokerBookOpen: bool - filteringSmoker: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - # MC: ClientboundRemoveEntitiesPacket - packet_entity_destroy: - entityIds: varint[]varint - # MC: ClientboundRemoveMobEffectPacket - packet_remove_entity_effect: - entityId: varint - effectId: varint - # MC: ClientboundResetScorePacket - packet_reset_score: - entity_name: string - objective_name?: string - # MC: ClientboundRespawnPacket - packet_respawn: - worldState: SpawnInfo - # Bit field: 0b1 - KEEP_ATTRIBUTE_MODIFIERS, 0b10 - KEEP_ENTITY_DATA - copyMetadata: u8 - # MC: ClientboundRotateHeadPacket - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - # MC: ClientboundSectionBlocksUpdatePacket - packet_multi_block_change: - chunkCoordinates: [ "bitfield", [ - { "name": "x", "size": 22, "signed": true }, - { "name": "z", "size": 22, "signed": true }, - { "name": "y", "size": 20, "signed": true } - ]] - records: varint[]varint - # MC: ClientboundSelectAdvancementsTabPacket - packet_select_advancement_tab: - id?: string - # MC: ClientboundServerDataPacket - packet_server_data: - motd: anonymousNbt - iconBytes?: ByteArray - # MC: ClientboundSetActionBarTextPacket - packet_action_bar: - text: anonymousNbt - # MC: ClientboundSetBorderCenterPacket - packet_world_border_center: - x: f64 - z: f64 - # MC: ClientboundSetBorderLerpSizePacket - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varint - # MC: ClientboundSetBorderSizePacket - packet_world_border_size: - diameter: f64 - # MC: ClientboundSetBorderWarningDelayPacket - packet_world_border_warning_delay: - warningTime: varint - # MC: ClientboundSetBorderWarningDistancePacket - packet_world_border_warning_reach: - warningBlocks: varint - # MC: ClientboundSetCameraPacket - packet_camera: - cameraId: varint - # MC: ClientboundSetCarriedItemPacket - packet_held_item_slot: - slot: i8 - # MC: ClientboundSetChunkCacheCenterPacket - packet_update_view_position: - chunkX: varint - chunkZ: varint - # MC: ClientboundSetChunkCacheRadiusPacket - packet_update_view_distance: - viewDistance: varint - # MC: ClientboundSetDefaultSpawnPositionPacket - packet_spawn_position: - location: position - angle: f32 - # MC: ClientboundSetDisplayObjectivePacket - packet_scoreboard_display_objective: - position: varint - name: string - # MC: ClientboundSetEntityDataPacket - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - # MC: ClientboundSetEntityLinkPacket - packet_attach_entity: - entityId: i32 - vehicleId: i32 - # MC: ClientboundSetEntityMotionPacket - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - # MC: ClientboundSetEquipmentPacket - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] - # MC: ClientboundSetExperiencePacket - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - # MC: ClientboundSetHealthPacket - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - # MC: ClientboundSetObjectivePacket - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - type: action ? - if 0: varint - if 2: varint - default: void - number_format: action ? - if 0: [ - "option", - "varint" - ] - if 2: [ - "option", - "varint" - ] - default: void - styling: action ? - if 0: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - if 2: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - default: void - # MC: ClientboundSetPassengersPacket - packet_set_passengers: - entityId: varint - passengers: varint[]varint - # MC: ClientboundSetPlayerTeamPacket - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - suffix: mode ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - # MC: ClientboundSetScorePacket - packet_scoreboard_score: - itemName: string - scoreName: string - value: varint - display_name?: anonymousNbt - number_format?: varint - styling: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - # MC: ClientboundSetSimulationDistancePacket - packet_simulation_distance: - distance: varint - # MC: ClientboundSetSubtitleTextPacket - packet_set_title_subtitle: - text: anonymousNbt - # MC: ClientboundSetTimePacket - packet_update_time: - age: i64 - time: i64 - # MC: ClientboundSetTitleTextPacket - packet_set_title_text: - text: anonymousNbt - # MC: ClientboundSetTitlesAnimationPacket - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - # MC: ClientboundSoundEntityPacket - packet_entity_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - entityId: varint - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundSoundPacket - packet_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundStartConfigurationPacket - packet_start_configuration: - # Empty - # MC: ClientboundStopSoundPacket - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - ## (Store Cookie is Common) - # MC: ClientboundSystemChatPacket - packet_system_chat: - content: anonymousNbt - isActionBar: bool - # MC: ClientboundTabListPacket - packet_playerlist_header: - header: anonymousNbt - footer: anonymousNbt - # MC: ClientboundTagQueryPacket - packet_nbt_query_response: - transactionId: varint - nbt: anonOptionalNbt - # MC: ClientboundTakeItemEntityPacket - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - # MC: ClientboundTeleportEntityPacket - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundTickingStatePacket - packet_set_ticking_state: - tick_rate: f32 - is_frozen: bool - # MC: ClientboundTickingStepPacket - packet_step_tick: - tick_steps: varint - ## (Transfer is common) - # MC: ClientboundUpdateAdvancementsPacket - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: anonymousNbt - description: anonymousNbt - icon: Slot - frameType: varint - flags: ["bitfield", [ - { "name": "unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } - ]] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - requirements: []varint - _: string[]varint - sendsTelemtryData: bool - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 # MC: ClientboundUpdateAttributesPacket packet_entity_update_attributes: entityId: varint @@ -2273,101 +422,7 @@ uuid: string amount: f64 operation: i8 - # MC: ClientboundUpdateMobEffectPacket - packet_entity_effect: - entityId: varint - effectId: varint - amplifier: varint - duration: varint - # a bitfield of 0x01 for ambient, 0x02 for show particles - # flags: ["bitfield", [ - # { "name": "unused", "size": 4 }, - # { "name": "ambient", "size": 1 }, - # { "name": "showParticles", "size": 1 }, - # { "name": "showIcon", "size": 1 }, - # { "name": "blend", "size": 1 } - # ]] - flags: u8 - # MC: ClientboundUpdateRecipesPacket - packet_declare_recipes: - recipes: []varint - name: string - type: varint => - - minecraft:crafting_shaped - - minecraft:crafting_shapeless - - minecraft:crafting_special_armordye - - minecraft:crafting_special_bookcloning - - minecraft:crafting_special_mapcloning - - minecraft:crafting_special_mapextending - - minecraft:crafting_special_firework_rocket - - minecraft:crafting_special_firework_star - - minecraft:crafting_special_firework_star_fade - - minecraft:crafting_special_tippedarrow - - minecraft:crafting_special_bannerduplicate - - minecraft:crafting_special_shielddecoration - - minecraft:crafting_special_shulkerboxcoloring - - minecraft:crafting_special_suspiciousstew - - minecraft:crafting_special_repairitem - - minecraft:smelting - - minecraft:blasting - - minecraft:smoking - - minecraft:campfire_cooking - - minecraft:stonecutting - - minecraft:smithing_transform - - minecraft:smithing_trim - - minecraft:crafting_decorated_pot - data: type ? - if minecraft:crafting_shapeless: - group: string - category: varint - ingredients: ingredient[]varint - result: Slot - if minecraft:crafting_shaped: - group: string - category: varint - gridWidth: varint - gridHeight: varint - ingredients: []$gridWidth - _: ingredient[]$gridHeight - result: Slot - showNotification: bool - if minecraft:crafting_special_armordye: minecraft_simple_recipe_format - if minecraft:crafting_special_bookcloning: minecraft_simple_recipe_format - if minecraft:crafting_special_mapcloning: minecraft_simple_recipe_format - if minecraft:crafting_special_mapextending: minecraft_simple_recipe_format - if minecraft:crafting_special_firework_rocket: minecraft_simple_recipe_format - if minecraft:crafting_special_firework_star: minecraft_simple_recipe_format - if minecraft:crafting_special_firework_star_fade: minecraft_simple_recipe_format - if minecraft:crafting_special_repairitem: minecraft_simple_recipe_format - if minecraft:crafting_special_tippedarrow: minecraft_simple_recipe_format - if minecraft:crafting_special_bannerduplicate: minecraft_simple_recipe_format - if minecraft:crafting_special_banneraddpattern: minecraft_simple_recipe_format - if minecraft:crafting_special_shielddecoration: minecraft_simple_recipe_format - if minecraft:crafting_special_shulkerboxcoloring: minecraft_simple_recipe_format - if minecraft:crafting_special_suspiciousstew: minecraft_simple_recipe_format - if minecraft:smelting: minecraft_smelting_format - if minecraft:blasting: minecraft_smelting_format - if minecraft:smoking: minecraft_smelting_format - if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: - group: string - ingredient: ingredient - result: Slot - if minecraft:smithing_transform: - template: ingredient - base: ingredient - addition: ingredient - result: Slot - if minecraft:smithing_trim: - template: ingredient - base: ingredient - addition: ingredient - if minecraft:crafting_decorated_pot: minecraft_simple_recipe_format - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags + # MC: ClientboundProjectilePowerPacket packet_set_projectile_power: id: varint @@ -2626,433 +681,24 @@ if server_links: packet_common_server_links ^play.toServer.types: - # MC: ServerboundAcceptTeleportationPacket - packet_teleport_confirm: - teleportId: varint - # MC: ServerboundBlockEntityTagQueryPacket - packet_query_block_nbt: - transactionId: varint - location: position - # MC: ServerboundChangeDifficultyPacket - packet_set_difficulty: - newDifficulty: u8 - # MC: ServerboundChatAckPacket - packet_message_acknowledgement: - count: varint - # MC: ServerboundChatCommandPacket - packet_chat_command: - command: string - # MC: ServerboundChatCommandSignedPacket - packet_chat_command_signed: - command: string - timestamp: i64 - salt: i64 - argumentSignatures: []varint - argumentName: string - signature: [ - "buffer", - { - "count": 256 - } - ] - messageCount: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - # MC: ServerboundChatPacket - packet_chat_message: - message: string - timestamp: i64 - salt: i64 - signature?: [ - "buffer", - { - "count": 256 - } - ] - offset: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - # MC: ServerboundChatSessionUpdatePacket - packet_chat_session_update: - sessionUUID: UUID - expireTime: i64 - publicKey: ByteArray - signature: ByteArray - # MC: ServerboundChunkBatchReceivedPacket - packet_chunk_batch_received: - chunksPerTick: f32 - # MC: ServerboundClientCommandPacket - packet_client_command: - actionId: varint # MC: ServerboundCommandSuggestionPacket packet_tab_complete: transactionId: varint text: string - # MC: ServerboundConfigurationAcknowledgedPacket - packet_configuration_acknowledged: - # Empty + # MC: ServerboundContainerButtonClickPacket packet_enchant_item: windowId: ContainerID enchantment: varint - # MC: ServerboundContainerClickPacket - packet_window_click: - windowId: ContainerID - stateId: varint - slot: i16 - mouseButton: i8 - mode: varint - changedSlots: []varint - location: i16 - item: Slot - cursorItem: Slot - # MC: ServerboundContainerClosePacket - packet_close_window: - windowId: ContainerID - # MC: ServerboundContainerSlotStateChangedPacket - packet_set_slot_state: - slot_id: varint - window_id: varint - state: bool - # MC: ServerboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ServerboundDebugSampleSubscriptionPacket - packet_debug_sample_subscription: - type: varint - # MC: ServerboundEditBookPacket - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - # MC: ServerboundEntityTagQuery - packet_query_entity_nbt: - transactionId: varint - entityId: varint - # MC: ServerboundInteractPacket - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - # MC: ServerboundJigsawGeneratePacket - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundLockDifficultyPacket - packet_lock_difficulty: - locked: bool - # MC: ServerboundMovePlayerPacket.Pos - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - # MC: ServerboundMovePlayerPacket.PosRot - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - # MC: ServerboundMovePlayerPacket.Rot - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - # MC: ServerboundMovePlayerPacket.StatusOnly - packet_flying: - onGround: bool - # MC: ServerboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - # MC: ServerboundPaddleBoatPacket - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - # MC: ServerboundPickItemPacket - packet_pick_item: - slot: varint - # MC: ServerboundPingRequestPacket - packet_ping_request: - id: i64 + # MC: ServerboundPlaceRecipePacket packet_craft_recipe_request: windowId: ContainerID recipe: string makeAll: bool - # MC: ServerboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - # MC: ServerboundPlayerActionPacket - packet_block_dig: - status: varint - location: position - face: i8 - sequence: varint - # MC: ServerboundPlayerCommandPacket - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - # MC: ServerboundPlayerInputPacket - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundRecipeBookChangeSettingsPacket - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - # MC: ServerboundRecipeBookSeenRecipePacket - packet_displayed_recipe: - recipeId: string - # MC: ServerboundRenameItemPacket - packet_name_item: - name: string - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint - # MC: ServerboundSeenAdvancementsPacket - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - # MC: ServerboundSelectTradePacket - packet_select_trade: - slot: varint - # MC: ServerboundSetBeaconPacket - packet_set_beacon_effect: - primary_effect?: varint - secondary_effect?: varint - # MC: ServerboundSetCarriedItemPacket - packet_held_item_slot: - slotId: i16 - # MC: ServerboundSetCommandBlockPacket - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - # MC: ServerboundSetCommandMinecartPacket - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - # MC: ServerboundSetCreativeModeSlotPacket - packet_set_creative_slot: - slot: i16 - item: Slot - # MC: ServerboundSetJigsawBlockPacket - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - selection_priority: varint - placement_priority: varint - # MC: ServerboundSetStructureBlockPacket - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varint - flags: u8 - # MC: ServerboundSignUpdatePacket - packet_update_sign: - location: position - isFrontText: bool - text1: string - text2: string - text3: string - text4: string - # MC: ServerboundSwingPacket - packet_arm_animation: - hand: varint - # MC: ServerboundTeleportToEntityPacket - packet_spectate: - target: UUID - # MC: ServerboundUseItemOnPacket - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - sequence: varint + # MC: ServerboundUseItemPacket packet_use_item: hand: varint sequence: varint rotation: vec2f - - packet: - name: varint => - - teleport_confirm - - query_block_nbt - - set_difficulty - - message_acknowledgement - - chat_command - - chat_command_signed - - chat_message - - chat_session_update - - chunk_batch_received - - client_command - - settings - - tab_complete - - configuration_acknowledged - - enchant_item - - window_click - - close_window - - set_slot_state - - cookie_response - - custom_payload - - debug_sample_subscription - - edit_book - - query_entity_nbt - - use_entity - - generate_structure - - keep_alive - - lock_difficulty - - position - - position_look - - look - - flying - - vehicle_move - - steer_boat - - pick_item - - ping_request - - craft_recipe_request - - abilities - - block_dig - - entity_action - - steer_vehicle - - pong - - recipe_book - - displayed_recipe - - name_item - - resource_pack_receive - - advancement_tab - - select_trade - - set_beacon_effect - - held_item_slot - - update_command_block - - update_command_block_minecart - - set_creative_slot - - update_jigsaw_block - - update_structure_block - - update_sign - - arm_animation - - spectate - - block_place - - use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if query_block_nbt: packet_query_block_nbt - if set_difficulty: packet_set_difficulty - if message_acknowledgement: packet_message_acknowledgement - if chat_command: packet_chat_command - if chat_command_signed: packet_chat_command_signed - if chat_message: packet_chat_message - if chat_session_update: packet_chat_session_update - if chunk_batch_received: packet_chunk_batch_received - if client_command: packet_client_command - if settings: packet_common_settings - if tab_complete: packet_tab_complete - if configuration_acknowledged: packet_configuration_acknowledged - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if set_slot_state: packet_set_slot_state - if cookie_response: packet_common_cookie_response - if custom_payload: packet_custom_payload - if debug_sample_subscription: packet_debug_sample_subscription - if edit_book: packet_edit_book - if query_entity_nbt: packet_query_entity_nbt - if use_entity: packet_use_entity - if generate_structure: packet_generate_structure - if keep_alive: packet_keep_alive - if lock_difficulty: packet_lock_difficulty - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if pick_item: packet_pick_item - if ping_request: packet_ping_request - if craft_recipe_request: packet_craft_recipe_request - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if pong: packet_pong - if recipe_book: packet_recipe_book - if displayed_recipe: packet_displayed_recipe - if name_item: packet_name_item - if resource_pack_receive: packet_resource_pack_receive - if advancement_tab: packet_advancement_tab - if select_trade: packet_select_trade - if set_beacon_effect: packet_set_beacon_effect - if held_item_slot: packet_held_item_slot - if update_command_block: packet_update_command_block - if update_command_block_minecart: packet_update_command_block_minecart - if set_creative_slot: packet_set_creative_slot - if update_jigsaw_block: packet_update_jigsaw_block - if update_structure_block: packet_update_structure_block - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item diff --git a/data/pc/1.21.1/protocol.json b/data/pc/1.21.1/protocol.json index d23821d49..df789f4c1 100644 --- a/data/pc/1.21.1/protocol.json +++ b/data/pc/1.21.1/protocol.json @@ -3380,296 +3380,6 @@ } } }, - "configuration": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "add_resource_pack": "packet_common_add_resource_pack", - "cookie_request": "packet_common_cookie_request", - "custom_payload": "packet_custom_payload", - "custom_report_details": "packet_common_custom_report_details", - "disconnect": "packet_disconnect", - "feature_flags": "packet_feature_flags", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "reset_chat": "packet_reset_chat", - "select_known_packs": "packet_common_select_known_packs", - "server_links": "packet_common_server_links", - "store_cookie": "packet_common_store_cookie", - "tags": "packet_tags", - "transfer": "packet_common_transfer" - } - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "packet_feature_flags": [ - "container", - [ - { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_registry_data": [ - "container", - [ - { - "name": "id", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] - } - ] - ], - "packet_reset_chat": [ - "container", - [] - ], - "packet_tags": [ - "container", - [ - { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_report_details", - "0x09": "server_links" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "custom_report_details": "packet_common_custom_report_details", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "server_links": "packet_common_server_links", - "settings": "packet_common_settings" - } - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_resource_pack_receive": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "result", - "type": "varint" - } - ] - ] - } - } - }, "play": { "toClient": { "types": { @@ -8478,285 +8188,575 @@ "type": "string" }, { - "name": "pool", - "type": "string" + "name": "pool", + "type": "string" + }, + { + "name": "finalState", + "type": "string" + }, + { + "name": "jointType", + "type": "string" + }, + { + "name": "selection_priority", + "type": "varint" + }, + { + "name": "placement_priority", + "type": "varint" + } + ] + ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" }, { - "name": "finalState", + "name": "metadata", "type": "string" }, { - "name": "jointType", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "selection_priority", + "name": "seed", "type": "varint" }, { - "name": "placement_priority", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_update_sign": [ + "packet_use_entity": [ "container", [ { - "name": "location", - "type": "position" + "name": "target", + "type": "varint" }, { - "name": "isFrontText", - "type": "bool" + "name": "mouse", + "type": "varint" }, { - "name": "text1", - "type": "string" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "text2", - "type": "string" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "text3", - "type": "string" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "text4", - "type": "string" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + }, + { + "name": "sneaking", + "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_use_item": [ "container", [ { - "name": "location", - "type": "position" + "name": "hand", + "type": "varint" }, { - "name": "action", + "name": "sequence", "type": "varint" }, { - "name": "mode", - "type": "varint" + "name": "rotation", + "type": "vec2f" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "name", - "type": "string" + "name": "y", + "type": "f64" }, { - "name": "offset_x", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "offset_y", - "type": "i8" + "name": "yaw", + "type": "f32" }, { - "name": "offset_z", - "type": "i8" + "name": "pitch", + "type": "f32" + } + ] + ], + "packet_window_click": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" }, { - "name": "size_x", - "type": "i8" + "name": "stateId", + "type": "varint" }, { - "name": "size_y", - "type": "i8" + "name": "slot", + "type": "i16" }, { - "name": "size_z", + "name": "mouseButton", "type": "i8" }, { - "name": "mirror", + "name": "mode", "type": "varint" }, { - "name": "rotation", - "type": "varint" + "name": "changedSlots", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" + } + ] + ] + } + ] }, { - "name": "metadata", - "type": "string" + "name": "cursorItem", + "type": "Slot" + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links" + }, + "type": "varint" + } + ] }, { - "name": "integrity", - "type": "f32" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "add_resource_pack": "packet_common_add_resource_pack", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" + } + } + ] + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" }, { - "name": "seed", - "type": "varint" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "anonymousNbt" + } + ] + ], + "packet_feature_flags": [ + "container", + [ + { + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "flags", - "type": "u8" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_use_entity": [ + "packet_ping": [ "container", [ { - "name": "target", - "type": "varint" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_registry_data": [ + "container", + [ { - "name": "mouse", - "type": "varint" + "name": "id", + "type": "string" }, { - "name": "x", + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] } ] - }, + } + ] + ], + "packet_reset_chat": [ + "container", + [] + ], + "packet_tags": [ + "container", + [ { - "name": "y", + "name": "tags", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] - }, + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "z", + "name": "name", "type": [ - "switch", + "mapper", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "mappings": { + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_report_details", + "0x09": "server_links" + }, + "type": "varint" } ] }, { - "name": "hand", + "name": "params", "type": [ "switch", { - "compareTo": "mouse", - "default": "void", + "compareTo": "name", "fields": { - "0": "varint", - "2": "varint" + "cookie_response": "packet_common_cookie_response", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "settings": "packet_common_settings" } } ] - }, - { - "name": "sneaking", - "type": "bool" } ] ], - "packet_use_item": [ + "packet_custom_payload": [ "container", [ { - "name": "hand", - "type": "varint" - }, - { - "name": "sequence", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "rotation", - "type": "vec2f" + "name": "data", + "type": "restBuffer" } ] ], - "packet_vehicle_move": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_window_click": [ + "packet_pong": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_resource_pack_receive": [ + "container", + [ { - "name": "mouseButton", - "type": "i8" + "name": "uuid", + "type": "UUID" }, { - "name": "mode", + "name": "result", "type": "varint" - }, - { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] - }, - { - "name": "cursorItem", - "type": "Slot" } ] ] diff --git a/data/pc/1.21.11/proto.yml b/data/pc/1.21.11/proto.yml index b2f0dafc5..b631daed4 100644 --- a/data/pc/1.21.11/proto.yml +++ b/data/pc/1.21.11/proto.yml @@ -1,70 +1,7 @@ !version: 1.21.11 -!StartDocs: true +!base: 1.21.9 ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - anonymousNbt: native - anonOptionalNbt: native - registryEntryHolder: native - registryEntryHolderSet: native - lpVec3: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec2f: - x: f32 - y: f32 - vec3f: - x: f32 - y: f32 - z: f32 - vec4f: - x: f32 - y: f32 - z: f32 - w: f32 - vec3f64: - x: f64 - y: f64 - z: f64 - vec3i: - x: varint - y: varint - z: varint - vec3i32: - x: i32 - y: i32 - z: i32 - IDSet: ["registryEntryHolderSet", { - "base": { name: "name", type: "string" }, - "otherwise": { name: "ids", type: "varint" } - }] - ContainerID: varint SlotComponentType: varint => - custom_data - max_stack_size @@ -263,7 +200,7 @@ bypassedBy?: string blockSound?: ItemSoundHolder disableSound?: ItemSoundHolder - if food: + if food: nutrition: varint # How much saturation will be given after consuming the item. saturationModifier: f32 @@ -477,125 +414,6 @@ if cat/collar: varint if sheep/color: varint if shulker/color: varint - - ItemSoundEvent: - soundName: string - fixedRange?: f32 - ItemSoundHolder: ["registryEntryHolder", { - "baseName": "soundId", - "otherwise": { name: "data", type: "ItemSoundEvent" } - }] - - ItemFireworkExplosion: - shape: varint => - - small_ball - - large_ball - - star - - creeper - - burst - # The RGB components of the color, encoded as an integer. - colors: i32[]varint - # The RGB components of the color, encoded as an integer. - fadeColors: i32[]varint - # Whether the firework has a trail. - hasTrail: bool - # Whether the firework has a twinkle effect. - hasTwinkle: bool - - ItemEffectDetail: - amplifier: varint - duration: varint - ambient: bool - showParticles: bool - showIcon: bool - hiddenEffect?: ItemEffectDetail - - ItemPotionEffect: - id: varint - details: ItemEffectDetail - - ItemBlockProperty: - name: string - isExactMatch: bool - value: isExactMatch ? - if true: - exactValue: string - if false: - minValue: string - maxValue: string - - ExactComponentMatcher: SlotComponent[]varint - - DataComponentMatchers: - exactMatchers: ExactComponentMatcher - partialMatchers: varint[]varint - - ItemBlockPredicate: - blockSet?: ["registryEntryHolderSet", { - "base": { name: "name", type: "string" }, - "otherwise": { name: "blockIds", "type": "varint" } - }] - properties?: ItemBlockProperty[]varint - nbt: anonOptionalNbt - components: DataComponentMatchers - - ItemBookPage: - # The raw text of the page. TextComponent, max 1024 characters. - content: string - filteredContent?: string - ItemWrittenBookPage: - content: anonymousNbt - filteredContent: anonOptionalNbt - - ItemConsumeEffect: # 1.21.3 - type: varint => - - apply_effects - - remove_effects - - clear_all_effects - - teleport_randomly - - play_sound - _: type ? - if apply_effects: - effects: ItemPotionEffect[]varint - probability: f32 - if remove_effects: - effects: IDSet - if clear_all_effects: void - if teleport_randomly: - diameter: f32 - if play_sound: - sound: ItemSoundHolder - - ArmorTrimMaterial: - assetBase: string - overrideArmorAssets: []varint - key: string - value: string - description: anonymousNbt - - ArmorTrimPattern: - assetId: string - description: anonymousNbt - decal: bool - - InstrumentData: - soundEvent: ItemSoundHolder - useDuration: f32 - range: f32 - description: anonymousNbt - - JukeboxSongData: - soundEvent: ItemSoundHolder - description: anonymousNbt - lengthInSeconds: f32 - comparatorOutput: varint - - BannerPattern: - assetId: string - translationKey: string - BannerPatternLayer: - pattern: ["registryEntryHolder", { "baseName": "patternId", "otherwise": { "name": "data", "type": "BannerPattern" } }] - colorId: varint DamageTypeData: msgId: string @@ -621,472 +439,6 @@ minSpeed: f32 minRelativeSpeed: f32 - # This represents a single component within an UntrustedSlot. - # The 'data' field is a varint-prefixed byte array that contains the actual component data. - # The code generator will need to know that it should read a varint for length, then the bytes. - UntrustedSlotComponent: - type: SlotComponentType - data: ByteArray - - # An UntrustedSlot is structurally identical to a regular Slot, - # but it uses the special UntrustedSlotComponent type for its component list. - # It's optional because the player might be clearing the slot. - UntrustedSlot: - itemCount: varint - _: itemCount ? - if 0: void - default: - itemId: varint - addedComponentCount: varint - removedComponentCount: varint - components: UntrustedSlotComponent[]$addedComponentCount - removeComponents: []$removedComponentCount - type: SlotComponentType - if false: void - - Slot: - itemCount: varint - _: itemCount ? - if 0: void - default: - itemId: varint - # https://wiki.vg/Slot_Data#Structured_components - addedComponentCount: varint - removedComponentCount: varint - components: SlotComponent[]$addedComponentCount - removeComponents: []$removedComponentCount - type: SlotComponentType - - HashedSlot: - itemId: varint - itemCount: varint - components: []varint - type: SlotComponentType - hash: i32 - removeComponents: []varint - type: SlotComponentType - - RespawnData: - globalPos: GlobalPos - yaw: f32 - pitch: f32 - - GlobalPos: - dimensionName: string - location: position - - DebugStructureInfo: - boundingBoxMin: position - boundingBoxMax: position - pieces: []varint - boundingBoxMin: position - boundingBoxMax: position - isStart: bool - - Node: - position: vec3i32 - walkedDistance: f32 - costMalus: f32 - closed: bool - type: varint => - - blocked - - open - - walkable - - walkable_door - - trapdoor - - powder_snow - - danger_powder_snow - - fence - - lava - - water - - water_border - - rail - - unpassable_rail - - danger_fire - - damage_fire - - danger_other - - damage_other - - door_open - - door_wood_closed - - door_iron_closed - - breach - - leaves - - sticky_honey - - cocoa - - damage_cautious - - danger_trapdoor - f: f32 - - PathDebugData: - openSet: Node[]varint - closedSet: Node[]varint - targetNodes: Node[]varint - - Path: - reached: bool - nextNodeIndex: i32 - target: position - nodes: Node[]varint - debugData: PathDebugData - - DebugSubscriptionDataType: varint => - - DedicatedServerTickTime - - Bees - - Brains - - Breezes - - GoalSelectors - - EntityPaths - - EntityBlockIntersections - - BeeHives - - Pois - - RedstoneWireOrientations - - VillageSections - - Raids - - Structures - - GameEventListeners - - NeighborUpdates - - GameEvents - - DebugSubscriptionUpdate: - type: DebugSubscriptionDataType - _: type ? - if DedicatedServerTickTime: void - default: - payload?: type ? - if DedicatedServerTickTime or VillageSections: void - if Bees: # DebugSubscriptionDataBeeInfo - hivePos?: position - flowerPos?: position - travelTicks: varint - blacklistedHives: position[]varint - if Brains: # DebugSubscriptionDataBrainDump - name: string - profession: string - xp: i32 - health: f32 - maxHealth: f32 - inventory: string - wantsGolem: bool - angerLevel: i32 - activities: string[]varint - behaviors: string[]varint - memories: string[]varint - gossips: string[]varint - pois: position[]varint - potentialPois: position[]varint - if Breezes: # DebugSubscriptionDataBreezeInfo - attackTarget?: varint - jumpTarget?: position - if GoalSelectors: # DebugSubscriptionDataGoalInfo - goals: []varint - priority: varint - running: bool - name: string - if EntityPaths: # DebugSubscriptionDataPathInfo - path: Path - maxNodeDistance: f32 - if EntityBlockIntersections: # DebugSubscriptionDataEntityBlockIntersection - id: varint - if BeeHives: # DebugSubscriptionDataHiveInfo - type: varint - occupantCount: varint - honeyLevel: varint - sedated: bool - if Pois: # DebugSubscriptionDataPoiInfo - pos: position - poiType: varint - freeTicketCount: varint - if RedstoneWireOrientations: # DebugSubscriptionDataOrientation - index: varint - if Raids: # DebugSubscriptionDataRaids - positions: position[]varint - if Structures: # DebugSubscriptionDataStructures - structures: DebugStructureInfo[]varint - if GameEventListeners: # DebugSubscriptionDataGameEventListenerInfo - listenerRadius: varint - if NeighborUpdates: # DebugSubscriptionDataNeighbor - pos: position - if GameEvents: # DebugSubscriptionDataGameEventInfo - event: varint - pos: vec3f64 - - DebugSubscriptionEvent: - type: DebugSubscriptionDataType - value: type ? - if DedicatedServerTickTime or VillageSections: void - if Bees: # DebugSubscriptionDataBeeInfo - hivePos?: position - flowerPos?: position - travelTicks: varint - blacklistedHives: position[]varint - if Brains: # DebugSubscriptionDataBrainDump - name: string - profession: string - xp: i32 - health: f32 - maxHealth: f32 - inventory: string - wantsGolem: bool - angerLevel: i32 - activities: string[]varint - behaviors: string[]varint - memories: string[]varint - gossips: string[]varint - pois: position[]varint - potentialPois: position[]varint - if Breezes: # DebugSubscriptionDataBreezeInfo - attackTarget?: varint - jumpTarget?: position - if GoalSelectors: # DebugSubscriptionDataGoalInfo - priority: varint - running: bool - name: string - if EntityPaths: # DebugSubscriptionDataPathInfo - path: Path - maxNodeDistance: f32 - if EntityBlockIntersections: # DebugSubscriptionDataEntityBlockIntersection - id: varint - if BeeHives: # DebugSubscriptionDataHiveInfo - type: varint - occupantCount: varint - honeyLevel: varint - sedated: bool - if Pois: # DebugSubscriptionDataPoiInfo - pos: position - poiType: varint - freeTicketCount: varint - if RedstoneWireOrientations: # DebugSubscriptionDataOrientation - index: varint - if Raids: # DebugSubscriptionDataRaids - positions: position[]varint - if Structures: # DebugSubscriptionDataStructures - structures: DebugStructureInfo[]varint - if GameEventListeners: # DebugSubscriptionDataGameEventListenerInfo - listenerRadius: varint - if NeighborUpdates: # DebugSubscriptionDataNeighbor - pos: position - if GameEvents: # DebugSubscriptionDataGameEventInfo - event: varint - pos: vec3f64 - - Particle: - # See client/net/minecraft/core/particles/ParticleTypes.java - type: varint => - - angry_villager - - block - - block_marker - - bubble - - cloud - - copper_fire_flame - - crit - - damage_indicator - - dragon_breath - - dripping_lava - - falling_lava - - landing_lava - - dripping_water - - falling_water - - dust - - dust_color_transition - - effect - - elder_guardian - - enchanted_hit - - enchant - - end_rod - - entity_effect - - explosion_emitter - - explosion - - gust - - small_gust - - gust_emitter_large - - gust_emitter_small - - sonic_boom - - falling_dust - - firework - - fishing - - flame - - infested - - cherry_leaves - - pale_oak_leaves - - tinted_leaves - - sculk_soul - - sculk_charge - - sculk_charge_pop - - soul_fire_flame - - soul - - flash - - happy_villager - - composter - - heart - - instant_effect - - item - - vibration - - trail - - item_slime - - item_cobweb - - item_snowball - - large_smoke - - lava - - mycelium - - note - - poof - - portal - - rain - - smoke - - white_smoke - - sneeze - - spit - - squid_ink - - sweep_attack - - totem_of_undying - - underwater - - splash - - witch - - bubble_pop - - current_down - - bubble_column_up - - nautilus - - dolphin - - campfire_cosy_smoke - - campfire_signal_smoke - - dripping_honey - - falling_honey - - landing_honey - - falling_nectar - - falling_spore_blossom - - ash - - crimson_spore - - warped_spore - - spore_blossom_air - - dripping_obsidian_tear - - falling_obsidian_tear - - landing_obsidian_tear - - reverse_portal - - white_ash - - small_flame - - snowflake - - dripping_dripstone_lava - - falling_dripstone_lava - - dripping_dripstone_water - - falling_dripstone_water - - glow_squid_ink - - glow - - wax_on - - wax_off - - electric_spark - - scrape - - shriek - - egg_crack - - dust_plume - - trial_spawner_detected_player - - trial_spawner_detected_player_ominous - - vault_connection - - dust_pillar - - ominous_spawning - - raid_omen - - trial_omen - - block_crumble - - firefly - ## ## Tips for reviewing particle data (as of 1.20.5) - ## Inside the registry code, each particle can have an associated "options" type and - ## each options type can add additional data to be encoded. - ## For example, this line - ## public static final ParticleType BLOCK = register("block", false, BlockParticleOption::codec, BlockParticleOption::streamCodec); - ## will read the stream codec from BlockParticleOption.java's streamCodec member; then we see - ## return ByteBufCodecs.idMapper(Block.BLOCK_STATE_REGISTRY).map(var1 -> new BlockParticleOption(var0, var1), var0x -> var0x.state); - ## this encodes with the ByteBufCodecs.idMapper function. Inside this function we find - ## public void encode(ByteBuf var1x, T var2) { - ## int var3 = var1.applyAsInt(var2); - ## VarInt.write(var1x, var3); - ## } - ## which as we can see writes the varint to the buffer. - ## If you want to see all the serializers try regexp searching "StreamCodec.*Particle" - data: type ? - if block or block_marker or falling_dust or dust_pillar or block_crumble: varint - if dust: - red: f32 - green: f32 - blue: f32 - scale: f32 - if dust_color_transition: - fromRed: f32 - fromGreen: f32 - fromBlue: f32 - scale: f32 - toRed: f32 - toGreen: f32 - toBlue: f32 - if entity_effect: i32 - if item: Slot - if sculk_charge: f32 - if shriek: varint - if vibration: - positionType: varint => - - block - - entity - position: positionType ? - if block: position - if entity: - entityId: varint - entityEyeHeight: f32 - ticks: varint - if trail: - target: vec3f64 - color: u8 - if tinted_leaves: i32 - if firefly: void - if dragon_breath: - power: f32 - if effect or instant_effect: - color: i32 - power: f32 - if flash: i32 - ingredient: Slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - soundSource: varint => - 0: master - 1: music - 2: record - 3: weather - 4: block - 5: hostile - 6: neutral - 7: player - 8: ambient - 9: voice - 10: ui - packedChunkPos: - z: i32 - x: i32 - previousMessages: []varint - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void entityMetadataEntry: key: u8 type: varint => @@ -1180,814 +532,8 @@ if humanoid_arm: varint => - left - right - EntityMetadataPaintingVariant: - width: i32 - height: i32 - assetId: string - title?: anonymousNbt - author?: anonymousNbt - entityMetadata: ["entityMetadataLoop", { "endVal": 255, "type": "entityMetadataEntry" }] - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: - _: [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - y: i16 - type: varint - nbtData: anonOptionalNbt - chat_session?: - uuid: UUID - publicKey: - expireTime: i64 - keyBytes: [ - "buffer", - { - "countType": "varint" - } - ] - keySignature: [ - "buffer", - { - "countType": "varint" - } - ] - # No UUID - game_profile_name_prop: - name: string - properties: GameProfileProperty[]varint - # With UUID - GameProfile: - uuid: UUID - name: string - properties: GameProfileProperty[]varint - PartialResolvableProfile: - name?: string - uuid?: UUID - properties: GameProfileProperty[]varint - GameProfileProperty: - name: string - value: string - signature?: string - ResolvableProfile: - type: varint => - - partial - - complete - _: type ? - if partial: PartialResolvableProfile - if complete: GameProfile - skinPatch: PlayerSkinPatch - PlayerSkinPatch: - body?: string - cape?: string - elytra?: string - model?: varint => - - wide - - slim - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 2, - "signed": false - }, - { - "name": "allows_restricted", - "size": 1, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: varint => - - brigadier:bool - - brigadier:float - - brigadier:double - - brigadier:integer - - brigadier:long - - brigadier:string - - minecraft:entity - - minecraft:game_profile - - minecraft:block_pos - - minecraft:column_pos - - minecraft:vec3 - - minecraft:vec2 - - minecraft:block_state - - minecraft:block_predicate - - minecraft:item_stack - - minecraft:item_predicate - - minecraft:color - - minecraft:hex_color # 1.21.6 - - minecraft:component - - minecraft:style - - minecraft:message - - minecraft:nbt - - minecraft:nbt_tag - - minecraft:nbt_path - - minecraft:objective - - minecraft:objective_criteria - - minecraft:operation - - minecraft:particle - - minecraft:angle - - minecraft:rotation - - minecraft:scoreboard_slot - - minecraft:score_holder - - minecraft:swizzle - - minecraft:team - - minecraft:item_slot - - minecraft:item_slots # 1.20.5 - - minecraft:resource_location - - minecraft:function - - minecraft:entity_anchor - - minecraft:int_range - - minecraft:float_range - - minecraft:dimension - - minecraft:gamemode - - minecraft:time - - minecraft:resource_or_tag - - minecraft:resource_or_tag_key - - minecraft:resource - - minecraft:resource_key - - minecraft:resource_selector - - minecraft:template_mirror - - minecraft:template_rotation - - minecraft:heightmap - - minecraft:loot_table # 1.20.5 - - minecraft:loot_predicate # 1.20.5 - - minecraft:loot_modifier # 1.20.5 - - minecraft:dialog # 1.21.6 - - minecraft:uuid - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:hex_color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:dimension: void - if minecraft:gamemode: void - if minecraft:time: - min: i32 - if minecraft:resource_or_tag or minecraft:resource_or_tag_key or minecraft:resource or minecraft:resource_key or minecraft:resource_selector: - registry: string - if minecraft:template_mirror: void - if minecraft:template_rotation: void - if minecraft:heightmap: void - if minecraft:dialog: void - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - # # Shared Packets - # These are packets that are shared between multiple states. - # They are defined here to avoid duplication. - # ===== - # MC: ServerboundClientInformationPacket - packet_common_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - enableTextFiltering: bool - enableServerListing: bool - particleStatus: varint => - - all - - decreased - - minimal - # MC: ClientboundCookieRequestPacket - packet_common_cookie_request: - cookie: string - # MC: ClientboundStoreCookiePacket - packet_common_store_cookie: - key: string - value: ByteArray - # MC: ClientboundTransferPacket - packet_common_transfer: - host: string - port: varint - # MC: ServerboundCookieResponsePacket - packet_common_cookie_response: - key: string - value?: ByteArray - # MC: ServerboundSelectKnownPacks - # MC: ClientboundSelectKnownPacks - packet_common_select_known_packs: - packs: []varint - namespace: string - id: string - version: string - # MC: ClientboundCustomReportDetailsPacket - packet_common_custom_report_details: - details: []varint - key: string - value: string - # MC: ClientboundResourcePackPopPacket - packet_common_remove_resource_pack: - uuid?: UUID - # MC: ClientboundResourcePackPushPacket - packet_common_add_resource_pack: - uuid: UUID - url: string - hash: string - forced: bool - promptMessage?: anonymousNbt - ServerLinkType: varint => - - bug_report - - community_guidelines - - support - - status - - feedback - - community - - website - - forums - - news - - announcements - # MC: ClientboundServerLinksPacket - # This packet contains a list of links that the Notchian client will display in the menu - # available from the pause menu. Link labels can be built-in or custom (i.e., any text). - packet_common_server_links: - links: []varint - hasKnownType: bool - knownType: hasKnownType ? - if true: ServerLinkType - unknownType: hasKnownType ? - if false: anonymousNbt - link: string - # MC: ClientboundClearDialogPacket - packet_common_clear_dialog: - # empty - # MC: ServerboundCustomClickActionPacket - packet_common_custom_click_action: - id: string - nbt?: anonymousNbt - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping -^status.toClient.types: - # MC: ClientboundStatusResponsePacket - packet_server_info: - response: string - # MC: ClientboundPongResponsePacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping -^status.toServer.types: - # MC: ServerboundStatusRequestPacket - packet_ping_start: - # Empty - # MC: ServerboundPingRequestPacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping -^login.toClient.types: - # MC: ClientboundLoginDisconnectPacket - packet_disconnect: - reason: string - # MC: ClientboundHelloPacket - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - shouldAuthenticate: bool - # MC: ClientboundLoginFinishedPacket - packet_success: - uuid: UUID - username: string - properties: []varint - name: string - value: string - signature?: string - # MC: ClientboundLoginCompressionPacket - packet_compress: - threshold: varint - # MC: ClientboundCustomQueryPacket - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - ## (Cookie Request is Common) ## - packet: - name: varint => - - disconnect - - encryption_begin - - success - - compress - - login_plugin_request - - cookie_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - if cookie_request: packet_common_cookie_request -^login.toServer.types: - # MC: ServerboundHelloPacket - packet_login_start: - username: string - playerUUID: UUID - # MC: ServerboundKeyPacket - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ServerboundCustomQueryAnswerPacket - packet_login_plugin_response: - messageId: varint - data?: restBuffer - # MC: ServerboundLoginAcknowledgedPacket - packet_login_acknowledged: - # Empty - ## (Cookie Response is Common) ## - packet: - name: varint => - - login_start - - encryption_begin - - login_plugin_response - - login_acknowledged - - cookie_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response - if login_acknowledged: packet_login_acknowledged - if cookie_response: packet_common_cookie_response -^configuration.toClient.types: - ## (Cookie Request is common) - # MC: ClientboundCodeOfConductPacket - packet_code_of_conduct: - contents: string - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDisconnectPacket - packet_disconnect: - reason: anonymousNbt - # MC: ClientboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundResetChatPacket - packet_reset_chat: - # Empty - # MC: ClientboundRegistryDataPacket - packet_registry_data: - # The server can send multiple registries - id: string - entries: []varint - key: string - value?: anonymousNbt - ## (Store cookie and Transfer are Common) ## - # MC: ClientboundUpdateEnabledFeaturesPacket - packet_feature_flags: - features: string[]varint - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags - ## (Select known packs is common) - # MC: ClientboundShowDialogConfigurationPacket - packet_show_dialog: - dialog: anonymousNbt - packet: - name: varint => - - cookie_request - - custom_payload - - disconnect - - finish_configuration - - keep_alive - - ping - - reset_chat - - registry_data - - remove_resource_pack - - add_resource_pack - - store_cookie - - transfer - - feature_flags - - tags - - select_known_packs - - custom_report_details - - server_links - - clear_dialog - - show_dialog - - code_of_conduct - params: name ? - if cookie_request: packet_common_cookie_request - if custom_payload: packet_custom_payload - if disconnect: packet_disconnect - if finish_configuration: packet_finish_configuration - if keep_alive: packet_keep_alive - if ping: packet_ping - if reset_chat: packet_reset_chat - if registry_data: packet_registry_data - if remove_resource_pack: packet_common_remove_resource_pack - if add_resource_pack: packet_common_add_resource_pack - if store_cookie: packet_common_store_cookie - if transfer: packet_common_transfer - if feature_flags: packet_feature_flags - if tags: packet_tags - if select_known_packs: packet_common_select_known_packs - if custom_report_details: packet_common_custom_report_details - if server_links: packet_common_server_links - if clear_dialog: packet_common_clear_dialog - if show_dialog: packet_show_dialog - if code_of_conduct: packet_code_of_conduct -^configuration.toServer.types: - ## (Settings is Common) ## - ## (Cookie Response is Common) ## - # MC: ServerboundAcceptCodeOfConductPacket - packet_accept_code_of_conduct: - # Empty - # MC: ServerboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ServerboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint - packet: - name: varint => - - settings - - cookie_response - - custom_payload - - finish_configuration - - keep_alive - - pong - - resource_pack_receive - - select_known_packs - - custom_click_action - - accept_code_of_conduct - params: name ? - if settings: packet_common_settings - if cookie_response: packet_common_cookie_response - if custom_payload: packet_custom_payload - if finish_configuration: packet_finish_configuration - if keep_alive: packet_keep_alive - if pong: packet_pong - if resource_pack_receive: packet_resource_pack_receive - if select_known_packs: packet_common_select_known_packs - if custom_click_action: packet_common_custom_click_action - if accept_code_of_conduct: packet_accept_code_of_conduct ^play.toClient.types: - SlotDisplay: - type: varint => - - empty - - any_fuel - - item - - item_stack - - tag - - smithing_trim - - with_remainder - - composite - data: type ? - if empty or any_fuel: void - if item: varint - if item_stack: Slot - if tag: string - if smithing_trim: - base: SlotDisplay - material: SlotDisplay - pattern: ["registryEntryHolder", { "baseName": "patternId", "otherwise": { "name": "data", "type": "ArmorTrimPattern" } }] - if with_remainder: - input: SlotDisplay - remainder: SlotDisplay - if composite: SlotDisplay[]varint - RecipeDisplay: - type: varint => - - crafting_shapeless - - crafting_shaped - - furnace - - stonecutter - - smithing - data: type ? - if crafting_shapeless: - ingredients: SlotDisplay[]varint - result: SlotDisplay - craftingStation: SlotDisplay - if crafting_shaped: - width: varint - height: varint - ingredients: SlotDisplay[]varint - result: SlotDisplay - craftingStation: SlotDisplay - if furnace: - ingredient: SlotDisplay - fuel: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay - duration: varint - experience: f32 - if stonecutter: - ingredient: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay - if smithing: - template: SlotDisplay - base: SlotDisplay - addition: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay - # World state information for spawn and respawn packets - SpawnInfo: - dimension: varint - name: string - hashedSeed: i64 - gamemode: i8 => - - survival - - creative - - adventure - - spectator - previousGamemode: u8 - isDebug: bool - isFlat: bool - death?: GlobalPos - portalCooldown: varint - seaLevel: varint - # MC: ClientboundAddEntityPacket packet_spawn_entity: entityId: varint @@ -2002,1368 +548,8 @@ yaw: i8 headPitch: i8 objectData: varint - # MC: ClientboundAnimatePacket - packet_animation: - entityId: varint - animation: u8 - # MC: ClientboundAwardStatsPacket - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - # MC: ClientboundBlockChangedAckPacket - packet_acknowledge_player_digging: - sequenceId: varint - # MC: ClientboundBlockDestructionPacket - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - # MC: ClientboundBlockEntityDataPacket - packet_tile_entity_data: - location: position - action: varint - nbtData: anonOptionalNbt - # MC: ClientboundBlockEventPacket - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - # MC: ClientboundBlockUpdatePacket - packet_block_change: - location: position - type: varint - # MC: ClientboundBossEventPacket - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: anonymousNbt - if 3: anonymousNbt - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - # MC: ClientboundChangeDifficultyPacket - packet_difficulty: - difficulty: varint => - 0: peaceful - 1: easy - 2: normal - 3: hard - difficultyLocked: bool - # MC: ClientboundChunkBatchFinishedPacket - packet_chunk_batch_finished: - batchSize: varint - # MC: ClientboundChunkBatchStartPacket - packet_chunk_batch_start: - # Empty - # MC: ClientboundChunksBiomesPacket - packet_chunk_biomes: - biomes: []varint - position: packedChunkPos - data: ByteArray - # MC: ClientboundClearTitlesPacket - packet_clear_titles: - reset: bool - # MC: ClientboundCommandSuggestionsPacket - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: anonymousNbt - # MC: ClientboundCommandsPacket - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - # MC: ClientboundContainerClosePacket - packet_close_window: - windowId: ContainerID - # MC: ClientboundContainerSetContentPacket - packet_window_items: - windowId: ContainerID - stateId: varint - items: Slot[]varint - carriedItem: Slot - # MC: ClientboundContainerSetDataPacket - packet_craft_progress_bar: - windowId: ContainerID - property: i16 - value: i16 - # MC: ClientboundContainerSetSlotPacket - packet_set_slot: - windowId: ContainerID - stateId: varint - slot: i16 - item: Slot - ## (Cookie Request is Common) - # MC: ClientboundCooldownPacket - packet_set_cooldown: - # TODO: figure out what this is - cooldownGroup: string - cooldownTicks: varint - # MC: ClientboundCustomChatCompletionsPacket - packet_chat_suggestions: - action: varint - entries: string[]varint - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDamageEventPacket - packet_damage_event: - entityId: varint - sourceTypeId: varint - sourceCauseId: varint - sourceDirectId: varint - sourcePosition?: vec3f64 - # MC: ClientboundDebugBlockValuePacket - packet_debug_block_value: - blockPos: position - update: DebugSubscriptionUpdate - # MC: ClientboundDebugChunkValuePacket - packet_debug_chunk_value: - chunkPos: packedChunkPos - update: DebugSubscriptionUpdate - # MC: ClientboundEntityEntityValuePacket - packet_debug_entity_value: - entityId: varint - update: DebugSubscriptionUpdate - # MC: ClientboundDebugEventPacket - packet_debug_event: - event: DebugSubscriptionEvent - # MC: ClientboundDebugSamplePacket - packet_debug_sample: - sample: i64[]varint - type: varint - # MC: ClientboundDeleteChatPacket - packet_hide_message: - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - # MC: ClientboundDisconnectPacket - packet_kick_disconnect: - reason: anonymousNbt - - ## client\net\minecraft\network\chat\ChatTypeDecoration.java - ## via client\net\minecraft\network\chat\ChatType.java - ChatTypeParameterType: varint => - - content - - sender - - target - ChatType: - translationKey: string - parameters: ChatTypeParameterType[]varint - style: anonymousNbt - ChatTypes: - chat: ChatType - narration: ChatType - ChatTypesHolder: ["registryEntryHolder", { "baseName": "chatType", "otherwise": { name: "data", type: "ChatTypes" } }] - # MC: ClientboundDisguisedChatPacket - packet_profileless_chat: - message: anonymousNbt - type: ChatTypesHolder - name: anonymousNbt - target?: anonymousNbt - # MC: ClientboundEntityEventPacket - packet_entity_status: - entityId: i32 - entityStatus: i8 - # MC: ClientboundEntityPositionSyncPacket - packet_sync_entity_position: - entityId: varint - x: f64 - y: f64 - z: f64 - dx: f64 - dy: f64 - dz: f64 - yaw: f32 - pitch: f32 - onGround: bool - ExplosionParticleInfo: - particle: Particle - scaling: f32 - speed: f32 - ExplosionParticleEntry: - data: ExplosionParticleInfo - weight: varint - # MC: ClientboundExplodePacket - packet_explosion: - center: vec3f64 - radius: f32 - blockCount: i32 - playerKnockback?: vec3f64 - explosionParticle: Particle - sound: ItemSoundHolder - blockParticles: ExplosionParticleEntry[]varint - # MC: ClientboundForgetLevelChunkPacket - packet_unload_chunk: - chunkZ: i32 - chunkX: i32 - # MC: ClientboundGameEventPacket - packet_game_state_change: - reason: u8 => - 0: no_respawn_block_available - 1: start_raining - 2: stop_raining - 3: change_game_mode - 4: win_game - 5: demo_event - 6: play_arrow_hit_sound - 7: rain_level_change - 8: thunder_level_change - 9: puffer_fish_sting - 10: guardian_elder_effect - 11: immediate_respawn - 12: limited_crafting - 13: level_chunks_load_start - gameMode: f32 - # MC: ClientboundGameTestHighlightPosPacket - packet_game_test_highlight_pos: - absolutePos: position - relativePos: position - # MC: ClientboundHorseScreenOpenPacket - packet_open_horse_window: - windowId: ContainerID - nbSlots: varint - entityId: i32 - # MC: ClientboundHurtAnimationPacket - packet_hurt_animation: - entityId: varint - yaw: f32 - # MC: ClientboundInitializeBorderPacket - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varint - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundLevelChunkWithLightPacket - packet_map_chunk: - x: i32 - z: i32 - heightmaps: []varint - type: varint => - 0: world_surface_wg - 1: world_surface - 2: ocean_floor_wg - 3: ocean_floor - 4: motion_blocking - 5: motion_blocking_no_leaves - data: i64[]varint - chunkData: ByteArray - blockEntities: chunkBlockEntity[]varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - # MC: ClientboundLevelEventPacket - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - # MC: ClientboundLevelParticlesPacket - packet_world_particles: - longDistance: bool - alwaysShow: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - velocityOffset: f32 - amount: i32 - particle: Particle - # MC: ClientboundLightUpdatePacket - packet_update_light: - chunkX: varint - chunkZ: varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - # MC: ClientboundLoginPacket - packet_login: - entityId: i32 - isHardcore: bool - worldNames: string[]varint - maxPlayers: varint - viewDistance: varint - simulationDistance: varint - reducedDebugInfo: bool - enableRespawnScreen: bool - doLimitedCrafting: bool - worldState: SpawnInfo - enforcesSecureChat: bool - # MC: ClientboundMapItemDataPacket - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: anonymousNbt - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ClientboundMerchantOffersPacket - packet_trade_list: - windowId: ContainerID - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.20.5/client/net/minecraft/world/item/trading/MerchantOffer.java#L210 - trades: []varint - inputItem1: - itemId: varint - itemCount: varint - components: ExactComponentMatcher - outputItem: Slot - inputItem2?: - itemId: varint - itemCount: varint - components: ExactComponentMatcher - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - # MC: ClientboundMoveEntityPacket.Pos - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - # MC: ClientboundMoveEntityPacket.PosRot - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveMinecartPacket - packet_move_minecart: # 1.21.3 - entityId: varint - steps: []varint - position: vec3f - velocity: vec3f - yaw: f32 - pitch: f32 - weight: f32 - # MC: ClientboundMoveEntityPacket.Rot - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - # MC: ClientboundOpenBookPacket - packet_open_book: - hand: varint - # MC: ClientboundOpenScreenPacket - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: anonymousNbt - # MC: ClientboundOpenSignEditorPacket - packet_open_sign_entity: - location: position - isFrontText: bool - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundPongResponsePacket - packet_ping_response: - id: i64 - # MC: ClientboundPlaceGhostRecipePacket - packet_craft_recipe_response: - windowId: ContainerID - recipeDisplay: RecipeDisplay - # MC: ClientboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - # MC: ClientboundPlayerChatPacket - packet_player_chat: - globalIndex: varint - senderUuid: UUID - index: varint - signature?: [ - "buffer", - { - "count": 256 - } - ] - plainMessage: string - timestamp: i64 - salt: i64 - previousMessages: previousMessages - unsignedChatContent?: anonymousNbt - filterType: varint - filterTypeMask: filterType ? - if 2: i64[]varint - default: void - type: ChatTypesHolder - networkName: anonymousNbt - networkTargetName?: anonymousNbt - # MC: ClientboundPlayerCombatEndPacket - packet_end_combat_event: - duration: varint - # MC: ClientboundPlayerCombatEnterPacket - packet_enter_combat_event: - # Empty - # MC: ClientboundPlayerCombatKillPacket - packet_death_combat_event: - playerId: varint - message: anonymousNbt - # MC: ClientboundPlayerInfoRemovePacket - packet_player_remove: - players: UUID[]varint - # MC: ClientboundPlayerInfoUpdatePacket - packet_player_info: - ## ClientboundPlayerInfoUpdatePacket.java#L160 - action: ["bitflags", { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name", - "update_hat", - "update_list_order" - ] - }] - data: []varint - uuid: UUID - player: ../action/add_player ? - if true: game_profile_name_prop - default: void - chatSession: ../action/initialize_chat ? - if true: chat_session - default: void - gamemode: ../action/update_game_mode ? - if true: varint - default: void - listed: ../action/update_listed ? - if true: varint - default: void - latency: ../action/update_latency ? - if true: varint - default: void - displayName: ../action/update_display_name ? - if true: ["option", "anonymousNbt"] - default: void - listPriority: ../action/update_list_order ? - if true: varint - default: void - showHat: ../action/update_hat ? - if true: bool - default: void - - # MC: ClientboundPlayerLookAtPacket - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: varint - default: void - - # https://github.com/extremeheat/extracted_minecraft_data/blob/client1.21.2/client/net/minecraft/world/entity/Relative.java#L82 - PositionUpdateRelatives: ["bitflags", { - "type": "u32", - "flags": ["x", "y", "z", "yaw", "pitch", "dx", "dy", "dz", "yawDelta"] - }] - # MC: ClientboundPlayerPositionPacket - packet_position: - teleportId: varint - x: f64 - y: f64 - z: f64 - dx: f64 - dy: f64 - dz: f64 - yaw: f32 - pitch: f32 - flags: PositionUpdateRelatives - # MC: ClientboundPlayerRotationPacket - packet_player_rotation: - yaw: f32 - relativeYaw: bool - pitch: f32 - relativePitch: bool - - # MC: ClientboundRecipeBookAddPacket - packet_recipe_book_add: - entries: []varint - # RecipeDisplayEntry - recipe: - displayId: varint - display: RecipeDisplay - group: optvarint - # This ID corresponds to the "recipe_book_category" registry - category: varint => - - crafting_building_blocks - - crafting_redstone - - crafting_equipment - - crafting_misc - - furnace_food - - furnace_blocks - - furnace_misc - - blast_furnace_blocks - - blast_furnace_misc - - smoker_food - - stonecutter - - smithing - - campfire - craftingRequirements?: IDSet[]varint - flags: ["bitflags", { - "type": "u8", - "flags": ["notification", "highlight"] - }] - replace: bool - # MC: ClientboundRecipeBookRemovePacket - packet_recipe_book_remove: - recipeIds: varint[]varint - # MC: ClientboundRecipeBookSettingsPacket - RecipeBookSetting: - open: bool - filtering: bool - packet_recipe_book_settings: - crafting: RecipeBookSetting - furnace: RecipeBookSetting - blast: RecipeBookSetting - smoker: RecipeBookSetting - # MC: ClientboundRemoveEntitiesPacket - packet_entity_destroy: - entityIds: varint[]varint - # MC: ClientboundRemoveMobEffectPacket - packet_remove_entity_effect: - entityId: varint - effectId: varint - # MC: ClientboundResetScorePacket - packet_reset_score: - entity_name: string - objective_name?: string - ## (remove_resource_pack is common) - # MC: ClientboundRespawnPacket - packet_respawn: - worldState: SpawnInfo - # Bit field: 0b1 - KEEP_ATTRIBUTE_MODIFIERS, 0b10 - KEEP_ENTITY_DATA - copyMetadata: u8 - # MC: ClientboundRotateHeadPacket - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - # MC: ClientboundSectionBlocksUpdatePacket - packet_multi_block_change: - chunkCoordinates: [ "bitfield", [ - { "name": "x", "size": 22, "signed": true }, - { "name": "z", "size": 22, "signed": true }, - { "name": "y", "size": 20, "signed": true } - ]] - records: varint[]varint - # MC: ClientboundSelectAdvancementsTabPacket - packet_select_advancement_tab: - id?: string - # MC: ClientboundServerDataPacket - packet_server_data: - motd: anonymousNbt - iconBytes?: ByteArray - # MC: ClientboundSetActionBarTextPacket - packet_action_bar: - text: anonymousNbt - # MC: ClientboundSetBorderCenterPacket - packet_world_border_center: - x: f64 - z: f64 - # MC: ClientboundSetBorderLerpSizePacket - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varint - # MC: ClientboundSetBorderSizePacket - packet_world_border_size: - diameter: f64 - # MC: ClientboundSetBorderWarningDelayPacket - packet_world_border_warning_delay: - warningTime: varint - # MC: ClientboundSetBorderWarningDistancePacket - packet_world_border_warning_reach: - warningBlocks: varint - # MC: ClientboundSetCameraPacket - packet_camera: - cameraId: varint - # MC: ClientboundSetChunkCacheCenterPacket - packet_update_view_position: - chunkX: varint - chunkZ: varint - # MC: ClientboundSetChunkCacheRadiusPacket - packet_update_view_distance: - viewDistance: varint - # MC: ClientboundSetCursorItemPacket - packet_set_cursor_item: - contents: Slot - # MC: ClientboundSetDefaultSpawnPositionPacket - packet_spawn_position: RespawnData - # MC: ClientboundSetDisplayObjectivePacket - packet_scoreboard_display_objective: - position: varint - name: string - # MC: ClientboundSetEntityDataPacket - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - # MC: ClientboundSetEntityLinkPacket - packet_attach_entity: - entityId: i32 - vehicleId: i32 - # MC: ClientboundSetEntityMotionPacket - packet_entity_velocity: - entityId: varint - velocity: lpVec3 - # MC: ClientboundSetEquipmentPacket - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] - # MC: ClientboundSetExperiencePacket - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - # MC: ClientboundSetHealthPacket - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - # MC: ClientboundSetHeldSlotPacket - packet_held_item_slot: - slot: varint - # MC: ClientboundSetObjectivePacket - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - type: action ? - if 0: varint - if 2: varint - default: void - number_format: action ? - if 0: [ - "option", - "varint" - ] - if 2: [ - "option", - "varint" - ] - default: void - styling: action ? - if 0: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - if 2: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - default: void - # MC: ClientboundSetPassengersPacket - packet_set_passengers: - entityId: varint - passengers: varint[]varint - # MC: ClientboundSetPlayerInventoryPacket - packet_set_player_inventory: - slotId: varint - contents: Slot - # MC: ClientboundSetPlayerTeamPacket - packet_teams: - team: string - mode: i8 => - - add - - remove - - change - - join - - leave - _: mode ? - if add or change: - name: anonymousNbt - flags: ["bitflags", { - "type": "u8", - "flags": ["friendly_fire", "see_friendly_invisible"] - }] - nameTagVisibility: varint => - - always - - never - - hide_for_other_teams - - hide_for_own_team - collisionRule: varint => - - always - - never - - push_other_teams - - push_own_team - formatting: varint - prefix: anonymousNbt - suffix: anonymousNbt - default: void - players: mode ? - if add or join or leave: string[]varint - default: void - # MC: ClientboundSetScorePacket - packet_scoreboard_score: - itemName: string - scoreName: string - value: varint - display_name?: anonymousNbt - number_format?: varint - styling: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - # MC: ClientboundSetSimulationDistancePacket - packet_simulation_distance: - distance: varint - # MC: ClientboundSetSubtitleTextPacket - packet_set_title_subtitle: - text: anonymousNbt - # MC: ClientboundSetTimePacket - packet_update_time: - age: i64 - time: i64 - tickDayTime: bool - # MC: ClientboundSetTitleTextPacket - packet_set_title_text: - text: anonymousNbt - # MC: ClientboundSetTitlesAnimationPacket - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - # MC: ClientboundSoundEntityPacket - packet_entity_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - entityId: varint - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundSoundPacket - packet_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundStartConfigurationPacket - packet_start_configuration: - # Empty - # MC: ClientboundStopSoundPacket - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - ## (Store Cookie is Common) - # MC: ClientboundSystemChatPacket - packet_system_chat: - content: anonymousNbt - isActionBar: bool - # MC: ClientboundTabListPacket - packet_playerlist_header: - header: anonymousNbt - footer: anonymousNbt - # MC: ClientboundTagQueryPacket - packet_nbt_query_response: - transactionId: varint - nbt: anonOptionalNbt - # MC: ClientboundTakeItemEntityPacket - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - # MC: ClientboundTeleportEntityPacket - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundTestInstanceBlockStatusPacket - packet_test_instance_block_status: - status: anonymousNbt - size?: vec3i - # MC: ClientboundTickingStatePacket - packet_set_ticking_state: - tick_rate: f32 - is_frozen: bool - # MC: ClientboundTickingStepPacket - packet_step_tick: - tick_steps: varint - ## (Transfer is common) - # MC: ClientboundUpdateAdvancementsPacket - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: anonymousNbt - description: anonymousNbt - icon: Slot - frameType: varint - flags: ["bitfield", [ - { "name": "unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } - ]] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - requirements: []varint - _: string[]varint - sendsTelemtryData: bool - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - showAdvancements: bool - # MC: ClientboundUpdateAttributesPacket - packet_entity_update_attributes: - entityId: varint - properties: []varint - key: varint => - - generic.armor - - generic.armor_toughness - - generic.attack_damage - - generic.attack_knockback - - generic.attack_speed - - player.block_break_speed - - player.block_interaction_range - - burning_time - - camera_distance - - explosion_knockback_resistance - - player.entity_interaction_range - - generic.fall_damage_multiplier - - generic.flying_speed - - generic.follow_range - - generic.gravity - - generic.jump_strength - - generic.knockback_resistance - - generic.luck - - generic.max_absorption - - generic.max_health - - generic.movement_speed - - generic.safe_fall_distance - - generic.scale - - zombie.spawn_reinforcements - - generic.step_height - - submerged_mining_speed - - sweeping_damage_ratio - - tempt_range - - water_movement_efficiency - - waypoint_transmit_range - - waypoint_receive_range - value: f64 - modifiers: []varint - uuid: string - amount: f64 - operation: i8 - # MC: ClientboundUpdateMobEffectPacket - packet_entity_effect: - entityId: varint - effectId: varint - amplifier: varint - duration: varint - # a bitfield of 0x01 for ambient, 0x02 for show particles - # flags: ["bitfield", [ - # { "name": "unused", "size": 4 }, - # { "name": "ambient", "size": 1 }, - # { "name": "showParticles", "size": 1 }, - # { "name": "showIcon", "size": 1 }, - # { "name": "blend", "size": 1 } - # ]] - flags: u8 - # MC: ClientboundUpdateRecipesPacket - packet_declare_recipes: - recipes: []varint - name: string - items: varint[]varint - stoneCutterRecipes: []varint - input: IDSet - slotDisplay: SlotDisplay - - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags - # MC: ClientboundProjectilePowerPacket - packet_set_projectile_power: - id: varint - accelerationPower: f64 - ## (ClientboundCustomReportDetailsPacket, ClientboundServerLinksPacket is common) - # MC: ClientboundTrackedWaypointPacket - packet_tracked_waypoint: - operation: varint => - 0: track - 1: untrack - 2: update - waypoint: - hasUUID: bool - _: hasUUID ? - if true: - uuid: UUID - if false: - id: string - icon: - style: string - color?: - red: u8 - green: u8 - blue: u8 - type: varint => - 0: empty - 1: vec3i - 2: chunk - 3: azimuth - data: type ? - if vec3i: vec3i - if chunk: - chunkX: varint - chunkZ: varint - if azimuth: f32 - ## (clear_dialog is common) - # MC: ClientboundShowDialogGamePacket - packet_show_dialog: - dialog: ["registryEntryHolder", { "baseName": "dialog", "otherwise": { "name": "data", "type": "anonymousNbt" } }] - packet: - name: varint => - - bundle_delimiter - - spawn_entity - - animation - - statistics - - acknowledge_player_digging - - block_break_animation - - tile_entity_data - - block_action - - block_change - - boss_bar - - difficulty - - chunk_batch_finished - - chunk_batch_start - - chunk_biomes - - clear_titles - - tab_complete - - declare_commands - - close_window - - window_items - - craft_progress_bar - - set_slot - - cookie_request - - set_cooldown - - chat_suggestions - - custom_payload - - damage_event - - debug_block_value - - debug_chunk_value - - debug_entity_value - - debug_event - - debug_sample - - hide_message - - kick_disconnect - - profileless_chat - - entity_status - - sync_entity_position - - explosion - - unload_chunk - - game_state_change - - game_test_highlight_pos - - open_horse_window - - hurt_animation - - initialize_world_border - - keep_alive - - map_chunk - - world_event - - world_particles - - update_light - - login - - map - - trade_list - - rel_entity_move - - entity_move_look - - move_minecart - - entity_look - - vehicle_move - - open_book - - open_window - - open_sign_entity - - ping - - ping_response - - craft_recipe_response - - abilities - - player_chat - - end_combat_event - - enter_combat_event - - death_combat_event - - player_remove - - player_info - - face_player - - position - - player_rotation - - recipe_book_add - - recipe_book_remove - - recipe_book_settings - - entity_destroy - - remove_entity_effect - - reset_score - - remove_resource_pack - - add_resource_pack - - respawn - - entity_head_rotation - - multi_block_change - - select_advancement_tab - - server_data - - action_bar - - world_border_center - - world_border_lerp_size - - world_border_size - - world_border_warning_delay - - world_border_warning_reach - - camera - - update_view_position - - update_view_distance - - set_cursor_item - - spawn_position - - scoreboard_display_objective - - entity_metadata - - attach_entity - - entity_velocity - - entity_equipment - - experience - - update_health - - held_item_slot - - scoreboard_objective - - set_passengers - - set_player_inventory - - teams - - scoreboard_score - - simulation_distance - - set_title_subtitle - - update_time - - set_title_text - - set_title_time - - entity_sound_effect - - sound_effect - - start_configuration - - stop_sound - - store_cookie - - system_chat - - playerlist_header - - nbt_query_response - - collect - - entity_teleport - - test_instance_block_status - - set_ticking_state - - step_tick - - transfer - - advancements - - entity_update_attributes - - entity_effect - - declare_recipes - - tags - - set_projectile_power - - custom_report_details - - server_links - - tracked_waypoint - - clear_dialog - - show_dialog - params: name ? - if bundle_delimiter: void - if spawn_entity: packet_spawn_entity - if animation: packet_animation - if statistics: packet_statistics - if acknowledge_player_digging: packet_acknowledge_player_digging - if block_break_animation: packet_block_break_animation - if tile_entity_data: packet_tile_entity_data - if block_action: packet_block_action - if block_change: packet_block_change - if boss_bar: packet_boss_bar - if difficulty: packet_difficulty - if chunk_batch_finished: packet_chunk_batch_finished - if chunk_batch_start: packet_chunk_batch_start - if chunk_biomes: packet_chunk_biomes - if clear_titles: packet_clear_titles - if tab_complete: packet_tab_complete - if declare_commands: packet_declare_commands - if close_window: packet_close_window - if window_items: packet_window_items - if craft_progress_bar: packet_craft_progress_bar - if set_slot: packet_set_slot - if cookie_request: packet_common_cookie_request - if set_cooldown: packet_set_cooldown - if chat_suggestions: packet_chat_suggestions - if custom_payload: packet_custom_payload - if damage_event: packet_damage_event - if debug_block_value: packet_debug_block_value - if debug_chunk_value: packet_debug_chunk_value - if debug_entity_value: packet_debug_entity_value - if debug_event: packet_debug_event - if debug_sample: packet_debug_sample - if hide_message: packet_hide_message - if kick_disconnect: packet_kick_disconnect - if profileless_chat: packet_profileless_chat - if entity_status: packet_entity_status - if sync_entity_position: packet_sync_entity_position - if explosion: packet_explosion - if unload_chunk: packet_unload_chunk - if game_state_change: packet_game_state_change - if game_test_highlight_pos: packet_game_test_highlight_pos - if open_horse_window: packet_open_horse_window - if hurt_animation: packet_hurt_animation - if initialize_world_border: packet_initialize_world_border - if keep_alive: packet_keep_alive - if map_chunk: packet_map_chunk - if world_event: packet_world_event - if world_particles: packet_world_particles - if update_light: packet_update_light - if login: packet_login - if map: packet_map - if trade_list: packet_trade_list - if rel_entity_move: packet_rel_entity_move - if entity_move_look: packet_entity_move_look - if move_minecart: packet_move_minecart - if entity_look: packet_entity_look - if vehicle_move: packet_vehicle_move - if open_book: packet_open_book - if open_window: packet_open_window - if open_sign_entity: packet_open_sign_entity - if ping: packet_ping - if ping_response: packet_ping_response - if craft_recipe_response: packet_craft_recipe_response - if abilities: packet_abilities - if player_chat: packet_player_chat - if end_combat_event: packet_end_combat_event - if enter_combat_event: packet_enter_combat_event - if death_combat_event: packet_death_combat_event - if player_remove: packet_player_remove - if player_info: packet_player_info - if face_player: packet_face_player - if position: packet_position - if player_rotation: packet_player_rotation - if recipe_book_add: packet_recipe_book_add - if recipe_book_remove: packet_recipe_book_remove - if recipe_book_settings: packet_recipe_book_settings - if entity_destroy: packet_entity_destroy - if remove_entity_effect: packet_remove_entity_effect - if reset_score: packet_reset_score - if remove_resource_pack: packet_common_remove_resource_pack - if add_resource_pack: packet_common_add_resource_pack - if respawn: packet_respawn - if entity_head_rotation: packet_entity_head_rotation - if multi_block_change: packet_multi_block_change - if select_advancement_tab: packet_select_advancement_tab - if server_data: packet_server_data - if action_bar: packet_action_bar - if world_border_center: packet_world_border_center - if world_border_lerp_size: packet_world_border_lerp_size - if world_border_size: packet_world_border_size - if world_border_warning_delay: packet_world_border_warning_delay - if world_border_warning_reach: packet_world_border_warning_reach - if camera: packet_camera - if update_view_position: packet_update_view_position - if update_view_distance: packet_update_view_distance - if set_cursor_item: packet_set_cursor_item - if held_item_slot: packet_held_item_slot - if spawn_position: packet_spawn_position - if scoreboard_display_objective: packet_scoreboard_display_objective - if entity_metadata: packet_entity_metadata - if attach_entity: packet_attach_entity - if entity_velocity: packet_entity_velocity - if entity_equipment: packet_entity_equipment - if experience: packet_experience - if update_health: packet_update_health - if scoreboard_objective: packet_scoreboard_objective - if set_passengers: packet_set_passengers - if set_player_inventory: packet_set_player_inventory - if teams: packet_teams - if scoreboard_score: packet_scoreboard_score - if simulation_distance: packet_simulation_distance - if set_title_subtitle: packet_set_title_subtitle - if update_time: packet_update_time - if set_title_text: packet_set_title_text - if set_title_time: packet_set_title_time - if entity_sound_effect: packet_entity_sound_effect - if sound_effect: packet_sound_effect - if start_configuration: packet_start_configuration - if stop_sound: packet_stop_sound - if store_cookie: packet_common_store_cookie - if system_chat: packet_system_chat - if playerlist_header: packet_playerlist_header - if nbt_query_response: packet_nbt_query_response - if collect: packet_collect - if entity_teleport: packet_entity_teleport - if test_instance_block_status: packet_test_instance_block_status - if set_ticking_state: packet_set_ticking_state - if step_tick: packet_step_tick - if transfer: packet_common_transfer - if advancements: packet_advancements - if entity_update_attributes: packet_entity_update_attributes - if entity_effect: packet_entity_effect - if declare_recipes: packet_declare_recipes - if tags: packet_tags - if set_projectile_power: packet_set_projectile_power - if custom_report_details: packet_common_custom_report_details - if server_links: packet_common_server_links - if tracked_waypoint: packet_tracked_waypoint - if clear_dialog: packet_common_clear_dialog - if show_dialog: packet_show_dialog ^play.toServer.types: - # MC: ServerboundAcceptTeleportationPacket - packet_teleport_confirm: - teleportId: varint - # MC: ServerboundBlockEntityTagQueryPacket - packet_query_block_nbt: - transactionId: varint - location: position - # MC: ServerboundSelectBundleItemPacket - packet_select_bundle_item: - slotId: varint - selectedItemIndex: varint - # MC: ServerboundChangeDifficultyPacket - packet_set_difficulty: - newDifficulty: varint => - 0: peaceful - 1: easy - 2: normal - 3: hard - # MC: ServerboundChangeGameModePacket - packet_change_gamemode: - mode: varint => - 0: survival - 1: creative - 2: adventure - 3: spectator - # MC: ServerboundChatAckPacket - packet_message_acknowledgement: - count: varint - # MC: ServerboundChatCommandPacket - packet_chat_command: - command: string # MC: ServerboundChatCommandSignedPacket packet_chat_command_signed: command: string @@ -3385,465 +571,8 @@ } ] checksum: i8 - # MC: ServerboundChatPacket - packet_chat_message: - message: string - timestamp: i64 - salt: i64 - signature?: [ - "buffer", - { - "count": 256 - } - ] - offset: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - checksum: u8 - # MC: ServerboundChatSessionUpdatePacket - packet_chat_session_update: - sessionUUID: UUID - expireTime: i64 - publicKey: ByteArray - signature: ByteArray - # MC: ServerboundChunkBatchReceivedPacket - packet_chunk_batch_received: - chunksPerTick: f32 - # MC: ServerboundClientCommandPacket - packet_client_command: - actionId: varint - # MC: ServerboundClientTickEndPacket - packet_tick_end: - # Empty - # MC: ServerboundCommandSuggestionPacket - packet_tab_complete: - transactionId: varint - text: string - # MC: ServerboundConfigurationAcknowledgedPacket - packet_configuration_acknowledged: - # Empty + # MC: ServerboundContainerButtonClickPacket packet_enchant_item: windowId: ContainerID enchantment: i8 - # MC: ServerboundContainerClickPacket - packet_window_click: - windowId: ContainerID - stateId: varint - slot: i16 - mouseButton: i8 - mode: varint - changedSlots: []varint - location: i16 - item?: HashedSlot - cursorItem?: HashedSlot - # MC: ServerboundContainerClosePacket - packet_close_window: - windowId: ContainerID - # MC: ServerboundContainerSlotStateChangedPacket - packet_set_slot_state: - slot_id: varint - window_id: ContainerID - state: bool - ## (ServerboundCookieResponsePacket is common) - # MC: ServerboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ServerboundDebugSubscriptionRequestPacket - packet_debug_subscription_request: - subscriptions: DebugSubscriptionDataType[]varint - # MC: ServerboundEditBookPacket - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - # MC: ServerboundEntityTagQuery - packet_query_entity_nbt: - transactionId: varint - entityId: varint - # MC: ServerboundInteractPacket - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - # MC: ServerboundJigsawGeneratePacket - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundLockDifficultyPacket - packet_lock_difficulty: - locked: bool - - MovementFlags: ["bitflags", { - "type": "u8", - "flags": ["onGround", "hasHorizontalCollision"] - }] - # MC: ServerboundMovePlayerPacket.Pos - packet_position: - x: f64 - y: f64 - z: f64 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.PosRot - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.Rot - packet_look: - yaw: f32 - pitch: f32 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.StatusOnly - packet_flying: - flags: MovementFlags - # MC: ServerboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - # MC: ServerboundPaddleBoatPacket - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - # MC: ServerboundPickItemFromBlockPacket - packet_pick_item_from_block: - position: position - includeData: bool - # MC: ServerboundPickItemFromEntityPacket - packet_pick_item_from_entity: - entityId: varint - includeData: bool - # MC: ServerboundPingRequestPacket - packet_ping_request: - id: i64 - # MC: ServerboundPlaceRecipePacket - packet_craft_recipe_request: - windowId: ContainerID - recipeId: varint - makeAll: bool - # MC: ServerboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - # MC: ServerboundPlayerActionPacket - packet_block_dig: - status: varint - location: position - face: i8 - sequence: varint - # MC: ServerboundPlayerCommandPacket - packet_entity_action: - entityId: varint - actionId: varint => - - leave_bed - - start_sprinting - - stop_sprinting - - start_horse_jump - - stop_horse_jump - - open_vehicle_inventory - - start_elytra_flying - jumpBoost: varint - # MC: ServerboundPlayerInputPacket - # previously: packet_steer_vehicle - packet_player_input: - ## client/net/minecraft/world/entity/player/Input.java - inputs: ["bitflags", { - "type": "u8", - "flags": ["forward", "backward", "left", "right", "jump", "shift", "sprint"] - }] - # MC: ServerboundPlayerLoadedPacket - packet_player_loaded: - # Empty - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundRecipeBookChangeSettingsPacket - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - # MC: ServerboundRecipeBookSeenRecipePacket - packet_displayed_recipe: - recipeId: varint - # MC: ServerboundRenameItemPacket - packet_name_item: - name: string - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint - # MC: ServerboundSeenAdvancementsPacket - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - # MC: ServerboundSelectTradePacket - packet_select_trade: - slot: varint - # MC: ServerboundSetBeaconPacket - packet_set_beacon_effect: - primary_effect?: varint - secondary_effect?: varint - # MC: ServerboundSetCarriedItemPacket - packet_held_item_slot: - slotId: i16 - # MC: ServerboundSetCommandBlockPacket - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - # MC: ServerboundSetCommandMinecartPacket - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - # MC: ServerboundSetCreativeModeSlotPacket - packet_set_creative_slot: - slot: i16 - item: UntrustedSlot - # MC: ServerboundSetJigsawBlockPacket - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - selection_priority: varint - placement_priority: varint - # MC: ServerboundSetStructureBlockPacket - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varint - # New `strict` flag - flags: u8 => - - ignore_entities - - show_air - - show_bounding_box - - strict - # MC: ServerboundSetTestBlockPacket - packet_set_test_block: - position: position - mode: varint - message: string - # MC: ServerboundSignUpdatePacket - packet_update_sign: - location: position - isFrontText: bool - text1: string - text2: string - text3: string - text4: string - # MC: ServerboundSwingPacket - packet_arm_animation: - hand: varint - # MC: ServerboundTeleportToEntityPacket - packet_spectate: - target: UUID - # MC: ServerboundTestInstanceBlockActionPacket - packet_test_instance_block_action: - pos: position - action: varint - data: - test?: string - size: vec3i - rotation: varint - ignoreEntities: bool - status: varint - errorMessage?: anonymousNbt - # MC: ServerboundUseItemOnPacket - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - worldBorderHit: bool - sequence: varint - # MC: ServerboundUseItemPacket - packet_use_item: - hand: varint - sequence: varint - rotation: vec2f - - packet: - name: varint => - - teleport_confirm - - query_block_nbt - - select_bundle_item - - set_difficulty - - change_gamemode - - message_acknowledgement - - chat_command - - chat_command_signed - - chat_message - - chat_session_update - - chunk_batch_received - - client_command - - tick_end - - settings - - tab_complete - - configuration_acknowledged - # Maybe rename enchant_item if it is used for other things too - - enchant_item - - window_click - - close_window - - set_slot_state - - cookie_response - - custom_payload - - debug_subscription_request - - edit_book - - query_entity_nbt - - use_entity - - generate_structure - - keep_alive - - lock_difficulty - - position - - position_look - - look - - flying - - vehicle_move - - steer_boat - - pick_item_from_block - - pick_item_from_entity - - ping_request - - craft_recipe_request - - abilities - - block_dig - - entity_action - - player_input - - player_loaded - - pong - - recipe_book - - displayed_recipe - - name_item - - resource_pack_receive - - advancement_tab - - select_trade - - set_beacon_effect - - held_item_slot - - update_command_block - - update_command_block_minecart - - set_creative_slot - - update_jigsaw_block - - update_structure_block - - set_test_block - - update_sign - - arm_animation - - spectate - - test_instance_block_action - - block_place - - use_item - - custom_click_action - params: name ? - if teleport_confirm: packet_teleport_confirm - if query_block_nbt: packet_query_block_nbt - if select_bundle_item: packet_select_bundle_item - if set_difficulty: packet_set_difficulty - if change_gamemode: packet_change_gamemode - if message_acknowledgement: packet_message_acknowledgement - if chat_command: packet_chat_command - if chat_command_signed: packet_chat_command_signed - if chat_message: packet_chat_message - if chat_session_update: packet_chat_session_update - if chunk_batch_received: packet_chunk_batch_received - if client_command: packet_client_command - if tick_end: packet_tick_end - if settings: packet_common_settings - if tab_complete: packet_tab_complete - if configuration_acknowledged: packet_configuration_acknowledged - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if set_slot_state: packet_set_slot_state - if cookie_response: packet_common_cookie_response - if custom_payload: packet_custom_payload - if debug_subscription_request: packet_debug_subscription_request - if edit_book: packet_edit_book - if query_entity_nbt: packet_query_entity_nbt - if use_entity: packet_use_entity - if generate_structure: packet_generate_structure - if keep_alive: packet_keep_alive - if lock_difficulty: packet_lock_difficulty - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if pick_item_from_block: packet_pick_item_from_block - if pick_item_from_entity: packet_pick_item_from_entity - if ping_request: packet_ping_request - if craft_recipe_request: packet_craft_recipe_request - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if player_input: packet_player_input - if player_loaded: packet_player_loaded - if pong: packet_pong - if recipe_book: packet_recipe_book - if displayed_recipe: packet_displayed_recipe - if name_item: packet_name_item - if resource_pack_receive: packet_resource_pack_receive - if advancement_tab: packet_advancement_tab - if select_trade: packet_select_trade - if set_beacon_effect: packet_set_beacon_effect - if held_item_slot: packet_held_item_slot - if update_command_block: packet_update_command_block - if update_command_block_minecart: packet_update_command_block_minecart - if set_creative_slot: packet_set_creative_slot - if update_jigsaw_block: packet_update_jigsaw_block - if update_structure_block: packet_update_structure_block - if set_test_block: packet_set_test_block - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if test_instance_block_action: packet_test_instance_block_action - if block_place: packet_block_place - if use_item: packet_use_item - if custom_click_action: packet_common_custom_click_action diff --git a/data/pc/1.21.11/protocol.json b/data/pc/1.21.11/protocol.json index b98aa9a74..c75a102c0 100644 --- a/data/pc/1.21.11/protocol.json +++ b/data/pc/1.21.11/protocol.json @@ -5393,467 +5393,149 @@ } } }, - "configuration": { + "play": { "toClient": { "types": { - "packet": [ + "ChatType": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links", - "0x11": "clear_dialog", - "0x12": "show_dialog", - "0x13": "code_of_conduct" - }, - "type": "varint" - } - ] + "name": "translationKey", + "type": "string" }, { - "name": "params", + "name": "parameters", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "add_resource_pack": "packet_common_add_resource_pack", - "clear_dialog": "packet_common_clear_dialog", - "code_of_conduct": "packet_code_of_conduct", - "cookie_request": "packet_common_cookie_request", - "custom_payload": "packet_custom_payload", - "custom_report_details": "packet_common_custom_report_details", - "disconnect": "packet_disconnect", - "feature_flags": "packet_feature_flags", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "reset_chat": "packet_reset_chat", - "select_known_packs": "packet_common_select_known_packs", - "server_links": "packet_common_server_links", - "show_dialog": "packet_show_dialog", - "store_cookie": "packet_common_store_cookie", - "tags": "packet_tags", - "transfer": "packet_common_transfer" - } + "countType": "varint", + "type": "ChatTypeParameterType" } ] - } - ] - ], - "packet_code_of_conduct": [ - "container", - [ + }, { - "name": "contents", - "type": "string" + "name": "style", + "type": "anonymousNbt" } ] ], - "packet_custom_payload": [ + "ChatTypeParameterType": [ + "mapper", + { + "mappings": { + "0": "content", + "1": "sender", + "2": "target" + }, + "type": "varint" + } + ], + "ChatTypes": [ "container", [ { - "name": "channel", - "type": "string" + "name": "chat", + "type": "ChatType" }, { - "name": "data", - "type": "restBuffer" + "name": "narration", + "type": "ChatType" } ] ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" + "ChatTypesHolder": [ + "registryEntryHolder", + { + "baseName": "chatType", + "otherwise": { + "name": "data", + "type": "ChatTypes" } - ] + } ], - "packet_feature_flags": [ + "ExplosionParticleEntry": [ "container", [ { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ + "name": "data", + "type": "ExplosionParticleInfo" + }, { - "name": "keepAliveId", - "type": "i64" + "name": "weight", + "type": "varint" } ] ], - "packet_ping": [ + "ExplosionParticleInfo": [ "container", [ { - "name": "id", - "type": "i32" - } - ] - ], - "packet_registry_data": [ - "container", - [ + "name": "particle", + "type": "Particle" + }, { - "name": "id", - "type": "string" + "name": "scaling", + "type": "f32" }, { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] + "name": "speed", + "type": "f32" } ] ], - "packet_reset_chat": [ - "container", - [] + "PositionUpdateRelatives": [ + "bitflags", + { + "flags": [ + "x", + "y", + "z", + "yaw", + "pitch", + "dx", + "dy", + "dz", + "yawDelta" + ], + "type": "u32" + } ], - "packet_show_dialog": [ + "RecipeBookSetting": [ "container", [ { - "name": "dialog", - "type": "anonymousNbt" + "name": "open", + "type": "bool" + }, + { + "name": "filtering", + "type": "bool" } ] ], - "packet_tags": [ + "RecipeDisplay": [ "container", [ { - "name": "tags", + "name": "type", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] + "mappings": { + "0": "crafting_shapeless", + "1": "crafting_shaped", + "2": "furnace", + "3": "stonecutter", + "4": "smithing" + }, + "type": "varint" } ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet": [ - "container", - [ + }, { - "name": "name", + "name": "data", "type": [ - "mapper", - { - "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_click_action", - "0x09": "accept_code_of_conduct" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "accept_code_of_conduct": "packet_accept_code_of_conduct", - "cookie_response": "packet_common_cookie_response", - "custom_click_action": "packet_common_custom_click_action", - "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "settings": "packet_common_settings" - } - } - ] - } - ] - ], - "packet_accept_code_of_conduct": [ - "container", - [] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_resource_pack_receive": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "result", - "type": "varint" - } - ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "ChatType": [ - "container", - [ - { - "name": "translationKey", - "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "ChatTypeParameterType" - } - ] - }, - { - "name": "style", - "type": "anonymousNbt" - } - ] - ], - "ChatTypeParameterType": [ - "mapper", - { - "mappings": { - "0": "content", - "1": "sender", - "2": "target" - }, - "type": "varint" - } - ], - "ChatTypes": [ - "container", - [ - { - "name": "chat", - "type": "ChatType" - }, - { - "name": "narration", - "type": "ChatType" - } - ] - ], - "ChatTypesHolder": [ - "registryEntryHolder", - { - "baseName": "chatType", - "otherwise": { - "name": "data", - "type": "ChatTypes" - } - } - ], - "ExplosionParticleEntry": [ - "container", - [ - { - "name": "data", - "type": "ExplosionParticleInfo" - }, - { - "name": "weight", - "type": "varint" - } - ] - ], - "ExplosionParticleInfo": [ - "container", - [ - { - "name": "particle", - "type": "Particle" - }, - { - "name": "scaling", - "type": "f32" - }, - { - "name": "speed", - "type": "f32" - } - ] - ], - "PositionUpdateRelatives": [ - "bitflags", - { - "flags": [ - "x", - "y", - "z", - "yaw", - "pitch", - "dx", - "dy", - "dz", - "yawDelta" - ], - "type": "u32" - } - ], - "RecipeBookSetting": [ - "container", - [ - { - "name": "open", - "type": "bool" - }, - { - "name": "filtering", - "type": "bool" - } - ] - ], - "RecipeDisplay": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "mappings": { - "0": "crafting_shapeless", - "1": "crafting_shaped", - "2": "furnace", - "3": "stonecutter", - "4": "smithing" - }, - "type": "varint" - } - ] - }, - { - "name": "data", - "type": [ - "switch", + "switch", { "compareTo": "type", "fields": { @@ -11692,5 +11374,323 @@ ] } } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links", + "0x11": "clear_dialog", + "0x12": "show_dialog", + "0x13": "code_of_conduct" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "add_resource_pack": "packet_common_add_resource_pack", + "clear_dialog": "packet_common_clear_dialog", + "code_of_conduct": "packet_code_of_conduct", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "show_dialog": "packet_show_dialog", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" + } + } + ] + } + ] + ], + "packet_code_of_conduct": [ + "container", + [ + { + "name": "contents", + "type": "string" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "anonymousNbt" + } + ] + ], + "packet_feature_flags": [ + "container", + [ + { + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_ping": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], + "packet_registry_data": [ + "container", + [ + { + "name": "id", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] + } + ] + } + ] + ], + "packet_reset_chat": [ + "container", + [] + ], + "packet_show_dialog": [ + "container", + [ + { + "name": "dialog", + "type": "anonymousNbt" + } + ] + ], + "packet_tags": [ + "container", + [ + { + "name": "tags", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_click_action", + "0x09": "accept_code_of_conduct" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "accept_code_of_conduct": "packet_accept_code_of_conduct", + "cookie_response": "packet_common_cookie_response", + "custom_click_action": "packet_common_custom_click_action", + "custom_payload": "packet_custom_payload", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "select_known_packs": "packet_common_select_known_packs", + "settings": "packet_common_settings" + } + } + ] + } + ] + ], + "packet_accept_code_of_conduct": [ + "container", + [] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_pong": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], + "packet_resource_pack_receive": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "result", + "type": "varint" + } + ] + ] + } + } } } \ No newline at end of file diff --git a/data/pc/1.21.3/proto.yml b/data/pc/1.21.3/proto.yml index e631b48d0..de57cb356 100644 --- a/data/pc/1.21.3/proto.yml +++ b/data/pc/1.21.3/proto.yml @@ -1,65 +1,13 @@ !version: 1.21.3 -!StartDocs: true +!base: 1.21 ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - anonymousNbt: native - anonOptionalNbt: native - registryEntryHolder: native - registryEntryHolderSet: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec2f: - x: f32 - y: f32 - vec3f: - x: f32 - y: f32 - z: f32 - vec4f: - x: f32 - y: f32 - z: f32 - w: f32 - vec3f64: - x: f64 - y: f64 - z: f64 - vec3i16: - x: i16 - y: i16 - z: i16 - IDSet: ["registryEntryHolderSet", { - "base": { name: "name", type: "string" }, - "otherwise": { name: "ids", type: "varint" } - }] + minecraft_smelting_format: !delete + + minecraft_simple_recipe_format: !delete + ContainerID: varint + SlotComponentType: varint => - custom_data - max_stack_size @@ -190,7 +138,7 @@ if creative_slot_lock: void if enchantment_glint_override: bool if intangible_projectile: anonymousNbt - if food: + if food: nutrition: varint # How much saturation will be given after consuming the item. saturationModifier: f32 @@ -357,65 +305,6 @@ ItemSoundEvent: soundName: string fixedRange?: f32 - ItemSoundHolder: ["registryEntryHolder", { - "baseName": "soundId", - "otherwise": { name: "data", type: "ItemSoundEvent" } - }] - - ItemFireworkExplosion: - shape: varint => - - small_ball - - large_ball - - star - - creeper - - burst - # The RGB components of the color, encoded as an integer. - colors: i32[]varint - # The RGB components of the color, encoded as an integer. - fadeColors: i32[]varint - # Whether the firework has a trail. - hasTrail: bool - # Whether the firework has a twinkle effect. - hasTwinkle: bool - - ItemEffectDetail: - amplifier: varint - duration: varint - ambient: bool - showParticles: bool - showIcon: bool - hiddenEffect?: ItemEffectDetail - - ItemPotionEffect: - id: varint - details: ItemEffectDetail - - ItemBlockProperty: - name: string - isExactMatch: bool - value: isExactMatch ? - if true: - exactValue: string - if false: - minValue: string - maxValue: string - - - ItemBlockPredicate: - blockSet?: ["registryEntryHolderSet", { - "base": { name: "name", type: "string" }, - "otherwise": { name: "blockIds", type: "varint" } - }] - properties?: ItemBlockProperty[]varint - nbt: anonOptionalNbt - - ItemBookPage: - # The raw text of the page. TextComponent, max 1024 characters. - content: string - filteredContent?: string - ItemWrittenBookPage: - content: anonymousNbt - filteredContent: anonOptionalNbt ItemConsumeEffect: # 1.21.3 type: varint => @@ -436,52 +325,10 @@ if play_sound: sound: ItemSoundHolder - ArmorTrimMaterial: - assetName: string - ingredientId: varint - overrideArmorAssets: []varint - key: string - value: string - description: anonymousNbt - - ArmorTrimPattern: - assetId: string - templateItemId: varint - description: anonymousNbt - decal: bool - - InstrumentData: - soundEvent: ItemSoundHolder - useDuration: f32 - range: f32 - description: anonymousNbt - - JukeboxSongData: - soundEvent: ItemSoundHolder - description: anonymousNbt - lengthInSeconds: f32 - comparatorOutput: varint - - BannerPattern: - assetId: string - translationKey: string BannerPatternLayer: pattern: ItemSoundHolder colorId: varint - Slot: - itemCount: varint - _: itemCount ? - if 0: void - default: - itemId: varint - # https://wiki.vg/Slot_Data#Structured_components - addedComponentCount: varint - removedComponentCount: varint - components: SlotComponent[]$addedComponentCount - removeComponents: []$removedComponentCount - type: SlotComponentType - Particle: # See client/net/minecraft/core/particles/ParticleTypes.java type: varint => @@ -642,479 +489,7 @@ if trail: target: vec3f64 color: u8 - ingredient: Slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - soundSource: varint => - 0: master - 1: music - 2: record - 3: weather - 4: block - 5: hostile - 6: neutral - 7: player - 8: ambient - 9: voice - packedChunkPos: - z: i32 - x: i32 - previousMessages: []varint - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - entityMetadataEntry: - key: u8 - type: varint => - - byte - - int - - long - - float - - string - - component - - optional_component - - item_stack - - boolean - - rotations - - block_pos - - optional_block_pos - - direction - - optional_uuid - - block_state - - optional_block_state - - compound_tag - - particle - - particles - - villager_data - - optional_unsigned_int - - pose - - cat_variant - - wolf_variant - - frog_variant - - optional_global_pos - - painting_variant - - sniffer_state - - armadillo_state - - vector3 - - quaternion - value: type ? - if byte: i8 - if int: varint - if long: varlong - if float: f32 - if string: string - if component: anonymousNbt - if optional_component: ["option", "anonymousNbt"] - if item_stack: Slot - if boolean: bool - if rotations: - pitch: f32 - yaw: f32 - roll: f32 - if block_pos: position - if optional_block_pos: ["option", "position"] - if direction: varint - if optional_uuid: ["option", "UUID"] - if block_state: varint - if optional_block_state: optvarint - if compound_tag: anonymousNbt - if particle: Particle - if particles: Particle[]varint - if villager_data: - villagerType: varint - villagerProfession: varint - level: varint - if optional_unsigned_int: optvarint - if pose: varint - if cat_variant: varint - if wolf_variant: ["registryEntryHolder", { - "baseName": "variantId", - "otherwise": { name: "variantData", type: "EntityMetadataWolfVariant" } - }] - if frog_variant: varint - if optional_global_pos: ["option", "string"] - if painting_variant: ["registryEntryHolder", { - "baseName": "variantId", - "otherwise": { name: "variantData", type: "EntityMetadataPaintingVariant" } - }] - if sniffer_state: varint - if armadillo_state: varint - if vector3: vec3f - if quaternion: vec4f - EntityMetadataPaintingVariant: - width: i32 - height: i32 - assetId: string - title?: anonymousNbt - author?: anonymousNbt - EntityMetadataWolfVariant: - wildTexture: string - tameTexture: string - angryTexture: string - biome: IDSet - entityMetadata: ["entityMetadataLoop", { "endVal": 255, "type": "entityMetadataEntry" }] - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: - _: [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - y: i16 - type: varint - nbtData: anonOptionalNbt - chat_session?: - uuid: UUID - publicKey: - expireTime: i64 - keyBytes: [ - "buffer", - { - "countType": "varint" - } - ] - keySignature: [ - "buffer", - { - "countType": "varint" - } - ] - game_profile: - name: string - properties: []varint - name: string - value: string - signature?: string - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: varint => - - brigadier:bool - - brigadier:float - - brigadier:double - - brigadier:integer - - brigadier:long - - brigadier:string - - minecraft:entity - - minecraft:game_profile - - minecraft:block_pos - - minecraft:column_pos - - minecraft:vec3 - - minecraft:vec2 - - minecraft:block_state - - minecraft:block_predicate - - minecraft:item_stack - - minecraft:item_predicate - - minecraft:color - - minecraft:component - - minecraft:style - - minecraft:message - - minecraft:nbt - - minecraft:nbt_tag - - minecraft:nbt_path - - minecraft:objective - - minecraft:objective_criteria - - minecraft:operation - - minecraft:particle - - minecraft:angle - - minecraft:rotation - - minecraft:scoreboard_slot - - minecraft:score_holder - - minecraft:swizzle - - minecraft:team - - minecraft:item_slot - - minecraft:item_slots # 1.20.5 - - minecraft:resource_location - - minecraft:function - - minecraft:entity_anchor - - minecraft:int_range - - minecraft:float_range - - minecraft:dimension - - minecraft:gamemode - - minecraft:time - - minecraft:resource_or_tag - - minecraft:resource_or_tag_key - - minecraft:resource - - minecraft:resource_key - - minecraft:template_mirror - - minecraft:template_rotation - - minecraft:heightmap - - minecraft:loot_table # 1.20.5 - - minecraft:loot_predicate # 1.20.5 - - minecraft:loot_modifier # 1.20.5 - - minecraft:uuid - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:dimension: void - if minecraft:gamemode: void - if minecraft:time: - min: i32 - if minecraft:resource_or_tag: - registry: string - if minecraft:resource_or_tag_key: - registry: string - if minecraft:resource: - registry: string - if minecraft:resource_key: - registry: string - if minecraft:template_mirror: void - if minecraft:template_rotation: void - if minecraft:heightmap: void - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void # # Shared Packets # These are packets that are shared between multiple states. # They are defined here to avoid duplication. @@ -1133,134 +508,14 @@ - all - decreased - minimal - # MC: ClientboundCookieRequestPacket - packet_common_cookie_request: - cookie: string - # MC: ClientboundStoreCookiePacket - packet_common_store_cookie: - key: string - value: ByteArray - # MC: ClientboundTransferPacket - packet_common_transfer: - host: string - port: varint - # MC: ServerboundCookieResponsePacket - packet_common_cookie_response: - key: string - value?: ByteArray - # MC: ServerboundSelectKnownPacks - # MC: ClientboundSelectKnownPacks - packet_common_select_known_packs: - packs: []varint - namespace: string - id: string - version: string + # MC: ClientboundCustomReportDetailsPacket packet_common_custom_report_details: details: []varint key: string value: string - # MC: ClientboundResourcePackPopPacket - packet_common_remove_resource_pack: - uuid?: UUID - # MC: ClientboundResourcePackPushPacket - packet_common_add_resource_pack: - uuid: UUID - url: string - hash: string - forced: bool - promptMessage?: anonymousNbt - ServerLinkType: varint => - - bug_report - - community_guidelines - - support - - status - - feedback - - community - - website - - forums - - news - - announcements - # MC: ClientboundServerLinksPacket - # This packet contains a list of links that the Notchian client will display in the menu - # available from the pause menu. Link labels can be built-in or custom (i.e., any text). - packet_common_server_links: - links: []varint - hasKnownType: bool - knownType: hasKnownType ? - if true: ServerLinkType - unknownType: hasKnownType ? - if false: anonymousNbt - link: string - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping -^status.toClient.types: - # MC: ClientboundStatusResponsePacket - packet_server_info: - response: string - # MC: ClientboundPongResponsePacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping -^status.toServer.types: - # MC: ServerboundStatusRequestPacket - packet_ping_start: - # Empty - # MC: ServerboundPingRequestPacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping ^login.toClient.types: - # MC: ClientboundLoginDisconnectPacket - packet_disconnect: - reason: string - # MC: ClientboundHelloPacket - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - shouldAuthenticate: bool # MC: ClientboundLoginFinishedPacket packet_success: uuid: UUID @@ -1269,189 +524,10 @@ name: string value: string signature?: string - # MC: ClientboundLoginCompressionPacket - packet_compress: - threshold: varint - # MC: ClientboundCustomQueryPacket - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - ## (Cookie Request is Common) ## - packet: - name: varint => - - disconnect - - encryption_begin - - success - - compress - - login_plugin_request - - cookie_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - if cookie_request: packet_common_cookie_request -^login.toServer.types: - # MC: ServerboundHelloPacket - packet_login_start: - username: string - playerUUID: UUID - # MC: ServerboundKeyPacket - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ServerboundCustomQueryAnswerPacket - packet_login_plugin_response: - messageId: varint - data?: restBuffer - # MC: ServerboundLoginAcknowledgedPacket - packet_login_acknowledged: - # Empty - ## (Cookie Response is Common) ## - packet: - name: varint => - - login_start - - encryption_begin - - login_plugin_response - - login_acknowledged - - cookie_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response - if login_acknowledged: packet_login_acknowledged - if cookie_response: packet_common_cookie_response -^configuration.toClient.types: - ## (Cookie Request is common) - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDisconnectPacket - packet_disconnect: - reason: anonymousNbt - # MC: ClientboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundResetChatPacket - packet_reset_chat: - # Empty - # MC: ClientboundRegistryDataPacket - packet_registry_data: - # The server can send multiple registries - id: string - entries: []varint - key: string - value?: anonymousNbt - ## (Store cookie and Transfer are Common) ## - # MC: ClientboundUpdateEnabledFeaturesPacket - packet_feature_flags: - features: string[]varint - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags - ## (Select known packs is common) - packet: - name: varint => - - cookie_request - - custom_payload - - disconnect - - finish_configuration - - keep_alive - - ping - - reset_chat - - registry_data - - remove_resource_pack - - add_resource_pack - - store_cookie - - transfer - - feature_flags - - tags - - select_known_packs - - custom_report_details - - server_links - params: name ? - if cookie_request: packet_common_cookie_request - if custom_payload: packet_custom_payload - if disconnect: packet_disconnect - if finish_configuration: packet_finish_configuration - if keep_alive: packet_keep_alive - if ping: packet_ping - if reset_chat: packet_reset_chat - if registry_data: packet_registry_data - if remove_resource_pack: packet_common_remove_resource_pack - if add_resource_pack: packet_common_add_resource_pack - if store_cookie: packet_common_store_cookie - if transfer: packet_common_transfer - if feature_flags: packet_feature_flags - if tags: packet_tags - if select_known_packs: packet_common_select_known_packs - if custom_report_details: packet_common_custom_report_details - if server_links: packet_common_server_links -^configuration.toServer.types: - ## (Settings is Common) ## - ## (Cookie Response is Common) ## - # MC: ServerboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ServerboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint - packet: - name: varint => - - settings - - cookie_response - - custom_payload - - finish_configuration - - keep_alive - - pong - - resource_pack_receive - - select_known_packs - - custom_report_details - - server_links - params: name ? - if settings: packet_common_settings - if cookie_response: packet_common_cookie_response - if custom_payload: packet_custom_payload - if finish_configuration: packet_finish_configuration - if keep_alive: packet_keep_alive - if pong: packet_pong - if resource_pack_receive: packet_resource_pack_receive - if select_known_packs: packet_common_select_known_packs - if custom_report_details: packet_common_custom_report_details - if server_links: packet_common_server_links + ^play.toClient.types: + packet_unlock_recipes: !delete + SlotDisplay: type: varint => - empty @@ -1475,6 +551,7 @@ input: SlotDisplay remainder: SlotDisplay if composite: SlotDisplay[]varint + RecipeDisplay: type: varint => - crafting_shapeless @@ -1510,6 +587,7 @@ addition: SlotDisplay result: SlotDisplay craftingStation: SlotDisplay + # World state information for spawn and respawn packets SpawnInfo: dimension: varint @@ -1529,198 +607,13 @@ portalCooldown: varint seaLevel: varint - # MC: ClientboundAddEntityPacket - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - headPitch: i8 - objectData: varint - velocity: vec3i16 - # MC: ClientboundAddExperienceOrbPacket - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - # MC: ClientboundAnimatePacket - packet_animation: - entityId: varint - animation: u8 - # MC: ClientboundAwardStatsPacket - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - # MC: ClientboundBlockChangedAckPacket - packet_acknowledge_player_digging: - sequenceId: varint - # MC: ClientboundBlockDestructionPacket - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - # MC: ClientboundBlockEntityDataPacket - packet_tile_entity_data: - location: position - action: varint - nbtData: anonOptionalNbt - # MC: ClientboundBlockEventPacket - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - # MC: ClientboundBlockUpdatePacket - packet_block_change: - location: position - type: varint - # MC: ClientboundBossEventPacket - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: anonymousNbt - if 3: anonymousNbt - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - # MC: ClientboundChangeDifficultyPacket - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - # MC: ClientboundChunkBatchFinishedPacket - packet_chunk_batch_finished: - batchSize: varint - # MC: ClientboundChunkBatchStartPacket - packet_chunk_batch_start: - # Empty - # MC: ClientboundChunksBiomesPacket - packet_chunk_biomes: - biomes: []varint - position: packedChunkPos - data: ByteArray - # MC: ClientboundClearTitlesPacket - packet_clear_titles: - reset: bool - # MC: ClientboundCommandSuggestionsPacket - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: anonymousNbt - # MC: ClientboundCommandsPacket - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - # MC: ClientboundContainerClosePacket - packet_close_window: - windowId: ContainerID - # MC: ClientboundContainerSetContentPacket - packet_window_items: - windowId: ContainerID - stateId: varint - items: Slot[]varint - carriedItem: Slot - # MC: ClientboundContainerSetDataPacket - packet_craft_progress_bar: - windowId: ContainerID - property: i16 - value: i16 - # MC: ClientboundContainerSetSlotPacket - packet_set_slot: - windowId: ContainerID - stateId: varint - slot: i16 - item: Slot ## (Cookie Request is Common) # MC: ClientboundCooldownPacket packet_set_cooldown: # TODO: figure out what this is cooldownGroup: string cooldownTicks: varint - # MC: ClientboundCustomChatCompletionsPacket - packet_chat_suggestions: - action: varint - entries: string[]varint - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDamageEventPacket - packet_damage_event: - entityId: varint - sourceTypeId: varint - sourceCauseId: varint - sourceDirectId: varint - sourcePosition?: vec3f64 - # MC: ClientboundDebugSamplePacket - packet_debug_sample: - sample: i64[]varint - type: varint - # MC: ClientboundDeleteChatPacket - packet_hide_message: - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - # MC: ClientboundDisconnectPacket - packet_kick_disconnect: - reason: anonymousNbt - - ## client\net\minecraft\network\chat\ChatTypeDecoration.java - ## via client\net\minecraft\network\chat\ChatType.java - ChatTypeParameterType: varint => - - content - - sender - - target - ChatType: - translationKey: string - parameters: ChatTypeParameterType[]varint - style: anonymousNbt - ChatTypes: - chat: ChatType - narration: ChatType - ChatTypesHolder: ["registryEntryHolder", { "baseName": "chatType", "otherwise": { name: "data", type: "ChatTypes" } }] - # MC: ClientboundDisguisedChatPacket - packet_profileless_chat: - message: anonymousNbt - type: ChatTypesHolder - name: anonymousNbt - target?: anonymousNbt - # MC: ClientboundEntityEventPacket - packet_entity_status: - entityId: i32 - entityStatus: i8 # MC: ClientboundEntityPositionSyncPacket packet_sync_entity_position: entityId: varint @@ -1733,6 +626,7 @@ yaw: f32 pitch: f32 onGround: bool + # MC: ClientboundExplodePacket packet_explosion: x: f64 @@ -1741,171 +635,7 @@ playerKnockback?: vec3f explosionParticle: Particle sound: ItemSoundHolder - # MC: ClientboundForgetLevelChunkPacket - packet_unload_chunk: - chunkZ: i32 - chunkX: i32 - # MC: ClientboundGameEventPacket - packet_game_state_change: - reason: u8 - gameMode: f32 - # MC: ClientboundHorseScreenOpenPacket - packet_open_horse_window: - windowId: ContainerID - nbSlots: varint - entityId: i32 - # MC: ClientboundHurtAnimationPacket - packet_hurt_animation: - entityId: varint - yaw: f32 - # MC: ClientboundInitializeBorderPacket - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varint - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundLevelChunkWithLightPacket - packet_map_chunk: - x: i32 - z: i32 - heightmaps: anonymousNbt - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: chunkBlockEntity[]varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - # MC: ClientboundLevelEventPacket - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - # MC: ClientboundLevelParticlesPacket - packet_world_particles: - longDistance: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - velocityOffset: f32 - amount: i32 - particle: Particle - # MC: ClientboundLightUpdatePacket - packet_update_light: - chunkX: varint - chunkZ: varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - # MC: ClientboundLoginPacket - packet_login: - entityId: i32 - isHardcore: bool - worldNames: string[]varint - maxPlayers: varint - viewDistance: varint - simulationDistance: varint - reducedDebugInfo: bool - enableRespawnScreen: bool - doLimitedCrafting: bool - worldState: SpawnInfo - enforcesSecureChat: bool - # MC: ClientboundMapItemDataPacket - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: anonymousNbt - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ClientboundMerchantOffersPacket - packet_trade_list: - windowId: ContainerID - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.20.5/client/net/minecraft/world/item/trading/MerchantOffer.java#L210 - trades: []varint - inputItem1: - itemId: varint - itemCount: varint - addedComponentCount: varint - components: SlotComponent[]$addedComponentCount - outputItem: Slot - inputItem2?: - itemId: varint - itemCount: varint - addedComponentCount: varint - components: SlotComponent[]$addedComponentCount - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - # MC: ClientboundMoveEntityPacket.Pos - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - # MC: ClientboundMoveEntityPacket.PosRot - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool + # MC: ClientboundMoveMinecartPacket packet_move_minecart: # 1.21.3 entityId: varint @@ -1915,81 +645,12 @@ yaw: f32 pitch: f32 weight: f32 - # MC: ClientboundMoveEntityPacket.Rot - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - # MC: ClientboundOpenBookPacket - packet_open_book: - hand: varint - # MC: ClientboundOpenScreenPacket - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: anonymousNbt - # MC: ClientboundOpenSignEditorPacket - packet_open_sign_entity: - location: position - isFrontText: bool - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundPongResponsePacket - packet_ping_response: - id: i64 + # MC: ClientboundPlaceGhostRecipePacket packet_craft_recipe_response: windowId: ContainerID recipeDisplay: RecipeDisplay - # MC: ClientboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - # MC: ClientboundPlayerChatPacket - packet_player_chat: - senderUuid: UUID - index: varint - signature?: [ - "buffer", - { - "count": 256 - } - ] - plainMessage: string - timestamp: i64 - salt: i64 - previousMessages: previousMessages - unsignedChatContent?: anonymousNbt - filterType: varint - filterTypeMask: filterType ? - if 2: i64[]varint - default: void - type: ChatTypesHolder - networkName: anonymousNbt - networkTargetName?: anonymousNbt - # MC: ClientboundPlayerCombatEndPacket - packet_end_combat_event: - duration: varint - # MC: ClientboundPlayerCombatEnterPacket - packet_enter_combat_event: - # Empty - # MC: ClientboundPlayerCombatKillPacket - packet_death_combat_event: - playerId: varint - message: anonymousNbt - # MC: ClientboundPlayerInfoRemovePacket - packet_player_remove: - players: UUID[]varint + # MC: ClientboundPlayerInfoUpdatePacket packet_player_info: ## ClientboundPlayerInfoUpdatePacket.java#L160 @@ -2029,25 +690,12 @@ if true: varint default: void - # MC: ClientboundPlayerLookAtPacket - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: varint - default: void - # https://github.com/extremeheat/extracted_minecraft_data/blob/client1.21.2/client/net/minecraft/world/entity/Relative.java#L82 PositionUpdateRelatives: ["bitflags", { "type": "u32", "flags": ["x", "y", "z", "yaw", "pitch", "dx", "dy", "dz", "yawDelta"] }] + # MC: ClientboundPlayerPositionPacket packet_position: teleportId: varint @@ -2060,6 +708,7 @@ yaw: f32 pitch: f32 flags: PositionUpdateRelatives + # MC: ClientboundPlayerRotationPacket packet_player_rotation: yaw: f32 @@ -2094,9 +743,11 @@ "flags": ["notification", "highlight"] }] replace: bool + # MC: ClientboundRecipeBookRemovePacket packet_recipe_book_remove: recipeIds: varint[]varint + # MC: ClientboundRecipeBookSettingsPacket packet_recipe_book_settings: craftingGuiOpen: bool @@ -2107,383 +758,33 @@ blastFilteringCraftable: bool smokerGuiOpen: bool smokerFilteringCraftable: bool - # MC: ClientboundRemoveEntitiesPacket - packet_entity_destroy: - entityIds: varint[]varint - # MC: ClientboundRemoveMobEffectPacket - packet_remove_entity_effect: - entityId: varint - effectId: varint - # MC: ClientboundResetScorePacket - packet_reset_score: - entity_name: string - objective_name?: string + ## (remove_resource_pack is common) # MC: ClientboundRespawnPacket packet_respawn: worldState: SpawnInfo # Bit field: 0b1 - KEEP_ATTRIBUTE_MODIFIERS, 0b10 - KEEP_ENTITY_DATA copyMetadata: u8 - # MC: ClientboundRotateHeadPacket - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - # MC: ClientboundSectionBlocksUpdatePacket - packet_multi_block_change: - chunkCoordinates: [ "bitfield", [ - { "name": "x", "size": 22, "signed": true }, - { "name": "z", "size": 22, "signed": true }, - { "name": "y", "size": 20, "signed": true } - ]] - records: varint[]varint - # MC: ClientboundSelectAdvancementsTabPacket - packet_select_advancement_tab: - id?: string - # MC: ClientboundServerDataPacket - packet_server_data: - motd: anonymousNbt - iconBytes?: ByteArray - # MC: ClientboundSetActionBarTextPacket - packet_action_bar: - text: anonymousNbt - # MC: ClientboundSetBorderCenterPacket - packet_world_border_center: - x: f64 - z: f64 - # MC: ClientboundSetBorderLerpSizePacket - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varint - # MC: ClientboundSetBorderSizePacket - packet_world_border_size: - diameter: f64 - # MC: ClientboundSetBorderWarningDelayPacket - packet_world_border_warning_delay: - warningTime: varint - # MC: ClientboundSetBorderWarningDistancePacket - packet_world_border_warning_reach: - warningBlocks: varint - # MC: ClientboundSetCameraPacket - packet_camera: - cameraId: varint - # MC: ClientboundSetChunkCacheCenterPacket - packet_update_view_position: - chunkX: varint - chunkZ: varint - # MC: ClientboundSetChunkCacheRadiusPacket - packet_update_view_distance: - viewDistance: varint + # MC: ClientboundSetCursorItemPacket packet_set_cursor_item: contents?: Slot - # MC: ClientboundSetDefaultSpawnPositionPacket - packet_spawn_position: - location: position - angle: f32 - # MC: ClientboundSetDisplayObjectivePacket - packet_scoreboard_display_objective: - position: varint - name: string - # MC: ClientboundSetEntityDataPacket - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - # MC: ClientboundSetEntityLinkPacket - packet_attach_entity: - entityId: i32 - vehicleId: i32 - # MC: ClientboundSetEntityMotionPacket - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - # MC: ClientboundSetEquipmentPacket - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] - # MC: ClientboundSetExperiencePacket - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - # MC: ClientboundSetHealthPacket - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 + # MC: ClientboundSetHeldSlotPacket packet_held_item_slot: slot: i8 - # MC: ClientboundSetObjectivePacket - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - type: action ? - if 0: varint - if 2: varint - default: void - number_format: action ? - if 0: [ - "option", - "varint" - ] - if 2: [ - "option", - "varint" - ] - default: void - styling: action ? - if 0: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - if 2: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - default: void - # MC: ClientboundSetPassengersPacket - packet_set_passengers: - entityId: varint - passengers: varint[]varint + # MC: ClientboundSetPlayerInventoryPacket packet_set_player_inventory: slotId: varint contents?: Slot - # MC: ClientboundSetPlayerTeamPacket - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - suffix: mode ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - # MC: ClientboundSetScorePacket - packet_scoreboard_score: - itemName: string - scoreName: string - value: varint - display_name?: anonymousNbt - number_format?: varint - styling: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - # MC: ClientboundSetSimulationDistancePacket - packet_simulation_distance: - distance: varint - # MC: ClientboundSetSubtitleTextPacket - packet_set_title_subtitle: - text: anonymousNbt + # MC: ClientboundSetTimePacket packet_update_time: age: i64 time: i64 tickDayTime: bool - # MC: ClientboundSetTitleTextPacket - packet_set_title_text: - text: anonymousNbt - # MC: ClientboundSetTitlesAnimationPacket - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - # MC: ClientboundSoundEntityPacket - packet_entity_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - entityId: varint - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundSoundPacket - packet_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundStartConfigurationPacket - packet_start_configuration: - # Empty - # MC: ClientboundStopSoundPacket - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - ## (Store Cookie is Common) - # MC: ClientboundSystemChatPacket - packet_system_chat: - content: anonymousNbt - isActionBar: bool - # MC: ClientboundTabListPacket - packet_playerlist_header: - header: anonymousNbt - footer: anonymousNbt - # MC: ClientboundTagQueryPacket - packet_nbt_query_response: - transactionId: varint - nbt: anonOptionalNbt - # MC: ClientboundTakeItemEntityPacket - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - # MC: ClientboundTeleportEntityPacket - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundTickingStatePacket - packet_set_ticking_state: - tick_rate: f32 - is_frozen: bool - # MC: ClientboundTickingStepPacket - packet_step_tick: - tick_steps: varint - ## (Transfer is common) - # MC: ClientboundUpdateAdvancementsPacket - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: anonymousNbt - description: anonymousNbt - icon: Slot - frameType: varint - flags: ["bitfield", [ - { "name": "unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } - ]] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - requirements: []varint - _: string[]varint - sendsTelemtryData: bool - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - # MC: ClientboundUpdateAttributesPacket - packet_entity_update_attributes: - entityId: varint - properties: []varint - key: varint => - - generic.armor - - generic.armor_toughness - - generic.attack_damage - - generic.attack_knockback - - generic.attack_speed - - player.block_break_speed - - player.block_interaction_range - - player.entity_interaction_range - - generic.fall_damage_multiplier - - generic.flying_speed - - generic.follow_range - - generic.gravity - - generic.jump_strength - - generic.knockback_resistance - - generic.luck - - generic.max_absorption - - generic.max_health - - generic.movement_speed - - generic.safe_fall_distance - - generic.scale - - zombie.spawn_reinforcements - - generic.step_height - value: f64 - modifiers: []varint - uuid: string - amount: f64 - operation: i8 - # MC: ClientboundUpdateMobEffectPacket - packet_entity_effect: - entityId: varint - effectId: varint - amplifier: varint - duration: varint - # a bitfield of 0x01 for ambient, 0x02 for show particles - # flags: ["bitfield", [ - # { "name": "unused", "size": 4 }, - # { "name": "ambient", "size": 1 }, - # { "name": "showParticles", "size": 1 }, - # { "name": "showIcon", "size": 1 }, - # { "name": "blend", "size": 1 } - # ]] - flags: u8 + # MC: ClientboundUpdateRecipesPacket packet_declare_recipes: recipes: []varint @@ -2493,17 +794,7 @@ input: IDSet slotDisplay: SlotDisplay - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags - # MC: ClientboundProjectilePowerPacket - packet_set_projectile_power: - id: varint - accelerationPower: f64 ## (ClientboundCustomReportDetailsPacket, ClientboundServerLinksPacket is common) - packet: name: varint => - bundle_delimiter @@ -2771,167 +1062,47 @@ if server_links: packet_common_server_links ^play.toServer.types: - # MC: ServerboundAcceptTeleportationPacket - packet_teleport_confirm: - teleportId: varint - # MC: ServerboundBlockEntityTagQueryPacket - packet_query_block_nbt: - transactionId: varint - location: position + packet_steer_vehicle: !delete + # MC: ServerboundSelectBundleItemPacket packet_select_bundle_item: slotId: varint selectedItemIndex: varint - # MC: ServerboundChangeDifficultyPacket - packet_set_difficulty: - newDifficulty: u8 - # MC: ServerboundChatAckPacket - packet_message_acknowledgement: - count: varint - # MC: ServerboundChatCommandPacket - packet_chat_command: - command: string - # MC: ServerboundChatCommandSignedPacket - packet_chat_command_signed: - command: string - timestamp: i64 - salt: i64 - argumentSignatures: []varint - argumentName: string - signature: [ - "buffer", - { - "count": 256 - } - ] - messageCount: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - # MC: ServerboundChatPacket - packet_chat_message: - message: string - timestamp: i64 - salt: i64 - signature?: [ - "buffer", - { - "count": 256 - } - ] - offset: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - # MC: ServerboundChatSessionUpdatePacket - packet_chat_session_update: - sessionUUID: UUID - expireTime: i64 - publicKey: ByteArray - signature: ByteArray - # MC: ServerboundChunkBatchReceivedPacket - packet_chunk_batch_received: - chunksPerTick: f32 - # MC: ServerboundClientCommandPacket - packet_client_command: - actionId: varint + # MC: ServerboundClientTickEndPacket packet_tick_end: # Empty + ## (Settings is common) ## # MC: ServerboundCommandSuggestionPacket packet_tab_complete: transactionId: varint text: string - # MC: ServerboundConfigurationAcknowledgedPacket - packet_configuration_acknowledged: - # Empty - # MC: ServerboundContainerButtonClickPacket - packet_enchant_item: - windowId: ContainerID - enchantment: varint - # MC: ServerboundContainerClickPacket - packet_window_click: - windowId: ContainerID - stateId: varint - slot: i16 - mouseButton: i8 - mode: varint - changedSlots: []varint - location: i16 - item: Slot - cursorItem: Slot - # MC: ServerboundContainerClosePacket - packet_close_window: - windowId: ContainerID + # MC: ServerboundContainerSlotStateChangedPacket packet_set_slot_state: slot_id: varint window_id: ContainerID state: bool + ## (ServerboundCookieResponsePacket is common) # MC: ServerboundCustomPayloadPacket packet_custom_payload: channel: string data: restBuffer - # MC: ServerboundDebugSampleSubscriptionPacket - packet_debug_sample_subscription: - type: varint - # MC: ServerboundEditBookPacket - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - # MC: ServerboundEntityTagQuery - packet_query_entity_nbt: - transactionId: varint - entityId: varint - # MC: ServerboundInteractPacket - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - # MC: ServerboundJigsawGeneratePacket - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundLockDifficultyPacket - packet_lock_difficulty: - locked: bool MovementFlags: ["bitflags", { "type": "u8", "flags": ["onGround", "hasHorizontalCollision"] }] + # MC: ServerboundMovePlayerPacket.Pos packet_position: x: f64 y: f64 z: f64 flags: MovementFlags + # MC: ServerboundMovePlayerPacket.PosRot packet_position_look: x: f64 @@ -2940,50 +1111,23 @@ yaw: f32 pitch: f32 flags: MovementFlags + # MC: ServerboundMovePlayerPacket.Rot packet_look: yaw: f32 pitch: f32 flags: MovementFlags + # MC: ServerboundMovePlayerPacket.StatusOnly packet_flying: flags: MovementFlags - # MC: ServerboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - # MC: ServerboundPaddleBoatPacket - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - # MC: ServerboundPickItemPacket - packet_pick_item: - slot: varint - # MC: ServerboundPingRequestPacket - packet_ping_request: - id: i64 + # MC: ServerboundPlaceRecipePacket packet_craft_recipe_request: windowId: ContainerID recipeId: varint makeAll: bool - # MC: ServerboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - # MC: ServerboundPlayerActionPacket - packet_block_dig: - status: varint - location: position - face: i8 - sequence: varint - # MC: ServerboundPlayerCommandPacket - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint + # MC: ServerboundPlayerInputPacket # previously: packet_steer_vehicle packet_player_input: @@ -2992,97 +1136,11 @@ "type": "u8", "flags": ["forward", "backward", "left", "right", "jump", "shift", "sprint"] }] - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundRecipeBookChangeSettingsPacket - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool + # MC: ServerboundRecipeBookSeenRecipePacket packet_displayed_recipe: recipeId: varint - # MC: ServerboundRenameItemPacket - packet_name_item: - name: string - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint - # MC: ServerboundSeenAdvancementsPacket - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - # MC: ServerboundSelectTradePacket - packet_select_trade: - slot: varint - # MC: ServerboundSetBeaconPacket - packet_set_beacon_effect: - primary_effect?: varint - secondary_effect?: varint - # MC: ServerboundSetCarriedItemPacket - packet_held_item_slot: - slotId: i16 - # MC: ServerboundSetCommandBlockPacket - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - # MC: ServerboundSetCommandMinecartPacket - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - # MC: ServerboundSetCreativeModeSlotPacket - packet_set_creative_slot: - slot: i16 - item: Slot - # MC: ServerboundSetJigsawBlockPacket - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - selection_priority: varint - placement_priority: varint - # MC: ServerboundSetStructureBlockPacket - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varint - flags: u8 - # MC: ServerboundSignUpdatePacket - packet_update_sign: - location: position - isFrontText: bool - text1: string - text2: string - text3: string - text4: string - # MC: ServerboundSwingPacket - packet_arm_animation: - hand: varint - # MC: ServerboundTeleportToEntityPacket - packet_spectate: - target: UUID + # MC: ServerboundUseItemOnPacket packet_block_place: hand: varint @@ -3094,11 +1152,6 @@ insideBlock: bool worldBorderHit: bool sequence: varint - # MC: ServerboundUseItemPacket - packet_use_item: - hand: varint - sequence: varint - rotation: vec2f packet: name: varint => @@ -3223,4 +1276,4 @@ if arm_animation: packet_arm_animation if spectate: packet_spectate if block_place: packet_block_place - if use_item: packet_use_item \ No newline at end of file + if use_item: packet_use_item diff --git a/data/pc/1.21.3/protocol.json b/data/pc/1.21.3/protocol.json index 5f4f91661..7f00099b2 100644 --- a/data/pc/1.21.3/protocol.json +++ b/data/pc/1.21.3/protocol.json @@ -3615,296 +3615,6 @@ } } }, - "configuration": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "add_resource_pack": "packet_common_add_resource_pack", - "cookie_request": "packet_common_cookie_request", - "custom_payload": "packet_custom_payload", - "custom_report_details": "packet_common_custom_report_details", - "disconnect": "packet_disconnect", - "feature_flags": "packet_feature_flags", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "reset_chat": "packet_reset_chat", - "select_known_packs": "packet_common_select_known_packs", - "server_links": "packet_common_server_links", - "store_cookie": "packet_common_store_cookie", - "tags": "packet_tags", - "transfer": "packet_common_transfer" - } - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "packet_feature_flags": [ - "container", - [ - { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_registry_data": [ - "container", - [ - { - "name": "id", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] - } - ] - ], - "packet_reset_chat": [ - "container", - [] - ], - "packet_tags": [ - "container", - [ - { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_report_details", - "0x09": "server_links" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "custom_report_details": "packet_common_custom_report_details", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "server_links": "packet_common_server_links", - "settings": "packet_common_settings" - } - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_resource_pack_receive": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "result", - "type": "varint" - } - ] - ] - } - } - }, "play": { "toClient": { "types": { @@ -9042,285 +8752,575 @@ "type": "string" }, { - "name": "pool", - "type": "string" + "name": "pool", + "type": "string" + }, + { + "name": "finalState", + "type": "string" + }, + { + "name": "jointType", + "type": "string" + }, + { + "name": "selection_priority", + "type": "varint" + }, + { + "name": "placement_priority", + "type": "varint" + } + ] + ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" }, { - "name": "finalState", + "name": "metadata", "type": "string" }, { - "name": "jointType", - "type": "string" + "name": "integrity", + "type": "f32" }, { - "name": "selection_priority", + "name": "seed", "type": "varint" }, { - "name": "placement_priority", - "type": "varint" + "name": "flags", + "type": "u8" } ] ], - "packet_update_sign": [ + "packet_use_entity": [ "container", [ { - "name": "location", - "type": "position" + "name": "target", + "type": "varint" }, { - "name": "isFrontText", - "type": "bool" + "name": "mouse", + "type": "varint" }, { - "name": "text1", - "type": "string" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "text2", - "type": "string" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "text3", - "type": "string" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "text4", - "type": "string" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] + }, + { + "name": "sneaking", + "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_use_item": [ "container", [ { - "name": "location", - "type": "position" + "name": "hand", + "type": "varint" }, { - "name": "action", + "name": "sequence", "type": "varint" }, { - "name": "mode", - "type": "varint" + "name": "rotation", + "type": "vec2f" + } + ] + ], + "packet_vehicle_move": [ + "container", + [ + { + "name": "x", + "type": "f64" }, { - "name": "name", - "type": "string" + "name": "y", + "type": "f64" }, { - "name": "offset_x", - "type": "i8" + "name": "z", + "type": "f64" }, { - "name": "offset_y", - "type": "i8" + "name": "yaw", + "type": "f32" }, { - "name": "offset_z", - "type": "i8" + "name": "pitch", + "type": "f32" + } + ] + ], + "packet_window_click": [ + "container", + [ + { + "name": "windowId", + "type": "ContainerID" }, { - "name": "size_x", - "type": "i8" + "name": "stateId", + "type": "varint" }, { - "name": "size_y", - "type": "i8" + "name": "slot", + "type": "i16" }, { - "name": "size_z", + "name": "mouseButton", "type": "i8" }, { - "name": "mirror", + "name": "mode", "type": "varint" }, { - "name": "rotation", - "type": "varint" + "name": "changedSlots", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" + } + ] + ] + } + ] }, { - "name": "metadata", - "type": "string" + "name": "cursorItem", + "type": "Slot" + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links" + }, + "type": "varint" + } + ] }, { - "name": "integrity", - "type": "f32" + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "add_resource_pack": "packet_common_add_resource_pack", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" + } + } + ] + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" }, { - "name": "seed", - "type": "varint" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "anonymousNbt" + } + ] + ], + "packet_feature_flags": [ + "container", + [ + { + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "flags", - "type": "u8" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_use_entity": [ + "packet_ping": [ "container", [ { - "name": "target", - "type": "varint" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_registry_data": [ + "container", + [ { - "name": "mouse", - "type": "varint" + "name": "id", + "type": "string" }, { - "name": "x", + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] } ] - }, + } + ] + ], + "packet_reset_chat": [ + "container", + [] + ], + "packet_tags": [ + "container", + [ { - "name": "y", + "name": "tags", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] - }, + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "z", + "name": "name", "type": [ - "switch", + "mapper", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "mappings": { + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_report_details", + "0x09": "server_links" + }, + "type": "varint" } ] }, { - "name": "hand", + "name": "params", "type": [ "switch", { - "compareTo": "mouse", - "default": "void", + "compareTo": "name", "fields": { - "0": "varint", - "2": "varint" + "cookie_response": "packet_common_cookie_response", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "settings": "packet_common_settings" } } ] - }, - { - "name": "sneaking", - "type": "bool" } ] ], - "packet_use_item": [ + "packet_custom_payload": [ "container", [ { - "name": "hand", - "type": "varint" - }, - { - "name": "sequence", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "rotation", - "type": "vec2f" + "name": "data", + "type": "restBuffer" } ] ], - "packet_vehicle_move": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_window_click": [ + "packet_pong": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_resource_pack_receive": [ + "container", + [ { - "name": "mouseButton", - "type": "i8" + "name": "uuid", + "type": "UUID" }, { - "name": "mode", + "name": "result", "type": "varint" - }, - { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] - }, - { - "name": "cursorItem", - "type": "Slot" } ] ] diff --git a/data/pc/1.21.4/proto.yml b/data/pc/1.21.4/proto.yml index 99eabcedf..a2b250765 100644 --- a/data/pc/1.21.4/proto.yml +++ b/data/pc/1.21.4/proto.yml @@ -1,3243 +1,413 @@ -!version: 1.21.4 -!StartDocs: true - -^types: - varint: native - varlong: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - anonymousNbt: native - anonOptionalNbt: native - registryEntryHolder: native - registryEntryHolderSet: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec2f: - x: f32 - y: f32 - vec3f: - x: f32 - y: f32 - z: f32 - vec4f: - x: f32 - y: f32 - z: f32 - w: f32 - vec3f64: - x: f64 - y: f64 - z: f64 - vec3i16: - x: i16 - y: i16 - z: i16 - IDSet: ["registryEntryHolderSet", { - "base": { name: "name", type: "string" }, - "otherwise": { name: "ids", type: "varint" } - }] - ContainerID: varint - SlotComponentType: varint => - - custom_data - - max_stack_size - - max_damage - - damage - - unbreakable - - custom_name - - item_name - - item_model - - lore - - rarity - - enchantments - - can_place_on - - can_break - - attribute_modifiers - - custom_model_data - - hide_additional_tooltip - - hide_tooltip - - repair_cost - - creative_slot_lock - - enchantment_glint_override - - intangible_projectile - - food - - consumable - - use_remainder - - use_cooldown - - damage_resistant - - tool - - enchantable - - equippable - - repairable - - glider - - tooltip_style - - death_protection - - stored_enchantments - - dyed_color - - map_color - - map_id - - map_decorations - - map_post_processing - - charged_projectiles - - bundle_contents - - potion_contents - - suspicious_stew_effects - - writable_book_content - - written_book_content - - trim - - debug_stick_state - - entity_data - - bucket_entity_data - - block_entity_data - - instrument - - ominous_bottle_amplifier - - jukebox_playable - - recipes - - lodestone_tracker - - firework_explosion - - fireworks - - profile - - note_block_sound - - banner_patterns - - base_color - - pot_decorations - - container - - block_state - - bees - - lock - - container_loot - - # Instead of sending NBT for items over the network, Minecraft since 1.20.5 sends a - # list of components that make up the item. This saves bandwidth by not encoding tag names. - SlotComponent: - type: SlotComponentType - ## Ref: client/net/minecraft/core/component/DataComponents.java - data: type ? - ## TODO: look into how nbt works here - if custom_data: anonymousNbt - if max_stack_size: varint - if max_damage: varint - if damage: varint - if unbreakable: bool - if custom_name: anonymousNbt - if item_name: anonymousNbt - if item_model: string - if lore: anonOptionalNbt[]varint - if rarity: varint => - - common - - uncommon - - rare - - epic - if enchantments: - enchantments: []varint - id: varint - level: varint - showTooltip: bool - if can_place_on or can_break: - predicates: ItemBlockPredicate[]varint - showTooltip: bool - if attribute_modifiers: - attributes: []varint - typeId: varint - name: string - value: f64 - operation: varint => - - add - - multiply_base - - multiply_total - slot: varint => - - any - - main_hand - - off_hand - - hand - - feet - - legs - - chest - - head - - armor - - body - showTooltip: bool - if custom_model_data: - floats: f32[]varint - flags: bool[]varint - strings: string[]varint - colors: i32[]varint - if hide_additional_tooltip: void - if hide_tooltip: void - if repair_cost: varint - if creative_slot_lock: void - if enchantment_glint_override: bool - if intangible_projectile: anonymousNbt - if food: - nutrition: varint - # How much saturation will be given after consuming the item. - saturationModifier: f32 - # Whether the item can always be eaten, even at full hunger. - canAlwaysEat: bool - if consumable: - consume_seconds: f32 - animation: varint => - - none - - eat - - drink - - block - - bow - - spear - - crossbow - - spyglass - - toot_horn - - brush - sound: ItemSoundHolder - makes_particles: bool - effects: ItemConsumeEffect[]varint - if use_remainder: Slot - if use_cooldown: - seconds: f32 - cooldownGroup?: string - if damage_resistant: string - if tool: - rules: []varint - blocks: IDSet - # The speed at which the tool breaks this rules' blocks. - speed?: f32 - # Whether items should drop only if this is the correct tool. - correctDropForBlocks?: bool - # The mining speed in case none of the previous rule were matched. - defaultMiningSpeed: f32 - damagePerBlock: varint - # Enchantment cost up to which the item can be enchanted - if enchantable: varint - if equippable: - slot: varint => - - main_hand - - off_hand - - feet - - legs - - chest - - head - - body - sound: ItemSoundHolder - model?: string - cameraOverlay?: string - allowedEntities?: IDSet - dispensable: bool - swappable: bool - damageable: bool - if repairable: - items: IDSet - if glider: void - if tooltip_style: string - if death_protection: - effects: ItemConsumeEffect[]varint - if stored_enchantments: - enchantments: []varint - # The ID of the enchantment in the enchantment registry. - id: varint - level: varint - # Whether the list of enchantments should be shown on the item's tooltip. - showInTooltip: bool - if dyed_color: - color: i32 - showTooltip: bool - if map_color: i32 - if map_id: varint - if map_decorations: anonymousNbt - if map_post_processing: varint - if charged_projectiles: - projectiles: Slot[]varint - if bundle_contents: - contents: Slot[]varint - if potion_contents: - # True if this potion has an ID in the potion registry--it has the default effects associated with the potion type. - potionId?: varint - # The RGB components of the color, encoded as an integer. - customColor?: i32 - customEffects: ItemPotionEffect[]varint - customName?: string - if suspicious_stew_effects: - effects: []varint - # The ID of the effect in the potion effect type registry. - effect: varint - # The duration of the effect. - duration: varint - if writable_book_content: - # Max 100 pages - pages: ItemBookPage[]varint - if written_book_content: - rawTitle: string - filteredTitle?: string - author: string - generation: varint - pages: ItemWrittenBookPage[]varint - resolved: bool - if trim: - material: ["registryEntryHolder", { "baseName": "materialId", "otherwise": { "name": "data", "type": "ArmorTrimMaterial" } }] - pattern: ["registryEntryHolder", { "baseName": "patternId", "otherwise": { "name": "data", "type": "ArmorTrimPattern" } }] - showInTooltip: bool - if debug_stick_state: anonymousNbt - if entity_data: anonymousNbt - if bucket_entity_data: anonymousNbt - if block_entity_data: anonymousNbt - if instrument: ["registryEntryHolder", { "baseName": "instrumentId", "otherwise": { "name": "data", "type": "InstrumentData" } }] - if ominous_bottle_amplifier: varint - if jukebox_playable: - hasHolder: bool - song: hasHolder ? - if true: ["registryEntryHolder", { "baseName": "songId", "otherwise": { "name": "data", "type": "JukeboxSongData" } }] - if false: string - showInTooltip: bool - if recipes: anonymousNbt - if lodestone_tracker: - # Specified if this lodestone points to a position; otherwise it spins randomly. - globalPosition?: - dimension: string - # The position the compass points to. Only present if Has Global Position is true. - position: position - # Whether the component is removed when the associated lodestone is broken. - tracked: bool - if firework_explosion: ItemFireworkExplosion - if fireworks: - flightDuration: varint - explosions: ItemFireworkExplosion[]varint - if profile: - # If the profile has a name, max 16 characters. - name?: string - uuid?: UUID - properties: []varint - # Max 64 characters - name: string - value: string - # Max 1024 characters - signature?: string - if note_block_sound: string - if banner_patterns: - layers: BannerPatternLayer[]varint - if base_color: varint - if pot_decorations: - # The ID of the items in the item registry. - decorations: varint[]varint - if container: - contents: Slot[]varint - if block_state: - properties: []varint - name: string - value: string - if bees: - bees: []varint - # Custom data for the entity, always a Compound Tag. Same structure as the minecraft:custom_data component. - nbtData: anonymousNbt - ticksInHive: varint - minTicksInHive: varint - if lock: anonymousNbt - if container_loot: anonymousNbt - - ItemSoundEvent: - soundName: string - fixedRange?: f32 - ItemSoundHolder: ["registryEntryHolder", { - "baseName": "soundId", - "otherwise": { name: "data", type: "ItemSoundEvent" } - }] - - ItemFireworkExplosion: - shape: varint => - - small_ball - - large_ball - - star - - creeper - - burst - # The RGB components of the color, encoded as an integer. - colors: i32[]varint - # The RGB components of the color, encoded as an integer. - fadeColors: i32[]varint - # Whether the firework has a trail. - hasTrail: bool - # Whether the firework has a twinkle effect. - hasTwinkle: bool - - ItemEffectDetail: - amplifier: varint - duration: varint - ambient: bool - showParticles: bool - showIcon: bool - hiddenEffect?: ItemEffectDetail - - ItemPotionEffect: - id: varint - details: ItemEffectDetail - - ItemBlockProperty: - name: string - isExactMatch: bool - value: isExactMatch ? - if true: - exactValue: string - if false: - minValue: string - maxValue: string - - - ItemBlockPredicate: - blockSet?: ["registryEntryHolderSet", { - "base": { name: "name", type: "string" }, - "otherwise": { name: "blockIds", type: "varint" } - }] - properties?: ItemBlockProperty[]varint - nbt: anonOptionalNbt - - ItemBookPage: - # The raw text of the page. TextComponent, max 1024 characters. - content: string - filteredContent?: string - ItemWrittenBookPage: - content: anonymousNbt - filteredContent: anonOptionalNbt - - ItemConsumeEffect: # 1.21.3 - type: varint => - - apply_effects - - remove_effects - - clear_all_effects - - teleport_randomly - - play_sound - _: type ? - if apply_effects: - effects: ItemPotionEffect[]varint - probability: f32 - if remove_effects: - effects: IDSet - if clear_all_effects: void - if teleport_randomly: - diameter: f32 - if play_sound: - sound: ItemSoundHolder - - ArmorTrimMaterial: - assetName: string - ingredientId: varint - overrideArmorAssets: []varint - key: string - value: string - description: anonymousNbt - - ArmorTrimPattern: - assetId: string - templateItemId: varint - description: anonymousNbt - decal: bool - - InstrumentData: - soundEvent: ItemSoundHolder - useDuration: f32 - range: f32 - description: anonymousNbt - - JukeboxSongData: - soundEvent: ItemSoundHolder - description: anonymousNbt - lengthInSeconds: f32 - comparatorOutput: varint - - BannerPattern: - assetId: string - translationKey: string - BannerPatternLayer: - pattern: ["registryEntryHolder", { "baseName": "patternId", "otherwise": { "name": "data", "type": "BannerPattern" } }] - colorId: varint - - Slot: - itemCount: varint - _: itemCount ? - if 0: void - default: - itemId: varint - # https://wiki.vg/Slot_Data#Structured_components - addedComponentCount: varint - removedComponentCount: varint - components: SlotComponent[]$addedComponentCount - removeComponents: []$removedComponentCount - type: SlotComponentType - - Particle: - # See client/net/minecraft/core/particles/ParticleTypes.java - type: varint => - - angry_villager - - block - - block_marker - - bubble - - cloud - - crit - - damage_indicator - - dragon_breath - - dripping_lava - - falling_lava - - landing_lava - - dripping_water - - falling_water - - dust - - dust_color_transition - - effect - - elder_guardian - - enchanted_hit - - enchant - - end_rod - - entity_effect - - explosion_emitter - - explosion - - gust - - small_gust - - gust_emitter_large - - gust_emitter_small - - sonic_boom - - falling_dust - - firework - - fishing - - flame - - infested - - cherry_leaves - - pale_oak_leaves - - sculk_soul - - sculk_charge - - sculk_charge_pop - - soul_fire_flame - - soul - - flash - - happy_villager - - composter - - heart - - instant_effect - - item - - vibration - - trail - - item_slime - - item_cobweb - - item_snowball - - large_smoke - - lava - - mycelium - - note - - poof - - portal - - rain - - smoke - - white_smoke - - sneeze - - spit - - squid_ink - - sweep_attack - - totem_of_undying - - underwater - - splash - - witch - - bubble_pop - - current_down - - bubble_column_up - - nautilus - - dolphin - - campfire_cosy_smoke - - campfire_signal_smoke - - dripping_honey - - falling_honey - - landing_honey - - falling_nectar - - falling_spore_blossom - - ash - - crimson_spore - - warped_spore - - spore_blossom_air - - dripping_obsidian_tear - - falling_obsidian_tear - - landing_obsidian_tear - - reverse_portal - - white_ash - - small_flame - - snowflake - - dripping_dripstone_lava - - falling_dripstone_lava - - dripping_dripstone_water - - falling_dripstone_water - - glow_squid_ink - - glow - - wax_on - - wax_off - - electric_spark - - scrape - - shriek - - egg_crack - - dust_plume - - trial_spawner_detected_player - - trial_spawner_detected_player_ominous - - vault_connection - - dust_pillar - - ominous_spawning - - raid_omen - - trial_omen - - block_crumble - ## ## Tips for reviewing particle data (as of 1.20.5) - ## Inside the registry code, each particle can have an associated "options" type and - ## each options type can add additional data to be encoded. - ## For example, this line - ## public static final ParticleType BLOCK = register("block", false, BlockParticleOption::codec, BlockParticleOption::streamCodec); - ## will read the stream codec from BlockParticleOption.java's streamCodec member; then we see - ## return ByteBufCodecs.idMapper(Block.BLOCK_STATE_REGISTRY).map(var1 -> new BlockParticleOption(var0, var1), var0x -> var0x.state); - ## this encodes with the ByteBufCodecs.idMapper function. Inside this function we find - ## public void encode(ByteBuf var1x, T var2) { - ## int var3 = var1.applyAsInt(var2); - ## VarInt.write(var1x, var3); - ## } - ## which as we can see writes the varint to the buffer. - ## If you want to see all the serializers try regexp searching "StreamCodec.*Particle" - data: type ? - if block or block_marker or falling_dust or dust_pillar or block_crumble: varint - if dust: - red: f32 - green: f32 - blue: f32 - scale: f32 - if dust_color_transition: - fromRed: f32 - fromGreen: f32 - fromBlue: f32 - scale: f32 - toRed: f32 - toGreen: f32 - toBlue: f32 - if entity_effect: i32 - if item: Slot - if sculk_charge: f32 - if shriek: varint - if vibration: - positionType: varint => - - block - - entity - position: positionType ? - if block: position - if entity: - entityId: varint - entityEyeHeight: f32 - ticks: varint - if trail: - target: vec3f64 - color: u8 - ingredient: Slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - soundSource: varint => - 0: master - 1: music - 2: record - 3: weather - 4: block - 5: hostile - 6: neutral - 7: player - 8: ambient - 9: voice - packedChunkPos: - z: i32 - x: i32 - previousMessages: []varint - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - entityMetadataEntry: - key: u8 - type: varint => - - byte - - int - - long - - float - - string - - component - - optional_component - - item_stack - - boolean - - rotations - - block_pos - - optional_block_pos - - direction - - optional_uuid - - block_state - - optional_block_state - - compound_tag - - particle - - particles - - villager_data - - optional_unsigned_int - - pose - - cat_variant - - wolf_variant - - frog_variant - - optional_global_pos - - painting_variant - - sniffer_state - - armadillo_state - - vector3 - - quaternion - value: type ? - if byte: i8 - if int: varint - if long: varlong - if float: f32 - if string: string - if component: anonymousNbt - if optional_component: ["option", "anonymousNbt"] - if item_stack: Slot - if boolean: bool - if rotations: - pitch: f32 - yaw: f32 - roll: f32 - if block_pos: position - if optional_block_pos: ["option", "position"] - if direction: varint - if optional_uuid: ["option", "UUID"] - if block_state: varint - if optional_block_state: optvarint - if compound_tag: anonymousNbt - if particle: Particle - if particles: Particle[]varint - if villager_data: - villagerType: varint - villagerProfession: varint - level: varint - if optional_unsigned_int: optvarint - if pose: varint - if cat_variant: varint - if wolf_variant: ["registryEntryHolder", { - "baseName": "variantId", - "otherwise": { name: "variantData", type: "EntityMetadataWolfVariant" } - }] - if frog_variant: varint - if optional_global_pos: ["option", "string"] - if painting_variant: ["registryEntryHolder", { - "baseName": "variantId", - "otherwise": { name: "variantData", type: "EntityMetadataPaintingVariant" } - }] - if sniffer_state: varint - if armadillo_state: varint - if vector3: vec3f - if quaternion: vec4f - EntityMetadataPaintingVariant: - width: i32 - height: i32 - assetId: string - title?: anonymousNbt - author?: anonymousNbt - EntityMetadataWolfVariant: - wildTexture: string - tameTexture: string - angryTexture: string - biome: IDSet - - entityMetadata: ["entityMetadataLoop", { "endVal": 255, "type": "entityMetadataEntry" }] - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: - _: [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - y: i16 - type: varint - nbtData: anonOptionalNbt - chat_session?: - uuid: UUID - publicKey: - expireTime: i64 - keyBytes: [ - "buffer", - { - "countType": "varint" - } - ] - keySignature: [ - "buffer", - { - "countType": "varint" - } - ] - game_profile: - name: string - properties: []varint - name: string - value: string - signature?: string - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: varint => - - brigadier:bool - - brigadier:float - - brigadier:double - - brigadier:integer - - brigadier:long - - brigadier:string - - minecraft:entity - - minecraft:game_profile - - minecraft:block_pos - - minecraft:column_pos - - minecraft:vec3 - - minecraft:vec2 - - minecraft:block_state - - minecraft:block_predicate - - minecraft:item_stack - - minecraft:item_predicate - - minecraft:color - - minecraft:component - - minecraft:style - - minecraft:message - - minecraft:nbt - - minecraft:nbt_tag - - minecraft:nbt_path - - minecraft:objective - - minecraft:objective_criteria - - minecraft:operation - - minecraft:particle - - minecraft:angle - - minecraft:rotation - - minecraft:scoreboard_slot - - minecraft:score_holder - - minecraft:swizzle - - minecraft:team - - minecraft:item_slot - - minecraft:item_slots # 1.20.5 - - minecraft:resource_location - - minecraft:function - - minecraft:entity_anchor - - minecraft:int_range - - minecraft:float_range - - minecraft:dimension - - minecraft:gamemode - - minecraft:time - - minecraft:resource_or_tag - - minecraft:resource_or_tag_key - - minecraft:resource - - minecraft:resource_key - - minecraft:template_mirror - - minecraft:template_rotation - - minecraft:heightmap - - minecraft:loot_table # 1.20.5 - - minecraft:loot_predicate # 1.20.5 - - minecraft:loot_modifier # 1.20.5 - - minecraft:uuid - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:dimension: void - if minecraft:gamemode: void - if minecraft:time: - min: i32 - if minecraft:resource_or_tag: - registry: string - if minecraft:resource_or_tag_key: - registry: string - if minecraft:resource: - registry: string - if minecraft:resource_key: - registry: string - if minecraft:template_mirror: void - if minecraft:template_rotation: void - if minecraft:heightmap: void - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - # # Shared Packets - # These are packets that are shared between multiple states. - # They are defined here to avoid duplication. - # ===== - # MC: ServerboundClientInformationPacket - packet_common_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - enableTextFiltering: bool - enableServerListing: bool - particleStatus: varint => - - all - - decreased - - minimal - # MC: ClientboundCookieRequestPacket - packet_common_cookie_request: - cookie: string - # MC: ClientboundStoreCookiePacket - packet_common_store_cookie: - key: string - value: ByteArray - # MC: ClientboundTransferPacket - packet_common_transfer: - host: string - port: varint - # MC: ServerboundCookieResponsePacket - packet_common_cookie_response: - key: string - value?: ByteArray - # MC: ServerboundSelectKnownPacks - # MC: ClientboundSelectKnownPacks - packet_common_select_known_packs: - packs: []varint - namespace: string - id: string - version: string - # MC: ClientboundCustomReportDetailsPacket - packet_common_custom_report_details: - details: []varint - key: string - value: string - # MC: ClientboundResourcePackPopPacket - packet_common_remove_resource_pack: - uuid?: UUID - # MC: ClientboundResourcePackPushPacket - packet_common_add_resource_pack: - uuid: UUID - url: string - hash: string - forced: bool - promptMessage?: anonymousNbt - - ServerLinkType: varint => - - bug_report - - community_guidelines - - support - - status - - feedback - - community - - website - - forums - - news - - announcements - # MC: ClientboundServerLinksPacket - # This packet contains a list of links that the Notchian client will display in the menu - # available from the pause menu. Link labels can be built-in or custom (i.e., any text). - packet_common_server_links: - links: []varint - hasKnownType: bool - knownType: hasKnownType ? - if true: ServerLinkType - unknownType: hasKnownType ? - if false: anonymousNbt - link: string - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping -^status.toClient.types: - # MC: ClientboundStatusResponsePacket - packet_server_info: - response: string - # MC: ClientboundPongResponsePacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping -^status.toServer.types: - # MC: ServerboundStatusRequestPacket - packet_ping_start: - # Empty - # MC: ServerboundPingRequestPacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping -^login.toClient.types: - # MC: ClientboundLoginDisconnectPacket - packet_disconnect: - reason: string - # MC: ClientboundHelloPacket - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - shouldAuthenticate: bool - # MC: ClientboundLoginFinishedPacket - packet_success: - uuid: UUID - username: string - properties: []varint - name: string - value: string - signature?: string - # MC: ClientboundLoginCompressionPacket - packet_compress: - threshold: varint - # MC: ClientboundCustomQueryPacket - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - ## (Cookie Request is Common) ## - packet: - name: varint => - - disconnect - - encryption_begin - - success - - compress - - login_plugin_request - - cookie_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - if cookie_request: packet_common_cookie_request -^login.toServer.types: - # MC: ServerboundHelloPacket - packet_login_start: - username: string - playerUUID: UUID - # MC: ServerboundKeyPacket - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ServerboundCustomQueryAnswerPacket - packet_login_plugin_response: - messageId: varint - data?: restBuffer - # MC: ServerboundLoginAcknowledgedPacket - packet_login_acknowledged: - # Empty - ## (Cookie Response is Common) ## - packet: - name: varint => - - login_start - - encryption_begin - - login_plugin_response - - login_acknowledged - - cookie_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response - if login_acknowledged: packet_login_acknowledged - if cookie_response: packet_common_cookie_response -^configuration.toClient.types: - ## (Cookie Request is common) - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDisconnectPacket - packet_disconnect: - reason: anonymousNbt - # MC: ClientboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundResetChatPacket - packet_reset_chat: - # Empty - # MC: ClientboundRegistryDataPacket - packet_registry_data: - # The server can send multiple registries - id: string - entries: []varint - key: string - value?: anonymousNbt - ## (Store cookie and Transfer are Common) ## - # MC: ClientboundUpdateEnabledFeaturesPacket - packet_feature_flags: - features: string[]varint - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags - ## (Select known packs is common) - packet: - name: varint => - - cookie_request - - custom_payload - - disconnect - - finish_configuration - - keep_alive - - ping - - reset_chat - - registry_data - - remove_resource_pack - - add_resource_pack - - store_cookie - - transfer - - feature_flags - - tags - - select_known_packs - - custom_report_details - - server_links - params: name ? - if cookie_request: packet_common_cookie_request - if custom_payload: packet_custom_payload - if disconnect: packet_disconnect - if finish_configuration: packet_finish_configuration - if keep_alive: packet_keep_alive - if ping: packet_ping - if reset_chat: packet_reset_chat - if registry_data: packet_registry_data - if remove_resource_pack: packet_common_remove_resource_pack - if add_resource_pack: packet_common_add_resource_pack - if store_cookie: packet_common_store_cookie - if transfer: packet_common_transfer - if feature_flags: packet_feature_flags - if tags: packet_tags - if select_known_packs: packet_common_select_known_packs - if custom_report_details: packet_common_custom_report_details - if server_links: packet_common_server_links -^configuration.toServer.types: - ## (Settings is Common) ## - ## (Cookie Response is Common) ## - # MC: ServerboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ServerboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint - packet: - name: varint => - - settings - - cookie_response - - custom_payload - - finish_configuration - - keep_alive - - pong - - resource_pack_receive - - select_known_packs - - custom_report_details - - server_links - params: name ? - if settings: packet_common_settings - if cookie_response: packet_common_cookie_response - if custom_payload: packet_custom_payload - if finish_configuration: packet_finish_configuration - if keep_alive: packet_keep_alive - if pong: packet_pong - if resource_pack_receive: packet_resource_pack_receive - if select_known_packs: packet_common_select_known_packs - if custom_report_details: packet_common_custom_report_details - if server_links: packet_common_server_links -^play.toClient.types: - SlotDisplay: - type: varint => - - empty - - any_fuel - - item - - item_stack - - tag - - smithing_trim - - with_remainder - - composite - data: type ? - if empty or any_fuel: void - if item: varint - if item_stack: Slot - if tag: string - if smithing_trim: - base: SlotDisplay - material: SlotDisplay - pattern: SlotDisplay - if with_remainder: - input: SlotDisplay - remainder: SlotDisplay - if composite: SlotDisplay[]varint - RecipeDisplay: - type: varint => - - crafting_shapeless - - crafting_shaped - - furnace - - stonecutter - - smithing - data: type ? - if crafting_shapeless: - ingredients: SlotDisplay[]varint - result: SlotDisplay - craftingStation: SlotDisplay - if crafting_shaped: - width: varint - height: varint - ingredients: SlotDisplay[]varint - result: SlotDisplay - craftingStation: SlotDisplay - if furnace: - ingredient: SlotDisplay - fuel: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay - duration: varint - experience: f32 - if stonecutter: - ingredient: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay - if smithing: - template: SlotDisplay - base: SlotDisplay - addition: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay - # World state information for spawn and respawn packets - SpawnInfo: - dimension: varint - name: string - hashedSeed: i64 - gamemode: i8 => - - survival - - creative - - adventure - - spectator - previousGamemode: u8 - isDebug: bool - isFlat: bool - death?: - dimensionName: string - location: position - portalCooldown: varint - seaLevel: varint - - # MC: ClientboundAddEntityPacket - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - headPitch: i8 - objectData: varint - velocity: vec3i16 - # MC: ClientboundAddExperienceOrbPacket - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - # MC: ClientboundAnimatePacket - packet_animation: - entityId: varint - animation: u8 - # MC: ClientboundAwardStatsPacket - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - # MC: ClientboundBlockChangedAckPacket - packet_acknowledge_player_digging: - sequenceId: varint - # MC: ClientboundBlockDestructionPacket - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - # MC: ClientboundBlockEntityDataPacket - packet_tile_entity_data: - location: position - action: varint - nbtData: anonOptionalNbt - # MC: ClientboundBlockEventPacket - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - # MC: ClientboundBlockUpdatePacket - packet_block_change: - location: position - type: varint - # MC: ClientboundBossEventPacket - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: anonymousNbt - if 3: anonymousNbt - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - # MC: ClientboundChangeDifficultyPacket - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - # MC: ClientboundChunkBatchFinishedPacket - packet_chunk_batch_finished: - batchSize: varint - # MC: ClientboundChunkBatchStartPacket - packet_chunk_batch_start: - # Empty - # MC: ClientboundChunksBiomesPacket - packet_chunk_biomes: - biomes: []varint - position: packedChunkPos - data: ByteArray - # MC: ClientboundClearTitlesPacket - packet_clear_titles: - reset: bool - # MC: ClientboundCommandSuggestionsPacket - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: anonymousNbt - # MC: ClientboundCommandsPacket - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - # MC: ClientboundContainerClosePacket - packet_close_window: - windowId: ContainerID - # MC: ClientboundContainerSetContentPacket - packet_window_items: - windowId: ContainerID - stateId: varint - items: Slot[]varint - carriedItem: Slot - # MC: ClientboundContainerSetDataPacket - packet_craft_progress_bar: - windowId: ContainerID - property: i16 - value: i16 - # MC: ClientboundContainerSetSlotPacket - packet_set_slot: - windowId: ContainerID - stateId: varint - slot: i16 - item: Slot - ## (Cookie Request is Common) - # MC: ClientboundCooldownPacket - packet_set_cooldown: - # TODO: figure out what this is - cooldownGroup: string - cooldownTicks: varint - # MC: ClientboundCustomChatCompletionsPacket - packet_chat_suggestions: - action: varint - entries: string[]varint - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDamageEventPacket - packet_damage_event: - entityId: varint - sourceTypeId: varint - sourceCauseId: varint - sourceDirectId: varint - sourcePosition?: vec3f64 - # MC: ClientboundDebugSamplePacket - packet_debug_sample: - sample: i64[]varint - type: varint - # MC: ClientboundDeleteChatPacket - packet_hide_message: - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - # MC: ClientboundDisconnectPacket - packet_kick_disconnect: - reason: anonymousNbt - - ## client\net\minecraft\network\chat\ChatTypeDecoration.java - ## via client\net\minecraft\network\chat\ChatType.java - ChatTypeParameterType: varint => - - content - - sender - - target - ChatType: - translationKey: string - parameters: ChatTypeParameterType[]varint - style: anonymousNbt - ChatTypes: - chat: ChatType - narration: ChatType - ChatTypesHolder: ["registryEntryHolder", { "baseName": "chatType", "otherwise": { name: "data", type: "ChatTypes" } }] - - # MC: ClientboundDisguisedChatPacket - packet_profileless_chat: - message: anonymousNbt - type: ChatTypesHolder - name: anonymousNbt - target?: anonymousNbt - # MC: ClientboundEntityEventPacket - packet_entity_status: - entityId: i32 - entityStatus: i8 - # MC: ClientboundEntityPositionSyncPacket - packet_sync_entity_position: - entityId: varint - x: f64 - y: f64 - z: f64 - dx: f64 - dy: f64 - dz: f64 - yaw: f32 - pitch: f32 - onGround: bool - # MC: ClientboundExplodePacket - packet_explosion: - x: f64 - y: f64 - z: f64 - playerKnockback?: vec3f64 - explosionParticle: Particle - sound: ItemSoundHolder - # MC: ClientboundForgetLevelChunkPacket - packet_unload_chunk: - chunkZ: i32 - chunkX: i32 - # MC: ClientboundGameEventPacket - packet_game_state_change: - reason: u8 - gameMode: f32 - # MC: ClientboundHorseScreenOpenPacket - packet_open_horse_window: - windowId: ContainerID - nbSlots: varint - entityId: i32 - # MC: ClientboundHurtAnimationPacket - packet_hurt_animation: - entityId: varint - yaw: f32 - # MC: ClientboundInitializeBorderPacket - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varint - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundLevelChunkWithLightPacket - packet_map_chunk: - x: i32 - z: i32 - heightmaps: anonymousNbt - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: chunkBlockEntity[]varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - # MC: ClientboundLevelEventPacket - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - # MC: ClientboundLevelParticlesPacket - packet_world_particles: - longDistance: bool - alwaysShow: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - velocityOffset: f32 - amount: i32 - particle: Particle - # MC: ClientboundLightUpdatePacket - packet_update_light: - chunkX: varint - chunkZ: varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - # MC: ClientboundLoginPacket - packet_login: - entityId: i32 - isHardcore: bool - worldNames: string[]varint - maxPlayers: varint - viewDistance: varint - simulationDistance: varint - reducedDebugInfo: bool - enableRespawnScreen: bool - doLimitedCrafting: bool - worldState: SpawnInfo - enforcesSecureChat: bool - # MC: ClientboundMapItemDataPacket - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: anonymousNbt - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ClientboundMerchantOffersPacket - packet_trade_list: - windowId: ContainerID - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.20.5/client/net/minecraft/world/item/trading/MerchantOffer.java#L210 - trades: []varint - inputItem1: - itemId: varint - itemCount: varint - addedComponentCount: varint - components: SlotComponent[]$addedComponentCount - outputItem: Slot - inputItem2?: - itemId: varint - itemCount: varint - addedComponentCount: varint - components: SlotComponent[]$addedComponentCount - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - # MC: ClientboundMoveEntityPacket.Pos - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - # MC: ClientboundMoveEntityPacket.PosRot - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveMinecartPacket - packet_move_minecart: # 1.21.3 - entityId: varint - steps: []varint - position: vec3f - movement: vec3f - yaw: f32 - pitch: f32 - weight: f32 - # MC: ClientboundMoveEntityPacket.Rot - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - # MC: ClientboundOpenBookPacket - packet_open_book: - hand: varint - # MC: ClientboundOpenScreenPacket - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: anonymousNbt - # MC: ClientboundOpenSignEditorPacket - packet_open_sign_entity: - location: position - isFrontText: bool - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundPongResponsePacket - packet_ping_response: - id: i64 - # MC: ClientboundPlaceGhostRecipePacket - packet_craft_recipe_response: - windowId: ContainerID - recipeDisplay: RecipeDisplay - # MC: ClientboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - # MC: ClientboundPlayerChatPacket - packet_player_chat: - senderUuid: UUID - index: varint - signature?: [ - "buffer", - { - "count": 256 - } - ] - plainMessage: string - timestamp: i64 - salt: i64 - previousMessages: previousMessages - unsignedChatContent?: anonymousNbt - filterType: varint - filterTypeMask: filterType ? - if 2: i64[]varint - default: void - type: ChatTypesHolder - networkName: anonymousNbt - networkTargetName?: anonymousNbt - # MC: ClientboundPlayerCombatEndPacket - packet_end_combat_event: - duration: varint - # MC: ClientboundPlayerCombatEnterPacket - packet_enter_combat_event: - # Empty - # MC: ClientboundPlayerCombatKillPacket - packet_death_combat_event: - playerId: varint - message: anonymousNbt - # MC: ClientboundPlayerInfoRemovePacket - packet_player_remove: - players: UUID[]varint - # MC: ClientboundPlayerInfoUpdatePacket - packet_player_info: - ## ClientboundPlayerInfoUpdatePacket.java#L160 - action: ["bitflags", { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name", - "update_hat", - "update_list_order" - ] - }] - data: []varint - uuid: UUID - player: ../action/add_player ? - if true: game_profile - default: void - chatSession: ../action/initialize_chat ? - if true: chat_session - default: void - gamemode: ../action/update_game_mode ? - if true: varint - default: void - listed: ../action/update_listed ? - if true: varint - default: void - latency: ../action/update_latency ? - if true: varint - default: void - displayName: ../action/update_display_name ? - if true: ["option", "anonymousNbt"] - default: void - listPriority: ../action/update_list_order ? - if true: varint - default: void - showHat: ../action/update_hat ? - if true: bool - default: void - - # MC: ClientboundPlayerLookAtPacket - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: varint - default: void - - # https://github.com/extremeheat/extracted_minecraft_data/blob/client1.21.2/client/net/minecraft/world/entity/Relative.java#L82 - PositionUpdateRelatives: ["bitflags", { - "type": "u32", - "flags": ["x", "y", "z", "yaw", "pitch", "dx", "dy", "dz", "yawDelta"] - }] - # MC: ClientboundPlayerPositionPacket - packet_position: - teleportId: varint - x: f64 - y: f64 - z: f64 - dx: f64 - dy: f64 - dz: f64 - yaw: f32 - pitch: f32 - flags: PositionUpdateRelatives - # MC: ClientboundPlayerRotationPacket - packet_player_rotation: - yaw: f32 - pitch: f32 - - # MC: ClientboundRecipeBookAddPacket - packet_recipe_book_add: - entries: []varint - # RecipeDisplayEntry - recipe: - displayId: varint - display: RecipeDisplay - group: optvarint - # This ID corresponds to the "recipe_book_category" registry - category: varint => - - crafting_building_blocks - - crafting_redstone - - crafting_equipment - - crafting_misc - - furnace_food - - furnace_blocks - - furnace_misc - - blast_furnace_blocks - - blast_furnace_misc - - smoker_food - - stonecutter - - smithing - - campfire - craftingRequirements?: IDSet[]varint - flags: ["bitflags", { - "type": "u8", - "flags": ["notification", "highlight"] - }] - replace: bool - # MC: ClientboundRecipeBookRemovePacket - packet_recipe_book_remove: - recipeIds: varint[]varint - # MC: ClientboundRecipeBookSettingsPacket - packet_recipe_book_settings: - craftingGuiOpen: bool - craftingFilteringCraftable: bool - smeltingGuiOpen: bool - smeltingFilteringCraftable: bool - blastGuiOpen: bool - blastFilteringCraftable: bool - smokerGuiOpen: bool - smokerFilteringCraftable: bool - # MC: ClientboundRemoveEntitiesPacket - packet_entity_destroy: - entityIds: varint[]varint - # MC: ClientboundRemoveMobEffectPacket - packet_remove_entity_effect: - entityId: varint - effectId: varint - # MC: ClientboundResetScorePacket - packet_reset_score: - entity_name: string - objective_name?: string - ## (remove_resource_pack is common) - # MC: ClientboundRespawnPacket - packet_respawn: - worldState: SpawnInfo - # Bit field: 0b1 - KEEP_ATTRIBUTE_MODIFIERS, 0b10 - KEEP_ENTITY_DATA - copyMetadata: u8 - # MC: ClientboundRotateHeadPacket - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - # MC: ClientboundSectionBlocksUpdatePacket - packet_multi_block_change: - chunkCoordinates: [ "bitfield", [ - { "name": "x", "size": 22, "signed": true }, - { "name": "z", "size": 22, "signed": true }, - { "name": "y", "size": 20, "signed": true } - ]] - records: varint[]varint - # MC: ClientboundSelectAdvancementsTabPacket - packet_select_advancement_tab: - id?: string - # MC: ClientboundServerDataPacket - packet_server_data: - motd: anonymousNbt - iconBytes?: ByteArray - # MC: ClientboundSetActionBarTextPacket - packet_action_bar: - text: anonymousNbt - # MC: ClientboundSetBorderCenterPacket - packet_world_border_center: - x: f64 - z: f64 - # MC: ClientboundSetBorderLerpSizePacket - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varint - # MC: ClientboundSetBorderSizePacket - packet_world_border_size: - diameter: f64 - # MC: ClientboundSetBorderWarningDelayPacket - packet_world_border_warning_delay: - warningTime: varint - # MC: ClientboundSetBorderWarningDistancePacket - packet_world_border_warning_reach: - warningBlocks: varint - # MC: ClientboundSetCameraPacket - packet_camera: - cameraId: varint - # MC: ClientboundSetChunkCacheCenterPacket - packet_update_view_position: - chunkX: varint - chunkZ: varint - # MC: ClientboundSetChunkCacheRadiusPacket - packet_update_view_distance: - viewDistance: varint - # MC: ClientboundSetCursorItemPacket - packet_set_cursor_item: - contents: Slot - # MC: ClientboundSetDefaultSpawnPositionPacket - packet_spawn_position: - location: position - angle: f32 - # MC: ClientboundSetDisplayObjectivePacket - packet_scoreboard_display_objective: - position: varint - name: string - # MC: ClientboundSetEntityDataPacket - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - # MC: ClientboundSetEntityLinkPacket - packet_attach_entity: - entityId: i32 - vehicleId: i32 - # MC: ClientboundSetEntityMotionPacket - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - # MC: ClientboundSetEquipmentPacket - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] - # MC: ClientboundSetExperiencePacket - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - # MC: ClientboundSetHealthPacket - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - # MC: ClientboundSetHeldSlotPacket - packet_held_item_slot: - slot: varint - # MC: ClientboundSetObjectivePacket - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - type: action ? - if 0: varint - if 2: varint - default: void - number_format: action ? - if 0: [ - "option", - "varint" - ] - if 2: [ - "option", - "varint" - ] - default: void - styling: action ? - if 0: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - if 2: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - default: void - # MC: ClientboundSetPassengersPacket - packet_set_passengers: - entityId: varint - passengers: varint[]varint - # MC: ClientboundSetPlayerInventoryPacket - packet_set_player_inventory: - slotId: varint - contents: Slot - # MC: ClientboundSetPlayerTeamPacket - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - suffix: mode ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - # MC: ClientboundSetScorePacket - packet_scoreboard_score: - itemName: string - scoreName: string - value: varint - display_name?: anonymousNbt - number_format?: varint - styling: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - # MC: ClientboundSetSimulationDistancePacket - packet_simulation_distance: - distance: varint - # MC: ClientboundSetSubtitleTextPacket - packet_set_title_subtitle: - text: anonymousNbt - # MC: ClientboundSetTimePacket - packet_update_time: - age: i64 - time: i64 - tickDayTime: bool - # MC: ClientboundSetTitleTextPacket - packet_set_title_text: - text: anonymousNbt - # MC: ClientboundSetTitlesAnimationPacket - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - # MC: ClientboundSoundEntityPacket - packet_entity_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - entityId: varint - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundSoundPacket - packet_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundStartConfigurationPacket - packet_start_configuration: - # Empty - # MC: ClientboundStopSoundPacket - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - ## (Store Cookie is Common) - # MC: ClientboundSystemChatPacket - packet_system_chat: - content: anonymousNbt - isActionBar: bool - # MC: ClientboundTabListPacket - packet_playerlist_header: - header: anonymousNbt - footer: anonymousNbt - # MC: ClientboundTagQueryPacket - packet_nbt_query_response: - transactionId: varint - nbt: anonOptionalNbt - # MC: ClientboundTakeItemEntityPacket - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - # MC: ClientboundTeleportEntityPacket - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundTickingStatePacket - packet_set_ticking_state: - tick_rate: f32 - is_frozen: bool - # MC: ClientboundTickingStepPacket - packet_step_tick: - tick_steps: varint - ## (Transfer is common) - # MC: ClientboundUpdateAdvancementsPacket - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: anonymousNbt - description: anonymousNbt - icon: Slot - frameType: varint - flags: ["bitfield", [ - { "name": "unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } - ]] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - requirements: []varint - _: string[]varint - sendsTelemtryData: bool - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - # MC: ClientboundUpdateAttributesPacket - packet_entity_update_attributes: - entityId: varint - properties: []varint - key: varint => - - generic.armor - - generic.armor_toughness - - generic.attack_damage - - generic.attack_knockback - - generic.attack_speed - - player.block_break_speed - - player.block_interaction_range - - player.entity_interaction_range - - generic.fall_damage_multiplier - - generic.flying_speed - - generic.follow_range - - generic.gravity - - generic.jump_strength - - generic.knockback_resistance - - generic.luck - - generic.max_absorption - - generic.max_health - - generic.movement_speed - - generic.safe_fall_distance - - generic.scale - - zombie.spawn_reinforcements - - generic.step_height - value: f64 - modifiers: []varint - uuid: string - amount: f64 - operation: i8 - # MC: ClientboundUpdateMobEffectPacket - packet_entity_effect: - entityId: varint - effectId: varint - amplifier: varint - duration: varint - # a bitfield of 0x01 for ambient, 0x02 for show particles - # flags: ["bitfield", [ - # { "name": "unused", "size": 4 }, - # { "name": "ambient", "size": 1 }, - # { "name": "showParticles", "size": 1 }, - # { "name": "showIcon", "size": 1 }, - # { "name": "blend", "size": 1 } - # ]] - flags: u8 - # MC: ClientboundUpdateRecipesPacket - packet_declare_recipes: - recipes: []varint - name: string - items: varint[]varint - stoneCutterRecipes: []varint - input: IDSet - slotDisplay: SlotDisplay - - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags - # MC: ClientboundProjectilePowerPacket - packet_set_projectile_power: - id: varint - accelerationPower: f64 - ## (ClientboundCustomReportDetailsPacket, ClientboundServerLinksPacket is common) - - packet: - name: varint => - - bundle_delimiter - - spawn_entity - - spawn_entity_experience_orb - - animation - - statistics - - acknowledge_player_digging - - block_break_animation - - tile_entity_data - - block_action - - block_change - - boss_bar - - difficulty - - chunk_batch_finished - - chunk_batch_start - - chunk_biomes - - clear_titles - - tab_complete - - declare_commands - - close_window - - window_items - - craft_progress_bar - - set_slot - - cookie_request - - set_cooldown - - chat_suggestions - - custom_payload - - damage_event - - debug_sample - - hide_message - - kick_disconnect - - profileless_chat - - entity_status - - sync_entity_position - - explosion - - unload_chunk - - game_state_change - - open_horse_window - - hurt_animation - - initialize_world_border - - keep_alive - - map_chunk - - world_event - - world_particles - - update_light - - login - - map - - trade_list - - rel_entity_move - - entity_move_look - - move_minecart - - entity_look - - vehicle_move - - open_book - - open_window - - open_sign_entity - - ping - - ping_response - - craft_recipe_response - - abilities - - player_chat - - end_combat_event - - enter_combat_event - - death_combat_event - - player_remove - - player_info - - face_player - - position - - player_rotation - - recipe_book_add - - recipe_book_remove - - recipe_book_settings - - entity_destroy - - remove_entity_effect - - reset_score - - remove_resource_pack - - add_resource_pack - - respawn - - entity_head_rotation - - multi_block_change - - select_advancement_tab - - server_data - - action_bar - - world_border_center - - world_border_lerp_size - - world_border_size - - world_border_warning_delay - - world_border_warning_reach - - camera - - update_view_position - - update_view_distance - - set_cursor_item - - spawn_position - - scoreboard_display_objective - - entity_metadata - - attach_entity - - entity_velocity - - entity_equipment - - experience - - update_health - - held_item_slot - - scoreboard_objective - - set_passengers - - set_player_inventory - - teams - - scoreboard_score - - simulation_distance - - set_title_subtitle - - update_time - - set_title_text - - set_title_time - - entity_sound_effect - - sound_effect - - start_configuration - - stop_sound - - store_cookie - - system_chat - - playerlist_header - - nbt_query_response - - collect - - entity_teleport - - set_ticking_state - - step_tick - - transfer - - advancements - - entity_update_attributes - - entity_effect - - declare_recipes - - tags - - set_projectile_power - - custom_report_details - - server_links - params: name ? - if bundle_delimiter: void - if spawn_entity: packet_spawn_entity - if spawn_entity_experience_orb: packet_spawn_entity_experience_orb - if animation: packet_animation - if statistics: packet_statistics - if acknowledge_player_digging: packet_acknowledge_player_digging - if block_break_animation: packet_block_break_animation - if tile_entity_data: packet_tile_entity_data - if block_action: packet_block_action - if block_change: packet_block_change - if boss_bar: packet_boss_bar - if difficulty: packet_difficulty - if chunk_batch_finished: packet_chunk_batch_finished - if chunk_batch_start: packet_chunk_batch_start - if chunk_biomes: packet_chunk_biomes - if clear_titles: packet_clear_titles - if tab_complete: packet_tab_complete - if declare_commands: packet_declare_commands - if close_window: packet_close_window - if window_items: packet_window_items - if craft_progress_bar: packet_craft_progress_bar - if set_slot: packet_set_slot - if cookie_request: packet_common_cookie_request - if set_cooldown: packet_set_cooldown - if chat_suggestions: packet_chat_suggestions - if custom_payload: packet_custom_payload - if damage_event: packet_damage_event - if debug_sample: packet_debug_sample - if hide_message: packet_hide_message - if kick_disconnect: packet_kick_disconnect - if profileless_chat: packet_profileless_chat - if entity_status: packet_entity_status - if sync_entity_position: packet_sync_entity_position - if explosion: packet_explosion - if unload_chunk: packet_unload_chunk - if game_state_change: packet_game_state_change - if open_horse_window: packet_open_horse_window - if hurt_animation: packet_hurt_animation - if initialize_world_border: packet_initialize_world_border - if keep_alive: packet_keep_alive - if map_chunk: packet_map_chunk - if world_event: packet_world_event - if world_particles: packet_world_particles - if update_light: packet_update_light - if login: packet_login - if map: packet_map - if trade_list: packet_trade_list - if rel_entity_move: packet_rel_entity_move - if entity_move_look: packet_entity_move_look - if move_minecart: packet_move_minecart - if entity_look: packet_entity_look - if vehicle_move: packet_vehicle_move - if open_book: packet_open_book - if open_window: packet_open_window - if open_sign_entity: packet_open_sign_entity - if ping: packet_ping - if ping_response: packet_ping_response - if craft_recipe_response: packet_craft_recipe_response - if abilities: packet_abilities - if player_chat: packet_player_chat - if end_combat_event: packet_end_combat_event - if enter_combat_event: packet_enter_combat_event - if death_combat_event: packet_death_combat_event - if player_remove: packet_player_remove - if player_info: packet_player_info - if face_player: packet_face_player - if position: packet_position - if player_rotation: packet_player_rotation - if recipe_book_add: packet_recipe_book_add - if recipe_book_remove: packet_recipe_book_remove - if recipe_book_settings: packet_recipe_book_settings - if entity_destroy: packet_entity_destroy - if remove_entity_effect: packet_remove_entity_effect - if reset_score: packet_reset_score - if remove_resource_pack: packet_common_remove_resource_pack - if add_resource_pack: packet_common_add_resource_pack - if respawn: packet_respawn - if entity_head_rotation: packet_entity_head_rotation - if multi_block_change: packet_multi_block_change - if select_advancement_tab: packet_select_advancement_tab - if server_data: packet_server_data - if action_bar: packet_action_bar - if world_border_center: packet_world_border_center - if world_border_lerp_size: packet_world_border_lerp_size - if world_border_size: packet_world_border_size - if world_border_warning_delay: packet_world_border_warning_delay - if world_border_warning_reach: packet_world_border_warning_reach - if camera: packet_camera - if update_view_position: packet_update_view_position - if update_view_distance: packet_update_view_distance - if set_cursor_item: packet_set_cursor_item - if held_item_slot: packet_held_item_slot - if spawn_position: packet_spawn_position - if scoreboard_display_objective: packet_scoreboard_display_objective - if entity_metadata: packet_entity_metadata - if attach_entity: packet_attach_entity - if entity_velocity: packet_entity_velocity - if entity_equipment: packet_entity_equipment - if experience: packet_experience - if update_health: packet_update_health - if scoreboard_objective: packet_scoreboard_objective - if set_passengers: packet_set_passengers - if set_player_inventory: packet_set_player_inventory - if teams: packet_teams - if scoreboard_score: packet_scoreboard_score - if simulation_distance: packet_simulation_distance - if set_title_subtitle: packet_set_title_subtitle - if update_time: packet_update_time - if set_title_text: packet_set_title_text - if set_title_time: packet_set_title_time - if entity_sound_effect: packet_entity_sound_effect - if sound_effect: packet_sound_effect - if start_configuration: packet_start_configuration - if stop_sound: packet_stop_sound - if store_cookie: packet_common_store_cookie - if system_chat: packet_system_chat - if playerlist_header: packet_playerlist_header - if nbt_query_response: packet_nbt_query_response - if collect: packet_collect - if entity_teleport: packet_entity_teleport - if set_ticking_state: packet_set_ticking_state - if step_tick: packet_step_tick - if transfer: packet_common_transfer - if advancements: packet_advancements - if entity_update_attributes: packet_entity_update_attributes - if entity_effect: packet_entity_effect - if declare_recipes: packet_declare_recipes - if tags: packet_tags - if set_projectile_power: packet_set_projectile_power - if custom_report_details: packet_common_custom_report_details - if server_links: packet_common_server_links - -^play.toServer.types: - # MC: ServerboundAcceptTeleportationPacket - packet_teleport_confirm: - teleportId: varint - # MC: ServerboundBlockEntityTagQueryPacket - packet_query_block_nbt: - transactionId: varint - location: position - # MC: ServerboundSelectBundleItemPacket - packet_select_bundle_item: - slotId: varint - selectedItemIndex: varint - # MC: ServerboundChangeDifficultyPacket - packet_set_difficulty: - newDifficulty: u8 - # MC: ServerboundChatAckPacket - packet_message_acknowledgement: - count: varint - # MC: ServerboundChatCommandPacket - packet_chat_command: - command: string - # MC: ServerboundChatCommandSignedPacket - packet_chat_command_signed: - command: string - timestamp: i64 - salt: i64 - argumentSignatures: []varint - argumentName: string - signature: [ - "buffer", - { - "count": 256 - } - ] - messageCount: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - # MC: ServerboundChatPacket - packet_chat_message: - message: string - timestamp: i64 - salt: i64 - signature?: [ - "buffer", - { - "count": 256 - } - ] - offset: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - # MC: ServerboundChatSessionUpdatePacket - packet_chat_session_update: - sessionUUID: UUID - expireTime: i64 - publicKey: ByteArray - signature: ByteArray - # MC: ServerboundChunkBatchReceivedPacket - packet_chunk_batch_received: - chunksPerTick: f32 - # MC: ServerboundClientCommandPacket - packet_client_command: - actionId: varint - # MC: ServerboundClientTickEndPacket - packet_tick_end: - # Empty - # MC: ServerboundCommandSuggestionPacket - packet_tab_complete: - transactionId: varint - text: string - # MC: ServerboundConfigurationAcknowledgedPacket - packet_configuration_acknowledged: - # Empty - # MC: ServerboundContainerButtonClickPacket - packet_enchant_item: - windowId: ContainerID - enchantment: varint - # MC: ServerboundContainerClickPacket - packet_window_click: - windowId: ContainerID - stateId: varint - slot: i16 - mouseButton: i8 - mode: varint - changedSlots: []varint - location: i16 - item: Slot - cursorItem: Slot - # MC: ServerboundContainerClosePacket - packet_close_window: - windowId: ContainerID - # MC: ServerboundContainerSlotStateChangedPacket - packet_set_slot_state: - slot_id: varint - window_id: ContainerID - state: bool - ## (ServerboundCookieResponsePacket is common) - # MC: ServerboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ServerboundDebugSampleSubscriptionPacket - packet_debug_sample_subscription: - type: varint - # MC: ServerboundEditBookPacket - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - # MC: ServerboundEntityTagQuery - packet_query_entity_nbt: - transactionId: varint - entityId: varint - # MC: ServerboundInteractPacket - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - # MC: ServerboundJigsawGeneratePacket - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundLockDifficultyPacket - packet_lock_difficulty: - locked: bool - - MovementFlags: ["bitflags", { - "type": "u8", - "flags": ["onGround", "hasHorizontalCollision"] - }] - # MC: ServerboundMovePlayerPacket.Pos - packet_position: - x: f64 - y: f64 - z: f64 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.PosRot - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.Rot - packet_look: - yaw: f32 - pitch: f32 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.StatusOnly - packet_flying: - flags: MovementFlags - # MC: ServerboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - # MC: ServerboundPaddleBoatPacket - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - # MC: ServerboundPickItemFromBlockPacket - packet_pick_item_from_block: - position: position - includeData: bool - # MC: ServerboundPickItemFromEntityPacket - packet_pick_item_from_entity: - entityId: varint - includeData: bool - # MC: ServerboundPingRequestPacket - packet_ping_request: - id: i64 - # MC: ServerboundPlaceRecipePacket - packet_craft_recipe_request: - windowId: ContainerID - recipeId: varint - makeAll: bool - # MC: ServerboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - # MC: ServerboundPlayerActionPacket - packet_block_dig: - status: varint - location: position - face: i8 - sequence: varint - # MC: ServerboundPlayerCommandPacket - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - # MC: ServerboundPlayerInputPacket - # previously: packet_steer_vehicle - packet_player_input: - ## client/net/minecraft/world/entity/player/Input.java - inputs: ["bitflags", { - "type": "u8", - "flags": ["forward", "backward", "left", "right", "jump", "shift", "sprint"] - }] - # MC: ServerboundPlayerLoadedPacket - packet_player_loaded: - # Empty - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundRecipeBookChangeSettingsPacket - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - # MC: ServerboundRecipeBookSeenRecipePacket - packet_displayed_recipe: - recipeId: varint - # MC: ServerboundRenameItemPacket - packet_name_item: - name: string - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint - # MC: ServerboundSeenAdvancementsPacket - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - # MC: ServerboundSelectTradePacket - packet_select_trade: - slot: varint - # MC: ServerboundSetBeaconPacket - packet_set_beacon_effect: - primary_effect?: varint - secondary_effect?: varint - # MC: ServerboundSetCarriedItemPacket - packet_held_item_slot: - slotId: i16 - # MC: ServerboundSetCommandBlockPacket - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - # MC: ServerboundSetCommandMinecartPacket - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - # MC: ServerboundSetCreativeModeSlotPacket - packet_set_creative_slot: - slot: i16 - item: Slot - # MC: ServerboundSetJigsawBlockPacket - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - selection_priority: varint - placement_priority: varint - # MC: ServerboundSetStructureBlockPacket - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varint - flags: u8 - # MC: ServerboundSignUpdatePacket - packet_update_sign: - location: position - isFrontText: bool - text1: string - text2: string - text3: string - text4: string - # MC: ServerboundSwingPacket - packet_arm_animation: - hand: varint - # MC: ServerboundTeleportToEntityPacket - packet_spectate: - target: UUID - # MC: ServerboundUseItemOnPacket - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - worldBorderHit: bool - sequence: varint - # MC: ServerboundUseItemPacket - packet_use_item: - hand: varint - sequence: varint - rotation: vec2f - - packet: - name: varint => - - teleport_confirm - - query_block_nbt - - select_bundle_item - - set_difficulty - - message_acknowledgement - - chat_command - - chat_command_signed - - chat_message - - chat_session_update - - chunk_batch_received - - client_command - - tick_end - - settings - - tab_complete - - configuration_acknowledged - # Maybe rename enchant_item if it is used for other things too - - enchant_item - - window_click - - close_window - - set_slot_state - - cookie_response - - custom_payload - - debug_sample_subscription - - edit_book - - query_entity_nbt - - use_entity - - generate_structure - - keep_alive - - lock_difficulty - - position - - position_look - - look - - flying - - vehicle_move - - steer_boat - - pick_item_from_block - - pick_item_from_entity - - ping_request - - craft_recipe_request - - abilities - - block_dig - - entity_action - - player_input - - player_loaded - - pong - - recipe_book - - displayed_recipe - - name_item - - resource_pack_receive - - advancement_tab - - select_trade - - set_beacon_effect - - held_item_slot - - update_command_block - - update_command_block_minecart - - set_creative_slot - - update_jigsaw_block - - update_structure_block - - update_sign - - arm_animation - - spectate - - block_place - - use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if query_block_nbt: packet_query_block_nbt - if select_bundle_item: packet_select_bundle_item - if set_difficulty: packet_set_difficulty - if message_acknowledgement: packet_message_acknowledgement - if chat_command: packet_chat_command - if chat_command_signed: packet_chat_command_signed - if chat_message: packet_chat_message - if chat_session_update: packet_chat_session_update - if chunk_batch_received: packet_chunk_batch_received - if client_command: packet_client_command - if tick_end: packet_tick_end - if settings: packet_common_settings - if tab_complete: packet_tab_complete - if configuration_acknowledged: packet_configuration_acknowledged - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if set_slot_state: packet_set_slot_state - if cookie_response: packet_common_cookie_response - if custom_payload: packet_custom_payload - if debug_sample_subscription: packet_debug_sample_subscription - if edit_book: packet_edit_book - if query_entity_nbt: packet_query_entity_nbt - if use_entity: packet_use_entity - if generate_structure: packet_generate_structure - if keep_alive: packet_keep_alive - if lock_difficulty: packet_lock_difficulty - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if pick_item_from_block: packet_pick_item_from_block - if pick_item_from_entity: packet_pick_item_from_entity - if ping_request: packet_ping_request - if craft_recipe_request: packet_craft_recipe_request - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if player_input: packet_player_input - if player_loaded: packet_player_loaded - if pong: packet_pong - if recipe_book: packet_recipe_book - if displayed_recipe: packet_displayed_recipe - if name_item: packet_name_item - if resource_pack_receive: packet_resource_pack_receive - if advancement_tab: packet_advancement_tab - if select_trade: packet_select_trade - if set_beacon_effect: packet_set_beacon_effect - if held_item_slot: packet_held_item_slot - if update_command_block: packet_update_command_block - if update_command_block_minecart: packet_update_command_block_minecart - if set_creative_slot: packet_set_creative_slot - if update_jigsaw_block: packet_update_jigsaw_block - if update_structure_block: packet_update_structure_block - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item \ No newline at end of file +!version: 1.21.4 +!base: 1.21.3 + +^types: + ItemSoundEvent: + soundName: string + fixedRange?: f32 + + BannerPatternLayer: + pattern: ["registryEntryHolder", { "baseName": "patternId", "otherwise": { "name": "data", "type": "BannerPattern" } }] + colorId: varint + + Particle: + # See client/net/minecraft/core/particles/ParticleTypes.java + type: varint => + - angry_villager + - block + - block_marker + - bubble + - cloud + - crit + - damage_indicator + - dragon_breath + - dripping_lava + - falling_lava + - landing_lava + - dripping_water + - falling_water + - dust + - dust_color_transition + - effect + - elder_guardian + - enchanted_hit + - enchant + - end_rod + - entity_effect + - explosion_emitter + - explosion + - gust + - small_gust + - gust_emitter_large + - gust_emitter_small + - sonic_boom + - falling_dust + - firework + - fishing + - flame + - infested + - cherry_leaves + - pale_oak_leaves + - sculk_soul + - sculk_charge + - sculk_charge_pop + - soul_fire_flame + - soul + - flash + - happy_villager + - composter + - heart + - instant_effect + - item + - vibration + - trail + - item_slime + - item_cobweb + - item_snowball + - large_smoke + - lava + - mycelium + - note + - poof + - portal + - rain + - smoke + - white_smoke + - sneeze + - spit + - squid_ink + - sweep_attack + - totem_of_undying + - underwater + - splash + - witch + - bubble_pop + - current_down + - bubble_column_up + - nautilus + - dolphin + - campfire_cosy_smoke + - campfire_signal_smoke + - dripping_honey + - falling_honey + - landing_honey + - falling_nectar + - falling_spore_blossom + - ash + - crimson_spore + - warped_spore + - spore_blossom_air + - dripping_obsidian_tear + - falling_obsidian_tear + - landing_obsidian_tear + - reverse_portal + - white_ash + - small_flame + - snowflake + - dripping_dripstone_lava + - falling_dripstone_lava + - dripping_dripstone_water + - falling_dripstone_water + - glow_squid_ink + - glow + - wax_on + - wax_off + - electric_spark + - scrape + - shriek + - egg_crack + - dust_plume + - trial_spawner_detected_player + - trial_spawner_detected_player_ominous + - vault_connection + - dust_pillar + - ominous_spawning + - raid_omen + - trial_omen + - block_crumble + ## ## Tips for reviewing particle data (as of 1.20.5) + ## Inside the registry code, each particle can have an associated "options" type and + ## each options type can add additional data to be encoded. + ## For example, this line + ## public static final ParticleType BLOCK = register("block", false, BlockParticleOption::codec, BlockParticleOption::streamCodec); + ## will read the stream codec from BlockParticleOption.java's streamCodec member; then we see + ## return ByteBufCodecs.idMapper(Block.BLOCK_STATE_REGISTRY).map(var1 -> new BlockParticleOption(var0, var1), var0x -> var0x.state); + ## this encodes with the ByteBufCodecs.idMapper function. Inside this function we find + ## public void encode(ByteBuf var1x, T var2) { + ## int var3 = var1.applyAsInt(var2); + ## VarInt.write(var1x, var3); + ## } + ## which as we can see writes the varint to the buffer. + ## If you want to see all the serializers try regexp searching "StreamCodec.*Particle" + data: type ? + if block or block_marker or falling_dust or dust_pillar or block_crumble: varint + if dust: + red: f32 + green: f32 + blue: f32 + scale: f32 + if dust_color_transition: + fromRed: f32 + fromGreen: f32 + fromBlue: f32 + scale: f32 + toRed: f32 + toGreen: f32 + toBlue: f32 + if entity_effect: i32 + if item: Slot + if sculk_charge: f32 + if shriek: varint + if vibration: + positionType: varint => + - block + - entity + position: positionType ? + if block: position + if entity: + entityId: varint + entityEyeHeight: f32 + ticks: varint + if trail: + target: vec3f64 + color: u8 + +^play.toClient.types: + # MC: ClientboundExplodePacket + packet_explosion: + x: f64 + y: f64 + z: f64 + playerKnockback?: vec3f64 + explosionParticle: Particle + sound: ItemSoundHolder + + # MC: ClientboundLevelParticlesPacket + packet_world_particles: + longDistance: bool + alwaysShow: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + velocityOffset: f32 + amount: i32 + particle: Particle + + # MC: ClientboundPlayerInfoUpdatePacket + packet_player_info: + ## ClientboundPlayerInfoUpdatePacket.java#L160 + action: ["bitflags", { + "type": "u8", + "flags": [ + "add_player", + "initialize_chat", + "update_game_mode", + "update_listed", + "update_latency", + "update_display_name", + "update_hat", + "update_list_order" + ] + }] + data: []varint + uuid: UUID + player: ../action/add_player ? + if true: game_profile + default: void + chatSession: ../action/initialize_chat ? + if true: chat_session + default: void + gamemode: ../action/update_game_mode ? + if true: varint + default: void + listed: ../action/update_listed ? + if true: varint + default: void + latency: ../action/update_latency ? + if true: varint + default: void + displayName: ../action/update_display_name ? + if true: ["option", "anonymousNbt"] + default: void + listPriority: ../action/update_list_order ? + if true: varint + default: void + showHat: ../action/update_hat ? + if true: bool + default: void + + # MC: ClientboundSetCursorItemPacket + packet_set_cursor_item: + contents: Slot + + # MC: ClientboundSetHeldSlotPacket + packet_held_item_slot: + slot: varint + + # MC: ClientboundSetPlayerInventoryPacket + packet_set_player_inventory: + slotId: varint + contents: Slot + +^play.toServer.types: + packet_pick_item: !delete + + # MC: ServerboundCommandSuggestionPacket + packet_tab_complete: + transactionId: varint + text: string + + # MC: ServerboundMoveVehiclePacket + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + + # MC: ServerboundPickItemFromBlockPacket + packet_pick_item_from_block: + position: position + includeData: bool + + # MC: ServerboundPickItemFromEntityPacket + packet_pick_item_from_entity: + entityId: varint + includeData: bool + + # MC: ServerboundPlayerLoadedPacket + packet_player_loaded: + # Empty + + packet: + name: varint => + - teleport_confirm + - query_block_nbt + - select_bundle_item + - set_difficulty + - message_acknowledgement + - chat_command + - chat_command_signed + - chat_message + - chat_session_update + - chunk_batch_received + - client_command + - tick_end + - settings + - tab_complete + - configuration_acknowledged + # Maybe rename enchant_item if it is used for other things too + - enchant_item + - window_click + - close_window + - set_slot_state + - cookie_response + - custom_payload + - debug_sample_subscription + - edit_book + - query_entity_nbt + - use_entity + - generate_structure + - keep_alive + - lock_difficulty + - position + - position_look + - look + - flying + - vehicle_move + - steer_boat + - pick_item_from_block + - pick_item_from_entity + - ping_request + - craft_recipe_request + - abilities + - block_dig + - entity_action + - player_input + - player_loaded + - pong + - recipe_book + - displayed_recipe + - name_item + - resource_pack_receive + - advancement_tab + - select_trade + - set_beacon_effect + - held_item_slot + - update_command_block + - update_command_block_minecart + - set_creative_slot + - update_jigsaw_block + - update_structure_block + - update_sign + - arm_animation + - spectate + - block_place + - use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if select_bundle_item: packet_select_bundle_item + if set_difficulty: packet_set_difficulty + if message_acknowledgement: packet_message_acknowledgement + if chat_command: packet_chat_command + if chat_command_signed: packet_chat_command_signed + if chat_message: packet_chat_message + if chat_session_update: packet_chat_session_update + if chunk_batch_received: packet_chunk_batch_received + if client_command: packet_client_command + if tick_end: packet_tick_end + if settings: packet_common_settings + if tab_complete: packet_tab_complete + if configuration_acknowledged: packet_configuration_acknowledged + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if set_slot_state: packet_set_slot_state + if cookie_response: packet_common_cookie_response + if custom_payload: packet_custom_payload + if debug_sample_subscription: packet_debug_sample_subscription + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if use_entity: packet_use_entity + if generate_structure: packet_generate_structure + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if pick_item_from_block: packet_pick_item_from_block + if pick_item_from_entity: packet_pick_item_from_entity + if ping_request: packet_ping_request + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if player_input: packet_player_input + if player_loaded: packet_player_loaded + if pong: packet_pong + if recipe_book: packet_recipe_book + if displayed_recipe: packet_displayed_recipe + if name_item: packet_name_item + if resource_pack_receive: packet_resource_pack_receive + if advancement_tab: packet_advancement_tab + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if held_item_slot: packet_held_item_slot + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_structure_block: packet_update_structure_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item diff --git a/data/pc/1.21.4/protocol.json b/data/pc/1.21.4/protocol.json index 92f3f0cf5..c5b4de33e 100644 --- a/data/pc/1.21.4/protocol.json +++ b/data/pc/1.21.4/protocol.json @@ -3625,296 +3625,6 @@ } } }, - "configuration": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "add_resource_pack": "packet_common_add_resource_pack", - "cookie_request": "packet_common_cookie_request", - "custom_payload": "packet_custom_payload", - "custom_report_details": "packet_common_custom_report_details", - "disconnect": "packet_disconnect", - "feature_flags": "packet_feature_flags", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "reset_chat": "packet_reset_chat", - "select_known_packs": "packet_common_select_known_packs", - "server_links": "packet_common_server_links", - "store_cookie": "packet_common_store_cookie", - "tags": "packet_tags", - "transfer": "packet_common_transfer" - } - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "packet_feature_flags": [ - "container", - [ - { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_registry_data": [ - "container", - [ - { - "name": "id", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] - } - ] - ], - "packet_reset_chat": [ - "container", - [] - ], - "packet_tags": [ - "container", - [ - { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_report_details", - "0x09": "server_links" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "custom_report_details": "packet_common_custom_report_details", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "server_links": "packet_common_server_links", - "settings": "packet_common_settings" - } - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_resource_pack_receive": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "result", - "type": "varint" - } - ] - ] - } - } - }, "play": { "toClient": { "types": { @@ -9077,301 +8787,591 @@ "container", [ { - "name": "location", - "type": "position" + "name": "location", + "type": "position" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "target", + "type": "string" + }, + { + "name": "pool", + "type": "string" + }, + { + "name": "finalState", + "type": "string" + }, + { + "name": "jointType", + "type": "string" + }, + { + "name": "selection_priority", + "type": "varint" + }, + { + "name": "placement_priority", + "type": "varint" + } + ] + ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "metadata", + "type": "string" + }, + { + "name": "integrity", + "type": "f32" + }, + { + "name": "seed", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] + ], + "packet_use_entity": [ + "container", + [ + { + "name": "target", + "type": "varint" }, { - "name": "name", - "type": "string" + "name": "mouse", + "type": "varint" }, { - "name": "target", - "type": "string" + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "pool", - "type": "string" + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "finalState", - "type": "string" + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "jointType", - "type": "string" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "selection_priority", + "name": "sneaking", + "type": "bool" + } + ] + ], + "packet_use_item": [ + "container", + [ + { + "name": "hand", "type": "varint" }, { - "name": "placement_priority", + "name": "sequence", "type": "varint" + }, + { + "name": "rotation", + "type": "vec2f" } ] ], - "packet_update_sign": [ + "packet_vehicle_move": [ "container", [ { - "name": "location", - "type": "position" + "name": "x", + "type": "f64" }, { - "name": "isFrontText", - "type": "bool" + "name": "y", + "type": "f64" }, { - "name": "text1", - "type": "string" + "name": "z", + "type": "f64" }, { - "name": "text2", - "type": "string" + "name": "yaw", + "type": "f32" }, { - "name": "text3", - "type": "string" + "name": "pitch", + "type": "f32" }, { - "name": "text4", - "type": "string" + "name": "onGround", + "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_window_click": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "mode", + "name": "stateId", "type": "varint" }, { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" + "name": "slot", + "type": "i16" }, { - "name": "offset_z", + "name": "mouseButton", "type": "i8" }, { - "name": "size_x", - "type": "i8" + "name": "mode", + "type": "varint" }, { - "name": "size_y", - "type": "i8" + "name": "changedSlots", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": "Slot" + } + ] + ] + } + ] }, { - "name": "size_z", - "type": "i8" - }, + "name": "cursorItem", + "type": "Slot" + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ + "container", + [ { - "name": "mirror", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links" + }, + "type": "varint" + } + ] }, { - "name": "rotation", - "type": "varint" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "add_resource_pack": "packet_common_add_resource_pack", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" + } + } + ] + } + ] + ], + "packet_custom_payload": [ + "container", + [ { - "name": "metadata", + "name": "channel", "type": "string" }, { - "name": "integrity", - "type": "f32" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "anonymousNbt" + } + ] + ], + "packet_feature_flags": [ + "container", + [ { - "name": "seed", - "type": "varint" - }, + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ + "container", + [ { - "name": "flags", - "type": "u8" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_use_entity": [ + "packet_ping": [ "container", [ { - "name": "target", - "type": "varint" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_registry_data": [ + "container", + [ { - "name": "mouse", - "type": "varint" + "name": "id", + "type": "string" }, { - "name": "x", + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] } ] - }, + } + ] + ], + "packet_reset_chat": [ + "container", + [] + ], + "packet_tags": [ + "container", + [ { - "name": "y", + "name": "tags", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] - }, + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "z", + "name": "name", "type": [ - "switch", + "mapper", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "mappings": { + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_report_details", + "0x09": "server_links" + }, + "type": "varint" } ] }, { - "name": "hand", + "name": "params", "type": [ "switch", { - "compareTo": "mouse", - "default": "void", + "compareTo": "name", "fields": { - "0": "varint", - "2": "varint" + "cookie_response": "packet_common_cookie_response", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "settings": "packet_common_settings" } } ] - }, - { - "name": "sneaking", - "type": "bool" } ] ], - "packet_use_item": [ + "packet_custom_payload": [ "container", [ { - "name": "hand", - "type": "varint" - }, - { - "name": "sequence", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "rotation", - "type": "vec2f" + "name": "data", + "type": "restBuffer" } ] ], - "packet_vehicle_move": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_window_click": [ + "packet_pong": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_resource_pack_receive": [ + "container", + [ { - "name": "mouseButton", - "type": "i8" + "name": "uuid", + "type": "UUID" }, { - "name": "mode", + "name": "result", "type": "varint" - }, - { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] - }, - { - "name": "cursorItem", - "type": "Slot" } ] ] diff --git a/data/pc/1.21.5/proto.yml b/data/pc/1.21.5/proto.yml index 6a1fdf8ee..9d01775dd 100644 --- a/data/pc/1.21.5/proto.yml +++ b/data/pc/1.21.5/proto.yml @@ -1,69 +1,14 @@ !version: 1.21.5 -!StartDocs: true +!base: 1.21.4 ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - anonymousNbt: native - anonOptionalNbt: native - registryEntryHolder: native - registryEntryHolderSet: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec2f: - x: f32 - y: f32 - vec3f: - x: f32 - y: f32 - z: f32 - vec4f: - x: f32 - y: f32 - z: f32 - w: f32 - vec3f64: - x: f64 - y: f64 - z: f64 + EntityMetadataWolfVariant: !delete + vec3i: x: varint y: varint z: varint - vec3i16: - x: i16 - y: i16 - z: i16 - IDSet: ["registryEntryHolderSet", { - "base": { name: "name", type: "string" }, - "otherwise": { name: "ids", type: "varint" } - }] - ContainerID: varint + SlotComponentType: varint => - custom_data - max_stack_size @@ -236,7 +181,7 @@ bypassedBy?: string blockSound?: ItemSoundHolder disableSound?: ItemSoundHolder - if food: + if food: nutrition: varint # How much saturation will be given after consuming the item. saturationModifier: f32 @@ -435,52 +380,6 @@ if cat/collar: varint if sheep/color: varint if shulker/color: varint - - ItemSoundEvent: - soundName: string - fixedRange?: f32 - ItemSoundHolder: ["registryEntryHolder", { - "baseName": "soundId", - "otherwise": { name: "data", type: "ItemSoundEvent" } - }] - - ItemFireworkExplosion: - shape: varint => - - small_ball - - large_ball - - star - - creeper - - burst - # The RGB components of the color, encoded as an integer. - colors: i32[]varint - # The RGB components of the color, encoded as an integer. - fadeColors: i32[]varint - # Whether the firework has a trail. - hasTrail: bool - # Whether the firework has a twinkle effect. - hasTwinkle: bool - - ItemEffectDetail: - amplifier: varint - duration: varint - ambient: bool - showParticles: bool - showIcon: bool - hiddenEffect?: ItemEffectDetail - - ItemPotionEffect: - id: varint - details: ItemEffectDetail - - ItemBlockProperty: - name: string - isExactMatch: bool - value: isExactMatch ? - if true: - exactValue: string - if false: - minValue: string - maxValue: string ExactComponentMatcher: SlotComponent[]varint @@ -497,14 +396,6 @@ nbt: anonOptionalNbt components: DataComponentMatchers - ItemBookPage: - # The raw text of the page. TextComponent, max 1024 characters. - content: string - filteredContent?: string - ItemWrittenBookPage: - content: anonymousNbt - filteredContent: anonOptionalNbt - ItemConsumeEffect: # 1.21.3 type: varint => - apply_effects @@ -536,25 +427,6 @@ description: anonymousNbt decal: bool - InstrumentData: - soundEvent: ItemSoundHolder - useDuration: f32 - range: f32 - description: anonymousNbt - - JukeboxSongData: - soundEvent: ItemSoundHolder - description: anonymousNbt - lengthInSeconds: f32 - comparatorOutput: varint - - BannerPattern: - assetId: string - translationKey: string - BannerPatternLayer: - pattern: ["registryEntryHolder", { "baseName": "patternId", "otherwise": { "name": "data", "type": "BannerPattern" } }] - colorId: varint - # This represents a single component within an UntrustedSlot. # The 'data' field is a varint-prefixed byte array that contains the actual component data. # The code generator will need to know that it should read a varint for length, then the bytes. @@ -578,19 +450,6 @@ type: SlotComponentType if false: void - Slot: - itemCount: varint - _: itemCount ? - if 0: void - default: - itemId: varint - # https://wiki.vg/Slot_Data#Structured_components - addedComponentCount: varint - removedComponentCount: varint - components: SlotComponent[]$addedComponentCount - removeComponents: []$removedComponentCount - type: SlotComponentType - HashedSlot: itemId: varint itemCount: varint @@ -765,51 +624,7 @@ color: u8 if tinted_leaves: i32 if firefly: void - ingredient: Slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - soundSource: varint => - 0: master - 1: music - 2: record - 3: weather - 4: block - 5: hostile - 6: neutral - 7: player - 8: ambient - 9: voice - packedChunkPos: - z: i32 - x: i32 - previousMessages: []varint - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void + entityMetadataEntry: key: u8 type: varint => @@ -893,57 +708,7 @@ if armadillo_state: varint if vector3: vec3f if quaternion: vec4f - EntityMetadataPaintingVariant: - width: i32 - height: i32 - assetId: string - title?: anonymousNbt - author?: anonymousNbt - entityMetadata: ["entityMetadataLoop", { "endVal": 255, "type": "entityMetadataEntry" }] - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: - _: [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - y: i16 - type: varint - nbtData: anonOptionalNbt - chat_session?: - uuid: UUID - publicKey: - expireTime: i64 - keyBytes: [ - "buffer", - { - "countType": "varint" - } - ] - keySignature: [ - "buffer", - { - "countType": "varint" - } - ] - game_profile: - name: string - properties: []varint - name: string - value: string - signature?: string + command_node: flags: [ "bitfield", @@ -1232,6 +997,7 @@ suggestionType: ../flags/has_custom_suggestions ? if 1: string default: void + # # Shared Packets # These are packets that are shared between multiple states. # They are defined here to avoid duplication. @@ -1250,150 +1016,8 @@ - all - decreased - minimal - # MC: ClientboundCookieRequestPacket - packet_common_cookie_request: - cookie: string - # MC: ClientboundStoreCookiePacket - packet_common_store_cookie: - key: string - value: ByteArray - # MC: ClientboundTransferPacket - packet_common_transfer: - host: string - port: varint - # MC: ServerboundCookieResponsePacket - packet_common_cookie_response: - key: string - value?: ByteArray - # MC: ServerboundSelectKnownPacks - # MC: ClientboundSelectKnownPacks - packet_common_select_known_packs: - packs: []varint - namespace: string - id: string - version: string - # MC: ClientboundCustomReportDetailsPacket - packet_common_custom_report_details: - details: []varint - key: string - value: string - # MC: ClientboundResourcePackPopPacket - packet_common_remove_resource_pack: - uuid?: UUID - # MC: ClientboundResourcePackPushPacket - packet_common_add_resource_pack: - uuid: UUID - url: string - hash: string - forced: bool - promptMessage?: anonymousNbt - - ServerLinkType: varint => - - bug_report - - community_guidelines - - support - - status - - feedback - - community - - website - - forums - - news - - announcements - # MC: ClientboundServerLinksPacket - # This packet contains a list of links that the Notchian client will display in the menu - # available from the pause menu. Link labels can be built-in or custom (i.e., any text). - packet_common_server_links: - links: []varint - hasKnownType: bool - knownType: hasKnownType ? - if true: ServerLinkType - unknownType: hasKnownType ? - if false: anonymousNbt - link: string -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping -^status.toClient.types: - # MC: ClientboundStatusResponsePacket - packet_server_info: - response: string - # MC: ClientboundPongResponsePacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping -^status.toServer.types: - # MC: ServerboundStatusRequestPacket - packet_ping_start: - # Empty - # MC: ServerboundPingRequestPacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping ^login.toClient.types: - # MC: ClientboundLoginDisconnectPacket - packet_disconnect: - reason: string - # MC: ClientboundHelloPacket - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - shouldAuthenticate: bool - # MC: ClientboundLoginFinishedPacket - packet_success: - uuid: UUID - username: string - properties: []varint - name: string - value: string - signature?: string - # MC: ClientboundLoginCompressionPacket - packet_compress: - threshold: varint - # MC: ClientboundCustomQueryPacket - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer ## (Cookie Request is Common) ## packet: name: varint => @@ -1410,32 +1034,8 @@ if compress: packet_compress if login_plugin_request: packet_login_plugin_request if cookie_request: packet_common_cookie_request + ^login.toServer.types: - # MC: ServerboundHelloPacket - packet_login_start: - username: string - playerUUID: UUID - # MC: ServerboundKeyPacket - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ServerboundCustomQueryAnswerPacket - packet_login_plugin_response: - messageId: varint - data?: restBuffer - # MC: ServerboundLoginAcknowledgedPacket - packet_login_acknowledged: - # Empty ## (Cookie Response is Common) ## packet: name: varint => @@ -1450,43 +1050,8 @@ if login_plugin_response: packet_login_plugin_response if login_acknowledged: packet_login_acknowledged if cookie_response: packet_common_cookie_response + ^configuration.toClient.types: - ## (Cookie Request is common) - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDisconnectPacket - packet_disconnect: - reason: anonymousNbt - # MC: ClientboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundResetChatPacket - packet_reset_chat: - # Empty - # MC: ClientboundRegistryDataPacket - packet_registry_data: - # The server can send multiple registries - id: string - entries: []varint - key: string - value?: anonymousNbt - ## (Store cookie and Transfer are Common) ## - # MC: ClientboundUpdateEnabledFeaturesPacket - packet_feature_flags: - features: string[]varint - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags ## (Select known packs is common) packet: name: varint => @@ -1525,26 +1090,8 @@ if select_known_packs: packet_common_select_known_packs if custom_report_details: packet_common_custom_report_details if server_links: packet_common_server_links + ^configuration.toServer.types: - ## (Settings is Common) ## - ## (Cookie Response is Common) ## - # MC: ServerboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ServerboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint packet: name: varint => - settings @@ -1568,7 +1115,10 @@ if select_known_packs: packet_common_select_known_packs if custom_report_details: packet_common_custom_report_details if server_links: packet_common_server_links + ^play.toClient.types: + packet_spawn_entity_experience_orb: !delete + SlotDisplay: type: varint => - empty @@ -1592,6 +1142,7 @@ input: SlotDisplay remainder: SlotDisplay if composite: SlotDisplay[]varint + RecipeDisplay: type: varint => - crafting_shapeless @@ -1627,6 +1178,7 @@ addition: SlotDisplay result: SlotDisplay craftingStation: SlotDisplay + # World state information for spawn and respawn packets SpawnInfo: dimension: varint @@ -1646,242 +1198,12 @@ portalCooldown: varint seaLevel: varint - # MC: ClientboundAddEntityPacket - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - headPitch: i8 - objectData: varint - velocity: vec3i16 - # MC: ClientboundAnimatePacket - packet_animation: - entityId: varint - animation: u8 - # MC: ClientboundAwardStatsPacket - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - # MC: ClientboundBlockChangedAckPacket - packet_acknowledge_player_digging: - sequenceId: varint - # MC: ClientboundBlockDestructionPacket - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - # MC: ClientboundBlockEntityDataPacket - packet_tile_entity_data: - location: position - action: varint - nbtData: anonOptionalNbt - # MC: ClientboundBlockEventPacket - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - # MC: ClientboundBlockUpdatePacket - packet_block_change: - location: position - type: varint - # MC: ClientboundBossEventPacket - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: anonymousNbt - if 3: anonymousNbt - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - # MC: ClientboundChangeDifficultyPacket - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - # MC: ClientboundChunkBatchFinishedPacket - packet_chunk_batch_finished: - batchSize: varint - # MC: ClientboundChunkBatchStartPacket - packet_chunk_batch_start: - # Empty - # MC: ClientboundChunksBiomesPacket - packet_chunk_biomes: - biomes: []varint - position: packedChunkPos - data: ByteArray - # MC: ClientboundClearTitlesPacket - packet_clear_titles: - reset: bool - # MC: ClientboundCommandSuggestionsPacket - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: anonymousNbt - # MC: ClientboundCommandsPacket - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - # MC: ClientboundContainerClosePacket - packet_close_window: - windowId: ContainerID - # MC: ClientboundContainerSetContentPacket - packet_window_items: - windowId: ContainerID - stateId: varint - items: Slot[]varint - carriedItem: Slot - # MC: ClientboundContainerSetDataPacket - packet_craft_progress_bar: - windowId: ContainerID - property: i16 - value: i16 - # MC: ClientboundContainerSetSlotPacket - packet_set_slot: - windowId: ContainerID - stateId: varint - slot: i16 - item: Slot - ## (Cookie Request is Common) - # MC: ClientboundCooldownPacket - packet_set_cooldown: - # TODO: figure out what this is - cooldownGroup: string - cooldownTicks: varint - # MC: ClientboundCustomChatCompletionsPacket - packet_chat_suggestions: - action: varint - entries: string[]varint - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDamageEventPacket - packet_damage_event: - entityId: varint - sourceTypeId: varint - sourceCauseId: varint - sourceDirectId: varint - sourcePosition?: vec3f64 - # MC: ClientboundDebugSamplePacket - packet_debug_sample: - sample: i64[]varint - type: varint - # MC: ClientboundDeleteChatPacket - packet_hide_message: - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - # MC: ClientboundDisconnectPacket - packet_kick_disconnect: - reason: anonymousNbt - - ## client\net\minecraft\network\chat\ChatTypeDecoration.java - ## via client\net\minecraft\network\chat\ChatType.java - ChatTypeParameterType: varint => - - content - - sender - - target - ChatType: - translationKey: string - parameters: ChatTypeParameterType[]varint - style: anonymousNbt - ChatTypes: - chat: ChatType - narration: ChatType - ChatTypesHolder: ["registryEntryHolder", { "baseName": "chatType", "otherwise": { name: "data", type: "ChatTypes" } }] - - # MC: ClientboundDisguisedChatPacket - packet_profileless_chat: - message: anonymousNbt - type: ChatTypesHolder - name: anonymousNbt - target?: anonymousNbt - # MC: ClientboundEntityEventPacket - packet_entity_status: - entityId: i32 - entityStatus: i8 - # MC: ClientboundEntityPositionSyncPacket - packet_sync_entity_position: - entityId: varint - x: f64 - y: f64 - z: f64 - dx: f64 - dy: f64 - dz: f64 - yaw: f32 - pitch: f32 - onGround: bool - # MC: ClientboundExplodePacket - packet_explosion: - x: f64 - y: f64 - z: f64 - playerKnockback?: vec3f64 - explosionParticle: Particle - sound: ItemSoundHolder - # MC: ClientboundForgetLevelChunkPacket - packet_unload_chunk: - chunkZ: i32 - chunkX: i32 # MC: ClientboundGameEventPacket packet_game_state_change: #TODO: Should be a mapper reason: u8 gameMode: f32 - # MC: ClientboundHorseScreenOpenPacket - packet_open_horse_window: - windowId: ContainerID - nbSlots: varint - entityId: i32 - # MC: ClientboundHurtAnimationPacket - packet_hurt_animation: - entityId: varint - yaw: f32 - # MC: ClientboundInitializeBorderPacket - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varint - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 + # MC: ClientboundLevelChunkWithLightPacket packet_map_chunk: x: i32 @@ -1899,79 +1221,7 @@ _: u8[]varint blockLight: []varint _: u8[]varint - # MC: ClientboundLevelEventPacket - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - # MC: ClientboundLevelParticlesPacket - packet_world_particles: - longDistance: bool - alwaysShow: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - velocityOffset: f32 - amount: i32 - particle: Particle - # MC: ClientboundLightUpdatePacket - packet_update_light: - chunkX: varint - chunkZ: varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - # MC: ClientboundLoginPacket - packet_login: - entityId: i32 - isHardcore: bool - worldNames: string[]varint - maxPlayers: varint - viewDistance: varint - simulationDistance: varint - reducedDebugInfo: bool - enableRespawnScreen: bool - doLimitedCrafting: bool - worldState: SpawnInfo - enforcesSecureChat: bool - # MC: ClientboundMapItemDataPacket - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: anonymousNbt - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] + # MC: ClientboundMerchantOffersPacket packet_trade_list: windowId: ContainerID @@ -1997,71 +1247,7 @@ experience: varint isRegularVillager: bool canRestock: bool - # MC: ClientboundMoveEntityPacket.Pos - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - # MC: ClientboundMoveEntityPacket.PosRot - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveMinecartPacket - packet_move_minecart: # 1.21.3 - entityId: varint - steps: []varint - position: vec3f - movement: vec3f - yaw: f32 - pitch: f32 - weight: f32 - # MC: ClientboundMoveEntityPacket.Rot - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - # MC: ClientboundOpenBookPacket - packet_open_book: - hand: varint - # MC: ClientboundOpenScreenPacket - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: anonymousNbt - # MC: ClientboundOpenSignEditorPacket - packet_open_sign_entity: - location: position - isFrontText: bool - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundPongResponsePacket - packet_ping_response: - id: i64 - # MC: ClientboundPlaceGhostRecipePacket - packet_craft_recipe_response: - windowId: ContainerID - recipeDisplay: RecipeDisplay - # MC: ClientboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 + # MC: ClientboundPlayerChatPacket packet_player_chat: globalIndex: varint @@ -2085,97 +1271,6 @@ type: ChatTypesHolder networkName: anonymousNbt networkTargetName?: anonymousNbt - # MC: ClientboundPlayerCombatEndPacket - packet_end_combat_event: - duration: varint - # MC: ClientboundPlayerCombatEnterPacket - packet_enter_combat_event: - # Empty - # MC: ClientboundPlayerCombatKillPacket - packet_death_combat_event: - playerId: varint - message: anonymousNbt - # MC: ClientboundPlayerInfoRemovePacket - packet_player_remove: - players: UUID[]varint - # MC: ClientboundPlayerInfoUpdatePacket - packet_player_info: - ## ClientboundPlayerInfoUpdatePacket.java#L160 - action: ["bitflags", { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name", - "update_hat", - "update_list_order" - ] - }] - data: []varint - uuid: UUID - player: ../action/add_player ? - if true: game_profile - default: void - chatSession: ../action/initialize_chat ? - if true: chat_session - default: void - gamemode: ../action/update_game_mode ? - if true: varint - default: void - listed: ../action/update_listed ? - if true: varint - default: void - latency: ../action/update_latency ? - if true: varint - default: void - displayName: ../action/update_display_name ? - if true: ["option", "anonymousNbt"] - default: void - listPriority: ../action/update_list_order ? - if true: varint - default: void - showHat: ../action/update_hat ? - if true: bool - default: void - - # MC: ClientboundPlayerLookAtPacket - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: varint - default: void - - # https://github.com/extremeheat/extracted_minecraft_data/blob/client1.21.2/client/net/minecraft/world/entity/Relative.java#L82 - PositionUpdateRelatives: ["bitflags", { - "type": "u32", - "flags": ["x", "y", "z", "yaw", "pitch", "dx", "dy", "dz", "yawDelta"] - }] - # MC: ClientboundPlayerPositionPacket - packet_position: - teleportId: varint - x: f64 - y: f64 - z: f64 - dx: f64 - dy: f64 - dz: f64 - yaw: f32 - pitch: f32 - flags: PositionUpdateRelatives - # MC: ClientboundPlayerRotationPacket - packet_player_rotation: - yaw: f32 - pitch: f32 # MC: ClientboundRecipeBookAddPacket packet_recipe_book_add: @@ -2206,183 +1301,7 @@ "flags": ["notification", "highlight"] }] replace: bool - # MC: ClientboundRecipeBookRemovePacket - packet_recipe_book_remove: - recipeIds: varint[]varint - # MC: ClientboundRecipeBookSettingsPacket - packet_recipe_book_settings: - craftingGuiOpen: bool - craftingFilteringCraftable: bool - smeltingGuiOpen: bool - smeltingFilteringCraftable: bool - blastGuiOpen: bool - blastFilteringCraftable: bool - smokerGuiOpen: bool - smokerFilteringCraftable: bool - # MC: ClientboundRemoveEntitiesPacket - packet_entity_destroy: - entityIds: varint[]varint - # MC: ClientboundRemoveMobEffectPacket - packet_remove_entity_effect: - entityId: varint - effectId: varint - # MC: ClientboundResetScorePacket - packet_reset_score: - entity_name: string - objective_name?: string - ## (remove_resource_pack is common) - # MC: ClientboundRespawnPacket - packet_respawn: - worldState: SpawnInfo - # Bit field: 0b1 - KEEP_ATTRIBUTE_MODIFIERS, 0b10 - KEEP_ENTITY_DATA - copyMetadata: u8 - # MC: ClientboundRotateHeadPacket - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - # MC: ClientboundSectionBlocksUpdatePacket - packet_multi_block_change: - chunkCoordinates: [ "bitfield", [ - { "name": "x", "size": 22, "signed": true }, - { "name": "z", "size": 22, "signed": true }, - { "name": "y", "size": 20, "signed": true } - ]] - records: varint[]varint - # MC: ClientboundSelectAdvancementsTabPacket - packet_select_advancement_tab: - id?: string - # MC: ClientboundServerDataPacket - packet_server_data: - motd: anonymousNbt - iconBytes?: ByteArray - # MC: ClientboundSetActionBarTextPacket - packet_action_bar: - text: anonymousNbt - # MC: ClientboundSetBorderCenterPacket - packet_world_border_center: - x: f64 - z: f64 - # MC: ClientboundSetBorderLerpSizePacket - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varint - # MC: ClientboundSetBorderSizePacket - packet_world_border_size: - diameter: f64 - # MC: ClientboundSetBorderWarningDelayPacket - packet_world_border_warning_delay: - warningTime: varint - # MC: ClientboundSetBorderWarningDistancePacket - packet_world_border_warning_reach: - warningBlocks: varint - # MC: ClientboundSetCameraPacket - packet_camera: - cameraId: varint - # MC: ClientboundSetChunkCacheCenterPacket - packet_update_view_position: - chunkX: varint - chunkZ: varint - # MC: ClientboundSetChunkCacheRadiusPacket - packet_update_view_distance: - viewDistance: varint - # MC: ClientboundSetCursorItemPacket - packet_set_cursor_item: - contents: Slot - # MC: ClientboundSetDefaultSpawnPositionPacket - packet_spawn_position: - location: position - angle: f32 - # MC: ClientboundSetDisplayObjectivePacket - packet_scoreboard_display_objective: - position: varint - name: string - # MC: ClientboundSetEntityDataPacket - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - # MC: ClientboundSetEntityLinkPacket - packet_attach_entity: - entityId: i32 - vehicleId: i32 - # MC: ClientboundSetEntityMotionPacket - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - # MC: ClientboundSetEquipmentPacket - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] - # MC: ClientboundSetExperiencePacket - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - # MC: ClientboundSetHealthPacket - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - # MC: ClientboundSetHeldSlotPacket - packet_held_item_slot: - slot: varint - # MC: ClientboundSetObjectivePacket - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - type: action ? - if 0: varint - if 2: varint - default: void - number_format: action ? - if 0: [ - "option", - "varint" - ] - if 2: [ - "option", - "varint" - ] - default: void - styling: action ? - if 0: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - if 2: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - default: void - # MC: ClientboundSetPassengersPacket - packet_set_passengers: - entityId: varint - passengers: varint[]varint - # MC: ClientboundSetPlayerInventoryPacket - packet_set_player_inventory: - slotId: varint - contents: Slot + # MC: ClientboundSetPlayerTeamPacket packet_teams: #TODO: this should be using a switch @@ -2421,106 +1340,12 @@ if 3: string[]varint if 4: string[]varint default: void - # MC: ClientboundSetScorePacket - packet_scoreboard_score: - itemName: string - scoreName: string - value: varint - display_name?: anonymousNbt - number_format?: varint - styling: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - # MC: ClientboundSetSimulationDistancePacket - packet_simulation_distance: - distance: varint - # MC: ClientboundSetSubtitleTextPacket - packet_set_title_subtitle: - text: anonymousNbt - # MC: ClientboundSetTimePacket - packet_update_time: - age: i64 - time: i64 - tickDayTime: bool - # MC: ClientboundSetTitleTextPacket - packet_set_title_text: - text: anonymousNbt - # MC: ClientboundSetTitlesAnimationPacket - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - # MC: ClientboundSoundEntityPacket - packet_entity_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - entityId: varint - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundSoundPacket - packet_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundStartConfigurationPacket - packet_start_configuration: - # Empty - # MC: ClientboundStopSoundPacket - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - ## (Store Cookie is Common) - # MC: ClientboundSystemChatPacket - packet_system_chat: - content: anonymousNbt - isActionBar: bool - # MC: ClientboundTabListPacket - packet_playerlist_header: - header: anonymousNbt - footer: anonymousNbt - # MC: ClientboundTagQueryPacket - packet_nbt_query_response: - transactionId: varint - nbt: anonOptionalNbt - # MC: ClientboundTakeItemEntityPacket - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - # MC: ClientboundTeleportEntityPacket - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool + # MC: ClientboundTestInstanceBlockStatusPacket packet_test_instance_block_status: status: anonymousNbt size?: vec3i - # MC: ClientboundTickingStatePacket - packet_set_ticking_state: - tick_rate: f32 - is_frozen: bool - # MC: ClientboundTickingStepPacket - packet_step_tick: - tick_steps: varint + ## (Transfer is common) # MC: ClientboundUpdateAdvancementsPacket packet_advancements: @@ -2555,6 +1380,7 @@ criterionIdentifier: string criterionProgress?: i64 showAdvancements: bool + # MC: ClientboundUpdateAttributesPacket packet_entity_update_attributes: entityId: varint @@ -2592,41 +1418,8 @@ uuid: string amount: f64 operation: i8 - # MC: ClientboundUpdateMobEffectPacket - packet_entity_effect: - entityId: varint - effectId: varint - amplifier: varint - duration: varint - # a bitfield of 0x01 for ambient, 0x02 for show particles - # flags: ["bitfield", [ - # { "name": "unused", "size": 4 }, - # { "name": "ambient", "size": 1 }, - # { "name": "showParticles", "size": 1 }, - # { "name": "showIcon", "size": 1 }, - # { "name": "blend", "size": 1 } - # ]] - flags: u8 - # MC: ClientboundUpdateRecipesPacket - packet_declare_recipes: - recipes: []varint - name: string - items: varint[]varint - stoneCutterRecipes: []varint - input: IDSet - slotDisplay: SlotDisplay - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags - # MC: ClientboundProjectilePowerPacket - packet_set_projectile_power: - id: varint - accelerationPower: f64 ## (ClientboundCustomReportDetailsPacket, ClientboundServerLinksPacket is common) - packet: name: varint => - bundle_delimiter @@ -2894,26 +1687,6 @@ if server_links: packet_common_server_links ^play.toServer.types: - # MC: ServerboundAcceptTeleportationPacket - packet_teleport_confirm: - teleportId: varint - # MC: ServerboundBlockEntityTagQueryPacket - packet_query_block_nbt: - transactionId: varint - location: position - # MC: ServerboundSelectBundleItemPacket - packet_select_bundle_item: - slotId: varint - selectedItemIndex: varint - # MC: ServerboundChangeDifficultyPacket - packet_set_difficulty: - newDifficulty: u8 - # MC: ServerboundChatAckPacket - packet_message_acknowledgement: - count: varint - # MC: ServerboundChatCommandPacket - packet_chat_command: - command: string # MC: ServerboundChatCommandSignedPacket packet_chat_command_signed: command: string @@ -2935,6 +1708,7 @@ } ] checksum: u8 + # MC: ServerboundChatPacket packet_chat_message: message: string @@ -2954,32 +1728,7 @@ } ] checksum: u8 - # MC: ServerboundChatSessionUpdatePacket - packet_chat_session_update: - sessionUUID: UUID - expireTime: i64 - publicKey: ByteArray - signature: ByteArray - # MC: ServerboundChunkBatchReceivedPacket - packet_chunk_batch_received: - chunksPerTick: f32 - # MC: ServerboundClientCommandPacket - packet_client_command: - actionId: varint - # MC: ServerboundClientTickEndPacket - packet_tick_end: - # Empty - # MC: ServerboundCommandSuggestionPacket - packet_tab_complete: - transactionId: varint - text: string - # MC: ServerboundConfigurationAcknowledgedPacket - packet_configuration_acknowledged: - # Empty - # MC: ServerboundContainerButtonClickPacket - packet_enchant_item: - windowId: ContainerID - enchantment: varint + # MC: ServerboundContainerClickPacket packet_window_click: windowId: ContainerID @@ -2991,199 +1740,12 @@ location: i16 item?: HashedSlot cursorItem?: HashedSlot - # MC: ServerboundContainerClosePacket - packet_close_window: - windowId: ContainerID - # MC: ServerboundContainerSlotStateChangedPacket - packet_set_slot_state: - slot_id: varint - window_id: ContainerID - state: bool - ## (ServerboundCookieResponsePacket is common) - # MC: ServerboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ServerboundDebugSampleSubscriptionPacket - packet_debug_sample_subscription: - type: varint - # MC: ServerboundEditBookPacket - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - # MC: ServerboundEntityTagQuery - packet_query_entity_nbt: - transactionId: varint - entityId: varint - # MC: ServerboundInteractPacket - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - # MC: ServerboundJigsawGeneratePacket - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundLockDifficultyPacket - packet_lock_difficulty: - locked: bool - MovementFlags: ["bitflags", { - "type": "u8", - "flags": ["onGround", "hasHorizontalCollision"] - }] - # MC: ServerboundMovePlayerPacket.Pos - packet_position: - x: f64 - y: f64 - z: f64 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.PosRot - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.Rot - packet_look: - yaw: f32 - pitch: f32 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.StatusOnly - packet_flying: - flags: MovementFlags - # MC: ServerboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - # MC: ServerboundPaddleBoatPacket - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - # MC: ServerboundPickItemFromBlockPacket - packet_pick_item_from_block: - position: position - includeData: bool - # MC: ServerboundPickItemFromEntityPacket - packet_pick_item_from_entity: - entityId: varint - includeData: bool - # MC: ServerboundPingRequestPacket - packet_ping_request: - id: i64 - # MC: ServerboundPlaceRecipePacket - packet_craft_recipe_request: - windowId: ContainerID - recipeId: varint - makeAll: bool - # MC: ServerboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - # MC: ServerboundPlayerActionPacket - packet_block_dig: - status: varint - location: position - face: i8 - sequence: varint - # MC: ServerboundPlayerCommandPacket - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - # MC: ServerboundPlayerInputPacket - # previously: packet_steer_vehicle - packet_player_input: - ## client/net/minecraft/world/entity/player/Input.java - inputs: ["bitflags", { - "type": "u8", - "flags": ["forward", "backward", "left", "right", "jump", "shift", "sprint"] - }] - # MC: ServerboundPlayerLoadedPacket - packet_player_loaded: - # Empty - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundRecipeBookChangeSettingsPacket - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - # MC: ServerboundRecipeBookSeenRecipePacket - packet_displayed_recipe: - recipeId: varint - # MC: ServerboundRenameItemPacket - packet_name_item: - name: string - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint - # MC: ServerboundSeenAdvancementsPacket - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - # MC: ServerboundSelectTradePacket - packet_select_trade: - slot: varint - # MC: ServerboundSetBeaconPacket - packet_set_beacon_effect: - primary_effect?: varint - secondary_effect?: varint - # MC: ServerboundSetCarriedItemPacket - packet_held_item_slot: - slotId: i16 - # MC: ServerboundSetCommandBlockPacket - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - # MC: ServerboundSetCommandMinecartPacket - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool # MC: ServerboundSetCreativeModeSlotPacket packet_set_creative_slot: slot: i16 item: UntrustedSlot - # MC: ServerboundSetJigsawBlockPacket - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - selection_priority: varint - placement_priority: varint + # MC: ServerboundSetStructureBlockPacket packet_update_structure_block: location: position @@ -3206,25 +1768,13 @@ - show_air - show_bounding_box - strict + # MC: ServerboundSetTestBlockPacket packet_set_test_block: position: position mode: varint message: string - # MC: ServerboundSignUpdatePacket - packet_update_sign: - location: position - isFrontText: bool - text1: string - text2: string - text3: string - text4: string - # MC: ServerboundSwingPacket - packet_arm_animation: - hand: varint - # MC: ServerboundTeleportToEntityPacket - packet_spectate: - target: UUID + # MC: ServerboundTestInstanceBlockActionPacket packet_test_instance_block_action: pos: position @@ -3236,22 +1786,6 @@ ignoreEntities: bool status: varint errorMessage?: anonymousNbt - # MC: ServerboundUseItemOnPacket - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - worldBorderHit: bool - sequence: varint - # MC: ServerboundUseItemPacket - packet_use_item: - hand: varint - sequence: varint - rotation: vec2f packet: name: varint => diff --git a/data/pc/1.21.5/protocol.json b/data/pc/1.21.5/protocol.json index b89ef0f67..deaed86fc 100644 --- a/data/pc/1.21.5/protocol.json +++ b/data/pc/1.21.5/protocol.json @@ -3995,296 +3995,6 @@ } } }, - "configuration": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "add_resource_pack": "packet_common_add_resource_pack", - "cookie_request": "packet_common_cookie_request", - "custom_payload": "packet_custom_payload", - "custom_report_details": "packet_common_custom_report_details", - "disconnect": "packet_disconnect", - "feature_flags": "packet_feature_flags", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "reset_chat": "packet_reset_chat", - "select_known_packs": "packet_common_select_known_packs", - "server_links": "packet_common_server_links", - "store_cookie": "packet_common_store_cookie", - "tags": "packet_tags", - "transfer": "packet_common_transfer" - } - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "packet_feature_flags": [ - "container", - [ - { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_registry_data": [ - "container", - [ - { - "name": "id", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] - } - ] - ], - "packet_reset_chat": [ - "container", - [] - ], - "packet_tags": [ - "container", - [ - { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_report_details", - "0x09": "server_links" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "cookie_response": "packet_common_cookie_response", - "custom_payload": "packet_custom_payload", - "custom_report_details": "packet_common_custom_report_details", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "server_links": "packet_common_server_links", - "settings": "packet_common_settings" - } - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_resource_pack_receive": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "result", - "type": "varint" - } - ] - ] - } - } - }, "play": { "toClient": { "types": { @@ -9522,335 +9232,625 @@ "container", [ { - "name": "entityId", - "type": "varint" + "name": "entityId", + "type": "varint" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" + } + ] + ], + "packet_update_jigsaw_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "target", + "type": "string" + }, + { + "name": "pool", + "type": "string" + }, + { + "name": "finalState", + "type": "string" + }, + { + "name": "jointType", + "type": "string" + }, + { + "name": "selection_priority", + "type": "varint" + }, + { + "name": "placement_priority", + "type": "varint" + } + ] + ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "metadata", + "type": "string" + }, + { + "name": "integrity", + "type": "f32" + }, + { + "name": "seed", + "type": "varint" + }, + { + "name": "flags", + "type": [ + "mapper", + { + "mappings": { + "0": "ignore_entities", + "1": "show_air", + "2": "show_bounding_box", + "3": "strict" + }, + "type": "u8" + } + ] + } + ] + ], + "packet_use_entity": [ + "container", + [ + { + "name": "target", + "type": "varint" + }, + { + "name": "mouse", + "type": "varint" + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] }, { - "name": "command", - "type": "string" + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "track_output", + "name": "sneaking", "type": "bool" } ] ], - "packet_update_jigsaw_block": [ + "packet_use_item": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "target", - "type": "string" - }, - { - "name": "pool", - "type": "string" - }, - { - "name": "finalState", - "type": "string" - }, - { - "name": "jointType", - "type": "string" + "name": "hand", + "type": "varint" }, { - "name": "selection_priority", + "name": "sequence", "type": "varint" }, { - "name": "placement_priority", - "type": "varint" + "name": "rotation", + "type": "vec2f" } ] ], - "packet_update_sign": [ + "packet_vehicle_move": [ "container", [ { - "name": "location", - "type": "position" + "name": "x", + "type": "f64" }, { - "name": "isFrontText", - "type": "bool" + "name": "y", + "type": "f64" }, { - "name": "text1", - "type": "string" + "name": "z", + "type": "f64" }, { - "name": "text2", - "type": "string" + "name": "yaw", + "type": "f32" }, { - "name": "text3", - "type": "string" + "name": "pitch", + "type": "f32" }, { - "name": "text4", - "type": "string" + "name": "onGround", + "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_window_click": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "mode", + "name": "stateId", "type": "varint" }, { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" + "name": "slot", + "type": "i16" }, { - "name": "offset_z", + "name": "mouseButton", "type": "i8" }, { - "name": "size_x", - "type": "i8" + "name": "mode", + "type": "varint" }, { - "name": "size_y", - "type": "i8" + "name": "changedSlots", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": [ + "option", + "HashedSlot" + ] + } + ] + ] + } + ] }, { - "name": "size_z", - "type": "i8" - }, + "name": "cursorItem", + "type": [ + "option", + "HashedSlot" + ] + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ + "container", + [ { - "name": "mirror", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links" + }, + "type": "varint" + } + ] }, { - "name": "rotation", - "type": "varint" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "add_resource_pack": "packet_common_add_resource_pack", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" + } + } + ] + } + ] + ], + "packet_custom_payload": [ + "container", + [ { - "name": "metadata", + "name": "channel", "type": "string" }, { - "name": "integrity", - "type": "f32" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_disconnect": [ + "container", + [ { - "name": "seed", - "type": "varint" - }, + "name": "reason", + "type": "anonymousNbt" + } + ] + ], + "packet_feature_flags": [ + "container", + [ { - "name": "flags", + "name": "features", "type": [ - "mapper", + "array", { - "mappings": { - "0": "ignore_entities", - "1": "show_air", - "2": "show_bounding_box", - "3": "strict" - }, - "type": "u8" + "countType": "varint", + "type": "string" } ] } ] ], - "packet_use_entity": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "target", - "type": "varint" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_ping": [ + "container", + [ { - "name": "mouse", - "type": "varint" + "name": "id", + "type": "i32" + } + ] + ], + "packet_registry_data": [ + "container", + [ + { + "name": "id", + "type": "string" }, { - "name": "x", + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] } ] - }, + } + ] + ], + "packet_reset_chat": [ + "container", + [] + ], + "packet_tags": [ + "container", + [ { - "name": "y", + "name": "tags", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] - }, + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "z", + "name": "name", "type": [ - "switch", + "mapper", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "mappings": { + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_report_details", + "0x09": "server_links" + }, + "type": "varint" } ] }, { - "name": "hand", + "name": "params", "type": [ "switch", { - "compareTo": "mouse", - "default": "void", + "compareTo": "name", "fields": { - "0": "varint", - "2": "varint" + "cookie_response": "packet_common_cookie_response", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "settings": "packet_common_settings" } } ] - }, - { - "name": "sneaking", - "type": "bool" } ] ], - "packet_use_item": [ + "packet_custom_payload": [ "container", [ { - "name": "hand", - "type": "varint" - }, - { - "name": "sequence", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "rotation", - "type": "vec2f" + "name": "data", + "type": "restBuffer" } ] ], - "packet_vehicle_move": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_window_click": [ + "packet_pong": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_resource_pack_receive": [ + "container", + [ { - "name": "mouseButton", - "type": "i8" + "name": "uuid", + "type": "UUID" }, { - "name": "mode", + "name": "result", "type": "varint" - }, - { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": [ - "option", - "HashedSlot" - ] - } - ] - ] - } - ] - }, - { - "name": "cursorItem", - "type": [ - "option", - "HashedSlot" - ] } ] ] diff --git a/data/pc/1.21.6/proto.yml b/data/pc/1.21.6/proto.yml index 38dd0b9ac..9bf8d85b9 100644 --- a/data/pc/1.21.6/proto.yml +++ b/data/pc/1.21.6/proto.yml @@ -1,167 +1,7 @@ !version: 1.21.6 -!StartDocs: true +!base: 1.21.5 ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - anonymousNbt: native - anonOptionalNbt: native - registryEntryHolder: native - registryEntryHolderSet: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec2f: - x: f32 - y: f32 - vec3f: - x: f32 - y: f32 - z: f32 - vec4f: - x: f32 - y: f32 - z: f32 - w: f32 - vec3f64: - x: f64 - y: f64 - z: f64 - vec3i: - x: varint - y: varint - z: varint - vec3i16: - x: i16 - y: i16 - z: i16 - IDSet: ["registryEntryHolderSet", { - "base": { name: "name", type: "string" }, - "otherwise": { name: "ids", type: "varint" } - }] - ContainerID: varint - SlotComponentType: varint => - - custom_data - - max_stack_size - - max_damage - - damage - - unbreakable - - custom_name - - item_name - - item_model - - lore - - rarity - - enchantments - - can_place_on - - can_break - - attribute_modifiers - - custom_model_data - - tooltip_display - - repair_cost - - creative_slot_lock - - enchantment_glint_override - - intangible_projectile - - food - - consumable - - use_remainder - - use_cooldown - - damage_resistant - - tool - - weapon - - enchantable - - equippable - - repairable - - glider - - tooltip_style - - death_protection - - blocks_attacks - - stored_enchantments - - dyed_color - - map_color - - map_id - - map_decorations - - map_post_processing - - charged_projectiles - - bundle_contents - - potion_contents - - potion_duration_scale - - suspicious_stew_effects - - writable_book_content - - written_book_content - - trim - - debug_stick_state - - entity_data - - bucket_entity_data - - block_entity_data - - instrument - - provides_trim_material - - ominous_bottle_amplifier - - jukebox_playable - - provides_banner_patterns - - recipes - - lodestone_tracker - - firework_explosion - - fireworks - - profile - - note_block_sound - - banner_patterns - - base_color - - pot_decorations - - container - - block_state - - bees - - lock - - container_loot - - break_sound - - villager/variant - - wolf/variant - - wolf/sound_variant - - wolf/collar - - fox/variant - - salmon/size - - parrot/variant - - tropical_fish/pattern - - tropical_fish/base_color - - tropical_fish/pattern_color - - mooshroom/variant - - rabbit/variant - - pig/variant - - cow/variant - - chicken/variant - - frog/variant - - horse/variant - - painting/variant - - llama/variant - - axolotl/variant - - cat/variant - - cat/collar - - sheep/color - - shulker/color - # Instead of sending NBT for items over the network, Minecraft since 1.20.5 sends a # list of components that make up the item. This saves bandwidth by not encoding tag names. SlotComponent: @@ -243,7 +83,7 @@ bypassedBy?: string blockSound?: ItemSoundHolder disableSound?: ItemSoundHolder - if food: + if food: nutrition: varint # How much saturation will be given after consuming the item. saturationModifier: f32 @@ -439,357 +279,7 @@ if cat/collar: varint if sheep/color: varint if shulker/color: varint - - ItemSoundEvent: - soundName: string - fixedRange?: f32 - ItemSoundHolder: ["registryEntryHolder", { - "baseName": "soundId", - "otherwise": { name: "data", type: "ItemSoundEvent" } - }] - - ItemFireworkExplosion: - shape: varint => - - small_ball - - large_ball - - star - - creeper - - burst - # The RGB components of the color, encoded as an integer. - colors: i32[]varint - # The RGB components of the color, encoded as an integer. - fadeColors: i32[]varint - # Whether the firework has a trail. - hasTrail: bool - # Whether the firework has a twinkle effect. - hasTwinkle: bool - - ItemEffectDetail: - amplifier: varint - duration: varint - ambient: bool - showParticles: bool - showIcon: bool - hiddenEffect?: ItemEffectDetail - - ItemPotionEffect: - id: varint - details: ItemEffectDetail - - ItemBlockProperty: - name: string - isExactMatch: bool - value: isExactMatch ? - if true: - exactValue: string - if false: - minValue: string - maxValue: string - - ExactComponentMatcher: SlotComponent[]varint - - DataComponentMatchers: - exactMatchers: ExactComponentMatcher - partialMatchers: varint[]varint - - ItemBlockPredicate: - blockSet?: ["registryEntryHolderSet", { - "base": { name: "name", type: "string" }, - "otherwise": { name: "blockIds", "type": "varint" } - }] - properties?: ItemBlockProperty[]varint - nbt: anonOptionalNbt - components: DataComponentMatchers - - ItemBookPage: - # The raw text of the page. TextComponent, max 1024 characters. - content: string - filteredContent?: string - ItemWrittenBookPage: - content: anonymousNbt - filteredContent: anonOptionalNbt - - ItemConsumeEffect: # 1.21.3 - type: varint => - - apply_effects - - remove_effects - - clear_all_effects - - teleport_randomly - - play_sound - _: type ? - if apply_effects: - effects: ItemPotionEffect[]varint - probability: f32 - if remove_effects: - effects: IDSet - if clear_all_effects: void - if teleport_randomly: - diameter: f32 - if play_sound: - sound: ItemSoundHolder - ArmorTrimMaterial: - assetBase: string - overrideArmorAssets: []varint - key: string - value: string - description: anonymousNbt - - ArmorTrimPattern: - assetId: string - description: anonymousNbt - decal: bool - - InstrumentData: - soundEvent: ItemSoundHolder - useDuration: f32 - range: f32 - description: anonymousNbt - - JukeboxSongData: - soundEvent: ItemSoundHolder - description: anonymousNbt - lengthInSeconds: f32 - comparatorOutput: varint - - BannerPattern: - assetId: string - translationKey: string - BannerPatternLayer: - pattern: ["registryEntryHolder", { "baseName": "patternId", "otherwise": { "name": "data", "type": "BannerPattern" } }] - colorId: varint - - # This represents a single component within an UntrustedSlot. - # The 'data' field is a varint-prefixed byte array that contains the actual component data. - # The code generator will need to know that it should read a varint for length, then the bytes. - UntrustedSlotComponent: - type: SlotComponentType - data: ByteArray - - # An UntrustedSlot is structurally identical to a regular Slot, - # but it uses the special UntrustedSlotComponent type for its component list. - # It's optional because the player might be clearing the slot. - UntrustedSlot: - itemCount: varint - _: itemCount ? - if 0: void - default: - itemId: varint - addedComponentCount: varint - removedComponentCount: varint - components: UntrustedSlotComponent[]$addedComponentCount - removeComponents: []$removedComponentCount - type: SlotComponentType - if false: void - - Slot: - itemCount: varint - _: itemCount ? - if 0: void - default: - itemId: varint - # https://wiki.vg/Slot_Data#Structured_components - addedComponentCount: varint - removedComponentCount: varint - components: SlotComponent[]$addedComponentCount - removeComponents: []$removedComponentCount - type: SlotComponentType - - HashedSlot: - itemId: varint - itemCount: varint - components: []varint - type: SlotComponentType - hash: i32 - removeComponents: []varint - type: SlotComponentType - - Particle: - # See client/net/minecraft/core/particles/ParticleTypes.java - type: varint => - - angry_villager - - block - - block_marker - - bubble - - cloud - - crit - - damage_indicator - - dragon_breath - - dripping_lava - - falling_lava - - landing_lava - - dripping_water - - falling_water - - dust - - dust_color_transition - - effect - - elder_guardian - - enchanted_hit - - enchant - - end_rod - - entity_effect - - explosion_emitter - - explosion - - gust - - small_gust - - gust_emitter_large - - gust_emitter_small - - sonic_boom - - falling_dust - - firework - - fishing - - flame - - infested - - cherry_leaves - - pale_oak_leaves - - tinted_leaves - - sculk_soul - - sculk_charge - - sculk_charge_pop - - soul_fire_flame - - soul - - flash - - happy_villager - - composter - - heart - - instant_effect - - item - - vibration - - trail - - item_slime - - item_cobweb - - item_snowball - - large_smoke - - lava - - mycelium - - note - - poof - - portal - - rain - - smoke - - white_smoke - - sneeze - - spit - - squid_ink - - sweep_attack - - totem_of_undying - - underwater - - splash - - witch - - bubble_pop - - current_down - - bubble_column_up - - nautilus - - dolphin - - campfire_cosy_smoke - - campfire_signal_smoke - - dripping_honey - - falling_honey - - landing_honey - - falling_nectar - - falling_spore_blossom - - ash - - crimson_spore - - warped_spore - - spore_blossom_air - - dripping_obsidian_tear - - falling_obsidian_tear - - landing_obsidian_tear - - reverse_portal - - white_ash - - small_flame - - snowflake - - dripping_dripstone_lava - - falling_dripstone_lava - - dripping_dripstone_water - - falling_dripstone_water - - glow_squid_ink - - glow - - wax_on - - wax_off - - electric_spark - - scrape - - shriek - - egg_crack - - dust_plume - - trial_spawner_detected_player - - trial_spawner_detected_player_ominous - - vault_connection - - dust_pillar - - ominous_spawning - - raid_omen - - trial_omen - - block_crumble - - firefly - ## ## Tips for reviewing particle data (as of 1.20.5) - ## Inside the registry code, each particle can have an associated "options" type and - ## each options type can add additional data to be encoded. - ## For example, this line - ## public static final ParticleType BLOCK = register("block", false, BlockParticleOption::codec, BlockParticleOption::streamCodec); - ## will read the stream codec from BlockParticleOption.java's streamCodec member; then we see - ## return ByteBufCodecs.idMapper(Block.BLOCK_STATE_REGISTRY).map(var1 -> new BlockParticleOption(var0, var1), var0x -> var0x.state); - ## this encodes with the ByteBufCodecs.idMapper function. Inside this function we find - ## public void encode(ByteBuf var1x, T var2) { - ## int var3 = var1.applyAsInt(var2); - ## VarInt.write(var1x, var3); - ## } - ## which as we can see writes the varint to the buffer. - ## If you want to see all the serializers try regexp searching "StreamCodec.*Particle" - data: type ? - if block or block_marker or falling_dust or dust_pillar or block_crumble: varint - if dust: - red: f32 - green: f32 - blue: f32 - scale: f32 - if dust_color_transition: - fromRed: f32 - fromGreen: f32 - fromBlue: f32 - scale: f32 - toRed: f32 - toGreen: f32 - toBlue: f32 - if entity_effect: i32 - if item: Slot - if sculk_charge: f32 - if shriek: varint - if vibration: - positionType: varint => - - block - - entity - position: positionType ? - if block: position - if entity: - entityId: varint - entityEyeHeight: f32 - ticks: varint - if trail: - target: vec3f64 - color: u8 - if tinted_leaves: i32 - if firefly: void - ingredient: Slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] soundSource: varint => 0: master 1: music @@ -802,153 +292,7 @@ 8: ambient 9: voice 10: ui - packedChunkPos: - z: i32 - x: i32 - previousMessages: []varint - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - entityMetadataEntry: - key: u8 - type: varint => - - byte - - int - - long - - float - - string - - component - - optional_component - - item_stack - - boolean - - rotations - - block_pos - - optional_block_pos - - direction - - optional_uuid - - block_state - - optional_block_state - - compound_tag - - particle - - particles - - villager_data - - optional_unsigned_int - - pose - - cat_variant - - cow_variant - - wolf_variant - - wolf_sound_variant - - frog_variant - - pig_variant - - chicken_variant - - optional_global_pos - - painting_variant - - sniffer_state - - armadillo_state - - vector3 - - quaternion - value: type ? - if byte: i8 - if int: varint - if long: varlong - if float: f32 - if string: string - if component: anonymousNbt - if optional_component: ["option", "anonymousNbt"] - if item_stack: Slot - if boolean: bool - if rotations: - pitch: f32 - yaw: f32 - roll: f32 - if block_pos: position - if optional_block_pos: ["option", "position"] - if direction: varint - if optional_uuid: ["option", "UUID"] - if block_state: varint - if optional_block_state: optvarint - if compound_tag: anonymousNbt - if particle: Particle - if particles: Particle[]varint - if villager_data: - villagerType: varint - villagerProfession: varint - level: varint - if optional_unsigned_int: optvarint - if pose: varint - if cat_variant: varint - if cow_variant: varint - if wolf_variant: varint - if wolf_sound_variant: varint - if frog_variant: varint - if pig_variant: varint - if chicken_variant: varint - if optional_global_pos: ["option", "string"] - if painting_variant: ["registryEntryHolder", { - "baseName": "variantId", - "otherwise": { name: "variantData", type: "EntityMetadataPaintingVariant" } - }] - if sniffer_state: varint - if armadillo_state: varint - if vector3: vec3f - if quaternion: vec4f - EntityMetadataPaintingVariant: - width: i32 - height: i32 - assetId: string - title?: anonymousNbt - author?: anonymousNbt - entityMetadata: ["entityMetadataLoop", { "endVal": 255, "type": "entityMetadataEntry" }] - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: - _: [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - y: i16 - type: varint - nbtData: anonOptionalNbt - chat_session?: - uuid: UUID - publicKey: - expireTime: i64 - keyBytes: [ - "buffer", - { - "countType": "varint" - } - ] - keySignature: [ - "buffer", - { - "countType": "varint" - } - ] - game_profile: - name: string - properties: []varint - name: string - value: string - signature?: string + command_node: flags: [ "bitfield", @@ -1246,272 +590,22 @@ suggestionType: ../flags/has_custom_suggestions ? if 1: string default: void - # # Shared Packets - # These are packets that are shared between multiple states. - # They are defined here to avoid duplication. - # ===== - # MC: ServerboundClientInformationPacket - packet_common_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - enableTextFiltering: bool - enableServerListing: bool - particleStatus: varint => - - all - - decreased - - minimal - # MC: ClientboundCookieRequestPacket - packet_common_cookie_request: - cookie: string - # MC: ClientboundStoreCookiePacket - packet_common_store_cookie: - key: string - value: ByteArray - # MC: ClientboundTransferPacket - packet_common_transfer: - host: string - port: varint - # MC: ServerboundCookieResponsePacket - packet_common_cookie_response: - key: string - value?: ByteArray - # MC: ServerboundSelectKnownPacks - # MC: ClientboundSelectKnownPacks - packet_common_select_known_packs: - packs: []varint - namespace: string - id: string - version: string - # MC: ClientboundCustomReportDetailsPacket - packet_common_custom_report_details: - details: []varint - key: string - value: string - # MC: ClientboundResourcePackPopPacket - packet_common_remove_resource_pack: - uuid?: UUID - # MC: ClientboundResourcePackPushPacket - packet_common_add_resource_pack: - uuid: UUID - url: string - hash: string - forced: bool - promptMessage?: anonymousNbt - ServerLinkType: varint => - - bug_report - - community_guidelines - - support - - status - - feedback - - community - - website - - forums - - news - - announcements - # MC: ClientboundServerLinksPacket - # This packet contains a list of links that the Notchian client will display in the menu - # available from the pause menu. Link labels can be built-in or custom (i.e., any text). - packet_common_server_links: - links: []varint - hasKnownType: bool - knownType: hasKnownType ? - if true: ServerLinkType - unknownType: hasKnownType ? - if false: anonymousNbt - link: string # MC: ClientboundClearDialogPacket packet_common_clear_dialog: # empty + # MC: ServerboundCustomClickActionPacket packet_common_custom_click_action: id: string nbt?: anonymousNbt -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping -^status.toClient.types: - # MC: ClientboundStatusResponsePacket - packet_server_info: - response: string - # MC: ClientboundPongResponsePacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping -^status.toServer.types: - # MC: ServerboundStatusRequestPacket - packet_ping_start: - # Empty - # MC: ServerboundPingRequestPacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping -^login.toClient.types: - # MC: ClientboundLoginDisconnectPacket - packet_disconnect: - reason: string - # MC: ClientboundHelloPacket - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - shouldAuthenticate: bool - # MC: ClientboundLoginFinishedPacket - packet_success: - uuid: UUID - username: string - properties: []varint - name: string - value: string - signature?: string - # MC: ClientboundLoginCompressionPacket - packet_compress: - threshold: varint - # MC: ClientboundCustomQueryPacket - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - ## (Cookie Request is Common) ## - packet: - name: varint => - - disconnect - - encryption_begin - - success - - compress - - login_plugin_request - - cookie_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - if cookie_request: packet_common_cookie_request -^login.toServer.types: - # MC: ServerboundHelloPacket - packet_login_start: - username: string - playerUUID: UUID - # MC: ServerboundKeyPacket - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ServerboundCustomQueryAnswerPacket - packet_login_plugin_response: - messageId: varint - data?: restBuffer - # MC: ServerboundLoginAcknowledgedPacket - packet_login_acknowledged: - # Empty - ## (Cookie Response is Common) ## - packet: - name: varint => - - login_start - - encryption_begin - - login_plugin_response - - login_acknowledged - - cookie_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response - if login_acknowledged: packet_login_acknowledged - if cookie_response: packet_common_cookie_response ^configuration.toClient.types: - ## (Cookie Request is common) - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDisconnectPacket - packet_disconnect: - reason: anonymousNbt - # MC: ClientboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundResetChatPacket - packet_reset_chat: - # Empty - # MC: ClientboundRegistryDataPacket - packet_registry_data: - # The server can send multiple registries - id: string - entries: []varint - key: string - value?: anonymousNbt - ## (Store cookie and Transfer are Common) ## - # MC: ClientboundUpdateEnabledFeaturesPacket - packet_feature_flags: - features: string[]varint - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags ## (Select known packs is common) # MC: ClientboundShowDialogConfigurationPacket packet_show_dialog: dialog: anonymousNbt + packet: name: varint => - cookie_request @@ -1553,26 +647,8 @@ if server_links: packet_common_server_links if clear_dialog: packet_common_clear_dialog if show_dialog: packet_show_dialog + ^configuration.toServer.types: - ## (Settings is Common) ## - ## (Cookie Response is Common) ## - # MC: ServerboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ServerboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint packet: name: varint => - settings @@ -1594,6 +670,7 @@ if resource_pack_receive: packet_resource_pack_receive if select_known_packs: packet_common_select_known_packs if custom_click_action: packet_common_custom_click_action + ^play.toClient.types: SlotDisplay: type: varint => @@ -1618,130 +695,7 @@ input: SlotDisplay remainder: SlotDisplay if composite: SlotDisplay[]varint - RecipeDisplay: - type: varint => - - crafting_shapeless - - crafting_shaped - - furnace - - stonecutter - - smithing - data: type ? - if crafting_shapeless: - ingredients: SlotDisplay[]varint - result: SlotDisplay - craftingStation: SlotDisplay - if crafting_shaped: - width: varint - height: varint - ingredients: SlotDisplay[]varint - result: SlotDisplay - craftingStation: SlotDisplay - if furnace: - ingredient: SlotDisplay - fuel: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay - duration: varint - experience: f32 - if stonecutter: - ingredient: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay - if smithing: - template: SlotDisplay - base: SlotDisplay - addition: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay - # World state information for spawn and respawn packets - SpawnInfo: - dimension: varint - name: string - hashedSeed: i64 - gamemode: i8 => - - survival - - creative - - adventure - - spectator - previousGamemode: u8 - isDebug: bool - isFlat: bool - death?: - dimensionName: string - location: position - portalCooldown: varint - seaLevel: varint - # MC: ClientboundAddEntityPacket - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - headPitch: i8 - objectData: varint - velocity: vec3i16 - # MC: ClientboundAnimatePacket - packet_animation: - entityId: varint - animation: u8 - # MC: ClientboundAwardStatsPacket - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - # MC: ClientboundBlockChangedAckPacket - packet_acknowledge_player_digging: - sequenceId: varint - # MC: ClientboundBlockDestructionPacket - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - # MC: ClientboundBlockEntityDataPacket - packet_tile_entity_data: - location: position - action: varint - nbtData: anonOptionalNbt - # MC: ClientboundBlockEventPacket - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - # MC: ClientboundBlockUpdatePacket - packet_block_change: - location: position - type: varint - # MC: ClientboundBossEventPacket - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: anonymousNbt - if 3: anonymousNbt - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void # MC: ClientboundChangeDifficultyPacket packet_difficulty: difficulty: varint => @@ -1750,141 +704,7 @@ 2: normal 3: hard difficultyLocked: bool - # MC: ClientboundChunkBatchFinishedPacket - packet_chunk_batch_finished: - batchSize: varint - # MC: ClientboundChunkBatchStartPacket - packet_chunk_batch_start: - # Empty - # MC: ClientboundChunksBiomesPacket - packet_chunk_biomes: - biomes: []varint - position: packedChunkPos - data: ByteArray - # MC: ClientboundClearTitlesPacket - packet_clear_titles: - reset: bool - # MC: ClientboundCommandSuggestionsPacket - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: anonymousNbt - # MC: ClientboundCommandsPacket - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - # MC: ClientboundContainerClosePacket - packet_close_window: - windowId: ContainerID - # MC: ClientboundContainerSetContentPacket - packet_window_items: - windowId: ContainerID - stateId: varint - items: Slot[]varint - carriedItem: Slot - # MC: ClientboundContainerSetDataPacket - packet_craft_progress_bar: - windowId: ContainerID - property: i16 - value: i16 - # MC: ClientboundContainerSetSlotPacket - packet_set_slot: - windowId: ContainerID - stateId: varint - slot: i16 - item: Slot - ## (Cookie Request is Common) - # MC: ClientboundCooldownPacket - packet_set_cooldown: - # TODO: figure out what this is - cooldownGroup: string - cooldownTicks: varint - # MC: ClientboundCustomChatCompletionsPacket - packet_chat_suggestions: - action: varint - entries: string[]varint - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDamageEventPacket - packet_damage_event: - entityId: varint - sourceTypeId: varint - sourceCauseId: varint - sourceDirectId: varint - sourcePosition?: vec3f64 - # MC: ClientboundDebugSamplePacket - packet_debug_sample: - sample: i64[]varint - type: varint - # MC: ClientboundDeleteChatPacket - packet_hide_message: - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - # MC: ClientboundDisconnectPacket - packet_kick_disconnect: - reason: anonymousNbt - - ## client\net\minecraft\network\chat\ChatTypeDecoration.java - ## via client\net\minecraft\network\chat\ChatType.java - ChatTypeParameterType: varint => - - content - - sender - - target - ChatType: - translationKey: string - parameters: ChatTypeParameterType[]varint - style: anonymousNbt - ChatTypes: - chat: ChatType - narration: ChatType - ChatTypesHolder: ["registryEntryHolder", { "baseName": "chatType", "otherwise": { name: "data", type: "ChatTypes" } }] - # MC: ClientboundDisguisedChatPacket - packet_profileless_chat: - message: anonymousNbt - type: ChatTypesHolder - name: anonymousNbt - target?: anonymousNbt - # MC: ClientboundEntityEventPacket - packet_entity_status: - entityId: i32 - entityStatus: i8 - # MC: ClientboundEntityPositionSyncPacket - packet_sync_entity_position: - entityId: varint - x: f64 - y: f64 - z: f64 - dx: f64 - dy: f64 - dz: f64 - yaw: f32 - pitch: f32 - onGround: bool - # MC: ClientboundExplodePacket - packet_explosion: - x: f64 - y: f64 - z: f64 - playerKnockback?: vec3f64 - explosionParticle: Particle - sound: ItemSoundHolder - # MC: ClientboundForgetLevelChunkPacket - packet_unload_chunk: - chunkZ: i32 - chunkX: i32 # MC: ClientboundGameEventPacket packet_game_state_change: reason: u8 => @@ -1903,28 +723,7 @@ 12: limited_crafting 13: level_chunks_load_start gameMode: f32 - # MC: ClientboundHorseScreenOpenPacket - packet_open_horse_window: - windowId: ContainerID - nbSlots: varint - entityId: i32 - # MC: ClientboundHurtAnimationPacket - packet_hurt_animation: - entityId: varint - yaw: f32 - # MC: ClientboundInitializeBorderPacket - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varint - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 + # MC: ClientboundLevelChunkWithLightPacket packet_map_chunk: x: i32 @@ -1948,489 +747,18 @@ _: u8[]varint blockLight: []varint _: u8[]varint - # MC: ClientboundLevelEventPacket - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - # MC: ClientboundLevelParticlesPacket - packet_world_particles: - longDistance: bool - alwaysShow: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - velocityOffset: f32 - amount: i32 - particle: Particle - # MC: ClientboundLightUpdatePacket - packet_update_light: - chunkX: varint - chunkZ: varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - # MC: ClientboundLoginPacket - packet_login: - entityId: i32 - isHardcore: bool - worldNames: string[]varint - maxPlayers: varint - viewDistance: varint - simulationDistance: varint - reducedDebugInfo: bool - enableRespawnScreen: bool - doLimitedCrafting: bool - worldState: SpawnInfo - enforcesSecureChat: bool - # MC: ClientboundMapItemDataPacket - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: anonymousNbt - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ClientboundMerchantOffersPacket - packet_trade_list: - windowId: ContainerID - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.20.5/client/net/minecraft/world/item/trading/MerchantOffer.java#L210 - trades: []varint - inputItem1: - itemId: varint - itemCount: varint - components: ExactComponentMatcher - outputItem: Slot - inputItem2?: - itemId: varint - itemCount: varint - components: ExactComponentMatcher - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - # MC: ClientboundMoveEntityPacket.Pos - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - # MC: ClientboundMoveEntityPacket.PosRot - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveMinecartPacket - packet_move_minecart: # 1.21.3 - entityId: varint - steps: []varint - position: vec3f - movement: vec3f - yaw: f32 - pitch: f32 - weight: f32 - # MC: ClientboundMoveEntityPacket.Rot - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - # MC: ClientboundOpenBookPacket - packet_open_book: - hand: varint - # MC: ClientboundOpenScreenPacket - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: anonymousNbt - # MC: ClientboundOpenSignEditorPacket - packet_open_sign_entity: - location: position - isFrontText: bool - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundPongResponsePacket - packet_ping_response: - id: i64 - # MC: ClientboundPlaceGhostRecipePacket - packet_craft_recipe_response: - windowId: ContainerID - recipeDisplay: RecipeDisplay - # MC: ClientboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - # MC: ClientboundPlayerChatPacket - packet_player_chat: - globalIndex: varint - senderUuid: UUID - index: varint - signature?: [ - "buffer", - { - "count": 256 - } - ] - plainMessage: string - timestamp: i64 - salt: i64 - previousMessages: previousMessages - unsignedChatContent?: anonymousNbt - filterType: varint - filterTypeMask: filterType ? - if 2: i64[]varint - default: void - type: ChatTypesHolder - networkName: anonymousNbt - networkTargetName?: anonymousNbt - # MC: ClientboundPlayerCombatEndPacket - packet_end_combat_event: - duration: varint - # MC: ClientboundPlayerCombatEnterPacket - packet_enter_combat_event: - # Empty - # MC: ClientboundPlayerCombatKillPacket - packet_death_combat_event: - playerId: varint - message: anonymousNbt - # MC: ClientboundPlayerInfoRemovePacket - packet_player_remove: - players: UUID[]varint - # MC: ClientboundPlayerInfoUpdatePacket - packet_player_info: - ## ClientboundPlayerInfoUpdatePacket.java#L160 - action: ["bitflags", { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name", - "update_hat", - "update_list_order" - ] - }] - data: []varint - uuid: UUID - player: ../action/add_player ? - if true: game_profile - default: void - chatSession: ../action/initialize_chat ? - if true: chat_session - default: void - gamemode: ../action/update_game_mode ? - if true: varint - default: void - listed: ../action/update_listed ? - if true: varint - default: void - latency: ../action/update_latency ? - if true: varint - default: void - displayName: ../action/update_display_name ? - if true: ["option", "anonymousNbt"] - default: void - listPriority: ../action/update_list_order ? - if true: varint - default: void - showHat: ../action/update_hat ? - if true: bool - default: void - # MC: ClientboundPlayerLookAtPacket - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: varint - default: void - - # https://github.com/extremeheat/extracted_minecraft_data/blob/client1.21.2/client/net/minecraft/world/entity/Relative.java#L82 - PositionUpdateRelatives: ["bitflags", { - "type": "u32", - "flags": ["x", "y", "z", "yaw", "pitch", "dx", "dy", "dz", "yawDelta"] - }] - # MC: ClientboundPlayerPositionPacket - packet_position: - teleportId: varint - x: f64 - y: f64 - z: f64 - dx: f64 - dy: f64 - dz: f64 - yaw: f32 - pitch: f32 - flags: PositionUpdateRelatives - # MC: ClientboundPlayerRotationPacket - packet_player_rotation: - yaw: f32 - pitch: f32 - - # MC: ClientboundRecipeBookAddPacket - packet_recipe_book_add: - entries: []varint - # RecipeDisplayEntry - recipe: - displayId: varint - display: RecipeDisplay - group: optvarint - # This ID corresponds to the "recipe_book_category" registry - category: varint => - - crafting_building_blocks - - crafting_redstone - - crafting_equipment - - crafting_misc - - furnace_food - - furnace_blocks - - furnace_misc - - blast_furnace_blocks - - blast_furnace_misc - - smoker_food - - stonecutter - - smithing - - campfire - craftingRequirements?: IDSet[]varint - flags: ["bitflags", { - "type": "u8", - "flags": ["notification", "highlight"] - }] - replace: bool - # MC: ClientboundRecipeBookRemovePacket - packet_recipe_book_remove: - recipeIds: varint[]varint # MC: ClientboundRecipeBookSettingsPacket RecipeBookSetting: open: bool filtering: bool + packet_recipe_book_settings: crafting: RecipeBookSetting furnace: RecipeBookSetting blast: RecipeBookSetting smoker: RecipeBookSetting - # MC: ClientboundRemoveEntitiesPacket - packet_entity_destroy: - entityIds: varint[]varint - # MC: ClientboundRemoveMobEffectPacket - packet_remove_entity_effect: - entityId: varint - effectId: varint - # MC: ClientboundResetScorePacket - packet_reset_score: - entity_name: string - objective_name?: string - ## (remove_resource_pack is common) - # MC: ClientboundRespawnPacket - packet_respawn: - worldState: SpawnInfo - # Bit field: 0b1 - KEEP_ATTRIBUTE_MODIFIERS, 0b10 - KEEP_ENTITY_DATA - copyMetadata: u8 - # MC: ClientboundRotateHeadPacket - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - # MC: ClientboundSectionBlocksUpdatePacket - packet_multi_block_change: - chunkCoordinates: [ "bitfield", [ - { "name": "x", "size": 22, "signed": true }, - { "name": "z", "size": 22, "signed": true }, - { "name": "y", "size": 20, "signed": true } - ]] - records: varint[]varint - # MC: ClientboundSelectAdvancementsTabPacket - packet_select_advancement_tab: - id?: string - # MC: ClientboundServerDataPacket - packet_server_data: - motd: anonymousNbt - iconBytes?: ByteArray - # MC: ClientboundSetActionBarTextPacket - packet_action_bar: - text: anonymousNbt - # MC: ClientboundSetBorderCenterPacket - packet_world_border_center: - x: f64 - z: f64 - # MC: ClientboundSetBorderLerpSizePacket - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varint - # MC: ClientboundSetBorderSizePacket - packet_world_border_size: - diameter: f64 - # MC: ClientboundSetBorderWarningDelayPacket - packet_world_border_warning_delay: - warningTime: varint - # MC: ClientboundSetBorderWarningDistancePacket - packet_world_border_warning_reach: - warningBlocks: varint - # MC: ClientboundSetCameraPacket - packet_camera: - cameraId: varint - # MC: ClientboundSetChunkCacheCenterPacket - packet_update_view_position: - chunkX: varint - chunkZ: varint - # MC: ClientboundSetChunkCacheRadiusPacket - packet_update_view_distance: - viewDistance: varint - # MC: ClientboundSetCursorItemPacket - packet_set_cursor_item: - contents: Slot - # MC: ClientboundSetDefaultSpawnPositionPacket - packet_spawn_position: - location: position - angle: f32 - # MC: ClientboundSetDisplayObjectivePacket - packet_scoreboard_display_objective: - position: varint - name: string - # MC: ClientboundSetEntityDataPacket - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - # MC: ClientboundSetEntityLinkPacket - packet_attach_entity: - entityId: i32 - vehicleId: i32 - # MC: ClientboundSetEntityMotionPacket - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - # MC: ClientboundSetEquipmentPacket - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] - # MC: ClientboundSetExperiencePacket - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - # MC: ClientboundSetHealthPacket - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - # MC: ClientboundSetHeldSlotPacket - packet_held_item_slot: - slot: varint - # MC: ClientboundSetObjectivePacket - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - type: action ? - if 0: varint - if 2: varint - default: void - number_format: action ? - if 0: [ - "option", - "varint" - ] - if 2: [ - "option", - "varint" - ] - default: void - styling: action ? - if 0: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - if 2: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - default: void - # MC: ClientboundSetPassengersPacket - packet_set_passengers: - entityId: varint - passengers: varint[]varint - # MC: ClientboundSetPlayerInventoryPacket - packet_set_player_inventory: - slotId: varint - contents: Slot + # MC: ClientboundSetPlayerTeamPacket packet_teams: team: string @@ -2443,9 +771,9 @@ _: mode ? if add or change: name: anonymousNbt - flags: ["bitflags", { - "type": "u8", - "flags": ["friendly_fire", "see_friendly_invisible"] + flags: ["bitflags", { + "type": "u8", + "flags": ["friendly_fire", "see_friendly_invisible"] }] nameTagVisibility: varint => - always @@ -2464,140 +792,7 @@ players: mode ? if add or join or leave: string[]varint default: void - # MC: ClientboundSetScorePacket - packet_scoreboard_score: - itemName: string - scoreName: string - value: varint - display_name?: anonymousNbt - number_format?: varint - styling: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - # MC: ClientboundSetSimulationDistancePacket - packet_simulation_distance: - distance: varint - # MC: ClientboundSetSubtitleTextPacket - packet_set_title_subtitle: - text: anonymousNbt - # MC: ClientboundSetTimePacket - packet_update_time: - age: i64 - time: i64 - tickDayTime: bool - # MC: ClientboundSetTitleTextPacket - packet_set_title_text: - text: anonymousNbt - # MC: ClientboundSetTitlesAnimationPacket - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - # MC: ClientboundSoundEntityPacket - packet_entity_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - entityId: varint - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundSoundPacket - packet_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundStartConfigurationPacket - packet_start_configuration: - # Empty - # MC: ClientboundStopSoundPacket - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - ## (Store Cookie is Common) - # MC: ClientboundSystemChatPacket - packet_system_chat: - content: anonymousNbt - isActionBar: bool - # MC: ClientboundTabListPacket - packet_playerlist_header: - header: anonymousNbt - footer: anonymousNbt - # MC: ClientboundTagQueryPacket - packet_nbt_query_response: - transactionId: varint - nbt: anonOptionalNbt - # MC: ClientboundTakeItemEntityPacket - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - # MC: ClientboundTeleportEntityPacket - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundTestInstanceBlockStatusPacket - packet_test_instance_block_status: - status: anonymousNbt - size?: vec3i - # MC: ClientboundTickingStatePacket - packet_set_ticking_state: - tick_rate: f32 - is_frozen: bool - # MC: ClientboundTickingStepPacket - packet_step_tick: - tick_steps: varint - ## (Transfer is common) - # MC: ClientboundUpdateAdvancementsPacket - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: anonymousNbt - description: anonymousNbt - icon: Slot - frameType: varint - flags: ["bitfield", [ - { "name": "unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } - ]] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - requirements: []varint - _: string[]varint - sendsTelemtryData: bool - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - showAdvancements: bool + # MC: ClientboundUpdateAttributesPacket packet_entity_update_attributes: entityId: varint @@ -2639,39 +834,7 @@ uuid: string amount: f64 operation: i8 - # MC: ClientboundUpdateMobEffectPacket - packet_entity_effect: - entityId: varint - effectId: varint - amplifier: varint - duration: varint - # a bitfield of 0x01 for ambient, 0x02 for show particles - # flags: ["bitfield", [ - # { "name": "unused", "size": 4 }, - # { "name": "ambient", "size": 1 }, - # { "name": "showParticles", "size": 1 }, - # { "name": "showIcon", "size": 1 }, - # { "name": "blend", "size": 1 } - # ]] - flags: u8 - # MC: ClientboundUpdateRecipesPacket - packet_declare_recipes: - recipes: []varint - name: string - items: varint[]varint - stoneCutterRecipes: []varint - input: IDSet - slotDisplay: SlotDisplay - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags - # MC: ClientboundProjectilePowerPacket - packet_set_projectile_power: - id: varint - accelerationPower: f64 ## (ClientboundCustomReportDetailsPacket, ClientboundServerLinksPacket is common) # MC: ClientboundTrackedWaypointPacket packet_tracked_waypoint: @@ -2703,10 +866,12 @@ chunkX: varint chunkZ: varint if azimuth: f32 + ## (clear_dialog is common) # MC: ClientboundShowDialogGamePacket packet_show_dialog: dialog: ["registryEntryHolder", { "baseName": "dialog", "otherwise": { "name": "data", "type": "anonymousNbt" } }] + packet: name: varint => - bundle_delimiter @@ -2980,17 +1145,6 @@ if show_dialog: packet_show_dialog ^play.toServer.types: - # MC: ServerboundAcceptTeleportationPacket - packet_teleport_confirm: - teleportId: varint - # MC: ServerboundBlockEntityTagQueryPacket - packet_query_block_nbt: - transactionId: varint - location: position - # MC: ServerboundSelectBundleItemPacket - packet_select_bundle_item: - slotId: varint - selectedItemIndex: varint # MC: ServerboundChangeDifficultyPacket packet_set_difficulty: newDifficulty: varint => @@ -2998,6 +1152,7 @@ 1: easy 2: normal 3: hard + # MC: ServerboundChangeGameModePacket packet_change_gamemode: mode: varint => @@ -3005,207 +1160,7 @@ 1: creative 2: adventure 3: spectator - # MC: ServerboundChatAckPacket - packet_message_acknowledgement: - count: varint - # MC: ServerboundChatCommandPacket - packet_chat_command: - command: string - # MC: ServerboundChatCommandSignedPacket - packet_chat_command_signed: - command: string - timestamp: i64 - salt: i64 - argumentSignatures: []varint - argumentName: string - signature: [ - "buffer", - { - "count": 256 - } - ] - messageCount: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - checksum: u8 - # MC: ServerboundChatPacket - packet_chat_message: - message: string - timestamp: i64 - salt: i64 - signature?: [ - "buffer", - { - "count": 256 - } - ] - offset: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - checksum: u8 - # MC: ServerboundChatSessionUpdatePacket - packet_chat_session_update: - sessionUUID: UUID - expireTime: i64 - publicKey: ByteArray - signature: ByteArray - # MC: ServerboundChunkBatchReceivedPacket - packet_chunk_batch_received: - chunksPerTick: f32 - # MC: ServerboundClientCommandPacket - packet_client_command: - actionId: varint - # MC: ServerboundClientTickEndPacket - packet_tick_end: - # Empty - # MC: ServerboundCommandSuggestionPacket - packet_tab_complete: - transactionId: varint - text: string - # MC: ServerboundConfigurationAcknowledgedPacket - packet_configuration_acknowledged: - # Empty - # MC: ServerboundContainerButtonClickPacket - packet_enchant_item: - windowId: ContainerID - enchantment: varint - # MC: ServerboundContainerClickPacket - packet_window_click: - windowId: ContainerID - stateId: varint - slot: i16 - mouseButton: i8 - mode: varint - changedSlots: []varint - location: i16 - item?: HashedSlot - cursorItem?: HashedSlot - # MC: ServerboundContainerClosePacket - packet_close_window: - windowId: ContainerID - # MC: ServerboundContainerSlotStateChangedPacket - packet_set_slot_state: - slot_id: varint - window_id: ContainerID - state: bool - ## (ServerboundCookieResponsePacket is common) - # MC: ServerboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ServerboundDebugSampleSubscriptionPacket - packet_debug_sample_subscription: - type: varint - # MC: ServerboundEditBookPacket - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - # MC: ServerboundEntityTagQuery - packet_query_entity_nbt: - transactionId: varint - entityId: varint - # MC: ServerboundInteractPacket - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - # MC: ServerboundJigsawGeneratePacket - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundLockDifficultyPacket - packet_lock_difficulty: - locked: bool - MovementFlags: ["bitflags", { - "type": "u8", - "flags": ["onGround", "hasHorizontalCollision"] - }] - # MC: ServerboundMovePlayerPacket.Pos - packet_position: - x: f64 - y: f64 - z: f64 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.PosRot - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.Rot - packet_look: - yaw: f32 - pitch: f32 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.StatusOnly - packet_flying: - flags: MovementFlags - # MC: ServerboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - # MC: ServerboundPaddleBoatPacket - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - # MC: ServerboundPickItemFromBlockPacket - packet_pick_item_from_block: - position: position - includeData: bool - # MC: ServerboundPickItemFromEntityPacket - packet_pick_item_from_entity: - entityId: varint - includeData: bool - # MC: ServerboundPingRequestPacket - packet_ping_request: - id: i64 - # MC: ServerboundPlaceRecipePacket - packet_craft_recipe_request: - windowId: ContainerID - recipeId: varint - makeAll: bool - # MC: ServerboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - # MC: ServerboundPlayerActionPacket - packet_block_dig: - status: varint - location: position - face: i8 - sequence: varint # MC: ServerboundPlayerCommandPacket packet_entity_action: entityId: varint @@ -3218,76 +1173,7 @@ - open_vehicle_inventory - start_elytra_flying jumpBoost: varint - # MC: ServerboundPlayerInputPacket - # previously: packet_steer_vehicle - packet_player_input: - ## client/net/minecraft/world/entity/player/Input.java - inputs: ["bitflags", { - "type": "u8", - "flags": ["forward", "backward", "left", "right", "jump", "shift", "sprint"] - }] - # MC: ServerboundPlayerLoadedPacket - packet_player_loaded: - # Empty - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundRecipeBookChangeSettingsPacket - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - # MC: ServerboundRecipeBookSeenRecipePacket - packet_displayed_recipe: - recipeId: varint - # MC: ServerboundRenameItemPacket - packet_name_item: - name: string - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint - # MC: ServerboundSeenAdvancementsPacket - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - # MC: ServerboundSelectTradePacket - packet_select_trade: - slot: varint - # MC: ServerboundSetBeaconPacket - packet_set_beacon_effect: - primary_effect?: varint - secondary_effect?: varint - # MC: ServerboundSetCarriedItemPacket - packet_held_item_slot: - slotId: i16 - # MC: ServerboundSetCommandBlockPacket - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - # MC: ServerboundSetCommandMinecartPacket - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - # MC: ServerboundSetCreativeModeSlotPacket - packet_set_creative_slot: - slot: i16 - item: UntrustedSlot - # MC: ServerboundSetJigsawBlockPacket - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - selection_priority: varint - placement_priority: varint + # MC: ServerboundSetStructureBlockPacket packet_update_structure_block: location: position @@ -3311,52 +1197,6 @@ - show_air - show_bounding_box - strict - # MC: ServerboundSetTestBlockPacket - packet_set_test_block: - position: position - mode: varint - message: string - # MC: ServerboundSignUpdatePacket - packet_update_sign: - location: position - isFrontText: bool - text1: string - text2: string - text3: string - text4: string - # MC: ServerboundSwingPacket - packet_arm_animation: - hand: varint - # MC: ServerboundTeleportToEntityPacket - packet_spectate: - target: UUID - # MC: ServerboundTestInstanceBlockActionPacket - packet_test_instance_block_action: - pos: position - action: varint - data: - test?: string - size: vec3i - rotation: varint - ignoreEntities: bool - status: varint - errorMessage?: anonymousNbt - # MC: ServerboundUseItemOnPacket - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - worldBorderHit: bool - sequence: varint - # MC: ServerboundUseItemPacket - packet_use_item: - hand: varint - sequence: varint - rotation: vec2f packet: name: varint => diff --git a/data/pc/1.21.6/protocol.json b/data/pc/1.21.6/protocol.json index 580de9f31..bbed95303 100644 --- a/data/pc/1.21.6/protocol.json +++ b/data/pc/1.21.6/protocol.json @@ -4067,307 +4067,6 @@ } } }, - "configuration": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links", - "0x11": "clear_dialog", - "0x12": "show_dialog" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "add_resource_pack": "packet_common_add_resource_pack", - "clear_dialog": "packet_common_clear_dialog", - "cookie_request": "packet_common_cookie_request", - "custom_payload": "packet_custom_payload", - "custom_report_details": "packet_common_custom_report_details", - "disconnect": "packet_disconnect", - "feature_flags": "packet_feature_flags", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "reset_chat": "packet_reset_chat", - "select_known_packs": "packet_common_select_known_packs", - "server_links": "packet_common_server_links", - "show_dialog": "packet_show_dialog", - "store_cookie": "packet_common_store_cookie", - "tags": "packet_tags", - "transfer": "packet_common_transfer" - } - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "packet_feature_flags": [ - "container", - [ - { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_registry_data": [ - "container", - [ - { - "name": "id", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] - } - ] - ], - "packet_reset_chat": [ - "container", - [] - ], - "packet_show_dialog": [ - "container", - [ - { - "name": "dialog", - "type": "anonymousNbt" - } - ] - ], - "packet_tags": [ - "container", - [ - { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_click_action" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "cookie_response": "packet_common_cookie_response", - "custom_click_action": "packet_common_custom_click_action", - "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "settings": "packet_common_settings" - } - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_resource_pack_receive": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "result", - "type": "varint" - } - ] - ] - } - } - }, "play": { "toClient": { "types": { @@ -9918,331 +9617,632 @@ "type": "varint" }, { - "name": "command", - "type": "string" + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" + } + ] + ], + "packet_update_jigsaw_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "target", + "type": "string" + }, + { + "name": "pool", + "type": "string" + }, + { + "name": "finalState", + "type": "string" + }, + { + "name": "jointType", + "type": "string" + }, + { + "name": "selection_priority", + "type": "varint" + }, + { + "name": "placement_priority", + "type": "varint" + } + ] + ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "metadata", + "type": "string" + }, + { + "name": "integrity", + "type": "f32" + }, + { + "name": "seed", + "type": "varint" + }, + { + "name": "flags", + "type": [ + "mapper", + { + "mappings": { + "0": "ignore_entities", + "1": "show_air", + "2": "show_bounding_box", + "3": "strict" + }, + "type": "u8" + } + ] + } + ] + ], + "packet_use_entity": [ + "container", + [ + { + "name": "target", + "type": "varint" + }, + { + "name": "mouse", + "type": "varint" + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "track_output", + "name": "sneaking", "type": "bool" } ] ], - "packet_update_jigsaw_block": [ + "packet_use_item": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "target", - "type": "string" - }, - { - "name": "pool", - "type": "string" - }, - { - "name": "finalState", - "type": "string" - }, - { - "name": "jointType", - "type": "string" + "name": "hand", + "type": "varint" }, { - "name": "selection_priority", + "name": "sequence", "type": "varint" }, { - "name": "placement_priority", - "type": "varint" + "name": "rotation", + "type": "vec2f" } ] ], - "packet_update_sign": [ + "packet_vehicle_move": [ "container", [ { - "name": "location", - "type": "position" + "name": "x", + "type": "f64" }, { - "name": "isFrontText", - "type": "bool" + "name": "y", + "type": "f64" }, { - "name": "text1", - "type": "string" + "name": "z", + "type": "f64" }, { - "name": "text2", - "type": "string" + "name": "yaw", + "type": "f32" }, { - "name": "text3", - "type": "string" + "name": "pitch", + "type": "f32" }, { - "name": "text4", - "type": "string" + "name": "onGround", + "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_window_click": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "mode", + "name": "stateId", "type": "varint" }, { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" + "name": "slot", + "type": "i16" }, { - "name": "offset_z", + "name": "mouseButton", "type": "i8" }, { - "name": "size_x", - "type": "i8" + "name": "mode", + "type": "varint" }, { - "name": "size_y", - "type": "i8" + "name": "changedSlots", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": [ + "option", + "HashedSlot" + ] + } + ] + ] + } + ] }, { - "name": "size_z", - "type": "i8" - }, + "name": "cursorItem", + "type": [ + "option", + "HashedSlot" + ] + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ + "container", + [ { - "name": "mirror", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links", + "0x11": "clear_dialog", + "0x12": "show_dialog" + }, + "type": "varint" + } + ] }, { - "name": "rotation", - "type": "varint" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "add_resource_pack": "packet_common_add_resource_pack", + "clear_dialog": "packet_common_clear_dialog", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "show_dialog": "packet_show_dialog", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" + } + } + ] + } + ] + ], + "packet_custom_payload": [ + "container", + [ { - "name": "metadata", + "name": "channel", "type": "string" }, { - "name": "integrity", - "type": "f32" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_disconnect": [ + "container", + [ { - "name": "seed", - "type": "varint" - }, + "name": "reason", + "type": "anonymousNbt" + } + ] + ], + "packet_feature_flags": [ + "container", + [ { - "name": "flags", + "name": "features", "type": [ - "mapper", + "array", { - "mappings": { - "0": "ignore_entities", - "1": "show_air", - "2": "show_bounding_box", - "3": "strict" - }, - "type": "u8" + "countType": "varint", + "type": "string" } ] } ] ], - "packet_use_entity": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "target", - "type": "varint" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_ping": [ + "container", + [ { - "name": "mouse", - "type": "varint" + "name": "id", + "type": "i32" + } + ] + ], + "packet_registry_data": [ + "container", + [ + { + "name": "id", + "type": "string" }, { - "name": "x", + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] } ] - }, + } + ] + ], + "packet_reset_chat": [ + "container", + [] + ], + "packet_show_dialog": [ + "container", + [ { - "name": "y", + "name": "dialog", + "type": "anonymousNbt" + } + ] + ], + "packet_tags": [ + "container", + [ + { + "name": "tags", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] - }, + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "z", + "name": "name", "type": [ - "switch", + "mapper", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "mappings": { + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_click_action" + }, + "type": "varint" } ] }, { - "name": "hand", + "name": "params", "type": [ "switch", { - "compareTo": "mouse", - "default": "void", + "compareTo": "name", "fields": { - "0": "varint", - "2": "varint" + "cookie_response": "packet_common_cookie_response", + "custom_click_action": "packet_common_custom_click_action", + "custom_payload": "packet_custom_payload", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "select_known_packs": "packet_common_select_known_packs", + "settings": "packet_common_settings" } } ] - }, - { - "name": "sneaking", - "type": "bool" } ] ], - "packet_use_item": [ + "packet_custom_payload": [ "container", [ { - "name": "hand", - "type": "varint" - }, - { - "name": "sequence", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "rotation", - "type": "vec2f" + "name": "data", + "type": "restBuffer" } ] ], - "packet_vehicle_move": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_window_click": [ + "packet_pong": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_resource_pack_receive": [ + "container", + [ { - "name": "mouseButton", - "type": "i8" + "name": "uuid", + "type": "UUID" }, { - "name": "mode", + "name": "result", "type": "varint" - }, - { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": [ - "option", - "HashedSlot" - ] - } - ] - ] - } - ] - }, - { - "name": "cursorItem", - "type": [ - "option", - "HashedSlot" - ] } ] ] diff --git a/data/pc/1.21.8/proto.yml b/data/pc/1.21.8/proto.yml index 88582d8fe..41b7d6e1f 100644 --- a/data/pc/1.21.8/proto.yml +++ b/data/pc/1.21.8/proto.yml @@ -1,2677 +1,13 @@ !version: 1.21.8 -!StartDocs: true +!base: 1.21.6 ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - anonymousNbt: native - anonOptionalNbt: native - registryEntryHolder: native - registryEntryHolderSet: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec2f: - x: f32 - y: f32 - vec3f: - x: f32 - y: f32 - z: f32 - vec4f: - x: f32 - y: f32 - z: f32 - w: f32 - vec3f64: - x: f64 - y: f64 - z: f64 - vec3i: - x: varint - y: varint - z: varint - vec3i16: - x: i16 - y: i16 - z: i16 - IDSet: ["registryEntryHolderSet", { - "base": { name: "name", type: "string" }, - "otherwise": { name: "ids", type: "varint" } - }] - ContainerID: varint - SlotComponentType: varint => - - custom_data - - max_stack_size - - max_damage - - damage - - unbreakable - - custom_name - - item_name - - item_model - - lore - - rarity - - enchantments - - can_place_on - - can_break - - attribute_modifiers - - custom_model_data - - tooltip_display - - repair_cost - - creative_slot_lock - - enchantment_glint_override - - intangible_projectile - - food - - consumable - - use_remainder - - use_cooldown - - damage_resistant - - tool - - weapon - - enchantable - - equippable - - repairable - - glider - - tooltip_style - - death_protection - - blocks_attacks - - stored_enchantments - - dyed_color - - map_color - - map_id - - map_decorations - - map_post_processing - - charged_projectiles - - bundle_contents - - potion_contents - - potion_duration_scale - - suspicious_stew_effects - - writable_book_content - - written_book_content - - trim - - debug_stick_state - - entity_data - - bucket_entity_data - - block_entity_data - - instrument - - provides_trim_material - - ominous_bottle_amplifier - - jukebox_playable - - provides_banner_patterns - - recipes - - lodestone_tracker - - firework_explosion - - fireworks - - profile - - note_block_sound - - banner_patterns - - base_color - - pot_decorations - - container - - block_state - - bees - - lock - - container_loot - - break_sound - - villager/variant - - wolf/variant - - wolf/sound_variant - - wolf/collar - - fox/variant - - salmon/size - - parrot/variant - - tropical_fish/pattern - - tropical_fish/base_color - - tropical_fish/pattern_color - - mooshroom/variant - - rabbit/variant - - pig/variant - - cow/variant - - chicken/variant - - frog/variant - - horse/variant - - painting/variant - - llama/variant - - axolotl/variant - - cat/variant - - cat/collar - - sheep/color - - shulker/color - - # Instead of sending NBT for items over the network, Minecraft since 1.20.5 sends a - # list of components that make up the item. This saves bandwidth by not encoding tag names. - SlotComponent: - type: SlotComponentType - ## Ref: client/net/minecraft/core/component/DataComponents.java - data: type ? - ## 'Unit' MC type is functionally void - if custom_data: anonymousNbt - if max_stack_size: varint - if max_damage: varint - if damage: varint - if unbreakable: void - if custom_name: anonymousNbt - if item_name: anonymousNbt - if item_model: string - if lore: anonymousNbt[]varint - if rarity: varint => - - common - - uncommon - - rare - - epic - if enchantments or stored_enchantments: - enchantments: []varint - id: varint - level: varint - if can_place_on or can_break: - predicates: ItemBlockPredicate[]varint - if attribute_modifiers: []varint - typeId: varint - name: string - value: f64 - operation: varint => - - add - - multiply_base - - multiply_total - slot: varint => - - any - - main_hand - - off_hand - - hand - - feet - - legs - - chest - - head - - armor - - body - - saddle - display: - type: varint => - - default - - hidden - - override - component: type ? - if override: anonymousNbt - if custom_model_data: - floats: f32[]varint - flags: bool[]varint - strings: string[]varint - colors: i32[]varint - if tooltip_display: - hideTooltip: bool - hiddenComponents: varint[]varint - if repair_cost: varint - if creative_slot_lock: void - if enchantment_glint_override: bool - if intangible_projectile: void - if blocks_attacks: - blockDelaySeconds: f32 - disableCooldownScale: f32 - damageReductions: []varint - horizontalBlockingAngle: f32 - type?: IDSet - base: f32 - factor: f32 - itemDamage: - threshold: f32 - base: f32 - factor: f32 - bypassedBy?: string - blockSound?: ItemSoundHolder - disableSound?: ItemSoundHolder - if food: - nutrition: varint - # How much saturation will be given after consuming the item. - saturationModifier: f32 - # Whether the item can always be eaten, even at full hunger. - canAlwaysEat: bool - if consumable: - consume_seconds: f32 - animation: varint => - - none - - eat - - drink - - block - - bow - - spear - - crossbow - - spyglass - - toot_horn - - brush - - bundle - sound: ItemSoundHolder - makes_particles: bool - effects: ItemConsumeEffect[]varint - if use_remainder: Slot - if use_cooldown: - seconds: f32 - cooldownGroup?: string - if damage_resistant: string - if tool: - rules: []varint - blocks: IDSet - # The speed at which the tool breaks this rules' blocks. - speed?: f32 - # Whether items should drop only if this is the correct tool. - correctDropForBlocks?: bool - # The mining speed in case none of the previous rule were matched. - defaultMiningSpeed: f32 - damagePerBlock: varint - canDestroyBlocksInCreative: bool - if weapon: - itemDamagePerAttack: varint - disableBlockingForSeconds: f32 - # Enchantment cost up to which the item can be enchanted - if enchantable: varint - if equippable: - slot: varint => - - main_hand - - off_hand - - feet - - legs - - chest - - head - - body - - saddle - sound: ItemSoundHolder - model?: string - cameraOverlay?: string - allowedEntities?: IDSet - dispensable: bool - swappable: bool - damageable: bool - equipOnInteract: bool - shearable: bool - shearingSound: ItemSoundHolder - if repairable: - items: IDSet - if glider: void - if tooltip_style: string - if death_protection: - effects: ItemConsumeEffect[]varint - if dyed_color: i32 - if map_color: i32 - if map_id: varint - if map_decorations: anonymousNbt - if map_post_processing: varint - if potion_duration_scale: f32 - if charged_projectiles: - projectiles: Slot[]varint - if bundle_contents: - contents: Slot[]varint - if potion_contents: - # True if this potion has an ID in the potion registry--it has the default effects associated with the potion type. - potionId?: varint - # The RGB components of the color, encoded as an integer. - customColor?: i32 - customEffects: ItemPotionEffect[]varint - customName?: string - if suspicious_stew_effects: - effects: []varint - # The ID of the effect in the potion effect type registry. - effect: varint - # The duration of the effect. - duration: varint - if writable_book_content: - # Max 100 pages - pages: ItemBookPage[]varint - if written_book_content: - rawTitle: string - filteredTitle?: string - author: string - generation: varint - pages: ItemWrittenBookPage[]varint - resolved: bool - if trim: - material: ["registryEntryHolder", { "baseName": "materialId", "otherwise": { "name": "data", "type": "ArmorTrimMaterial" } }] - pattern: ["registryEntryHolder", { "baseName": "patternId", "otherwise": { "name": "data", "type": "ArmorTrimPattern" } }] - if debug_stick_state: anonymousNbt - if entity_data: anonymousNbt - if bucket_entity_data: anonymousNbt - if block_entity_data: anonymousNbt - if instrument: - hasHolder: bool - data: hasHolder ? - if true: ["registryEntryHolder", { "baseName": "instrumentId", "otherwise": { "name": "data", "type": "InstrumentData" } }] - if false: string - if provides_trim_material: - hasHolder: bool - material: hasHolder ? - if true: ["registryEntryHolder", { "baseName": "materialId", "otherwise": { "name": "data", "type": "ArmorTrimMaterial" } }] - if false: string - if ominous_bottle_amplifier: varint - if jukebox_playable: - hasHolder: bool - song: hasHolder ? - if true: ["registryEntryHolder", { "baseName": "songId", "otherwise": { "name": "data", "type": "JukeboxSongData" } }] - if false: string - if provides_banner_patterns: string - if recipes: anonymousNbt - if lodestone_tracker: - # Specified if this lodestone points to a position; otherwise it spins randomly. - globalPosition?: - dimension: string - # The position the compass points to. Only present if Has Global Position is true. - position: position - # Whether the component is removed when the associated lodestone is broken. - tracked: bool - if firework_explosion: ItemFireworkExplosion - if fireworks: - flightDuration: varint - explosions: ItemFireworkExplosion[]varint - if profile: - # If the profile has a name, max 16 characters. - name?: string - uuid?: UUID - properties: []varint - # Max 64 characters - name: string - value: string - # Max 1024 characters - signature?: string - if note_block_sound: string - if banner_patterns: - layers: BannerPatternLayer[]varint - if base_color: varint - if pot_decorations: - # The ID of the items in the item registry. - decorations: varint[]varint - if container: - contents: Slot[]varint - if block_state: - properties: []varint - name: string - value: string - if bees: - bees: []varint - # Custom data for the entity, always a Compound Tag. Same structure as the minecraft:custom_data component. - nbtData: anonymousNbt - ticksInHive: varint - minTicksInHive: varint - if lock: anonymousNbt - if container_loot: anonymousNbt - if break_sound: ItemSoundHolder - if villager/variant: varint - if wolf/variant: varint - if wolf/sound_variant: varint - if wolf/collar: varint - if fox/variant: varint - if salmon/size: varint - if parrot/variant: varint - if tropical_fish/pattern: varint - if tropical_fish/base_color: varint - if tropical_fish/pattern_color: varint - if mooshroom/variant: varint - if rabbit/variant: varint - if pig/variant: varint - if cow/variant: varint - if chicken/variant: ["registryEntryHolder", { "baseName": "variantId", "otherwise": { "name": "variantData", "type": "string" } }] - if frog/variant: varint - if horse/variant: varint - if painting/variant: ["registryEntryHolder", { "baseName": "variantId", "otherwise": { "name": "data", "type": "EntityMetadataPaintingVariant" } }] - if llama/variant: varint - if axolotl/variant: varint - if cat/variant: varint - if cat/collar: varint - if sheep/color: varint - if shulker/color: varint - - ItemSoundEvent: - soundName: string - fixedRange?: f32 - ItemSoundHolder: ["registryEntryHolder", { - "baseName": "soundId", - "otherwise": { name: "data", type: "ItemSoundEvent" } - }] - - ItemFireworkExplosion: - shape: varint => - - small_ball - - large_ball - - star - - creeper - - burst - # The RGB components of the color, encoded as an integer. - colors: i32[]varint - # The RGB components of the color, encoded as an integer. - fadeColors: i32[]varint - # Whether the firework has a trail. - hasTrail: bool - # Whether the firework has a twinkle effect. - hasTwinkle: bool - - ItemEffectDetail: - amplifier: varint - duration: varint - ambient: bool - showParticles: bool - showIcon: bool - hiddenEffect?: ItemEffectDetail - - ItemPotionEffect: - id: varint - details: ItemEffectDetail - - ItemBlockProperty: - name: string - isExactMatch: bool - value: isExactMatch ? - if true: - exactValue: string - if false: - minValue: string - maxValue: string - - ExactComponentMatcher: SlotComponent[]varint - - DataComponentMatchers: - exactMatchers: ExactComponentMatcher - partialMatchers: varint[]varint - - ItemBlockPredicate: - blockSet?: ["registryEntryHolderSet", { - "base": { name: "name", type: "string" }, - "otherwise": { name: "blockIds", "type": "varint" } - }] - properties?: ItemBlockProperty[]varint - nbt: anonOptionalNbt - components: DataComponentMatchers - - ItemBookPage: - # The raw text of the page. TextComponent, max 1024 characters. - content: string - filteredContent?: string - ItemWrittenBookPage: - content: anonymousNbt - filteredContent: anonOptionalNbt - - ItemConsumeEffect: # 1.21.3 - type: varint => - - apply_effects - - remove_effects - - clear_all_effects - - teleport_randomly - - play_sound - _: type ? - if apply_effects: - effects: ItemPotionEffect[]varint - probability: f32 - if remove_effects: - effects: IDSet - if clear_all_effects: void - if teleport_randomly: - diameter: f32 - if play_sound: - sound: ItemSoundHolder - - ArmorTrimMaterial: - assetBase: string - overrideArmorAssets: []varint - key: string - value: string - description: anonymousNbt - - ArmorTrimPattern: - assetId: string - description: anonymousNbt - decal: bool - - InstrumentData: - soundEvent: ItemSoundHolder - useDuration: f32 - range: f32 - description: anonymousNbt - - JukeboxSongData: - soundEvent: ItemSoundHolder - description: anonymousNbt - lengthInSeconds: f32 - comparatorOutput: varint - - BannerPattern: - assetId: string - translationKey: string - BannerPatternLayer: - pattern: ["registryEntryHolder", { "baseName": "patternId", "otherwise": { "name": "data", "type": "BannerPattern" } }] - colorId: varint - - # This represents a single component within an UntrustedSlot. - # The 'data' field is a varint-prefixed byte array that contains the actual component data. - # The code generator will need to know that it should read a varint for length, then the bytes. - UntrustedSlotComponent: - type: SlotComponentType - data: ByteArray - - # An UntrustedSlot is structurally identical to a regular Slot, - # but it uses the special UntrustedSlotComponent type for its component list. - # It's optional because the player might be clearing the slot. - UntrustedSlot: - itemCount: varint - _: itemCount ? - if 0: void - default: - itemId: varint - addedComponentCount: varint - removedComponentCount: varint - components: UntrustedSlotComponent[]$addedComponentCount - removeComponents: []$removedComponentCount - type: SlotComponentType - if false: void - - Slot: - itemCount: varint - _: itemCount ? - if 0: void - default: - itemId: varint - # https://wiki.vg/Slot_Data#Structured_components - addedComponentCount: varint - removedComponentCount: varint - components: SlotComponent[]$addedComponentCount - removeComponents: []$removedComponentCount - type: SlotComponentType - - HashedSlot: - itemId: varint - itemCount: varint - components: []varint - type: SlotComponentType - hash: i32 - removeComponents: []varint - type: SlotComponentType - - Particle: - # See client/net/minecraft/core/particles/ParticleTypes.java - type: varint => - - angry_villager - - block - - block_marker - - bubble - - cloud - - crit - - damage_indicator - - dragon_breath - - dripping_lava - - falling_lava - - landing_lava - - dripping_water - - falling_water - - dust - - dust_color_transition - - effect - - elder_guardian - - enchanted_hit - - enchant - - end_rod - - entity_effect - - explosion_emitter - - explosion - - gust - - small_gust - - gust_emitter_large - - gust_emitter_small - - sonic_boom - - falling_dust - - firework - - fishing - - flame - - infested - - cherry_leaves - - pale_oak_leaves - - tinted_leaves - - sculk_soul - - sculk_charge - - sculk_charge_pop - - soul_fire_flame - - soul - - flash - - happy_villager - - composter - - heart - - instant_effect - - item - - vibration - - trail - - item_slime - - item_cobweb - - item_snowball - - large_smoke - - lava - - mycelium - - note - - poof - - portal - - rain - - smoke - - white_smoke - - sneeze - - spit - - squid_ink - - sweep_attack - - totem_of_undying - - underwater - - splash - - witch - - bubble_pop - - current_down - - bubble_column_up - - nautilus - - dolphin - - campfire_cosy_smoke - - campfire_signal_smoke - - dripping_honey - - falling_honey - - landing_honey - - falling_nectar - - falling_spore_blossom - - ash - - crimson_spore - - warped_spore - - spore_blossom_air - - dripping_obsidian_tear - - falling_obsidian_tear - - landing_obsidian_tear - - reverse_portal - - white_ash - - small_flame - - snowflake - - dripping_dripstone_lava - - falling_dripstone_lava - - dripping_dripstone_water - - falling_dripstone_water - - glow_squid_ink - - glow - - wax_on - - wax_off - - electric_spark - - scrape - - shriek - - egg_crack - - dust_plume - - trial_spawner_detected_player - - trial_spawner_detected_player_ominous - - vault_connection - - dust_pillar - - ominous_spawning - - raid_omen - - trial_omen - - block_crumble - - firefly - ## ## Tips for reviewing particle data (as of 1.20.5) - ## Inside the registry code, each particle can have an associated "options" type and - ## each options type can add additional data to be encoded. - ## For example, this line - ## public static final ParticleType BLOCK = register("block", false, BlockParticleOption::codec, BlockParticleOption::streamCodec); - ## will read the stream codec from BlockParticleOption.java's streamCodec member; then we see - ## return ByteBufCodecs.idMapper(Block.BLOCK_STATE_REGISTRY).map(var1 -> new BlockParticleOption(var0, var1), var0x -> var0x.state); - ## this encodes with the ByteBufCodecs.idMapper function. Inside this function we find - ## public void encode(ByteBuf var1x, T var2) { - ## int var3 = var1.applyAsInt(var2); - ## VarInt.write(var1x, var3); - ## } - ## which as we can see writes the varint to the buffer. - ## If you want to see all the serializers try regexp searching "StreamCodec.*Particle" - data: type ? - if block or block_marker or falling_dust or dust_pillar or block_crumble: varint - if dust: - red: f32 - green: f32 - blue: f32 - scale: f32 - if dust_color_transition: - fromRed: f32 - fromGreen: f32 - fromBlue: f32 - scale: f32 - toRed: f32 - toGreen: f32 - toBlue: f32 - if entity_effect: i32 - if item: Slot - if sculk_charge: f32 - if shriek: varint - if vibration: - positionType: varint => - - block - - entity - position: positionType ? - if block: position - if entity: - entityId: varint - entityEyeHeight: f32 - ticks: varint - if trail: - target: vec3f64 - color: u8 - if tinted_leaves: i32 - if firefly: void - ingredient: Slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - soundSource: varint => - 0: master - 1: music - 2: record - 3: weather - 4: block - 5: hostile - 6: neutral - 7: player - 8: ambient - 9: voice - 10: ui - packedChunkPos: - z: i32 - x: i32 - previousMessages: []varint - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - entityMetadataEntry: - key: u8 - type: varint => - - byte - - int - - long - - float - - string - - component - - optional_component - - item_stack - - boolean - - rotations - - block_pos - - optional_block_pos - - direction - - optional_uuid - - block_state - - optional_block_state - - compound_tag - - particle - - particles - - villager_data - - optional_unsigned_int - - pose - - cat_variant - - cow_variant - - wolf_variant - - wolf_sound_variant - - frog_variant - - pig_variant - - chicken_variant - - optional_global_pos - - painting_variant - - sniffer_state - - armadillo_state - - vector3 - - quaternion - value: type ? - if byte: i8 - if int: varint - if long: varlong - if float: f32 - if string: string - if component: anonymousNbt - if optional_component: ["option", "anonymousNbt"] - if item_stack: Slot - if boolean: bool - if rotations: - pitch: f32 - yaw: f32 - roll: f32 - if block_pos: position - if optional_block_pos: ["option", "position"] - if direction: varint - if optional_uuid: ["option", "UUID"] - if block_state: varint - if optional_block_state: optvarint - if compound_tag: anonymousNbt - if particle: Particle - if particles: Particle[]varint - if villager_data: - villagerType: varint - villagerProfession: varint - level: varint - if optional_unsigned_int: optvarint - if pose: varint - if cat_variant: varint - if cow_variant: varint - if wolf_variant: varint - if wolf_sound_variant: varint - if frog_variant: varint - if pig_variant: varint - if chicken_variant: varint - if optional_global_pos: ["option", "string"] - if painting_variant: ["registryEntryHolder", { - "baseName": "variantId", - "otherwise": { name: "variantData", type: "EntityMetadataPaintingVariant" } - }] - if sniffer_state: varint - if armadillo_state: varint - if vector3: vec3f - if quaternion: vec4f - EntityMetadataPaintingVariant: - width: i32 - height: i32 - assetId: string - title?: anonymousNbt - author?: anonymousNbt - entityMetadata: ["entityMetadataLoop", { "endVal": 255, "type": "entityMetadataEntry" }] - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: - _: [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - y: i16 - type: varint - nbtData: anonOptionalNbt - chat_session?: - uuid: UUID - publicKey: - expireTime: i64 - keyBytes: [ - "buffer", - { - "countType": "varint" - } - ] - keySignature: [ - "buffer", - { - "countType": "varint" - } - ] - game_profile: - name: string - properties: []varint - name: string - value: string - signature?: string - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 2, - "signed": false - }, - { - "name": "allows_restricted", - "size": 1, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: varint => - - brigadier:bool - - brigadier:float - - brigadier:double - - brigadier:integer - - brigadier:long - - brigadier:string - - minecraft:entity - - minecraft:game_profile - - minecraft:block_pos - - minecraft:column_pos - - minecraft:vec3 - - minecraft:vec2 - - minecraft:block_state - - minecraft:block_predicate - - minecraft:item_stack - - minecraft:item_predicate - - minecraft:color - - minecraft:hex_color # 1.21.6 - - minecraft:component - - minecraft:style - - minecraft:message - - minecraft:nbt - - minecraft:nbt_tag - - minecraft:nbt_path - - minecraft:objective - - minecraft:objective_criteria - - minecraft:operation - - minecraft:particle - - minecraft:angle - - minecraft:rotation - - minecraft:scoreboard_slot - - minecraft:score_holder - - minecraft:swizzle - - minecraft:team - - minecraft:item_slot - - minecraft:item_slots # 1.20.5 - - minecraft:resource_location - - minecraft:function - - minecraft:entity_anchor - - minecraft:int_range - - minecraft:float_range - - minecraft:dimension - - minecraft:gamemode - - minecraft:time - - minecraft:resource_or_tag - - minecraft:resource_or_tag_key - - minecraft:resource - - minecraft:resource_key - - minecraft:resource_selector - - minecraft:template_mirror - - minecraft:template_rotation - - minecraft:heightmap - - minecraft:loot_table # 1.20.5 - - minecraft:loot_predicate # 1.20.5 - - minecraft:loot_modifier # 1.20.5 - - minecraft:dialog # 1.21.6 - - minecraft:uuid - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:hex_color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:dimension: void - if minecraft:gamemode: void - if minecraft:time: - min: i32 - if minecraft:resource_or_tag or minecraft:resource_or_tag_key or minecraft:resource or minecraft:resource_key or minecraft:resource_selector: - registry: string - if minecraft:template_mirror: void - if minecraft:template_rotation: void - if minecraft:heightmap: void - if minecraft:dialog: void - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - # # Shared Packets - # These are packets that are shared between multiple states. - # They are defined here to avoid duplication. - # ===== - # MC: ServerboundClientInformationPacket - packet_common_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - enableTextFiltering: bool - enableServerListing: bool - particleStatus: varint => - - all - - decreased - - minimal - # MC: ClientboundCookieRequestPacket - packet_common_cookie_request: - cookie: string - # MC: ClientboundStoreCookiePacket - packet_common_store_cookie: - key: string - value: ByteArray - # MC: ClientboundTransferPacket - packet_common_transfer: - host: string - port: varint # MC: ServerboundCookieResponsePacket packet_common_cookie_response: key: string value: ByteArray - # MC: ServerboundSelectKnownPacks - # MC: ClientboundSelectKnownPacks - packet_common_select_known_packs: - packs: []varint - namespace: string - id: string - version: string - # MC: ClientboundCustomReportDetailsPacket - packet_common_custom_report_details: - details: []varint - key: string - value: string - # MC: ClientboundResourcePackPopPacket - packet_common_remove_resource_pack: - uuid?: UUID - # MC: ClientboundResourcePackPushPacket - packet_common_add_resource_pack: - uuid: UUID - url: string - hash: string - forced: bool - promptMessage?: anonymousNbt - ServerLinkType: varint => - - bug_report - - community_guidelines - - support - - status - - feedback - - community - - website - - forums - - news - - announcements - # MC: ClientboundServerLinksPacket - # This packet contains a list of links that the Notchian client will display in the menu - # available from the pause menu. Link labels can be built-in or custom (i.e., any text). - packet_common_server_links: - links: []varint - hasKnownType: bool - knownType: hasKnownType ? - if true: ServerLinkType - unknownType: hasKnownType ? - if false: anonymousNbt - link: string - # MC: ClientboundClearDialogPacket - packet_common_clear_dialog: - # empty - # MC: ServerboundCustomClickActionPacket - packet_common_custom_click_action: - id: string - nbt?: anonymousNbt - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping -^status.toClient.types: - # MC: ClientboundStatusResponsePacket - packet_server_info: - response: string - # MC: ClientboundPongResponsePacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping -^status.toServer.types: - # MC: ServerboundStatusRequestPacket - packet_ping_start: - # Empty - # MC: ServerboundPingRequestPacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping -^login.toClient.types: - # MC: ClientboundLoginDisconnectPacket - packet_disconnect: - reason: string - # MC: ClientboundHelloPacket - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - shouldAuthenticate: bool - # MC: ClientboundLoginFinishedPacket - packet_success: - uuid: UUID - username: string - properties: []varint - name: string - value: string - signature?: string - # MC: ClientboundLoginCompressionPacket - packet_compress: - threshold: varint - # MC: ClientboundCustomQueryPacket - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - ## (Cookie Request is Common) ## - packet: - name: varint => - - disconnect - - encryption_begin - - success - - compress - - login_plugin_request - - cookie_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - if cookie_request: packet_common_cookie_request -^login.toServer.types: - # MC: ServerboundHelloPacket - packet_login_start: - username: string - playerUUID: UUID - # MC: ServerboundKeyPacket - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ServerboundCustomQueryAnswerPacket - packet_login_plugin_response: - messageId: varint - data?: restBuffer - # MC: ServerboundLoginAcknowledgedPacket - packet_login_acknowledged: - # Empty - ## (Cookie Response is Common) ## - packet: - name: varint => - - login_start - - encryption_begin - - login_plugin_response - - login_acknowledged - - cookie_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response - if login_acknowledged: packet_login_acknowledged - if cookie_response: packet_common_cookie_response -^configuration.toClient.types: - ## (Cookie Request is common) - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDisconnectPacket - packet_disconnect: - reason: anonymousNbt - # MC: ClientboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundResetChatPacket - packet_reset_chat: - # Empty - # MC: ClientboundRegistryDataPacket - packet_registry_data: - # The server can send multiple registries - id: string - entries: []varint - key: string - value?: anonymousNbt - ## (Store cookie and Transfer are Common) ## - # MC: ClientboundUpdateEnabledFeaturesPacket - packet_feature_flags: - features: string[]varint - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags - ## (Select known packs is common) - # MC: ClientboundShowDialogConfigurationPacket - packet_show_dialog: - dialog: anonymousNbt - packet: - name: varint => - - cookie_request - - custom_payload - - disconnect - - finish_configuration - - keep_alive - - ping - - reset_chat - - registry_data - - remove_resource_pack - - add_resource_pack - - store_cookie - - transfer - - feature_flags - - tags - - select_known_packs - - custom_report_details - - server_links - - clear_dialog - - show_dialog - params: name ? - if cookie_request: packet_common_cookie_request - if custom_payload: packet_custom_payload - if disconnect: packet_disconnect - if finish_configuration: packet_finish_configuration - if keep_alive: packet_keep_alive - if ping: packet_ping - if reset_chat: packet_reset_chat - if registry_data: packet_registry_data - if remove_resource_pack: packet_common_remove_resource_pack - if add_resource_pack: packet_common_add_resource_pack - if store_cookie: packet_common_store_cookie - if transfer: packet_common_transfer - if feature_flags: packet_feature_flags - if tags: packet_tags - if select_known_packs: packet_common_select_known_packs - if custom_report_details: packet_common_custom_report_details - if server_links: packet_common_server_links - if clear_dialog: packet_common_clear_dialog - if show_dialog: packet_show_dialog -^configuration.toServer.types: - ## (Settings is Common) ## - ## (Cookie Response is Common) ## - # MC: ServerboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ServerboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint - packet: - name: varint => - - settings - - cookie_response - - custom_payload - - finish_configuration - - keep_alive - - pong - - resource_pack_receive - - select_known_packs - - custom_click_action - params: name ? - if settings: packet_common_settings - if cookie_response: packet_common_cookie_response - if custom_payload: packet_custom_payload - if finish_configuration: packet_finish_configuration - if keep_alive: packet_keep_alive - if pong: packet_pong - if resource_pack_receive: packet_resource_pack_receive - if select_known_packs: packet_common_select_known_packs - if custom_click_action: packet_common_custom_click_action ^play.toClient.types: - SlotDisplay: - type: varint => - - empty - - any_fuel - - item - - item_stack - - tag - - smithing_trim - - with_remainder - - composite - data: type ? - if empty or any_fuel: void - if item: varint - if item_stack: Slot - if tag: string - if smithing_trim: - base: SlotDisplay - material: SlotDisplay - pattern: ["registryEntryHolder", { "baseName": "patternId", "otherwise": { "name": "data", "type": "ArmorTrimPattern" } }] - if with_remainder: - input: SlotDisplay - remainder: SlotDisplay - if composite: SlotDisplay[]varint - RecipeDisplay: - type: varint => - - crafting_shapeless - - crafting_shaped - - furnace - - stonecutter - - smithing - data: type ? - if crafting_shapeless: - ingredients: SlotDisplay[]varint - result: SlotDisplay - craftingStation: SlotDisplay - if crafting_shaped: - width: varint - height: varint - ingredients: SlotDisplay[]varint - result: SlotDisplay - craftingStation: SlotDisplay - if furnace: - ingredient: SlotDisplay - fuel: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay - duration: varint - experience: f32 - if stonecutter: - ingredient: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay - if smithing: - template: SlotDisplay - base: SlotDisplay - addition: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay - # World state information for spawn and respawn packets - SpawnInfo: - dimension: varint - name: string - hashedSeed: i64 - gamemode: i8 => - - survival - - creative - - adventure - - spectator - previousGamemode: u8 - isDebug: bool - isFlat: bool - death?: - dimensionName: string - location: position - portalCooldown: varint - seaLevel: varint - - # MC: ClientboundAddEntityPacket - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - headPitch: i8 - objectData: varint - velocity: vec3i16 - # MC: ClientboundAnimatePacket - packet_animation: - entityId: varint - animation: u8 - # MC: ClientboundAwardStatsPacket - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - # MC: ClientboundBlockChangedAckPacket - packet_acknowledge_player_digging: - sequenceId: varint - # MC: ClientboundBlockDestructionPacket - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - # MC: ClientboundBlockEntityDataPacket - packet_tile_entity_data: - location: position - action: varint - nbtData: anonOptionalNbt - # MC: ClientboundBlockEventPacket - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - # MC: ClientboundBlockUpdatePacket - packet_block_change: - location: position - type: varint - # MC: ClientboundBossEventPacket - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: anonymousNbt - if 3: anonymousNbt - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - # MC: ClientboundChangeDifficultyPacket - packet_difficulty: - difficulty: varint => - 0: peaceful - 1: easy - 2: normal - 3: hard - difficultyLocked: bool - # MC: ClientboundChunkBatchFinishedPacket - packet_chunk_batch_finished: - batchSize: varint - # MC: ClientboundChunkBatchStartPacket - packet_chunk_batch_start: - # Empty - # MC: ClientboundChunksBiomesPacket - packet_chunk_biomes: - biomes: []varint - position: packedChunkPos - data: ByteArray - # MC: ClientboundClearTitlesPacket - packet_clear_titles: - reset: bool - # MC: ClientboundCommandSuggestionsPacket - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: anonymousNbt - # MC: ClientboundCommandsPacket - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - # MC: ClientboundContainerClosePacket - packet_close_window: - windowId: ContainerID - # MC: ClientboundContainerSetContentPacket - packet_window_items: - windowId: ContainerID - stateId: varint - items: Slot[]varint - carriedItem: Slot - # MC: ClientboundContainerSetDataPacket - packet_craft_progress_bar: - windowId: ContainerID - property: i16 - value: i16 - # MC: ClientboundContainerSetSlotPacket - packet_set_slot: - windowId: ContainerID - stateId: varint - slot: i16 - item: Slot - ## (Cookie Request is Common) - # MC: ClientboundCooldownPacket - packet_set_cooldown: - # TODO: figure out what this is - cooldownGroup: string - cooldownTicks: varint - # MC: ClientboundCustomChatCompletionsPacket - packet_chat_suggestions: - action: varint - entries: string[]varint - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDamageEventPacket - packet_damage_event: - entityId: varint - sourceTypeId: varint - sourceCauseId: varint - sourceDirectId: varint - sourcePosition?: vec3f64 - # MC: ClientboundDebugSamplePacket - packet_debug_sample: - sample: i64[]varint - type: varint - # MC: ClientboundDeleteChatPacket - packet_hide_message: - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - # MC: ClientboundDisconnectPacket - packet_kick_disconnect: - reason: anonymousNbt - - ## client\net\minecraft\network\chat\ChatTypeDecoration.java - ## via client\net\minecraft\network\chat\ChatType.java - ChatTypeParameterType: varint => - - content - - sender - - target - ChatType: - translationKey: string - parameters: ChatTypeParameterType[]varint - style: anonymousNbt - ChatTypes: - chat: ChatType - narration: ChatType - ChatTypesHolder: ["registryEntryHolder", { "baseName": "chatType", "otherwise": { name: "data", type: "ChatTypes" } }] - - # MC: ClientboundDisguisedChatPacket - packet_profileless_chat: - message: anonymousNbt - type: ChatTypesHolder - name: anonymousNbt - target?: anonymousNbt - # MC: ClientboundEntityEventPacket - packet_entity_status: - entityId: i32 - entityStatus: i8 - # MC: ClientboundEntityPositionSyncPacket - packet_sync_entity_position: - entityId: varint - x: f64 - y: f64 - z: f64 - dx: f64 - dy: f64 - dz: f64 - yaw: f32 - pitch: f32 - onGround: bool - # MC: ClientboundExplodePacket - packet_explosion: - x: f64 - y: f64 - z: f64 - playerKnockback?: vec3f64 - explosionParticle: Particle - sound: ItemSoundHolder - # MC: ClientboundForgetLevelChunkPacket - packet_unload_chunk: - chunkZ: i32 - chunkX: i32 - # MC: ClientboundGameEventPacket - packet_game_state_change: - reason: u8 => - 0: no_respawn_block_available - 1: start_raining - 2: stop_raining - 3: change_game_mode - 4: win_game - 5: demo_event - 6: play_arrow_hit_sound - 7: rain_level_change - 8: thunder_level_change - 9: puffer_fish_sting - 10: guardian_elder_effect - 11: immediate_respawn - 12: limited_crafting - 13: level_chunks_load_start - gameMode: f32 - # MC: ClientboundHorseScreenOpenPacket - packet_open_horse_window: - windowId: ContainerID - nbSlots: varint - entityId: i32 - # MC: ClientboundHurtAnimationPacket - packet_hurt_animation: - entityId: varint - yaw: f32 - # MC: ClientboundInitializeBorderPacket - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varint - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundLevelChunkWithLightPacket - packet_map_chunk: - x: i32 - z: i32 - heightmaps: []varint - type: varint => - 0: world_surface_wg - 1: world_surface - 2: ocean_floor_wg - 3: ocean_floor - 4: motion_blocking - 5: motion_blocking_no_leaves - data: i64[]varint - chunkData: ByteArray - blockEntities: chunkBlockEntity[]varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - # MC: ClientboundLevelEventPacket - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - # MC: ClientboundLevelParticlesPacket - packet_world_particles: - longDistance: bool - alwaysShow: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - velocityOffset: f32 - amount: i32 - particle: Particle - # MC: ClientboundLightUpdatePacket - packet_update_light: - chunkX: varint - chunkZ: varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - # MC: ClientboundLoginPacket - packet_login: - entityId: i32 - isHardcore: bool - worldNames: string[]varint - maxPlayers: varint - viewDistance: varint - simulationDistance: varint - reducedDebugInfo: bool - enableRespawnScreen: bool - doLimitedCrafting: bool - worldState: SpawnInfo - enforcesSecureChat: bool - # MC: ClientboundMapItemDataPacket - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: anonymousNbt - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ClientboundMerchantOffersPacket - packet_trade_list: - windowId: ContainerID - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.20.5/client/net/minecraft/world/item/trading/MerchantOffer.java#L210 - trades: []varint - inputItem1: - itemId: varint - itemCount: varint - components: ExactComponentMatcher - outputItem: Slot - inputItem2?: - itemId: varint - itemCount: varint - components: ExactComponentMatcher - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - # MC: ClientboundMoveEntityPacket.Pos - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - # MC: ClientboundMoveEntityPacket.PosRot - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveMinecartPacket - packet_move_minecart: # 1.21.3 - entityId: varint - steps: []varint - position: vec3f - movement: vec3f - yaw: f32 - pitch: f32 - weight: f32 - # MC: ClientboundMoveEntityPacket.Rot - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - # MC: ClientboundOpenBookPacket - packet_open_book: - hand: varint - # MC: ClientboundOpenScreenPacket - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: anonymousNbt - # MC: ClientboundOpenSignEditorPacket - packet_open_sign_entity: - location: position - isFrontText: bool - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundPongResponsePacket - packet_ping_response: - id: i64 - # MC: ClientboundPlaceGhostRecipePacket - packet_craft_recipe_response: - windowId: ContainerID - recipeDisplay: RecipeDisplay - # MC: ClientboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - # MC: ClientboundPlayerChatPacket - packet_player_chat: - globalIndex: varint - senderUuid: UUID - index: varint - signature?: [ - "buffer", - { - "count": 256 - } - ] - plainMessage: string - timestamp: i64 - salt: i64 - previousMessages: previousMessages - unsignedChatContent?: anonymousNbt - filterType: varint - filterTypeMask: filterType ? - if 2: i64[]varint - default: void - type: ChatTypesHolder - networkName: anonymousNbt - networkTargetName?: anonymousNbt - # MC: ClientboundPlayerCombatEndPacket - packet_end_combat_event: - duration: varint - # MC: ClientboundPlayerCombatEnterPacket - packet_enter_combat_event: - # Empty - # MC: ClientboundPlayerCombatKillPacket - packet_death_combat_event: - playerId: varint - message: anonymousNbt - # MC: ClientboundPlayerInfoRemovePacket - packet_player_remove: - players: UUID[]varint - # MC: ClientboundPlayerInfoUpdatePacket - packet_player_info: - ## ClientboundPlayerInfoUpdatePacket.java#L160 - action: ["bitflags", { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name", - "update_hat", - "update_list_order" - ] - }] - data: []varint - uuid: UUID - player: ../action/add_player ? - if true: game_profile - default: void - chatSession: ../action/initialize_chat ? - if true: chat_session - default: void - gamemode: ../action/update_game_mode ? - if true: varint - default: void - listed: ../action/update_listed ? - if true: varint - default: void - latency: ../action/update_latency ? - if true: varint - default: void - displayName: ../action/update_display_name ? - if true: ["option", "anonymousNbt"] - default: void - listPriority: ../action/update_list_order ? - if true: varint - default: void - showHat: ../action/update_hat ? - if true: bool - default: void - - # MC: ClientboundPlayerLookAtPacket - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: varint - default: void - - # https://github.com/extremeheat/extracted_minecraft_data/blob/client1.21.2/client/net/minecraft/world/entity/Relative.java#L82 - PositionUpdateRelatives: ["bitflags", { - "type": "u32", - "flags": ["x", "y", "z", "yaw", "pitch", "dx", "dy", "dz", "yawDelta"] - }] - # MC: ClientboundPlayerPositionPacket - packet_position: - teleportId: varint - x: f64 - y: f64 - z: f64 - dx: f64 - dy: f64 - dz: f64 - yaw: f32 - pitch: f32 - flags: PositionUpdateRelatives - # MC: ClientboundPlayerRotationPacket - packet_player_rotation: - yaw: f32 - pitch: f32 - - # MC: ClientboundRecipeBookAddPacket - packet_recipe_book_add: - entries: []varint - # RecipeDisplayEntry - recipe: - displayId: varint - display: RecipeDisplay - group: optvarint - # This ID corresponds to the "recipe_book_category" registry - category: varint => - - crafting_building_blocks - - crafting_redstone - - crafting_equipment - - crafting_misc - - furnace_food - - furnace_blocks - - furnace_misc - - blast_furnace_blocks - - blast_furnace_misc - - smoker_food - - stonecutter - - smithing - - campfire - craftingRequirements?: IDSet[]varint - flags: ["bitflags", { - "type": "u8", - "flags": ["notification", "highlight"] - }] - replace: bool - # MC: ClientboundRecipeBookRemovePacket - packet_recipe_book_remove: - recipeIds: varint[]varint - # MC: ClientboundRecipeBookSettingsPacket - RecipeBookSetting: - open: bool - filtering: bool - packet_recipe_book_settings: - crafting: RecipeBookSetting - furnace: RecipeBookSetting - blast: RecipeBookSetting - smoker: RecipeBookSetting - # MC: ClientboundRemoveEntitiesPacket - packet_entity_destroy: - entityIds: varint[]varint - # MC: ClientboundRemoveMobEffectPacket - packet_remove_entity_effect: - entityId: varint - effectId: varint - # MC: ClientboundResetScorePacket - packet_reset_score: - entity_name: string - objective_name?: string - ## (remove_resource_pack is common) - # MC: ClientboundRespawnPacket - packet_respawn: - worldState: SpawnInfo - # Bit field: 0b1 - KEEP_ATTRIBUTE_MODIFIERS, 0b10 - KEEP_ENTITY_DATA - copyMetadata: u8 - # MC: ClientboundRotateHeadPacket - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - # MC: ClientboundSectionBlocksUpdatePacket - packet_multi_block_change: - chunkCoordinates: [ "bitfield", [ - { "name": "x", "size": 22, "signed": true }, - { "name": "z", "size": 22, "signed": true }, - { "name": "y", "size": 20, "signed": true } - ]] - records: varint[]varint - # MC: ClientboundSelectAdvancementsTabPacket - packet_select_advancement_tab: - id?: string - # MC: ClientboundServerDataPacket - packet_server_data: - motd: anonymousNbt - iconBytes?: ByteArray - # MC: ClientboundSetActionBarTextPacket - packet_action_bar: - text: anonymousNbt - # MC: ClientboundSetBorderCenterPacket - packet_world_border_center: - x: f64 - z: f64 - # MC: ClientboundSetBorderLerpSizePacket - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varint - # MC: ClientboundSetBorderSizePacket - packet_world_border_size: - diameter: f64 - # MC: ClientboundSetBorderWarningDelayPacket - packet_world_border_warning_delay: - warningTime: varint - # MC: ClientboundSetBorderWarningDistancePacket - packet_world_border_warning_reach: - warningBlocks: varint - # MC: ClientboundSetCameraPacket - packet_camera: - cameraId: varint - # MC: ClientboundSetChunkCacheCenterPacket - packet_update_view_position: - chunkX: varint - chunkZ: varint - # MC: ClientboundSetChunkCacheRadiusPacket - packet_update_view_distance: - viewDistance: varint - # MC: ClientboundSetCursorItemPacket - packet_set_cursor_item: - contents: Slot - # MC: ClientboundSetDefaultSpawnPositionPacket - packet_spawn_position: - location: position - angle: f32 - # MC: ClientboundSetDisplayObjectivePacket - packet_scoreboard_display_objective: - position: varint - name: string - # MC: ClientboundSetEntityDataPacket - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - # MC: ClientboundSetEntityLinkPacket - packet_attach_entity: - entityId: i32 - vehicleId: i32 - # MC: ClientboundSetEntityMotionPacket - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - # MC: ClientboundSetEquipmentPacket - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] - # MC: ClientboundSetExperiencePacket - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - # MC: ClientboundSetHealthPacket - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - # MC: ClientboundSetHeldSlotPacket - packet_held_item_slot: - slot: varint - # MC: ClientboundSetObjectivePacket - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - type: action ? - if 0: varint - if 2: varint - default: void - number_format: action ? - if 0: [ - "option", - "varint" - ] - if 2: [ - "option", - "varint" - ] - default: void - styling: action ? - if 0: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - if 2: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - default: void - # MC: ClientboundSetPassengersPacket - packet_set_passengers: - entityId: varint - passengers: varint[]varint - # MC: ClientboundSetPlayerInventoryPacket - packet_set_player_inventory: - slotId: varint - contents: Slot - # MC: ClientboundSetPlayerTeamPacket - packet_teams: - team: string - mode: i8 => - - add - - remove - - change - - join - - leave - _: mode ? - if add or change: - name: anonymousNbt - flags: ["bitflags", { - "type": "u8", - "flags": ["friendly_fire", "see_friendly_invisible"] - }] - nameTagVisibility: varint => - - always - - never - - hide_for_other_teams - - hide_for_own_team - collisionRule: varint => - - always - - never - - push_other_teams - - push_own_team - formatting: varint - prefix: anonymousNbt - suffix: anonymousNbt - default: void - players: mode ? - if add or join or leave: string[]varint - default: void - # MC: ClientboundSetScorePacket - packet_scoreboard_score: - itemName: string - scoreName: string - value: varint - display_name?: anonymousNbt - number_format?: varint - styling: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - # MC: ClientboundSetSimulationDistancePacket - packet_simulation_distance: - distance: varint - # MC: ClientboundSetSubtitleTextPacket - packet_set_title_subtitle: - text: anonymousNbt - # MC: ClientboundSetTimePacket - packet_update_time: - age: i64 - time: i64 - tickDayTime: bool - # MC: ClientboundSetTitleTextPacket - packet_set_title_text: - text: anonymousNbt - # MC: ClientboundSetTitlesAnimationPacket - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - # MC: ClientboundSoundEntityPacket - packet_entity_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - entityId: varint - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundSoundPacket - packet_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundStartConfigurationPacket - packet_start_configuration: - # Empty - # MC: ClientboundStopSoundPacket - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - ## (Store Cookie is Common) - # MC: ClientboundSystemChatPacket - packet_system_chat: - content: anonymousNbt - isActionBar: bool - # MC: ClientboundTabListPacket - packet_playerlist_header: - header: anonymousNbt - footer: anonymousNbt - # MC: ClientboundTagQueryPacket - packet_nbt_query_response: - transactionId: varint - nbt: anonOptionalNbt - # MC: ClientboundTakeItemEntityPacket - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - # MC: ClientboundTeleportEntityPacket - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundTestInstanceBlockStatusPacket - packet_test_instance_block_status: - status: anonymousNbt - size?: vec3i - # MC: ClientboundTickingStatePacket - packet_set_ticking_state: - tick_rate: f32 - is_frozen: bool - # MC: ClientboundTickingStepPacket - packet_step_tick: - tick_steps: varint - ## (Transfer is common) - # MC: ClientboundUpdateAdvancementsPacket - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: anonymousNbt - description: anonymousNbt - icon: Slot - frameType: varint - flags: ["bitfield", [ - { "name": "unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } - ]] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - requirements: []varint - _: string[]varint - sendsTelemtryData: bool - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - showAdvancements: bool - # MC: ClientboundUpdateAttributesPacket - packet_entity_update_attributes: - entityId: varint - properties: []varint - key: varint => - - generic.armor - - generic.armor_toughness - - generic.attack_damage - - generic.attack_knockback - - generic.attack_speed - - player.block_break_speed - - player.block_interaction_range - - burning_time - - camera_distance - - explosion_knockback_resistance - - player.entity_interaction_range - - generic.fall_damage_multiplier - - generic.flying_speed - - generic.follow_range - - generic.gravity - - generic.jump_strength - - generic.knockback_resistance - - generic.luck - - generic.max_absorption - - generic.max_health - - generic.movement_speed - - generic.safe_fall_distance - - generic.scale - - zombie.spawn_reinforcements - - generic.step_height - - submerged_mining_speed - - sweeping_damage_ratio - - tempt_range - - water_movement_efficiency - - waypoint_transmit_range - - waypoint_receive_range - value: f64 - modifiers: []varint - uuid: string - amount: f64 - operation: i8 - # MC: ClientboundUpdateMobEffectPacket - packet_entity_effect: - entityId: varint - effectId: varint - amplifier: varint - duration: varint - # a bitfield of 0x01 for ambient, 0x02 for show particles - # flags: ["bitfield", [ - # { "name": "unused", "size": 4 }, - # { "name": "ambient", "size": 1 }, - # { "name": "showParticles", "size": 1 }, - # { "name": "showIcon", "size": 1 }, - # { "name": "blend", "size": 1 } - # ]] - flags: u8 - # MC: ClientboundUpdateRecipesPacket - packet_declare_recipes: - recipes: []varint - name: string - items: varint[]varint - stoneCutterRecipes: []varint - input: IDSet - slotDisplay: SlotDisplay - - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags - # MC: ClientboundProjectilePowerPacket - packet_set_projectile_power: - id: varint - accelerationPower: f64 ## (ClientboundCustomReportDetailsPacket, ClientboundServerLinksPacket is common) # MC: ClientboundTrackedWaypointPacket packet_tracked_waypoint: @@ -2703,794 +39,3 @@ chunkX: varint chunkZ: varint if azimuth: f32 - ## (clear_dialog is common) - # MC: ClientboundShowDialogGamePacket - packet_show_dialog: - dialog: ["registryEntryHolder", { "baseName": "dialog", "otherwise": { "name": "data", "type": "anonymousNbt" } }] - packet: - name: varint => - - bundle_delimiter - - spawn_entity - - animation - - statistics - - acknowledge_player_digging - - block_break_animation - - tile_entity_data - - block_action - - block_change - - boss_bar - - difficulty - - chunk_batch_finished - - chunk_batch_start - - chunk_biomes - - clear_titles - - tab_complete - - declare_commands - - close_window - - window_items - - craft_progress_bar - - set_slot - - cookie_request - - set_cooldown - - chat_suggestions - - custom_payload - - damage_event - - debug_sample - - hide_message - - kick_disconnect - - profileless_chat - - entity_status - - sync_entity_position - - explosion - - unload_chunk - - game_state_change - - open_horse_window - - hurt_animation - - initialize_world_border - - keep_alive - - map_chunk - - world_event - - world_particles - - update_light - - login - - map - - trade_list - - rel_entity_move - - entity_move_look - - move_minecart - - entity_look - - vehicle_move - - open_book - - open_window - - open_sign_entity - - ping - - ping_response - - craft_recipe_response - - abilities - - player_chat - - end_combat_event - - enter_combat_event - - death_combat_event - - player_remove - - player_info - - face_player - - position - - player_rotation - - recipe_book_add - - recipe_book_remove - - recipe_book_settings - - entity_destroy - - remove_entity_effect - - reset_score - - remove_resource_pack - - add_resource_pack - - respawn - - entity_head_rotation - - multi_block_change - - select_advancement_tab - - server_data - - action_bar - - world_border_center - - world_border_lerp_size - - world_border_size - - world_border_warning_delay - - world_border_warning_reach - - camera - - update_view_position - - update_view_distance - - set_cursor_item - - spawn_position - - scoreboard_display_objective - - entity_metadata - - attach_entity - - entity_velocity - - entity_equipment - - experience - - update_health - - held_item_slot - - scoreboard_objective - - set_passengers - - set_player_inventory - - teams - - scoreboard_score - - simulation_distance - - set_title_subtitle - - update_time - - set_title_text - - set_title_time - - entity_sound_effect - - sound_effect - - start_configuration - - stop_sound - - store_cookie - - system_chat - - playerlist_header - - nbt_query_response - - collect - - entity_teleport - - test_instance_block_status - - set_ticking_state - - step_tick - - transfer - - advancements - - entity_update_attributes - - entity_effect - - declare_recipes - - tags - - set_projectile_power - - custom_report_details - - server_links - - tracked_waypoint - - clear_dialog - - show_dialog - params: name ? - if bundle_delimiter: void - if spawn_entity: packet_spawn_entity - if animation: packet_animation - if statistics: packet_statistics - if acknowledge_player_digging: packet_acknowledge_player_digging - if block_break_animation: packet_block_break_animation - if tile_entity_data: packet_tile_entity_data - if block_action: packet_block_action - if block_change: packet_block_change - if boss_bar: packet_boss_bar - if difficulty: packet_difficulty - if chunk_batch_finished: packet_chunk_batch_finished - if chunk_batch_start: packet_chunk_batch_start - if chunk_biomes: packet_chunk_biomes - if clear_titles: packet_clear_titles - if tab_complete: packet_tab_complete - if declare_commands: packet_declare_commands - if close_window: packet_close_window - if window_items: packet_window_items - if craft_progress_bar: packet_craft_progress_bar - if set_slot: packet_set_slot - if cookie_request: packet_common_cookie_request - if set_cooldown: packet_set_cooldown - if chat_suggestions: packet_chat_suggestions - if custom_payload: packet_custom_payload - if damage_event: packet_damage_event - if debug_sample: packet_debug_sample - if hide_message: packet_hide_message - if kick_disconnect: packet_kick_disconnect - if profileless_chat: packet_profileless_chat - if entity_status: packet_entity_status - if sync_entity_position: packet_sync_entity_position - if explosion: packet_explosion - if unload_chunk: packet_unload_chunk - if game_state_change: packet_game_state_change - if open_horse_window: packet_open_horse_window - if hurt_animation: packet_hurt_animation - if initialize_world_border: packet_initialize_world_border - if keep_alive: packet_keep_alive - if map_chunk: packet_map_chunk - if world_event: packet_world_event - if world_particles: packet_world_particles - if update_light: packet_update_light - if login: packet_login - if map: packet_map - if trade_list: packet_trade_list - if rel_entity_move: packet_rel_entity_move - if entity_move_look: packet_entity_move_look - if move_minecart: packet_move_minecart - if entity_look: packet_entity_look - if vehicle_move: packet_vehicle_move - if open_book: packet_open_book - if open_window: packet_open_window - if open_sign_entity: packet_open_sign_entity - if ping: packet_ping - if ping_response: packet_ping_response - if craft_recipe_response: packet_craft_recipe_response - if abilities: packet_abilities - if player_chat: packet_player_chat - if end_combat_event: packet_end_combat_event - if enter_combat_event: packet_enter_combat_event - if death_combat_event: packet_death_combat_event - if player_remove: packet_player_remove - if player_info: packet_player_info - if face_player: packet_face_player - if position: packet_position - if player_rotation: packet_player_rotation - if recipe_book_add: packet_recipe_book_add - if recipe_book_remove: packet_recipe_book_remove - if recipe_book_settings: packet_recipe_book_settings - if entity_destroy: packet_entity_destroy - if remove_entity_effect: packet_remove_entity_effect - if reset_score: packet_reset_score - if remove_resource_pack: packet_common_remove_resource_pack - if add_resource_pack: packet_common_add_resource_pack - if respawn: packet_respawn - if entity_head_rotation: packet_entity_head_rotation - if multi_block_change: packet_multi_block_change - if select_advancement_tab: packet_select_advancement_tab - if server_data: packet_server_data - if action_bar: packet_action_bar - if world_border_center: packet_world_border_center - if world_border_lerp_size: packet_world_border_lerp_size - if world_border_size: packet_world_border_size - if world_border_warning_delay: packet_world_border_warning_delay - if world_border_warning_reach: packet_world_border_warning_reach - if camera: packet_camera - if update_view_position: packet_update_view_position - if update_view_distance: packet_update_view_distance - if set_cursor_item: packet_set_cursor_item - if held_item_slot: packet_held_item_slot - if spawn_position: packet_spawn_position - if scoreboard_display_objective: packet_scoreboard_display_objective - if entity_metadata: packet_entity_metadata - if attach_entity: packet_attach_entity - if entity_velocity: packet_entity_velocity - if entity_equipment: packet_entity_equipment - if experience: packet_experience - if update_health: packet_update_health - if scoreboard_objective: packet_scoreboard_objective - if set_passengers: packet_set_passengers - if set_player_inventory: packet_set_player_inventory - if teams: packet_teams - if scoreboard_score: packet_scoreboard_score - if simulation_distance: packet_simulation_distance - if set_title_subtitle: packet_set_title_subtitle - if update_time: packet_update_time - if set_title_text: packet_set_title_text - if set_title_time: packet_set_title_time - if entity_sound_effect: packet_entity_sound_effect - if sound_effect: packet_sound_effect - if start_configuration: packet_start_configuration - if stop_sound: packet_stop_sound - if store_cookie: packet_common_store_cookie - if system_chat: packet_system_chat - if playerlist_header: packet_playerlist_header - if nbt_query_response: packet_nbt_query_response - if collect: packet_collect - if entity_teleport: packet_entity_teleport - if test_instance_block_status: packet_test_instance_block_status - if set_ticking_state: packet_set_ticking_state - if step_tick: packet_step_tick - if transfer: packet_common_transfer - if advancements: packet_advancements - if entity_update_attributes: packet_entity_update_attributes - if entity_effect: packet_entity_effect - if declare_recipes: packet_declare_recipes - if tags: packet_tags - if set_projectile_power: packet_set_projectile_power - if custom_report_details: packet_common_custom_report_details - if server_links: packet_common_server_links - if tracked_waypoint: packet_tracked_waypoint - if clear_dialog: packet_common_clear_dialog - if show_dialog: packet_show_dialog - -^play.toServer.types: - # MC: ServerboundAcceptTeleportationPacket - packet_teleport_confirm: - teleportId: varint - # MC: ServerboundBlockEntityTagQueryPacket - packet_query_block_nbt: - transactionId: varint - location: position - # MC: ServerboundSelectBundleItemPacket - packet_select_bundle_item: - slotId: varint - selectedItemIndex: varint - # MC: ServerboundChangeDifficultyPacket - packet_set_difficulty: - newDifficulty: varint => - 0: peaceful - 1: easy - 2: normal - 3: hard - # MC: ServerboundChangeGameModePacket - packet_change_gamemode: - mode: varint => - 0: survival - 1: creative - 2: adventure - 3: spectator - # MC: ServerboundChatAckPacket - packet_message_acknowledgement: - count: varint - # MC: ServerboundChatCommandPacket - packet_chat_command: - command: string - # MC: ServerboundChatCommandSignedPacket - packet_chat_command_signed: - command: string - timestamp: i64 - salt: i64 - argumentSignatures: []varint - argumentName: string - signature: [ - "buffer", - { - "count": 256 - } - ] - messageCount: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - checksum: u8 - # MC: ServerboundChatPacket - packet_chat_message: - message: string - timestamp: i64 - salt: i64 - signature?: [ - "buffer", - { - "count": 256 - } - ] - offset: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - checksum: u8 - # MC: ServerboundChatSessionUpdatePacket - packet_chat_session_update: - sessionUUID: UUID - expireTime: i64 - publicKey: ByteArray - signature: ByteArray - # MC: ServerboundChunkBatchReceivedPacket - packet_chunk_batch_received: - chunksPerTick: f32 - # MC: ServerboundClientCommandPacket - packet_client_command: - actionId: varint - # MC: ServerboundClientTickEndPacket - packet_tick_end: - # Empty - # MC: ServerboundCommandSuggestionPacket - packet_tab_complete: - transactionId: varint - text: string - # MC: ServerboundConfigurationAcknowledgedPacket - packet_configuration_acknowledged: - # Empty - # MC: ServerboundContainerButtonClickPacket - packet_enchant_item: - windowId: ContainerID - enchantment: varint - # MC: ServerboundContainerClickPacket - packet_window_click: - windowId: ContainerID - stateId: varint - slot: i16 - mouseButton: i8 - mode: varint - changedSlots: []varint - location: i16 - item?: HashedSlot - cursorItem?: HashedSlot - # MC: ServerboundContainerClosePacket - packet_close_window: - windowId: ContainerID - # MC: ServerboundContainerSlotStateChangedPacket - packet_set_slot_state: - slot_id: varint - window_id: ContainerID - state: bool - ## (ServerboundCookieResponsePacket is common) - # MC: ServerboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ServerboundDebugSampleSubscriptionPacket - packet_debug_sample_subscription: - type: varint - # MC: ServerboundEditBookPacket - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - # MC: ServerboundEntityTagQuery - packet_query_entity_nbt: - transactionId: varint - entityId: varint - # MC: ServerboundInteractPacket - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - # MC: ServerboundJigsawGeneratePacket - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundLockDifficultyPacket - packet_lock_difficulty: - locked: bool - - MovementFlags: ["bitflags", { - "type": "u8", - "flags": ["onGround", "hasHorizontalCollision"] - }] - # MC: ServerboundMovePlayerPacket.Pos - packet_position: - x: f64 - y: f64 - z: f64 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.PosRot - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.Rot - packet_look: - yaw: f32 - pitch: f32 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.StatusOnly - packet_flying: - flags: MovementFlags - # MC: ServerboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - # MC: ServerboundPaddleBoatPacket - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - # MC: ServerboundPickItemFromBlockPacket - packet_pick_item_from_block: - position: position - includeData: bool - # MC: ServerboundPickItemFromEntityPacket - packet_pick_item_from_entity: - entityId: varint - includeData: bool - # MC: ServerboundPingRequestPacket - packet_ping_request: - id: i64 - # MC: ServerboundPlaceRecipePacket - packet_craft_recipe_request: - windowId: ContainerID - recipeId: varint - makeAll: bool - # MC: ServerboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - # MC: ServerboundPlayerActionPacket - packet_block_dig: - status: varint - location: position - face: i8 - sequence: varint - # MC: ServerboundPlayerCommandPacket - packet_entity_action: - entityId: varint - actionId: varint => - - leave_bed - - start_sprinting - - stop_sprinting - - start_horse_jump - - stop_horse_jump - - open_vehicle_inventory - - start_elytra_flying - jumpBoost: varint - # MC: ServerboundPlayerInputPacket - # previously: packet_steer_vehicle - packet_player_input: - ## client/net/minecraft/world/entity/player/Input.java - inputs: ["bitflags", { - "type": "u8", - "flags": ["forward", "backward", "left", "right", "jump", "shift", "sprint"] - }] - # MC: ServerboundPlayerLoadedPacket - packet_player_loaded: - # Empty - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundRecipeBookChangeSettingsPacket - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - # MC: ServerboundRecipeBookSeenRecipePacket - packet_displayed_recipe: - recipeId: varint - # MC: ServerboundRenameItemPacket - packet_name_item: - name: string - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint - # MC: ServerboundSeenAdvancementsPacket - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - # MC: ServerboundSelectTradePacket - packet_select_trade: - slot: varint - # MC: ServerboundSetBeaconPacket - packet_set_beacon_effect: - primary_effect?: varint - secondary_effect?: varint - # MC: ServerboundSetCarriedItemPacket - packet_held_item_slot: - slotId: i16 - # MC: ServerboundSetCommandBlockPacket - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - # MC: ServerboundSetCommandMinecartPacket - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - # MC: ServerboundSetCreativeModeSlotPacket - packet_set_creative_slot: - slot: i16 - item: UntrustedSlot - # MC: ServerboundSetJigsawBlockPacket - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - selection_priority: varint - placement_priority: varint - # MC: ServerboundSetStructureBlockPacket - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varint - # New `strict` flag - flags: u8 => - - ignore_entities - - show_air - - show_bounding_box - - strict - # MC: ServerboundSetTestBlockPacket - packet_set_test_block: - position: position - mode: varint - message: string - # MC: ServerboundSignUpdatePacket - packet_update_sign: - location: position - isFrontText: bool - text1: string - text2: string - text3: string - text4: string - # MC: ServerboundSwingPacket - packet_arm_animation: - hand: varint - # MC: ServerboundTeleportToEntityPacket - packet_spectate: - target: UUID - # MC: ServerboundTestInstanceBlockActionPacket - packet_test_instance_block_action: - pos: position - action: varint - data: - test?: string - size: vec3i - rotation: varint - ignoreEntities: bool - status: varint - errorMessage?: anonymousNbt - # MC: ServerboundUseItemOnPacket - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - worldBorderHit: bool - sequence: varint - # MC: ServerboundUseItemPacket - packet_use_item: - hand: varint - sequence: varint - rotation: vec2f - - packet: - name: varint => - - teleport_confirm - - query_block_nbt - - select_bundle_item - - set_difficulty - - change_gamemode - - message_acknowledgement - - chat_command - - chat_command_signed - - chat_message - - chat_session_update - - chunk_batch_received - - client_command - - tick_end - - settings - - tab_complete - - configuration_acknowledged - # Maybe rename enchant_item if it is used for other things too - - enchant_item - - window_click - - close_window - - set_slot_state - - cookie_response - - custom_payload - - debug_sample_subscription - - edit_book - - query_entity_nbt - - use_entity - - generate_structure - - keep_alive - - lock_difficulty - - position - - position_look - - look - - flying - - vehicle_move - - steer_boat - - pick_item_from_block - - pick_item_from_entity - - ping_request - - craft_recipe_request - - abilities - - block_dig - - entity_action - - player_input - - player_loaded - - pong - - recipe_book - - displayed_recipe - - name_item - - resource_pack_receive - - advancement_tab - - select_trade - - set_beacon_effect - - held_item_slot - - update_command_block - - update_command_block_minecart - - set_creative_slot - - update_jigsaw_block - - update_structure_block - - set_test_block - - update_sign - - arm_animation - - spectate - - test_instance_block_action - - block_place - - use_item - - custom_click_action - params: name ? - if teleport_confirm: packet_teleport_confirm - if query_block_nbt: packet_query_block_nbt - if select_bundle_item: packet_select_bundle_item - if set_difficulty: packet_set_difficulty - if change_gamemode: packet_change_gamemode - if message_acknowledgement: packet_message_acknowledgement - if chat_command: packet_chat_command - if chat_command_signed: packet_chat_command_signed - if chat_message: packet_chat_message - if chat_session_update: packet_chat_session_update - if chunk_batch_received: packet_chunk_batch_received - if client_command: packet_client_command - if tick_end: packet_tick_end - if settings: packet_common_settings - if tab_complete: packet_tab_complete - if configuration_acknowledged: packet_configuration_acknowledged - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if set_slot_state: packet_set_slot_state - if cookie_response: packet_common_cookie_response - if custom_payload: packet_custom_payload - if debug_sample_subscription: packet_debug_sample_subscription - if edit_book: packet_edit_book - if query_entity_nbt: packet_query_entity_nbt - if use_entity: packet_use_entity - if generate_structure: packet_generate_structure - if keep_alive: packet_keep_alive - if lock_difficulty: packet_lock_difficulty - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if pick_item_from_block: packet_pick_item_from_block - if pick_item_from_entity: packet_pick_item_from_entity - if ping_request: packet_ping_request - if craft_recipe_request: packet_craft_recipe_request - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if player_input: packet_player_input - if player_loaded: packet_player_loaded - if pong: packet_pong - if recipe_book: packet_recipe_book - if displayed_recipe: packet_displayed_recipe - if name_item: packet_name_item - if resource_pack_receive: packet_resource_pack_receive - if advancement_tab: packet_advancement_tab - if select_trade: packet_select_trade - if set_beacon_effect: packet_set_beacon_effect - if held_item_slot: packet_held_item_slot - if update_command_block: packet_update_command_block - if update_command_block_minecart: packet_update_command_block_minecart - if set_creative_slot: packet_set_creative_slot - if update_jigsaw_block: packet_update_jigsaw_block - if update_structure_block: packet_update_structure_block - if set_test_block: packet_set_test_block - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if test_instance_block_action: packet_test_instance_block_action - if block_place: packet_block_place - if use_item: packet_use_item - if custom_click_action: packet_common_custom_click_action diff --git a/data/pc/1.21.8/protocol.json b/data/pc/1.21.8/protocol.json index a897ef857..1baaae1c3 100644 --- a/data/pc/1.21.8/protocol.json +++ b/data/pc/1.21.8/protocol.json @@ -4064,307 +4064,6 @@ } } }, - "configuration": { - "toClient": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links", - "0x11": "clear_dialog", - "0x12": "show_dialog" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "add_resource_pack": "packet_common_add_resource_pack", - "clear_dialog": "packet_common_clear_dialog", - "cookie_request": "packet_common_cookie_request", - "custom_payload": "packet_custom_payload", - "custom_report_details": "packet_common_custom_report_details", - "disconnect": "packet_disconnect", - "feature_flags": "packet_feature_flags", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "reset_chat": "packet_reset_chat", - "select_known_packs": "packet_common_select_known_packs", - "server_links": "packet_common_server_links", - "show_dialog": "packet_show_dialog", - "store_cookie": "packet_common_store_cookie", - "tags": "packet_tags", - "transfer": "packet_common_transfer" - } - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" - } - ] - ], - "packet_feature_flags": [ - "container", - [ - { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_ping": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_registry_data": [ - "container", - [ - { - "name": "id", - "type": "string" - }, - { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] - } - ] - ], - "packet_reset_chat": [ - "container", - [] - ], - "packet_show_dialog": [ - "container", - [ - { - "name": "dialog", - "type": "anonymousNbt" - } - ] - ], - "packet_tags": [ - "container", - [ - { - "name": "tags", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] - } - ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet": [ - "container", - [ - { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_click_action" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "cookie_response": "packet_common_cookie_response", - "custom_click_action": "packet_common_custom_click_action", - "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "settings": "packet_common_settings" - } - } - ] - } - ] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_resource_pack_receive": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "result", - "type": "varint" - } - ] - ] - } - } - }, "play": { "toClient": { "types": { @@ -9915,331 +9614,632 @@ "type": "varint" }, { - "name": "command", - "type": "string" + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" + } + ] + ], + "packet_update_jigsaw_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "target", + "type": "string" + }, + { + "name": "pool", + "type": "string" + }, + { + "name": "finalState", + "type": "string" + }, + { + "name": "jointType", + "type": "string" + }, + { + "name": "selection_priority", + "type": "varint" + }, + { + "name": "placement_priority", + "type": "varint" + } + ] + ], + "packet_update_sign": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "isFrontText", + "type": "bool" + }, + { + "name": "text1", + "type": "string" + }, + { + "name": "text2", + "type": "string" + }, + { + "name": "text3", + "type": "string" + }, + { + "name": "text4", + "type": "string" + } + ] + ], + "packet_update_structure_block": [ + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "metadata", + "type": "string" + }, + { + "name": "integrity", + "type": "f32" + }, + { + "name": "seed", + "type": "varint" + }, + { + "name": "flags", + "type": [ + "mapper", + { + "mappings": { + "0": "ignore_entities", + "1": "show_air", + "2": "show_bounding_box", + "3": "strict" + }, + "type": "u8" + } + ] + } + ] + ], + "packet_use_entity": [ + "container", + [ + { + "name": "target", + "type": "varint" + }, + { + "name": "mouse", + "type": "varint" + }, + { + "name": "x", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "y", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "z", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "2": "f32" + } + } + ] + }, + { + "name": "hand", + "type": [ + "switch", + { + "compareTo": "mouse", + "default": "void", + "fields": { + "0": "varint", + "2": "varint" + } + } + ] }, { - "name": "track_output", + "name": "sneaking", "type": "bool" } ] ], - "packet_update_jigsaw_block": [ + "packet_use_item": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "target", - "type": "string" - }, - { - "name": "pool", - "type": "string" - }, - { - "name": "finalState", - "type": "string" - }, - { - "name": "jointType", - "type": "string" + "name": "hand", + "type": "varint" }, { - "name": "selection_priority", + "name": "sequence", "type": "varint" }, { - "name": "placement_priority", - "type": "varint" + "name": "rotation", + "type": "vec2f" } ] ], - "packet_update_sign": [ + "packet_vehicle_move": [ "container", [ { - "name": "location", - "type": "position" + "name": "x", + "type": "f64" }, { - "name": "isFrontText", - "type": "bool" + "name": "y", + "type": "f64" }, { - "name": "text1", - "type": "string" + "name": "z", + "type": "f64" }, { - "name": "text2", - "type": "string" + "name": "yaw", + "type": "f32" }, { - "name": "text3", - "type": "string" + "name": "pitch", + "type": "f32" }, { - "name": "text4", - "type": "string" + "name": "onGround", + "type": "bool" } ] ], - "packet_update_structure_block": [ + "packet_window_click": [ "container", [ { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" + "name": "windowId", + "type": "ContainerID" }, { - "name": "mode", + "name": "stateId", "type": "varint" }, { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" + "name": "slot", + "type": "i16" }, { - "name": "offset_z", + "name": "mouseButton", "type": "i8" }, { - "name": "size_x", - "type": "i8" + "name": "mode", + "type": "varint" }, { - "name": "size_y", - "type": "i8" + "name": "changedSlots", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "location", + "type": "i16" + }, + { + "name": "item", + "type": [ + "option", + "HashedSlot" + ] + } + ] + ] + } + ] }, { - "name": "size_z", - "type": "i8" - }, + "name": "cursorItem", + "type": [ + "option", + "HashedSlot" + ] + } + ] + ] + } + } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ + "container", + [ { - "name": "mirror", - "type": "varint" + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links", + "0x11": "clear_dialog", + "0x12": "show_dialog" + }, + "type": "varint" + } + ] }, { - "name": "rotation", - "type": "varint" - }, + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "add_resource_pack": "packet_common_add_resource_pack", + "clear_dialog": "packet_common_clear_dialog", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "show_dialog": "packet_show_dialog", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" + } + } + ] + } + ] + ], + "packet_custom_payload": [ + "container", + [ { - "name": "metadata", + "name": "channel", "type": "string" }, { - "name": "integrity", - "type": "f32" - }, + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_disconnect": [ + "container", + [ { - "name": "seed", - "type": "varint" - }, + "name": "reason", + "type": "anonymousNbt" + } + ] + ], + "packet_feature_flags": [ + "container", + [ { - "name": "flags", + "name": "features", "type": [ - "mapper", + "array", { - "mappings": { - "0": "ignore_entities", - "1": "show_air", - "2": "show_bounding_box", - "3": "strict" - }, - "type": "u8" + "countType": "varint", + "type": "string" } ] } ] ], - "packet_use_entity": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "target", - "type": "varint" - }, + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_ping": [ + "container", + [ { - "name": "mouse", - "type": "varint" + "name": "id", + "type": "i32" + } + ] + ], + "packet_registry_data": [ + "container", + [ + { + "name": "id", + "type": "string" }, { - "name": "x", + "name": "entries", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] } ] - }, + } + ] + ], + "packet_reset_chat": [ + "container", + [] + ], + "packet_show_dialog": [ + "container", + [ { - "name": "y", + "name": "dialog", + "type": "anonymousNbt" + } + ] + ], + "packet_tags": [ + "container", + [ + { + "name": "tags", "type": [ - "switch", + "array", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] } ] - }, + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ { - "name": "z", + "name": "name", "type": [ - "switch", + "mapper", { - "compareTo": "mouse", - "default": "void", - "fields": { - "2": "f32" - } + "mappings": { + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_click_action" + }, + "type": "varint" } ] }, { - "name": "hand", + "name": "params", "type": [ "switch", { - "compareTo": "mouse", - "default": "void", + "compareTo": "name", "fields": { - "0": "varint", - "2": "varint" + "cookie_response": "packet_common_cookie_response", + "custom_click_action": "packet_common_custom_click_action", + "custom_payload": "packet_custom_payload", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "select_known_packs": "packet_common_select_known_packs", + "settings": "packet_common_settings" } } ] - }, - { - "name": "sneaking", - "type": "bool" } ] ], - "packet_use_item": [ + "packet_custom_payload": [ "container", [ { - "name": "hand", - "type": "varint" - }, - { - "name": "sequence", - "type": "varint" + "name": "channel", + "type": "string" }, { - "name": "rotation", - "type": "vec2f" + "name": "data", + "type": "restBuffer" } ] ], - "packet_vehicle_move": [ + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ "container", [ { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "yaw", - "type": "f32" - }, - { - "name": "pitch", - "type": "f32" - }, - { - "name": "onGround", - "type": "bool" + "name": "keepAliveId", + "type": "i64" } ] ], - "packet_window_click": [ + "packet_pong": [ "container", [ { - "name": "windowId", - "type": "ContainerID" - }, - { - "name": "stateId", - "type": "varint" - }, - { - "name": "slot", - "type": "i16" - }, + "name": "id", + "type": "i32" + } + ] + ], + "packet_resource_pack_receive": [ + "container", + [ { - "name": "mouseButton", - "type": "i8" + "name": "uuid", + "type": "UUID" }, { - "name": "mode", + "name": "result", "type": "varint" - }, - { - "name": "changedSlots", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "location", - "type": "i16" - }, - { - "name": "item", - "type": [ - "option", - "HashedSlot" - ] - } - ] - ] - } - ] - }, - { - "name": "cursorItem", - "type": [ - "option", - "HashedSlot" - ] } ] ] diff --git a/data/pc/1.21.9/proto.yml b/data/pc/1.21.9/proto.yml index 1494e764d..ef32c2381 100644 --- a/data/pc/1.21.9/proto.yml +++ b/data/pc/1.21.9/proto.yml @@ -1,167 +1,17 @@ !version: 1.21.9 -!StartDocs: true +!base: 1.21.8 ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - anonymousNbt: native - anonOptionalNbt: native - registryEntryHolder: native - registryEntryHolderSet: native + vec3i16: !delete + + game_profile: !delete + lpVec3: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec2f: - x: f32 - y: f32 - vec3f: - x: f32 - y: f32 - z: f32 - vec4f: - x: f32 - y: f32 - z: f32 - w: f32 - vec3f64: - x: f64 - y: f64 - z: f64 - vec3i: - x: varint - y: varint - z: varint + vec3i32: x: i32 y: i32 z: i32 - IDSet: ["registryEntryHolderSet", { - "base": { name: "name", type: "string" }, - "otherwise": { name: "ids", type: "varint" } - }] - ContainerID: varint - SlotComponentType: varint => - - custom_data - - max_stack_size - - max_damage - - damage - - unbreakable - - custom_name - - item_name - - item_model - - lore - - rarity - - enchantments - - can_place_on - - can_break - - attribute_modifiers - - custom_model_data - - tooltip_display - - repair_cost - - creative_slot_lock - - enchantment_glint_override - - intangible_projectile - - food - - consumable - - use_remainder - - use_cooldown - - damage_resistant - - tool - - weapon - - enchantable - - equippable - - repairable - - glider - - tooltip_style - - death_protection - - blocks_attacks - - stored_enchantments - - dyed_color - - map_color - - map_id - - map_decorations - - map_post_processing - - charged_projectiles - - bundle_contents - - potion_contents - - potion_duration_scale - - suspicious_stew_effects - - writable_book_content - - written_book_content - - trim - - debug_stick_state - - entity_data - - bucket_entity_data - - block_entity_data - - instrument - - provides_trim_material - - ominous_bottle_amplifier - - jukebox_playable - - provides_banner_patterns - - recipes - - lodestone_tracker - - firework_explosion - - fireworks - - profile - - note_block_sound - - banner_patterns - - base_color - - pot_decorations - - container - - block_state - - bees - - lock - - container_loot - - break_sound - - villager/variant - - wolf/variant - - wolf/sound_variant - - wolf/collar - - fox/variant - - salmon/size - - parrot/variant - - tropical_fish/pattern - - tropical_fish/base_color - - tropical_fish/pattern_color - - mooshroom/variant - - rabbit/variant - - pig/variant - - cow/variant - - chicken/variant - - frog/variant - - horse/variant - - painting/variant - - llama/variant - - axolotl/variant - - cat/variant - - cat/collar - - sheep/color - - shulker/color # Instead of sending NBT for items over the network, Minecraft since 1.20.5 sends a # list of components that make up the item. This saves bandwidth by not encoding tag names. @@ -244,7 +94,7 @@ bypassedBy?: string blockSound?: ItemSoundHolder disableSound?: ItemSoundHolder - if food: + if food: nutrition: varint # How much saturation will be given after consuming the item. saturationModifier: f32 @@ -429,171 +279,7 @@ if cat/collar: varint if sheep/color: varint if shulker/color: varint - - ItemSoundEvent: - soundName: string - fixedRange?: f32 - ItemSoundHolder: ["registryEntryHolder", { - "baseName": "soundId", - "otherwise": { name: "data", type: "ItemSoundEvent" } - }] - - ItemFireworkExplosion: - shape: varint => - - small_ball - - large_ball - - star - - creeper - - burst - # The RGB components of the color, encoded as an integer. - colors: i32[]varint - # The RGB components of the color, encoded as an integer. - fadeColors: i32[]varint - # Whether the firework has a trail. - hasTrail: bool - # Whether the firework has a twinkle effect. - hasTwinkle: bool - - ItemEffectDetail: - amplifier: varint - duration: varint - ambient: bool - showParticles: bool - showIcon: bool - hiddenEffect?: ItemEffectDetail - - ItemPotionEffect: - id: varint - details: ItemEffectDetail - - ItemBlockProperty: - name: string - isExactMatch: bool - value: isExactMatch ? - if true: - exactValue: string - if false: - minValue: string - maxValue: string - - ExactComponentMatcher: SlotComponent[]varint - - DataComponentMatchers: - exactMatchers: ExactComponentMatcher - partialMatchers: varint[]varint - - ItemBlockPredicate: - blockSet?: ["registryEntryHolderSet", { - "base": { name: "name", type: "string" }, - "otherwise": { name: "blockIds", "type": "varint" } - }] - properties?: ItemBlockProperty[]varint - nbt: anonOptionalNbt - components: DataComponentMatchers - - ItemBookPage: - # The raw text of the page. TextComponent, max 1024 characters. - content: string - filteredContent?: string - ItemWrittenBookPage: - content: anonymousNbt - filteredContent: anonOptionalNbt - - ItemConsumeEffect: # 1.21.3 - type: varint => - - apply_effects - - remove_effects - - clear_all_effects - - teleport_randomly - - play_sound - _: type ? - if apply_effects: - effects: ItemPotionEffect[]varint - probability: f32 - if remove_effects: - effects: IDSet - if clear_all_effects: void - if teleport_randomly: - diameter: f32 - if play_sound: - sound: ItemSoundHolder - - ArmorTrimMaterial: - assetBase: string - overrideArmorAssets: []varint - key: string - value: string - description: anonymousNbt - - ArmorTrimPattern: - assetId: string - description: anonymousNbt - decal: bool - - InstrumentData: - soundEvent: ItemSoundHolder - useDuration: f32 - range: f32 - description: anonymousNbt - - JukeboxSongData: - soundEvent: ItemSoundHolder - description: anonymousNbt - lengthInSeconds: f32 - comparatorOutput: varint - - BannerPattern: - assetId: string - translationKey: string - BannerPatternLayer: - pattern: ["registryEntryHolder", { "baseName": "patternId", "otherwise": { "name": "data", "type": "BannerPattern" } }] - colorId: varint - - # This represents a single component within an UntrustedSlot. - # The 'data' field is a varint-prefixed byte array that contains the actual component data. - # The code generator will need to know that it should read a varint for length, then the bytes. - UntrustedSlotComponent: - type: SlotComponentType - data: ByteArray - - # An UntrustedSlot is structurally identical to a regular Slot, - # but it uses the special UntrustedSlotComponent type for its component list. - # It's optional because the player might be clearing the slot. - UntrustedSlot: - itemCount: varint - _: itemCount ? - if 0: void - default: - itemId: varint - addedComponentCount: varint - removedComponentCount: varint - components: UntrustedSlotComponent[]$addedComponentCount - removeComponents: []$removedComponentCount - type: SlotComponentType - if false: void - - Slot: - itemCount: varint - _: itemCount ? - if 0: void - default: - itemId: varint - # https://wiki.vg/Slot_Data#Structured_components - addedComponentCount: varint - removedComponentCount: varint - components: SlotComponent[]$addedComponentCount - removeComponents: []$removedComponentCount - type: SlotComponentType - HashedSlot: - itemId: varint - itemCount: varint - components: []varint - type: SlotComponentType - hash: i32 - removeComponents: []varint - type: SlotComponentType - RespawnData: globalPos: GlobalPos yaw: f32 @@ -610,7 +296,7 @@ boundingBoxMin: position boundingBoxMax: position isStart: bool - + Node: position: vec3i32 walkedDistance: f32 @@ -644,12 +330,12 @@ - damage_cautious - danger_trapdoor f: f32 - + PathDebugData: openSet: Node[]varint closedSet: Node[]varint targetNodes: Node[]varint - + Path: reached: bool nextNodeIndex: i32 @@ -737,7 +423,7 @@ if GameEvents: # DebugSubscriptionDataGameEventInfo event: varint pos: vec3f64 - + DebugSubscriptionEvent: type: DebugSubscriptionDataType value: type ? @@ -969,52 +655,7 @@ color: i32 power: f32 if flash: i32 - ingredient: Slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - soundSource: varint => - 0: master - 1: music - 2: record - 3: weather - 4: block - 5: hostile - 6: neutral - 7: player - 8: ambient - 9: voice - 10: ui - packedChunkPos: - z: i32 - x: i32 - previousMessages: []varint - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void + entityMetadataEntry: key: u8 type: varint => @@ -1102,68 +743,28 @@ if vector3: vec3f if quaternion: vec4f if resolvable_profile: ResolvableProfile - EntityMetadataPaintingVariant: - width: i32 - height: i32 - assetId: string - title?: anonymousNbt - author?: anonymousNbt - entityMetadata: ["entityMetadataLoop", { "endVal": 255, "type": "entityMetadataEntry" }] - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: - _: [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - y: i16 - type: varint - nbtData: anonOptionalNbt - chat_session?: - uuid: UUID - publicKey: - expireTime: i64 - keyBytes: [ - "buffer", - { - "countType": "varint" - } - ] - keySignature: [ - "buffer", - { - "countType": "varint" - } - ] + # No UUID game_profile_name_prop: name: string properties: GameProfileProperty[]varint + # With UUID GameProfile: uuid: UUID name: string properties: GameProfileProperty[]varint + PartialResolvableProfile: name?: string uuid?: UUID properties: GameProfileProperty[]varint + GameProfileProperty: name: string value: string signature?: string + ResolvableProfile: type: varint => - partial @@ -1172,6 +773,7 @@ if partial: PartialResolvableProfile if complete: GameProfile skinPatch: PlayerSkinPatch + PlayerSkinPatch: body?: string cape?: string @@ -1179,572 +781,23 @@ model?: varint => - wide - slim - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 2, - "signed": false - }, - { - "name": "allows_restricted", - "size": 1, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: varint => - - brigadier:bool - - brigadier:float - - brigadier:double - - brigadier:integer - - brigadier:long - - brigadier:string - - minecraft:entity - - minecraft:game_profile - - minecraft:block_pos - - minecraft:column_pos - - minecraft:vec3 - - minecraft:vec2 - - minecraft:block_state - - minecraft:block_predicate - - minecraft:item_stack - - minecraft:item_predicate - - minecraft:color - - minecraft:hex_color # 1.21.6 - - minecraft:component - - minecraft:style - - minecraft:message - - minecraft:nbt - - minecraft:nbt_tag - - minecraft:nbt_path - - minecraft:objective - - minecraft:objective_criteria - - minecraft:operation - - minecraft:particle - - minecraft:angle - - minecraft:rotation - - minecraft:scoreboard_slot - - minecraft:score_holder - - minecraft:swizzle - - minecraft:team - - minecraft:item_slot - - minecraft:item_slots # 1.20.5 - - minecraft:resource_location - - minecraft:function - - minecraft:entity_anchor - - minecraft:int_range - - minecraft:float_range - - minecraft:dimension - - minecraft:gamemode - - minecraft:time - - minecraft:resource_or_tag - - minecraft:resource_or_tag_key - - minecraft:resource - - minecraft:resource_key - - minecraft:resource_selector - - minecraft:template_mirror - - minecraft:template_rotation - - minecraft:heightmap - - minecraft:loot_table # 1.20.5 - - minecraft:loot_predicate # 1.20.5 - - minecraft:loot_modifier # 1.20.5 - - minecraft:dialog # 1.21.6 - - minecraft:uuid - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:hex_color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:dimension: void - if minecraft:gamemode: void - if minecraft:time: - min: i32 - if minecraft:resource_or_tag or minecraft:resource_or_tag_key or minecraft:resource or minecraft:resource_key or minecraft:resource_selector: - registry: string - if minecraft:template_mirror: void - if minecraft:template_rotation: void - if minecraft:heightmap: void - if minecraft:dialog: void - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - # # Shared Packets - # These are packets that are shared between multiple states. - # They are defined here to avoid duplication. - # ===== - # MC: ServerboundClientInformationPacket - packet_common_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - enableTextFiltering: bool - enableServerListing: bool - particleStatus: varint => - - all - - decreased - - minimal - # MC: ClientboundCookieRequestPacket - packet_common_cookie_request: - cookie: string - # MC: ClientboundStoreCookiePacket - packet_common_store_cookie: - key: string - value: ByteArray - # MC: ClientboundTransferPacket - packet_common_transfer: - host: string - port: varint + # MC: ServerboundCookieResponsePacket packet_common_cookie_response: key: string value?: ByteArray - # MC: ServerboundSelectKnownPacks - # MC: ClientboundSelectKnownPacks - packet_common_select_known_packs: - packs: []varint - namespace: string - id: string - version: string - # MC: ClientboundCustomReportDetailsPacket - packet_common_custom_report_details: - details: []varint - key: string - value: string - # MC: ClientboundResourcePackPopPacket - packet_common_remove_resource_pack: - uuid?: UUID - # MC: ClientboundResourcePackPushPacket - packet_common_add_resource_pack: - uuid: UUID - url: string - hash: string - forced: bool - promptMessage?: anonymousNbt - ServerLinkType: varint => - - bug_report - - community_guidelines - - support - - status - - feedback - - community - - website - - forums - - news - - announcements - # MC: ClientboundServerLinksPacket - # This packet contains a list of links that the Notchian client will display in the menu - # available from the pause menu. Link labels can be built-in or custom (i.e., any text). - packet_common_server_links: - links: []varint - hasKnownType: bool - knownType: hasKnownType ? - if true: ServerLinkType - unknownType: hasKnownType ? - if false: anonymousNbt - link: string - # MC: ClientboundClearDialogPacket - packet_common_clear_dialog: - # empty - # MC: ServerboundCustomClickActionPacket - packet_common_custom_click_action: - id: string - nbt?: anonymousNbt - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping -^status.toClient.types: - # MC: ClientboundStatusResponsePacket - packet_server_info: - response: string - # MC: ClientboundPongResponsePacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping -^status.toServer.types: - # MC: ServerboundStatusRequestPacket - packet_ping_start: - # Empty - # MC: ServerboundPingRequestPacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping -^login.toClient.types: - # MC: ClientboundLoginDisconnectPacket - packet_disconnect: - reason: string - # MC: ClientboundHelloPacket - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - shouldAuthenticate: bool - # MC: ClientboundLoginFinishedPacket - packet_success: - uuid: UUID - username: string - properties: []varint - name: string - value: string - signature?: string - # MC: ClientboundLoginCompressionPacket - packet_compress: - threshold: varint - # MC: ClientboundCustomQueryPacket - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - ## (Cookie Request is Common) ## - packet: - name: varint => - - disconnect - - encryption_begin - - success - - compress - - login_plugin_request - - cookie_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - if cookie_request: packet_common_cookie_request -^login.toServer.types: - # MC: ServerboundHelloPacket - packet_login_start: - username: string - playerUUID: UUID - # MC: ServerboundKeyPacket - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ServerboundCustomQueryAnswerPacket - packet_login_plugin_response: - messageId: varint - data?: restBuffer - # MC: ServerboundLoginAcknowledgedPacket - packet_login_acknowledged: - # Empty - ## (Cookie Response is Common) ## - packet: - name: varint => - - login_start - - encryption_begin - - login_plugin_response - - login_acknowledged - - cookie_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response - if login_acknowledged: packet_login_acknowledged - if cookie_response: packet_common_cookie_response ^configuration.toClient.types: ## (Cookie Request is common) # MC: ClientboundCodeOfConductPacket packet_code_of_conduct: contents: string + # MC: ClientboundCustomPayloadPacket packet_custom_payload: channel: string data: restBuffer - # MC: ClientboundDisconnectPacket - packet_disconnect: - reason: anonymousNbt - # MC: ClientboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundResetChatPacket - packet_reset_chat: - # Empty - # MC: ClientboundRegistryDataPacket - packet_registry_data: - # The server can send multiple registries - id: string - entries: []varint - key: string - value?: anonymousNbt - ## (Store cookie and Transfer are Common) ## - # MC: ClientboundUpdateEnabledFeaturesPacket - packet_feature_flags: - features: string[]varint - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags - ## (Select known packs is common) - # MC: ClientboundShowDialogConfigurationPacket - packet_show_dialog: - dialog: anonymousNbt + packet: name: varint => - cookie_request @@ -1788,29 +841,19 @@ if clear_dialog: packet_common_clear_dialog if show_dialog: packet_show_dialog if code_of_conduct: packet_code_of_conduct + ^configuration.toServer.types: ## (Settings is Common) ## ## (Cookie Response is Common) ## # MC: ServerboundAcceptCodeOfConductPacket packet_accept_code_of_conduct: # Empty + # MC: ServerboundCustomPayloadPacket packet_custom_payload: channel: string data: restBuffer - # MC: ServerboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint + packet: name: varint => - settings @@ -1834,65 +877,8 @@ if select_known_packs: packet_common_select_known_packs if custom_click_action: packet_common_custom_click_action if accept_code_of_conduct: packet_accept_code_of_conduct + ^play.toClient.types: - SlotDisplay: - type: varint => - - empty - - any_fuel - - item - - item_stack - - tag - - smithing_trim - - with_remainder - - composite - data: type ? - if empty or any_fuel: void - if item: varint - if item_stack: Slot - if tag: string - if smithing_trim: - base: SlotDisplay - material: SlotDisplay - pattern: ["registryEntryHolder", { "baseName": "patternId", "otherwise": { "name": "data", "type": "ArmorTrimPattern" } }] - if with_remainder: - input: SlotDisplay - remainder: SlotDisplay - if composite: SlotDisplay[]varint - RecipeDisplay: - type: varint => - - crafting_shapeless - - crafting_shaped - - furnace - - stonecutter - - smithing - data: type ? - if crafting_shapeless: - ingredients: SlotDisplay[]varint - result: SlotDisplay - craftingStation: SlotDisplay - if crafting_shaped: - width: varint - height: varint - ingredients: SlotDisplay[]varint - result: SlotDisplay - craftingStation: SlotDisplay - if furnace: - ingredient: SlotDisplay - fuel: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay - duration: varint - experience: f32 - if stonecutter: - ingredient: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay - if smithing: - template: SlotDisplay - base: SlotDisplay - addition: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay # World state information for spawn and respawn packets SpawnInfo: dimension: varint @@ -1923,216 +909,35 @@ yaw: i8 headPitch: i8 objectData: varint - # MC: ClientboundAnimatePacket - packet_animation: - entityId: varint - animation: u8 - # MC: ClientboundAwardStatsPacket - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - # MC: ClientboundBlockChangedAckPacket - packet_acknowledge_player_digging: - sequenceId: varint - # MC: ClientboundBlockDestructionPacket - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - # MC: ClientboundBlockEntityDataPacket - packet_tile_entity_data: - location: position - action: varint - nbtData: anonOptionalNbt - # MC: ClientboundBlockEventPacket - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - # MC: ClientboundBlockUpdatePacket - packet_block_change: - location: position - type: varint - # MC: ClientboundBossEventPacket - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: anonymousNbt - if 3: anonymousNbt - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - # MC: ClientboundChangeDifficultyPacket - packet_difficulty: - difficulty: varint => - 0: peaceful - 1: easy - 2: normal - 3: hard - difficultyLocked: bool - # MC: ClientboundChunkBatchFinishedPacket - packet_chunk_batch_finished: - batchSize: varint - # MC: ClientboundChunkBatchStartPacket - packet_chunk_batch_start: - # Empty - # MC: ClientboundChunksBiomesPacket - packet_chunk_biomes: - biomes: []varint - position: packedChunkPos - data: ByteArray - # MC: ClientboundClearTitlesPacket - packet_clear_titles: - reset: bool - # MC: ClientboundCommandSuggestionsPacket - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: anonymousNbt - # MC: ClientboundCommandsPacket - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - # MC: ClientboundContainerClosePacket - packet_close_window: - windowId: ContainerID - # MC: ClientboundContainerSetContentPacket - packet_window_items: - windowId: ContainerID - stateId: varint - items: Slot[]varint - carriedItem: Slot - # MC: ClientboundContainerSetDataPacket - packet_craft_progress_bar: - windowId: ContainerID - property: i16 - value: i16 - # MC: ClientboundContainerSetSlotPacket - packet_set_slot: - windowId: ContainerID - stateId: varint - slot: i16 - item: Slot - ## (Cookie Request is Common) - # MC: ClientboundCooldownPacket - packet_set_cooldown: - # TODO: figure out what this is - cooldownGroup: string - cooldownTicks: varint - # MC: ClientboundCustomChatCompletionsPacket - packet_chat_suggestions: - action: varint - entries: string[]varint - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDamageEventPacket - packet_damage_event: - entityId: varint - sourceTypeId: varint - sourceCauseId: varint - sourceDirectId: varint - sourcePosition?: vec3f64 + # MC: ClientboundDebugBlockValuePacket packet_debug_block_value: blockPos: position update: DebugSubscriptionUpdate + # MC: ClientboundDebugChunkValuePacket packet_debug_chunk_value: chunkPos: packedChunkPos update: DebugSubscriptionUpdate + # MC: ClientboundEntityEntityValuePacket packet_debug_entity_value: entityId: varint update: DebugSubscriptionUpdate + # MC: ClientboundDebugEventPacket packet_debug_event: event: DebugSubscriptionEvent - # MC: ClientboundDebugSamplePacket - packet_debug_sample: - sample: i64[]varint - type: varint - # MC: ClientboundDeleteChatPacket - packet_hide_message: - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - # MC: ClientboundDisconnectPacket - packet_kick_disconnect: - reason: anonymousNbt - ## client\net\minecraft\network\chat\ChatTypeDecoration.java - ## via client\net\minecraft\network\chat\ChatType.java - ChatTypeParameterType: varint => - - content - - sender - - target - ChatType: - translationKey: string - parameters: ChatTypeParameterType[]varint - style: anonymousNbt - ChatTypes: - chat: ChatType - narration: ChatType - ChatTypesHolder: ["registryEntryHolder", { "baseName": "chatType", "otherwise": { name: "data", type: "ChatTypes" } }] - - # MC: ClientboundDisguisedChatPacket - packet_profileless_chat: - message: anonymousNbt - type: ChatTypesHolder - name: anonymousNbt - target?: anonymousNbt - # MC: ClientboundEntityEventPacket - packet_entity_status: - entityId: i32 - entityStatus: i8 - # MC: ClientboundEntityPositionSyncPacket - packet_sync_entity_position: - entityId: varint - x: f64 - y: f64 - z: f64 - dx: f64 - dy: f64 - dz: f64 - yaw: f32 - pitch: f32 - onGround: bool ExplosionParticleInfo: particle: Particle scaling: f32 speed: f32 + ExplosionParticleEntry: data: ExplosionParticleInfo weight: varint + # MC: ClientboundExplodePacket packet_explosion: center: vec3f64 @@ -2142,191 +947,12 @@ explosionParticle: Particle sound: ItemSoundHolder blockParticles: ExplosionParticleEntry[]varint - # MC: ClientboundForgetLevelChunkPacket - packet_unload_chunk: - chunkZ: i32 - chunkX: i32 - # MC: ClientboundGameEventPacket - packet_game_state_change: - reason: u8 => - 0: no_respawn_block_available - 1: start_raining - 2: stop_raining - 3: change_game_mode - 4: win_game - 5: demo_event - 6: play_arrow_hit_sound - 7: rain_level_change - 8: thunder_level_change - 9: puffer_fish_sting - 10: guardian_elder_effect - 11: immediate_respawn - 12: limited_crafting - 13: level_chunks_load_start - gameMode: f32 + # MC: ClientboundGameTestHighlightPosPacket packet_game_test_highlight_pos: absolutePos: position relativePos: position - # MC: ClientboundHorseScreenOpenPacket - packet_open_horse_window: - windowId: ContainerID - nbSlots: varint - entityId: i32 - # MC: ClientboundHurtAnimationPacket - packet_hurt_animation: - entityId: varint - yaw: f32 - # MC: ClientboundInitializeBorderPacket - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varint - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundLevelChunkWithLightPacket - packet_map_chunk: - x: i32 - z: i32 - heightmaps: []varint - type: varint => - 0: world_surface_wg - 1: world_surface - 2: ocean_floor_wg - 3: ocean_floor - 4: motion_blocking - 5: motion_blocking_no_leaves - data: i64[]varint - chunkData: ByteArray - blockEntities: chunkBlockEntity[]varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - # MC: ClientboundLevelEventPacket - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - # MC: ClientboundLevelParticlesPacket - packet_world_particles: - longDistance: bool - alwaysShow: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - velocityOffset: f32 - amount: i32 - particle: Particle - # MC: ClientboundLightUpdatePacket - packet_update_light: - chunkX: varint - chunkZ: varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - # MC: ClientboundLoginPacket - packet_login: - entityId: i32 - isHardcore: bool - worldNames: string[]varint - maxPlayers: varint - viewDistance: varint - simulationDistance: varint - reducedDebugInfo: bool - enableRespawnScreen: bool - doLimitedCrafting: bool - worldState: SpawnInfo - enforcesSecureChat: bool - # MC: ClientboundMapItemDataPacket - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: anonymousNbt - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ClientboundMerchantOffersPacket - packet_trade_list: - windowId: ContainerID - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.20.5/client/net/minecraft/world/item/trading/MerchantOffer.java#L210 - trades: []varint - inputItem1: - itemId: varint - itemCount: varint - components: ExactComponentMatcher - outputItem: Slot - inputItem2?: - itemId: varint - itemCount: varint - components: ExactComponentMatcher - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - # MC: ClientboundMoveEntityPacket.Pos - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - # MC: ClientboundMoveEntityPacket.PosRot - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool + # MC: ClientboundMoveMinecartPacket packet_move_minecart: # 1.21.3 entityId: varint @@ -2336,82 +962,7 @@ yaw: f32 pitch: f32 weight: f32 - # MC: ClientboundMoveEntityPacket.Rot - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - # MC: ClientboundOpenBookPacket - packet_open_book: - hand: varint - # MC: ClientboundOpenScreenPacket - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: anonymousNbt - # MC: ClientboundOpenSignEditorPacket - packet_open_sign_entity: - location: position - isFrontText: bool - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundPongResponsePacket - packet_ping_response: - id: i64 - # MC: ClientboundPlaceGhostRecipePacket - packet_craft_recipe_response: - windowId: ContainerID - recipeDisplay: RecipeDisplay - # MC: ClientboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - # MC: ClientboundPlayerChatPacket - packet_player_chat: - globalIndex: varint - senderUuid: UUID - index: varint - signature?: [ - "buffer", - { - "count": 256 - } - ] - plainMessage: string - timestamp: i64 - salt: i64 - previousMessages: previousMessages - unsignedChatContent?: anonymousNbt - filterType: varint - filterTypeMask: filterType ? - if 2: i64[]varint - default: void - type: ChatTypesHolder - networkName: anonymousNbt - networkTargetName?: anonymousNbt - # MC: ClientboundPlayerCombatEndPacket - packet_end_combat_event: - duration: varint - # MC: ClientboundPlayerCombatEnterPacket - packet_enter_combat_event: - # Empty - # MC: ClientboundPlayerCombatKillPacket - packet_death_combat_event: - playerId: varint - message: anonymousNbt - # MC: ClientboundPlayerInfoRemovePacket - packet_player_remove: - players: UUID[]varint + # MC: ClientboundPlayerInfoUpdatePacket packet_player_info: ## ClientboundPlayerInfoUpdatePacket.java#L160 @@ -2455,37 +1006,6 @@ if true: bool default: void - # MC: ClientboundPlayerLookAtPacket - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: varint - default: void - - # https://github.com/extremeheat/extracted_minecraft_data/blob/client1.21.2/client/net/minecraft/world/entity/Relative.java#L82 - PositionUpdateRelatives: ["bitflags", { - "type": "u32", - "flags": ["x", "y", "z", "yaw", "pitch", "dx", "dy", "dz", "yawDelta"] - }] - # MC: ClientboundPlayerPositionPacket - packet_position: - teleportId: varint - x: f64 - y: f64 - z: f64 - dx: f64 - dy: f64 - dz: f64 - yaw: f32 - pitch: f32 - flags: PositionUpdateRelatives # MC: ClientboundPlayerRotationPacket packet_player_rotation: yaw: f32 @@ -2493,450 +1013,14 @@ pitch: f32 relativePitch: bool - # MC: ClientboundRecipeBookAddPacket - packet_recipe_book_add: - entries: []varint - # RecipeDisplayEntry - recipe: - displayId: varint - display: RecipeDisplay - group: optvarint - # This ID corresponds to the "recipe_book_category" registry - category: varint => - - crafting_building_blocks - - crafting_redstone - - crafting_equipment - - crafting_misc - - furnace_food - - furnace_blocks - - furnace_misc - - blast_furnace_blocks - - blast_furnace_misc - - smoker_food - - stonecutter - - smithing - - campfire - craftingRequirements?: IDSet[]varint - flags: ["bitflags", { - "type": "u8", - "flags": ["notification", "highlight"] - }] - replace: bool - # MC: ClientboundRecipeBookRemovePacket - packet_recipe_book_remove: - recipeIds: varint[]varint - # MC: ClientboundRecipeBookSettingsPacket - RecipeBookSetting: - open: bool - filtering: bool - packet_recipe_book_settings: - crafting: RecipeBookSetting - furnace: RecipeBookSetting - blast: RecipeBookSetting - smoker: RecipeBookSetting - # MC: ClientboundRemoveEntitiesPacket - packet_entity_destroy: - entityIds: varint[]varint - # MC: ClientboundRemoveMobEffectPacket - packet_remove_entity_effect: - entityId: varint - effectId: varint - # MC: ClientboundResetScorePacket - packet_reset_score: - entity_name: string - objective_name?: string - ## (remove_resource_pack is common) - # MC: ClientboundRespawnPacket - packet_respawn: - worldState: SpawnInfo - # Bit field: 0b1 - KEEP_ATTRIBUTE_MODIFIERS, 0b10 - KEEP_ENTITY_DATA - copyMetadata: u8 - # MC: ClientboundRotateHeadPacket - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - # MC: ClientboundSectionBlocksUpdatePacket - packet_multi_block_change: - chunkCoordinates: [ "bitfield", [ - { "name": "x", "size": 22, "signed": true }, - { "name": "z", "size": 22, "signed": true }, - { "name": "y", "size": 20, "signed": true } - ]] - records: varint[]varint - # MC: ClientboundSelectAdvancementsTabPacket - packet_select_advancement_tab: - id?: string - # MC: ClientboundServerDataPacket - packet_server_data: - motd: anonymousNbt - iconBytes?: ByteArray - # MC: ClientboundSetActionBarTextPacket - packet_action_bar: - text: anonymousNbt - # MC: ClientboundSetBorderCenterPacket - packet_world_border_center: - x: f64 - z: f64 - # MC: ClientboundSetBorderLerpSizePacket - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varint - # MC: ClientboundSetBorderSizePacket - packet_world_border_size: - diameter: f64 - # MC: ClientboundSetBorderWarningDelayPacket - packet_world_border_warning_delay: - warningTime: varint - # MC: ClientboundSetBorderWarningDistancePacket - packet_world_border_warning_reach: - warningBlocks: varint - # MC: ClientboundSetCameraPacket - packet_camera: - cameraId: varint - # MC: ClientboundSetChunkCacheCenterPacket - packet_update_view_position: - chunkX: varint - chunkZ: varint - # MC: ClientboundSetChunkCacheRadiusPacket - packet_update_view_distance: - viewDistance: varint - # MC: ClientboundSetCursorItemPacket - packet_set_cursor_item: - contents: Slot # MC: ClientboundSetDefaultSpawnPositionPacket packet_spawn_position: RespawnData - # MC: ClientboundSetDisplayObjectivePacket - packet_scoreboard_display_objective: - position: varint - name: string - # MC: ClientboundSetEntityDataPacket - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - # MC: ClientboundSetEntityLinkPacket - packet_attach_entity: - entityId: i32 - vehicleId: i32 + # MC: ClientboundSetEntityMotionPacket packet_entity_velocity: entityId: varint velocity: lpVec3 - # MC: ClientboundSetEquipmentPacket - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] - # MC: ClientboundSetExperiencePacket - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - # MC: ClientboundSetHealthPacket - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - # MC: ClientboundSetHeldSlotPacket - packet_held_item_slot: - slot: varint - # MC: ClientboundSetObjectivePacket - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - type: action ? - if 0: varint - if 2: varint - default: void - number_format: action ? - if 0: [ - "option", - "varint" - ] - if 2: [ - "option", - "varint" - ] - default: void - styling: action ? - if 0: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - if 2: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - default: void - # MC: ClientboundSetPassengersPacket - packet_set_passengers: - entityId: varint - passengers: varint[]varint - # MC: ClientboundSetPlayerInventoryPacket - packet_set_player_inventory: - slotId: varint - contents: Slot - # MC: ClientboundSetPlayerTeamPacket - packet_teams: - team: string - mode: i8 => - - add - - remove - - change - - join - - leave - _: mode ? - if add or change: - name: anonymousNbt - flags: ["bitflags", { - "type": "u8", - "flags": ["friendly_fire", "see_friendly_invisible"] - }] - nameTagVisibility: varint => - - always - - never - - hide_for_other_teams - - hide_for_own_team - collisionRule: varint => - - always - - never - - push_other_teams - - push_own_team - formatting: varint - prefix: anonymousNbt - suffix: anonymousNbt - default: void - players: mode ? - if add or join or leave: string[]varint - default: void - # MC: ClientboundSetScorePacket - packet_scoreboard_score: - itemName: string - scoreName: string - value: varint - display_name?: anonymousNbt - number_format?: varint - styling: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - # MC: ClientboundSetSimulationDistancePacket - packet_simulation_distance: - distance: varint - # MC: ClientboundSetSubtitleTextPacket - packet_set_title_subtitle: - text: anonymousNbt - # MC: ClientboundSetTimePacket - packet_update_time: - age: i64 - time: i64 - tickDayTime: bool - # MC: ClientboundSetTitleTextPacket - packet_set_title_text: - text: anonymousNbt - # MC: ClientboundSetTitlesAnimationPacket - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - # MC: ClientboundSoundEntityPacket - packet_entity_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - entityId: varint - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundSoundPacket - packet_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundStartConfigurationPacket - packet_start_configuration: - # Empty - # MC: ClientboundStopSoundPacket - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - ## (Store Cookie is Common) - # MC: ClientboundSystemChatPacket - packet_system_chat: - content: anonymousNbt - isActionBar: bool - # MC: ClientboundTabListPacket - packet_playerlist_header: - header: anonymousNbt - footer: anonymousNbt - # MC: ClientboundTagQueryPacket - packet_nbt_query_response: - transactionId: varint - nbt: anonOptionalNbt - # MC: ClientboundTakeItemEntityPacket - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - # MC: ClientboundTeleportEntityPacket - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundTestInstanceBlockStatusPacket - packet_test_instance_block_status: - status: anonymousNbt - size?: vec3i - # MC: ClientboundTickingStatePacket - packet_set_ticking_state: - tick_rate: f32 - is_frozen: bool - # MC: ClientboundTickingStepPacket - packet_step_tick: - tick_steps: varint - ## (Transfer is common) - # MC: ClientboundUpdateAdvancementsPacket - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: anonymousNbt - description: anonymousNbt - icon: Slot - frameType: varint - flags: ["bitfield", [ - { "name": "unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } - ]] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - requirements: []varint - _: string[]varint - sendsTelemtryData: bool - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - showAdvancements: bool - # MC: ClientboundUpdateAttributesPacket - packet_entity_update_attributes: - entityId: varint - properties: []varint - key: varint => - - generic.armor - - generic.armor_toughness - - generic.attack_damage - - generic.attack_knockback - - generic.attack_speed - - player.block_break_speed - - player.block_interaction_range - - burning_time - - camera_distance - - explosion_knockback_resistance - - player.entity_interaction_range - - generic.fall_damage_multiplier - - generic.flying_speed - - generic.follow_range - - generic.gravity - - generic.jump_strength - - generic.knockback_resistance - - generic.luck - - generic.max_absorption - - generic.max_health - - generic.movement_speed - - generic.safe_fall_distance - - generic.scale - - zombie.spawn_reinforcements - - generic.step_height - - submerged_mining_speed - - sweeping_damage_ratio - - tempt_range - - water_movement_efficiency - - waypoint_transmit_range - - waypoint_receive_range - value: f64 - modifiers: []varint - uuid: string - amount: f64 - operation: i8 - # MC: ClientboundUpdateMobEffectPacket - packet_entity_effect: - entityId: varint - effectId: varint - amplifier: varint - duration: varint - # a bitfield of 0x01 for ambient, 0x02 for show particles - # flags: ["bitfield", [ - # { "name": "unused", "size": 4 }, - # { "name": "ambient", "size": 1 }, - # { "name": "showParticles", "size": 1 }, - # { "name": "showIcon", "size": 1 }, - # { "name": "blend", "size": 1 } - # ]] - flags: u8 - # MC: ClientboundUpdateRecipesPacket - packet_declare_recipes: - recipes: []varint - name: string - items: varint[]varint - stoneCutterRecipes: []varint - input: IDSet - slotDisplay: SlotDisplay - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags - # MC: ClientboundProjectilePowerPacket - packet_set_projectile_power: - id: varint - accelerationPower: f64 ## (ClientboundCustomReportDetailsPacket, ClientboundServerLinksPacket is common) # MC: ClientboundTrackedWaypointPacket packet_tracked_waypoint: @@ -2968,10 +1052,7 @@ chunkX: varint chunkZ: varint if azimuth: f32 - ## (clear_dialog is common) - # MC: ClientboundShowDialogGamePacket - packet_show_dialog: - dialog: ["registryEntryHolder", { "baseName": "dialog", "otherwise": { "name": "data", "type": "anonymousNbt" } }] + packet: name: varint => - bundle_delimiter @@ -3253,384 +1334,13 @@ if tracked_waypoint: packet_tracked_waypoint if clear_dialog: packet_common_clear_dialog if show_dialog: packet_show_dialog + ^play.toServer.types: - # MC: ServerboundAcceptTeleportationPacket - packet_teleport_confirm: - teleportId: varint - # MC: ServerboundBlockEntityTagQueryPacket - packet_query_block_nbt: - transactionId: varint - location: position - # MC: ServerboundSelectBundleItemPacket - packet_select_bundle_item: - slotId: varint - selectedItemIndex: varint - # MC: ServerboundChangeDifficultyPacket - packet_set_difficulty: - newDifficulty: varint => - 0: peaceful - 1: easy - 2: normal - 3: hard - # MC: ServerboundChangeGameModePacket - packet_change_gamemode: - mode: varint => - 0: survival - 1: creative - 2: adventure - 3: spectator - # MC: ServerboundChatAckPacket - packet_message_acknowledgement: - count: varint - # MC: ServerboundChatCommandPacket - packet_chat_command: - command: string - # MC: ServerboundChatCommandSignedPacket - packet_chat_command_signed: - command: string - timestamp: i64 - salt: i64 - argumentSignatures: []varint - argumentName: string - signature: [ - "buffer", - { - "count": 256 - } - ] - messageCount: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - checksum: u8 - # MC: ServerboundChatPacket - packet_chat_message: - message: string - timestamp: i64 - salt: i64 - signature?: [ - "buffer", - { - "count": 256 - } - ] - offset: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - checksum: u8 - # MC: ServerboundChatSessionUpdatePacket - packet_chat_session_update: - sessionUUID: UUID - expireTime: i64 - publicKey: ByteArray - signature: ByteArray - # MC: ServerboundChunkBatchReceivedPacket - packet_chunk_batch_received: - chunksPerTick: f32 - # MC: ServerboundClientCommandPacket - packet_client_command: - actionId: varint - # MC: ServerboundClientTickEndPacket - packet_tick_end: - # Empty - # MC: ServerboundCommandSuggestionPacket - packet_tab_complete: - transactionId: varint - text: string - # MC: ServerboundConfigurationAcknowledgedPacket - packet_configuration_acknowledged: - # Empty - # MC: ServerboundContainerButtonClickPacket - packet_enchant_item: - windowId: ContainerID - enchantment: varint - # MC: ServerboundContainerClickPacket - packet_window_click: - windowId: ContainerID - stateId: varint - slot: i16 - mouseButton: i8 - mode: varint - changedSlots: []varint - location: i16 - item?: HashedSlot - cursorItem?: HashedSlot - # MC: ServerboundContainerClosePacket - packet_close_window: - windowId: ContainerID - # MC: ServerboundContainerSlotStateChangedPacket - packet_set_slot_state: - slot_id: varint - window_id: ContainerID - state: bool - ## (ServerboundCookieResponsePacket is common) - # MC: ServerboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer + packet_debug_sample_subscription: !delete + # MC: ServerboundDebugSubscriptionRequestPacket packet_debug_subscription_request: subscriptions: DebugSubscriptionDataType[]varint - # MC: ServerboundEditBookPacket - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - # MC: ServerboundEntityTagQuery - packet_query_entity_nbt: - transactionId: varint - entityId: varint - # MC: ServerboundInteractPacket - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - # MC: ServerboundJigsawGeneratePacket - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundLockDifficultyPacket - packet_lock_difficulty: - locked: bool - - MovementFlags: ["bitflags", { - "type": "u8", - "flags": ["onGround", "hasHorizontalCollision"] - }] - # MC: ServerboundMovePlayerPacket.Pos - packet_position: - x: f64 - y: f64 - z: f64 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.PosRot - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.Rot - packet_look: - yaw: f32 - pitch: f32 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.StatusOnly - packet_flying: - flags: MovementFlags - # MC: ServerboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - # MC: ServerboundPaddleBoatPacket - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - # MC: ServerboundPickItemFromBlockPacket - packet_pick_item_from_block: - position: position - includeData: bool - # MC: ServerboundPickItemFromEntityPacket - packet_pick_item_from_entity: - entityId: varint - includeData: bool - # MC: ServerboundPingRequestPacket - packet_ping_request: - id: i64 - # MC: ServerboundPlaceRecipePacket - packet_craft_recipe_request: - windowId: ContainerID - recipeId: varint - makeAll: bool - # MC: ServerboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - # MC: ServerboundPlayerActionPacket - packet_block_dig: - status: varint - location: position - face: i8 - sequence: varint - # MC: ServerboundPlayerCommandPacket - packet_entity_action: - entityId: varint - actionId: varint => - - leave_bed - - start_sprinting - - stop_sprinting - - start_horse_jump - - stop_horse_jump - - open_vehicle_inventory - - start_elytra_flying - jumpBoost: varint - # MC: ServerboundPlayerInputPacket - # previously: packet_steer_vehicle - packet_player_input: - ## client/net/minecraft/world/entity/player/Input.java - inputs: ["bitflags", { - "type": "u8", - "flags": ["forward", "backward", "left", "right", "jump", "shift", "sprint"] - }] - # MC: ServerboundPlayerLoadedPacket - packet_player_loaded: - # Empty - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundRecipeBookChangeSettingsPacket - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - # MC: ServerboundRecipeBookSeenRecipePacket - packet_displayed_recipe: - recipeId: varint - # MC: ServerboundRenameItemPacket - packet_name_item: - name: string - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint - # MC: ServerboundSeenAdvancementsPacket - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - # MC: ServerboundSelectTradePacket - packet_select_trade: - slot: varint - # MC: ServerboundSetBeaconPacket - packet_set_beacon_effect: - primary_effect?: varint - secondary_effect?: varint - # MC: ServerboundSetCarriedItemPacket - packet_held_item_slot: - slotId: i16 - # MC: ServerboundSetCommandBlockPacket - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - # MC: ServerboundSetCommandMinecartPacket - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - # MC: ServerboundSetCreativeModeSlotPacket - packet_set_creative_slot: - slot: i16 - item: UntrustedSlot - # MC: ServerboundSetJigsawBlockPacket - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - selection_priority: varint - placement_priority: varint - # MC: ServerboundSetStructureBlockPacket - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varint - # New `strict` flag - flags: u8 => - - ignore_entities - - show_air - - show_bounding_box - - strict - # MC: ServerboundSetTestBlockPacket - packet_set_test_block: - position: position - mode: varint - message: string - # MC: ServerboundSignUpdatePacket - packet_update_sign: - location: position - isFrontText: bool - text1: string - text2: string - text3: string - text4: string - # MC: ServerboundSwingPacket - packet_arm_animation: - hand: varint - # MC: ServerboundTeleportToEntityPacket - packet_spectate: - target: UUID - # MC: ServerboundTestInstanceBlockActionPacket - packet_test_instance_block_action: - pos: position - action: varint - data: - test?: string - size: vec3i - rotation: varint - ignoreEntities: bool - status: varint - errorMessage?: anonymousNbt - # MC: ServerboundUseItemOnPacket - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - worldBorderHit: bool - sequence: varint - # MC: ServerboundUseItemPacket - packet_use_item: - hand: varint - sequence: varint - rotation: vec2f packet: name: varint => diff --git a/data/pc/1.21.9/protocol.json b/data/pc/1.21.9/protocol.json index 586af5003..2ae7f9e9e 100644 --- a/data/pc/1.21.9/protocol.json +++ b/data/pc/1.21.9/protocol.json @@ -5095,467 +5095,149 @@ } } }, - "configuration": { + "play": { "toClient": { "types": { - "packet": [ + "ChatType": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links", - "0x11": "clear_dialog", - "0x12": "show_dialog", - "0x13": "code_of_conduct" - }, - "type": "varint" - } - ] + "name": "translationKey", + "type": "string" }, { - "name": "params", + "name": "parameters", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "add_resource_pack": "packet_common_add_resource_pack", - "clear_dialog": "packet_common_clear_dialog", - "code_of_conduct": "packet_code_of_conduct", - "cookie_request": "packet_common_cookie_request", - "custom_payload": "packet_custom_payload", - "custom_report_details": "packet_common_custom_report_details", - "disconnect": "packet_disconnect", - "feature_flags": "packet_feature_flags", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "reset_chat": "packet_reset_chat", - "select_known_packs": "packet_common_select_known_packs", - "server_links": "packet_common_server_links", - "show_dialog": "packet_show_dialog", - "store_cookie": "packet_common_store_cookie", - "tags": "packet_tags", - "transfer": "packet_common_transfer" - } + "countType": "varint", + "type": "ChatTypeParameterType" } ] - } - ] - ], - "packet_code_of_conduct": [ - "container", - [ + }, { - "name": "contents", - "type": "string" + "name": "style", + "type": "anonymousNbt" } ] ], - "packet_custom_payload": [ + "ChatTypeParameterType": [ + "mapper", + { + "mappings": { + "0": "content", + "1": "sender", + "2": "target" + }, + "type": "varint" + } + ], + "ChatTypes": [ "container", [ { - "name": "channel", - "type": "string" + "name": "chat", + "type": "ChatType" }, { - "name": "data", - "type": "restBuffer" + "name": "narration", + "type": "ChatType" } ] ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" + "ChatTypesHolder": [ + "registryEntryHolder", + { + "baseName": "chatType", + "otherwise": { + "name": "data", + "type": "ChatTypes" } - ] + } ], - "packet_feature_flags": [ + "ExplosionParticleEntry": [ "container", [ { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ + "name": "data", + "type": "ExplosionParticleInfo" + }, { - "name": "keepAliveId", - "type": "i64" + "name": "weight", + "type": "varint" } ] ], - "packet_ping": [ + "ExplosionParticleInfo": [ "container", [ { - "name": "id", - "type": "i32" - } - ] - ], - "packet_registry_data": [ - "container", - [ + "name": "particle", + "type": "Particle" + }, { - "name": "id", - "type": "string" + "name": "scaling", + "type": "f32" }, { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] + "name": "speed", + "type": "f32" } ] ], - "packet_reset_chat": [ - "container", - [] + "PositionUpdateRelatives": [ + "bitflags", + { + "flags": [ + "x", + "y", + "z", + "yaw", + "pitch", + "dx", + "dy", + "dz", + "yawDelta" + ], + "type": "u32" + } ], - "packet_show_dialog": [ + "RecipeBookSetting": [ "container", [ { - "name": "dialog", - "type": "anonymousNbt" + "name": "open", + "type": "bool" + }, + { + "name": "filtering", + "type": "bool" } ] ], - "packet_tags": [ + "RecipeDisplay": [ "container", [ { - "name": "tags", + "name": "type", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] + "mappings": { + "0": "crafting_shapeless", + "1": "crafting_shaped", + "2": "furnace", + "3": "stonecutter", + "4": "smithing" + }, + "type": "varint" } ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet": [ - "container", - [ + }, { - "name": "name", + "name": "data", "type": [ - "mapper", - { - "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_click_action", - "0x09": "accept_code_of_conduct" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "accept_code_of_conduct": "packet_accept_code_of_conduct", - "cookie_response": "packet_common_cookie_response", - "custom_click_action": "packet_common_custom_click_action", - "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "settings": "packet_common_settings" - } - } - ] - } - ] - ], - "packet_accept_code_of_conduct": [ - "container", - [] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_resource_pack_receive": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "result", - "type": "varint" - } - ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "ChatType": [ - "container", - [ - { - "name": "translationKey", - "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "ChatTypeParameterType" - } - ] - }, - { - "name": "style", - "type": "anonymousNbt" - } - ] - ], - "ChatTypeParameterType": [ - "mapper", - { - "mappings": { - "0": "content", - "1": "sender", - "2": "target" - }, - "type": "varint" - } - ], - "ChatTypes": [ - "container", - [ - { - "name": "chat", - "type": "ChatType" - }, - { - "name": "narration", - "type": "ChatType" - } - ] - ], - "ChatTypesHolder": [ - "registryEntryHolder", - { - "baseName": "chatType", - "otherwise": { - "name": "data", - "type": "ChatTypes" - } - } - ], - "ExplosionParticleEntry": [ - "container", - [ - { - "name": "data", - "type": "ExplosionParticleInfo" - }, - { - "name": "weight", - "type": "varint" - } - ] - ], - "ExplosionParticleInfo": [ - "container", - [ - { - "name": "particle", - "type": "Particle" - }, - { - "name": "scaling", - "type": "f32" - }, - { - "name": "speed", - "type": "f32" - } - ] - ], - "PositionUpdateRelatives": [ - "bitflags", - { - "flags": [ - "x", - "y", - "z", - "yaw", - "pitch", - "dx", - "dy", - "dz", - "yawDelta" - ], - "type": "u32" - } - ], - "RecipeBookSetting": [ - "container", - [ - { - "name": "open", - "type": "bool" - }, - { - "name": "filtering", - "type": "bool" - } - ] - ], - "RecipeDisplay": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "mappings": { - "0": "crafting_shapeless", - "1": "crafting_shaped", - "2": "furnace", - "3": "stonecutter", - "4": "smithing" - }, - "type": "varint" - } - ] - }, - { - "name": "data", - "type": [ - "switch", + "switch", { "compareTo": "type", "fields": { @@ -11394,5 +11076,323 @@ ] } } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links", + "0x11": "clear_dialog", + "0x12": "show_dialog", + "0x13": "code_of_conduct" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "add_resource_pack": "packet_common_add_resource_pack", + "clear_dialog": "packet_common_clear_dialog", + "code_of_conduct": "packet_code_of_conduct", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "show_dialog": "packet_show_dialog", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" + } + } + ] + } + ] + ], + "packet_code_of_conduct": [ + "container", + [ + { + "name": "contents", + "type": "string" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "anonymousNbt" + } + ] + ], + "packet_feature_flags": [ + "container", + [ + { + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_ping": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], + "packet_registry_data": [ + "container", + [ + { + "name": "id", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] + } + ] + } + ] + ], + "packet_reset_chat": [ + "container", + [] + ], + "packet_show_dialog": [ + "container", + [ + { + "name": "dialog", + "type": "anonymousNbt" + } + ] + ], + "packet_tags": [ + "container", + [ + { + "name": "tags", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_click_action", + "0x09": "accept_code_of_conduct" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "accept_code_of_conduct": "packet_accept_code_of_conduct", + "cookie_response": "packet_common_cookie_response", + "custom_click_action": "packet_common_custom_click_action", + "custom_payload": "packet_custom_payload", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "select_known_packs": "packet_common_select_known_packs", + "settings": "packet_common_settings" + } + } + ] + } + ] + ], + "packet_accept_code_of_conduct": [ + "container", + [] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_pong": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], + "packet_resource_pack_receive": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "result", + "type": "varint" + } + ] + ] + } + } } } \ No newline at end of file diff --git a/data/pc/1.7/proto.yml b/data/pc/1.7/proto.yml index 43a7d1c3a..3c444adc0 100644 --- a/data/pc/1.7/proto.yml +++ b/data/pc/1.7/proto.yml @@ -1,56 +1,84 @@ !version: 1.7 +!base: 0.30c ^types: + byte_array: !delete + varint: native + pstring: native + u16: native - u8: native + i64: native + buffer: native + i32: native - i8: native + bool: native - i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + bitflags: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + compressedNbt: native + ByteArray: ["buffer", { "countType": "varint" }] + string: ["pstring", { "countType": "varint" }] + vec3i16: x: i16 y: i16 z: i16 - slot: + + slot: blockId: i16 _: blockId ? if -1: void - default: + default: itemCount: i8 itemDamage: i16 nbtData: compressedNbt - position_iii: + + position_iii: x: i32 y: i32 z: i32 - position_isi: + + position_isi: x: i32 y: i16 z: i32 - position_ibi: + + position_ibi: x: i32 y: u8 z: i32 + entityMetadataItem: $compareTo ? if 0: i8 if 1: i16 @@ -58,14 +86,15 @@ if 3: f32 if 4: string if 5: slot - if 6: + if 6: x: i32 y: i32 z: i32 - if 7: + if 7: pitch: f32 yaw: f32 roll: f32 + entityMetadata: [ "entityMetadataLoop", { @@ -106,19 +135,21 @@ ] ^handshaking.toClient.types: - packet: + packet: name: varint => params: ["switch",{"compareTo":"name","fields":{}}] ^handshaking.toServer.types: - packet_set_protocol: + packet_set_protocol: protocolVersion: varint serverHost: string serverPort: u16 nextState: varint - packet_legacy_server_list_ping: + + packet_legacy_server_list_ping: payload: u8 - packet: + + packet: name: varint => 0x00: set_protocol 0xfe: legacy_server_list_ping @@ -127,11 +158,13 @@ if legacy_server_list_ping: packet_legacy_server_list_ping ^status.toClient.types: - packet_server_info: + packet_server_info: response: string - packet_ping: + + packet_ping: time: i64 - packet: + + packet: name: varint => 0x00: server_info 0x01: ping @@ -140,11 +173,13 @@ if ping: packet_ping ^status.toServer.types: - packet_ping_start: + packet_ping_start: # Empty - packet_ping: + + packet_ping: time: i64 - packet: + + packet: name: varint => 0x00: ping_start 0x01: ping @@ -153,9 +188,10 @@ if ping: packet_ping ^login.toClient.types: - packet_disconnect: + packet_disconnect: reason: string - packet_encryption_begin: + + packet_encryption_begin: serverId: string publicKey: [ "buffer", @@ -169,10 +205,12 @@ "countType": "i16" } ] - packet_success: + + packet_success: uuid: string username: string - packet: + + packet: name: varint => 0x00: disconnect 0x01: encryption_begin @@ -183,9 +221,10 @@ if success: packet_success ^login.toServer.types: - packet_login_start: + packet_login_start: username: string - packet_encryption_begin: + + packet_encryption_begin: sharedSecret: [ "buffer", { @@ -198,7 +237,8 @@ "countType": "i16" } ] - packet: + + packet: name: varint => 0x00: login_start 0x01: encryption_begin @@ -207,51 +247,63 @@ if encryption_begin: packet_encryption_begin ^play.toClient.types: - packet_keep_alive: + packet_keep_alive: keepAliveId: i32 - packet_login: + + packet_login: entityId: i32 gameMode: u8 dimension: i8 difficulty: u8 maxPlayers: u8 levelType: string - packet_chat: + + packet_chat: message: string - packet_update_time: + + packet_update_time: age: i64 time: i64 - packet_entity_equipment: + + packet_entity_equipment: entityId: i32 slot: i16 item: slot - packet_spawn_position: + + packet_spawn_position: location: position_iii - packet_update_health: + + packet_update_health: health: f32 food: i16 foodSaturation: f32 - packet_respawn: + + packet_respawn: dimension: i32 difficulty: u8 gamemode: u8 levelType: string - packet_position: + + packet_position: x: f64 y: f64 z: f64 yaw: f32 pitch: f32 onGround: bool - packet_held_item_slot: + + packet_held_item_slot: slot: i8 - packet_bed: + + packet_bed: entityId: i32 location: position_ibi - packet_animation: + + packet_animation: entityId: varint animation: u8 - packet_named_entity_spawn: + + packet_named_entity_spawn: entityId: varint playerUUID: string playerName: string @@ -266,10 +318,12 @@ pitch: i8 currentItem: i16 metadata: entityMetadata - packet_collect: + + packet_collect: collectedEntityId: i32 collectorEntityId: i32 - packet_spawn_entity: + + packet_spawn_entity: entityId: varint type: i8 x: i32 @@ -277,7 +331,7 @@ z: i32 pitch: i8 yaw: i8 - objectData: + objectData: intField: i32 velocityX: intField ? if 0: void @@ -288,7 +342,8 @@ velocityZ: intField ? if 0: void default: i16 - packet_spawn_entity_living: + + packet_spawn_entity_living: entityId: varint type: u8 x: i32 @@ -299,73 +354,90 @@ headPitch: i8 velocity: vec3i16 metadata: entityMetadata - packet_spawn_entity_painting: + + packet_spawn_entity_painting: entityId: varint title: string location: position_iii direction: i32 - packet_spawn_entity_experience_orb: + + packet_spawn_entity_experience_orb: entityId: varint x: i32 y: i32 z: i32 count: i16 - packet_entity_velocity: + + packet_entity_velocity: entityId: i32 velocity: vec3i16 - packet_entity_destroy: + + packet_entity_destroy: entityIds: i32[]i8 - packet_entity: + + packet_entity: entityId: i32 - packet_rel_entity_move: + + packet_rel_entity_move: entityId: i32 dX: i8 dY: i8 dZ: i8 - packet_entity_look: + + packet_entity_look: entityId: i32 yaw: i8 pitch: i8 - packet_entity_move_look: + + packet_entity_move_look: entityId: i32 dX: i8 dY: i8 dZ: i8 yaw: i8 pitch: i8 - packet_entity_teleport: + + packet_entity_teleport: entityId: i32 x: i32 y: i32 z: i32 yaw: i8 pitch: i8 - packet_entity_head_rotation: + + packet_entity_head_rotation: entityId: i32 headYaw: i8 - packet_entity_status: + + packet_entity_status: entityId: i32 entityStatus: i8 - packet_attach_entity: + + packet_attach_entity: entityId: i32 vehicleId: i32 leash: bool - packet_entity_metadata: + + packet_entity_metadata: entityId: i32 metadata: entityMetadata - packet_entity_effect: + + packet_entity_effect: entityId: i32 effectId: i8 amplifier: i8 duration: i16 - packet_remove_entity_effect: + + packet_remove_entity_effect: entityId: i32 effectId: i8 - packet_experience: + + packet_experience: experienceBar: f32 level: i16 totalExperience: i16 - packet_update_attributes: + + packet_update_attributes: entityId: i32 properties: []i32 key: string @@ -374,7 +446,8 @@ uuid: UUID amount: f64 operation: i8 - packet_map_chunk: + + packet_map_chunk: x: i32 z: i32 groundUp: bool @@ -386,7 +459,8 @@ "countType": "i32" } ] - packet_multi_block_change: + + packet_multi_block_change: chunkX: i32 chunkZ: i32 recordCount: [ @@ -429,20 +503,24 @@ } ] ] - packet_block_change: + + packet_block_change: location: position_ibi type: varint metadata: u8 - packet_block_action: + + packet_block_action: location: position_isi byte1: u8 byte2: u8 blockId: varint - packet_block_break_animation: + + packet_block_break_animation: entityId: varint location: position_iii destroyStage: i8 - packet_map_chunk_bulk: + + packet_map_chunk_bulk: chunkColumnCount: [ "count", { @@ -469,7 +547,8 @@ z: i32 bitMap: u16 addBitMap: u16 - packet_explosion: + + packet_explosion: x: f32 y: f32 z: f32 @@ -481,19 +560,22 @@ playerMotionX: f32 playerMotionY: f32 playerMotionZ: f32 - packet_world_event: + + packet_world_event: effectId: i32 location: position_ibi data: i32 global: bool - packet_named_sound_effect: + + packet_named_sound_effect: soundName: string x: i32 y: i32 z: i32 volume: f32 pitch: u8 - packet_world_particles: + + packet_world_particles: particleName: string x: f32 y: f32 @@ -503,16 +585,19 @@ offsetZ: f32 particleData: f32 particles: i32 - packet_game_state_change: + + packet_game_state_change: reason: u8 gameMode: f32 - packet_spawn_entity_weather: + + packet_spawn_entity_weather: entityId: varint type: i8 x: i32 y: i32 z: i32 - packet_open_window: + + packet_open_window: windowId: u8 inventoryType: u8 windowTitle: string @@ -521,30 +606,37 @@ entityId: inventoryType ? if 11: i32 default: void - packet_close_window: + + packet_close_window: windowId: u8 - packet_set_slot: + + packet_set_slot: windowId: i8 slot: i16 item: slot - packet_window_items: + + packet_window_items: windowId: u8 items: slot[]i16 - packet_craft_progress_bar: + + packet_craft_progress_bar: windowId: u8 property: i16 value: i16 - packet_transaction: + + packet_transaction: windowId: u8 action: i16 accepted: bool - packet_update_sign: + + packet_update_sign: location: position_isi text1: string text2: string text3: string text4: string - packet_map: + + packet_map: itemDamage: varint data: [ "buffer", @@ -552,31 +644,39 @@ "countType": "i16" } ] - packet_tile_entity_data: + + packet_tile_entity_data: location: position_isi action: u8 nbtData: compressedNbt - packet_open_sign_entity: + + packet_open_sign_entity: location: position_iii - packet_statistics: + + packet_statistics: entries: []varint name: string value: varint - packet_player_info: + + packet_player_info: playerName: string online: bool ping: i16 - packet_abilities: + + packet_abilities: flags: i8 flyingSpeed: f32 walkingSpeed: f32 - packet_tab_complete: + + packet_tab_complete: matches: string[]varint - packet_scoreboard_objective: + + packet_scoreboard_objective: name: string displayText: string action: i8 - packet_scoreboard_score: + + packet_scoreboard_score: itemName: string action: i8 scoreName: action ? @@ -585,10 +685,12 @@ value: action ? if 1: void default: i32 - packet_scoreboard_display_objective: + + packet_scoreboard_display_objective: position: i8 name: string - packet_scoreboard_team: + + packet_scoreboard_team: team: string mode: i8 name: mode ? @@ -612,7 +714,8 @@ if 3: string[]i16 if 4: string[]i16 default: void - packet_custom_payload: + + packet_custom_payload: channel: string data: [ "buffer", @@ -620,9 +723,11 @@ "countType": "i16" } ] - packet_kick_disconnect: + + packet_kick_disconnect: reason: string - packet: + + packet: name: varint => 0x00: keep_alive 0x01: login @@ -757,11 +862,13 @@ if kick_disconnect: packet_kick_disconnect ^play.toServer.types: - packet_keep_alive: + packet_keep_alive: keepAliveId: i32 - packet_chat: + + packet_chat: message: string - packet_use_entity: + + packet_use_entity: target: i32 mouse: i8 x: mouse ? @@ -773,19 +880,23 @@ z: mouse ? if 2: f32 default: void - packet_flying: + + packet_flying: onGround: bool - packet_position: + + packet_position: x: f64 stance: f64 y: f64 z: f64 onGround: bool - packet_look: + + packet_look: yaw: f32 pitch: f32 onGround: bool - packet_position_look: + + packet_position_look: x: f64 stance: f64 y: f64 @@ -793,72 +904,89 @@ yaw: f32 pitch: f32 onGround: bool - packet_block_dig: + + packet_block_dig: status: i8 location: position_ibi face: i8 - packet_block_place: + + packet_block_place: location: position_ibi direction: i8 heldItem: slot cursorX: i8 cursorY: i8 cursorZ: i8 - packet_held_item_slot: + + packet_held_item_slot: slotId: i16 - packet_arm_animation: + + packet_arm_animation: entityId: i32 animation: i8 - packet_entity_action: + + packet_entity_action: entityId: i32 actionId: i8 jumpBoost: i32 - packet_steer_vehicle: + + packet_steer_vehicle: sideways: f32 forward: f32 jump: bool unmount: bool - packet_close_window: + + packet_close_window: windowId: u8 - packet_window_click: + + packet_window_click: windowId: i8 slot: i16 mouseButton: i8 action: i16 mode: i8 item: slot - packet_transaction: + + packet_transaction: windowId: i8 action: i16 accepted: bool - packet_set_creative_slot: + + packet_set_creative_slot: slot: i16 item: slot - packet_enchant_item: + + packet_enchant_item: windowId: i8 enchantment: i8 - packet_update_sign: + + packet_update_sign: location: position_isi text1: string text2: string text3: string text4: string - packet_abilities: + + packet_abilities: flags: i8 flyingSpeed: f32 walkingSpeed: f32 - packet_tab_complete: + + packet_tab_complete: text: string - packet_settings: + + packet_settings: locale: string viewDistance: i8 chatFlags: i8 chatColors: bool difficulty: u8 showCape: bool - packet_client_command: + + packet_client_command: payload: i8 - packet_custom_payload: + + packet_custom_payload: channel: string data: [ "buffer", @@ -866,7 +994,8 @@ "countType": "i16" } ] - packet: + + packet: name: varint => 0x00: keep_alive 0x01: chat @@ -917,3 +1046,7 @@ if settings: packet_settings if client_command: packet_client_command if custom_payload: packet_custom_payload + +^toServer.types: !delete + +^toClient.types: !delete diff --git a/data/pc/1.8/proto.yml b/data/pc/1.8/proto.yml index 1fd70fb4a..3d65b346c 100644 --- a/data/pc/1.8/proto.yml +++ b/data/pc/1.8/proto.yml @@ -1,45 +1,28 @@ !version: 1.8 +!base: 1.7 ^types: - varint: native + compressedNbt: !delete + + position_iii: !delete + + position_isi: !delete + + position_ibi: !delete + varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native + optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: + + slot: blockId: i16 _: blockId ? if -1: void - default: + default: itemCount: i8 itemDamage: i16 nbtData: optionalNbt + position: [ "bitfield", [ @@ -60,111 +43,9 @@ } ] ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: i16 - if 2: i32 - if 3: f32 - if 4: string - if 5: slot - if 6: - x: i32 - y: i32 - z: i32 - if 7: - pitch: f32 - yaw: f32 - roll: f32 - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 127, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "bitfield", - [ - { - "name": "type", - "size": 3, - "signed": false - }, - { - "name": "key", - "size": 5, - "signed": false - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping ^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: + packet_encryption_begin: serverId: string publicKey: [ "buffer", @@ -178,12 +59,11 @@ "countType": "varint" } ] - packet_success: - uuid: string - username: string - packet_compress: + + packet_compress: threshold: varint - packet: + + packet: name: varint => 0x00: disconnect 0x01: encryption_begin @@ -196,9 +76,7 @@ if compress: packet_compress ^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: + packet_encryption_begin: sharedSecret: [ "buffer", { @@ -211,18 +89,12 @@ "countType": "varint" } ] - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin ^play.toClient.types: - packet_keep_alive: + packet_keep_alive: keepAliveId: varint - packet_login: + + packet_login: entityId: i32 gameMode: u8 dimension: i8 @@ -230,43 +102,37 @@ maxPlayers: u8 levelType: string reducedDebugInfo: bool - packet_chat: + + packet_chat: message: string position: i8 - packet_update_time: - age: i64 - time: i64 - packet_entity_equipment: + + packet_entity_equipment: entityId: varint slot: i16 item: slot - packet_spawn_position: + + packet_spawn_position: location: position - packet_update_health: + + packet_update_health: health: f32 food: varint foodSaturation: f32 - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_position: + + packet_position: x: f64 y: f64 z: f64 yaw: f32 pitch: f32 flags: i8 - packet_held_item_slot: - slot: i8 - packet_bed: + + packet_bed: entityId: varint location: position - packet_animation: - entityId: varint - animation: u8 - packet_named_entity_spawn: + + packet_named_entity_spawn: entityId: varint playerUUID: UUID x: i32 @@ -276,10 +142,12 @@ pitch: i8 currentItem: i16 metadata: entityMetadata - packet_collect: + + packet_collect: collectedEntityId: varint collectorEntityId: varint - packet_spawn_entity: + + packet_spawn_entity: entityId: varint type: i8 x: i32 @@ -291,47 +159,37 @@ velocity: objectData ? if 0: void default: vec3i16 - packet_spawn_entity_living: - entityId: varint - type: u8 - x: i32 - y: i32 - z: i32 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: + + packet_spawn_entity_painting: entityId: varint title: string location: position direction: u8 - packet_spawn_entity_experience_orb: - entityId: varint - x: i32 - y: i32 - z: i32 - count: i16 - packet_entity_velocity: + + packet_entity_velocity: entityId: varint velocity: vec3i16 - packet_entity_destroy: + + packet_entity_destroy: entityIds: varint[]varint - packet_entity: + + packet_entity: entityId: varint - packet_rel_entity_move: + + packet_rel_entity_move: entityId: varint dX: i8 dY: i8 dZ: i8 onGround: bool - packet_entity_look: + + packet_entity_look: entityId: varint yaw: i8 pitch: i8 onGround: bool - packet_entity_move_look: + + packet_entity_move_look: entityId: varint dX: i8 dY: i8 @@ -339,7 +197,8 @@ yaw: i8 pitch: i8 onGround: bool - packet_entity_teleport: + + packet_entity_teleport: entityId: varint x: i32 y: i32 @@ -347,33 +206,32 @@ yaw: i8 pitch: i8 onGround: bool - packet_entity_head_rotation: + + packet_entity_head_rotation: entityId: varint headYaw: i8 - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_attach_entity: - entityId: i32 - vehicleId: i32 - leash: bool - packet_entity_metadata: + + packet_entity_metadata: entityId: varint metadata: entityMetadata - packet_entity_effect: + + packet_entity_effect: entityId: varint effectId: i8 amplifier: i8 duration: varint hideParticles: bool - packet_remove_entity_effect: + + packet_remove_entity_effect: entityId: varint effectId: i8 - packet_experience: + + packet_experience: experienceBar: f32 level: varint totalExperience: varint - packet_update_attributes: + + packet_update_attributes: entityId: varint properties: []i32 key: string @@ -382,7 +240,8 @@ uuid: UUID amount: f64 operation: i8 - packet_map_chunk: + + packet_map_chunk: x: i32 z: i32 groundUp: bool @@ -393,57 +252,45 @@ "countType": "varint" } ] - packet_multi_block_change: + + packet_multi_block_change: chunkX: i32 chunkZ: i32 records: []varint horizontalPos: u8 y: u8 blockId: varint - packet_block_change: + + packet_block_change: location: position type: varint - packet_block_action: + + packet_block_action: location: position byte1: u8 byte2: u8 blockId: varint - packet_block_break_animation: + + packet_block_break_animation: entityId: varint location: position destroyStage: i8 - packet_map_chunk_bulk: + + packet_map_chunk_bulk: skyLightSent: bool meta: []varint x: i32 z: i32 bitMap: u16 data: restBuffer - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_world_event: + + packet_world_event: effectId: i32 location: position data: i32 global: bool - packet_named_sound_effect: - soundName: string - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: u8 - packet_world_particles: + + packet_world_particles: particleId: i32 longDistance: bool x: f32 @@ -459,16 +306,8 @@ if 37: varint[]$1 if 38: varint[]$1 default: void - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: i32 - y: i32 - z: i32 - packet_open_window: + + packet_open_window: windowId: u8 inventoryType: string windowTitle: string @@ -476,30 +315,20 @@ entityId: inventoryType ? if EntityHorse: i32 default: void - packet_close_window: - windowId: u8 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_transaction: + + packet_transaction: windowId: i8 action: i16 accepted: bool - packet_update_sign: + + packet_update_sign: location: position text1: string text2: string text3: string text4: string - packet_map: + + packet_map: itemDamage: varint scale: i8 icons: []varint @@ -524,16 +353,15 @@ "countType": "varint" } ] - packet_tile_entity_data: + + packet_tile_entity_data: location: position action: u8 nbtData: optionalNbt - packet_open_sign_entity: + + packet_open_sign_entity: location: position - packet_statistics: - entries: []varint - name: string - value: varint + # MC: ClientboundPlayerInfoPacket packet_player_info: action: varint => @@ -562,13 +390,8 @@ if update_display_name: displayName?: string if remove_player: void - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_tab_complete: - matches: string[]varint - packet_scoreboard_objective: + + packet_scoreboard_objective: name: string action: i8 displayText: action ? @@ -579,17 +402,16 @@ if 0: string if 2: string default: void - packet_scoreboard_score: + + packet_scoreboard_score: itemName: string action: varint scoreName: string value: action ? if 1: void default: varint - packet_scoreboard_display_objective: - position: i8 - name: string - packet_scoreboard_team: + + packet_scoreboard_team: team: string mode: i8 name: mode ? @@ -621,14 +443,15 @@ if 3: string[]varint if 4: string[]varint default: void - packet_custom_payload: + + packet_custom_payload: channel: string data: restBuffer - packet_kick_disconnect: - reason: string - packet_difficulty: + + packet_difficulty: difficulty: u8 - packet_combat_event: + + packet_combat_event: event: varint duration: event ? if 1: varint @@ -643,9 +466,11 @@ message: event ? if 2: string default: void - packet_camera: + + packet_camera: cameraId: varint - packet_world_border: + + packet_world_border: action: varint radius: action ? if 0: f64 @@ -681,7 +506,8 @@ if 3: varint if 5: varint default: void - packet_title: + + packet_title: action: varint text: action ? if 0: string @@ -696,18 +522,23 @@ fadeOut: action ? if 2: i32 default: void - packet_set_compression: + + packet_set_compression: threshold: varint - packet_playerlist_header: + + packet_playerlist_header: header: string footer: string - packet_resource_pack_send: + + packet_resource_pack_send: url: string hash: string - packet_update_entity_nbt: + + packet_update_entity_nbt: entityId: varint tag: nbt - packet: + + packet: name: varint => 0x00: keep_alive 0x01: login @@ -860,11 +691,10 @@ if update_entity_nbt: packet_update_entity_nbt ^play.toServer.types: - packet_keep_alive: + packet_keep_alive: keepAliveId: varint - packet_chat: - message: string - packet_use_entity: + + packet_use_entity: target: varint mouse: varint x: mouse ? @@ -876,96 +706,88 @@ z: mouse ? if 2: f32 default: void - packet_flying: - onGround: bool - packet_position: + + packet_position: x: f64 y: f64 z: f64 onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_position_look: + + packet_position_look: x: f64 y: f64 z: f64 yaw: f32 pitch: f32 onGround: bool - packet_block_dig: + + packet_block_dig: status: varint location: position face: i8 - packet_block_place: + + packet_block_place: location: position direction: i8 heldItem: slot cursorX: i8 cursorY: i8 cursorZ: i8 - packet_held_item_slot: - slotId: i16 - packet_arm_animation: + + packet_arm_animation: # Empty - packet_entity_action: + + packet_entity_action: entityId: varint actionId: varint jumpBoost: varint - packet_steer_vehicle: + + packet_steer_vehicle: sideways: f32 forward: f32 jump: u8 - packet_close_window: - windowId: u8 - packet_window_click: + + packet_window_click: windowId: u8 slot: i16 mouseButton: i8 action: i16 mode: i8 item: slot - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_set_creative_slot: - slot: i16 - item: slot - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_update_sign: + + packet_update_sign: location: position text1: string text2: string text3: string text4: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_tab_complete: + + packet_tab_complete: text: string block?: position - packet_settings: + + packet_settings: locale: string viewDistance: i8 chatFlags: i8 chatColors: bool skinParts: u8 - packet_client_command: + + packet_client_command: payload: varint - packet_custom_payload: + + packet_custom_payload: channel: string data: restBuffer - packet_spectate: + + packet_spectate: target: UUID - packet_resource_pack_receive: + + packet_resource_pack_receive: hash: string result: varint - packet: + + packet: name: varint => 0x00: keep_alive 0x01: chat diff --git a/data/pc/1.9.1-pre2/proto.yml b/data/pc/1.9.1-pre2/proto.yml index cc5003910..561a7c56c 100644 --- a/data/pc/1.9.1-pre2/proto.yml +++ b/data/pc/1.9.1-pre2/proto.yml @@ -1,438 +1,8 @@ !version: 1.9.1-pre2 - -^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - blockId: i16 - _: blockId ? - if -1: void - default: - itemCount: i8 - itemDamage: i16 - nbtData: optionalNbt - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: slot - if 6: bool - if 7: - pitch: f32 - yaw: f32 - roll: f32 - if 8: position - if 9: [ - "option", - "position" - ] - if 10: varint - if 11: [ - "option", - "UUID" - ] - if 12: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "i8" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin +!base: 1.9 ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: u8 - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: string - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - name: string - value: varint - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: - matches: string[]varint - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: u8 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: varint - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: particleId ? - if 36: varint[]$2 - if 37: varint[]$1 - if 38: varint[]$1 - default: void - packet_login: + packet_login: entityId: i32 gameMode: u8 dimension: i32 @@ -440,662 +10,3 @@ maxPlayers: u8 levelType: string reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - directionAndType: i8 - x: i8 - z: i8 - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.8.9/client/net/minecraft/network/play/server/S38PacketPlayerListItem.java#L113 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: string - if 2: string - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - color: mode ? - if 0: i8 - if 2: i8 - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - default: void - fadeIn: action ? - if 2: i32 - default: void - stay: action ? - if 2: i32 - default: void - fadeOut: action ? - if 2: i32 - default: void - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: u8 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet: - name: varint => - 0x00: spawn_entity - 0x01: spawn_entity_experience_orb - 0x02: spawn_entity_weather - 0x03: spawn_entity_living - 0x04: spawn_entity_painting - 0x05: named_entity_spawn - 0x06: animation - 0x07: statistics - 0x08: block_break_animation - 0x09: tile_entity_data - 0x0a: block_action - 0x0b: block_change - 0x0c: boss_bar - 0x0d: difficulty - 0x0e: tab_complete - 0x0f: chat - 0x10: multi_block_change - 0x11: transaction - 0x12: close_window - 0x13: open_window - 0x14: window_items - 0x15: craft_progress_bar - 0x16: set_slot - 0x17: set_cooldown - 0x18: custom_payload - 0x19: named_sound_effect - 0x1a: kick_disconnect - 0x1b: entity_status - 0x1c: explosion - 0x1d: unload_chunk - 0x1e: game_state_change - 0x1f: keep_alive - 0x20: map_chunk - 0x21: world_event - 0x22: world_particles - 0x23: login - 0x24: map - 0x25: rel_entity_move - 0x26: entity_move_look - 0x27: entity_look - 0x28: entity - 0x29: vehicle_move - 0x2a: open_sign_entity - 0x2b: abilities - 0x2c: combat_event - 0x2d: player_info - 0x2e: position - 0x2f: bed - 0x30: entity_destroy - 0x31: remove_entity_effect - 0x32: resource_pack_send - 0x33: respawn - 0x34: entity_head_rotation - 0x35: world_border - 0x36: camera - 0x37: held_item_slot - 0x38: scoreboard_display_objective - 0x39: entity_metadata - 0x3a: attach_entity - 0x3b: entity_velocity - 0x3c: entity_equipment - 0x3d: experience - 0x3e: update_health - 0x3f: scoreboard_objective - 0x40: set_passengers - 0x41: teams - 0x42: scoreboard_score - 0x43: spawn_position - 0x44: update_time - 0x45: title - 0x46: update_sign - 0x47: sound_effect - 0x48: playerlist_header - 0x49: collect - 0x4a: entity_teleport - 0x4b: entity_update_attributes - 0x4c: entity_effect - params: name ? - if spawn_entity: packet_spawn_entity - if spawn_entity_experience_orb: packet_spawn_entity_experience_orb - if spawn_entity_weather: packet_spawn_entity_weather - if spawn_entity_living: packet_spawn_entity_living - if spawn_entity_painting: packet_spawn_entity_painting - if named_entity_spawn: packet_named_entity_spawn - if animation: packet_animation - if statistics: packet_statistics - if block_break_animation: packet_block_break_animation - if tile_entity_data: packet_tile_entity_data - if block_action: packet_block_action - if block_change: packet_block_change - if boss_bar: packet_boss_bar - if difficulty: packet_difficulty - if tab_complete: packet_tab_complete - if chat: packet_chat - if multi_block_change: packet_multi_block_change - if transaction: packet_transaction - if close_window: packet_close_window - if open_window: packet_open_window - if window_items: packet_window_items - if craft_progress_bar: packet_craft_progress_bar - if set_slot: packet_set_slot - if set_cooldown: packet_set_cooldown - if custom_payload: packet_custom_payload - if named_sound_effect: packet_named_sound_effect - if kick_disconnect: packet_kick_disconnect - if entity_status: packet_entity_status - if explosion: packet_explosion - if unload_chunk: packet_unload_chunk - if game_state_change: packet_game_state_change - if keep_alive: packet_keep_alive - if map_chunk: packet_map_chunk - if world_event: packet_world_event - if world_particles: packet_world_particles - if login: packet_login - if map: packet_map - if rel_entity_move: packet_rel_entity_move - if entity_move_look: packet_entity_move_look - if entity_look: packet_entity_look - if entity: packet_entity - if vehicle_move: packet_vehicle_move - if open_sign_entity: packet_open_sign_entity - if abilities: packet_abilities - if combat_event: packet_combat_event - if player_info: packet_player_info - if position: packet_position - if bed: packet_bed - if entity_destroy: packet_entity_destroy - if remove_entity_effect: packet_remove_entity_effect - if resource_pack_send: packet_resource_pack_send - if respawn: packet_respawn - if entity_update_attributes: packet_entity_update_attributes - if world_border: packet_world_border - if camera: packet_camera - if held_item_slot: packet_held_item_slot - if scoreboard_display_objective: packet_scoreboard_display_objective - if entity_metadata: packet_entity_metadata - if attach_entity: packet_attach_entity - if entity_velocity: packet_entity_velocity - if entity_equipment: packet_entity_equipment - if experience: packet_experience - if update_health: packet_update_health - if scoreboard_objective: packet_scoreboard_objective - if set_passengers: packet_set_passengers - if teams: packet_teams - if scoreboard_score: packet_scoreboard_score - if spawn_position: packet_spawn_position - if update_time: packet_update_time - if title: packet_title - if update_sign: packet_update_sign - if sound_effect: packet_sound_effect - if playerlist_header: packet_playerlist_header - if collect: packet_collect - if entity_teleport: packet_entity_teleport - if entity_head_rotation: packet_entity_head_rotation - if entity_effect: packet_entity_effect - -^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_tab_complete: - text: string - assumeCommand: bool - lookedAtBlock?: position - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: varint - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_resource_pack_receive: - hash: string - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: i8 - cursorY: i8 - cursorZ: i8 - packet_use_item: - hand: varint - packet: - name: varint => - 0x00: teleport_confirm - 0x01: tab_complete - 0x02: chat - 0x03: client_command - 0x04: settings - 0x05: transaction - 0x06: enchant_item - 0x07: window_click - 0x08: close_window - 0x09: custom_payload - 0x0a: use_entity - 0x0b: keep_alive - 0x0c: position - 0x0d: position_look - 0x0e: look - 0x0f: flying - 0x10: vehicle_move - 0x11: steer_boat - 0x12: abilities - 0x13: block_dig - 0x14: entity_action - 0x15: steer_vehicle - 0x16: resource_pack_receive - 0x17: held_item_slot - 0x18: set_creative_slot - 0x19: update_sign - 0x1a: arm_animation - 0x1b: spectate - 0x1c: block_place - 0x1d: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if transaction: packet_transaction - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if keep_alive: packet_keep_alive - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item diff --git a/data/pc/1.9.4/proto.yml b/data/pc/1.9.4/proto.yml index 51ebd2bc4..01c89457a 100644 --- a/data/pc/1.9.4/proto.yml +++ b/data/pc/1.9.4/proto.yml @@ -1,406 +1,10 @@ !version: 1.9.4 - -^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - blockId: i16 - _: blockId ? - if -1: void - default: - itemCount: i8 - itemDamage: i16 - nbtData: optionalNbt - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: slot - if 6: bool - if 7: - pitch: f32 - yaw: f32 - roll: f32 - if 8: position - if 9: [ - "option", - "position" - ] - if 10: varint - if 11: [ - "option", - "UUID" - ] - if 12: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "i8" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin +!base: 1.9.2 ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: u8 - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: string - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - name: string - value: varint - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: - matches: string[]varint - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: u8 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: varint - packet_map_chunk: + packet_update_sign: !delete + + packet_map_chunk: x: i32 z: i32 groundUp: bool @@ -412,343 +16,8 @@ } ] blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: particleId ? - if 36: varint[]$2 - if 37: varint[]$1 - if 38: varint[]$1 - default: void - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - directionAndType: i8 - x: i8 - z: i8 - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.8.9/client/net/minecraft/network/play/server/S38PacketPlayerListItem.java#L113 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: string - if 2: string - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - color: mode ? - if 0: i8 - if 2: i8 - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - default: void - fadeIn: action ? - if 2: i32 - default: void - stay: action ? - if 2: i32 - default: void - fadeOut: action ? - if 2: i32 - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: u8 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -903,192 +172,3 @@ if entity_teleport: packet_entity_teleport if entity_head_rotation: packet_entity_head_rotation if entity_effect: packet_entity_effect - -^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_tab_complete: - text: string - assumeCommand: bool - lookedAtBlock?: position - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: varint - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_resource_pack_receive: - hash: string - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: i8 - cursorY: i8 - cursorZ: i8 - packet_use_item: - hand: varint - packet: - name: varint => - 0x00: teleport_confirm - 0x01: tab_complete - 0x02: chat - 0x03: client_command - 0x04: settings - 0x05: transaction - 0x06: enchant_item - 0x07: window_click - 0x08: close_window - 0x09: custom_payload - 0x0a: use_entity - 0x0b: keep_alive - 0x0c: position - 0x0d: position_look - 0x0e: look - 0x0f: flying - 0x10: vehicle_move - 0x11: steer_boat - 0x12: abilities - 0x13: block_dig - 0x14: entity_action - 0x15: steer_vehicle - 0x16: resource_pack_receive - 0x17: held_item_slot - 0x18: set_creative_slot - 0x19: update_sign - 0x1a: arm_animation - 0x1b: spectate - 0x1c: block_place - 0x1d: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if transaction: packet_transaction - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if keep_alive: packet_keep_alive - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item diff --git a/data/pc/1.9/proto.yml b/data/pc/1.9/proto.yml index 520202b58..221a73439 100644 --- a/data/pc/1.9/proto.yml +++ b/data/pc/1.9/proto.yml @@ -1,232 +1,14 @@ !version: 1.9 +!base: 15w40b -^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - blockId: i16 - _: blockId ? - if -1: void - default: - itemCount: i8 - itemDamage: i16 - nbtData: optionalNbt - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: slot - if 6: bool - if 7: - pitch: f32 - yaw: f32 - roll: f32 - if 8: position - if 9: [ - "option", - "position" - ] - if 10: varint - if 11: [ - "option", - "UUID" - ] - if 12: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "i8" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping +^play.toClient.types: + packet_update_attributes: !delete -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress + packet_scoreboard_team: !delete -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin + packet_set_compression: !delete -^play.toClient.types: - packet_spawn_entity: + packet_spawn_entity: entityId: varint objectUUID: UUID type: i8 @@ -237,19 +19,22 @@ yaw: i8 objectData: i32 velocity: vec3i16 - packet_spawn_entity_experience_orb: + + packet_spawn_entity_experience_orb: entityId: varint x: f64 y: f64 z: f64 count: i16 - packet_spawn_entity_weather: + + packet_spawn_entity_weather: entityId: varint type: i8 x: f64 y: f64 z: f64 - packet_spawn_entity_living: + + packet_spawn_entity_living: entityId: varint entityUUID: UUID type: u8 @@ -261,13 +46,15 @@ headPitch: i8 velocity: vec3i16 metadata: entityMetadata - packet_spawn_entity_painting: + + packet_spawn_entity_painting: entityId: varint entityUUID: UUID title: string location: position direction: u8 - packet_named_entity_spawn: + + packet_named_entity_spawn: entityId: varint playerUUID: UUID x: f64 @@ -276,98 +63,8 @@ yaw: i8 pitch: i8 metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - name: string - value: varint - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: - matches: string[]varint - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: + + packet_named_sound_effect: soundName: string soundCategory: varint x: i32 @@ -375,104 +72,15 @@ z: i32 volume: f32 pitch: u8 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: varint - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: particleId ? - if 36: varint[]$2 - if 37: varint[]$1 - if 38: varint[]$1 - default: void - packet_login: - entityId: i32 - gameMode: u8 - dimension: i8 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - directionAndType: i8 - x: i8 - z: i8 - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: + + packet_rel_entity_move: entityId: varint dX: i16 dY: i16 dZ: i16 onGround: bool - packet_entity_move_look: + + packet_entity_move_look: entityId: varint dX: i16 dY: i16 @@ -480,40 +88,14 @@ yaw: i8 pitch: i8 onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: + + packet_vehicle_move: x: f64 y: f64 z: f64 yaw: f32 pitch: f32 - packet_open_sign_entity: - location: position - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void + # MC: ClientboundPlayerInfoPacket packet_player_info: action: varint => @@ -542,7 +124,8 @@ if update_display_name: displayName?: string if remove_player: void - packet_position: + + packet_position: x: f64 y: f64 z: f64 @@ -550,104 +133,16 @@ pitch: f32 flags: i8 teleportId: varint - packet_bed: - entityId: varint - location: position - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: + + packet_attach_entity: entityId: i32 vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: string - if 2: string - default: void - packet_set_passengers: + + packet_set_passengers: entityId: varint passengers: varint[]varint - packet_teams: + + packet_teams: team: string mode: i8 name: mode ? @@ -683,40 +178,8 @@ if 3: string[]varint if 4: string[]varint default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - default: void - fadeIn: action ? - if 2: i32 - default: void - stay: action ? - if 2: i32 - default: void - fadeOut: action ? - if 2: i32 - default: void - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_sound_effect: + + packet_sound_effect: soundId: varint soundCategory: varint x: i32 @@ -724,13 +187,8 @@ z: i32 volume: f32 pitch: u8 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - packet_entity_teleport: + + packet_entity_teleport: entityId: varint x: f64 y: f64 @@ -738,7 +196,8 @@ yaw: i8 pitch: i8 onGround: bool - packet_entity_update_attributes: + + packet_entity_update_attributes: entityId: varint properties: []i32 key: string @@ -747,13 +206,15 @@ uuid: UUID amount: f64 operation: i8 - packet_entity_effect: + + packet_entity_effect: entityId: varint effectId: i8 amplifier: i8 duration: varint hideParticles: i8 - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -912,131 +373,29 @@ if entity_effect: packet_entity_effect ^play.toServer.types: - packet_teleport_confirm: + packet_teleport_confirm: teleportId: varint - packet_tab_complete: + + packet_tab_complete: text: string assumeCommand: bool lookedAtBlock?: position - packet_chat: - message: string - packet_client_command: + + packet_client_command: actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: varint - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: + + packet_vehicle_move: x: f64 y: f64 z: f64 yaw: f32 pitch: f32 - packet_steer_boat: + + packet_steer_boat: leftPaddle: bool rightPaddle: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_resource_pack_receive: - hash: string - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: i8 - cursorY: i8 - cursorZ: i8 - packet_use_item: - hand: varint - packet: + + packet: name: varint => 0x00: teleport_confirm 0x01: tab_complete diff --git a/data/pc/15w40b/proto.yml b/data/pc/15w40b/proto.yml index ea1798006..72d30b391 100644 --- a/data/pc/15w40b/proto.yml +++ b/data/pc/15w40b/proto.yml @@ -1,65 +1,7 @@ !version: 15w40b +!base: 1.8 ^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - blockId: i16 - _: blockId ? - if -1: void - default: - itemCount: i8 - itemDamage: i16 - nbtData: optionalNbt - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] entityMetadataItem: $compareTo ? if 0: i8 if 1: varint @@ -68,7 +10,7 @@ if 4: string if 5: slot if 6: bool - if 7: + if 7: pitch: f32 yaw: f32 roll: f32 @@ -83,6 +25,7 @@ "UUID" ] if 12: varint + entityMetadata: [ "entityMetadataLoop", { @@ -120,159 +63,17 @@ } ] -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress +^play.toClient.types: + packet_map_chunk_bulk: !delete -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin + packet_update_entity_nbt: !delete -^play.toClient.types: - packet_keep_alive: - keepAliveId: varint - packet_login: - entityId: i32 - gameMode: u8 - dimension: i8 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_chat: - message: string - position: i8 - packet_update_time: - age: i64 - time: i64 - packet_entity_equipment: + packet_entity_equipment: entityId: varint slot: varint item: slot - packet_spawn_position: - location: position - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - packet_held_item_slot: - slot: i8 - packet_bed: - entityId: varint - location: position - packet_animation: - entityId: varint - animation: u8 - packet_named_entity_spawn: + + packet_named_entity_spawn: entityId: varint playerUUID: UUID x: i32 @@ -281,10 +82,8 @@ yaw: i8 pitch: i8 metadata: entityMetadata - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - packet_spawn_entity: + + packet_spawn_entity: entityId: varint entityUUID: UUID type: i8 @@ -295,7 +94,8 @@ yaw: i8 objectData: i32 velocity: vec3i16 - packet_spawn_entity_living: + + packet_spawn_entity_living: entityId: varint entityUUID: UUID type: u8 @@ -307,87 +107,8 @@ headPitch: i8 velocity: vec3i16 metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - title: string - location: position - direction: u8 - packet_spawn_entity_experience_orb: - entityId: varint - x: i32 - y: i32 - z: i32 - count: i16 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_destroy: - entityIds: varint[]varint - packet_entity: - entityId: varint - packet_rel_entity_move: - entityId: varint - dX: i8 - dY: i8 - dZ: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i8 - dY: i8 - dZ: i8 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_teleport: - entityId: varint - x: i32 - y: i32 - z: i32 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_attach_entity: - entityId: i32 - vehicleId: i32 - leash: bool - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: bool - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_map_chunk: + + packet_map_chunk: x: i32 z: i32 groundUp: bool @@ -398,106 +119,8 @@ "countType": "varint" } ] - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_named_sound_effect: - soundName: string - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: u8 - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: particleId ? - if 36: varint[]$2 - if 37: varint[]$1 - if 38: varint[]$1 - default: void - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: i32 - y: i32 - z: i32 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_close_window: - windowId: u8 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_map: + + packet_map: itemDamage: varint scale: i8 trackingPosition: bool @@ -523,16 +146,7 @@ "countType": "varint" } ] - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_open_sign_entity: - location: position - packet_statistics: - entries: []varint - name: string - value: varint + # MC: ClientboundPlayerInfoPacket packet_player_info: action: varint => @@ -561,34 +175,8 @@ if update_display_name: displayName?: string if remove_player: void - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_tab_complete: - matches: string[]varint - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: string - if 2: string - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_scoreboard_display_objective: - position: i8 - name: string - packet_scoreboard_team: + + packet_scoreboard_team: team: string mode: i8 name: mode ? @@ -624,90 +212,8 @@ if 3: string[]varint if 4: string[]varint default: void - packet_custom_payload: - channel: string - data: restBuffer - packet_kick_disconnect: - reason: string - packet_difficulty: - difficulty: u8 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - packet_camera: - cameraId: varint - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - default: void - fadeIn: action ? - if 2: i32 - default: void - stay: action ? - if 2: i32 - default: void - fadeOut: action ? - if 2: i32 - default: void - packet_set_compression: - threshold: varint - packet_playerlist_header: - header: string - footer: string - packet_resource_pack_send: - url: string - hash: string - packet_boss_bar: + + packet_boss_bar: entityUUID: UUID action: varint title: action ? @@ -730,13 +236,16 @@ if 0: u8 if 5: u8 default: void - packet_set_cooldown: + + packet_set_cooldown: itemID: varint cooldownTicks: varint - packet_unload_chunk: + + packet_unload_chunk: chunkX: i32 chunkZ: i32 - packet: + + packet: name: varint => 0x1f: keep_alive 0x24: login @@ -891,11 +400,7 @@ if unload_chunk: packet_unload_chunk ^play.toServer.types: - packet_keep_alive: - keepAliveId: varint - packet_chat: - message: string - packet_use_entity: + packet_use_entity: target: varint mouse: varint x: mouse ? @@ -911,99 +416,30 @@ if 0: varint if 2: varint default: void - packet_flying: - onGround: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_block_dig: - status: varint - location: position - face: i8 - packet_block_place: + + packet_block_place: location: position direction: varint hand: varint cursorX: i8 cursorY: i8 cursorZ: i8 - packet_held_item_slot: - slotId: i16 - packet_arm_animation: + + packet_arm_animation: hand: varint - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_close_window: - windowId: u8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_set_creative_slot: - slot: i16 - item: slot - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_tab_complete: - text: string - block?: position - packet_settings: + + packet_settings: locale: string viewDistance: i8 chatFlags: varint chatColors: bool skinParts: u8 mainHand: varint - packet_client_command: - payload: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_spectate: - target: UUID - packet_resource_pack_receive: - hash: string - result: varint - packet_use_item: + + packet_use_item: hand: varint - packet: + + packet: name: varint => 0x0a: keep_alive 0x01: chat diff --git a/data/pc/16w20a/proto.yml b/data/pc/16w20a/proto.yml index 7e73b3eb1..a6b19bb7b 100644 --- a/data/pc/16w20a/proto.yml +++ b/data/pc/16w20a/proto.yml @@ -1,373 +1,8 @@ !version: 16w20a - -^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - blockId: i16 - _: blockId ? - if -1: void - default: - itemCount: i8 - itemDamage: i16 - nbtData: optionalNbt - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: slot - if 6: bool - if 7: - pitch: f32 - yaw: f32 - roll: f32 - if 8: position - if 9: [ - "option", - "position" - ] - if 10: varint - if 11: [ - "option", - "UUID" - ] - if 12: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "i8" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin +!base: 1.9.4 ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: u8 - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: string - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - name: string - value: varint - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: - matches: string[]varint - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: + packet_named_sound_effect: soundName: string soundCategory: varint x: i32 @@ -375,146 +10,7 @@ z: i32 volume: f32 pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: varint - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: particleId ? - if 36: varint[]$2 - if 37: varint[]$1 - if 38: varint[]$1 - default: void - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - directionAndType: i8 - x: i8 - z: i8 - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void + # MC: ClientboundPlayerInfoPacket packet_player_info: action: varint => @@ -543,175 +39,8 @@ if update_display_name: displayName?: string if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: string - if 2: string - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - color: mode ? - if 0: i8 - if 2: i8 - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - default: void - fadeIn: action ? - if 2: i32 - default: void - stay: action ? - if 2: i32 - default: void - fadeOut: action ? - if 2: i32 - default: void - packet_sound_effect: + + packet_sound_effect: soundId: varint soundCategory: varint x: i32 @@ -719,376 +48,3 @@ z: i32 volume: f32 pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet: - name: varint => - 0x00: spawn_entity - 0x01: spawn_entity_experience_orb - 0x02: spawn_entity_weather - 0x03: spawn_entity_living - 0x04: spawn_entity_painting - 0x05: named_entity_spawn - 0x06: animation - 0x07: statistics - 0x08: block_break_animation - 0x09: tile_entity_data - 0x0a: block_action - 0x0b: block_change - 0x0c: boss_bar - 0x0d: difficulty - 0x0e: tab_complete - 0x0f: chat - 0x10: multi_block_change - 0x11: transaction - 0x12: close_window - 0x13: open_window - 0x14: window_items - 0x15: craft_progress_bar - 0x16: set_slot - 0x17: set_cooldown - 0x18: custom_payload - 0x19: named_sound_effect - 0x1a: kick_disconnect - 0x1b: entity_status - 0x1c: explosion - 0x1d: unload_chunk - 0x1e: game_state_change - 0x1f: keep_alive - 0x20: map_chunk - 0x21: world_event - 0x22: world_particles - 0x23: login - 0x24: map - 0x25: rel_entity_move - 0x26: entity_move_look - 0x27: entity_look - 0x28: entity - 0x29: vehicle_move - 0x2a: open_sign_entity - 0x2b: abilities - 0x2c: combat_event - 0x2d: player_info - 0x2e: position - 0x2f: bed - 0x30: entity_destroy - 0x31: remove_entity_effect - 0x32: resource_pack_send - 0x33: respawn - 0x34: entity_head_rotation - 0x35: world_border - 0x36: camera - 0x37: held_item_slot - 0x38: scoreboard_display_objective - 0x39: entity_metadata - 0x3a: attach_entity - 0x3b: entity_velocity - 0x3c: entity_equipment - 0x3d: experience - 0x3e: update_health - 0x3f: scoreboard_objective - 0x40: set_passengers - 0x41: teams - 0x42: scoreboard_score - 0x43: spawn_position - 0x44: update_time - 0x45: title - 0x46: sound_effect - 0x47: playerlist_header - 0x48: collect - 0x49: entity_teleport - 0x4a: entity_update_attributes - 0x4b: entity_effect - params: name ? - if spawn_entity: packet_spawn_entity - if spawn_entity_experience_orb: packet_spawn_entity_experience_orb - if spawn_entity_weather: packet_spawn_entity_weather - if spawn_entity_living: packet_spawn_entity_living - if spawn_entity_painting: packet_spawn_entity_painting - if named_entity_spawn: packet_named_entity_spawn - if animation: packet_animation - if statistics: packet_statistics - if block_break_animation: packet_block_break_animation - if tile_entity_data: packet_tile_entity_data - if block_action: packet_block_action - if block_change: packet_block_change - if boss_bar: packet_boss_bar - if difficulty: packet_difficulty - if tab_complete: packet_tab_complete - if chat: packet_chat - if multi_block_change: packet_multi_block_change - if transaction: packet_transaction - if close_window: packet_close_window - if open_window: packet_open_window - if window_items: packet_window_items - if craft_progress_bar: packet_craft_progress_bar - if set_slot: packet_set_slot - if set_cooldown: packet_set_cooldown - if custom_payload: packet_custom_payload - if named_sound_effect: packet_named_sound_effect - if kick_disconnect: packet_kick_disconnect - if entity_status: packet_entity_status - if explosion: packet_explosion - if unload_chunk: packet_unload_chunk - if game_state_change: packet_game_state_change - if keep_alive: packet_keep_alive - if map_chunk: packet_map_chunk - if world_event: packet_world_event - if world_particles: packet_world_particles - if login: packet_login - if map: packet_map - if rel_entity_move: packet_rel_entity_move - if entity_move_look: packet_entity_move_look - if entity_look: packet_entity_look - if entity: packet_entity - if vehicle_move: packet_vehicle_move - if open_sign_entity: packet_open_sign_entity - if abilities: packet_abilities - if combat_event: packet_combat_event - if player_info: packet_player_info - if position: packet_position - if bed: packet_bed - if entity_destroy: packet_entity_destroy - if remove_entity_effect: packet_remove_entity_effect - if resource_pack_send: packet_resource_pack_send - if respawn: packet_respawn - if entity_update_attributes: packet_entity_update_attributes - if world_border: packet_world_border - if camera: packet_camera - if held_item_slot: packet_held_item_slot - if scoreboard_display_objective: packet_scoreboard_display_objective - if entity_metadata: packet_entity_metadata - if attach_entity: packet_attach_entity - if entity_velocity: packet_entity_velocity - if entity_equipment: packet_entity_equipment - if experience: packet_experience - if update_health: packet_update_health - if scoreboard_objective: packet_scoreboard_objective - if set_passengers: packet_set_passengers - if teams: packet_teams - if scoreboard_score: packet_scoreboard_score - if spawn_position: packet_spawn_position - if update_time: packet_update_time - if title: packet_title - if sound_effect: packet_sound_effect - if playerlist_header: packet_playerlist_header - if collect: packet_collect - if entity_teleport: packet_entity_teleport - if entity_head_rotation: packet_entity_head_rotation - if entity_effect: packet_entity_effect - -^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_tab_complete: - text: string - assumeCommand: bool - lookedAtBlock?: position - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: varint - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_resource_pack_receive: - hash: string - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: i8 - cursorY: i8 - cursorZ: i8 - packet_use_item: - hand: varint - packet: - name: varint => - 0x00: teleport_confirm - 0x01: tab_complete - 0x02: chat - 0x03: client_command - 0x04: settings - 0x05: transaction - 0x06: enchant_item - 0x07: window_click - 0x08: close_window - 0x09: custom_payload - 0x0a: use_entity - 0x0b: keep_alive - 0x0c: position - 0x0d: position_look - 0x0e: look - 0x0f: flying - 0x10: vehicle_move - 0x11: steer_boat - 0x12: abilities - 0x13: block_dig - 0x14: entity_action - 0x15: steer_vehicle - 0x16: resource_pack_receive - 0x17: held_item_slot - 0x18: set_creative_slot - 0x19: update_sign - 0x1a: arm_animation - 0x1b: spectate - 0x1c: block_place - 0x1d: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if transaction: packet_transaction - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if keep_alive: packet_keep_alive - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item diff --git a/data/pc/16w35a/proto.yml b/data/pc/16w35a/proto.yml index f489a6080..09dc647b5 100644 --- a/data/pc/16w35a/proto.yml +++ b/data/pc/16w35a/proto.yml @@ -1,255 +1,8 @@ !version: 16w35a - -^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - blockId: i16 - _: blockId ? - if -1: void - default: - itemCount: i8 - itemDamage: i16 - nbtData: optionalNbt - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: slot - if 6: bool - if 7: - pitch: f32 - yaw: f32 - roll: f32 - if 8: position - if 9: [ - "option", - "position" - ] - if 10: varint - if 11: [ - "option", - "UUID" - ] - if 12: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "i8" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin +!base: 1.10 ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: + packet_spawn_entity_living: entityId: varint entityUUID: UUID type: varint @@ -261,260 +14,7 @@ headPitch: i8 velocity: vec3i16 metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: string - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - name: string - value: varint - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: - matches: string[]varint - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: varint - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: particleId ? - if 36: varint[]$2 - if 37: varint[]$1 - if 38: varint[]$1 - default: void - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - directionAndType: i8 - x: i8 - z: i8 - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void + # MC: ClientboundPlayerInfoPacket packet_player_info: action: varint => @@ -543,552 +43,8 @@ if update_display_name: displayName?: string if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: string - if 2: string - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - color: mode ? - if 0: i8 - if 2: i8 - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - default: void - fadeIn: action ? - if 2: i32 - default: void - stay: action ? - if 2: i32 - default: void - fadeOut: action ? - if 2: i32 - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: + + packet_collect: collectedEntityId: varint collectorEntityId: varint pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet: - name: varint => - 0x00: spawn_entity - 0x01: spawn_entity_experience_orb - 0x02: spawn_entity_weather - 0x03: spawn_entity_living - 0x04: spawn_entity_painting - 0x05: named_entity_spawn - 0x06: animation - 0x07: statistics - 0x08: block_break_animation - 0x09: tile_entity_data - 0x0a: block_action - 0x0b: block_change - 0x0c: boss_bar - 0x0d: difficulty - 0x0e: tab_complete - 0x0f: chat - 0x10: multi_block_change - 0x11: transaction - 0x12: close_window - 0x13: open_window - 0x14: window_items - 0x15: craft_progress_bar - 0x16: set_slot - 0x17: set_cooldown - 0x18: custom_payload - 0x19: named_sound_effect - 0x1a: kick_disconnect - 0x1b: entity_status - 0x1c: explosion - 0x1d: unload_chunk - 0x1e: game_state_change - 0x1f: keep_alive - 0x20: map_chunk - 0x21: world_event - 0x22: world_particles - 0x23: login - 0x24: map - 0x25: rel_entity_move - 0x26: entity_move_look - 0x27: entity_look - 0x28: entity - 0x29: vehicle_move - 0x2a: open_sign_entity - 0x2b: abilities - 0x2c: combat_event - 0x2d: player_info - 0x2e: position - 0x2f: bed - 0x30: entity_destroy - 0x31: remove_entity_effect - 0x32: resource_pack_send - 0x33: respawn - 0x34: entity_head_rotation - 0x35: world_border - 0x36: camera - 0x37: held_item_slot - 0x38: scoreboard_display_objective - 0x39: entity_metadata - 0x3a: attach_entity - 0x3b: entity_velocity - 0x3c: entity_equipment - 0x3d: experience - 0x3e: update_health - 0x3f: scoreboard_objective - 0x40: set_passengers - 0x41: teams - 0x42: scoreboard_score - 0x43: spawn_position - 0x44: update_time - 0x45: title - 0x46: sound_effect - 0x47: playerlist_header - 0x48: collect - 0x49: entity_teleport - 0x4a: entity_update_attributes - 0x4b: entity_effect - params: name ? - if spawn_entity: packet_spawn_entity - if spawn_entity_experience_orb: packet_spawn_entity_experience_orb - if spawn_entity_weather: packet_spawn_entity_weather - if spawn_entity_living: packet_spawn_entity_living - if spawn_entity_painting: packet_spawn_entity_painting - if named_entity_spawn: packet_named_entity_spawn - if animation: packet_animation - if statistics: packet_statistics - if block_break_animation: packet_block_break_animation - if tile_entity_data: packet_tile_entity_data - if block_action: packet_block_action - if block_change: packet_block_change - if boss_bar: packet_boss_bar - if difficulty: packet_difficulty - if tab_complete: packet_tab_complete - if chat: packet_chat - if multi_block_change: packet_multi_block_change - if transaction: packet_transaction - if close_window: packet_close_window - if open_window: packet_open_window - if window_items: packet_window_items - if craft_progress_bar: packet_craft_progress_bar - if set_slot: packet_set_slot - if set_cooldown: packet_set_cooldown - if custom_payload: packet_custom_payload - if named_sound_effect: packet_named_sound_effect - if kick_disconnect: packet_kick_disconnect - if entity_status: packet_entity_status - if explosion: packet_explosion - if unload_chunk: packet_unload_chunk - if game_state_change: packet_game_state_change - if keep_alive: packet_keep_alive - if map_chunk: packet_map_chunk - if world_event: packet_world_event - if world_particles: packet_world_particles - if login: packet_login - if map: packet_map - if rel_entity_move: packet_rel_entity_move - if entity_move_look: packet_entity_move_look - if entity_look: packet_entity_look - if entity: packet_entity - if vehicle_move: packet_vehicle_move - if open_sign_entity: packet_open_sign_entity - if abilities: packet_abilities - if combat_event: packet_combat_event - if player_info: packet_player_info - if position: packet_position - if bed: packet_bed - if entity_destroy: packet_entity_destroy - if remove_entity_effect: packet_remove_entity_effect - if resource_pack_send: packet_resource_pack_send - if respawn: packet_respawn - if entity_update_attributes: packet_entity_update_attributes - if world_border: packet_world_border - if camera: packet_camera - if held_item_slot: packet_held_item_slot - if scoreboard_display_objective: packet_scoreboard_display_objective - if entity_metadata: packet_entity_metadata - if attach_entity: packet_attach_entity - if entity_velocity: packet_entity_velocity - if entity_equipment: packet_entity_equipment - if experience: packet_experience - if update_health: packet_update_health - if scoreboard_objective: packet_scoreboard_objective - if set_passengers: packet_set_passengers - if teams: packet_teams - if scoreboard_score: packet_scoreboard_score - if spawn_position: packet_spawn_position - if update_time: packet_update_time - if title: packet_title - if sound_effect: packet_sound_effect - if playerlist_header: packet_playerlist_header - if collect: packet_collect - if entity_teleport: packet_entity_teleport - if entity_head_rotation: packet_entity_head_rotation - if entity_effect: packet_entity_effect - -^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_tab_complete: - text: string - assumeCommand: bool - lookedAtBlock?: position - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: varint - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: i8 - cursorY: i8 - cursorZ: i8 - packet_use_item: - hand: varint - packet: - name: varint => - 0x00: teleport_confirm - 0x01: tab_complete - 0x02: chat - 0x03: client_command - 0x04: settings - 0x05: transaction - 0x06: enchant_item - 0x07: window_click - 0x08: close_window - 0x09: custom_payload - 0x0a: use_entity - 0x0b: keep_alive - 0x0c: position - 0x0d: position_look - 0x0e: look - 0x0f: flying - 0x10: vehicle_move - 0x11: steer_boat - 0x12: abilities - 0x13: block_dig - 0x14: entity_action - 0x15: steer_vehicle - 0x16: resource_pack_receive - 0x17: held_item_slot - 0x18: set_creative_slot - 0x19: update_sign - 0x1a: arm_animation - 0x1b: spectate - 0x1c: block_place - 0x1d: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if transaction: packet_transaction - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if keep_alive: packet_keep_alive - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item diff --git a/data/pc/17w15a/proto.yml b/data/pc/17w15a/proto.yml index b9f61cdce..0c36a6f8d 100644 --- a/data/pc/17w15a/proto.yml +++ b/data/pc/17w15a/proto.yml @@ -1,65 +1,7 @@ !version: 17w15a +!base: 1.11 ^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - blockId: i16 - _: blockId ? - if -1: void - default: - itemCount: i8 - itemDamage: i16 - nbtData: optionalNbt - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] entityMetadataItem: $compareTo ? if 0: i8 if 1: varint @@ -68,7 +10,7 @@ if 4: string if 5: slot if 6: bool - if 7: + if 7: pitch: f32 yaw: f32 roll: f32 @@ -84,213 +26,15 @@ ] if 12: varint if 13: nbt - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "i8" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: string - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - name: string - value: varint - packet_advancements: + packet_advancements: reset: bool advancementMapping: []varint key: string - value: + value: parentId?: string - displayData?: + displayData?: title: string description: string icon: varint @@ -309,238 +53,7 @@ value: []varint criterionIdentifier: string criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: - matches: string[]varint - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: varint - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: particleId ? - if 36: varint[]$2 - if 37: varint[]$1 - if 38: varint[]$1 - default: void - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - directionAndType: i8 - x: i8 - z: i8 - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void + # MC: ClientboundPlayerInfoPacket packet_player_info: action: varint => @@ -569,18 +82,8 @@ if update_display_name: displayName?: string if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_unlock_recipes: + + packet_unlock_recipes: notification: bool craftingBookOpen: bool filteringCraftable: bool @@ -588,165 +91,8 @@ identifier: string isUnlocked: bool hasBeenDisplayed: bool - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: string - if 2: string - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - color: mode ? - if 0: i8 - if 2: i8 - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_sound_effect: + + packet_sound_effect: soundCategory: varint soundId: varint parrottedEntityType: string @@ -755,37 +101,8 @@ z: i32 volume: f32 pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -946,9 +263,7 @@ if entity_effect: packet_entity_effect ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_prepare_crafting_grid: + packet_prepare_crafting_grid: windowId: u8 actionNumber: u16 returnEntry: []u8 @@ -959,136 +274,17 @@ item: slot craftingSlot: u8 playerSlot: u8 - packet_tab_complete: - text: string - assumeCommand: bool - lookedAtBlock?: position - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: varint - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_crafting_book_data: + + packet_crafting_book_data: type: i32 _: type ? - if 1: + if 1: displayedRecipe: string - if 2: + if 2: craftingBookOpen: bool craftingFilter: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - packet_use_item: - hand: varint - packet: + + packet: name: varint => 0x00: teleport_confirm 0x01: prepare_crafting_grid diff --git a/data/pc/17w18b/proto.yml b/data/pc/17w18b/proto.yml index 808a69d10..d40260ca9 100644 --- a/data/pc/17w18b/proto.yml +++ b/data/pc/17w18b/proto.yml @@ -1,296 +1,14 @@ !version: 17w18b - -^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - blockId: i16 - _: blockId ? - if -1: void - default: - itemCount: i8 - itemDamage: i16 - nbtData: optionalNbt - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: slot - if 6: bool - if 7: - pitch: f32 - yaw: f32 - roll: f32 - if 8: position - if 9: [ - "option", - "position" - ] - if 10: varint - if 11: [ - "option", - "UUID" - ] - if 12: varint - if 13: nbt - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "i8" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin +!base: 17w15a ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: string - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - name: string - value: varint - packet_advancements: + packet_advancements: reset: bool advancementMapping: []varint key: string - value: + value: parentId?: string - displayData?: + displayData?: title: string description: string icon: slot @@ -310,442 +28,15 @@ value: []varint criterionIdentifier: string criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: - matches: string[]varint - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: varint - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f32 - y: f32 - z: f32 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: particleId ? - if 36: varint[]$2 - if 37: varint[]$1 - if 38: varint[]$1 - default: void - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - directionAndType: i8 - x: i8 - z: i8 - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_unlock_recipes: + + packet_unlock_recipes: action: i16 craftingBookOpen: bool filteringCraftable: bool recipes1: i32[]varint recipes2: i32[]varint - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: string - if 2: string - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - color: mode ? - if 0: i8 - if 2: i8 - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_sound_effect: + + packet_sound_effect: soundId: varint soundCategory: varint x: i32 @@ -753,200 +44,9 @@ z: i32 volume: f32 pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet: - name: varint => - 0x00: spawn_entity - 0x01: spawn_entity_experience_orb - 0x02: spawn_entity_weather - 0x03: spawn_entity_living - 0x04: spawn_entity_painting - 0x05: named_entity_spawn - 0x06: animation - 0x07: statistics - 0x08: advancements - 0x09: block_break_animation - 0x0a: tile_entity_data - 0x0b: block_action - 0x0c: block_change - 0x0d: boss_bar - 0x0e: difficulty - 0x0f: tab_complete - 0x10: chat - 0x11: multi_block_change - 0x12: transaction - 0x13: close_window - 0x14: open_window - 0x15: window_items - 0x16: craft_progress_bar - 0x17: set_slot - 0x18: set_cooldown - 0x19: custom_payload - 0x1a: named_sound_effect - 0x1b: kick_disconnect - 0x1c: entity_status - 0x1d: explosion - 0x1e: unload_chunk - 0x1f: game_state_change - 0x20: keep_alive - 0x21: map_chunk - 0x22: world_event - 0x23: world_particles - 0x24: login - 0x25: map - 0x26: rel_entity_move - 0x27: entity_move_look - 0x28: entity_look - 0x29: entity - 0x2a: vehicle_move - 0x2b: open_sign_entity - 0x2c: abilities - 0x2d: combat_event - 0x2e: player_info - 0x2f: position - 0x30: bed - 0x31: unlock_recipes - 0x32: entity_destroy - 0x33: remove_entity_effect - 0x34: resource_pack_send - 0x35: respawn - 0x36: entity_head_rotation - 0x37: world_border - 0x38: camera - 0x39: held_item_slot - 0x3a: scoreboard_display_objective - 0x3b: entity_metadata - 0x3c: attach_entity - 0x3d: entity_velocity - 0x3e: entity_equipment - 0x3f: experience - 0x40: update_health - 0x41: scoreboard_objective - 0x42: set_passengers - 0x43: teams - 0x44: scoreboard_score - 0x45: spawn_position - 0x46: update_time - 0x47: title - 0x48: sound_effect - 0x49: playerlist_header - 0x4a: collect - 0x4b: entity_teleport - 0x4c: entity_update_attributes - 0x4d: entity_effect - params: name ? - if spawn_entity: packet_spawn_entity - if spawn_entity_experience_orb: packet_spawn_entity_experience_orb - if spawn_entity_weather: packet_spawn_entity_weather - if spawn_entity_living: packet_spawn_entity_living - if spawn_entity_painting: packet_spawn_entity_painting - if named_entity_spawn: packet_named_entity_spawn - if animation: packet_animation - if statistics: packet_statistics - if advancements: packet_advancements - if block_break_animation: packet_block_break_animation - if tile_entity_data: packet_tile_entity_data - if block_action: packet_block_action - if block_change: packet_block_change - if boss_bar: packet_boss_bar - if difficulty: packet_difficulty - if tab_complete: packet_tab_complete - if chat: packet_chat - if multi_block_change: packet_multi_block_change - if transaction: packet_transaction - if close_window: packet_close_window - if open_window: packet_open_window - if window_items: packet_window_items - if craft_progress_bar: packet_craft_progress_bar - if set_slot: packet_set_slot - if set_cooldown: packet_set_cooldown - if custom_payload: packet_custom_payload - if named_sound_effect: packet_named_sound_effect - if kick_disconnect: packet_kick_disconnect - if entity_status: packet_entity_status - if explosion: packet_explosion - if unload_chunk: packet_unload_chunk - if game_state_change: packet_game_state_change - if keep_alive: packet_keep_alive - if map_chunk: packet_map_chunk - if world_event: packet_world_event - if world_particles: packet_world_particles - if login: packet_login - if map: packet_map - if rel_entity_move: packet_rel_entity_move - if entity_move_look: packet_entity_move_look - if entity_look: packet_entity_look - if entity: packet_entity - if vehicle_move: packet_vehicle_move - if open_sign_entity: packet_open_sign_entity - if abilities: packet_abilities - if combat_event: packet_combat_event - if player_info: packet_player_info - if position: packet_position - if bed: packet_bed - if unlock_recipes: packet_unlock_recipes - if entity_destroy: packet_entity_destroy - if remove_entity_effect: packet_remove_entity_effect - if resource_pack_send: packet_resource_pack_send - if respawn: packet_respawn - if entity_update_attributes: packet_entity_update_attributes - if world_border: packet_world_border - if camera: packet_camera - if held_item_slot: packet_held_item_slot - if scoreboard_display_objective: packet_scoreboard_display_objective - if entity_metadata: packet_entity_metadata - if attach_entity: packet_attach_entity - if entity_velocity: packet_entity_velocity - if entity_equipment: packet_entity_equipment - if experience: packet_experience - if update_health: packet_update_health - if scoreboard_objective: packet_scoreboard_objective - if set_passengers: packet_set_passengers - if teams: packet_teams - if scoreboard_score: packet_scoreboard_score - if spawn_position: packet_spawn_position - if update_time: packet_update_time - if title: packet_title - if sound_effect: packet_sound_effect - if playerlist_header: packet_playerlist_header - if collect: packet_collect - if entity_teleport: packet_entity_teleport - if entity_head_rotation: packet_entity_head_rotation - if entity_effect: packet_entity_effect ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_prepare_crafting_grid: + packet_prepare_crafting_grid: windowId: u8 actionNumber: u16 returnEntry: []u16 @@ -957,199 +57,3 @@ item: slot craftingSlot: u8 playerSlot: u8 - packet_tab_complete: - text: string - assumeCommand: bool - lookedAtBlock?: position - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: varint - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_crafting_book_data: - type: i32 - _: type ? - if 1: - displayedRecipe: string - if 2: - craftingBookOpen: bool - craftingFilter: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - packet_use_item: - hand: varint - packet: - name: varint => - 0x00: teleport_confirm - 0x01: prepare_crafting_grid - 0x02: tab_complete - 0x03: chat - 0x04: client_command - 0x05: settings - 0x06: transaction - 0x07: enchant_item - 0x08: window_click - 0x09: close_window - 0x0a: custom_payload - 0x0b: use_entity - 0x0c: keep_alive - 0x0d: position - 0x0e: position_look - 0x0f: look - 0x10: flying - 0x11: vehicle_move - 0x12: steer_boat - 0x13: abilities - 0x14: block_dig - 0x15: entity_action - 0x16: steer_vehicle - 0x17: crafting_book_data - 0x18: resource_pack_receive - 0x19: held_item_slot - 0x1a: set_creative_slot - 0x1b: update_sign - 0x1c: arm_animation - 0x1d: spectate - 0x1e: block_place - 0x1f: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if prepare_crafting_grid: packet_prepare_crafting_grid - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if transaction: packet_transaction - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if keep_alive: packet_keep_alive - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if crafting_book_data: packet_crafting_book_data - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item diff --git a/data/pc/17w50a/proto.yml b/data/pc/17w50a/proto.yml index aa9df90e7..a3f1e95ce 100644 --- a/data/pc/17w50a/proto.yml +++ b/data/pc/17w50a/proto.yml @@ -1,388 +1,29 @@ !version: 17w50a +!base: 1.12.2 ^types: - varint: native - varlong: native - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: + slot: blockId: i16 _: blockId ? if -1: void - default: + default: itemCount: i8 nbtData: optionalNbt - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: slot - if 6: bool - if 7: - pitch: f32 - yaw: f32 - roll: f32 - if 8: position - if 9: [ - "option", - "position" - ] - if 10: varint - if 11: [ - "option", - "UUID" - ] - if 12: varint - if 13: nbt - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "i8" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: string - username: string - packet_compress: - threshold: varint - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: i8 - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - metadata: entityMetadata - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: string - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - metadata: entityMetadata - packet_animation: - entityId: varint - animation: u8 - packet_statistics: + packet_statistics: entries: []varint unknown1: varint unknown2: varint value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - packet_tab_complete: + + packet_tab_complete: transactionId: varint start: varint length: varint matches: string[]varint - packet_declare_commands: + + packet_declare_commands: nodes: []varint flags: [ "bitfield", @@ -421,11 +62,11 @@ extraNodeData: flags/command_node_type ? if 0: void if 1: string - if 2: + if 2: name: string parser: string properties: parser ? - if brigadier:double: + if brigadier:double: flags: [ "bitfield", [ @@ -452,7 +93,7 @@ max: flags/max_present ? if 1: f64 default: void - if brigadier:float: + if brigadier:float: flags: [ "bitfield", [ @@ -479,7 +120,7 @@ max: flags/max_present ? if 1: f32 default: void - if brigadier:integer: + if brigadier:integer: flags: [ "bitfield", [ @@ -506,7 +147,7 @@ max: flags/max_present ? if 1: i32 default: void - if brigadier:long: + if brigadier:long: flags: [ "bitfield", [ @@ -542,98 +183,8 @@ if 1: string default: void rootIndex: varint - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: u8 - inventoryType: string - windowTitle: string - slotCount: u8 - entityId: inventoryType ? - if EntityHorse: i32 - default: void - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: + + packet_world_particles: particleId: i32 longDistance: bool x: f32 @@ -650,91 +201,11 @@ if 38: varint if 46: varint default: void - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - difficulty: u8 - maxPlayers: u8 - levelType: string - reducedDebugInfo: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - icons: []varint - directionAndType: i8 - x: i8 - z: i8 - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_sign_entity: - location: position - packet_craft_recipe_response: + + packet_craft_recipe_response: windowId: i8 recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void + # MC: ClientboundPlayerInfoPacket packet_player_info: action: varint => @@ -763,18 +234,8 @@ if update_display_name: displayName?: string if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_bed: - entityId: varint - location: position - packet_unlock_recipes: + + packet_unlock_recipes: action: varint craftingBookOpen: bool filteringCraftable: bool @@ -782,165 +243,8 @@ recipes2: action ? if 0: string[]varint default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - difficulty: u8 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: string - if 2: string - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - color: mode ? - if 0: i8 - if 2: i8 - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_stop_sound: + + packet_stop_sound: flags: i8 source: flags ? if 1: varint @@ -950,57 +254,18 @@ if 2: string if 3: string default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet_declare_recipes: + + packet_declare_recipes: recipes: []varint recipeId: string type: string data: type ? - if crafting_shapeless: + if crafting_shapeless: group: string ingredients: []varint _: slot[]varint result: slot - if crafting_shaped: + if crafting_shaped: width: varint height: varint group: string @@ -1021,13 +286,16 @@ if crafting_special_banneraddpattern: void if crafting_special_shielddecoration: void if crafting_special_shulkerboxcoloring: void + tags: []varint tagName: string entries: varint[]varint - packet_tags: + + packet_tags: blockTags: tags itemTags: tags - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -1200,146 +468,16 @@ if tags: packet_tags ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_tab_complete: + packet_tab_complete: transactionId: varint text: string - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: i64 - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: + + packet_craft_recipe_request: windowId: i8 recipe: string makeAll: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_crafting_book_data: - type: varint - _: type ? - if 0: - displayedRecipe: i32 - if 1: - craftingBookOpen: bool - craftingFilter: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - location: position - direction: varint - hand: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet: + + packet: name: varint => 0x00: teleport_confirm 0x01: chat diff --git a/data/pc/20w13b/proto.yml b/data/pc/20w13b/proto.yml index cdafcd034..4ebe17b8f 100644 --- a/data/pc/20w13b/proto.yml +++ b/data/pc/20w13b/proto.yml @@ -1,1240 +1,43 @@ !version: 20w13b +!base: 1.15.2 ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] + minecraft_smelting_format: !delete + + tags: !delete + particleData: $compareTo ? - if 3: + if 3: blockState: varint - if 14: + if 14: red: f32 green: f32 blue: f32 scale: f32 - if 23: + if 23: blockState: varint - if 34: + if 34: item: slot default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: [ - "option", - "string" - ] - if 6: slot - if 7: bool - if 8: - pitch: f32 - yaw: f32 - roll: f32 - if 9: position - if 10: [ - "option", - "position" - ] - if 11: varint - if 12: [ - "option", - "UUID" - ] - if 13: varint - if 14: nbt - if 15: particle - if 16: - villagerType: varint - villagerProfession: varint - level: varint - if 17: optvarint - if 18: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: string - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:mob_effect: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:range: - allowDecimals: bool - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:item_enchantment: void - if minecraft:entity_summon: void - if minecraft:dimension: void - if minecraft:nbt_compound_tag: void - if minecraft:time: void - if minecraft:resource_or_tag: - registry: string - if minecraft:resource: - registry: string - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping - -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping ^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: + packet_success: uuid: UUID username: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_weather: - entityId: varint - type: i8 - x: f64 - y: f64 - z: f64 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: varint - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_chat: - message: string - position: i8 - packet_multi_block_change: - chunkX: i32 - chunkZ: i32 - records: []varint - horizontalPos: u8 - y: u8 - blockId: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: string - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: - windowId: u8 - nbSlots: varint - entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: - x: i32 - z: i32 - groundUp: bool - bitMap: varint - heightmaps: nbt - biomes: groundUp ? - if false: void - if true: i32[]$1024 - chunkData: [ - "buffer", - { - "countType": "varint" - } - ] - blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_update_light: - chunkX: varint - chunkZ: varint - skyLightMask: varint - blockLightMask: varint - emptySkyLightMask: varint - emptyBlockLightMask: varint - data: restBuffer - packet_login: - entityId: i32 - gameMode: u8 - dimension: i32 - hashedSeed: i64 - maxPlayers: u8 - levelType: string - viewDistance: varint - reducedDebugInfo: bool - enableRespawnScreen: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - locked: bool - icons: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_trade_list: - windowId: varint - trades: []u8 - inputItem1: slot - outputItem: slot - inputItem2?: slot - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: - hand: varint - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: i8 - teleportId: varint - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: - url: string - hash: string - packet_respawn: - dimension: i32 - hashedSeed: i64 - gamemode: u8 - levelType: string - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: - chunkX: varint - chunkZ: varint - packet_update_view_distance: - viewDistance: varint - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - slot: varint - item: slot - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_entity_sound_effect: - soundId: varint - soundCategory: varint - entityId: varint - volume: f32 - pitch: f32 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet_declare_recipes: - recipes: []varint - type: string - recipeId: string - data: type ? - if minecraft:crafting_shapeless: - group: string - ingredients: ingredient[]varint - result: slot - if minecraft:crafting_shaped: - width: varint - height: varint - group: string - ingredients: []$width - _: ingredient[]$height - result: slot - if minecraft:crafting_special_armordye: void - if minecraft:crafting_special_bookcloning: void - if minecraft:crafting_special_mapcloning: void - if minecraft:crafting_special_mapextending: void - if minecraft:crafting_special_firework_rocket: void - if minecraft:crafting_special_firework_star: void - if minecraft:crafting_special_firework_star_fade: void - if minecraft:crafting_special_repairitem: void - if minecraft:crafting_special_tippedarrow: void - if minecraft:crafting_special_bannerduplicate: void - if minecraft:crafting_special_banneraddpattern: void - if minecraft:crafting_special_shielddecoration: void - if minecraft:crafting_special_shulkerboxcoloring: void - if minecraft:crafting_special_suspiciousstew: void - if minecraft:smelting: minecraft_smelting_format - if minecraft:blasting: minecraft_smelting_format - if minecraft:smoking: minecraft_smelting_format - if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: - group: string - ingredient: ingredient - result: slot - minecraft_smelting_format: + minecraft_smelting_format: group: string ingredient: ingredient result: slot experience: f32 cookTime: varint + tags: []varint tagName: string entries: varint[]varint - packet_tags: - blockTags: tags - itemTags: tags - fluidTags: tags - entityTags: tags - packet_acknowledge_player_digging: - location: position - block: varint - status: varint - successful: bool - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -1425,300 +228,10 @@ if acknowledge_player_digging: packet_acknowledge_player_digging ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_set_difficulty: - newDifficulty: u8 - packet_edit_book: - new_book: slot - signing: bool - hand: varint - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect: varint - secondary_effect: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varlong - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: - locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_crafting_book_data: - type: varint - _: type ? - if 0: - displayedRecipe: string - if 1: - craftingBookOpen: bool - craftingFilter: bool - smeltingBookOpen: bool - smeltingFilter: bool - blastingBookOpen: bool - blastingFilter: bool - smokingBookOpen: bool - smokingFilter: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: + packet_update_jigsaw_block: location: position name: string target: string pool: string finalState: string jointType: string - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet: - name: varint => - 0x00: teleport_confirm - 0x01: query_block_nbt - 0x02: set_difficulty - 0x03: chat - 0x04: client_command - 0x05: settings - 0x06: tab_complete - 0x07: transaction - 0x08: enchant_item - 0x09: window_click - 0x0a: close_window - 0x0b: custom_payload - 0x0c: edit_book - 0x0d: query_entity_nbt - 0x0e: use_entity - 0x0f: keep_alive - 0x10: lock_difficulty - 0x11: position - 0x12: position_look - 0x13: look - 0x14: flying - 0x15: vehicle_move - 0x16: steer_boat - 0x17: pick_item - 0x18: craft_recipe_request - 0x19: abilities - 0x1a: block_dig - 0x1b: entity_action - 0x1c: steer_vehicle - 0x1d: crafting_book_data - 0x1e: name_item - 0x1f: resource_pack_receive - 0x20: advancement_tab - 0x21: select_trade - 0x22: set_beacon_effect - 0x23: held_item_slot - 0x24: update_command_block - 0x25: update_command_block_minecart - 0x26: set_creative_slot - 0x27: update_jigsaw_block - 0x28: update_structure_block - 0x29: update_sign - 0x2a: arm_animation - 0x2b: spectate - 0x2c: block_place - 0x2d: use_item - params: name ? - if teleport_confirm: packet_teleport_confirm - if query_block_nbt: packet_query_block_nbt - if set_difficulty: packet_set_difficulty - if edit_book: packet_edit_book - if query_entity_nbt: packet_query_entity_nbt - if pick_item: packet_pick_item - if name_item: packet_name_item - if select_trade: packet_select_trade - if set_beacon_effect: packet_set_beacon_effect - if update_command_block: packet_update_command_block - if update_command_block_minecart: packet_update_command_block_minecart - if update_structure_block: packet_update_structure_block - if tab_complete: packet_tab_complete - if chat: packet_chat - if client_command: packet_client_command - if settings: packet_settings - if transaction: packet_transaction - if enchant_item: packet_enchant_item - if window_click: packet_window_click - if close_window: packet_close_window - if custom_payload: packet_custom_payload - if use_entity: packet_use_entity - if keep_alive: packet_keep_alive - if lock_difficulty: packet_lock_difficulty - if position: packet_position - if position_look: packet_position_look - if look: packet_look - if flying: packet_flying - if vehicle_move: packet_vehicle_move - if steer_boat: packet_steer_boat - if craft_recipe_request: packet_craft_recipe_request - if abilities: packet_abilities - if block_dig: packet_block_dig - if entity_action: packet_entity_action - if steer_vehicle: packet_steer_vehicle - if crafting_book_data: packet_crafting_book_data - if resource_pack_receive: packet_resource_pack_receive - if held_item_slot: packet_held_item_slot - if set_creative_slot: packet_set_creative_slot - if update_jigsaw_block: packet_update_jigsaw_block - if update_sign: packet_update_sign - if arm_animation: packet_arm_animation - if spectate: packet_spectate - if block_place: packet_block_place - if use_item: packet_use_item - if advancement_tab: packet_advancement_tab diff --git a/data/pc/21w07a/proto.yml b/data/pc/21w07a/proto.yml index b4d2f2177..a04c909e2 100644 --- a/data/pc/21w07a/proto.yml +++ b/data/pc/21w07a/proto.yml @@ -1,775 +1,13 @@ !version: 21w07a +!base: 1.16.2 ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - u16: native - u8: native - i64: native - buffer: native - i32: native - i8: native - bool: native - i16: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - nbt: native - optionalNbt: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec3i16: - x: i16 - y: i16 - z: i16 - slot: - present: bool - _: present ? - if false: void - if true: - itemId: varint - itemCount: i8 - nbtData: optionalNbt - particle: - particleId: varint - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - particleData: $compareTo ? - if 3: - blockState: varint - if 14: - red: f32 - green: f32 - blue: f32 - scale: f32 - if 23: - blockState: varint - if 34: - item: slot - default: void - ingredient: slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - entityMetadataItem: $compareTo ? - if 0: i8 - if 1: varint - if 2: f32 - if 3: string - if 4: string - if 5: [ - "option", - "string" - ] - if 6: slot - if 7: bool - if 8: - pitch: f32 - yaw: f32 - roll: f32 - if 9: position - if 10: [ - "option", - "position" - ] - if 11: varint - if 12: [ - "option", - "UUID" - ] - if 13: varint - if 14: nbt - if 15: particle - if 16: - villagerType: varint - villagerProfession: varint - level: varint - if 17: optvarint - if 18: varint - entityMetadata: [ - "entityMetadataLoop", - { - "endVal": 255, - "type": [ - "container", - [ - { - "anon": true, - "type": [ - "container", - [ - { - "name": "key", - "type": "u8" - }, - { - "name": "type", - "type": "varint" - } - ] - ] - }, - { - "name": "value", - "type": [ - "entityMetadataItem", - { - "compareTo": "type" - } - ] - } - ] - ] - } - ] - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 3, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: string - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:mob_effect: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:range: - allowDecimals: bool - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:item_enchantment: void - if minecraft:entity_summon: void - if minecraft:dimension: void - if minecraft:nbt_compound_tag: void - if minecraft:time: void - if minecraft:resource_or_tag: - registry: string - if minecraft:resource: - registry: string - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] - -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping - -^status.toClient.types: - packet_server_info: - response: string - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping + minecraft_smelting_format: !delete -^status.toServer.types: - packet_ping_start: - # Empty - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping - -^login.toClient.types: - packet_disconnect: - reason: string - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_success: - uuid: UUID - username: string - packet_compress: - threshold: varint - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - packet: - name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - -^login.toServer.types: - packet_login_start: - username: string - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - packet_login_plugin_response: - messageId: varint - data?: restBuffer - packet: - name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response + tags: !delete ^play.toClient.types: - packet_spawn_entity: - entityId: varint - objectUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - pitch: i8 - yaw: i8 - objectData: i32 - velocity: vec3i16 - packet_spawn_entity_experience_orb: - entityId: varint - x: f64 - y: f64 - z: f64 - count: i16 - packet_spawn_entity_living: - entityId: varint - entityUUID: UUID - type: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - headPitch: i8 - velocity: vec3i16 - packet_spawn_entity_painting: - entityId: varint - entityUUID: UUID - title: varint - location: position - direction: u8 - packet_named_entity_spawn: - entityId: varint - playerUUID: UUID - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - packet_animation: - entityId: varint - animation: u8 - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: string - description: string - icon: slot - frameType: varint - flags: [ - "bitfield", - [ - { - "name": "_unused", - "size": 29, - "signed": false - }, - { - "name": "hidden", - "size": 1, - "signed": false - }, - { - "name": "show_toast", - "size": 1, - "signed": false - }, - { - "name": "has_background_texture", - "size": 1, - "signed": false - } - ] - ] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - criteria: []varint - key: string - value: void - requirements: []varint - _: string[]varint - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - packet_tile_entity_data: - location: position - action: u8 - nbtData: optionalNbt - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - packet_block_change: - location: position - type: varint - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: string - if 3: string - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - packet_difficulty: - difficulty: u8 - difficultyLocked: bool - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: string - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: string - default: void - packet_nbt_query_response: - transactionId: varint - nbt: optionalNbt - packet_chat: - message: string - position: i8 - sender: UUID - packet_multi_block_change: - chunkCoordinates: [ - "bitfield", - [ - { - "name": "x", - "size": 22, - "signed": true - }, - { - "name": "z", - "size": 22, - "signed": true - }, - { - "name": "y", - "size": 20, - "signed": false - } - ] - ] - notTrustEdges: bool - records: varlong[]varint - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_close_window: - windowId: u8 - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: string - packet_window_items: - windowId: u8 - items: slot[]i16 - packet_craft_progress_bar: - windowId: u8 - property: i16 - value: i16 - packet_set_slot: - windowId: i8 - slot: i16 - item: slot - packet_set_cooldown: - itemID: varint - cooldownTicks: varint - packet_custom_payload: - channel: string - data: restBuffer - packet_named_sound_effect: - soundName: string - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_kick_disconnect: - reason: string - packet_entity_status: - entityId: i32 - entityStatus: i8 - packet_explosion: - x: f32 - y: f32 - z: f32 - radius: f32 - affectedBlockOffsets: []i32 - x: i8 - y: i8 - z: i8 - playerMotionX: f32 - playerMotionY: f32 - playerMotionZ: f32 - packet_unload_chunk: - chunkX: i32 - chunkZ: i32 - packet_game_state_change: - reason: u8 - gameMode: f32 - packet_open_horse_window: - windowId: u8 - nbSlots: varint - entityId: i32 - packet_keep_alive: - keepAliveId: i64 - packet_map_chunk: + packet_map_chunk: x: i32 z: i32 primaryBitMask: i64[]varint @@ -782,29 +20,8 @@ } ] blockEntities: nbt[]varint - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - packet_world_particles: - particleId: i32 - longDistance: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - particleData: f32 - particles: i32 - data: [ - "particleData", - { - "compareTo": "particleId" - } - ] - packet_update_light: + + packet_update_light: chunkX: varint chunkZ: varint trustEdges: bool @@ -813,150 +30,8 @@ emptySkyLightMask: i64[]varint emptyBlockLightMask: i64[]varint data: restBuffer - packet_login: - entityId: i32 - isHardcore: bool - gameMode: u8 - previousGameMode: u8 - worldNames: string[]varint - dimensionCodec: nbt - dimension: nbt - worldName: string - hashedSeed: i64 - maxPlayers: varint - viewDistance: varint - reducedDebugInfo: bool - enableRespawnScreen: bool - isDebug: bool - isFlat: bool - packet_map: - itemDamage: varint - scale: i8 - trackingPosition: bool - locked: bool - icons: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: string - columns: i8 - rows: columns ? - if 0: void - default: i8 - x: columns ? - if 0: void - default: i8 - y: columns ? - if 0: void - default: i8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - packet_trade_list: - windowId: varint - trades: []u8 - inputItem1: slot - outputItem: slot - inputItem2?: slot - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - packet_entity: - entityId: varint - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_open_book: - hand: varint - packet_open_sign_entity: - location: position - packet_craft_recipe_response: - windowId: i8 - recipe: string - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - packet_combat_event: - event: varint - duration: event ? - if 1: varint - default: void - playerId: event ? - if 2: varint - default: void - entityId: event ? - if 1: i32 - if 2: i32 - default: void - message: event ? - if 2: string - default: void - # MC: ClientboundPlayerInfoPacket - packet_player_info: - action: varint => - - add_player - - update_game_mode - - update_latency - - update_display_name - - remove_player - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.18.1/client/net/minecraft/network/protocol/game/ClientboundPlayerInfoPacket.java#L122 - data: []varint - uuid: UUID - _: ../action ? - if add_player: - name: string - properties: []varint - name: string - value: string - signature?: string - gamemode: varint - ping: varint - displayName?: string - if update_game_mode: - gamemode: varint - if update_latency: - ping: varint - if update_display_name: - displayName?: string - if remove_player: void - packet_position: + + packet_position: x: f64 y: f64 z: f64 @@ -965,270 +40,22 @@ flags: i8 teleportId: varint dismountVehicle: bool - packet_unlock_recipes: - action: varint - craftingBookOpen: bool - filteringCraftable: bool - smeltingBookOpen: bool - filteringSmeltable: bool - blastFurnaceOpen: bool - filteringBlastFurnace: bool - smokerBookOpen: bool - filteringSmoker: bool - recipes1: string[]varint - recipes2: action ? - if 0: string[]varint - default: void - packet_entity_destroy: - entityIds: varint[]varint - packet_remove_entity_effect: - entityId: varint - effectId: i8 - packet_resource_pack_send: + + packet_resource_pack_send: url: string hash: string forced: bool - packet_respawn: - dimension: nbt - worldName: string - hashedSeed: i64 - gamemode: u8 - previousGamemode: u8 - isDebug: bool - isFlat: bool - copyMetadata: bool - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - packet_world_border: - action: varint - radius: action ? - if 0: f64 - default: void - x: action ? - if 2: f64 - if 3: f64 - default: void - z: action ? - if 2: f64 - if 3: f64 - default: void - old_radius: action ? - if 1: f64 - if 3: f64 - default: void - new_radius: action ? - if 1: f64 - if 3: f64 - default: void - speed: action ? - if 1: varlong - if 3: varlong - default: void - portalBoundary: action ? - if 3: varint - default: void - warning_time: action ? - if 3: varint - if 4: varint - default: void - warning_blocks: action ? - if 3: varint - if 5: varint - default: void - packet_camera: - cameraId: varint - packet_held_item_slot: - slot: i8 - packet_update_view_position: - chunkX: varint - chunkZ: varint - packet_update_view_distance: - viewDistance: varint - packet_scoreboard_display_objective: - position: i8 - name: string - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - packet_attach_entity: - entityId: i32 - vehicleId: i32 - packet_entity_velocity: - entityId: varint - velocity: vec3i16 - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ] - ] - } - ] - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: string - if 2: string - default: void - type: action ? - if 0: varint - if 2: varint - default: void - packet_set_passengers: - entityId: varint - passengers: varint[]varint - packet_teams: - team: string - mode: i8 - name: mode ? - if 0: string - if 2: string - default: void - friendlyFire: mode ? - if 0: i8 - if 2: i8 - default: void - nameTagVisibility: mode ? - if 0: string - if 2: string - default: void - collisionRule: mode ? - if 0: string - if 2: string - default: void - formatting: mode ? - if 0: varint - if 2: varint - default: void - prefix: mode ? - if 0: string - if 2: string - default: void - suffix: mode ? - if 0: string - if 2: string - default: void - players: mode ? - if 0: string[]varint - if 3: string[]varint - if 4: string[]varint - default: void - packet_scoreboard_score: - itemName: string - action: varint - scoreName: string - value: action ? - if 1: void - default: varint - packet_spawn_position: - location: position - packet_update_time: - age: i64 - time: i64 - packet_title: - action: varint - text: action ? - if 0: string - if 1: string - if 2: string - default: void - fadeIn: action ? - if 3: i32 - default: void - stay: action ? - if 3: i32 - default: void - fadeOut: action ? - if 3: i32 - default: void - packet_entity_sound_effect: - soundId: varint - soundCategory: varint - entityId: varint - volume: f32 - pitch: f32 - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - packet_sound_effect: - soundId: varint - soundCategory: varint - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - packet_playerlist_header: - header: string - footer: string - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - packet_entity_update_attributes: - entityId: varint - properties: []i32 - key: string - value: f64 - modifiers: []varint - uuid: UUID - amount: f64 - operation: i8 - packet_entity_effect: - entityId: varint - effectId: i8 - amplifier: i8 - duration: varint - hideParticles: i8 - packet_select_advancement_tab: - id?: string - packet_declare_recipes: + + packet_declare_recipes: recipes: []varint type: string recipeId: string data: type ? - if minecraft:crafting_shapeless: + if minecraft:crafting_shapeless: group: string ingredients: ingredient[]varint result: slot - if minecraft:crafting_shaped: + if minecraft:crafting_shaped: width: varint height: varint group: string @@ -1253,33 +80,32 @@ if minecraft:blasting: minecraft_smelting_format if minecraft:smoking: minecraft_smelting_format if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: + if minecraft:stonecutting: group: string ingredient: ingredient result: slot - if minecraft:smithing: + if minecraft:smithing: base: ingredient addition: ingredient result: slot - minecraft_smelting_format: + + minecraft_smelting_format: group: string ingredient: ingredient result: slot experience: f32 cookTime: varint + tags: []varint tagName: string entries: varint[]varint - packet_tags: + + packet_tags: tags: []varint tagType: string tags: tags - packet_acknowledge_player_digging: - location: position - block: varint - status: varint - successful: bool - packet_sculk_vibration_signal: + + packet_sculk_vibration_signal: sourcePosition: position destinationIdentifier: string destination: destinationIdentifier ? @@ -1287,7 +113,8 @@ if entityId: varint default: void arrivalTicks: varint - packet: + + packet: name: varint => 0x00: spawn_entity 0x01: spawn_entity_experience_orb @@ -1478,63 +305,7 @@ if sculk_vibration_signal: packet_sculk_vibration_signal ^play.toServer.types: - packet_teleport_confirm: - teleportId: varint - packet_query_block_nbt: - transactionId: varint - location: position - packet_set_difficulty: - newDifficulty: u8 - packet_edit_book: - new_book: slot - signing: bool - hand: varint - packet_query_entity_nbt: - transactionId: varint - entityId: varint - packet_pick_item: - slot: varint - packet_name_item: - name: string - packet_select_trade: - slot: varint - packet_set_beacon_effect: - primary_effect: varint - secondary_effect: varint - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varlong - flags: u8 - packet_tab_complete: - transactionId: varint - text: string - packet_chat: - message: string - packet_client_command: - actionId: varint - packet_settings: + packet_settings: locale: string viewDistance: i8 chatFlags: varint @@ -1542,141 +313,8 @@ skinParts: u8 mainHand: varint disableTextFiltering: bool - packet_transaction: - windowId: i8 - action: i16 - accepted: bool - packet_enchant_item: - windowId: i8 - enchantment: i8 - packet_window_click: - windowId: u8 - slot: i16 - mouseButton: i8 - action: i16 - mode: i8 - item: slot - packet_close_window: - windowId: u8 - packet_custom_payload: - channel: string - data: restBuffer - packet_use_entity: - target: varint - mouse: varint - x: mouse ? - if 2: f32 - default: void - y: mouse ? - if 2: f32 - default: void - z: mouse ? - if 2: f32 - default: void - hand: mouse ? - if 0: varint - if 2: varint - default: void - sneaking: bool - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - packet_keep_alive: - keepAliveId: i64 - packet_lock_difficulty: - locked: bool - packet_position: - x: f64 - y: f64 - z: f64 - onGround: bool - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - packet_look: - yaw: f32 - pitch: f32 - onGround: bool - packet_flying: - onGround: bool - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - packet_craft_recipe_request: - windowId: i8 - recipe: string - makeAll: bool - packet_abilities: - flags: i8 - packet_block_dig: - status: varint - location: position - face: i8 - packet_entity_action: - entityId: varint - actionId: varint - jumpBoost: varint - packet_steer_vehicle: - sideways: f32 - forward: f32 - jump: u8 - packet_displayed_recipe: - recipeId: string - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - packet_resource_pack_receive: - result: varint - packet_held_item_slot: - slotId: i16 - packet_set_creative_slot: - slot: i16 - item: slot - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - packet_update_sign: - location: position - text1: string - text2: string - text3: string - text4: string - packet_arm_animation: - hand: varint - packet_spectate: - target: UUID - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - packet_use_item: - hand: varint - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - packet: + + packet: name: varint => 0x00: teleport_confirm 0x01: query_block_nbt diff --git a/data/pc/26.1/protocol.json b/data/pc/26.1/protocol.json index bfe880976..76ef6dc52 100644 --- a/data/pc/26.1/protocol.json +++ b/data/pc/26.1/protocol.json @@ -5453,467 +5453,149 @@ } } }, - "configuration": { + "play": { "toClient": { "types": { - "packet": [ + "ChatType": [ "container", [ { - "name": "name", - "type": [ - "mapper", - { - "mappings": { - "0x00": "cookie_request", - "0x01": "custom_payload", - "0x02": "disconnect", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "ping", - "0x06": "reset_chat", - "0x07": "registry_data", - "0x08": "remove_resource_pack", - "0x09": "add_resource_pack", - "0x0a": "store_cookie", - "0x0b": "transfer", - "0x0c": "feature_flags", - "0x0d": "tags", - "0x0e": "select_known_packs", - "0x0f": "custom_report_details", - "0x10": "server_links", - "0x11": "clear_dialog", - "0x12": "show_dialog", - "0x13": "code_of_conduct" - }, - "type": "varint" - } - ] + "name": "translationKey", + "type": "string" }, { - "name": "params", + "name": "parameters", "type": [ - "switch", + "array", { - "compareTo": "name", - "fields": { - "add_resource_pack": "packet_common_add_resource_pack", - "clear_dialog": "packet_common_clear_dialog", - "code_of_conduct": "packet_code_of_conduct", - "cookie_request": "packet_common_cookie_request", - "custom_payload": "packet_custom_payload", - "custom_report_details": "packet_common_custom_report_details", - "disconnect": "packet_disconnect", - "feature_flags": "packet_feature_flags", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "ping": "packet_ping", - "registry_data": "packet_registry_data", - "remove_resource_pack": "packet_common_remove_resource_pack", - "reset_chat": "packet_reset_chat", - "select_known_packs": "packet_common_select_known_packs", - "server_links": "packet_common_server_links", - "show_dialog": "packet_show_dialog", - "store_cookie": "packet_common_store_cookie", - "tags": "packet_tags", - "transfer": "packet_common_transfer" - } + "countType": "varint", + "type": "ChatTypeParameterType" } ] - } - ] - ], - "packet_code_of_conduct": [ - "container", - [ + }, { - "name": "contents", - "type": "string" + "name": "style", + "type": "anonymousNbt" } ] ], - "packet_custom_payload": [ + "ChatTypeParameterType": [ + "mapper", + { + "mappings": { + "0": "content", + "1": "sender", + "2": "target" + }, + "type": "varint" + } + ], + "ChatTypes": [ "container", [ { - "name": "channel", - "type": "string" + "name": "chat", + "type": "ChatType" }, { - "name": "data", - "type": "restBuffer" + "name": "narration", + "type": "ChatType" } ] ], - "packet_disconnect": [ - "container", - [ - { - "name": "reason", - "type": "anonymousNbt" + "ChatTypesHolder": [ + "registryEntryHolder", + { + "baseName": "chatType", + "otherwise": { + "name": "data", + "type": "ChatTypes" } - ] + } ], - "packet_feature_flags": [ + "ExplosionParticleEntry": [ "container", [ { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ + "name": "data", + "type": "ExplosionParticleInfo" + }, { - "name": "keepAliveId", - "type": "i64" + "name": "weight", + "type": "varint" } ] ], - "packet_ping": [ + "ExplosionParticleInfo": [ "container", [ { - "name": "id", - "type": "i32" - } - ] - ], - "packet_registry_data": [ - "container", - [ + "name": "particle", + "type": "Particle" + }, { - "name": "id", - "type": "string" + "name": "scaling", + "type": "f32" }, { - "name": "entries", - "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "key", - "type": "string" - }, - { - "name": "value", - "type": [ - "option", - "anonymousNbt" - ] - } - ] - ] - } - ] + "name": "speed", + "type": "f32" } ] ], - "packet_reset_chat": [ - "container", - [] + "PositionUpdateRelatives": [ + "bitflags", + { + "flags": [ + "x", + "y", + "z", + "yaw", + "pitch", + "dx", + "dy", + "dz", + "yawDelta" + ], + "type": "u32" + } ], - "packet_show_dialog": [ + "RecipeBookSetting": [ "container", [ { - "name": "dialog", - "type": "anonymousNbt" + "name": "open", + "type": "bool" + }, + { + "name": "filtering", + "type": "bool" } ] ], - "packet_tags": [ + "RecipeDisplay": [ "container", [ { - "name": "tags", + "name": "type", "type": [ - "array", + "mapper", { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "tagType", - "type": "string" - }, - { - "name": "tags", - "type": "tags" - } - ] - ] + "mappings": { + "0": "crafting_shapeless", + "1": "crafting_shaped", + "2": "furnace", + "3": "stonecutter", + "4": "smithing" + }, + "type": "varint" } ] - } - ] - ] - } - }, - "toServer": { - "types": { - "packet": [ - "container", - [ + }, { - "name": "name", + "name": "data", "type": [ - "mapper", - { - "mappings": { - "0x00": "settings", - "0x01": "cookie_response", - "0x02": "custom_payload", - "0x03": "finish_configuration", - "0x04": "keep_alive", - "0x05": "pong", - "0x06": "resource_pack_receive", - "0x07": "select_known_packs", - "0x08": "custom_click_action", - "0x09": "accept_code_of_conduct" - }, - "type": "varint" - } - ] - }, - { - "name": "params", - "type": [ - "switch", - { - "compareTo": "name", - "fields": { - "accept_code_of_conduct": "packet_accept_code_of_conduct", - "cookie_response": "packet_common_cookie_response", - "custom_click_action": "packet_common_custom_click_action", - "custom_payload": "packet_custom_payload", - "finish_configuration": "packet_finish_configuration", - "keep_alive": "packet_keep_alive", - "pong": "packet_pong", - "resource_pack_receive": "packet_resource_pack_receive", - "select_known_packs": "packet_common_select_known_packs", - "settings": "packet_common_settings" - } - } - ] - } - ] - ], - "packet_accept_code_of_conduct": [ - "container", - [] - ], - "packet_custom_payload": [ - "container", - [ - { - "name": "channel", - "type": "string" - }, - { - "name": "data", - "type": "restBuffer" - } - ] - ], - "packet_finish_configuration": [ - "container", - [] - ], - "packet_keep_alive": [ - "container", - [ - { - "name": "keepAliveId", - "type": "i64" - } - ] - ], - "packet_pong": [ - "container", - [ - { - "name": "id", - "type": "i32" - } - ] - ], - "packet_resource_pack_receive": [ - "container", - [ - { - "name": "uuid", - "type": "UUID" - }, - { - "name": "result", - "type": "varint" - } - ] - ] - } - } - }, - "play": { - "toClient": { - "types": { - "ChatType": [ - "container", - [ - { - "name": "translationKey", - "type": "string" - }, - { - "name": "parameters", - "type": [ - "array", - { - "countType": "varint", - "type": "ChatTypeParameterType" - } - ] - }, - { - "name": "style", - "type": "anonymousNbt" - } - ] - ], - "ChatTypeParameterType": [ - "mapper", - { - "mappings": { - "0": "content", - "1": "sender", - "2": "target" - }, - "type": "varint" - } - ], - "ChatTypes": [ - "container", - [ - { - "name": "chat", - "type": "ChatType" - }, - { - "name": "narration", - "type": "ChatType" - } - ] - ], - "ChatTypesHolder": [ - "registryEntryHolder", - { - "baseName": "chatType", - "otherwise": { - "name": "data", - "type": "ChatTypes" - } - } - ], - "ExplosionParticleEntry": [ - "container", - [ - { - "name": "data", - "type": "ExplosionParticleInfo" - }, - { - "name": "weight", - "type": "varint" - } - ] - ], - "ExplosionParticleInfo": [ - "container", - [ - { - "name": "particle", - "type": "Particle" - }, - { - "name": "scaling", - "type": "f32" - }, - { - "name": "speed", - "type": "f32" - } - ] - ], - "PositionUpdateRelatives": [ - "bitflags", - { - "flags": [ - "x", - "y", - "z", - "yaw", - "pitch", - "dx", - "dy", - "dz", - "yawDelta" - ], - "type": "u32" - } - ], - "RecipeBookSetting": [ - "container", - [ - { - "name": "open", - "type": "bool" - }, - { - "name": "filtering", - "type": "bool" - } - ] - ], - "RecipeDisplay": [ - "container", - [ - { - "name": "type", - "type": [ - "mapper", - { - "mappings": { - "0": "crafting_shapeless", - "1": "crafting_shaped", - "2": "furnace", - "3": "stonecutter", - "4": "smithing" - }, - "type": "varint" - } - ] - }, - { - "name": "data", - "type": [ - "switch", + "switch", { "compareTo": "type", "fields": { @@ -11844,5 +11526,323 @@ ] } } + }, + "configuration": { + "toClient": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "cookie_request", + "0x01": "custom_payload", + "0x02": "disconnect", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "ping", + "0x06": "reset_chat", + "0x07": "registry_data", + "0x08": "remove_resource_pack", + "0x09": "add_resource_pack", + "0x0a": "store_cookie", + "0x0b": "transfer", + "0x0c": "feature_flags", + "0x0d": "tags", + "0x0e": "select_known_packs", + "0x0f": "custom_report_details", + "0x10": "server_links", + "0x11": "clear_dialog", + "0x12": "show_dialog", + "0x13": "code_of_conduct" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "add_resource_pack": "packet_common_add_resource_pack", + "clear_dialog": "packet_common_clear_dialog", + "code_of_conduct": "packet_code_of_conduct", + "cookie_request": "packet_common_cookie_request", + "custom_payload": "packet_custom_payload", + "custom_report_details": "packet_common_custom_report_details", + "disconnect": "packet_disconnect", + "feature_flags": "packet_feature_flags", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "ping": "packet_ping", + "registry_data": "packet_registry_data", + "remove_resource_pack": "packet_common_remove_resource_pack", + "reset_chat": "packet_reset_chat", + "select_known_packs": "packet_common_select_known_packs", + "server_links": "packet_common_server_links", + "show_dialog": "packet_show_dialog", + "store_cookie": "packet_common_store_cookie", + "tags": "packet_tags", + "transfer": "packet_common_transfer" + } + } + ] + } + ] + ], + "packet_code_of_conduct": [ + "container", + [ + { + "name": "contents", + "type": "string" + } + ] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_disconnect": [ + "container", + [ + { + "name": "reason", + "type": "anonymousNbt" + } + ] + ], + "packet_feature_flags": [ + "container", + [ + { + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] + ], + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_ping": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], + "packet_registry_data": [ + "container", + [ + { + "name": "id", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "key", + "type": "string" + }, + { + "name": "value", + "type": [ + "option", + "anonymousNbt" + ] + } + ] + ] + } + ] + } + ] + ], + "packet_reset_chat": [ + "container", + [] + ], + "packet_show_dialog": [ + "container", + [ + { + "name": "dialog", + "type": "anonymousNbt" + } + ] + ], + "packet_tags": [ + "container", + [ + { + "name": "tags", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] + } + ] + } + ] + ] + } + }, + "toServer": { + "types": { + "packet": [ + "container", + [ + { + "name": "name", + "type": [ + "mapper", + { + "mappings": { + "0x00": "settings", + "0x01": "cookie_response", + "0x02": "custom_payload", + "0x03": "finish_configuration", + "0x04": "keep_alive", + "0x05": "pong", + "0x06": "resource_pack_receive", + "0x07": "select_known_packs", + "0x08": "custom_click_action", + "0x09": "accept_code_of_conduct" + }, + "type": "varint" + } + ] + }, + { + "name": "params", + "type": [ + "switch", + { + "compareTo": "name", + "fields": { + "accept_code_of_conduct": "packet_accept_code_of_conduct", + "cookie_response": "packet_common_cookie_response", + "custom_click_action": "packet_common_custom_click_action", + "custom_payload": "packet_custom_payload", + "finish_configuration": "packet_finish_configuration", + "keep_alive": "packet_keep_alive", + "pong": "packet_pong", + "resource_pack_receive": "packet_resource_pack_receive", + "select_known_packs": "packet_common_select_known_packs", + "settings": "packet_common_settings" + } + } + ] + } + ] + ], + "packet_accept_code_of_conduct": [ + "container", + [] + ], + "packet_custom_payload": [ + "container", + [ + { + "name": "channel", + "type": "string" + }, + { + "name": "data", + "type": "restBuffer" + } + ] + ], + "packet_finish_configuration": [ + "container", + [] + ], + "packet_keep_alive": [ + "container", + [ + { + "name": "keepAliveId", + "type": "i64" + } + ] + ], + "packet_pong": [ + "container", + [ + { + "name": "id", + "type": "i32" + } + ] + ], + "packet_resource_pack_receive": [ + "container", + [ + { + "name": "uuid", + "type": "UUID" + }, + { + "name": "result", + "type": "varint" + } + ] + ] + } + } } } \ No newline at end of file diff --git a/data/pc/latest/proto.yml b/data/pc/latest/proto.yml index 120c8f683..216166650 100644 --- a/data/pc/latest/proto.yml +++ b/data/pc/latest/proto.yml @@ -1,70 +1,7 @@ !version: 26.1 -!StartDocs: true +!base: 1.21.11 ^types: - varint: native - varlong: native - optvarint: varint - pstring: native - buffer: native - u8: native - u16: native - u32: native - u64: native - i8: native - i16: native - i32: native - i64: native - bool: native - f32: native - f64: native - UUID: native - option: native - entityMetadataLoop: native - topBitSetTerminatedArray: native - bitfield: native - bitflags: native - container: native - switch: native - void: native - array: native - restBuffer: native - anonymousNbt: native - anonOptionalNbt: native - registryEntryHolder: native - registryEntryHolderSet: native - lpVec3: native - ByteArray: ["buffer", { "countType": "varint" }] - string: ["pstring", { "countType": "varint" }] - vec2f: - x: f32 - y: f32 - vec3f: - x: f32 - y: f32 - z: f32 - vec4f: - x: f32 - y: f32 - z: f32 - w: f32 - vec3f64: - x: f64 - y: f64 - z: f64 - vec3i: - x: varint - y: varint - z: varint - vec3i32: - x: i32 - y: i32 - z: i32 - IDSet: ["registryEntryHolderSet", { - "base": { name: "name", type: "string" }, - "otherwise": { name: "ids", type: "varint" } - }] - ContainerID: varint SlotComponentType: varint => - custom_data - max_stack_size @@ -268,7 +205,7 @@ bypassedBy?: string blockSound?: ItemSoundHolder disableSound?: ItemSoundHolder - if food: + if food: nutrition: varint # How much saturation will be given after consuming the item. saturationModifier: f32 @@ -488,150 +425,7 @@ if cat/collar: DyeColor if sheep/color: DyeColor if shulker/color: DyeColor - - ItemSoundEvent: - soundName: string - fixedRange?: f32 - ItemSoundHolder: ["registryEntryHolder", { - "baseName": "soundId", - "otherwise": { name: "data", type: "ItemSoundEvent" } - }] - - ItemFireworkExplosion: - shape: varint => - - small_ball - - large_ball - - star - - creeper - - burst - # The RGB components of the color, encoded as an integer. - colors: i32[]varint - # The RGB components of the color, encoded as an integer. - fadeColors: i32[]varint - # Whether the firework has a trail. - hasTrail: bool - # Whether the firework has a twinkle effect. - hasTwinkle: bool - - ItemEffectDetail: - amplifier: varint - duration: varint - ambient: bool - showParticles: bool - showIcon: bool - hiddenEffect?: ItemEffectDetail - - ItemPotionEffect: - id: varint - details: ItemEffectDetail - - ItemBlockProperty: - name: string - isExactMatch: bool - value: isExactMatch ? - if true: - exactValue: string - if false: - minValue: string - maxValue: string - - ExactComponentMatcher: SlotComponent[]varint - - DataComponentMatchers: - exactMatchers: ExactComponentMatcher - partialMatchers: varint[]varint - - ItemBlockPredicate: - blockSet?: ["registryEntryHolderSet", { - "base": { name: "name", type: "string" }, - "otherwise": { name: "blockIds", "type": "varint" } - }] - properties?: ItemBlockProperty[]varint - nbt: anonOptionalNbt - components: DataComponentMatchers - - ItemBookPage: - # The raw text of the page. TextComponent, max 1024 characters. - content: string - filteredContent?: string - ItemWrittenBookPage: - content: anonymousNbt - filteredContent: anonOptionalNbt - - ItemConsumeEffect: # 1.21.3 - type: varint => - - apply_effects - - remove_effects - - clear_all_effects - - teleport_randomly - - play_sound - _: type ? - if apply_effects: - effects: ItemPotionEffect[]varint - probability: f32 - if remove_effects: - effects: IDSet - if clear_all_effects: void - if teleport_randomly: - diameter: f32 - if play_sound: - sound: ItemSoundHolder - - ArmorTrimMaterial: - assetBase: string - overrideArmorAssets: []varint - key: string - value: string - description: anonymousNbt - - ArmorTrimPattern: - assetId: string - description: anonymousNbt - decal: bool - - InstrumentData: - soundEvent: ItemSoundHolder - useDuration: f32 - range: f32 - description: anonymousNbt - JukeboxSongData: - soundEvent: ItemSoundHolder - description: anonymousNbt - lengthInSeconds: f32 - comparatorOutput: varint - - BannerPattern: - assetId: string - translationKey: string - BannerPatternLayer: - pattern: ["registryEntryHolder", { "baseName": "patternId", "otherwise": { "name": "data", "type": "BannerPattern" } }] - colorId: varint - - DamageTypeData: - msgId: string - scaling: varint => - - never - - when_caused_by_living_non_player - - always - exhaustion: f32 - effects: varint => - - hurt - - thorns - - drowning - - burning - - poking - - freezing - deathMessageType: varint => - - default - - fall_variants - - intentional_game_design - - KineticWeaponCondition: - maxDurationTicks: varint - minSpeed: f32 - minRelativeSpeed: f32 - DyeColor: varint => - white - orange @@ -650,254 +444,6 @@ - red - black - # This represents a single component within an UntrustedSlot. - # The 'data' field is a varint-prefixed byte array that contains the actual component data. - # The code generator will need to know that it should read a varint for length, then the bytes. - UntrustedSlotComponent: - type: SlotComponentType - data: ByteArray - - # An UntrustedSlot is structurally identical to a regular Slot, - # but it uses the special UntrustedSlotComponent type for its component list. - # It's optional because the player might be clearing the slot. - UntrustedSlot: - itemCount: varint - _: itemCount ? - if 0: void - default: - itemId: varint - addedComponentCount: varint - removedComponentCount: varint - components: UntrustedSlotComponent[]$addedComponentCount - removeComponents: []$removedComponentCount - type: SlotComponentType - if false: void - - Slot: - itemCount: varint - _: itemCount ? - if 0: void - default: - itemId: varint - # https://wiki.vg/Slot_Data#Structured_components - addedComponentCount: varint - removedComponentCount: varint - components: SlotComponent[]$addedComponentCount - removeComponents: []$removedComponentCount - type: SlotComponentType - - HashedSlot: - itemId: varint - itemCount: varint - components: []varint - type: SlotComponentType - hash: i32 - removeComponents: []varint - type: SlotComponentType - - RespawnData: - globalPos: GlobalPos - yaw: f32 - pitch: f32 - - GlobalPos: - dimensionName: string - location: position - - DebugStructureInfo: - boundingBoxMin: position - boundingBoxMax: position - pieces: []varint - boundingBoxMin: position - boundingBoxMax: position - isStart: bool - - Node: - position: vec3i32 - walkedDistance: f32 - costMalus: f32 - closed: bool - type: varint => - - blocked - - open - - walkable - - walkable_door - - trapdoor - - powder_snow - - danger_powder_snow - - fence - - lava - - water - - water_border - - rail - - unpassable_rail - - danger_fire - - damage_fire - - danger_other - - damage_other - - door_open - - door_wood_closed - - door_iron_closed - - breach - - leaves - - sticky_honey - - cocoa - - damage_cautious - - danger_trapdoor - f: f32 - - PathDebugData: - openSet: Node[]varint - closedSet: Node[]varint - targetNodes: Node[]varint - - Path: - reached: bool - nextNodeIndex: i32 - target: position - nodes: Node[]varint - debugData: PathDebugData - - DebugSubscriptionDataType: varint => - - DedicatedServerTickTime - - Bees - - Brains - - Breezes - - GoalSelectors - - EntityPaths - - EntityBlockIntersections - - BeeHives - - Pois - - RedstoneWireOrientations - - VillageSections - - Raids - - Structures - - GameEventListeners - - NeighborUpdates - - GameEvents - - DebugSubscriptionUpdate: - type: DebugSubscriptionDataType - _: type ? - if DedicatedServerTickTime: void - default: - payload?: type ? - if DedicatedServerTickTime or VillageSections: void - if Bees: # DebugSubscriptionDataBeeInfo - hivePos?: position - flowerPos?: position - travelTicks: varint - blacklistedHives: position[]varint - if Brains: # DebugSubscriptionDataBrainDump - name: string - profession: string - xp: i32 - health: f32 - maxHealth: f32 - inventory: string - wantsGolem: bool - angerLevel: i32 - activities: string[]varint - behaviors: string[]varint - memories: string[]varint - gossips: string[]varint - pois: position[]varint - potentialPois: position[]varint - if Breezes: # DebugSubscriptionDataBreezeInfo - attackTarget?: varint - jumpTarget?: position - if GoalSelectors: # DebugSubscriptionDataGoalInfo - goals: []varint - priority: varint - running: bool - name: string - if EntityPaths: # DebugSubscriptionDataPathInfo - path: Path - maxNodeDistance: f32 - if EntityBlockIntersections: # DebugSubscriptionDataEntityBlockIntersection - id: varint - if BeeHives: # DebugSubscriptionDataHiveInfo - type: varint - occupantCount: varint - honeyLevel: varint - sedated: bool - if Pois: # DebugSubscriptionDataPoiInfo - pos: position - poiType: varint - freeTicketCount: varint - if RedstoneWireOrientations: # DebugSubscriptionDataOrientation - index: varint - if Raids: # DebugSubscriptionDataRaids - positions: position[]varint - if Structures: # DebugSubscriptionDataStructures - structures: DebugStructureInfo[]varint - if GameEventListeners: # DebugSubscriptionDataGameEventListenerInfo - listenerRadius: varint - if NeighborUpdates: # DebugSubscriptionDataNeighbor - pos: position - if GameEvents: # DebugSubscriptionDataGameEventInfo - event: varint - pos: vec3f64 - - DebugSubscriptionEvent: - type: DebugSubscriptionDataType - value: type ? - if DedicatedServerTickTime or VillageSections: void - if Bees: # DebugSubscriptionDataBeeInfo - hivePos?: position - flowerPos?: position - travelTicks: varint - blacklistedHives: position[]varint - if Brains: # DebugSubscriptionDataBrainDump - name: string - profession: string - xp: i32 - health: f32 - maxHealth: f32 - inventory: string - wantsGolem: bool - angerLevel: i32 - activities: string[]varint - behaviors: string[]varint - memories: string[]varint - gossips: string[]varint - pois: position[]varint - potentialPois: position[]varint - if Breezes: # DebugSubscriptionDataBreezeInfo - attackTarget?: varint - jumpTarget?: position - if GoalSelectors: # DebugSubscriptionDataGoalInfo - priority: varint - running: bool - name: string - if EntityPaths: # DebugSubscriptionDataPathInfo - path: Path - maxNodeDistance: f32 - if EntityBlockIntersections: # DebugSubscriptionDataEntityBlockIntersection - id: varint - if BeeHives: # DebugSubscriptionDataHiveInfo - type: varint - occupantCount: varint - honeyLevel: varint - sedated: bool - if Pois: # DebugSubscriptionDataPoiInfo - pos: position - poiType: varint - freeTicketCount: varint - if RedstoneWireOrientations: # DebugSubscriptionDataOrientation - index: varint - if Raids: # DebugSubscriptionDataRaids - positions: position[]varint - if Structures: # DebugSubscriptionDataStructures - structures: DebugStructureInfo[]varint - if GameEventListeners: # DebugSubscriptionDataGameEventListenerInfo - listenerRadius: varint - if NeighborUpdates: # DebugSubscriptionDataNeighbor - pos: position - if GameEvents: # DebugSubscriptionDataGameEventInfo - event: varint - pos: vec3f64 - Particle: # See client/net/minecraft/core/particles/ParticleTypes.java type: varint => @@ -1072,52 +618,7 @@ color: i32 power: f32 if flash: i32 - ingredient: Slot[]varint - position: [ - "bitfield", - [ - { - "name": "x", - "size": 26, - "signed": true - }, - { - "name": "z", - "size": 26, - "signed": true - }, - { - "name": "y", - "size": 12, - "signed": true - } - ] - ] - soundSource: varint => - 0: master - 1: music - 2: record - 3: weather - 4: block - 5: hostile - 6: neutral - 7: player - 8: ambient - 9: voice - 10: ui - packedChunkPos: - z: i32 - x: i32 - previousMessages: []varint - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void + entityMetadataEntry: key: u8 type: varint => @@ -1219,741 +720,11 @@ if humanoid_arm: varint => - left - right - EntityMetadataPaintingVariant: - width: i32 - height: i32 - assetId: string - title?: anonymousNbt - author?: anonymousNbt - entityMetadata: ["entityMetadataLoop", { "endVal": 255, "type": "entityMetadataEntry" }] - tags: []varint - tagName: string - entries: varint[]varint - chunkBlockEntity: - _: [ - "bitfield", - [ - { - "name": "x", - "size": 4, - "signed": false - }, - { - "name": "z", - "size": 4, - "signed": false - } - ] - ] - y: i16 - type: varint - nbtData: anonOptionalNbt - chat_session?: - uuid: UUID - publicKey: - expireTime: i64 - keyBytes: [ - "buffer", - { - "countType": "varint" - } - ] - keySignature: [ - "buffer", - { - "countType": "varint" - } - ] - # No UUID - game_profile_name_prop: - name: string - properties: GameProfileProperty[]varint - # With UUID - GameProfile: - uuid: UUID - name: string - properties: GameProfileProperty[]varint - PartialResolvableProfile: - name?: string - uuid?: UUID - properties: GameProfileProperty[]varint - GameProfileProperty: - name: string - value: string - signature?: string - ResolvableProfile: - type: varint => - - partial - - complete - _: type ? - if partial: PartialResolvableProfile - if complete: GameProfile - skinPatch: PlayerSkinPatch - PlayerSkinPatch: - body?: string - cape?: string - elytra?: string - model?: varint => - - wide - - slim + GameRule: name: string value: string - command_node: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 2, - "signed": false - }, - { - "name": "allows_restricted", - "size": 1, - "signed": false - }, - { - "name": "has_custom_suggestions", - "size": 1, - "signed": false - }, - { - "name": "has_redirect_node", - "size": 1, - "signed": false - }, - { - "name": "has_command", - "size": 1, - "signed": false - }, - { - "name": "command_node_type", - "size": 2, - "signed": false - } - ] - ] - children: varint[]varint - redirectNode: flags/has_redirect_node ? - if 1: varint - default: void - extraNodeData: flags/command_node_type ? - if 0: void - if 1: - name: string - if 2: - name: string - parser: varint => - - brigadier:bool - - brigadier:float - - brigadier:double - - brigadier:integer - - brigadier:long - - brigadier:string - - minecraft:entity - - minecraft:game_profile - - minecraft:block_pos - - minecraft:column_pos - - minecraft:vec3 - - minecraft:vec2 - - minecraft:block_state - - minecraft:block_predicate - - minecraft:item_stack - - minecraft:item_predicate - - minecraft:color - - minecraft:hex_color # 1.21.6 - - minecraft:component - - minecraft:style - - minecraft:message - - minecraft:nbt - - minecraft:nbt_tag - - minecraft:nbt_path - - minecraft:objective - - minecraft:objective_criteria - - minecraft:operation - - minecraft:particle - - minecraft:angle - - minecraft:rotation - - minecraft:scoreboard_slot - - minecraft:score_holder - - minecraft:swizzle - - minecraft:team - - minecraft:item_slot - - minecraft:item_slots # 1.20.5 - - minecraft:resource_location - - minecraft:function - - minecraft:entity_anchor - - minecraft:int_range - - minecraft:float_range - - minecraft:dimension - - minecraft:gamemode - - minecraft:time - - minecraft:resource_or_tag - - minecraft:resource_or_tag_key - - minecraft:resource - - minecraft:resource_key - - minecraft:resource_selector - - minecraft:template_mirror - - minecraft:template_rotation - - minecraft:heightmap - - minecraft:loot_table # 1.20.5 - - minecraft:loot_predicate # 1.20.5 - - minecraft:loot_modifier # 1.20.5 - - minecraft:dialog # 1.21.6 - - minecraft:uuid - properties: parser ? - if brigadier:bool: void - if brigadier:float: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f32 - default: void - max: flags/max_present ? - if 1: f32 - default: void - if brigadier:double: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: f64 - default: void - max: flags/max_present ? - if 1: f64 - default: void - if brigadier:integer: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i32 - default: void - max: flags/max_present ? - if 1: i32 - default: void - if brigadier:long: - flags: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "max_present", - "size": 1, - "signed": false - }, - { - "name": "min_present", - "size": 1, - "signed": false - } - ] - ] - min: flags/min_present ? - if 1: i64 - default: void - max: flags/max_present ? - if 1: i64 - default: void - if brigadier:string: varint => - 0: SINGLE_WORD - 1: QUOTABLE_PHRASE - 2: GREEDY_PHRASE - if minecraft:entity: [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "onlyAllowPlayers", - "size": 1, - "signed": false - }, - { - "name": "onlyAllowEntities", - "size": 1, - "signed": false - } - ] - ] - if minecraft:game_profile: void - if minecraft:block_pos: void - if minecraft:column_pos: void - if minecraft:vec3: void - if minecraft:vec2: void - if minecraft:block_state: void - if minecraft:block_predicate: void - if minecraft:item_stack: void - if minecraft:item_predicate: void - if minecraft:color: void - if minecraft:hex_color: void - if minecraft:component: void - if minecraft:message: void - if minecraft:nbt: void - if minecraft:nbt_path: void - if minecraft:objective: void - if minecraft:objective_criteria: void - if minecraft:operation: void - if minecraft:particle: void - if minecraft:angle: void - if minecraft:rotation: void - if minecraft:scoreboard_slot: void - if minecraft:score_holder: [ - "bitfield", - [ - { - "name": "unused", - "size": 7, - "signed": false - }, - { - "name": "allowMultiple", - "size": 1, - "signed": false - } - ] - ] - if minecraft:swizzle: void - if minecraft:team: void - if minecraft:item_slot: void - if minecraft:resource_location: void - if minecraft:function: void - if minecraft:entity_anchor: void - if minecraft:int_range: void - if minecraft:float_range: void - if minecraft:dimension: void - if minecraft:gamemode: void - if minecraft:time: - min: i32 - if minecraft:resource_or_tag or minecraft:resource_or_tag_key or minecraft:resource or minecraft:resource_key or minecraft:resource_selector: - registry: string - if minecraft:template_mirror: void - if minecraft:template_rotation: void - if minecraft:heightmap: void - if minecraft:dialog: void - if minecraft:uuid: void - suggestionType: ../flags/has_custom_suggestions ? - if 1: string - default: void - # # Shared Packets - # These are packets that are shared between multiple states. - # They are defined here to avoid duplication. - # ===== - # MC: ServerboundClientInformationPacket - packet_common_settings: - locale: string - viewDistance: i8 - chatFlags: varint - chatColors: bool - skinParts: u8 - mainHand: varint - enableTextFiltering: bool - enableServerListing: bool - particleStatus: varint => - - all - - decreased - - minimal - # MC: ClientboundCookieRequestPacket - packet_common_cookie_request: - cookie: string - # MC: ClientboundStoreCookiePacket - packet_common_store_cookie: - key: string - value: ByteArray - # MC: ClientboundTransferPacket - packet_common_transfer: - host: string - port: varint - # MC: ServerboundCookieResponsePacket - packet_common_cookie_response: - key: string - value?: ByteArray - # MC: ServerboundSelectKnownPacks - # MC: ClientboundSelectKnownPacks - packet_common_select_known_packs: - packs: []varint - namespace: string - id: string - version: string - # MC: ClientboundCustomReportDetailsPacket - packet_common_custom_report_details: - details: []varint - key: string - value: string - # MC: ClientboundResourcePackPopPacket - packet_common_remove_resource_pack: - uuid?: UUID - # MC: ClientboundResourcePackPushPacket - packet_common_add_resource_pack: - uuid: UUID - url: string - hash: string - forced: bool - promptMessage?: anonymousNbt - - ServerLinkType: varint => - - bug_report - - community_guidelines - - support - - status - - feedback - - community - - website - - forums - - news - - announcements - # MC: ClientboundServerLinksPacket - # This packet contains a list of links that the Notchian client will display in the menu - # available from the pause menu. Link labels can be built-in or custom (i.e., any text). - packet_common_server_links: - links: []varint - hasKnownType: bool - knownType: hasKnownType ? - if true: ServerLinkType - unknownType: hasKnownType ? - if false: anonymousNbt - link: string - # MC: ClientboundClearDialogPacket - packet_common_clear_dialog: - # empty - # MC: ServerboundCustomClickActionPacket - packet_common_custom_click_action: - id: string - nbt?: anonymousNbt -^handshaking.toClient.types: - packet: - name: varint => - params: ["switch",{"compareTo":"name","fields":{}}] -^handshaking.toServer.types: - packet_set_protocol: - protocolVersion: varint - serverHost: string - serverPort: u16 - nextState: varint - packet_legacy_server_list_ping: - payload: u8 - packet: - name: varint => - 0x00: set_protocol - 0xfe: legacy_server_list_ping - params: name ? - if set_protocol: packet_set_protocol - if legacy_server_list_ping: packet_legacy_server_list_ping -^status.toClient.types: - # MC: ClientboundStatusResponsePacket - packet_server_info: - response: string - # MC: ClientboundPongResponsePacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: server_info - 0x01: ping - params: name ? - if server_info: packet_server_info - if ping: packet_ping -^status.toServer.types: - # MC: ServerboundStatusRequestPacket - packet_ping_start: - # Empty - # MC: ServerboundPingRequestPacket - packet_ping: - time: i64 - packet: - name: varint => - 0x00: ping_start - 0x01: ping - params: name ? - if ping_start: packet_ping_start - if ping: packet_ping -^login.toClient.types: - # MC: ClientboundLoginDisconnectPacket - packet_disconnect: - reason: string - # MC: ClientboundHelloPacket - packet_encryption_begin: - serverId: string - publicKey: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - shouldAuthenticate: bool - # MC: ClientboundLoginFinishedPacket - packet_success: - uuid: UUID - username: string - properties: []varint - name: string - value: string - signature?: string - # MC: ClientboundLoginCompressionPacket - packet_compress: - threshold: varint - # MC: ClientboundCustomQueryPacket - packet_login_plugin_request: - messageId: varint - channel: string - data: restBuffer - ## (Cookie Request is Common) ## - packet: - name: varint => - - disconnect - - encryption_begin - - success - - compress - - login_plugin_request - - cookie_request - params: name ? - if disconnect: packet_disconnect - if encryption_begin: packet_encryption_begin - if success: packet_success - if compress: packet_compress - if login_plugin_request: packet_login_plugin_request - if cookie_request: packet_common_cookie_request -^login.toServer.types: - # MC: ServerboundHelloPacket - packet_login_start: - username: string - playerUUID: UUID - # MC: ServerboundKeyPacket - packet_encryption_begin: - sharedSecret: [ - "buffer", - { - "countType": "varint" - } - ] - verifyToken: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ServerboundCustomQueryAnswerPacket - packet_login_plugin_response: - messageId: varint - data?: restBuffer - # MC: ServerboundLoginAcknowledgedPacket - packet_login_acknowledged: - # Empty - ## (Cookie Response is Common) ## - packet: - name: varint => - - login_start - - encryption_begin - - login_plugin_response - - login_acknowledged - - cookie_response - params: name ? - if login_start: packet_login_start - if encryption_begin: packet_encryption_begin - if login_plugin_response: packet_login_plugin_response - if login_acknowledged: packet_login_acknowledged - if cookie_response: packet_common_cookie_response -^configuration.toClient.types: - ## (Cookie Request is common) - # MC: ClientboundCodeOfConductPacket - packet_code_of_conduct: - contents: string - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDisconnectPacket - packet_disconnect: - reason: anonymousNbt - # MC: ClientboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundResetChatPacket - packet_reset_chat: - # Empty - # MC: ClientboundRegistryDataPacket - packet_registry_data: - # The server can send multiple registries - id: string - entries: []varint - key: string - value?: anonymousNbt - ## (Store cookie and Transfer are Common) ## - # MC: ClientboundUpdateEnabledFeaturesPacket - packet_feature_flags: - features: string[]varint - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags - ## (Select known packs is common) - # MC: ClientboundShowDialogConfigurationPacket - packet_show_dialog: - dialog: anonymousNbt - packet: - name: varint => - - cookie_request - - custom_payload - - disconnect - - finish_configuration - - keep_alive - - ping - - reset_chat - - registry_data - - remove_resource_pack - - add_resource_pack - - store_cookie - - transfer - - feature_flags - - tags - - select_known_packs - - custom_report_details - - server_links - - clear_dialog - - show_dialog - - code_of_conduct - params: name ? - if cookie_request: packet_common_cookie_request - if custom_payload: packet_custom_payload - if disconnect: packet_disconnect - if finish_configuration: packet_finish_configuration - if keep_alive: packet_keep_alive - if ping: packet_ping - if reset_chat: packet_reset_chat - if registry_data: packet_registry_data - if remove_resource_pack: packet_common_remove_resource_pack - if add_resource_pack: packet_common_add_resource_pack - if store_cookie: packet_common_store_cookie - if transfer: packet_common_transfer - if feature_flags: packet_feature_flags - if tags: packet_tags - if select_known_packs: packet_common_select_known_packs - if custom_report_details: packet_common_custom_report_details - if server_links: packet_common_server_links - if clear_dialog: packet_common_clear_dialog - if show_dialog: packet_show_dialog - if code_of_conduct: packet_code_of_conduct -^configuration.toServer.types: - ## (Settings is Common) ## - ## (Cookie Response is Common) ## - # MC: ServerboundAcceptCodeOfConductPacket - packet_accept_code_of_conduct: - # Empty - # MC: ServerboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ServerboundFinishConfigurationPacket - packet_finish_configuration: - # Empty - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint - packet: - name: varint => - - settings - - cookie_response - - custom_payload - - finish_configuration - - keep_alive - - pong - - resource_pack_receive - - select_known_packs - - custom_click_action - - accept_code_of_conduct - params: name ? - if settings: packet_common_settings - if cookie_response: packet_common_cookie_response - if custom_payload: packet_custom_payload - if finish_configuration: packet_finish_configuration - if keep_alive: packet_keep_alive - if pong: packet_pong - if resource_pack_receive: packet_resource_pack_receive - if select_known_packs: packet_common_select_known_packs - if custom_click_action: packet_common_custom_click_action - if accept_code_of_conduct: packet_accept_code_of_conduct ^play.toClient.types: SlotDisplay: type: varint => @@ -1989,57 +760,6 @@ input: SlotDisplay remainder: SlotDisplay if composite: SlotDisplay[]varint - RecipeDisplay: - type: varint => - - crafting_shapeless - - crafting_shaped - - furnace - - stonecutter - - smithing - data: type ? - if crafting_shapeless: - ingredients: SlotDisplay[]varint - result: SlotDisplay - craftingStation: SlotDisplay - if crafting_shaped: - width: varint - height: varint - ingredients: SlotDisplay[]varint - result: SlotDisplay - craftingStation: SlotDisplay - if furnace: - ingredient: SlotDisplay - fuel: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay - duration: varint - experience: f32 - if stonecutter: - ingredient: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay - if smithing: - template: SlotDisplay - base: SlotDisplay - addition: SlotDisplay - result: SlotDisplay - craftingStation: SlotDisplay - # World state information for spawn and respawn packets - SpawnInfo: - dimension: varint - name: string - hashedSeed: i64 - gamemode: i8 => - - survival - - creative - - adventure - - spectator - previousGamemode: u8 - isDebug: bool - isFlat: bool - death?: GlobalPos - portalCooldown: varint - seaLevel: varint # MC: ClientboundAddEntityPacket packet_spawn_entity: @@ -2054,835 +774,15 @@ yaw: i8 headPitch: i8 objectData: varint - # MC: ClientboundAnimatePacket - packet_animation: - entityId: varint - animation: u8 - # MC: ClientboundAwardStatsPacket - packet_statistics: - entries: []varint - categoryId: varint - statisticId: varint - value: varint - # MC: ClientboundBlockChangedAckPacket - packet_acknowledge_player_digging: - sequenceId: varint - # MC: ClientboundBlockDestructionPacket - packet_block_break_animation: - entityId: varint - location: position - destroyStage: i8 - # MC: ClientboundBlockEntityDataPacket - packet_tile_entity_data: - location: position - action: varint - nbtData: anonOptionalNbt - # MC: ClientboundBlockEventPacket - packet_block_action: - location: position - byte1: u8 - byte2: u8 - blockId: varint - # MC: ClientboundBlockUpdatePacket - packet_block_change: - location: position - type: varint - # MC: ClientboundBossEventPacket - packet_boss_bar: - entityUUID: UUID - action: varint - title: action ? - if 0: anonymousNbt - if 3: anonymousNbt - default: void - health: action ? - if 0: f32 - if 2: f32 - default: void - color: action ? - if 0: varint - if 4: varint - default: void - dividers: action ? - if 0: varint - if 4: varint - default: void - flags: action ? - if 0: u8 - if 5: u8 - default: void - # MC: ClientboundChangeDifficultyPacket - packet_difficulty: - difficulty: varint => - 0: peaceful - 1: easy - 2: normal - 3: hard - difficultyLocked: bool - # MC: ClientboundChunkBatchFinishedPacket - packet_chunk_batch_finished: - batchSize: varint - # MC: ClientboundChunkBatchStartPacket - packet_chunk_batch_start: - # Empty - # MC: ClientboundChunksBiomesPacket - packet_chunk_biomes: - biomes: []varint - position: packedChunkPos - data: ByteArray - # MC: ClientboundClearTitlesPacket - packet_clear_titles: - reset: bool - # MC: ClientboundCommandSuggestionsPacket - packet_tab_complete: - transactionId: varint - start: varint - length: varint - matches: []varint - match: string - tooltip?: anonymousNbt - # MC: ClientboundCommandsPacket - packet_declare_commands: - nodes: command_node[]varint - rootIndex: varint - # MC: ClientboundContainerClosePacket - packet_close_window: - windowId: ContainerID - # MC: ClientboundContainerSetContentPacket - packet_window_items: - windowId: ContainerID - stateId: varint - items: Slot[]varint - carriedItem: Slot - # MC: ClientboundContainerSetDataPacket - packet_craft_progress_bar: - windowId: ContainerID - property: i16 - value: i16 - # MC: ClientboundContainerSetSlotPacket - packet_set_slot: - windowId: ContainerID - stateId: varint - slot: i16 - item: Slot - ## (Cookie Request is Common) - # MC: ClientboundCooldownPacket - packet_set_cooldown: - # TODO: figure out what this is - cooldownGroup: string - cooldownTicks: varint - # MC: ClientboundCustomChatCompletionsPacket - packet_chat_suggestions: - action: varint - entries: string[]varint - # MC: ClientboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ClientboundDamageEventPacket - packet_damage_event: - entityId: varint - sourceTypeId: varint - sourceCauseId: varint - sourceDirectId: varint - sourcePosition?: vec3f64 - # MC: ClientboundDebugBlockValuePacket - packet_debug_block_value: - blockPos: position - update: DebugSubscriptionUpdate - # MC: ClientboundDebugChunkValuePacket - packet_debug_chunk_value: - chunkPos: packedChunkPos - update: DebugSubscriptionUpdate - # MC: ClientboundEntityEntityValuePacket - packet_debug_entity_value: - entityId: varint - update: DebugSubscriptionUpdate - # MC: ClientboundDebugEventPacket - packet_debug_event: - event: DebugSubscriptionEvent - # MC: ClientboundDebugSamplePacket - packet_debug_sample: - sample: i64[]varint - type: varint - # MC: ClientboundDeleteChatPacket - packet_hide_message: - id: varint - signature: id ? - if 0: [ - "buffer", - { - "count": 256 - } - ] - default: void - # MC: ClientboundDisconnectPacket - packet_kick_disconnect: - reason: anonymousNbt - ## client\net\minecraft\network\chat\ChatTypeDecoration.java - ## via client\net\minecraft\network\chat\ChatType.java - ChatTypeParameterType: varint => - - content - - sender - - target - ChatType: - translationKey: string - parameters: ChatTypeParameterType[]varint - style: anonymousNbt - ChatTypes: - chat: ChatType - narration: ChatType - ChatTypesHolder: ["registryEntryHolder", { "baseName": "chatType", "otherwise": { name: "data", type: "ChatTypes" } }] - - # MC: ClientboundDisguisedChatPacket - packet_profileless_chat: - message: anonymousNbt - type: ChatTypesHolder - name: anonymousNbt - target?: anonymousNbt - # MC: ClientboundEntityEventPacket - packet_entity_status: - entityId: i32 - entityStatus: i8 - # MC: ClientboundEntityPositionSyncPacket - packet_sync_entity_position: - entityId: varint - x: f64 - y: f64 - z: f64 - dx: f64 - dy: f64 - dz: f64 - yaw: f32 - pitch: f32 - onGround: bool - ExplosionParticleInfo: - particle: Particle - scaling: f32 - speed: f32 - ExplosionParticleEntry: - data: ExplosionParticleInfo - weight: varint - # MC: ClientboundExplodePacket - packet_explosion: - center: vec3f64 - radius: f32 - blockCount: i32 - playerKnockback?: vec3f64 - explosionParticle: Particle - sound: ItemSoundHolder - blockParticles: ExplosionParticleEntry[]varint - # MC: ClientboundForgetLevelChunkPacket - packet_unload_chunk: - chunkZ: i32 - chunkX: i32 - # MC: ClientboundGameEventPacket - packet_game_state_change: - reason: u8 => - 0: no_respawn_block_available - 1: start_raining - 2: stop_raining - 3: change_game_mode - 4: win_game - 5: demo_event - 6: play_arrow_hit_sound - 7: rain_level_change - 8: thunder_level_change - 9: puffer_fish_sting - 10: guardian_elder_effect - 11: immediate_respawn - 12: limited_crafting - 13: level_chunks_load_start - gameMode: f32 # MC: ClientboundGameRuleValuesPacket packet_game_rule_values: values: GameRule[]varint - # MC: ClientboundGameTestHighlightPosPacket - packet_game_test_highlight_pos: - absolutePos: position - relativePos: position - # MC: ClientboundHorseScreenOpenPacket - packet_open_horse_window: - windowId: ContainerID - nbSlots: varint - entityId: i32 - # MC: ClientboundHurtAnimationPacket - packet_hurt_animation: - entityId: varint - yaw: f32 - # MC: ClientboundInitializeBorderPacket - packet_initialize_world_border: - x: f64 - z: f64 - oldDiameter: f64 - newDiameter: f64 - speed: varint - portalTeleportBoundary: varint - warningBlocks: varint - warningTime: varint - # MC: ClientboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ClientboundLevelChunkWithLightPacket - packet_map_chunk: - x: i32 - z: i32 - heightmaps: []varint - type: varint => - 0: world_surface_wg - 1: world_surface - 2: ocean_floor_wg - 3: ocean_floor - 4: motion_blocking - 5: motion_blocking_no_leaves - data: i64[]varint - chunkData: ByteArray - blockEntities: chunkBlockEntity[]varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - # MC: ClientboundLevelEventPacket - packet_world_event: - effectId: i32 - location: position - data: i32 - global: bool - # MC: ClientboundLevelParticlesPacket - packet_world_particles: - longDistance: bool - alwaysShow: bool - x: f64 - y: f64 - z: f64 - offsetX: f32 - offsetY: f32 - offsetZ: f32 - velocityOffset: f32 - amount: i32 - particle: Particle - # MC: ClientboundLightUpdatePacket - packet_update_light: - chunkX: varint - chunkZ: varint - skyLightMask: i64[]varint - blockLightMask: i64[]varint - emptySkyLightMask: i64[]varint - emptyBlockLightMask: i64[]varint - skyLight: []varint - _: u8[]varint - blockLight: []varint - _: u8[]varint - # MC: ClientboundLoginPacket - packet_login: - entityId: i32 - isHardcore: bool - worldNames: string[]varint - maxPlayers: varint - viewDistance: varint - simulationDistance: varint - reducedDebugInfo: bool - enableRespawnScreen: bool - doLimitedCrafting: bool - worldState: SpawnInfo - enforcesSecureChat: bool + # MC: CLientboundLowDiskSpaceWarningPacket packet_low_disk_space_warning: # Empty - # MC: ClientboundMapItemDataPacket - packet_map: - itemDamage: varint - scale: i8 - locked: bool - icons?: []varint - type: varint - x: i8 - z: i8 - direction: u8 - displayName?: anonymousNbt - columns: u8 - rows: columns ? - if 0: void - default: u8 - x: columns ? - if 0: void - default: u8 - y: columns ? - if 0: void - default: u8 - data: columns ? - if 0: void - default: [ - "buffer", - { - "countType": "varint" - } - ] - # MC: ClientboundMerchantOffersPacket - packet_trade_list: - windowId: ContainerID - ## https://github.com/extremeheat/extracted_minecraft_data/blob/client1.20.5/client/net/minecraft/world/item/trading/MerchantOffer.java#L210 - trades: []varint - inputItem1: - itemId: varint - itemCount: varint - components: ExactComponentMatcher - outputItem: Slot - inputItem2?: - itemId: varint - itemCount: varint - components: ExactComponentMatcher - tradeDisabled: bool - nbTradeUses: i32 - maximumNbTradeUses: i32 - xp: i32 - specialPrice: i32 - priceMultiplier: f32 - demand: i32 - villagerLevel: varint - experience: varint - isRegularVillager: bool - canRestock: bool - # MC: ClientboundMoveEntityPacket.Pos - packet_rel_entity_move: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - onGround: bool - # MC: ClientboundMoveEntityPacket.PosRot - packet_entity_move_look: - entityId: varint - dX: i16 - dY: i16 - dZ: i16 - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveMinecartPacket - packet_move_minecart: # 1.21.3 - entityId: varint - steps: []varint - position: vec3f - velocity: vec3f - yaw: f32 - pitch: f32 - weight: f32 - # MC: ClientboundMoveEntityPacket.Rot - packet_entity_look: - entityId: varint - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - # MC: ClientboundOpenBookPacket - packet_open_book: - hand: varint - # MC: ClientboundOpenScreenPacket - packet_open_window: - windowId: varint - inventoryType: varint - windowTitle: anonymousNbt - # MC: ClientboundOpenSignEditorPacket - packet_open_sign_entity: - location: position - isFrontText: bool - # MC: ClientboundPingPacket - packet_ping: - id: i32 - # MC: ClientboundPongResponsePacket - packet_ping_response: - id: i64 - # MC: ClientboundPlaceGhostRecipePacket - packet_craft_recipe_response: - windowId: ContainerID - recipeDisplay: RecipeDisplay - # MC: ClientboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - flyingSpeed: f32 - walkingSpeed: f32 - # MC: ClientboundPlayerChatPacket - packet_player_chat: - globalIndex: varint - senderUuid: UUID - index: varint - signature?: [ - "buffer", - { - "count": 256 - } - ] - plainMessage: string - timestamp: i64 - salt: i64 - previousMessages: previousMessages - unsignedChatContent?: anonymousNbt - filterType: varint - filterTypeMask: filterType ? - if 2: i64[]varint - default: void - type: ChatTypesHolder - networkName: anonymousNbt - networkTargetName?: anonymousNbt - # MC: ClientboundPlayerCombatEndPacket - packet_end_combat_event: - duration: varint - # MC: ClientboundPlayerCombatEnterPacket - packet_enter_combat_event: - # Empty - # MC: ClientboundPlayerCombatKillPacket - packet_death_combat_event: - playerId: varint - message: anonymousNbt - # MC: ClientboundPlayerInfoRemovePacket - packet_player_remove: - players: UUID[]varint - # MC: ClientboundPlayerInfoUpdatePacket - packet_player_info: - ## ClientboundPlayerInfoUpdatePacket.java#L160 - action: ["bitflags", { - "type": "u8", - "flags": [ - "add_player", - "initialize_chat", - "update_game_mode", - "update_listed", - "update_latency", - "update_display_name", - "update_hat", - "update_list_order" - ] - }] - data: []varint - uuid: UUID - player: ../action/add_player ? - if true: game_profile_name_prop - default: void - chatSession: ../action/initialize_chat ? - if true: chat_session - default: void - gamemode: ../action/update_game_mode ? - if true: varint - default: void - listed: ../action/update_listed ? - if true: varint - default: void - latency: ../action/update_latency ? - if true: varint - default: void - displayName: ../action/update_display_name ? - if true: ["option", "anonymousNbt"] - default: void - listPriority: ../action/update_list_order ? - if true: varint - default: void - showHat: ../action/update_hat ? - if true: bool - default: void - # MC: ClientboundPlayerLookAtPacket - packet_face_player: - feet_eyes: varint - x: f64 - y: f64 - z: f64 - isEntity: bool - entityId: isEntity ? - if true: varint - default: void - entity_feet_eyes: isEntity ? - if true: varint - default: void - - # https://github.com/extremeheat/extracted_minecraft_data/blob/client1.21.2/client/net/minecraft/world/entity/Relative.java#L82 - PositionUpdateRelatives: ["bitflags", { - "type": "u32", - "flags": ["x", "y", "z", "yaw", "pitch", "dx", "dy", "dz", "yawDelta"] - }] - # MC: ClientboundPlayerPositionPacket - packet_position: - teleportId: varint - x: f64 - y: f64 - z: f64 - dx: f64 - dy: f64 - dz: f64 - yaw: f32 - pitch: f32 - flags: PositionUpdateRelatives - # MC: ClientboundPlayerRotationPacket - packet_player_rotation: - yaw: f32 - relativeYaw: bool - pitch: f32 - relativePitch: bool - - # MC: ClientboundRecipeBookAddPacket - packet_recipe_book_add: - entries: []varint - # RecipeDisplayEntry - recipe: - displayId: varint - display: RecipeDisplay - group: optvarint - # This ID corresponds to the "recipe_book_category" registry - category: varint => - - crafting_building_blocks - - crafting_redstone - - crafting_equipment - - crafting_misc - - furnace_food - - furnace_blocks - - furnace_misc - - blast_furnace_blocks - - blast_furnace_misc - - smoker_food - - stonecutter - - smithing - - campfire - craftingRequirements?: IDSet[]varint - flags: ["bitflags", { - "type": "u8", - "flags": ["notification", "highlight"] - }] - replace: bool - # MC: ClientboundRecipeBookRemovePacket - packet_recipe_book_remove: - recipeIds: varint[]varint - # MC: ClientboundRecipeBookSettingsPacket - RecipeBookSetting: - open: bool - filtering: bool - packet_recipe_book_settings: - crafting: RecipeBookSetting - furnace: RecipeBookSetting - blast: RecipeBookSetting - smoker: RecipeBookSetting - # MC: ClientboundRemoveEntitiesPacket - packet_entity_destroy: - entityIds: varint[]varint - # MC: ClientboundRemoveMobEffectPacket - packet_remove_entity_effect: - entityId: varint - effectId: varint - # MC: ClientboundResetScorePacket - packet_reset_score: - entity_name: string - objective_name?: string - ## (remove_resource_pack is common) - # MC: ClientboundRespawnPacket - packet_respawn: - worldState: SpawnInfo - # Bit field: 0b1 - KEEP_ATTRIBUTE_MODIFIERS, 0b10 - KEEP_ENTITY_DATA - copyMetadata: u8 - # MC: ClientboundRotateHeadPacket - packet_entity_head_rotation: - entityId: varint - headYaw: i8 - # MC: ClientboundSectionBlocksUpdatePacket - packet_multi_block_change: - chunkCoordinates: [ "bitfield", [ - { "name": "x", "size": 22, "signed": true }, - { "name": "z", "size": 22, "signed": true }, - { "name": "y", "size": 20, "signed": true } - ]] - records: varint[]varint - # MC: ClientboundSelectAdvancementsTabPacket - packet_select_advancement_tab: - id?: string - # MC: ClientboundServerDataPacket - packet_server_data: - motd: anonymousNbt - iconBytes?: ByteArray - # MC: ClientboundSetActionBarTextPacket - packet_action_bar: - text: anonymousNbt - # MC: ClientboundSetBorderCenterPacket - packet_world_border_center: - x: f64 - z: f64 - # MC: ClientboundSetBorderLerpSizePacket - packet_world_border_lerp_size: - oldDiameter: f64 - newDiameter: f64 - speed: varint - # MC: ClientboundSetBorderSizePacket - packet_world_border_size: - diameter: f64 - # MC: ClientboundSetBorderWarningDelayPacket - packet_world_border_warning_delay: - warningTime: varint - # MC: ClientboundSetBorderWarningDistancePacket - packet_world_border_warning_reach: - warningBlocks: varint - # MC: ClientboundSetCameraPacket - packet_camera: - cameraId: varint - # MC: ClientboundSetChunkCacheCenterPacket - packet_update_view_position: - chunkX: varint - chunkZ: varint - # MC: ClientboundSetChunkCacheRadiusPacket - packet_update_view_distance: - viewDistance: varint - # MC: ClientboundSetCursorItemPacket - packet_set_cursor_item: - contents: Slot - # MC: ClientboundSetDefaultSpawnPositionPacket - packet_spawn_position: RespawnData - # MC: ClientboundSetDisplayObjectivePacket - packet_scoreboard_display_objective: - position: varint - name: string - # MC: ClientboundSetEntityDataPacket - packet_entity_metadata: - entityId: varint - metadata: entityMetadata - # MC: ClientboundSetEntityLinkPacket - packet_attach_entity: - entityId: i32 - vehicleId: i32 - # MC: ClientboundSetEntityMotionPacket - packet_entity_velocity: - entityId: varint - velocity: lpVec3 - # MC: ClientboundSetEquipmentPacket - packet_entity_equipment: - entityId: varint - equipments: [ - "topBitSetTerminatedArray", - { - "type": [ - "container", - [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "Slot" - } - ] - ] - } - ] - # MC: ClientboundSetExperiencePacket - packet_experience: - experienceBar: f32 - level: varint - totalExperience: varint - # MC: ClientboundSetHealthPacket - packet_update_health: - health: f32 - food: varint - foodSaturation: f32 - # MC: ClientboundSetHeldSlotPacket - packet_held_item_slot: - slot: varint - # MC: ClientboundSetObjectivePacket - packet_scoreboard_objective: - name: string - action: i8 - displayText: action ? - if 0: anonymousNbt - if 2: anonymousNbt - default: void - type: action ? - if 0: varint - if 2: varint - default: void - number_format: action ? - if 0: [ - "option", - "varint" - ] - if 2: [ - "option", - "varint" - ] - default: void - styling: action ? - if 0: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - if 2: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - default: void - # MC: ClientboundSetPassengersPacket - packet_set_passengers: - entityId: varint - passengers: varint[]varint - # MC: ClientboundSetPlayerInventoryPacket - packet_set_player_inventory: - slotId: varint - contents: Slot - # MC: ClientboundSetPlayerTeamPacket - packet_teams: - team: string - mode: i8 => - - add - - remove - - change - - join - - leave - _: mode ? - if add or change: - name: anonymousNbt - flags: ["bitflags", { - "type": "u8", - "flags": ["friendly_fire", "see_friendly_invisible"] - }] - nameTagVisibility: varint => - - always - - never - - hide_for_other_teams - - hide_for_own_team - collisionRule: varint => - - always - - never - - push_other_teams - - push_own_team - formatting: varint - prefix: anonymousNbt - suffix: anonymousNbt - default: void - players: mode ? - if add or join or leave: string[]varint - default: void - # MC: ClientboundSetScorePacket - packet_scoreboard_score: - itemName: string - scoreName: string - value: varint - display_name?: anonymousNbt - number_format?: varint - styling: number_format ? - if 1: anonymousNbt - if 2: anonymousNbt - default: void - # MC: ClientboundSetSimulationDistancePacket - packet_simulation_distance: - distance: varint - # MC: ClientboundSetSubtitleTextPacket - packet_set_title_subtitle: - text: anonymousNbt # MC: ClientboundSetTimePacket packet_update_time: age: i64 @@ -2891,227 +791,7 @@ totalTicks: varlong partialTick: f32 rate: f32 - # MC: ClientboundSetTitleTextPacket - packet_set_title_text: - text: anonymousNbt - # MC: ClientboundSetTitlesAnimationPacket - packet_set_title_time: - fadeIn: i32 - stay: i32 - fadeOut: i32 - # MC: ClientboundSoundEntityPacket - packet_entity_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - entityId: varint - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundSoundPacket - packet_sound_effect: - sound: ItemSoundHolder - soundCategory: soundSource - x: i32 - y: i32 - z: i32 - volume: f32 - pitch: f32 - seed: i64 - # MC: ClientboundStartConfigurationPacket - packet_start_configuration: - # Empty - # MC: ClientboundStopSoundPacket - packet_stop_sound: - flags: i8 - source: flags ? - if 1: varint - if 3: varint - default: void - sound: flags ? - if 2: string - if 3: string - default: void - ## (Store Cookie is Common) - # MC: ClientboundSystemChatPacket - packet_system_chat: - content: anonymousNbt - isActionBar: bool - # MC: ClientboundTabListPacket - packet_playerlist_header: - header: anonymousNbt - footer: anonymousNbt - # MC: ClientboundTagQueryPacket - packet_nbt_query_response: - transactionId: varint - nbt: anonOptionalNbt - # MC: ClientboundTakeItemEntityPacket - packet_collect: - collectedEntityId: varint - collectorEntityId: varint - pickupItemCount: varint - # MC: ClientboundTeleportEntityPacket - packet_entity_teleport: - entityId: varint - x: f64 - y: f64 - z: f64 - yaw: i8 - pitch: i8 - onGround: bool - # MC: ClientboundTestInstanceBlockStatusPacket - packet_test_instance_block_status: - status: anonymousNbt - size?: vec3i - # MC: ClientboundTickingStatePacket - packet_set_ticking_state: - tick_rate: f32 - is_frozen: bool - # MC: ClientboundTickingStepPacket - packet_step_tick: - tick_steps: varint - ## (Transfer is common) - # MC: ClientboundUpdateAdvancementsPacket - packet_advancements: - reset: bool - advancementMapping: []varint - key: string - value: - parentId?: string - displayData?: - title: anonymousNbt - description: anonymousNbt - icon: Slot - frameType: varint - flags: ["bitfield", [ - { "name": "unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } - ]] - backgroundTexture: flags/has_background_texture ? - if 1: string - default: void - xCord: f32 - yCord: f32 - requirements: []varint - _: string[]varint - sendsTelemtryData: bool - identifiers: string[]varint - progressMapping: []varint - key: string - value: []varint - criterionIdentifier: string - criterionProgress?: i64 - showAdvancements: bool - # MC: ClientboundUpdateAttributesPacket - packet_entity_update_attributes: - entityId: varint - properties: []varint - key: varint => - - generic.armor - - generic.armor_toughness - - generic.attack_damage - - generic.attack_knockback - - generic.attack_speed - - player.block_break_speed - - player.block_interaction_range - - burning_time - - camera_distance - - explosion_knockback_resistance - - player.entity_interaction_range - - generic.fall_damage_multiplier - - generic.flying_speed - - generic.follow_range - - generic.gravity - - generic.jump_strength - - generic.knockback_resistance - - generic.luck - - generic.max_absorption - - generic.max_health - - generic.movement_speed - - generic.safe_fall_distance - - generic.scale - - zombie.spawn_reinforcements - - generic.step_height - - submerged_mining_speed - - sweeping_damage_ratio - - tempt_range - - water_movement_efficiency - - waypoint_transmit_range - - waypoint_receive_range - value: f64 - modifiers: []varint - uuid: string - amount: f64 - operation: i8 - # MC: ClientboundUpdateMobEffectPacket - packet_entity_effect: - entityId: varint - effectId: varint - amplifier: varint - duration: varint - # a bitfield of 0x01 for ambient, 0x02 for show particles - # flags: ["bitfield", [ - # { "name": "unused", "size": 4 }, - # { "name": "ambient", "size": 1 }, - # { "name": "showParticles", "size": 1 }, - # { "name": "showIcon", "size": 1 }, - # { "name": "blend", "size": 1 } - # ]] - flags: u8 - # MC: ClientboundUpdateRecipesPacket - packet_declare_recipes: - recipes: []varint - name: string - items: varint[]varint - stoneCutterRecipes: []varint - input: IDSet - slotDisplay: SlotDisplay - # MC: ClientboundUpdateTagsPacket - packet_tags: - tags: []varint - tagType: string - tags: tags - # MC: ClientboundProjectilePowerPacket - packet_set_projectile_power: - id: varint - accelerationPower: f64 - ## (ClientboundCustomReportDetailsPacket, ClientboundServerLinksPacket is common) - # MC: ClientboundTrackedWaypointPacket - packet_tracked_waypoint: - operation: varint => - 0: track - 1: untrack - 2: update - waypoint: - hasUUID: bool - _: hasUUID ? - if true: - uuid: UUID - if false: - id: string - icon: - style: string - color?: - red: u8 - green: u8 - blue: u8 - type: varint => - 0: empty - 1: vec3i - 2: chunk - 3: azimuth - data: type ? - if vec3i: vec3i - if chunk: - chunkX: varint - chunkZ: varint - if azimuth: f32 - ## (clear_dialog is common) - # MC: ClientboundShowDialogGamePacket - packet_show_dialog: - dialog: ["registryEntryHolder", { "baseName": "dialog", "otherwise": { "name": "data", "type": "anonymousNbt" } }] packet: name: varint => - bundle_delimiter @@ -3397,41 +1077,12 @@ if tracked_waypoint: packet_tracked_waypoint if clear_dialog: packet_common_clear_dialog if show_dialog: packet_show_dialog + ^play.toServer.types: - # MC: ServerboundAcceptTeleportationPacket - packet_teleport_confirm: - teleportId: varint # MC: ServerboundAttackPacket packet_attack: entityId: varint - # MC: ServerboundBlockEntityTagQueryPacket - packet_query_block_nbt: - transactionId: varint - location: position - # MC: ServerboundSelectBundleItemPacket - packet_select_bundle_item: - slotId: varint - selectedItemIndex: varint - # MC: ServerboundChangeDifficultyPacket - packet_set_difficulty: - newDifficulty: varint => - 0: peaceful - 1: easy - 2: normal - 3: hard - # MC: ServerboundChangeGameModePacket - packet_change_gamemode: - mode: varint => - 0: survival - 1: creative - 2: adventure - 3: spectator - # MC: ServerboundChatAckPacket - packet_message_acknowledgement: - count: varint - # MC: ServerboundChatCommandPacket - packet_chat_command: - command: string + # MC: ServerboundChatCommandSignedPacket packet_chat_command_signed: command: string @@ -3453,90 +1104,19 @@ } ] checksum: u8 - # MC: ServerboundChatPacket - packet_chat_message: - message: string - timestamp: i64 - salt: i64 - signature?: [ - "buffer", - { - "count": 256 - } - ] - offset: varint - acknowledged: [ - "buffer", - { - "count": 3 - } - ] - checksum: u8 - # MC: ServerboundChatSessionUpdatePacket - packet_chat_session_update: - sessionUUID: UUID - expireTime: i64 - publicKey: ByteArray - signature: ByteArray - # MC: ServerboundChunkBatchReceivedPacket - packet_chunk_batch_received: - chunksPerTick: f32 + # MC: ServerboundClientCommandPacket packet_client_command: actionId: varint => - perform_respawn - request_stats - request_gamerule_values - # MC: ServerboundClientTickEndPacket - packet_tick_end: - # Empty - # MC: ServerboundCommandSuggestionPacket - packet_tab_complete: - transactionId: varint - text: string - # MC: ServerboundConfigurationAcknowledgedPacket - packet_configuration_acknowledged: - # Empty + # MC: ServerboundContainerButtonClickPacket packet_enchant_item: windowId: ContainerID enchantment: varint - # MC: ServerboundContainerClickPacket - packet_window_click: - windowId: ContainerID - stateId: varint - slot: i16 - mouseButton: i8 - mode: varint - changedSlots: []varint - location: i16 - item?: HashedSlot - cursorItem?: HashedSlot - # MC: ServerboundContainerClosePacket - packet_close_window: - windowId: ContainerID - # MC: ServerboundContainerSlotStateChangedPacket - packet_set_slot_state: - slot_id: varint - window_id: ContainerID - state: bool - ## (ServerboundCookieResponsePacket is common) - # MC: ServerboundCustomPayloadPacket - packet_custom_payload: - channel: string - data: restBuffer - # MC: ServerboundDebugSubscriptionRequestPacket - packet_debug_subscription_request: - subscriptions: DebugSubscriptionDataType[]varint - # MC: ServerboundEditBookPacket - packet_edit_book: - hand: varint - pages: string[]varint - title?: string - # MC: ServerboundEntityTagQuery - packet_query_entity_nbt: - transactionId: varint - entityId: varint + # MC: ServerboundInteractPacket packet_use_entity: target: varint @@ -3545,238 +1125,14 @@ - off_hand location: lpVec3 sneaking: bool - # MC: ServerboundJigsawGeneratePacket - packet_generate_structure: - location: position - levels: varint - keepJigsaws: bool - # MC: ServerboundKeepAlivePacket - packet_keep_alive: - keepAliveId: i64 - # MC: ServerboundLockDifficultyPacket - packet_lock_difficulty: - locked: bool - MovementFlags: ["bitflags", { - "type": "u8", - "flags": ["onGround", "hasHorizontalCollision"] - }] - # MC: ServerboundMovePlayerPacket.Pos - packet_position: - x: f64 - y: f64 - z: f64 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.PosRot - packet_position_look: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.Rot - packet_look: - yaw: f32 - pitch: f32 - flags: MovementFlags - # MC: ServerboundMovePlayerPacket.StatusOnly - packet_flying: - flags: MovementFlags - # MC: ServerboundMoveVehiclePacket - packet_vehicle_move: - x: f64 - y: f64 - z: f64 - yaw: f32 - pitch: f32 - onGround: bool - # MC: ServerboundPaddleBoatPacket - packet_steer_boat: - leftPaddle: bool - rightPaddle: bool - # MC: ServerboundPickItemFromBlockPacket - packet_pick_item_from_block: - position: position - includeData: bool - # MC: ServerboundPickItemFromEntityPacket - packet_pick_item_from_entity: - entityId: varint - includeData: bool - # MC: ServerboundPingRequestPacket - packet_ping_request: - id: i64 - # MC: ServerboundPlaceRecipePacket - packet_craft_recipe_request: - windowId: ContainerID - recipeId: varint - makeAll: bool - # MC: ServerboundPlayerAbilitiesPacket - packet_abilities: - flags: i8 - # MC: ServerboundPlayerActionPacket - packet_block_dig: - status: varint - location: position - face: i8 - sequence: varint - # MC: ServerboundPlayerCommandPacket - packet_entity_action: - entityId: varint - actionId: varint => - - leave_bed - - start_sprinting - - stop_sprinting - - start_horse_jump - - stop_horse_jump - - open_vehicle_inventory - - start_elytra_flying - jumpBoost: varint - # MC: ServerboundPlayerInputPacket - # previously: packet_steer_vehicle - packet_player_input: - ## client/net/minecraft/world/entity/player/Input.java - inputs: ["bitflags", { - "type": "u8", - "flags": ["forward", "backward", "left", "right", "jump", "shift", "sprint"] - }] - # MC: ServerboundPlayerLoadedPacket - packet_player_loaded: - # Empty - # MC: ServerboundPongPacket - packet_pong: - id: i32 - # MC: ServerboundRecipeBookChangeSettingsPacket - packet_recipe_book: - bookId: varint - bookOpen: bool - filterActive: bool - # MC: ServerboundRecipeBookSeenRecipePacket - packet_displayed_recipe: - recipeId: varint - # MC: ServerboundRenameItemPacket - packet_name_item: - name: string - # MC: ServerboundResourcePackPacket - packet_resource_pack_receive: - uuid: UUID - result: varint - # MC: ServerboundSeenAdvancementsPacket - packet_advancement_tab: - action: varint - tabId: action ? - if 0: string - if 1: void - # MC: ServerboundSelectTradePacket - packet_select_trade: - slot: varint - # MC: ServerboundSetBeaconPacket - packet_set_beacon_effect: - primary_effect?: varint - secondary_effect?: varint - # MC: ServerboundSetCarriedItemPacket - packet_held_item_slot: - slotId: i16 - # MC: ServerboundSetCommandBlockPacket - packet_update_command_block: - location: position - command: string - mode: varint - flags: u8 - # MC: ServerboundSetCommandMinecartPacket - packet_update_command_block_minecart: - entityId: varint - command: string - track_output: bool - # MC: ServerboundSetCreativeModeSlotPacket - packet_set_creative_slot: - slot: i16 - item: UntrustedSlot # MC: ServerboundSetGameRulePacket packet_set_game_rule: entries: GameRule[]varint - # MC: ServerboundSetJigsawBlockPacket - packet_update_jigsaw_block: - location: position - name: string - target: string - pool: string - finalState: string - jointType: string - selection_priority: varint - placement_priority: varint - # MC: ServerboundSetStructureBlockPacket - packet_update_structure_block: - location: position - action: varint - mode: varint - name: string - offset_x: i8 - offset_y: i8 - offset_z: i8 - size_x: i8 - size_y: i8 - size_z: i8 - mirror: varint - rotation: varint - metadata: string - integrity: f32 - seed: varint - # New `strict` flag - flags: u8 => - - ignore_entities - - show_air - - show_bounding_box - - strict - # MC: ServerboundSetTestBlockPacket - packet_set_test_block: - position: position - mode: varint - message: string - # MC: ServerboundSignUpdatePacket - packet_update_sign: - location: position - isFrontText: bool - text1: string - text2: string - text3: string - text4: string + # MC: ServerboundSpectateEntityPacket packet_spectate_entity: entityId: varint - # MC: ServerboundSwingPacket - packet_arm_animation: - hand: varint - # MC: ServerboundTeleportToEntityPacket - packet_spectate: - target: UUID - # MC: ServerboundTestInstanceBlockActionPacket - packet_test_instance_block_action: - pos: position - action: varint - data: - test?: string - size: vec3i - rotation: varint - ignoreEntities: bool - status: varint - errorMessage?: anonymousNbt - # MC: ServerboundUseItemOnPacket - packet_block_place: - hand: varint - location: position - direction: varint - cursorX: f32 - cursorY: f32 - cursorZ: f32 - insideBlock: bool - worldBorderHit: bool - sequence: varint - # MC: ServerboundUseItemPacket - packet_use_item: - hand: varint - sequence: varint - rotation: vec2f packet: name: varint => diff --git a/doc/protocol.md b/doc/protocol.md index 620da84b7..3470d1132 100644 --- a/doc/protocol.md +++ b/doc/protocol.md @@ -154,3 +154,23 @@ string: ["pstring",{"countType":"varint"}] #### Compiling to JSON Once the protocol YAML files have been updated, run `npm run build` inside `tools/js` to generate protocol.json for each of the protocol YAML files. + +#### Delta protocols +Instead of a full copy of the protocol, a version's `proto.yml` can be a **delta** on a previous version by starting with `!base: ` (resolved through `dataPaths.json`): + +```yml +!version: 1.21.8 +!base: 1.21.6 + +^types: + vec3i: # added + x: varint + y: varint + z: varint + packet_x: ... # redefined wholesale (replaces the base's definition) + OldType: !delete # removed +``` + +Semantics, per section (`^types`, `^play.toClient.types`, ...): a type present in both is **replaced wholesale** by the delta's definition — there is no deep merge, because mapper values and packet IDs are positional and partial merges would be unsafe; a type only in the base is inherited; a type only in the delta is added. `TypeName: !delete` removes an inherited type, and `^section: !delete` removes a whole section. Versions whose protocol didn't change keep pointing at the previous version's data directory via `dataPaths.json`, as before. + +`npm run build` resolves `!base` chains automatically, so deltas compile exactly like full protocols. When updating a protocol, copy the changed/added packet definitions from the previous version's file into the new delta rather than copying the whole file. diff --git a/tools/js/backfillDeltas.js b/tools/js/backfillDeltas.js new file mode 100644 index 000000000..2cf53e017 --- /dev/null +++ b/tools/js/backfillDeltas.js @@ -0,0 +1,177 @@ +/** + * One-time migration: converts full per-version proto.yml files into !base + * deltas (see protoDelta.js). + * + * For each consecutive pair of protocol versions (in dataPaths.json order), + * diffs their proto.yml at the type level and emits a minimal delta for the + * newer version. Before keeping anything it compiles each delta chain and + * verifies the result is deep-equal to the previously committed protocol.json + * (the golden check: key *order* may differ since added types are appended, + * which is not semantically meaningful, but content must match exactly). + * + * Usage: + * node backfillDeltas.js [edition] # dry run (default: pc) + * node backfillDeltas.js [edition] --write + * After --write, run `npm run build` to regenerate the protocol.json files in + * the new key order. + */ +const fs = require('fs') +const { join } = require('path') +const { compile } = require('protodef-yaml') +const { parseProto, splitSectionEntries, resolve, entryValue } = require('./protoDelta') + +const DATA = join(__dirname, '../../data') +const DELETE = '!delete' + +// Mirror compileProtocol.js: decimal mapper keys are rendered as hex +function visitor (key, value) { + if ((key === 'packet') && (value?.[1]?.[0]?.name === 'name')) { + const mapper = value[1][0].type[1].mappings + for (const k in mapper) { + if (k.startsWith('0x')) continue + mapper['0x' + Number(k).toString(16).padStart(2, '0')] = mapper[k] + delete mapper[k] + } + } + return value +} + +// Distinct proto dirs in dataPaths order, with a canonical version id each +function protoChain (edition) { + const dataPaths = JSON.parse(fs.readFileSync(join(DATA, 'dataPaths.json'), 'utf8')) + const chain = [] + for (const [versionId, paths] of Object.entries(dataPaths[edition])) { + if (!paths.proto) continue + if (chain.length && chain[chain.length - 1].dir === paths.proto) continue + chain.push({ versionId, dir: paths.proto }) + } + return chain +} + +// Diff two parsed protos into a delta: added/changed types verbatim, removed +// types as `TypeName: !delete`, removed sections as `^section: !delete` +function buildDelta (prevParsed, curParsed) { + const sections = new Map() + for (const [key, curSection] of curParsed.sections) { + const prevSection = prevParsed.sections.get(key) + const prevEntries = prevSection ? splitSectionEntries(prevSection.body, `${key} (prev)`) : null + const curEntries = splitSectionEntries(curSection.body, `${key} (cur)`) + const ops = [] + if (prevEntries) { + for (const typeKey of prevEntries.keys()) { + if (!curEntries.has(typeKey)) ops.push({ lines: [` ${typeKey}: ${DELETE}`] }) + } + } + for (const [typeKey, lines] of curEntries) { + const prev = prevEntries && prevEntries.get(typeKey) + if (!prev || prev.join('\n') !== lines.join('\n')) ops.push({ lines }) + } + if (ops.length) sections.set(key, { header: curSection.header, ops }) + } + for (const key of prevParsed.sections.keys()) { + if (!curParsed.sections.has(key)) sections.set(key, { header: `${key}: ${DELETE}`, ops: [] }) + } + if (sections.size === 0) return null // identical protocol: keep the full file + return sections +} + +function renderDelta (version, baseVersion, sections) { + const lines = [`!version: ${version}`, `!base: ${baseVersion}`] + for (const section of sections.values()) { + lines.push('', section.header) + if (section.header.endsWith(DELETE)) continue + let first = true + for (const op of section.ops) { + if (!first) lines.push('') + lines.push(...op.lines) + first = false + } + } + return lines.join('\n') + '\n' +} + +function sortKeys (v) { + if (Array.isArray(v)) return v.map(sortKeys) + if (v && typeof v === 'object') { + const o = {} + for (const k of Object.keys(v).sort()) o[k] = sortKeys(v[k]) + return o + } + return v +} + +function main () { + const edition = process.argv[2] && !process.argv[2].startsWith('-') ? process.argv[2] : 'pc' + const write = process.argv.includes('--write') + const chain = protoChain(edition) + console.log(`${edition}: ${chain.length} distinct protocol dirs`) + + let converted = 0 + let failed = 0 + // Full (chain-resolved) text of the previous version's protocol: diffs are + // always computed against the full previous protocol, never a delta file + let prevFullText = null + for (let i = 1; i < chain.length; i++) { + const prev = chain[i - 1] + const cur = chain[i] + const curDir = join(DATA, cur.dir) + const curPath = join(curDir, 'proto.yml') + const prevPath = join(DATA, prev.dir, 'proto.yml') + if (prevFullText === null) { + prevFullText = parseProto(fs.readFileSync(prevPath, 'utf8'), prevPath).directives.has('!base') + ? resolve(edition, prevPath, DATA).main + : fs.readFileSync(prevPath, 'utf8') + } + const original = fs.readFileSync(curPath, 'utf8') + const curIsDelta = parseProto(original, curPath).directives.has('!base') + const curFullText = curIsDelta ? resolve(edition, curPath, DATA).main : original + const curParsed = parseProto(curFullText, curPath) + + const sections = buildDelta(parseProto(prevFullText, prevPath), curParsed) + if (!sections) { + console.log(`= ${cur.versionId}: identical to ${prev.versionId}, keeping full file`) + prevFullText = curFullText + continue + } + + // golden check: write the delta, resolve the chain, compile, compare with + // the committed protocol.json, then restore unless we are writing + const versionLine = (curParsed.directives.get('!version') || [])[0] || '' + const version = entryValue(versionLine.trim()) + if (!version) throw Error(`No !version in ${curPath}`) + const deltaText = renderDelta(version, prev.versionId, sections) + fs.writeFileSync(curPath, deltaText) + let err = null + let mergedMain = null + try { + const files = resolve(edition, curPath, DATA) + const json = compile(files) + const goldenPath = join(curDir, 'protocol.json') + if (fs.existsSync(goldenPath)) { + const expected = JSON.parse(fs.readFileSync(goldenPath, 'utf8')) + const actual = JSON.parse(JSON.stringify(json, visitor, 2)) + if (JSON.stringify(sortKeys(actual)) !== JSON.stringify(sortKeys(expected))) { + err = 'compiled protocol differs from committed protocol.json' + } + } // else: unreleased version (pc/latest), nothing committed to compare with + mergedMain = files.main + } catch (e) { + err = e.stack ? e.stack.split('\n').slice(0, 4).join(' | ') : e.message + } + if (err || !write) fs.writeFileSync(curPath, original) + prevFullText = err ? curFullText : mergedMain + + if (err) { + failed++ + console.log(`✗ ${cur.versionId}: ${err}`) + continue + } + converted++ + const ops = [...sections.values()].reduce((n, s) => n + s.ops.length, 0) + console.log(`✓ ${cur.versionId}: delta on ${prev.versionId} (${ops} type ops, ${deltaText.split('\n').length} lines)`) + } + console.log(`\n${converted} converted, ${failed} failed${write ? '' : ' (dry run: deltas NOT kept)'}`) + if (failed) process.exit(1) +} + +try { main() } catch (e) { console.error(e); process.exit(1) } diff --git a/tools/js/compileProtocol.js b/tools/js/compileProtocol.js index 12829198c..20334870e 100644 --- a/tools/js/compileProtocol.js +++ b/tools/js/compileProtocol.js @@ -5,15 +5,21 @@ const fs = require('fs') const { join } = require('path') const { parse, compile } = require('protodef-yaml') +const { resolveProtoDelta } = require('./protoDelta') function getJSON (path) { return JSON.parse(fs.readFileSync(path, 'utf-8')) } // Parse the YML files and turn to JSON -function genProtoSchema (createPacketMap) { +function genProtoSchema (createPacketMap, edition) { + // If proto.yml is a !base delta, resolve the chain into a full protocol + // file set first (no-op for full protos, which keep using the file on disk) + const delta = resolveProtoDelta(edition, process.cwd(), join(__dirname, '../../data')) + const protoInput = delta ? delta.files : './proto.yml' + // Create the packet_map.yml from proto.yml - const parsed = parse('./proto.yml') + const parsed = parse(protoInput) const version = parsed['!version'] if (createPacketMap) { @@ -41,7 +47,12 @@ function genProtoSchema (createPacketMap) { fs.writeFileSync('./packet_map.yml', t) } - const json = compile('./proto.yml') + if (delta && fs.existsSync('./packet_map.yml')) { + // protodef-yaml only resolves !imports from disk for file inputs; feed the + // generated packet map into the resolved file set + delta.files['packet_map.yml'] = fs.readFileSync('./packet_map.yml', 'utf8') + } + const json = compile(protoInput) fs.rmSync('./packet_map.yml', { force: true }) // temp file return [version, json] } @@ -79,7 +90,7 @@ function sortKeys (value, isTopLevel = false) { function convert (edition, ver, path) { process.chdir(path || join(__dirname, `../../data/${edition}/${ver}`)) - const [version, json] = genProtoSchema(edition === 'bedrock') + const [version, json] = genProtoSchema(edition === 'bedrock', edition) fs.mkdirSync(`../${version}`, { recursive: true }) if (edition === 'bedrock') { fs.writeFileSync(`../${version}/protocol.json`, JSON.stringify({ types: sortKeys(json, true) }, visitor, 2)) @@ -92,7 +103,7 @@ function convert (edition, ver, path) { function validate (edition, ver, path) { process.chdir(path || join(__dirname, `../../data/${edition}/${ver}`)) // console.log(process.cwd()) - const [version, json] = genProtoSchema(edition === 'bedrock') + const [version, json] = genProtoSchema(edition === 'bedrock', edition) if (path.endsWith('latest')) { if (fs.existsSync(join(__dirname, `../../data/${edition}/${version}/proto.yml`))) { diff --git a/tools/js/protoDelta.js b/tools/js/protoDelta.js new file mode 100644 index 000000000..f212eb1a5 --- /dev/null +++ b/tools/js/protoDelta.js @@ -0,0 +1,260 @@ +/** + * Resolves proto.yml delta chains into a merged, full protocol file set. + * + * A delta proto.yml is a normal proto.yml with an additional `!base: ` + * directive. Merge semantics, per section (`^types`, `^play.toClient.types`, ...): + * - a type present only in the base is inherited unchanged + * - a type present in both is replaced wholesale by the delta's definition + * (no deep merge: mapper values and packet IDs are positional, so partial + * merges would be unsafe) + * - a type present only in the delta is added (appended at the end of the + * section; key order in the rendered protocol.json is not semantic) + * - `TypeName: !delete` removes the inherited type (error if not inherited) + * - a whole section can be removed with `^section: !delete` or added by + * simply defining it + * `!base` refers to a version, resolved through dataPaths.json to the data + * directory holding that version's proto.yml. Deltas chain recursively; cycles, + * missing bases and bad deletes are hard errors. + * + * The result is a files object (`{ main }`) that can be passed directly to + * protodef-yaml's parse()/compile() in place of a path. Chain `!import`s are + * passed through to the merged output; import *files* are not collected, so + * editions whose protos import from disk (bedrock) must keep full protos for + * now. + */ +const fs = require('fs') +const { join } = require('path') + +const DELETE = '!delete' + +// protodef-yaml normalizes tabs to 4 spaces; mirror that so splits see the +// same indentation the compiler sees +function normalize (text) { + return text.replace(/\r\n/g, '\n').replace(/\t/g, ' ').replace(/[ \t]+$/gm, '') +} + +// First key of a yaml-ish line: everything before the first ': ' or a trailing ':' +function entryKey (line) { + const t = line.trim() + if (t.endsWith(':')) return t.slice(0, -1) + return t.split(': ', 1)[0] +} + +function entryValue (line) { + const t = line.trim() + if (t.endsWith(':')) return '' + return t.split(': ', 2)[1] || '' +} + +// Net bracket depth of a line, ignoring brackets inside string literals. Old +// proto.yml versions embed multiline ProtoDef JSON inside entries; a line +// belongs to the current entry while its depth is open. +function bracketDepth (line) { + let depth = 0 + let inStr = false + let esc = false + for (const c of line) { + if (inStr) { + if (esc) esc = false + else if (c === '\\') esc = true + else if (c === '"') inStr = false + } else if (c === '"') inStr = true + else if (c === '[' || c === '{') depth++ + else if (c === ']' || c === '}') depth-- + } + return depth +} + +// Split a block of lines into sub-entries at the section's child indentation. +// Returns an ordered map key -> lines[]. Comments at or above the child +// indentation attach to the following entry (the docs convention of proto.yml); +// deeper comments stay inside the entry they follow. +function splitSectionEntries (lines, where) { + const entries = new Map() + let childIndent = null + let pending = [] + let current = null + let depth = 0 + for (const line of lines) { + if (line.trim() === '' && depth <= 0) continue + if (current && depth > 0) { // continuation of a multiline JSON value + depth += bracketDepth(line) + current.push(line) + continue + } + const indent = line.length - line.trimStart().length + const isComment = line.trimStart().startsWith('#') + if (childIndent === null && !isComment) childIndent = indent + if (!isComment && indent === childIndent) { + const key = entryKey(line) + if (entries.has(key)) throw Error(`Duplicate type '${key}' in ${where}`) + current = [...pending, line] + depth = bracketDepth(line) + pending = [] + entries.set(key, current) + } else if (current && (indent > childIndent)) { + current.push(line) + } else if (current && !isComment) { // indented line above childIndent: malformed + throw Error(`Unexpected indentation in ${where}: ${line}`) + } else { + pending.push(line) + } + } + return entries +} + +// Parse a full proto.yml into top-level directives and sections. +// Directives are keyed by directive name (`!version`, `!import:types.yml`, ...); +// sections keep their header line and body lines verbatim. +function parseProto (text, where) { + const lines = normalize(text).split('\n') + const directives = new Map() // key -> [lines] + const sections = new Map() // '^section' -> { header, body } + let pending = [] + let current = null // { kind, key, lines } + const finish = () => { + if (!current) return + while (current.lines.length && current.lines[current.lines.length - 1].trim() === '') current.lines.pop() + if (current.kind === 'directive') directives.set(current.key, current.lines) + else if (current.key === '') sections.set(current.key, { header: null, entries: splitSectionEntries(current.lines, where) }) + else sections.set(current.key, { header: current.lines[0], body: current.lines.slice(1) }) + current = null + } + for (const line of lines) { + if (line.trim() === '') { + if (current) current.lines.push(line) + continue + } + if (line[0] === '#' || line[0] === ' ') { // comment between entries, or body of a section + if (line[0] === ' ' || current === null || current.kind === 'section') { + if (current) current.lines.push(line) + else pending.push(line) + } else { + pending.push(line) // column-0 comment: prefix of the next entry + } + continue + } + finish() + const key = entryKey(line) + const val = entryValue(line) + if (key.startsWith('!')) { + const mapKey = key === '!import' ? `!import:${val}` : key + current = { kind: 'directive', key: mapKey, lines: [...pending, line] } + } else if (key.startsWith('^')) { + if (val === DELETE) current = { kind: 'directive', key: `!delete:${key}`, lines: [...pending, line] } + else current = { kind: 'section', key, lines: [...pending, line] } + } else { + // bare top-level type (bedrock-style, no ^types: section); the empty + // key is the implicit root namespace + current = { kind: 'section', key: '', lines: [...pending, line] } + } + pending = [] + } + finish() + return { directives, sections } +} + +// Merge a delta parse into a base parse. Returns { directives, sections } +// where merged sections carry an `entries` map for rendering; base-only +// sections keep their verbatim body. +function mergeParsed (base, delta, where) { + const directives = new Map(base.directives) + for (const [key, lines] of delta.directives) { + if (key === '!base') continue + if (key.startsWith('!delete:')) { + const section = key.slice('!delete:'.length) + if (!base.sections.has(section)) { + throw Error(`Cannot delete missing section '${section}' in ${where}`) + } + base.sections.delete(section) + continue + } + directives.set(key, lines) // delta directives win (!version, !StartDocs, ...) + } + + const sections = new Map(base.sections) + for (const [key, section] of delta.sections) { + const existing = sections.get(key) + const baseEntries = existing && existing.entries + ? existing.entries + : (existing ? splitSectionEntries(existing.body, `${key} (base)`) : null) + if (!baseEntries) { // section only exists in the delta: keep it verbatim + sections.set(key, section) + continue + } + const merged = new Map(baseEntries) + for (const [typeKey, typeLines] of splitSectionEntries(section.body, `${key} (delta)`)) { + const real = typeLines.filter(l => !l.trimStart().startsWith('#')) + if (real.length === 1 && entryValue(real[0]) === DELETE) { + if (!merged.has(typeKey)) { + throw Error(`Cannot delete missing type '${typeKey}' from ${key} in ${where}`) + } + merged.delete(typeKey) + } else { + merged.set(typeKey, typeLines) // replace in place, or append at the end + } + } + sections.set(key, { header: section.header, entries: merged }) + } + return { directives, sections } +} + +function renderFiles (merged) { + const lines = [] + for (const directiveLines of merged.directives.values()) { + lines.push(...directiveLines) + } + for (const section of merged.sections.values()) { + lines.push('') + if (section.entries) { + if (section.header) lines.push(section.header) + let first = true + for (const typeLines of section.entries.values()) { + if (!first) lines.push('') + lines.push(...typeLines) + first = false + } + } else { + lines.push(section.header, ...section.body) + } + } + return { main: lines.join('\n') + '\n' } +} + +// Resolve the !base chain starting at the proto.yml in `protoDir`. +// `edition` is used to resolve `!base` version strings through dataPaths.json. +// Returns null when protoDir/proto.yml is not a delta (no `!base`). +function resolveProtoDelta (edition, protoDir, dataRoot) { + const protoPath = join(protoDir, 'proto.yml') + if (!parseProto(fs.readFileSync(protoPath, 'utf8'), protoPath).directives.has('!base')) return null + return { files: resolve(edition, protoPath, dataRoot) } +} + +function resolveChain (edition, protoPath, dataRoot, seen) { + const parsed = parseProto(fs.readFileSync(protoPath, 'utf8'), protoPath) + if (!parsed.directives.has('!version')) throw Error(`Missing !version in ${protoPath}`) + const baseVersion = entryValue(parsed.directives.get('!base')[0]) + const dataPaths = JSON.parse(fs.readFileSync(join(dataRoot, 'dataPaths.json'), 'utf8')) + const baseEntry = dataPaths[edition] && dataPaths[edition][baseVersion] + if (!baseEntry || !baseEntry.proto) { + throw Error(`Unknown !base version '${baseVersion}' in ${protoPath}`) + } + const baseProto = join(dataRoot, baseEntry.proto, 'proto.yml') + if (!fs.existsSync(baseProto)) throw Error(`!base '${baseVersion}' (${baseProto}) has no proto.yml`) + if (seen.has(baseProto)) throw Error(`!base cycle detected at ${baseProto}`) + seen.add(baseProto) + + const baseRaw = fs.readFileSync(baseProto, 'utf8') + const baseParsed = parseProto(baseRaw, baseProto).directives.has('!base') + ? resolveChain(edition, baseProto, dataRoot, seen).parsed + : parseProto(baseRaw, baseProto) + + return { parsed: mergeParsed(baseParsed, parsed, protoPath), files: null } +} + +function resolve (edition, protoPath, dataRoot) { + const { parsed } = resolveChain(edition, protoPath, dataRoot, new Set([protoPath])) + return renderFiles(parsed) +} + +module.exports = { resolve, resolveProtoDelta, parseProto, splitSectionEntries, normalize, entryKey, entryValue } From 7ff99c700a37b292b5439cf1135d02a0b58934d4 Mon Sep 17 00:00:00 2001 From: U9G Date: Sat, 15 Aug 2026 22:16:30 -0400 Subject: [PATCH 3/3] Speed up the test suite - Replace Ajv's uniqueItems (O(n^2) pairwise deep-equal) with a linear Set check on the canonical sorted-key JSON form; for JSON-parsed data this is exactly equivalent to deep equality. - Share one protodef Validator across all versions instead of building it per test. --- tools/js/test/test.js | 42 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/tools/js/test/test.js b/tools/js/test/test.js index c76faf866..957e9ef75 100644 --- a/tools/js/test/test.js +++ b/tools/js/test/test.js @@ -7,7 +7,43 @@ const path = require('path') const Ajv = require('ajv') const v = new Ajv({ verbose: true }) +// Ajv compiles uniqueItems to O(n^2) pairwise deep-equal, which dominates the +// suite on the big data files (items, blockLoot, recipes). Replace it with a +// linear Set membership check on the canonical (sorted-key) JSON form — for +// JSON-parsed data this is exactly equivalent to deep equality. +v.removeKeyword('uniqueItems') +v.addKeyword('uniqueItems', { + type: 'array', + compile (schemaValue) { + if (!schemaValue) return () => true + return function validateUnique (data) { + if (!Array.isArray(data)) return true + const seen = new Set() + for (const item of data) { + const key = canonicalJson(item) + if (seen.has(key)) { + validateUnique.errors = [{ keyword: 'uniqueItems', message: 'must NOT have duplicate items', dataPath: '', schemaPath: '#/uniqueItems', params: { keyword: 'uniqueItems' } }] + return false + } + seen.add(key) + } + return true + } + } +}) + +function canonicalJson (value) { + if (value === null || typeof value !== 'object') return JSON.stringify(value) + if (Array.isArray(value)) return '[' + value.map(canonicalJson).join(',') + ']' + return '{' + Object.keys(value).sort().map(k => JSON.stringify(k) + ':' + canonicalJson(value[k])).join(',') + '}' +} + +// Compiling the ProtoDef schemas is expensive; share one Validator across all +// versions instead of rebuilding it per test const Validator = require('protodef-validator') +const protoValidator = new Validator() +protoValidator.addType('entityMetadataItem', require('../../../schemas/protocol_types/entity_metadata_item.json')) +protoValidator.addType('entityMetadataLoop', require('../../../schemas/protocol_types/entity_metadata_loop.json')) Error.stackTraceLimit = 0 @@ -31,12 +67,8 @@ require('./version_iterator')(function (p, versionString) { } if (dataName === 'protocol') { - const validator = new Validator() - instance.types.LatinString = 'native' // TODO: Update protodef validator - validator.addType('entityMetadataItem', require('../../../schemas/protocol_types/entity_metadata_item.json')) - validator.addType('entityMetadataLoop', require('../../../schemas/protocol_types/entity_metadata_loop.json')) - validator.validateProtocol(instance) + protoValidator.validateProtocol(instance) } else { const schema = require('../../../schemas/' + dataName + '_schema.json') const valid = v.validate(schema, instance)